@loupeink/web-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +82 -0
- package/dist/index.cjs +499 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +44 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.global.js +437 -0
- package/dist/index.global.js.map +1 -0
- package/dist/index.js +457 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
"use strict";var Loupe=(()=>{var rH=Object.create;var op=Object.defineProperty;var oH=Object.getOwnPropertyDescriptor;var iH=Object.getOwnPropertyNames;var sH=Object.getPrototypeOf,uH=Object.prototype.hasOwnProperty;var ua=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),RS=(t,e)=>{for(var A in e)op(t,A,{get:e[A],enumerable:!0})},DS=(t,e,A,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of iH(e))!uH.call(t,n)&&n!==A&&op(t,n,{get:()=>e[n],enumerable:!(a=oH(e,n))||a.enumerable});return t};var Y=(t,e,A)=>(A=t!=null?rH(sH(t)):{},DS(e||!t||!t.__esModule?op(A,"default",{value:t,enumerable:!0}):A,t)),cH=t=>DS(op({},"__esModule",{value:!0}),t);var V5=ua(ve=>{"use strict";var K2=Symbol.for("react.transitional.element"),QN=Symbol.for("react.portal"),FN=Symbol.for("react.fragment"),TN=Symbol.for("react.strict_mode"),IN=Symbol.for("react.profiler"),HN=Symbol.for("react.consumer"),RN=Symbol.for("react.context"),DN=Symbol.for("react.forward_ref"),MN=Symbol.for("react.suspense"),_N=Symbol.for("react.memo"),_5=Symbol.for("react.lazy"),ON=Symbol.for("react.activity"),H5=Symbol.iterator;function NN(t){return t===null||typeof t!="object"?null:(t=H5&&t[H5]||t["@@iterator"],typeof t=="function"?t:null)}var O5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N5=Object.assign,G5={};function Ns(t,e,A){this.props=t,this.context=e,this.refs=G5,this.updater=A||O5}Ns.prototype.isReactComponent={};Ns.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ns.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function K5(){}K5.prototype=Ns.prototype;function z2(t,e,A){this.props=t,this.context=e,this.refs=G5,this.updater=A||O5}var V2=z2.prototype=new K5;V2.constructor=z2;N5(V2,Ns.prototype);V2.isPureReactComponent=!0;var R5=Array.isArray;function G2(){}var gt={H:null,A:null,T:null,S:null},z5=Object.prototype.hasOwnProperty;function P2(t,e,A){var a=A.ref;return{$$typeof:K2,type:t,key:e,ref:a!==void 0?a:null,props:A}}function GN(t,e){return P2(t.type,e,t.props)}function k2(t){return typeof t=="object"&&t!==null&&t.$$typeof===K2}function KN(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(A){return e[A]})}var D5=/\/+/g;function N2(t,e){return typeof t=="object"&&t!==null&&t.key!=null?KN(""+t.key):e.toString(36)}function zN(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(G2,G2):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Os(t,e,A,a,n){var l=typeof t;(l==="undefined"||l==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(l){case"bigint":case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case K2:case QN:i=!0;break;case _5:return i=t._init,Os(i(t._payload),e,A,a,n)}}if(i)return n=n(t),i=a===""?"."+N2(t,0):a,R5(n)?(A="",i!=null&&(A=i.replace(D5,"$&/")+"/"),Os(n,e,A,"",function(d){return d})):n!=null&&(k2(n)&&(n=GN(n,A+(n.key==null||t&&t.key===n.key?"":(""+n.key).replace(D5,"$&/")+"/")+i)),e.push(n)),1;i=0;var s=a===""?".":a+":";if(R5(t))for(var c=0;c<t.length;c++)a=t[c],l=s+N2(a,c),i+=Os(a,e,A,l,n);else if(c=NN(t),typeof c=="function")for(t=c.call(t),c=0;!(a=t.next()).done;)a=a.value,l=s+N2(a,c++),i+=Os(a,e,A,l,n);else if(l==="object"){if(typeof t.then=="function")return Os(zN(t),e,A,a,n);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return i}function m0(t,e,A){if(t==null)return t;var a=[],n=0;return Os(t,a,"","",function(l){return e.call(A,l,n++)}),a}function VN(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(A){(t._status===0||t._status===-1)&&(t._status=1,t._result=A)},function(A){(t._status===0||t._status===-1)&&(t._status=2,t._result=A)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var M5=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},PN={map:m0,forEach:function(t,e,A){m0(t,function(){e.apply(this,arguments)},A)},count:function(t){var e=0;return m0(t,function(){e++}),e},toArray:function(t){return m0(t,function(e){return e})||[]},only:function(t){if(!k2(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ve.Activity=ON;ve.Children=PN;ve.Component=Ns;ve.Fragment=FN;ve.Profiler=IN;ve.PureComponent=z2;ve.StrictMode=TN;ve.Suspense=MN;ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=gt;ve.__COMPILER_RUNTIME={__proto__:null,c:function(t){return gt.H.useMemoCache(t)}};ve.cache=function(t){return function(){return t.apply(null,arguments)}};ve.cacheSignal=function(){return null};ve.cloneElement=function(t,e,A){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var a=N5({},t.props),n=t.key;if(e!=null)for(l in e.key!==void 0&&(n=""+e.key),e)!z5.call(e,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&e.ref===void 0||(a[l]=e[l]);var l=arguments.length-2;if(l===1)a.children=A;else if(1<l){for(var i=Array(l),s=0;s<l;s++)i[s]=arguments[s+2];a.children=i}return P2(t.type,n,a)};ve.createContext=function(t){return t={$$typeof:RN,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:HN,_context:t},t};ve.createElement=function(t,e,A){var a,n={},l=null;if(e!=null)for(a in e.key!==void 0&&(l=""+e.key),e)z5.call(e,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(n[a]=e[a]);var i=arguments.length-2;if(i===1)n.children=A;else if(1<i){for(var s=Array(i),c=0;c<i;c++)s[c]=arguments[c+2];n.children=s}if(t&&t.defaultProps)for(a in i=t.defaultProps,i)n[a]===void 0&&(n[a]=i[a]);return P2(t,l,n)};ve.createRef=function(){return{current:null}};ve.forwardRef=function(t){return{$$typeof:DN,render:t}};ve.isValidElement=k2;ve.lazy=function(t){return{$$typeof:_5,_payload:{_status:-1,_result:t},_init:VN}};ve.memo=function(t,e){return{$$typeof:_N,type:t,compare:e===void 0?null:e}};ve.startTransition=function(t){var e=gt.T,A={};gt.T=A;try{var a=t(),n=gt.S;n!==null&&n(A,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(G2,M5)}catch(l){M5(l)}finally{e!==null&&A.types!==null&&(e.types=A.types),gt.T=e}};ve.unstable_useCacheRefresh=function(){return gt.H.useCacheRefresh()};ve.use=function(t){return gt.H.use(t)};ve.useActionState=function(t,e,A){return gt.H.useActionState(t,e,A)};ve.useCallback=function(t,e){return gt.H.useCallback(t,e)};ve.useContext=function(t){return gt.H.useContext(t)};ve.useDebugValue=function(){};ve.useDeferredValue=function(t,e){return gt.H.useDeferredValue(t,e)};ve.useEffect=function(t,e){return gt.H.useEffect(t,e)};ve.useEffectEvent=function(t){return gt.H.useEffectEvent(t)};ve.useId=function(){return gt.H.useId()};ve.useImperativeHandle=function(t,e,A){return gt.H.useImperativeHandle(t,e,A)};ve.useInsertionEffect=function(t,e){return gt.H.useInsertionEffect(t,e)};ve.useLayoutEffect=function(t,e){return gt.H.useLayoutEffect(t,e)};ve.useMemo=function(t,e){return gt.H.useMemo(t,e)};ve.useOptimistic=function(t,e){return gt.H.useOptimistic(t,e)};ve.useReducer=function(t,e,A){return gt.H.useReducer(t,e,A)};ve.useRef=function(t){return gt.H.useRef(t)};ve.useState=function(t){return gt.H.useState(t)};ve.useSyncExternalStore=function(t,e,A){return gt.H.useSyncExternalStore(t,e,A)};ve.useTransition=function(){return gt.H.useTransition()};ve.version="19.2.4"});var ue=ua((Xj,P5)=>{"use strict";P5.exports=V5()});var eb=ua(bt=>{"use strict";function j2(t,e){var A=t.length;t.push(e);e:for(;0<A;){var a=A-1>>>1,n=t[a];if(0<g0(n,e))t[a]=e,t[A]=n,A=a;else break e}}function fl(t){return t.length===0?null:t[0]}function C0(t){if(t.length===0)return null;var e=t[0],A=t.pop();if(A!==e){t[0]=A;e:for(var a=0,n=t.length,l=n>>>1;a<l;){var i=2*(a+1)-1,s=t[i],c=i+1,d=t[c];if(0>g0(s,A))c<n&&0>g0(d,s)?(t[a]=d,t[c]=A,a=c):(t[a]=s,t[i]=A,a=i);else if(c<n&&0>g0(d,A))t[a]=d,t[c]=A,a=c;else break e}}return e}function g0(t,e){var A=t.sortIndex-e.sortIndex;return A!==0?A:t.id-e.id}bt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(k5=performance,bt.unstable_now=function(){return k5.now()}):(X2=Date,X5=X2.now(),bt.unstable_now=function(){return X2.now()-X5});var k5,X2,X5,Pl=[],Xr=[],kN=1,sn=null,ZA=3,Z2=!1,rf=!1,of=!1,J2=!1,j5=typeof setTimeout=="function"?setTimeout:null,Z5=typeof clearTimeout=="function"?clearTimeout:null,q5=typeof setImmediate<"u"?setImmediate:null;function B0(t){for(var e=fl(Xr);e!==null;){if(e.callback===null)C0(Xr);else if(e.startTime<=t)C0(Xr),e.sortIndex=e.expirationTime,j2(Pl,e);else break;e=fl(Xr)}}function W2(t){if(of=!1,B0(t),!rf)if(fl(Pl)!==null)rf=!0,Ks||(Ks=!0,Gs());else{var e=fl(Xr);e!==null&&$2(W2,e.startTime-t)}}var Ks=!1,sf=-1,J5=5,W5=-1;function $5(){return J2?!0:!(bt.unstable_now()-W5<J5)}function q2(){if(J2=!1,Ks){var t=bt.unstable_now();W5=t;var e=!0;try{e:{rf=!1,of&&(of=!1,Z5(sf),sf=-1),Z2=!0;var A=ZA;try{t:{for(B0(t),sn=fl(Pl);sn!==null&&!(sn.expirationTime>t&&$5());){var a=sn.callback;if(typeof a=="function"){sn.callback=null,ZA=sn.priorityLevel;var n=a(sn.expirationTime<=t);if(t=bt.unstable_now(),typeof n=="function"){sn.callback=n,B0(t),e=!0;break t}sn===fl(Pl)&&C0(Pl),B0(t)}else C0(Pl);sn=fl(Pl)}if(sn!==null)e=!0;else{var l=fl(Xr);l!==null&&$2(W2,l.startTime-t),e=!1}}break e}finally{sn=null,ZA=A,Z2=!1}e=void 0}}finally{e?Gs():Ks=!1}}}var Gs;typeof q5=="function"?Gs=function(){q5(q2)}:typeof MessageChannel<"u"?(Y2=new MessageChannel,Y5=Y2.port2,Y2.port1.onmessage=q2,Gs=function(){Y5.postMessage(null)}):Gs=function(){j5(q2,0)};var Y2,Y5;function $2(t,e){sf=j5(function(){t(bt.unstable_now())},e)}bt.unstable_IdlePriority=5;bt.unstable_ImmediatePriority=1;bt.unstable_LowPriority=4;bt.unstable_NormalPriority=3;bt.unstable_Profiling=null;bt.unstable_UserBlockingPriority=2;bt.unstable_cancelCallback=function(t){t.callback=null};bt.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J5=0<t?Math.floor(1e3/t):5};bt.unstable_getCurrentPriorityLevel=function(){return ZA};bt.unstable_next=function(t){switch(ZA){case 1:case 2:case 3:var e=3;break;default:e=ZA}var A=ZA;ZA=e;try{return t()}finally{ZA=A}};bt.unstable_requestPaint=function(){J2=!0};bt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var A=ZA;ZA=t;try{return e()}finally{ZA=A}};bt.unstable_scheduleCallback=function(t,e,A){var a=bt.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?a+A:a):A=a,t){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=A+n,t={id:kN++,callback:e,priorityLevel:t,startTime:A,expirationTime:n,sortIndex:-1},A>a?(t.sortIndex=A,j2(Xr,t),fl(Pl)===null&&t===fl(Xr)&&(of?(Z5(sf),sf=-1):of=!0,$2(W2,A-a))):(t.sortIndex=n,j2(Pl,t),rf||Z2||(rf=!0,Ks||(Ks=!0,Gs()))),t};bt.unstable_shouldYield=$5;bt.unstable_wrapCallback=function(t){var e=ZA;return function(){var A=ZA;ZA=e;try{return t.apply(this,arguments)}finally{ZA=A}}}});var y0=ua((Yj,tb)=>{"use strict";tb.exports=eb()});var ab=ua(Aa=>{"use strict";var XN=ue();function Ab(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)e+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function qr(){}var ta={d:{f:qr,r:function(){throw Error(Ab(522))},D:qr,C:qr,L:qr,m:qr,X:qr,S:qr,M:qr},p:0,findDOMNode:null},qN=Symbol.for("react.portal");function YN(t,e,A){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qN,key:a==null?null:""+a,children:t,containerInfo:e,implementation:A}}var uf=XN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x0(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Aa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ta;Aa.createPortal=function(t,e){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Ab(299));return YN(t,e,null,A)};Aa.flushSync=function(t){var e=uf.T,A=ta.p;try{if(uf.T=null,ta.p=2,t)return t()}finally{uf.T=e,ta.p=A,ta.d.f()}};Aa.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,ta.d.C(t,e))};Aa.prefetchDNS=function(t){typeof t=="string"&&ta.d.D(t)};Aa.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var A=e.as,a=x0(A,e.crossOrigin),n=typeof e.integrity=="string"?e.integrity:void 0,l=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;A==="style"?ta.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:l}):A==="script"&&ta.d.X(t,{crossOrigin:a,integrity:n,fetchPriority:l,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Aa.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var A=x0(e.as,e.crossOrigin);ta.d.M(t,{crossOrigin:A,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&ta.d.M(t)};Aa.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var A=e.as,a=x0(A,e.crossOrigin);ta.d.L(t,A,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Aa.preloadModule=function(t,e){if(typeof t=="string")if(e){var A=x0(e.as,e.crossOrigin);ta.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:A,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else ta.d.m(t)};Aa.requestFormReset=function(t){ta.d.r(t)};Aa.unstable_batchedUpdates=function(t,e){return t(e)};Aa.useFormState=function(t,e,A){return uf.H.useFormState(t,e,A)};Aa.useFormStatus=function(){return uf.H.useHostTransitionStatus()};Aa.version="19.2.4"});var zs=ua((Zj,lb)=>{"use strict";function nb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nb)}catch(t){console.error(t)}}nb(),lb.exports=ab()});var gL=ua(Xm=>{"use strict";var pA=y0(),T6=ue(),jN=zs();function V(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)e+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function I6(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Zf(t){var e=t,A=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(A=e.return),t=e.return;while(t)}return e.tag===3?A:null}function H6(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function R6(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function rb(t){if(Zf(t)!==t)throw Error(V(188))}function ZN(t){var e=t.alternate;if(!e){if(e=Zf(t),e===null)throw Error(V(188));return e!==t?null:t}for(var A=t,a=e;;){var n=A.return;if(n===null)break;var l=n.alternate;if(l===null){if(a=n.return,a!==null){A=a;continue}break}if(n.child===l.child){for(l=n.child;l;){if(l===A)return rb(n),t;if(l===a)return rb(n),e;l=l.sibling}throw Error(V(188))}if(A.return!==a.return)A=n,a=l;else{for(var i=!1,s=n.child;s;){if(s===A){i=!0,A=n,a=l;break}if(s===a){i=!0,a=n,A=l;break}s=s.sibling}if(!i){for(s=l.child;s;){if(s===A){i=!0,A=l,a=n;break}if(s===a){i=!0,a=l,A=n;break}s=s.sibling}if(!i)throw Error(V(189))}}if(A.alternate!==a)throw Error(V(190))}if(A.tag!==3)throw Error(V(188));return A.stateNode.current===A?t:e}function D6(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=D6(t),e!==null)return e;t=t.sibling}return null}var yt=Object.assign,JN=Symbol.for("react.element"),w0=Symbol.for("react.transitional.element"),Bf=Symbol.for("react.portal"),Ys=Symbol.for("react.fragment"),M6=Symbol.for("react.strict_mode"),HC=Symbol.for("react.profiler"),_6=Symbol.for("react.consumer"),Wl=Symbol.for("react.context"),Ly=Symbol.for("react.forward_ref"),RC=Symbol.for("react.suspense"),DC=Symbol.for("react.suspense_list"),Qy=Symbol.for("react.memo"),Yr=Symbol.for("react.lazy"),MC=Symbol.for("react.activity"),WN=Symbol.for("react.memo_cache_sentinel"),ob=Symbol.iterator;function cf(t){return t===null||typeof t!="object"?null:(t=ob&&t[ob]||t["@@iterator"],typeof t=="function"?t:null)}var $N=Symbol.for("react.client.reference");function _C(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===$N?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ys:return"Fragment";case HC:return"Profiler";case M6:return"StrictMode";case RC:return"Suspense";case DC:return"SuspenseList";case MC:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Bf:return"Portal";case Wl:return t.displayName||"Context";case _6:return(t._context.displayName||"Context")+".Consumer";case Ly:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Qy:return e=t.displayName||null,e!==null?e:_C(t.type)||"Memo";case Yr:e=t._payload,t=t._init;try{return _C(t(e))}catch{}}return null}var Cf=Array.isArray,Ce=T6.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Je=jN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,hi={pending:!1,data:null,method:null,action:null},OC=[],js=-1;function gl(t){return{current:t}}function EA(t){0>js||(t.current=OC[js],OC[js]=null,js--)}function ft(t,e){js++,OC[js]=t.current,t.current=e}var ml=gl(null),Mf=gl(null),lo=gl(null),tm=gl(null);function Am(t,e){switch(ft(lo,e),ft(Mf,t),ft(ml,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?h6(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=h6(e),t=aL(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}EA(ml),ft(ml,t)}function du(){EA(ml),EA(Mf),EA(lo)}function NC(t){t.memoizedState!==null&&ft(tm,t);var e=ml.current,A=aL(e,t.type);e!==A&&(ft(Mf,t),ft(ml,A))}function am(t){Mf.current===t&&(EA(ml),EA(Mf)),tm.current===t&&(EA(tm),qf._currentValue=hi)}var eC,ib;function ui(t){if(eC===void 0)try{throw Error()}catch(A){var e=A.stack.trim().match(/\n( *(at )?)/);eC=e&&e[1]||"",ib=-1<A.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<A.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+eC+t+ib}var tC=!1;function AC(t,e){if(!t||tC)return"";tC=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(B){var m=B}Reflect.construct(t,[],p)}else{try{p.call()}catch(B){m=B}t.call(p.prototype)}}else{try{throw Error()}catch(B){m=B}(p=t())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(B){if(B&&m&&typeof B.stack=="string")return[B.stack,m.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=a.DetermineComponentFrameRoot(),i=l[0],s=l[1];if(i&&s){var c=i.split(`
|
|
4
|
+
`),d=s.split(`
|
|
5
|
+
`);for(n=a=0;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;for(;n<d.length&&!d[n].includes("DetermineComponentFrameRoot");)n++;if(a===c.length||n===d.length)for(a=c.length-1,n=d.length-1;1<=a&&0<=n&&c[a]!==d[n];)n--;for(;1<=a&&0<=n;a--,n--)if(c[a]!==d[n]){if(a!==1||n!==1)do if(a--,n--,0>n||c[a]!==d[n]){var h=`
|
|
6
|
+
`+c[a].replace(" at new "," at ");return t.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",t.displayName)),h}while(1<=a&&0<=n);break}}}finally{tC=!1,Error.prepareStackTrace=A}return(A=t?t.displayName||t.name:"")?ui(A):""}function eG(t,e){switch(t.tag){case 26:case 27:case 5:return ui(t.type);case 16:return ui("Lazy");case 13:return t.child!==e&&e!==null?ui("Suspense Fallback"):ui("Suspense");case 19:return ui("SuspenseList");case 0:case 15:return AC(t.type,!1);case 11:return AC(t.type.render,!1);case 1:return AC(t.type,!0);case 31:return ui("Activity");default:return""}}function sb(t){try{var e="",A=null;do e+=eG(t,A),A=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var GC=Object.prototype.hasOwnProperty,Fy=pA.unstable_scheduleCallback,aC=pA.unstable_cancelCallback,tG=pA.unstable_shouldYield,AG=pA.unstable_requestPaint,za=pA.unstable_now,aG=pA.unstable_getCurrentPriorityLevel,O6=pA.unstable_ImmediatePriority,N6=pA.unstable_UserBlockingPriority,nm=pA.unstable_NormalPriority,nG=pA.unstable_LowPriority,G6=pA.unstable_IdlePriority,lG=pA.log,rG=pA.unstable_setDisableYieldValue,Jf=null,Va=null;function eo(t){if(typeof lG=="function"&&rG(t),Va&&typeof Va.setStrictMode=="function")try{Va.setStrictMode(Jf,t)}catch{}}var Pa=Math.clz32?Math.clz32:sG,oG=Math.log,iG=Math.LN2;function sG(t){return t>>>=0,t===0?32:31-(oG(t)/iG|0)|0}var v0=256,S0=262144,b0=4194304;function ci(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Fm(t,e,A){var a=t.pendingLanes;if(a===0)return 0;var n=0,l=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var s=a&134217727;return s!==0?(a=s&~l,a!==0?n=ci(a):(i&=s,i!==0?n=ci(i):A||(A=s&~t,A!==0&&(n=ci(A))))):(s=a&~l,s!==0?n=ci(s):i!==0?n=ci(i):A||(A=a&~t,A!==0&&(n=ci(A)))),n===0?0:e!==0&&e!==n&&(e&l)===0&&(l=n&-n,A=e&-e,l>=A||l===32&&(A&4194048)!==0)?e:n}function Wf(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function uG(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function K6(){var t=b0;return b0<<=1,(b0&62914560)===0&&(b0=4194304),t}function nC(t){for(var e=[],A=0;31>A;A++)e.push(t);return e}function $f(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function cG(t,e,A,a,n,l){var i=t.pendingLanes;t.pendingLanes=A,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=A,t.entangledLanes&=A,t.errorRecoveryDisabledLanes&=A,t.shellSuspendCounter=0;var s=t.entanglements,c=t.expirationTimes,d=t.hiddenUpdates;for(A=i&~A;0<A;){var h=31-Pa(A),p=1<<h;s[h]=0,c[h]=-1;var m=d[h];if(m!==null)for(d[h]=null,h=0;h<m.length;h++){var B=m[h];B!==null&&(B.lane&=-536870913)}A&=~p}a!==0&&z6(t,a,0),l!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=l&~(i&~e))}function z6(t,e,A){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Pa(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|A&261930}function V6(t,e){var A=t.entangledLanes|=e;for(t=t.entanglements;A;){var a=31-Pa(A),n=1<<a;n&e|t[a]&e&&(t[a]|=e),A&=~n}}function P6(t,e){var A=e&-e;return A=(A&42)!==0?1:Ty(A),(A&(t.suspendedLanes|e))!==0?0:A}function Ty(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Iy(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function k6(){var t=Je.p;return t!==0?t:(t=window.event,t===void 0?32:hL(t.type))}function ub(t,e){var A=Je.p;try{return Je.p=t,e()}finally{Je.p=A}}var Co=Math.random().toString(36).slice(2),_A="__reactFiber$"+Co,Ba="__reactProps$"+Co,Su="__reactContainer$"+Co,KC="__reactEvents$"+Co,fG="__reactListeners$"+Co,dG="__reactHandles$"+Co,cb="__reactResources$"+Co,ed="__reactMarker$"+Co;function Hy(t){delete t[_A],delete t[Ba],delete t[KC],delete t[fG],delete t[dG]}function Zs(t){var e=t[_A];if(e)return e;for(var A=t.parentNode;A;){if(e=A[Su]||A[_A]){if(A=e.alternate,e.child!==null||A!==null&&A.child!==null)for(t=C6(t);t!==null;){if(A=t[_A])return A;t=C6(t)}return e}t=A,A=t.parentNode}return null}function bu(t){if(t=t[_A]||t[Su]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function yf(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(V(33))}function ru(t){var e=t[cb];return e||(e=t[cb]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function UA(t){t[ed]=!0}var X6=new Set,q6={};function Si(t,e){hu(t,e),hu(t+"Capture",e)}function hu(t,e){for(q6[t]=e,t=0;t<e.length;t++)X6.add(e[t])}var hG=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fb={},db={};function pG(t){return GC.call(db,t)?!0:GC.call(fb,t)?!1:hG.test(t)?db[t]=!0:(fb[t]=!0,!1)}function G0(t,e,A){if(pG(e))if(A===null)t.removeAttribute(e);else{switch(typeof A){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+A)}}function U0(t,e,A){if(A===null)t.removeAttribute(e);else{switch(typeof A){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+A)}}function kl(t,e,A,a){if(a===null)t.removeAttribute(A);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(A);return}t.setAttributeNS(e,A,""+a)}}function cn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Y6(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function mG(t,e,A){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,l=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(i){A=""+i,l.call(this,i)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return A},setValue:function(i){A=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function zC(t){if(!t._valueTracker){var e=Y6(t)?"checked":"value";t._valueTracker=mG(t,e,""+t[e])}}function j6(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var A=e.getValue(),a="";return t&&(a=Y6(t)?t.checked?"true":"false":t.value),t=a,t!==A?(e.setValue(t),!0):!1}function lm(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var gG=/[\n"\\]/g;function hn(t){return t.replace(gG,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function VC(t,e,A,a,n,l,i,s){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+cn(e)):t.value!==""+cn(e)&&(t.value=""+cn(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?PC(t,i,cn(e)):A!=null?PC(t,i,cn(A)):a!=null&&t.removeAttribute("value"),n==null&&l!=null&&(t.defaultChecked=!!l),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+cn(s):t.removeAttribute("name")}function Z6(t,e,A,a,n,l,i,s){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(t.type=l),e!=null||A!=null){if(!(l!=="submit"&&l!=="reset"||e!=null)){zC(t);return}A=A!=null?""+cn(A):"",e=e!=null?""+cn(e):A,s||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=s?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),zC(t)}function PC(t,e,A){e==="number"&&lm(t.ownerDocument)===t||t.defaultValue===""+A||(t.defaultValue=""+A)}function ou(t,e,A,a){if(t=t.options,e){e={};for(var n=0;n<A.length;n++)e["$"+A[n]]=!0;for(A=0;A<t.length;A++)n=e.hasOwnProperty("$"+t[A].value),t[A].selected!==n&&(t[A].selected=n),n&&a&&(t[A].defaultSelected=!0)}else{for(A=""+cn(A),e=null,n=0;n<t.length;n++){if(t[n].value===A){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function J6(t,e,A){if(e!=null&&(e=""+cn(e),e!==t.value&&(t.value=e),A==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=A!=null?""+cn(A):""}function W6(t,e,A,a){if(e==null){if(a!=null){if(A!=null)throw Error(V(92));if(Cf(a)){if(1<a.length)throw Error(V(93));a=a[0]}A=a}A==null&&(A=""),e=A}A=cn(e),t.defaultValue=A,a=t.textContent,a===A&&a!==""&&a!==null&&(t.value=a),zC(t)}function pu(t,e){if(e){var A=t.firstChild;if(A&&A===t.lastChild&&A.nodeType===3){A.nodeValue=e;return}}t.textContent=e}var BG=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hb(t,e,A){var a=e.indexOf("--")===0;A==null||typeof A=="boolean"||A===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,A):typeof A!="number"||A===0||BG.has(e)?e==="float"?t.cssFloat=A:t[e]=(""+A).trim():t[e]=A+"px"}function $6(t,e,A){if(e!=null&&typeof e!="object")throw Error(V(62));if(t=t.style,A!=null){for(var a in A)!A.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&A[n]!==a&&hb(t,n,a)}else for(var l in e)e.hasOwnProperty(l)&&hb(t,l,e[l])}function Ry(t){if(t.indexOf("-")===-1)return!1;switch(t){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 CG=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),yG=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function K0(t){return yG.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function $l(){}var kC=null;function Dy(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Js=null,iu=null;function pb(t){var e=bu(t);if(e&&(t=e.stateNode)){var A=t[Ba]||null;e:switch(t=e.stateNode,e.type){case"input":if(VC(t,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name),e=A.name,A.type==="radio"&&e!=null){for(A=t;A.parentNode;)A=A.parentNode;for(A=A.querySelectorAll('input[name="'+hn(""+e)+'"][type="radio"]'),e=0;e<A.length;e++){var a=A[e];if(a!==t&&a.form===t.form){var n=a[Ba]||null;if(!n)throw Error(V(90));VC(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<A.length;e++)a=A[e],a.form===t.form&&j6(a)}break e;case"textarea":J6(t,A.value,A.defaultValue);break e;case"select":e=A.value,e!=null&&ou(t,!!A.multiple,e,!1)}}}var lC=!1;function eU(t,e,A){if(lC)return t(e,A);lC=!0;try{var a=t(e);return a}finally{if(lC=!1,(Js!==null||iu!==null)&&(zm(),Js&&(e=Js,t=iu,iu=Js=null,pb(e),t)))for(e=0;e<t.length;e++)pb(t[e])}}function _f(t,e){var A=t.stateNode;if(A===null)return null;var a=A[Ba]||null;if(a===null)return null;A=a[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(A&&typeof A!="function")throw Error(V(231,e,typeof A));return A}var nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),XC=!1;if(nr)try{Vs={},Object.defineProperty(Vs,"passive",{get:function(){XC=!0}}),window.addEventListener("test",Vs,Vs),window.removeEventListener("test",Vs,Vs)}catch{XC=!1}var Vs,to=null,My=null,z0=null;function tU(){if(z0)return z0;var t,e=My,A=e.length,a,n="value"in to?to.value:to.textContent,l=n.length;for(t=0;t<A&&e[t]===n[t];t++);var i=A-t;for(a=1;a<=i&&e[A-a]===n[l-a];a++);return z0=n.slice(t,1<a?1-a:void 0)}function V0(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function E0(){return!0}function mb(){return!1}function Ca(t){function e(A,a,n,l,i){this._reactName=A,this._targetInst=n,this.type=a,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(A=t[s],this[s]=A?A(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?E0:mb,this.isPropagationStopped=mb,this}return yt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var A=this.nativeEvent;A&&(A.preventDefault?A.preventDefault():typeof A.returnValue!="unknown"&&(A.returnValue=!1),this.isDefaultPrevented=E0)},stopPropagation:function(){var A=this.nativeEvent;A&&(A.stopPropagation?A.stopPropagation():typeof A.cancelBubble!="unknown"&&(A.cancelBubble=!0),this.isPropagationStopped=E0)},persist:function(){},isPersistent:E0}),e}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tm=Ca(bi),td=yt({},bi,{view:0,detail:0}),xG=Ca(td),rC,oC,ff,Im=yt({},td,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_y,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ff&&(ff&&t.type==="mousemove"?(rC=t.screenX-ff.screenX,oC=t.screenY-ff.screenY):oC=rC=0,ff=t),rC)},movementY:function(t){return"movementY"in t?t.movementY:oC}}),gb=Ca(Im),wG=yt({},Im,{dataTransfer:0}),vG=Ca(wG),SG=yt({},td,{relatedTarget:0}),iC=Ca(SG),bG=yt({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),UG=Ca(bG),EG=yt({},bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),LG=Ca(EG),QG=yt({},bi,{data:0}),Bb=Ca(QG),FG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TG={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"},IG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function HG(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=IG[t])?!!e[t]:!1}function _y(){return HG}var RG=yt({},td,{key:function(t){if(t.key){var e=FG[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=V0(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?TG[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_y,charCode:function(t){return t.type==="keypress"?V0(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?V0(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),DG=Ca(RG),MG=yt({},Im,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cb=Ca(MG),_G=yt({},td,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_y}),OG=Ca(_G),NG=yt({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),GG=Ca(NG),KG=yt({},Im,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),zG=Ca(KG),VG=yt({},bi,{newState:0,oldState:0}),PG=Ca(VG),kG=[9,13,27,32],Oy=nr&&"CompositionEvent"in window,vf=null;nr&&"documentMode"in document&&(vf=document.documentMode);var XG=nr&&"TextEvent"in window&&!vf,AU=nr&&(!Oy||vf&&8<vf&&11>=vf),yb=" ",xb=!1;function aU(t,e){switch(t){case"keyup":return kG.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nU(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ws=!1;function qG(t,e){switch(t){case"compositionend":return nU(e);case"keypress":return e.which!==32?null:(xb=!0,yb);case"textInput":return t=e.data,t===yb&&xb?null:t;default:return null}}function YG(t,e){if(Ws)return t==="compositionend"||!Oy&&aU(t,e)?(t=tU(),z0=My=to=null,Ws=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return AU&&e.locale!=="ko"?null:e.data;default:return null}}var jG={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 wb(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!jG[t.type]:e==="textarea"}function lU(t,e,A,a){Js?iu?iu.push(a):iu=[a]:Js=a,e=vm(e,"onChange"),0<e.length&&(A=new Tm("onChange","change",null,A,a),t.push({event:A,listeners:e}))}var Sf=null,Of=null;function ZG(t){eL(t,0)}function Hm(t){var e=yf(t);if(j6(e))return t}function vb(t,e){if(t==="change")return e}var rU=!1;nr&&(nr?(Q0="oninput"in document,Q0||(sC=document.createElement("div"),sC.setAttribute("oninput","return;"),Q0=typeof sC.oninput=="function"),L0=Q0):L0=!1,rU=L0&&(!document.documentMode||9<document.documentMode));var L0,Q0,sC;function Sb(){Sf&&(Sf.detachEvent("onpropertychange",oU),Of=Sf=null)}function oU(t){if(t.propertyName==="value"&&Hm(Of)){var e=[];lU(e,Of,t,Dy(t)),eU(ZG,e)}}function JG(t,e,A){t==="focusin"?(Sb(),Sf=e,Of=A,Sf.attachEvent("onpropertychange",oU)):t==="focusout"&&Sb()}function WG(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Hm(Of)}function $G(t,e){if(t==="click")return Hm(e)}function eK(t,e){if(t==="input"||t==="change")return Hm(e)}function tK(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Xa=typeof Object.is=="function"?Object.is:tK;function Nf(t,e){if(Xa(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var A=Object.keys(t),a=Object.keys(e);if(A.length!==a.length)return!1;for(a=0;a<A.length;a++){var n=A[a];if(!GC.call(e,n)||!Xa(t[n],e[n]))return!1}return!0}function bb(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ub(t,e){var A=bb(t);t=0;for(var a;A;){if(A.nodeType===3){if(a=t+A.textContent.length,t<=e&&a>=e)return{node:A,offset:e-t};t=a}e:{for(;A;){if(A.nextSibling){A=A.nextSibling;break e}A=A.parentNode}A=void 0}A=bb(A)}}function iU(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?iU(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function sU(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=lm(t.document);e instanceof t.HTMLIFrameElement;){try{var A=typeof e.contentWindow.location.href=="string"}catch{A=!1}if(A)t=e.contentWindow;else break;e=lm(t.document)}return e}function Ny(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var AK=nr&&"documentMode"in document&&11>=document.documentMode,$s=null,qC=null,bf=null,YC=!1;function Eb(t,e,A){var a=A.window===A?A.document:A.nodeType===9?A:A.ownerDocument;YC||$s==null||$s!==lm(a)||(a=$s,"selectionStart"in a&&Ny(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),bf&&Nf(bf,a)||(bf=a,a=vm(qC,"onSelect"),0<a.length&&(e=new Tm("onSelect","select",null,e,A),t.push({event:e,listeners:a}),e.target=$s)))}function si(t,e){var A={};return A[t.toLowerCase()]=e.toLowerCase(),A["Webkit"+t]="webkit"+e,A["Moz"+t]="moz"+e,A}var eu={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionrun:si("Transition","TransitionRun"),transitionstart:si("Transition","TransitionStart"),transitioncancel:si("Transition","TransitionCancel"),transitionend:si("Transition","TransitionEnd")},uC={},uU={};nr&&(uU=document.createElement("div").style,"AnimationEvent"in window||(delete eu.animationend.animation,delete eu.animationiteration.animation,delete eu.animationstart.animation),"TransitionEvent"in window||delete eu.transitionend.transition);function Ui(t){if(uC[t])return uC[t];if(!eu[t])return t;var e=eu[t],A;for(A in e)if(e.hasOwnProperty(A)&&A in uU)return uC[t]=e[A];return t}var cU=Ui("animationend"),fU=Ui("animationiteration"),dU=Ui("animationstart"),aK=Ui("transitionrun"),nK=Ui("transitionstart"),lK=Ui("transitioncancel"),hU=Ui("transitionend"),pU=new Map,jC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");jC.push("scrollEnd");function Nn(t,e){pU.set(t,e),Si(e,[t])}var rm=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},un=[],tu=0,Gy=0;function Rm(){for(var t=tu,e=Gy=tu=0;e<t;){var A=un[e];un[e++]=null;var a=un[e];un[e++]=null;var n=un[e];un[e++]=null;var l=un[e];if(un[e++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}l!==0&&mU(A,n,l)}}function Dm(t,e,A,a){un[tu++]=t,un[tu++]=e,un[tu++]=A,un[tu++]=a,Gy|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ky(t,e,A,a){return Dm(t,e,A,a),om(t)}function Ei(t,e){return Dm(t,null,null,e),om(t)}function mU(t,e,A){t.lanes|=A;var a=t.alternate;a!==null&&(a.lanes|=A);for(var n=!1,l=t.return;l!==null;)l.childLanes|=A,a=l.alternate,a!==null&&(a.childLanes|=A),l.tag===22&&(t=l.stateNode,t===null||t._visibility&1||(n=!0)),t=l,l=l.return;return t.tag===3?(l=t.stateNode,n&&e!==null&&(n=31-Pa(A),t=l.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=A|536870912),l):null}function om(t){if(50<Rf)throw Rf=0,my=null,Error(V(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Au={};function rK(t,e,A,a){this.tag=t,this.key=A,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ga(t,e,A,a){return new rK(t,e,A,a)}function zy(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tr(t,e){var A=t.alternate;return A===null?(A=Ga(t.tag,e,t.key,t.mode),A.elementType=t.elementType,A.type=t.type,A.stateNode=t.stateNode,A.alternate=t,t.alternate=A):(A.pendingProps=e,A.type=t.type,A.flags=0,A.subtreeFlags=0,A.deletions=null),A.flags=t.flags&65011712,A.childLanes=t.childLanes,A.lanes=t.lanes,A.child=t.child,A.memoizedProps=t.memoizedProps,A.memoizedState=t.memoizedState,A.updateQueue=t.updateQueue,e=t.dependencies,A.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},A.sibling=t.sibling,A.index=t.index,A.ref=t.ref,A.refCleanup=t.refCleanup,A}function gU(t,e){t.flags&=65011714;var A=t.alternate;return A===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=A.childLanes,t.lanes=A.lanes,t.child=A.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=A.memoizedProps,t.memoizedState=A.memoizedState,t.updateQueue=A.updateQueue,t.type=A.type,e=A.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function P0(t,e,A,a,n,l){var i=0;if(a=t,typeof t=="function")zy(t)&&(i=1);else if(typeof t=="string")i=sz(t,A,ml.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case MC:return t=Ga(31,A,e,n),t.elementType=MC,t.lanes=l,t;case Ys:return pi(A.children,n,l,e);case M6:i=8,n|=24;break;case HC:return t=Ga(12,A,e,n|2),t.elementType=HC,t.lanes=l,t;case RC:return t=Ga(13,A,e,n),t.elementType=RC,t.lanes=l,t;case DC:return t=Ga(19,A,e,n),t.elementType=DC,t.lanes=l,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Wl:i=10;break e;case _6:i=9;break e;case Ly:i=11;break e;case Qy:i=14;break e;case Yr:i=16,a=null;break e}i=29,A=Error(V(130,t===null?"null":typeof t,"")),a=null}return e=Ga(i,A,e,n),e.elementType=t,e.type=a,e.lanes=l,e}function pi(t,e,A,a){return t=Ga(7,t,a,e),t.lanes=A,t}function cC(t,e,A){return t=Ga(6,t,null,e),t.lanes=A,t}function BU(t){var e=Ga(18,null,null,0);return e.stateNode=t,e}function fC(t,e,A){return e=Ga(4,t.children!==null?t.children:[],t.key,e),e.lanes=A,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Lb=new WeakMap;function pn(t,e){if(typeof t=="object"&&t!==null){var A=Lb.get(t);return A!==void 0?A:(e={value:t,source:e,stack:sb(e)},Lb.set(t,e),e)}return{value:t,source:e,stack:sb(e)}}var au=[],nu=0,im=null,Gf=0,fn=[],dn=0,po=null,dl=1,hl="";function Zl(t,e){au[nu++]=Gf,au[nu++]=im,im=t,Gf=e}function CU(t,e,A){fn[dn++]=dl,fn[dn++]=hl,fn[dn++]=po,po=t;var a=dl;t=hl;var n=32-Pa(a)-1;a&=~(1<<n),A+=1;var l=32-Pa(e)+n;if(30<l){var i=n-n%5;l=(a&(1<<i)-1).toString(32),a>>=i,n-=i,dl=1<<32-Pa(e)+n|A<<n|a,hl=l+t}else dl=1<<l|A<<n|a,hl=t}function Vy(t){t.return!==null&&(Zl(t,1),CU(t,1,0))}function Py(t){for(;t===im;)im=au[--nu],au[nu]=null,Gf=au[--nu],au[nu]=null;for(;t===po;)po=fn[--dn],fn[dn]=null,hl=fn[--dn],fn[dn]=null,dl=fn[--dn],fn[dn]=null}function yU(t,e){fn[dn++]=dl,fn[dn++]=hl,fn[dn++]=po,dl=e.id,hl=e.overflow,po=t}var OA=null,Ct=null,Ke=!1,ro=null,mn=!1,ZC=Error(V(519));function mo(t){var e=Error(V(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Kf(pn(e,t)),ZC}function Qb(t){var e=t.stateNode,A=t.type,a=t.memoizedProps;switch(e[_A]=t,e[Ba]=a,A){case"dialog":De("cancel",e),De("close",e);break;case"iframe":case"object":case"embed":De("load",e);break;case"video":case"audio":for(A=0;A<kf.length;A++)De(kf[A],e);break;case"source":De("error",e);break;case"img":case"image":case"link":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"input":De("invalid",e),Z6(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":De("invalid",e);break;case"textarea":De("invalid",e),W6(e,a.value,a.defaultValue,a.children)}A=a.children,typeof A!="string"&&typeof A!="number"&&typeof A!="bigint"||e.textContent===""+A||a.suppressHydrationWarning===!0||AL(e.textContent,A)?(a.popover!=null&&(De("beforetoggle",e),De("toggle",e)),a.onScroll!=null&&De("scroll",e),a.onScrollEnd!=null&&De("scrollend",e),a.onClick!=null&&(e.onclick=$l),e=!0):e=!1,e||mo(t,!0)}function Fb(t){for(OA=t.return;OA;)switch(OA.tag){case 5:case 31:case 13:mn=!1;return;case 27:case 3:mn=!0;return;default:OA=OA.return}}function Ps(t){if(t!==OA)return!1;if(!Ke)return Fb(t),Ke=!0,!1;var e=t.tag,A;if((A=e!==3&&e!==27)&&((A=e===5)&&(A=t.type,A=!(A!=="form"&&A!=="button")||xy(t.type,t.memoizedProps)),A=!A),A&&Ct&&mo(t),Fb(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(V(317));Ct=B6(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(V(317));Ct=B6(t)}else e===27?(e=Ct,yo(t.type)?(t=by,by=null,Ct=t):Ct=e):Ct=OA?Bn(t.stateNode.nextSibling):null;return!0}function Ci(){Ct=OA=null,Ke=!1}function dC(){var t=ro;return t!==null&&(ma===null?ma=t:ma.push.apply(ma,t),ro=null),t}function Kf(t){ro===null?ro=[t]:ro.push(t)}var JC=gl(null),Li=null,er=null;function Zr(t,e,A){ft(JC,e._currentValue),e._currentValue=A}function Ar(t){t._currentValue=JC.current,EA(JC)}function WC(t,e,A){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===A)break;t=t.return}}function $C(t,e,A,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var l=n.dependencies;if(l!==null){var i=n.child;l=l.firstContext;e:for(;l!==null;){var s=l;l=n;for(var c=0;c<e.length;c++)if(s.context===e[c]){l.lanes|=A,s=l.alternate,s!==null&&(s.lanes|=A),WC(l.return,A,t),a||(i=null);break e}l=s.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(V(341));i.lanes|=A,l=i.alternate,l!==null&&(l.lanes|=A),WC(i,A,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function Uu(t,e,A,a){t=null;for(var n=e,l=!1;n!==null;){if(!l){if((n.flags&524288)!==0)l=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(V(387));if(i=i.memoizedProps,i!==null){var s=n.type;Xa(n.pendingProps.value,i.value)||(t!==null?t.push(s):t=[s])}}else if(n===tm.current){if(i=n.alternate,i===null)throw Error(V(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(qf):t=[qf])}n=n.return}t!==null&&$C(e,t,A,a),e.flags|=262144}function sm(t){for(t=t.firstContext;t!==null;){if(!Xa(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function yi(t){Li=t,er=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function NA(t){return xU(Li,t)}function F0(t,e){return Li===null&&yi(t),xU(t,e)}function xU(t,e){var A=e._currentValue;if(e={context:e,memoizedValue:A,next:null},er===null){if(t===null)throw Error(V(308));er=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else er=er.next=e;return A}var oK=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(A,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(A){return A()})}},iK=pA.unstable_scheduleCallback,sK=pA.unstable_NormalPriority,nA={$$typeof:Wl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ky(){return{controller:new oK,data:new Map,refCount:0}}function Ad(t){t.refCount--,t.refCount===0&&iK(sK,function(){t.controller.abort()})}var Uf=null,ey=0,mu=0,su=null;function uK(t,e){if(Uf===null){var A=Uf=[];ey=0,mu=m4(),su={status:"pending",value:void 0,then:function(a){A.push(a)}}}return ey++,e.then(Tb,Tb),e}function Tb(){if(--ey===0&&Uf!==null){su!==null&&(su.status="fulfilled");var t=Uf;Uf=null,mu=0,su=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function cK(t,e){var A=[],a={status:"pending",value:null,reason:null,then:function(n){A.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<A.length;n++)(0,A[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<A.length;n++)(0,A[n])(void 0)}),a}var Ib=Ce.S;Ce.S=function(t,e){DE=za(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&uK(t,e),Ib!==null&&Ib(t,e)};var mi=gl(null);function Xy(){var t=mi.current;return t!==null?t:st.pooledCache}function k0(t,e){e===null?ft(mi,mi.current):ft(mi,e.pool)}function wU(){var t=Xy();return t===null?null:{parent:nA._currentValue,pool:t}}var Eu=Error(V(460)),qy=Error(V(474)),Mm=Error(V(542)),um={then:function(){}};function Hb(t){return t=t.status,t==="fulfilled"||t==="rejected"}function vU(t,e,A){switch(A=t[A],A===void 0?t.push(e):A!==e&&(e.then($l,$l),e=A),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Db(t),t;default:if(typeof e.status=="string")e.then($l,$l);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(V(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Db(t),t}throw gi=e,Eu}}function fi(t){try{var e=t._init;return e(t._payload)}catch(A){throw A!==null&&typeof A=="object"&&typeof A.then=="function"?(gi=A,Eu):A}}var gi=null;function Rb(){if(gi===null)throw Error(V(459));var t=gi;return gi=null,t}function Db(t){if(t===Eu||t===Mm)throw Error(V(483))}var uu=null,zf=0;function T0(t){var e=zf;return zf+=1,uu===null&&(uu=[]),vU(uu,t,e)}function df(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function I0(t,e){throw e.$$typeof===JN?Error(V(525)):(t=Object.prototype.toString.call(e),Error(V(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function SU(t){function e(w,x){if(t){var S=w.deletions;S===null?(w.deletions=[x],w.flags|=16):S.push(x)}}function A(w,x){if(!t)return null;for(;x!==null;)e(w,x),x=x.sibling;return null}function a(w){for(var x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function n(w,x){return w=tr(w,x),w.index=0,w.sibling=null,w}function l(w,x,S){return w.index=S,t?(S=w.alternate,S!==null?(S=S.index,S<x?(w.flags|=67108866,x):S):(w.flags|=67108866,x)):(w.flags|=1048576,x)}function i(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function s(w,x,S,U){return x===null||x.tag!==6?(x=cC(S,w.mode,U),x.return=w,x):(x=n(x,S),x.return=w,x)}function c(w,x,S,U){var L=S.type;return L===Ys?h(w,x,S.props.children,U,S.key):x!==null&&(x.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Yr&&fi(L)===x.type)?(x=n(x,S.props),df(x,S),x.return=w,x):(x=P0(S.type,S.key,S.props,null,w.mode,U),df(x,S),x.return=w,x)}function d(w,x,S,U){return x===null||x.tag!==4||x.stateNode.containerInfo!==S.containerInfo||x.stateNode.implementation!==S.implementation?(x=fC(S,w.mode,U),x.return=w,x):(x=n(x,S.children||[]),x.return=w,x)}function h(w,x,S,U,L){return x===null||x.tag!==7?(x=pi(S,w.mode,U,L),x.return=w,x):(x=n(x,S),x.return=w,x)}function p(w,x,S){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=cC(""+x,w.mode,S),x.return=w,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case w0:return S=P0(x.type,x.key,x.props,null,w.mode,S),df(S,x),S.return=w,S;case Bf:return x=fC(x,w.mode,S),x.return=w,x;case Yr:return x=fi(x),p(w,x,S)}if(Cf(x)||cf(x))return x=pi(x,w.mode,S,null),x.return=w,x;if(typeof x.then=="function")return p(w,T0(x),S);if(x.$$typeof===Wl)return p(w,F0(w,x),S);I0(w,x)}return null}function m(w,x,S,U){var L=x!==null?x.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return L!==null?null:s(w,x,""+S,U);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case w0:return S.key===L?c(w,x,S,U):null;case Bf:return S.key===L?d(w,x,S,U):null;case Yr:return S=fi(S),m(w,x,S,U)}if(Cf(S)||cf(S))return L!==null?null:h(w,x,S,U,null);if(typeof S.then=="function")return m(w,x,T0(S),U);if(S.$$typeof===Wl)return m(w,x,F0(w,S),U);I0(w,S)}return null}function B(w,x,S,U,L){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return w=w.get(S)||null,s(x,w,""+U,L);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w0:return w=w.get(U.key===null?S:U.key)||null,c(x,w,U,L);case Bf:return w=w.get(U.key===null?S:U.key)||null,d(x,w,U,L);case Yr:return U=fi(U),B(w,x,S,U,L)}if(Cf(U)||cf(U))return w=w.get(S)||null,h(x,w,U,L,null);if(typeof U.then=="function")return B(w,x,S,T0(U),L);if(U.$$typeof===Wl)return B(w,x,S,F0(x,U),L);I0(x,U)}return null}function y(w,x,S,U){for(var L=null,F=null,T=x,M=x=0,D=null;T!==null&&M<S.length;M++){T.index>M?(D=T,T=null):D=T.sibling;var G=m(w,T,S[M],U);if(G===null){T===null&&(T=D);break}t&&T&&G.alternate===null&&e(w,T),x=l(G,x,M),F===null?L=G:F.sibling=G,F=G,T=D}if(M===S.length)return A(w,T),Ke&&Zl(w,M),L;if(T===null){for(;M<S.length;M++)T=p(w,S[M],U),T!==null&&(x=l(T,x,M),F===null?L=T:F.sibling=T,F=T);return Ke&&Zl(w,M),L}for(T=a(T);M<S.length;M++)D=B(T,w,M,S[M],U),D!==null&&(t&&D.alternate!==null&&T.delete(D.key===null?M:D.key),x=l(D,x,M),F===null?L=D:F.sibling=D,F=D);return t&&T.forEach(function(ee){return e(w,ee)}),Ke&&Zl(w,M),L}function v(w,x,S,U){if(S==null)throw Error(V(151));for(var L=null,F=null,T=x,M=x=0,D=null,G=S.next();T!==null&&!G.done;M++,G=S.next()){T.index>M?(D=T,T=null):D=T.sibling;var ee=m(w,T,G.value,U);if(ee===null){T===null&&(T=D);break}t&&T&&ee.alternate===null&&e(w,T),x=l(ee,x,M),F===null?L=ee:F.sibling=ee,F=ee,T=D}if(G.done)return A(w,T),Ke&&Zl(w,M),L;if(T===null){for(;!G.done;M++,G=S.next())G=p(w,G.value,U),G!==null&&(x=l(G,x,M),F===null?L=G:F.sibling=G,F=G);return Ke&&Zl(w,M),L}for(T=a(T);!G.done;M++,G=S.next())G=B(T,w,M,G.value,U),G!==null&&(t&&G.alternate!==null&&T.delete(G.key===null?M:G.key),x=l(G,x,M),F===null?L=G:F.sibling=G,F=G);return t&&T.forEach(function(P){return e(w,P)}),Ke&&Zl(w,M),L}function b(w,x,S,U){if(typeof S=="object"&&S!==null&&S.type===Ys&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case w0:e:{for(var L=S.key;x!==null;){if(x.key===L){if(L=S.type,L===Ys){if(x.tag===7){A(w,x.sibling),U=n(x,S.props.children),U.return=w,w=U;break e}}else if(x.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Yr&&fi(L)===x.type){A(w,x.sibling),U=n(x,S.props),df(U,S),U.return=w,w=U;break e}A(w,x);break}else e(w,x);x=x.sibling}S.type===Ys?(U=pi(S.props.children,w.mode,U,S.key),U.return=w,w=U):(U=P0(S.type,S.key,S.props,null,w.mode,U),df(U,S),U.return=w,w=U)}return i(w);case Bf:e:{for(L=S.key;x!==null;){if(x.key===L)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){A(w,x.sibling),U=n(x,S.children||[]),U.return=w,w=U;break e}else{A(w,x);break}else e(w,x);x=x.sibling}U=fC(S,w.mode,U),U.return=w,w=U}return i(w);case Yr:return S=fi(S),b(w,x,S,U)}if(Cf(S))return y(w,x,S,U);if(cf(S)){if(L=cf(S),typeof L!="function")throw Error(V(150));return S=L.call(S),v(w,x,S,U)}if(typeof S.then=="function")return b(w,x,T0(S),U);if(S.$$typeof===Wl)return b(w,x,F0(w,S),U);I0(w,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,x!==null&&x.tag===6?(A(w,x.sibling),U=n(x,S),U.return=w,w=U):(A(w,x),U=cC(S,w.mode,U),U.return=w,w=U),i(w)):A(w,x)}return function(w,x,S,U){try{zf=0;var L=b(w,x,S,U);return uu=null,L}catch(T){if(T===Eu||T===Mm)throw T;var F=Ga(29,T,null,w.mode);return F.lanes=U,F.return=w,F}}}var xi=SU(!0),bU=SU(!1),jr=!1;function Yy(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ty(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function oo(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function io(t,e,A){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Ze&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=om(t),mU(t,null,A),e}return Dm(t,a,e,A),om(t)}function Ef(t,e,A){if(e=e.updateQueue,e!==null&&(e=e.shared,(A&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,A|=a,e.lanes=A,V6(t,A)}}function hC(t,e){var A=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,A===a)){var n=null,l=null;if(A=A.firstBaseUpdate,A!==null){do{var i={lane:A.lane,tag:A.tag,payload:A.payload,callback:null,next:null};l===null?n=l=i:l=l.next=i,A=A.next}while(A!==null);l===null?n=l=e:l=l.next=e}else n=l=e;A={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:l,shared:a.shared,callbacks:a.callbacks},t.updateQueue=A;return}t=A.lastBaseUpdate,t===null?A.firstBaseUpdate=e:t.next=e,A.lastBaseUpdate=e}var Ay=!1;function Lf(){if(Ay){var t=su;if(t!==null)throw t}}function Qf(t,e,A,a){Ay=!1;var n=t.updateQueue;jr=!1;var l=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var c=s,d=c.next;c.next=null,i===null?l=d:i.next=d,i=c;var h=t.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==i&&(s===null?h.firstBaseUpdate=d:s.next=d,h.lastBaseUpdate=c))}if(l!==null){var p=n.baseState;i=0,h=d=c=null,s=l;do{var m=s.lane&-536870913,B=m!==s.lane;if(B?(Ne&m)===m:(a&m)===m){m!==0&&m===mu&&(Ay=!0),h!==null&&(h=h.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var y=t,v=s;m=e;var b=A;switch(v.tag){case 1:if(y=v.payload,typeof y=="function"){p=y.call(b,p,m);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(b,p,m):y,m==null)break e;p=yt({},p,m);break e;case 2:jr=!0}}m=s.callback,m!==null&&(t.flags|=64,B&&(t.flags|=8192),B=n.callbacks,B===null?n.callbacks=[m]:B.push(m))}else B={lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(d=h=B,c=p):h=h.next=B,i|=m;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;B=s,s=B.next,B.next=null,n.lastBaseUpdate=B,n.shared.pending=null}}while(!0);h===null&&(c=p),n.baseState=c,n.firstBaseUpdate=d,n.lastBaseUpdate=h,l===null&&(n.shared.lanes=0),Bo|=i,t.lanes=i,t.memoizedState=p}}function UU(t,e){if(typeof t!="function")throw Error(V(191,t));t.call(e)}function EU(t,e){var A=t.callbacks;if(A!==null)for(t.callbacks=null,t=0;t<A.length;t++)UU(A[t],e)}var gu=gl(null),cm=gl(0);function Mb(t,e){t=ir,ft(cm,t),ft(gu,e),ir=t|e.baseLanes}function ay(){ft(cm,ir),ft(gu,gu.current)}function jy(){ir=cm.current,EA(gu),EA(cm)}var qa=gl(null),gn=null;function Jr(t){var e=t.alternate;ft(Yt,Yt.current&1),ft(qa,t),gn===null&&(e===null||gu.current!==null||e.memoizedState!==null)&&(gn=t)}function ny(t){ft(Yt,Yt.current),ft(qa,t),gn===null&&(gn=t)}function LU(t){t.tag===22?(ft(Yt,Yt.current),ft(qa,t),gn===null&&(gn=t)):Wr(t)}function Wr(){ft(Yt,Yt.current),ft(qa,qa.current)}function Na(t){EA(qa),gn===t&&(gn=null),EA(Yt)}var Yt=gl(0);function fm(t){for(var e=t;e!==null;){if(e.tag===13){var A=e.memoizedState;if(A!==null&&(A=A.dehydrated,A===null||vy(A)||Sy(A)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var lr=0,Ue=null,lt=null,AA=null,dm=!1,cu=!1,wi=!1,hm=0,Vf=0,fu=null,fK=0;function Gt(){throw Error(V(321))}function Zy(t,e){if(e===null)return!1;for(var A=0;A<e.length&&A<t.length;A++)if(!Xa(t[A],e[A]))return!1;return!0}function Jy(t,e,A,a,n,l){return lr=l,Ue=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ce.H=t===null||t.memoizedState===null?lE:i4,wi=!1,l=A(a,n),wi=!1,cu&&(l=FU(e,A,a,n)),QU(t),l}function QU(t){Ce.H=Pf;var e=lt!==null&<.next!==null;if(lr=0,AA=lt=Ue=null,dm=!1,Vf=0,fu=null,e)throw Error(V(300));t===null||lA||(t=t.dependencies,t!==null&&sm(t)&&(lA=!0))}function FU(t,e,A,a){Ue=t;var n=0;do{if(cu&&(fu=null),Vf=0,cu=!1,25<=n)throw Error(V(301));if(n+=1,AA=lt=null,t.updateQueue!=null){var l=t.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}Ce.H=rE,l=e(A,a)}while(cu);return l}function dK(){var t=Ce.H,e=t.useState()[0];return e=typeof e.then=="function"?ad(e):e,t=t.useState()[0],(lt!==null?lt.memoizedState:null)!==t&&(Ue.flags|=1024),e}function Wy(){var t=hm!==0;return hm=0,t}function $y(t,e,A){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~A}function e4(t){if(dm){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}dm=!1}lr=0,AA=lt=Ue=null,cu=!1,Vf=hm=0,fu=null}function aa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return AA===null?Ue.memoizedState=AA=t:AA=AA.next=t,AA}function jt(){if(lt===null){var t=Ue.alternate;t=t!==null?t.memoizedState:null}else t=lt.next;var e=AA===null?Ue.memoizedState:AA.next;if(e!==null)AA=e,lt=t;else{if(t===null)throw Ue.alternate===null?Error(V(467)):Error(V(310));lt=t,t={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},AA===null?Ue.memoizedState=AA=t:AA=AA.next=t}return AA}function _m(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ad(t){var e=Vf;return Vf+=1,fu===null&&(fu=[]),t=vU(fu,t,e),e=Ue,(AA===null?e.memoizedState:AA.next)===null&&(e=e.alternate,Ce.H=e===null||e.memoizedState===null?lE:i4),t}function Om(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ad(t);if(t.$$typeof===Wl)return NA(t)}throw Error(V(438,String(t)))}function t4(t){var e=null,A=Ue.updateQueue;if(A!==null&&(e=A.memoCache),e==null){var a=Ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),A===null&&(A=_m(),Ue.updateQueue=A),A.memoCache=e,A=e.data[e.index],A===void 0)for(A=e.data[e.index]=Array(t),a=0;a<t;a++)A[a]=WN;return e.index++,A}function rr(t,e){return typeof e=="function"?e(t):e}function X0(t){var e=jt();return A4(e,lt,t)}function A4(t,e,A){var a=t.queue;if(a===null)throw Error(V(311));a.lastRenderedReducer=A;var n=t.baseQueue,l=a.pending;if(l!==null){if(n!==null){var i=n.next;n.next=l.next,l.next=i}e.baseQueue=n=l,a.pending=null}if(l=t.baseState,n===null)t.memoizedState=l;else{e=n.next;var s=i=null,c=null,d=e,h=!1;do{var p=d.lane&-536870913;if(p!==d.lane?(Ne&p)===p:(lr&p)===p){var m=d.revertLane;if(m===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),p===mu&&(h=!0);else if((lr&m)===m){d=d.next,m===mu&&(h=!0);continue}else p={lane:0,revertLane:d.revertLane,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},c===null?(s=c=p,i=l):c=c.next=p,Ue.lanes|=m,Bo|=m;p=d.action,wi&&A(l,p),l=d.hasEagerState?d.eagerState:A(l,p)}else m={lane:p,revertLane:d.revertLane,gesture:d.gesture,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},c===null?(s=c=m,i=l):c=c.next=m,Ue.lanes|=p,Bo|=p;d=d.next}while(d!==null&&d!==e);if(c===null?i=l:c.next=s,!Xa(l,t.memoizedState)&&(lA=!0,h&&(A=su,A!==null)))throw A;t.memoizedState=l,t.baseState=i,t.baseQueue=c,a.lastRenderedState=l}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function pC(t){var e=jt(),A=e.queue;if(A===null)throw Error(V(311));A.lastRenderedReducer=t;var a=A.dispatch,n=A.pending,l=e.memoizedState;if(n!==null){A.pending=null;var i=n=n.next;do l=t(l,i.action),i=i.next;while(i!==n);Xa(l,e.memoizedState)||(lA=!0),e.memoizedState=l,e.baseQueue===null&&(e.baseState=l),A.lastRenderedState=l}return[l,a]}function TU(t,e,A){var a=Ue,n=jt(),l=Ke;if(l){if(A===void 0)throw Error(V(407));A=A()}else A=e();var i=!Xa((lt||n).memoizedState,A);if(i&&(n.memoizedState=A,lA=!0),n=n.queue,a4(RU.bind(null,a,n,t),[t]),n.getSnapshot!==e||i||AA!==null&&AA.memoizedState.tag&1){if(a.flags|=2048,Bu(9,{destroy:void 0},HU.bind(null,a,n,A,e),null),st===null)throw Error(V(349));l||(lr&127)!==0||IU(a,e,A)}return A}function IU(t,e,A){t.flags|=16384,t={getSnapshot:e,value:A},e=Ue.updateQueue,e===null?(e=_m(),Ue.updateQueue=e,e.stores=[t]):(A=e.stores,A===null?e.stores=[t]:A.push(t))}function HU(t,e,A,a){e.value=A,e.getSnapshot=a,DU(e)&&MU(t)}function RU(t,e,A){return A(function(){DU(e)&&MU(t)})}function DU(t){var e=t.getSnapshot;t=t.value;try{var A=e();return!Xa(t,A)}catch{return!0}}function MU(t){var e=Ei(t,2);e!==null&&ga(e,t,2)}function ly(t){var e=aa();if(typeof t=="function"){var A=t;if(t=A(),wi){eo(!0);try{A()}finally{eo(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:t},e}function _U(t,e,A,a){return t.baseState=A,A4(t,lt,typeof a=="function"?a:rr)}function hK(t,e,A,a,n){if(Gm(t))throw Error(V(485));if(t=e.action,t!==null){var l={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){l.listeners.push(i)}};Ce.T!==null?A(!0):l.isTransition=!1,a(l),A=e.pending,A===null?(l.next=e.pending=l,OU(e,l)):(l.next=A.next,e.pending=A.next=l)}}function OU(t,e){var A=e.action,a=e.payload,n=t.state;if(e.isTransition){var l=Ce.T,i={};Ce.T=i;try{var s=A(n,a),c=Ce.S;c!==null&&c(i,s),_b(t,e,s)}catch(d){ry(t,e,d)}finally{l!==null&&i.types!==null&&(l.types=i.types),Ce.T=l}}else try{l=A(n,a),_b(t,e,l)}catch(d){ry(t,e,d)}}function _b(t,e,A){A!==null&&typeof A=="object"&&typeof A.then=="function"?A.then(function(a){Ob(t,e,a)},function(a){return ry(t,e,a)}):Ob(t,e,A)}function Ob(t,e,A){e.status="fulfilled",e.value=A,NU(e),t.state=A,e=t.pending,e!==null&&(A=e.next,A===e?t.pending=null:(A=A.next,e.next=A,OU(t,A)))}function ry(t,e,A){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=A,NU(e),e=e.next;while(e!==a)}t.action=null}function NU(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function GU(t,e){return e}function Nb(t,e){if(Ke){var A=st.formState;if(A!==null){e:{var a=Ue;if(Ke){if(Ct){t:{for(var n=Ct,l=mn;n.nodeType!==8;){if(!l){n=null;break t}if(n=Bn(n.nextSibling),n===null){n=null;break t}}l=n.data,n=l==="F!"||l==="F"?n:null}if(n){Ct=Bn(n.nextSibling),a=n.data==="F!";break e}}mo(a)}a=!1}a&&(e=A[0])}}return A=aa(),A.memoizedState=A.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:GU,lastRenderedState:e},A.queue=a,A=AE.bind(null,Ue,a),a.dispatch=A,a=ly(!1),l=o4.bind(null,Ue,!1,a.queue),a=aa(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,A=hK.bind(null,Ue,n,l,A),n.dispatch=A,a.memoizedState=t,[e,A,!1]}function Gb(t){var e=jt();return KU(e,lt,t)}function KU(t,e,A){if(e=A4(t,e,GU)[0],t=X0(rr)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=ad(e)}catch(i){throw i===Eu?Mm:i}else a=e;e=jt();var n=e.queue,l=n.dispatch;return A!==e.memoizedState&&(Ue.flags|=2048,Bu(9,{destroy:void 0},pK.bind(null,n,A),null)),[a,l,t]}function pK(t,e){t.action=e}function Kb(t){var e=jt(),A=lt;if(A!==null)return KU(e,A,t);jt(),e=e.memoizedState,A=jt();var a=A.queue.dispatch;return A.memoizedState=t,[e,a,!1]}function Bu(t,e,A,a){return t={tag:t,create:A,deps:a,inst:e,next:null},e=Ue.updateQueue,e===null&&(e=_m(),Ue.updateQueue=e),A=e.lastEffect,A===null?e.lastEffect=t.next=t:(a=A.next,A.next=t,t.next=a,e.lastEffect=t),t}function zU(){return jt().memoizedState}function q0(t,e,A,a){var n=aa();Ue.flags|=t,n.memoizedState=Bu(1|e,{destroy:void 0},A,a===void 0?null:a)}function Nm(t,e,A,a){var n=jt();a=a===void 0?null:a;var l=n.memoizedState.inst;lt!==null&&a!==null&&Zy(a,lt.memoizedState.deps)?n.memoizedState=Bu(e,l,A,a):(Ue.flags|=t,n.memoizedState=Bu(1|e,l,A,a))}function zb(t,e){q0(8390656,8,t,e)}function a4(t,e){Nm(2048,8,t,e)}function mK(t){Ue.flags|=4;var e=Ue.updateQueue;if(e===null)e=_m(),Ue.updateQueue=e,e.events=[t];else{var A=e.events;A===null?e.events=[t]:A.push(t)}}function VU(t){var e=jt().memoizedState;return mK({ref:e,nextImpl:t}),function(){if((Ze&2)!==0)throw Error(V(440));return e.impl.apply(void 0,arguments)}}function PU(t,e){return Nm(4,2,t,e)}function kU(t,e){return Nm(4,4,t,e)}function XU(t,e){if(typeof e=="function"){t=t();var A=e(t);return function(){typeof A=="function"?A():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function qU(t,e,A){A=A!=null?A.concat([t]):null,Nm(4,4,XU.bind(null,e,t),A)}function n4(){}function YU(t,e){var A=jt();e=e===void 0?null:e;var a=A.memoizedState;return e!==null&&Zy(e,a[1])?a[0]:(A.memoizedState=[t,e],t)}function jU(t,e){var A=jt();e=e===void 0?null:e;var a=A.memoizedState;if(e!==null&&Zy(e,a[1]))return a[0];if(a=t(),wi){eo(!0);try{t()}finally{eo(!1)}}return A.memoizedState=[a,e],a}function l4(t,e,A){return A===void 0||(lr&1073741824)!==0&&(Ne&261930)===0?t.memoizedState=e:(t.memoizedState=A,t=_E(),Ue.lanes|=t,Bo|=t,A)}function ZU(t,e,A,a){return Xa(A,e)?A:gu.current!==null?(t=l4(t,A,a),Xa(t,e)||(lA=!0),t):(lr&42)===0||(lr&1073741824)!==0&&(Ne&261930)===0?(lA=!0,t.memoizedState=A):(t=_E(),Ue.lanes|=t,Bo|=t,e)}function JU(t,e,A,a,n){var l=Je.p;Je.p=l!==0&&8>l?l:8;var i=Ce.T,s={};Ce.T=s,o4(t,!1,e,A);try{var c=n(),d=Ce.S;if(d!==null&&d(s,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var h=cK(c,a);Ff(t,e,h,ka(t))}else Ff(t,e,a,ka(t))}catch(p){Ff(t,e,{then:function(){},status:"rejected",reason:p},ka())}finally{Je.p=l,i!==null&&s.types!==null&&(i.types=s.types),Ce.T=i}}function gK(){}function oy(t,e,A,a){if(t.tag!==5)throw Error(V(476));var n=WU(t).queue;JU(t,n,e,hi,A===null?gK:function(){return $U(t),A(a)})}function WU(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:hi,baseState:hi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:hi},next:null};var A={};return e.next={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:A},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function $U(t){var e=WU(t);e.next===null&&(e=t.alternate.memoizedState),Ff(t,e.next.queue,{},ka())}function r4(){return NA(qf)}function eE(){return jt().memoizedState}function tE(){return jt().memoizedState}function BK(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var A=ka();t=oo(A);var a=io(e,t,A);a!==null&&(ga(a,e,A),Ef(a,e,A)),e={cache:ky()},t.payload=e;return}e=e.return}}function CK(t,e,A){var a=ka();A={lane:a,revertLane:0,gesture:null,action:A,hasEagerState:!1,eagerState:null,next:null},Gm(t)?aE(e,A):(A=Ky(t,e,A,a),A!==null&&(ga(A,t,a),nE(A,e,a)))}function AE(t,e,A){var a=ka();Ff(t,e,A,a)}function Ff(t,e,A,a){var n={lane:a,revertLane:0,gesture:null,action:A,hasEagerState:!1,eagerState:null,next:null};if(Gm(t))aE(e,n);else{var l=t.alternate;if(t.lanes===0&&(l===null||l.lanes===0)&&(l=e.lastRenderedReducer,l!==null))try{var i=e.lastRenderedState,s=l(i,A);if(n.hasEagerState=!0,n.eagerState=s,Xa(s,i))return Dm(t,e,n,0),st===null&&Rm(),!1}catch{}if(A=Ky(t,e,n,a),A!==null)return ga(A,t,a),nE(A,e,a),!0}return!1}function o4(t,e,A,a){if(a={lane:2,revertLane:m4(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Gm(t)){if(e)throw Error(V(479))}else e=Ky(t,A,a,2),e!==null&&ga(e,t,2)}function Gm(t){var e=t.alternate;return t===Ue||e!==null&&e===Ue}function aE(t,e){cu=dm=!0;var A=t.pending;A===null?e.next=e:(e.next=A.next,A.next=e),t.pending=e}function nE(t,e,A){if((A&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,A|=a,e.lanes=A,V6(t,A)}}var Pf={readContext:NA,use:Om,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};Pf.useEffectEvent=Gt;var lE={readContext:NA,use:Om,useCallback:function(t,e){return aa().memoizedState=[t,e===void 0?null:e],t},useContext:NA,useEffect:zb,useImperativeHandle:function(t,e,A){A=A!=null?A.concat([t]):null,q0(4194308,4,XU.bind(null,e,t),A)},useLayoutEffect:function(t,e){return q0(4194308,4,t,e)},useInsertionEffect:function(t,e){q0(4,2,t,e)},useMemo:function(t,e){var A=aa();e=e===void 0?null:e;var a=t();if(wi){eo(!0);try{t()}finally{eo(!1)}}return A.memoizedState=[a,e],a},useReducer:function(t,e,A){var a=aa();if(A!==void 0){var n=A(e);if(wi){eo(!0);try{A(e)}finally{eo(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=CK.bind(null,Ue,t),[a.memoizedState,t]},useRef:function(t){var e=aa();return t={current:t},e.memoizedState=t},useState:function(t){t=ly(t);var e=t.queue,A=AE.bind(null,Ue,e);return e.dispatch=A,[t.memoizedState,A]},useDebugValue:n4,useDeferredValue:function(t,e){var A=aa();return l4(A,t,e)},useTransition:function(){var t=ly(!1);return t=JU.bind(null,Ue,t.queue,!0,!1),aa().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,A){var a=Ue,n=aa();if(Ke){if(A===void 0)throw Error(V(407));A=A()}else{if(A=e(),st===null)throw Error(V(349));(Ne&127)!==0||IU(a,e,A)}n.memoizedState=A;var l={value:A,getSnapshot:e};return n.queue=l,zb(RU.bind(null,a,l,t),[t]),a.flags|=2048,Bu(9,{destroy:void 0},HU.bind(null,a,l,A,e),null),A},useId:function(){var t=aa(),e=st.identifierPrefix;if(Ke){var A=hl,a=dl;A=(a&~(1<<32-Pa(a)-1)).toString(32)+A,e="_"+e+"R_"+A,A=hm++,0<A&&(e+="H"+A.toString(32)),e+="_"}else A=fK++,e="_"+e+"r_"+A.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:r4,useFormState:Nb,useActionState:Nb,useOptimistic:function(t){var e=aa();e.memoizedState=e.baseState=t;var A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=A,e=o4.bind(null,Ue,!0,A),A.dispatch=e,[t,e]},useMemoCache:t4,useCacheRefresh:function(){return aa().memoizedState=BK.bind(null,Ue)},useEffectEvent:function(t){var e=aa(),A={impl:t};return e.memoizedState=A,function(){if((Ze&2)!==0)throw Error(V(440));return A.impl.apply(void 0,arguments)}}},i4={readContext:NA,use:Om,useCallback:YU,useContext:NA,useEffect:a4,useImperativeHandle:qU,useInsertionEffect:PU,useLayoutEffect:kU,useMemo:jU,useReducer:X0,useRef:zU,useState:function(){return X0(rr)},useDebugValue:n4,useDeferredValue:function(t,e){var A=jt();return ZU(A,lt.memoizedState,t,e)},useTransition:function(){var t=X0(rr)[0],e=jt().memoizedState;return[typeof t=="boolean"?t:ad(t),e]},useSyncExternalStore:TU,useId:eE,useHostTransitionStatus:r4,useFormState:Gb,useActionState:Gb,useOptimistic:function(t,e){var A=jt();return _U(A,lt,t,e)},useMemoCache:t4,useCacheRefresh:tE};i4.useEffectEvent=VU;var rE={readContext:NA,use:Om,useCallback:YU,useContext:NA,useEffect:a4,useImperativeHandle:qU,useInsertionEffect:PU,useLayoutEffect:kU,useMemo:jU,useReducer:pC,useRef:zU,useState:function(){return pC(rr)},useDebugValue:n4,useDeferredValue:function(t,e){var A=jt();return lt===null?l4(A,t,e):ZU(A,lt.memoizedState,t,e)},useTransition:function(){var t=pC(rr)[0],e=jt().memoizedState;return[typeof t=="boolean"?t:ad(t),e]},useSyncExternalStore:TU,useId:eE,useHostTransitionStatus:r4,useFormState:Kb,useActionState:Kb,useOptimistic:function(t,e){var A=jt();return lt!==null?_U(A,lt,t,e):(A.baseState=t,[t,A.queue.dispatch])},useMemoCache:t4,useCacheRefresh:tE};rE.useEffectEvent=VU;function mC(t,e,A,a){e=t.memoizedState,A=A(a,e),A=A==null?e:yt({},e,A),t.memoizedState=A,t.lanes===0&&(t.updateQueue.baseState=A)}var iy={enqueueSetState:function(t,e,A){t=t._reactInternals;var a=ka(),n=oo(a);n.payload=e,A!=null&&(n.callback=A),e=io(t,n,a),e!==null&&(ga(e,t,a),Ef(e,t,a))},enqueueReplaceState:function(t,e,A){t=t._reactInternals;var a=ka(),n=oo(a);n.tag=1,n.payload=e,A!=null&&(n.callback=A),e=io(t,n,a),e!==null&&(ga(e,t,a),Ef(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var A=ka(),a=oo(A);a.tag=2,e!=null&&(a.callback=e),e=io(t,a,A),e!==null&&(ga(e,t,A),Ef(e,t,A))}};function Vb(t,e,A,a,n,l,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,l,i):e.prototype&&e.prototype.isPureReactComponent?!Nf(A,a)||!Nf(n,l):!0}function Pb(t,e,A,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(A,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(A,a),e.state!==t&&iy.enqueueReplaceState(e,e.state,null)}function vi(t,e){var A=e;if("ref"in e){A={};for(var a in e)a!=="ref"&&(A[a]=e[a])}if(t=t.defaultProps){A===e&&(A=yt({},A));for(var n in t)A[n]===void 0&&(A[n]=t[n])}return A}function oE(t){rm(t)}function iE(t){console.error(t)}function sE(t){rm(t)}function pm(t,e){try{var A=t.onUncaughtError;A(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function kb(t,e,A){try{var a=t.onCaughtError;a(A.value,{componentStack:A.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function sy(t,e,A){return A=oo(A),A.tag=3,A.payload={element:null},A.callback=function(){pm(t,e)},A}function uE(t){return t=oo(t),t.tag=3,t}function cE(t,e,A,a){var n=A.type.getDerivedStateFromError;if(typeof n=="function"){var l=a.value;t.payload=function(){return n(l)},t.callback=function(){kb(e,A,a)}}var i=A.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){kb(e,A,a),typeof n!="function"&&(so===null?so=new Set([this]):so.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function yK(t,e,A,a,n){if(A.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=A.alternate,e!==null&&Uu(e,A,n,!0),A=qa.current,A!==null){switch(A.tag){case 31:case 13:return gn===null?ym():A.alternate===null&&Kt===0&&(Kt=3),A.flags&=-257,A.flags|=65536,A.lanes=n,a===um?A.flags|=16384:(e=A.updateQueue,e===null?A.updateQueue=new Set([a]):e.add(a),EC(t,a,n)),!1;case 22:return A.flags|=65536,a===um?A.flags|=16384:(e=A.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},A.updateQueue=e):(A=e.retryQueue,A===null?e.retryQueue=new Set([a]):A.add(a)),EC(t,a,n)),!1}throw Error(V(435,A.tag))}return EC(t,a,n),ym(),!1}if(Ke)return e=qa.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==ZC&&(t=Error(V(422),{cause:a}),Kf(pn(t,A)))):(a!==ZC&&(e=Error(V(423),{cause:a}),Kf(pn(e,A))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=pn(a,A),n=sy(t.stateNode,a,n),hC(t,n),Kt!==4&&(Kt=2)),!1;var l=Error(V(520),{cause:a});if(l=pn(l,A),Hf===null?Hf=[l]:Hf.push(l),Kt!==4&&(Kt=2),e===null)return!0;a=pn(a,A),A=e;do{switch(A.tag){case 3:return A.flags|=65536,t=n&-n,A.lanes|=t,t=sy(A.stateNode,a,t),hC(A,t),!1;case 1:if(e=A.type,l=A.stateNode,(A.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(so===null||!so.has(l))))return A.flags|=65536,n&=-n,A.lanes|=n,n=uE(n),cE(n,t,A,a),hC(A,n),!1}A=A.return}while(A!==null);return!1}var s4=Error(V(461)),lA=!1;function MA(t,e,A,a){e.child=t===null?bU(e,null,A,a):xi(e,t.child,A,a)}function Xb(t,e,A,a,n){A=A.render;var l=e.ref;if("ref"in a){var i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}else i=a;return yi(e),a=Jy(t,e,A,i,l,n),s=Wy(),t!==null&&!lA?($y(t,e,n),or(t,e,n)):(Ke&&s&&Vy(e),e.flags|=1,MA(t,e,a,n),e.child)}function qb(t,e,A,a,n){if(t===null){var l=A.type;return typeof l=="function"&&!zy(l)&&l.defaultProps===void 0&&A.compare===null?(e.tag=15,e.type=l,fE(t,e,l,a,n)):(t=P0(A.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(l=t.child,!u4(t,n)){var i=l.memoizedProps;if(A=A.compare,A=A!==null?A:Nf,A(i,a)&&t.ref===e.ref)return or(t,e,n)}return e.flags|=1,t=tr(l,a),t.ref=e.ref,t.return=e,e.child=t}function fE(t,e,A,a,n){if(t!==null){var l=t.memoizedProps;if(Nf(l,a)&&t.ref===e.ref)if(lA=!1,e.pendingProps=a=l,u4(t,n))(t.flags&131072)!==0&&(lA=!0);else return e.lanes=t.lanes,or(t,e,n)}return uy(t,e,A,a,n)}function dE(t,e,A,a){var n=a.children,l=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(l=l!==null?l.baseLanes|A:A,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~l}else a=0,e.child=null;return Yb(t,e,l,A,a)}if((A&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&k0(e,l!==null?l.cachePool:null),l!==null?Mb(e,l):ay(),LU(e);else return a=e.lanes=536870912,Yb(t,e,l!==null?l.baseLanes|A:A,A,a)}else l!==null?(k0(e,l.cachePool),Mb(e,l),Wr(e),e.memoizedState=null):(t!==null&&k0(e,null),ay(),Wr(e));return MA(t,e,n,A),e.child}function xf(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Yb(t,e,A,a,n){var l=Xy();return l=l===null?null:{parent:nA._currentValue,pool:l},e.memoizedState={baseLanes:A,cachePool:l},t!==null&&k0(e,null),ay(),LU(e),t!==null&&Uu(t,e,a,!0),e.childLanes=n,null}function Y0(t,e){return e=mm({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function jb(t,e,A){return xi(e,t.child,null,A),t=Y0(e,e.pendingProps),t.flags|=2,Na(e),e.memoizedState=null,t}function xK(t,e,A){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ke){if(a.mode==="hidden")return t=Y0(e,a),e.lanes=536870912,xf(null,t);if(ny(e),(t=Ct)?(t=lL(t,mn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:po!==null?{id:dl,overflow:hl}:null,retryLane:536870912,hydrationErrors:null},A=BU(t),A.return=e,e.child=A,OA=e,Ct=null)):t=null,t===null)throw mo(e);return e.lanes=536870912,null}return Y0(e,a)}var l=t.memoizedState;if(l!==null){var i=l.dehydrated;if(ny(e),n)if(e.flags&256)e.flags&=-257,e=jb(t,e,A);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(V(558));else if(lA||Uu(t,e,A,!1),n=(A&t.childLanes)!==0,lA||n){if(a=st,a!==null&&(i=P6(a,A),i!==0&&i!==l.retryLane))throw l.retryLane=i,Ei(t,i),ga(a,t,i),s4;ym(),e=jb(t,e,A)}else t=l.treeContext,Ct=Bn(i.nextSibling),OA=e,Ke=!0,ro=null,mn=!1,t!==null&&yU(e,t),e=Y0(e,a),e.flags|=4096;return e}return t=tr(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function j0(t,e){var A=e.ref;if(A===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof A!="function"&&typeof A!="object")throw Error(V(284));(t===null||t.ref!==A)&&(e.flags|=4194816)}}function uy(t,e,A,a,n){return yi(e),A=Jy(t,e,A,a,void 0,n),a=Wy(),t!==null&&!lA?($y(t,e,n),or(t,e,n)):(Ke&&a&&Vy(e),e.flags|=1,MA(t,e,A,n),e.child)}function Zb(t,e,A,a,n,l){return yi(e),e.updateQueue=null,A=FU(e,a,A,n),QU(t),a=Wy(),t!==null&&!lA?($y(t,e,l),or(t,e,l)):(Ke&&a&&Vy(e),e.flags|=1,MA(t,e,A,l),e.child)}function Jb(t,e,A,a,n){if(yi(e),e.stateNode===null){var l=Au,i=A.contextType;typeof i=="object"&&i!==null&&(l=NA(i)),l=new A(a,l),e.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=iy,e.stateNode=l,l._reactInternals=e,l=e.stateNode,l.props=a,l.state=e.memoizedState,l.refs={},Yy(e),i=A.contextType,l.context=typeof i=="object"&&i!==null?NA(i):Au,l.state=e.memoizedState,i=A.getDerivedStateFromProps,typeof i=="function"&&(mC(e,A,i,a),l.state=e.memoizedState),typeof A.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(i=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),i!==l.state&&iy.enqueueReplaceState(l,l.state,null),Qf(e,a,l,n),Lf(),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){l=e.stateNode;var s=e.memoizedProps,c=vi(A,s);l.props=c;var d=l.context,h=A.contextType;i=Au,typeof h=="object"&&h!==null&&(i=NA(h));var p=A.getDerivedStateFromProps;h=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s||d!==i)&&Pb(e,l,a,i),jr=!1;var m=e.memoizedState;l.state=m,Qf(e,a,l,n),Lf(),d=e.memoizedState,s||m!==d||jr?(typeof p=="function"&&(mC(e,A,p,a),d=e.memoizedState),(c=jr||Vb(e,A,c,a,m,d,i))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(e.flags|=4194308)):(typeof l.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=d),l.props=a,l.state=d,l.context=i,a=c):(typeof l.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{l=e.stateNode,ty(t,e),i=e.memoizedProps,h=vi(A,i),l.props=h,p=e.pendingProps,m=l.context,d=A.contextType,c=Au,typeof d=="object"&&d!==null&&(c=NA(d)),s=A.getDerivedStateFromProps,(d=typeof s=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==p||m!==c)&&Pb(e,l,a,c),jr=!1,m=e.memoizedState,l.state=m,Qf(e,a,l,n),Lf();var B=e.memoizedState;i!==p||m!==B||jr||t!==null&&t.dependencies!==null&&sm(t.dependencies)?(typeof s=="function"&&(mC(e,A,s,a),B=e.memoizedState),(h=jr||Vb(e,A,h,a,m,B,c)||t!==null&&t.dependencies!==null&&sm(t.dependencies))?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(a,B,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(a,B,c)),typeof l.componentDidUpdate=="function"&&(e.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=B),l.props=a,l.state=B,l.context=c,a=h):(typeof l.componentDidUpdate!="function"||i===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),a=!1)}return l=a,j0(t,e),a=(e.flags&128)!==0,l||a?(l=e.stateNode,A=a&&typeof A.getDerivedStateFromError!="function"?null:l.render(),e.flags|=1,t!==null&&a?(e.child=xi(e,t.child,null,n),e.child=xi(e,null,A,n)):MA(t,e,A,n),e.memoizedState=l.state,t=e.child):t=or(t,e,n),t}function Wb(t,e,A,a){return Ci(),e.flags|=256,MA(t,e,A,a),e.child}var gC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function BC(t){return{baseLanes:t,cachePool:wU()}}function CC(t,e,A){return t=t!==null?t.childLanes&~A:0,e&&(t|=Ka),t}function hE(t,e,A){var a=e.pendingProps,n=!1,l=(e.flags&128)!==0,i;if((i=l)||(i=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),i&&(n=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ke){if(n?Jr(e):Wr(e),(t=Ct)?(t=lL(t,mn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:po!==null?{id:dl,overflow:hl}:null,retryLane:536870912,hydrationErrors:null},A=BU(t),A.return=e,e.child=A,OA=e,Ct=null)):t=null,t===null)throw mo(e);return Sy(t)?e.lanes=32:e.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(Wr(e),n=e.mode,s=mm({mode:"hidden",children:s},n),a=pi(a,n,A,null),s.return=e,a.return=e,s.sibling=a,e.child=s,a=e.child,a.memoizedState=BC(A),a.childLanes=CC(t,i,A),e.memoizedState=gC,xf(null,a)):(Jr(e),cy(e,s))}var c=t.memoizedState;if(c!==null&&(s=c.dehydrated,s!==null)){if(l)e.flags&256?(Jr(e),e.flags&=-257,e=yC(t,e,A)):e.memoizedState!==null?(Wr(e),e.child=t.child,e.flags|=128,e=null):(Wr(e),s=a.fallback,n=e.mode,a=mm({mode:"visible",children:a.children},n),s=pi(s,n,A,null),s.flags|=2,a.return=e,s.return=e,a.sibling=s,e.child=a,xi(e,t.child,null,A),a=e.child,a.memoizedState=BC(A),a.childLanes=CC(t,i,A),e.memoizedState=gC,e=xf(null,a));else if(Jr(e),Sy(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var d=i.dgst;i=d,a=Error(V(419)),a.stack="",a.digest=i,Kf({value:a,source:null,stack:null}),e=yC(t,e,A)}else if(lA||Uu(t,e,A,!1),i=(A&t.childLanes)!==0,lA||i){if(i=st,i!==null&&(a=P6(i,A),a!==0&&a!==c.retryLane))throw c.retryLane=a,Ei(t,a),ga(i,t,a),s4;vy(s)||ym(),e=yC(t,e,A)}else vy(s)?(e.flags|=192,e.child=t.child,e=null):(t=c.treeContext,Ct=Bn(s.nextSibling),OA=e,Ke=!0,ro=null,mn=!1,t!==null&&yU(e,t),e=cy(e,a.children),e.flags|=4096);return e}return n?(Wr(e),s=a.fallback,n=e.mode,c=t.child,d=c.sibling,a=tr(c,{mode:"hidden",children:a.children}),a.subtreeFlags=c.subtreeFlags&65011712,d!==null?s=tr(d,s):(s=pi(s,n,A,null),s.flags|=2),s.return=e,a.return=e,a.sibling=s,e.child=a,xf(null,a),a=e.child,s=t.child.memoizedState,s===null?s=BC(A):(n=s.cachePool,n!==null?(c=nA._currentValue,n=n.parent!==c?{parent:c,pool:c}:n):n=wU(),s={baseLanes:s.baseLanes|A,cachePool:n}),a.memoizedState=s,a.childLanes=CC(t,i,A),e.memoizedState=gC,xf(t.child,a)):(Jr(e),A=t.child,t=A.sibling,A=tr(A,{mode:"visible",children:a.children}),A.return=e,A.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=A,e.memoizedState=null,A)}function cy(t,e){return e=mm({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function mm(t,e){return t=Ga(22,t,null,e),t.lanes=0,t}function yC(t,e,A){return xi(e,t.child,null,A),t=cy(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function $b(t,e,A){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),WC(t.return,e,A)}function xC(t,e,A,a,n,l){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:A,tailMode:n,treeForkCount:l}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=A,i.tailMode=n,i.treeForkCount=l)}function pE(t,e,A){var a=e.pendingProps,n=a.revealOrder,l=a.tail;a=a.children;var i=Yt.current,s=(i&2)!==0;if(s?(i=i&1|2,e.flags|=128):i&=1,ft(Yt,i),MA(t,e,a,A),a=Ke?Gf:0,!s&&t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&$b(t,A,e);else if(t.tag===19)$b(t,A,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(A=e.child,n=null;A!==null;)t=A.alternate,t!==null&&fm(t)===null&&(n=A),A=A.sibling;A=n,A===null?(n=e.child,e.child=null):(n=A.sibling,A.sibling=null),xC(e,!1,n,A,l,a);break;case"backwards":case"unstable_legacy-backwards":for(A=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&fm(t)===null){e.child=n;break}t=n.sibling,n.sibling=A,A=n,n=t}xC(e,!0,A,null,l,a);break;case"together":xC(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function or(t,e,A){if(t!==null&&(e.dependencies=t.dependencies),Bo|=e.lanes,(A&e.childLanes)===0)if(t!==null){if(Uu(t,e,A,!1),(A&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(V(153));if(e.child!==null){for(t=e.child,A=tr(t,t.pendingProps),e.child=A,A.return=e;t.sibling!==null;)t=t.sibling,A=A.sibling=tr(t,t.pendingProps),A.return=e;A.sibling=null}return e.child}function u4(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&sm(t)))}function wK(t,e,A){switch(e.tag){case 3:Am(e,e.stateNode.containerInfo),Zr(e,nA,t.memoizedState.cache),Ci();break;case 27:case 5:NC(e);break;case 4:Am(e,e.stateNode.containerInfo);break;case 10:Zr(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ny(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Jr(e),e.flags|=128,null):(A&e.child.childLanes)!==0?hE(t,e,A):(Jr(e),t=or(t,e,A),t!==null?t.sibling:null);Jr(e);break;case 19:var n=(t.flags&128)!==0;if(a=(A&e.childLanes)!==0,a||(Uu(t,e,A,!1),a=(A&e.childLanes)!==0),n){if(a)return pE(t,e,A);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),ft(Yt,Yt.current),a)break;return null;case 22:return e.lanes=0,dE(t,e,A,e.pendingProps);case 24:Zr(e,nA,t.memoizedState.cache)}return or(t,e,A)}function mE(t,e,A){if(t!==null)if(t.memoizedProps!==e.pendingProps)lA=!0;else{if(!u4(t,A)&&(e.flags&128)===0)return lA=!1,wK(t,e,A);lA=(t.flags&131072)!==0}else lA=!1,Ke&&(e.flags&1048576)!==0&&CU(e,Gf,e.index);switch(e.lanes=0,e.tag){case 16:e:{var a=e.pendingProps;if(t=fi(e.elementType),e.type=t,typeof t=="function")zy(t)?(a=vi(t,a),e.tag=1,e=Jb(null,e,t,a,A)):(e.tag=0,e=uy(null,e,t,a,A));else{if(t!=null){var n=t.$$typeof;if(n===Ly){e.tag=11,e=Xb(null,e,t,a,A);break e}else if(n===Qy){e.tag=14,e=qb(null,e,t,a,A);break e}}throw e=_C(t)||t,Error(V(306,e,""))}}return e;case 0:return uy(t,e,e.type,e.pendingProps,A);case 1:return a=e.type,n=vi(a,e.pendingProps),Jb(t,e,a,n,A);case 3:e:{if(Am(e,e.stateNode.containerInfo),t===null)throw Error(V(387));a=e.pendingProps;var l=e.memoizedState;n=l.element,ty(t,e),Qf(e,a,null,A);var i=e.memoizedState;if(a=i.cache,Zr(e,nA,a),a!==l.cache&&$C(e,[nA],A,!0),Lf(),a=i.element,l.isDehydrated)if(l={element:a,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=l,e.memoizedState=l,e.flags&256){e=Wb(t,e,a,A);break e}else if(a!==n){n=pn(Error(V(424)),e),Kf(n),e=Wb(t,e,a,A);break e}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ct=Bn(t.firstChild),OA=e,Ke=!0,ro=null,mn=!0,A=bU(e,null,a,A),e.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(Ci(),a===n){e=or(t,e,A);break e}MA(t,e,a,A)}e=e.child}return e;case 26:return j0(t,e),t===null?(A=x6(e.type,null,e.pendingProps,null))?e.memoizedState=A:Ke||(A=e.type,t=e.pendingProps,a=Sm(lo.current).createElement(A),a[_A]=e,a[Ba]=t,GA(a,A,t),UA(a),e.stateNode=a):e.memoizedState=x6(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return NC(e),t===null&&Ke&&(a=e.stateNode=rL(e.type,e.pendingProps,lo.current),OA=e,mn=!0,n=Ct,yo(e.type)?(by=n,Ct=Bn(a.firstChild)):Ct=n),MA(t,e,e.pendingProps.children,A),j0(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ke&&((n=a=Ct)&&(a=ZK(a,e.type,e.pendingProps,mn),a!==null?(e.stateNode=a,OA=e,Ct=Bn(a.firstChild),mn=!1,n=!0):n=!1),n||mo(e)),NC(e),n=e.type,l=e.pendingProps,i=t!==null?t.memoizedProps:null,a=l.children,xy(n,l)?a=null:i!==null&&xy(n,i)&&(e.flags|=32),e.memoizedState!==null&&(n=Jy(t,e,dK,null,null,A),qf._currentValue=n),j0(t,e),MA(t,e,a,A),e.child;case 6:return t===null&&Ke&&((t=A=Ct)&&(A=JK(A,e.pendingProps,mn),A!==null?(e.stateNode=A,OA=e,Ct=null,t=!0):t=!1),t||mo(e)),null;case 13:return hE(t,e,A);case 4:return Am(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=xi(e,null,a,A):MA(t,e,a,A),e.child;case 11:return Xb(t,e,e.type,e.pendingProps,A);case 7:return MA(t,e,e.pendingProps,A),e.child;case 8:return MA(t,e,e.pendingProps.children,A),e.child;case 12:return MA(t,e,e.pendingProps.children,A),e.child;case 10:return a=e.pendingProps,Zr(e,e.type,a.value),MA(t,e,a.children,A),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,yi(e),n=NA(n),a=a(n),e.flags|=1,MA(t,e,a,A),e.child;case 14:return qb(t,e,e.type,e.pendingProps,A);case 15:return fE(t,e,e.type,e.pendingProps,A);case 19:return pE(t,e,A);case 31:return xK(t,e,A);case 22:return dE(t,e,A,e.pendingProps);case 24:return yi(e),a=NA(nA),t===null?(n=Xy(),n===null&&(n=st,l=ky(),n.pooledCache=l,l.refCount++,l!==null&&(n.pooledCacheLanes|=A),n=l),e.memoizedState={parent:a,cache:n},Yy(e),Zr(e,nA,n)):((t.lanes&A)!==0&&(ty(t,e),Qf(e,null,null,A),Lf()),n=t.memoizedState,l=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Zr(e,nA,a)):(a=l.cache,Zr(e,nA,a),a!==n.cache&&$C(e,[nA],A,!0))),MA(t,e,e.pendingProps.children,A),e.child;case 29:throw e.pendingProps}throw Error(V(156,e.tag))}function Xl(t){t.flags|=4}function wC(t,e,A,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(GE())t.flags|=8192;else throw gi=um,qy}else t.flags&=-16777217}function e6(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!sL(e))if(GE())t.flags|=8192;else throw gi=um,qy}function H0(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?K6():536870912,t.lanes|=e,Cu|=e)}function hf(t,e){if(!Ke)switch(t.tailMode){case"hidden":e=t.tail;for(var A=null;e!==null;)e.alternate!==null&&(A=e),e=e.sibling;A===null?t.tail=null:A.sibling=null;break;case"collapsed":A=t.tail;for(var a=null;A!==null;)A.alternate!==null&&(a=A),A=A.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,A=0,a=0;if(e)for(var n=t.child;n!==null;)A|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)A|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=A,e}function vK(t,e,A){var a=e.pendingProps;switch(Py(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(e),null;case 1:return Bt(e),null;case 3:return A=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ar(nA),du(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),(t===null||t.child===null)&&(Ps(e)?Xl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,dC())),Bt(e),null;case 26:var n=e.type,l=e.memoizedState;return t===null?(Xl(e),l!==null?(Bt(e),e6(e,l)):(Bt(e),wC(e,n,null,a,A))):l?l!==t.memoizedState?(Xl(e),Bt(e),e6(e,l)):(Bt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Xl(e),Bt(e),wC(e,n,t,a,A)),null;case 27:if(am(e),A=lo.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Xl(e);else{if(!a){if(e.stateNode===null)throw Error(V(166));return Bt(e),null}t=ml.current,Ps(e)?Qb(e,t):(t=rL(n,a,A),e.stateNode=t,Xl(e))}return Bt(e),null;case 5:if(am(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Xl(e);else{if(!a){if(e.stateNode===null)throw Error(V(166));return Bt(e),null}if(l=ml.current,Ps(e))Qb(e,l);else{var i=Sm(lo.current);switch(l){case 1:l=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:l=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":l=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":l=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":l=i.createElement("div"),l.innerHTML="<script></script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?l.multiple=!0:a.size&&(l.size=a.size);break;default:l=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}l[_A]=e,l[Ba]=a;e:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)l.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break e;for(;i.sibling===null;){if(i.return===null||i.return===e)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=l;e:switch(GA(l,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Xl(e)}}return Bt(e),wC(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,A),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Xl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(V(166));if(t=lo.current,Ps(e)){if(t=e.stateNode,A=e.memoizedProps,a=null,n=OA,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[_A]=e,t=!!(t.nodeValue===A||a!==null&&a.suppressHydrationWarning===!0||AL(t.nodeValue,A)),t||mo(e,!0)}else t=Sm(t).createTextNode(a),t[_A]=e,e.stateNode=t}return Bt(e),null;case 31:if(A=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ps(e),A!==null){if(t===null){if(!a)throw Error(V(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(V(557));t[_A]=e}else Ci(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),t=!1}else A=dC(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=A),t=!0;if(!t)return e.flags&256?(Na(e),e):(Na(e),null);if((e.flags&128)!==0)throw Error(V(558))}return Bt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=Ps(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(V(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(V(317));n[_A]=e}else Ci(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),n=!1}else n=dC(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Na(e),e):(Na(e),null)}return Na(e),(e.flags&128)!==0?(e.lanes=A,e):(A=a!==null,t=t!==null&&t.memoizedState!==null,A&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==n&&(a.flags|=2048)),A!==t&&A&&(e.child.flags|=8192),H0(e,e.updateQueue),Bt(e),null);case 4:return du(),t===null&&g4(e.stateNode.containerInfo),Bt(e),null;case 10:return Ar(e.type),Bt(e),null;case 19:if(EA(Yt),a=e.memoizedState,a===null)return Bt(e),null;if(n=(e.flags&128)!==0,l=a.rendering,l===null)if(n)hf(a,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(l=fm(t),l!==null){for(e.flags|=128,hf(a,!1),t=l.updateQueue,e.updateQueue=t,H0(e,t),e.subtreeFlags=0,t=A,A=e.child;A!==null;)gU(A,t),A=A.sibling;return ft(Yt,Yt.current&1|2),Ke&&Zl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&za()>Bm&&(e.flags|=128,n=!0,hf(a,!1),e.lanes=4194304)}else{if(!n)if(t=fm(l),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,H0(e,t),hf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!l.alternate&&!Ke)return Bt(e),null}else 2*za()-a.renderingStartTime>Bm&&A!==536870912&&(e.flags|=128,n=!0,hf(a,!1),e.lanes=4194304);a.isBackwards?(l.sibling=e.child,e.child=l):(t=a.last,t!==null?t.sibling=l:e.child=l,a.last=l)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=za(),t.sibling=null,A=Yt.current,ft(Yt,n?A&1|2:A&1),Ke&&Zl(e,a.treeForkCount),t):(Bt(e),null);case 22:case 23:return Na(e),jy(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(A&536870912)!==0&&(e.flags&128)===0&&(Bt(e),e.subtreeFlags&6&&(e.flags|=8192)):Bt(e),A=e.updateQueue,A!==null&&H0(e,A.retryQueue),A=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(A=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==A&&(e.flags|=2048),t!==null&&EA(mi),null;case 24:return A=null,t!==null&&(A=t.memoizedState.cache),e.memoizedState.cache!==A&&(e.flags|=2048),Ar(nA),Bt(e),null;case 25:return null;case 30:return null}throw Error(V(156,e.tag))}function SK(t,e){switch(Py(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ar(nA),du(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return am(e),null;case 31:if(e.memoizedState!==null){if(Na(e),e.alternate===null)throw Error(V(340));Ci()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Na(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(V(340));Ci()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return EA(Yt),null;case 4:return du(),null;case 10:return Ar(e.type),null;case 22:case 23:return Na(e),jy(),t!==null&&EA(mi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ar(nA),null;case 25:return null;default:return null}}function gE(t,e){switch(Py(e),e.tag){case 3:Ar(nA),du();break;case 26:case 27:case 5:am(e);break;case 4:du();break;case 31:e.memoizedState!==null&&Na(e);break;case 13:Na(e);break;case 19:EA(Yt);break;case 10:Ar(e.type);break;case 22:case 23:Na(e),jy(),t!==null&&EA(mi);break;case 24:Ar(nA)}}function nd(t,e){try{var A=e.updateQueue,a=A!==null?A.lastEffect:null;if(a!==null){var n=a.next;A=n;do{if((A.tag&t)===t){a=void 0;var l=A.create,i=A.inst;a=l(),i.destroy=a}A=A.next}while(A!==n)}}catch(s){At(e,e.return,s)}}function go(t,e,A){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&t)===t){var i=a.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,n=e;var c=A,d=s;try{d()}catch(h){At(n,c,h)}}}a=a.next}while(a!==l)}}catch(h){At(e,e.return,h)}}function BE(t){var e=t.updateQueue;if(e!==null){var A=t.stateNode;try{EU(e,A)}catch(a){At(t,t.return,a)}}}function CE(t,e,A){A.props=vi(t.type,t.memoizedProps),A.state=t.memoizedState;try{A.componentWillUnmount()}catch(a){At(t,e,a)}}function Tf(t,e){try{var A=t.ref;if(A!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof A=="function"?t.refCleanup=A(a):A.current=a}}catch(n){At(t,e,n)}}function pl(t,e){var A=t.ref,a=t.refCleanup;if(A!==null)if(typeof a=="function")try{a()}catch(n){At(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof A=="function")try{A(null)}catch(n){At(t,e,n)}else A.current=null}function yE(t){var e=t.type,A=t.memoizedProps,a=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":A.autoFocus&&a.focus();break e;case"img":A.src?a.src=A.src:A.srcSet&&(a.srcset=A.srcSet)}}catch(n){At(t,t.return,n)}}function vC(t,e,A){try{var a=t.stateNode;PK(a,t.type,A,e),a[Ba]=e}catch(n){At(t,t.return,n)}}function xE(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&yo(t.type)||t.tag===4}function SC(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||xE(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&yo(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function fy(t,e,A){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(A.nodeType===9?A.body:A.nodeName==="HTML"?A.ownerDocument.body:A).insertBefore(t,e):(e=A.nodeType===9?A.body:A.nodeName==="HTML"?A.ownerDocument.body:A,e.appendChild(t),A=A._reactRootContainer,A!=null||e.onclick!==null||(e.onclick=$l));else if(a!==4&&(a===27&&yo(t.type)&&(A=t.stateNode,e=null),t=t.child,t!==null))for(fy(t,e,A),t=t.sibling;t!==null;)fy(t,e,A),t=t.sibling}function gm(t,e,A){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?A.insertBefore(t,e):A.appendChild(t);else if(a!==4&&(a===27&&yo(t.type)&&(A=t.stateNode),t=t.child,t!==null))for(gm(t,e,A),t=t.sibling;t!==null;)gm(t,e,A),t=t.sibling}function wE(t){var e=t.stateNode,A=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);GA(e,a,A),e[_A]=t,e[Ba]=A}catch(l){At(t,t.return,l)}}var Jl=!1,aA=!1,bC=!1,t6=typeof WeakSet=="function"?WeakSet:Set,bA=null;function bK(t,e){if(t=t.containerInfo,Cy=Lm,t=sU(t),Ny(t)){if("selectionStart"in t)var A={start:t.selectionStart,end:t.selectionEnd};else e:{A=(A=t.ownerDocument)&&A.defaultView||window;var a=A.getSelection&&A.getSelection();if(a&&a.rangeCount!==0){A=a.anchorNode;var n=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{A.nodeType,l.nodeType}catch{A=null;break e}var i=0,s=-1,c=-1,d=0,h=0,p=t,m=null;t:for(;;){for(var B;p!==A||n!==0&&p.nodeType!==3||(s=i+n),p!==l||a!==0&&p.nodeType!==3||(c=i+a),p.nodeType===3&&(i+=p.nodeValue.length),(B=p.firstChild)!==null;)m=p,p=B;for(;;){if(p===t)break t;if(m===A&&++d===n&&(s=i),m===l&&++h===a&&(c=i),(B=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=B}A=s===-1||c===-1?null:{start:s,end:c}}else A=null}A=A||{start:0,end:0}}else A=null;for(yy={focusedElem:t,selectionRange:A},Lm=!1,bA=e;bA!==null;)if(e=bA,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,bA=t;else for(;bA!==null;){switch(e=bA,l=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(A=0;A<t.length;A++)n=t[A],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&l!==null){t=void 0,A=e,n=l.memoizedProps,l=l.memoizedState,a=A.stateNode;try{var y=vi(A.type,n);t=a.getSnapshotBeforeUpdate(y,l),a.__reactInternalSnapshotBeforeUpdate=t}catch(v){At(A,A.return,v)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,A=t.nodeType,A===9)wy(t);else if(A===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":wy(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(V(163))}if(t=e.sibling,t!==null){t.return=e.return,bA=t;break}bA=e.return}}function vE(t,e,A){var a=A.flags;switch(A.tag){case 0:case 11:case 15:Yl(t,A),a&4&&nd(5,A);break;case 1:if(Yl(t,A),a&4)if(t=A.stateNode,e===null)try{t.componentDidMount()}catch(i){At(A,A.return,i)}else{var n=vi(A.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){At(A,A.return,i)}}a&64&&BE(A),a&512&&Tf(A,A.return);break;case 3:if(Yl(t,A),a&64&&(t=A.updateQueue,t!==null)){if(e=null,A.child!==null)switch(A.child.tag){case 27:case 5:e=A.child.stateNode;break;case 1:e=A.child.stateNode}try{EU(t,e)}catch(i){At(A,A.return,i)}}break;case 27:e===null&&a&4&&wE(A);case 26:case 5:Yl(t,A),e===null&&a&4&&yE(A),a&512&&Tf(A,A.return);break;case 12:Yl(t,A);break;case 31:Yl(t,A),a&4&&UE(t,A);break;case 13:Yl(t,A),a&4&&EE(t,A),a&64&&(t=A.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(A=RK.bind(null,A),WK(t,A))));break;case 22:if(a=A.memoizedState!==null||Jl,!a){e=e!==null&&e.memoizedState!==null||aA,n=Jl;var l=aA;Jl=a,(aA=e)&&!l?jl(t,A,(A.subtreeFlags&8772)!==0):Yl(t,A),Jl=n,aA=l}break;case 30:break;default:Yl(t,A)}}function SE(t){var e=t.alternate;e!==null&&(t.alternate=null,SE(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Hy(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ut=null,pa=!1;function ql(t,e,A){for(A=A.child;A!==null;)bE(t,e,A),A=A.sibling}function bE(t,e,A){if(Va&&typeof Va.onCommitFiberUnmount=="function")try{Va.onCommitFiberUnmount(Jf,A)}catch{}switch(A.tag){case 26:aA||pl(A,e),ql(t,e,A),A.memoizedState?A.memoizedState.count--:A.stateNode&&(A=A.stateNode,A.parentNode.removeChild(A));break;case 27:aA||pl(A,e);var a=Ut,n=pa;yo(A.type)&&(Ut=A.stateNode,pa=!1),ql(t,e,A),Df(A.stateNode),Ut=a,pa=n;break;case 5:aA||pl(A,e);case 6:if(a=Ut,n=pa,Ut=null,ql(t,e,A),Ut=a,pa=n,Ut!==null)if(pa)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(A.stateNode)}catch(l){At(A,e,l)}else try{Ut.removeChild(A.stateNode)}catch(l){At(A,e,l)}break;case 18:Ut!==null&&(pa?(t=Ut,m6(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,A.stateNode),vu(t)):m6(Ut,A.stateNode));break;case 4:a=Ut,n=pa,Ut=A.stateNode.containerInfo,pa=!0,ql(t,e,A),Ut=a,pa=n;break;case 0:case 11:case 14:case 15:go(2,A,e),aA||go(4,A,e),ql(t,e,A);break;case 1:aA||(pl(A,e),a=A.stateNode,typeof a.componentWillUnmount=="function"&&CE(A,e,a)),ql(t,e,A);break;case 21:ql(t,e,A);break;case 22:aA=(a=aA)||A.memoizedState!==null,ql(t,e,A),aA=a;break;default:ql(t,e,A)}}function UE(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vu(t)}catch(A){At(e,e.return,A)}}}function EE(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vu(t)}catch(A){At(e,e.return,A)}}function UK(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new t6),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new t6),e;default:throw Error(V(435,t.tag))}}function R0(t,e){var A=UK(t);e.forEach(function(a){if(!A.has(a)){A.add(a);var n=DK.bind(null,t,a);a.then(n,n)}})}function da(t,e){var A=e.deletions;if(A!==null)for(var a=0;a<A.length;a++){var n=A[a],l=t,i=e,s=i;e:for(;s!==null;){switch(s.tag){case 27:if(yo(s.type)){Ut=s.stateNode,pa=!1;break e}break;case 5:Ut=s.stateNode,pa=!1;break e;case 3:case 4:Ut=s.stateNode.containerInfo,pa=!0;break e}s=s.return}if(Ut===null)throw Error(V(160));bE(l,i,n),Ut=null,pa=!1,l=n.alternate,l!==null&&(l.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)LE(e,t),e=e.sibling}var On=null;function LE(t,e){var A=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:da(e,t),ha(t),a&4&&(go(3,t,t.return),nd(3,t),go(5,t,t.return));break;case 1:da(e,t),ha(t),a&512&&(aA||A===null||pl(A,A.return)),a&64&&Jl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(A=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=A===null?a:A.concat(a))));break;case 26:var n=On;if(da(e,t),ha(t),a&512&&(aA||A===null||pl(A,A.return)),a&4){var l=A!==null?A.memoizedState:null;if(a=t.memoizedState,A===null)if(a===null)if(t.stateNode===null){e:{a=t.type,A=t.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":l=n.getElementsByTagName("title")[0],(!l||l[ed]||l[_A]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=n.createElement(a),n.head.insertBefore(l,n.querySelector("head > title"))),GA(l,a,A),l[_A]=t,UA(l),a=l;break e;case"link":var i=v6("link","href",n).get(a+(A.href||""));if(i){for(var s=0;s<i.length;s++)if(l=i[s],l.getAttribute("href")===(A.href==null||A.href===""?null:A.href)&&l.getAttribute("rel")===(A.rel==null?null:A.rel)&&l.getAttribute("title")===(A.title==null?null:A.title)&&l.getAttribute("crossorigin")===(A.crossOrigin==null?null:A.crossOrigin)){i.splice(s,1);break t}}l=n.createElement(a),GA(l,a,A),n.head.appendChild(l);break;case"meta":if(i=v6("meta","content",n).get(a+(A.content||""))){for(s=0;s<i.length;s++)if(l=i[s],l.getAttribute("content")===(A.content==null?null:""+A.content)&&l.getAttribute("name")===(A.name==null?null:A.name)&&l.getAttribute("property")===(A.property==null?null:A.property)&&l.getAttribute("http-equiv")===(A.httpEquiv==null?null:A.httpEquiv)&&l.getAttribute("charset")===(A.charSet==null?null:A.charSet)){i.splice(s,1);break t}}l=n.createElement(a),GA(l,a,A),n.head.appendChild(l);break;default:throw Error(V(468,a))}l[_A]=t,UA(l),a=l}t.stateNode=a}else S6(n,t.type,t.stateNode);else t.stateNode=w6(n,a,t.memoizedProps);else l!==a?(l===null?A.stateNode!==null&&(A=A.stateNode,A.parentNode.removeChild(A)):l.count--,a===null?S6(n,t.type,t.stateNode):w6(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&vC(t,t.memoizedProps,A.memoizedProps)}break;case 27:da(e,t),ha(t),a&512&&(aA||A===null||pl(A,A.return)),A!==null&&a&4&&vC(t,t.memoizedProps,A.memoizedProps);break;case 5:if(da(e,t),ha(t),a&512&&(aA||A===null||pl(A,A.return)),t.flags&32){n=t.stateNode;try{pu(n,"")}catch(y){At(t,t.return,y)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,vC(t,n,A!==null?A.memoizedProps:n)),a&1024&&(bC=!0);break;case 6:if(da(e,t),ha(t),a&4){if(t.stateNode===null)throw Error(V(162));a=t.memoizedProps,A=t.stateNode;try{A.nodeValue=a}catch(y){At(t,t.return,y)}}break;case 3:if(W0=null,n=On,On=bm(e.containerInfo),da(e,t),On=n,ha(t),a&4&&A!==null&&A.memoizedState.isDehydrated)try{vu(e.containerInfo)}catch(y){At(t,t.return,y)}bC&&(bC=!1,QE(t));break;case 4:a=On,On=bm(t.stateNode.containerInfo),da(e,t),ha(t),On=a;break;case 12:da(e,t),ha(t);break;case 31:da(e,t),ha(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,R0(t,a)));break;case 13:da(e,t),ha(t),t.child.flags&8192&&t.memoizedState!==null!=(A!==null&&A.memoizedState!==null)&&(Km=za()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,R0(t,a)));break;case 22:n=t.memoizedState!==null;var c=A!==null&&A.memoizedState!==null,d=Jl,h=aA;if(Jl=d||n,aA=h||c,da(e,t),aA=h,Jl=d,ha(t),a&8192)e:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(A===null||c||Jl||aA||di(t)),A=null,e=t;;){if(e.tag===5||e.tag===26){if(A===null){c=A=e;try{if(l=c.stateNode,n)i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=c.stateNode;var p=c.memoizedProps.style,m=p!=null&&p.hasOwnProperty("display")?p.display:null;s.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(y){At(c,c.return,y)}}}else if(e.tag===6){if(A===null){c=e;try{c.stateNode.nodeValue=n?"":c.memoizedProps}catch(y){At(c,c.return,y)}}}else if(e.tag===18){if(A===null){c=e;try{var B=c.stateNode;n?g6(B,!0):g6(c.stateNode,!1)}catch(y){At(c,c.return,y)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;A===e&&(A=null),e=e.return}A===e&&(A=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(A=a.retryQueue,A!==null&&(a.retryQueue=null,R0(t,A))));break;case 19:da(e,t),ha(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,R0(t,a)));break;case 30:break;case 21:break;default:da(e,t),ha(t)}}function ha(t){var e=t.flags;if(e&2){try{for(var A,a=t.return;a!==null;){if(xE(a)){A=a;break}a=a.return}if(A==null)throw Error(V(160));switch(A.tag){case 27:var n=A.stateNode,l=SC(t);gm(t,l,n);break;case 5:var i=A.stateNode;A.flags&32&&(pu(i,""),A.flags&=-33);var s=SC(t);gm(t,s,i);break;case 3:case 4:var c=A.stateNode.containerInfo,d=SC(t);fy(t,d,c);break;default:throw Error(V(161))}}catch(h){At(t,t.return,h)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function QE(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;QE(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Yl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)vE(t,e.alternate,e),e=e.sibling}function di(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:go(4,e,e.return),di(e);break;case 1:pl(e,e.return);var A=e.stateNode;typeof A.componentWillUnmount=="function"&&CE(e,e.return,A),di(e);break;case 27:Df(e.stateNode);case 26:case 5:pl(e,e.return),di(e);break;case 22:e.memoizedState===null&&di(e);break;case 30:di(e);break;default:di(e)}t=t.sibling}}function jl(t,e,A){for(A=A&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,l=e,i=l.flags;switch(l.tag){case 0:case 11:case 15:jl(n,l,A),nd(4,l);break;case 1:if(jl(n,l,A),a=l,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(d){At(a,a.return,d)}if(a=l,n=a.updateQueue,n!==null){var s=a.stateNode;try{var c=n.shared.hiddenCallbacks;if(c!==null)for(n.shared.hiddenCallbacks=null,n=0;n<c.length;n++)UU(c[n],s)}catch(d){At(a,a.return,d)}}A&&i&64&&BE(l),Tf(l,l.return);break;case 27:wE(l);case 26:case 5:jl(n,l,A),A&&a===null&&i&4&&yE(l),Tf(l,l.return);break;case 12:jl(n,l,A);break;case 31:jl(n,l,A),A&&i&4&&UE(n,l);break;case 13:jl(n,l,A),A&&i&4&&EE(n,l);break;case 22:l.memoizedState===null&&jl(n,l,A),Tf(l,l.return);break;case 30:break;default:jl(n,l,A)}e=e.sibling}}function c4(t,e){var A=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(A=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==A&&(t!=null&&t.refCount++,A!=null&&Ad(A))}function f4(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ad(t))}function _n(t,e,A,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)FE(t,e,A,a),e=e.sibling}function FE(t,e,A,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:_n(t,e,A,a),n&2048&&nd(9,e);break;case 1:_n(t,e,A,a);break;case 3:_n(t,e,A,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ad(t)));break;case 12:if(n&2048){_n(t,e,A,a),t=e.stateNode;try{var l=e.memoizedProps,i=l.id,s=l.onPostCommit;typeof s=="function"&&s(i,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(c){At(e,e.return,c)}}else _n(t,e,A,a);break;case 31:_n(t,e,A,a);break;case 13:_n(t,e,A,a);break;case 23:break;case 22:l=e.stateNode,i=e.alternate,e.memoizedState!==null?l._visibility&2?_n(t,e,A,a):If(t,e):l._visibility&2?_n(t,e,A,a):(l._visibility|=2,Xs(t,e,A,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&c4(i,e);break;case 24:_n(t,e,A,a),n&2048&&f4(e.alternate,e);break;default:_n(t,e,A,a)}}function Xs(t,e,A,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var l=t,i=e,s=A,c=a,d=i.flags;switch(i.tag){case 0:case 11:case 15:Xs(l,i,s,c,n),nd(8,i);break;case 23:break;case 22:var h=i.stateNode;i.memoizedState!==null?h._visibility&2?Xs(l,i,s,c,n):If(l,i):(h._visibility|=2,Xs(l,i,s,c,n)),n&&d&2048&&c4(i.alternate,i);break;case 24:Xs(l,i,s,c,n),n&&d&2048&&f4(i.alternate,i);break;default:Xs(l,i,s,c,n)}e=e.sibling}}function If(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var A=t,a=e,n=a.flags;switch(a.tag){case 22:If(A,a),n&2048&&c4(a.alternate,a);break;case 24:If(A,a),n&2048&&f4(a.alternate,a);break;default:If(A,a)}e=e.sibling}}var wf=8192;function ks(t,e,A){if(t.subtreeFlags&wf)for(t=t.child;t!==null;)TE(t,e,A),t=t.sibling}function TE(t,e,A){switch(t.tag){case 26:ks(t,e,A),t.flags&wf&&t.memoizedState!==null&&uz(A,On,t.memoizedState,t.memoizedProps);break;case 5:ks(t,e,A);break;case 3:case 4:var a=On;On=bm(t.stateNode.containerInfo),ks(t,e,A),On=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=wf,wf=16777216,ks(t,e,A),wf=a):ks(t,e,A));break;default:ks(t,e,A)}}function IE(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function pf(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var A=0;A<e.length;A++){var a=e[A];bA=a,RE(a,t)}IE(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)HE(t),t=t.sibling}function HE(t){switch(t.tag){case 0:case 11:case 15:pf(t),t.flags&2048&&go(9,t,t.return);break;case 3:pf(t);break;case 12:pf(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Z0(t)):pf(t);break;default:pf(t)}}function Z0(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var A=0;A<e.length;A++){var a=e[A];bA=a,RE(a,t)}IE(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:go(8,e,e.return),Z0(e);break;case 22:A=e.stateNode,A._visibility&2&&(A._visibility&=-3,Z0(e));break;default:Z0(e)}t=t.sibling}}function RE(t,e){for(;bA!==null;){var A=bA;switch(A.tag){case 0:case 11:case 15:go(8,A,e);break;case 23:case 22:if(A.memoizedState!==null&&A.memoizedState.cachePool!==null){var a=A.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ad(A.memoizedState.cache)}if(a=A.child,a!==null)a.return=A,bA=a;else e:for(A=t;bA!==null;){a=bA;var n=a.sibling,l=a.return;if(SE(a),a===A){bA=null;break e}if(n!==null){n.return=l,bA=n;break e}bA=l}}}var EK={getCacheForType:function(t){var e=NA(nA),A=e.data.get(t);return A===void 0&&(A=t(),e.data.set(t,A)),A},cacheSignal:function(){return NA(nA).controller.signal}},LK=typeof WeakMap=="function"?WeakMap:Map,Ze=0,st=null,Me=null,Ne=0,tt=0,Oa=null,Ao=!1,Lu=!1,d4=!1,ir=0,Kt=0,Bo=0,Bi=0,h4=0,Ka=0,Cu=0,Hf=null,ma=null,dy=!1,Km=0,DE=0,Bm=1/0,Cm=null,so=null,hA=0,uo=null,yu=null,ar=0,hy=0,py=null,ME=null,Rf=0,my=null;function ka(){return(Ze&2)!==0&&Ne!==0?Ne&-Ne:Ce.T!==null?m4():k6()}function _E(){if(Ka===0)if((Ne&536870912)===0||Ke){var t=S0;S0<<=1,(S0&3932160)===0&&(S0=262144),Ka=t}else Ka=536870912;return t=qa.current,t!==null&&(t.flags|=32),Ka}function ga(t,e,A){(t===st&&(tt===2||tt===9)||t.cancelPendingCommit!==null)&&(xu(t,0),ao(t,Ne,Ka,!1)),$f(t,A),((Ze&2)===0||t!==st)&&(t===st&&((Ze&2)===0&&(Bi|=A),Kt===4&&ao(t,Ne,Ka,!1)),Bl(t))}function OE(t,e,A){if((Ze&6)!==0)throw Error(V(327));var a=!A&&(e&127)===0&&(e&t.expiredLanes)===0||Wf(t,e),n=a?TK(t,e):UC(t,e,!0),l=a;do{if(n===0){Lu&&!a&&ao(t,e,0,!1);break}else{if(A=t.current.alternate,l&&!QK(A)){n=UC(t,e,!1),l=!1;continue}if(n===2){if(l=e,t.errorRecoveryDisabledLanes&l)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;e:{var s=t;n=Hf;var c=s.current.memoizedState.isDehydrated;if(c&&(xu(s,i).flags|=256),i=UC(s,i,!1),i!==2){if(d4&&!c){s.errorRecoveryDisabledLanes|=l,Bi|=l,n=4;break e}l=ma,ma=n,l!==null&&(ma===null?ma=l:ma.push.apply(ma,l))}n=i}if(l=!1,n!==2)continue}}if(n===1){xu(t,0),ao(t,e,0,!0);break}e:{switch(a=t,l=n,l){case 0:case 1:throw Error(V(345));case 4:if((e&4194048)!==e)break;case 6:ao(a,e,Ka,!Ao);break e;case 2:ma=null;break;case 3:case 5:break;default:throw Error(V(329))}if((e&62914560)===e&&(n=Km+300-za(),10<n)){if(ao(a,e,Ka,!Ao),Fm(a,0,!0)!==0)break e;ar=e,a.timeoutHandle=nL(A6.bind(null,a,A,ma,Cm,dy,e,Ka,Bi,Cu,Ao,l,"Throttled",-0,0),n);break e}A6(a,A,ma,Cm,dy,e,Ka,Bi,Cu,Ao,l,null,-0,0)}}break}while(!0);Bl(t)}function A6(t,e,A,a,n,l,i,s,c,d,h,p,m,B){if(t.timeoutHandle=-1,p=e.subtreeFlags,p&8192||(p&16785408)===16785408){p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$l},TE(e,l,p);var y=(l&62914560)===l?Km-za():(l&4194048)===l?DE-za():0;if(y=cz(p,y),y!==null){ar=l,t.cancelPendingCommit=y(n6.bind(null,t,e,l,A,a,n,i,s,c,h,p,null,m,B)),ao(t,l,i,!d);return}}n6(t,e,l,A,a,n,i,s,c)}function QK(t){for(var e=t;;){var A=e.tag;if((A===0||A===11||A===15)&&e.flags&16384&&(A=e.updateQueue,A!==null&&(A=A.stores,A!==null)))for(var a=0;a<A.length;a++){var n=A[a],l=n.getSnapshot;n=n.value;try{if(!Xa(l(),n))return!1}catch{return!1}}if(A=e.child,e.subtreeFlags&16384&&A!==null)A.return=e,e=A;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ao(t,e,A,a){e&=~h4,e&=~Bi,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var l=31-Pa(n),i=1<<l;a[l]=-1,n&=~i}A!==0&&z6(t,A,e)}function zm(){return(Ze&6)===0?(ld(0,!1),!1):!0}function p4(){if(Me!==null){if(tt===0)var t=Me.return;else t=Me,er=Li=null,e4(t),uu=null,zf=0,t=Me;for(;t!==null;)gE(t.alternate,t),t=t.return;Me=null}}function xu(t,e){var A=t.timeoutHandle;A!==-1&&(t.timeoutHandle=-1,qK(A)),A=t.cancelPendingCommit,A!==null&&(t.cancelPendingCommit=null,A()),ar=0,p4(),st=t,Me=A=tr(t.current,null),Ne=e,tt=0,Oa=null,Ao=!1,Lu=Wf(t,e),d4=!1,Cu=Ka=h4=Bi=Bo=Kt=0,ma=Hf=null,dy=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-Pa(a),l=1<<n;e|=t[n],a&=~l}return ir=e,Rm(),A}function NE(t,e){Ue=null,Ce.H=Pf,e===Eu||e===Mm?(e=Rb(),tt=3):e===qy?(e=Rb(),tt=4):tt=e===s4?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Oa=e,Me===null&&(Kt=1,pm(t,pn(e,t.current)))}function GE(){var t=qa.current;return t===null?!0:(Ne&4194048)===Ne?gn===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?t===gn:!1}function KE(){var t=Ce.H;return Ce.H=Pf,t===null?Pf:t}function zE(){var t=Ce.A;return Ce.A=EK,t}function ym(){Kt=4,Ao||(Ne&4194048)!==Ne&&qa.current!==null||(Lu=!0),(Bo&134217727)===0&&(Bi&134217727)===0||st===null||ao(st,Ne,Ka,!1)}function UC(t,e,A){var a=Ze;Ze|=2;var n=KE(),l=zE();(st!==t||Ne!==e)&&(Cm=null,xu(t,e)),e=!1;var i=Kt;e:do try{if(tt!==0&&Me!==null){var s=Me,c=Oa;switch(tt){case 8:p4(),i=6;break e;case 3:case 2:case 9:case 6:qa.current===null&&(e=!0);var d=tt;if(tt=0,Oa=null,lu(t,s,c,d),A&&Lu){i=0;break e}break;default:d=tt,tt=0,Oa=null,lu(t,s,c,d)}}FK(),i=Kt;break}catch(h){NE(t,h)}while(!0);return e&&t.shellSuspendCounter++,er=Li=null,Ze=a,Ce.H=n,Ce.A=l,Me===null&&(st=null,Ne=0,Rm()),i}function FK(){for(;Me!==null;)VE(Me)}function TK(t,e){var A=Ze;Ze|=2;var a=KE(),n=zE();st!==t||Ne!==e?(Cm=null,Bm=za()+500,xu(t,e)):Lu=Wf(t,e);e:do try{if(tt!==0&&Me!==null){e=Me;var l=Oa;t:switch(tt){case 1:tt=0,Oa=null,lu(t,e,l,1);break;case 2:case 9:if(Hb(l)){tt=0,Oa=null,a6(e);break}e=function(){tt!==2&&tt!==9||st!==t||(tt=7),Bl(t)},l.then(e,e);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:Hb(l)?(tt=0,Oa=null,a6(e)):(tt=0,Oa=null,lu(t,e,l,7));break;case 5:var i=null;switch(Me.tag){case 26:i=Me.memoizedState;case 5:case 27:var s=Me;if(i?sL(i):s.stateNode.complete){tt=0,Oa=null;var c=s.sibling;if(c!==null)Me=c;else{var d=s.return;d!==null?(Me=d,Vm(d)):Me=null}break t}}tt=0,Oa=null,lu(t,e,l,5);break;case 6:tt=0,Oa=null,lu(t,e,l,6);break;case 8:p4(),Kt=6;break e;default:throw Error(V(462))}}IK();break}catch(h){NE(t,h)}while(!0);return er=Li=null,Ce.H=a,Ce.A=n,Ze=A,Me!==null?0:(st=null,Ne=0,Rm(),Kt)}function IK(){for(;Me!==null&&!tG();)VE(Me)}function VE(t){var e=mE(t.alternate,t,ir);t.memoizedProps=t.pendingProps,e===null?Vm(t):Me=e}function a6(t){var e=t,A=e.alternate;switch(e.tag){case 15:case 0:e=Zb(A,e,e.pendingProps,e.type,void 0,Ne);break;case 11:e=Zb(A,e,e.pendingProps,e.type.render,e.ref,Ne);break;case 5:e4(e);default:gE(A,e),e=Me=gU(e,ir),e=mE(A,e,ir)}t.memoizedProps=t.pendingProps,e===null?Vm(t):Me=e}function lu(t,e,A,a){er=Li=null,e4(e),uu=null,zf=0;var n=e.return;try{if(yK(t,n,e,A,Ne)){Kt=1,pm(t,pn(A,t.current)),Me=null;return}}catch(l){if(n!==null)throw Me=n,l;Kt=1,pm(t,pn(A,t.current)),Me=null;return}e.flags&32768?(Ke||a===1?t=!0:Lu||(Ne&536870912)!==0?t=!1:(Ao=t=!0,(a===2||a===9||a===3||a===6)&&(a=qa.current,a!==null&&a.tag===13&&(a.flags|=16384))),PE(e,t)):Vm(e)}function Vm(t){var e=t;do{if((e.flags&32768)!==0){PE(e,Ao);return}t=e.return;var A=vK(e.alternate,e,ir);if(A!==null){Me=A;return}if(e=e.sibling,e!==null){Me=e;return}Me=e=t}while(e!==null);Kt===0&&(Kt=5)}function PE(t,e){do{var A=SK(t.alternate,t);if(A!==null){A.flags&=32767,Me=A;return}if(A=t.return,A!==null&&(A.flags|=32768,A.subtreeFlags=0,A.deletions=null),!e&&(t=t.sibling,t!==null)){Me=t;return}Me=t=A}while(t!==null);Kt=6,Me=null}function n6(t,e,A,a,n,l,i,s,c){t.cancelPendingCommit=null;do Pm();while(hA!==0);if((Ze&6)!==0)throw Error(V(327));if(e!==null){if(e===t.current)throw Error(V(177));if(l=e.lanes|e.childLanes,l|=Gy,cG(t,A,l,i,s,c),t===st&&(Me=st=null,Ne=0),yu=e,uo=t,ar=A,hy=l,py=n,ME=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,MK(nm,function(){return jE(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=Ce.T,Ce.T=null,n=Je.p,Je.p=2,i=Ze,Ze|=4;try{bK(t,e,A)}finally{Ze=i,Je.p=n,Ce.T=a}}hA=1,kE(),XE(),qE()}}function kE(){if(hA===1){hA=0;var t=uo,e=yu,A=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||A){A=Ce.T,Ce.T=null;var a=Je.p;Je.p=2;var n=Ze;Ze|=4;try{LE(e,t);var l=yy,i=sU(t.containerInfo),s=l.focusedElem,c=l.selectionRange;if(i!==s&&s&&s.ownerDocument&&iU(s.ownerDocument.documentElement,s)){if(c!==null&&Ny(s)){var d=c.start,h=c.end;if(h===void 0&&(h=d),"selectionStart"in s)s.selectionStart=d,s.selectionEnd=Math.min(h,s.value.length);else{var p=s.ownerDocument||document,m=p&&p.defaultView||window;if(m.getSelection){var B=m.getSelection(),y=s.textContent.length,v=Math.min(c.start,y),b=c.end===void 0?v:Math.min(c.end,y);!B.extend&&v>b&&(i=b,b=v,v=i);var w=Ub(s,v),x=Ub(s,b);if(w&&x&&(B.rangeCount!==1||B.anchorNode!==w.node||B.anchorOffset!==w.offset||B.focusNode!==x.node||B.focusOffset!==x.offset)){var S=p.createRange();S.setStart(w.node,w.offset),B.removeAllRanges(),v>b?(B.addRange(S),B.extend(x.node,x.offset)):(S.setEnd(x.node,x.offset),B.addRange(S))}}}}for(p=[],B=s;B=B.parentNode;)B.nodeType===1&&p.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<p.length;s++){var U=p[s];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Lm=!!Cy,yy=Cy=null}finally{Ze=n,Je.p=a,Ce.T=A}}t.current=e,hA=2}}function XE(){if(hA===2){hA=0;var t=uo,e=yu,A=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||A){A=Ce.T,Ce.T=null;var a=Je.p;Je.p=2;var n=Ze;Ze|=4;try{vE(t,e.alternate,e)}finally{Ze=n,Je.p=a,Ce.T=A}}hA=3}}function qE(){if(hA===4||hA===3){hA=0,AG();var t=uo,e=yu,A=ar,a=ME;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?hA=5:(hA=0,yu=uo=null,YE(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(so=null),Iy(A),e=e.stateNode,Va&&typeof Va.onCommitFiberRoot=="function")try{Va.onCommitFiberRoot(Jf,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=Ce.T,n=Je.p,Je.p=2,Ce.T=null;try{for(var l=t.onRecoverableError,i=0;i<a.length;i++){var s=a[i];l(s.value,{componentStack:s.stack})}}finally{Ce.T=e,Je.p=n}}(ar&3)!==0&&Pm(),Bl(t),n=t.pendingLanes,(A&261930)!==0&&(n&42)!==0?t===my?Rf++:(Rf=0,my=t):Rf=0,ld(0,!1)}}function YE(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ad(e)))}function Pm(){return kE(),XE(),qE(),jE()}function jE(){if(hA!==5)return!1;var t=uo,e=hy;hy=0;var A=Iy(ar),a=Ce.T,n=Je.p;try{Je.p=32>A?32:A,Ce.T=null,A=py,py=null;var l=uo,i=ar;if(hA=0,yu=uo=null,ar=0,(Ze&6)!==0)throw Error(V(331));var s=Ze;if(Ze|=4,HE(l.current),FE(l,l.current,i,A),Ze=s,ld(0,!1),Va&&typeof Va.onPostCommitFiberRoot=="function")try{Va.onPostCommitFiberRoot(Jf,l)}catch{}return!0}finally{Je.p=n,Ce.T=a,YE(t,e)}}function l6(t,e,A){e=pn(A,e),e=sy(t.stateNode,e,2),t=io(t,e,2),t!==null&&($f(t,2),Bl(t))}function At(t,e,A){if(t.tag===3)l6(t,t,A);else for(;e!==null;){if(e.tag===3){l6(e,t,A);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(so===null||!so.has(a))){t=pn(A,t),A=uE(2),a=io(e,A,2),a!==null&&(cE(A,a,e,t),$f(a,2),Bl(a));break}}e=e.return}}function EC(t,e,A){var a=t.pingCache;if(a===null){a=t.pingCache=new LK;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(A)||(d4=!0,n.add(A),t=HK.bind(null,t,e,A),e.then(t,t))}function HK(t,e,A){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&A,t.warmLanes&=~A,st===t&&(Ne&A)===A&&(Kt===4||Kt===3&&(Ne&62914560)===Ne&&300>za()-Km?(Ze&2)===0&&xu(t,0):h4|=A,Cu===Ne&&(Cu=0)),Bl(t)}function ZE(t,e){e===0&&(e=K6()),t=Ei(t,e),t!==null&&($f(t,e),Bl(t))}function RK(t){var e=t.memoizedState,A=0;e!==null&&(A=e.retryLane),ZE(t,A)}function DK(t,e){var A=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(A=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(V(314))}a!==null&&a.delete(e),ZE(t,A)}function MK(t,e){return Fy(t,e)}var xm=null,qs=null,gy=!1,wm=!1,LC=!1,no=0;function Bl(t){t!==qs&&t.next===null&&(qs===null?xm=qs=t:qs=qs.next=t),wm=!0,gy||(gy=!0,OK())}function ld(t,e){if(!LC&&wm){LC=!0;do for(var A=!1,a=xm;a!==null;){if(!e)if(t!==0){var n=a.pendingLanes;if(n===0)var l=0;else{var i=a.suspendedLanes,s=a.pingedLanes;l=(1<<31-Pa(42|t)+1)-1,l&=n&~(i&~s),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(A=!0,r6(a,l))}else l=Ne,l=Fm(a,a===st?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(l&3)===0||Wf(a,l)||(A=!0,r6(a,l));a=a.next}while(A);LC=!1}}function _K(){JE()}function JE(){wm=gy=!1;var t=0;no!==0&&XK()&&(t=no);for(var e=za(),A=null,a=xm;a!==null;){var n=a.next,l=WE(a,e);l===0?(a.next=null,A===null?xm=n:A.next=n,n===null&&(qs=A)):(A=a,(t!==0||(l&3)!==0)&&(wm=!0)),a=n}hA!==0&&hA!==5||ld(t,!1),no!==0&&(no=0)}function WE(t,e){for(var A=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,l=t.pendingLanes&-62914561;0<l;){var i=31-Pa(l),s=1<<i,c=n[i];c===-1?((s&A)===0||(s&a)!==0)&&(n[i]=uG(s,e)):c<=e&&(t.expiredLanes|=s),l&=~s}if(e=st,A=Ne,A=Fm(t,t===e?A:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,A===0||t===e&&(tt===2||tt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&aC(a),t.callbackNode=null,t.callbackPriority=0;if((A&3)===0||Wf(t,A)){if(e=A&-A,e===t.callbackPriority)return e;switch(a!==null&&aC(a),Iy(A)){case 2:case 8:A=N6;break;case 32:A=nm;break;case 268435456:A=G6;break;default:A=nm}return a=$E.bind(null,t),A=Fy(A,a),t.callbackPriority=e,t.callbackNode=A,e}return a!==null&&a!==null&&aC(a),t.callbackPriority=2,t.callbackNode=null,2}function $E(t,e){if(hA!==0&&hA!==5)return t.callbackNode=null,t.callbackPriority=0,null;var A=t.callbackNode;if(Pm()&&t.callbackNode!==A)return null;var a=Ne;return a=Fm(t,t===st?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(OE(t,a,e),WE(t,za()),t.callbackNode!=null&&t.callbackNode===A?$E.bind(null,t):null)}function r6(t,e){if(Pm())return null;OE(t,e,!0)}function OK(){YK(function(){(Ze&6)!==0?Fy(O6,_K):JE()})}function m4(){if(no===0){var t=mu;t===0&&(t=v0,v0<<=1,(v0&261888)===0&&(v0=256)),no=t}return no}function o6(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:K0(""+t)}function i6(t,e){var A=e.ownerDocument.createElement("input");return A.name=e.name,A.value=e.value,t.id&&A.setAttribute("form",t.id),e.parentNode.insertBefore(A,e),t=new FormData(t),A.parentNode.removeChild(A),t}function NK(t,e,A,a,n){if(e==="submit"&&A&&A.stateNode===n){var l=o6((n[Ba]||null).action),i=a.submitter;i&&(e=(e=i[Ba]||null)?o6(e.formAction):i.getAttribute("formAction"),e!==null&&(l=e,i=null));var s=new Tm("action","action",null,a,n);t.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(no!==0){var c=i?i6(n,i):new FormData(n);oy(A,{pending:!0,data:c,method:n.method,action:l},null,c)}}else typeof l=="function"&&(s.preventDefault(),c=i?i6(n,i):new FormData(n),oy(A,{pending:!0,data:c,method:n.method,action:l},l,c))},currentTarget:n}]})}}for(D0=0;D0<jC.length;D0++)M0=jC[D0],s6=M0.toLowerCase(),u6=M0[0].toUpperCase()+M0.slice(1),Nn(s6,"on"+u6);var M0,s6,u6,D0;Nn(cU,"onAnimationEnd");Nn(fU,"onAnimationIteration");Nn(dU,"onAnimationStart");Nn("dblclick","onDoubleClick");Nn("focusin","onFocus");Nn("focusout","onBlur");Nn(aK,"onTransitionRun");Nn(nK,"onTransitionStart");Nn(lK,"onTransitionCancel");Nn(hU,"onTransitionEnd");hu("onMouseEnter",["mouseout","mouseover"]);hu("onMouseLeave",["mouseout","mouseover"]);hu("onPointerEnter",["pointerout","pointerover"]);hu("onPointerLeave",["pointerout","pointerover"]);Si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Si("onBeforeInput",["compositionend","keypress","textInput","paste"]);Si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kf="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(" "),GK=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kf));function eL(t,e){e=(e&4)!==0;for(var A=0;A<t.length;A++){var a=t[A],n=a.event;a=a.listeners;e:{var l=void 0;if(e)for(var i=a.length-1;0<=i;i--){var s=a[i],c=s.instance,d=s.currentTarget;if(s=s.listener,c!==l&&n.isPropagationStopped())break e;l=s,n.currentTarget=d;try{l(n)}catch(h){rm(h)}n.currentTarget=null,l=c}else for(i=0;i<a.length;i++){if(s=a[i],c=s.instance,d=s.currentTarget,s=s.listener,c!==l&&n.isPropagationStopped())break e;l=s,n.currentTarget=d;try{l(n)}catch(h){rm(h)}n.currentTarget=null,l=c}}}}function De(t,e){var A=e[KC];A===void 0&&(A=e[KC]=new Set);var a=t+"__bubble";A.has(a)||(tL(e,t,2,!1),A.add(a))}function QC(t,e,A){var a=0;e&&(a|=4),tL(A,t,a,e)}var _0="_reactListening"+Math.random().toString(36).slice(2);function g4(t){if(!t[_0]){t[_0]=!0,X6.forEach(function(A){A!=="selectionchange"&&(GK.has(A)||QC(A,!1,t),QC(A,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[_0]||(e[_0]=!0,QC("selectionchange",!1,e))}}function tL(t,e,A,a){switch(hL(e)){case 2:var n=hz;break;case 8:n=pz;break;default:n=x4}A=n.bind(null,e,A,t),n=void 0,!XC||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,A,{capture:!0,passive:n}):t.addEventListener(e,A,!0):n!==void 0?t.addEventListener(e,A,{passive:n}):t.addEventListener(e,A,!1)}function FC(t,e,A,a,n){var l=a;if((e&1)===0&&(e&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n)break;if(i===4)for(i=a.return;i!==null;){var c=i.tag;if((c===3||c===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;s!==null;){if(i=Zs(s),i===null)return;if(c=i.tag,c===5||c===6||c===26||c===27){a=l=i;continue e}s=s.parentNode}}a=a.return}eU(function(){var d=l,h=Dy(A),p=[];e:{var m=pU.get(t);if(m!==void 0){var B=Tm,y=t;switch(t){case"keypress":if(V0(A)===0)break e;case"keydown":case"keyup":B=DG;break;case"focusin":y="focus",B=iC;break;case"focusout":y="blur",B=iC;break;case"beforeblur":case"afterblur":B=iC;break;case"click":if(A.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=gb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=vG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=OG;break;case cU:case fU:case dU:B=UG;break;case hU:B=GG;break;case"scroll":case"scrollend":B=xG;break;case"wheel":B=zG;break;case"copy":case"cut":case"paste":B=LG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Cb;break;case"toggle":case"beforetoggle":B=PG}var v=(e&4)!==0,b=!v&&(t==="scroll"||t==="scrollend"),w=v?m!==null?m+"Capture":null:m;v=[];for(var x=d,S;x!==null;){var U=x;if(S=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||S===null||w===null||(U=_f(x,w),U!=null&&v.push(Xf(x,U,S))),b)break;x=x.return}0<v.length&&(m=new B(m,y,null,A,h),p.push({event:m,listeners:v}))}}if((e&7)===0){e:{if(m=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",m&&A!==kC&&(y=A.relatedTarget||A.fromElement)&&(Zs(y)||y[Su]))break e;if((B||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,B?(y=A.relatedTarget||A.toElement,B=d,y=y?Zs(y):null,y!==null&&(b=Zf(y),v=y.tag,y!==b||v!==5&&v!==27&&v!==6)&&(y=null)):(B=null,y=d),B!==y)){if(v=gb,U="onMouseLeave",w="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(v=Cb,U="onPointerLeave",w="onPointerEnter",x="pointer"),b=B==null?m:yf(B),S=y==null?m:yf(y),m=new v(U,x+"leave",B,A,h),m.target=b,m.relatedTarget=S,U=null,Zs(h)===d&&(v=new v(w,x+"enter",y,A,h),v.target=S,v.relatedTarget=b,U=v),b=U,B&&y)t:{for(v=KK,w=B,x=y,S=0,U=w;U;U=v(U))S++;U=0;for(var L=x;L;L=v(L))U++;for(;0<S-U;)w=v(w),S--;for(;0<U-S;)x=v(x),U--;for(;S--;){if(w===x||x!==null&&w===x.alternate){v=w;break t}w=v(w),x=v(x)}v=null}else v=null;B!==null&&c6(p,m,B,v,!1),y!==null&&b!==null&&c6(p,b,y,v,!0)}}e:{if(m=d?yf(d):window,B=m.nodeName&&m.nodeName.toLowerCase(),B==="select"||B==="input"&&m.type==="file")var F=vb;else if(wb(m))if(rU)F=eK;else{F=WG;var T=JG}else B=m.nodeName,!B||B.toLowerCase()!=="input"||m.type!=="checkbox"&&m.type!=="radio"?d&&Ry(d.elementType)&&(F=vb):F=$G;if(F&&(F=F(t,d))){lU(p,F,A,h);break e}T&&T(t,m,d),t==="focusout"&&d&&m.type==="number"&&d.memoizedProps.value!=null&&PC(m,"number",m.value)}switch(T=d?yf(d):window,t){case"focusin":(wb(T)||T.contentEditable==="true")&&($s=T,qC=d,bf=null);break;case"focusout":bf=qC=$s=null;break;case"mousedown":YC=!0;break;case"contextmenu":case"mouseup":case"dragend":YC=!1,Eb(p,A,h);break;case"selectionchange":if(AK)break;case"keydown":case"keyup":Eb(p,A,h)}var M;if(Oy)e:{switch(t){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Ws?aU(t,A)&&(D="onCompositionEnd"):t==="keydown"&&A.keyCode===229&&(D="onCompositionStart");D&&(AU&&A.locale!=="ko"&&(Ws||D!=="onCompositionStart"?D==="onCompositionEnd"&&Ws&&(M=tU()):(to=h,My="value"in to?to.value:to.textContent,Ws=!0)),T=vm(d,D),0<T.length&&(D=new Bb(D,t,null,A,h),p.push({event:D,listeners:T}),M?D.data=M:(M=nU(A),M!==null&&(D.data=M)))),(M=XG?qG(t,A):YG(t,A))&&(D=vm(d,"onBeforeInput"),0<D.length&&(T=new Bb("onBeforeInput","beforeinput",null,A,h),p.push({event:T,listeners:D}),T.data=M)),NK(p,t,d,A,h)}eL(p,e)})}function Xf(t,e,A){return{instance:t,listener:e,currentTarget:A}}function vm(t,e){for(var A=e+"Capture",a=[];t!==null;){var n=t,l=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||l===null||(n=_f(t,A),n!=null&&a.unshift(Xf(t,n,l)),n=_f(t,e),n!=null&&a.push(Xf(t,n,l))),t.tag===3)return a;t=t.return}return[]}function KK(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function c6(t,e,A,a,n){for(var l=e._reactName,i=[];A!==null&&A!==a;){var s=A,c=s.alternate,d=s.stateNode;if(s=s.tag,c!==null&&c===a)break;s!==5&&s!==26&&s!==27||d===null||(c=d,n?(d=_f(A,l),d!=null&&i.unshift(Xf(A,d,c))):n||(d=_f(A,l),d!=null&&i.push(Xf(A,d,c)))),A=A.return}i.length!==0&&t.push({event:e,listeners:i})}var zK=/\r\n?/g,VK=/\u0000|\uFFFD/g;function f6(t){return(typeof t=="string"?t:""+t).replace(zK,`
|
|
9
|
+
`).replace(VK,"")}function AL(t,e){return e=f6(e),f6(t)===e}function nt(t,e,A,a,n,l){switch(A){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||pu(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&pu(t,""+a);break;case"className":U0(t,"class",a);break;case"tabIndex":U0(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":U0(t,A,a);break;case"style":$6(t,a,l);break;case"data":if(e!=="object"){U0(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||A!=="href")){t.removeAttribute(A);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(A);break}a=K0(""+a),t.setAttribute(A,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(A,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(A==="formAction"?(e!=="input"&&nt(t,e,"name",n.name,n,null),nt(t,e,"formEncType",n.formEncType,n,null),nt(t,e,"formMethod",n.formMethod,n,null),nt(t,e,"formTarget",n.formTarget,n,null)):(nt(t,e,"encType",n.encType,n,null),nt(t,e,"method",n.method,n,null),nt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(A);break}a=K0(""+a),t.setAttribute(A,a);break;case"onClick":a!=null&&(t.onclick=$l);break;case"onScroll":a!=null&&De("scroll",t);break;case"onScrollEnd":a!=null&&De("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(V(61));if(A=a.__html,A!=null){if(n.children!=null)throw Error(V(60));t.innerHTML=A}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}A=K0(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",A);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(A,""+a):t.removeAttribute(A);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(A,""):t.removeAttribute(A);break;case"capture":case"download":a===!0?t.setAttribute(A,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(A,a):t.removeAttribute(A);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(A,a):t.removeAttribute(A);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(A):t.setAttribute(A,a);break;case"popover":De("beforetoggle",t),De("toggle",t),G0(t,"popover",a);break;case"xlinkActuate":kl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":kl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":kl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":kl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":kl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":kl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":kl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":kl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":kl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":G0(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<A.length)||A[0]!=="o"&&A[0]!=="O"||A[1]!=="n"&&A[1]!=="N")&&(A=CG.get(A)||A,G0(t,A,a))}}function By(t,e,A,a,n,l){switch(A){case"style":$6(t,a,l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(V(61));if(A=a.__html,A!=null){if(n.children!=null)throw Error(V(60));t.innerHTML=A}}break;case"children":typeof a=="string"?pu(t,a):(typeof a=="number"||typeof a=="bigint")&&pu(t,""+a);break;case"onScroll":a!=null&&De("scroll",t);break;case"onScrollEnd":a!=null&&De("scrollend",t);break;case"onClick":a!=null&&(t.onclick=$l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!q6.hasOwnProperty(A))e:{if(A[0]==="o"&&A[1]==="n"&&(n=A.endsWith("Capture"),e=A.slice(2,n?A.length-7:void 0),l=t[Ba]||null,l=l!=null?l[A]:null,typeof l=="function"&&t.removeEventListener(e,l,n),typeof a=="function")){typeof l!="function"&&l!==null&&(A in t?t[A]=null:t.hasAttribute(A)&&t.removeAttribute(A)),t.addEventListener(e,a,n);break e}A in t?t[A]=a:a===!0?t.setAttribute(A,""):G0(t,A,a)}}}function GA(t,e,A){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",t),De("load",t);var a=!1,n=!1,l;for(l in A)if(A.hasOwnProperty(l)){var i=A[l];if(i!=null)switch(l){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(V(137,e));default:nt(t,e,l,i,A,null)}}n&&nt(t,e,"srcSet",A.srcSet,A,null),a&&nt(t,e,"src",A.src,A,null);return;case"input":De("invalid",t);var s=l=i=n=null,c=null,d=null;for(a in A)if(A.hasOwnProperty(a)){var h=A[a];if(h!=null)switch(a){case"name":n=h;break;case"type":i=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":l=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(V(137,e));break;default:nt(t,e,a,h,A,null)}}Z6(t,l,s,c,d,i,n,!1);return;case"select":De("invalid",t),a=i=l=null;for(n in A)if(A.hasOwnProperty(n)&&(s=A[n],s!=null))switch(n){case"value":l=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:nt(t,e,n,s,A,null)}e=l,A=i,t.multiple=!!a,e!=null?ou(t,!!a,e,!1):A!=null&&ou(t,!!a,A,!0);return;case"textarea":De("invalid",t),l=n=a=null;for(i in A)if(A.hasOwnProperty(i)&&(s=A[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":n=s;break;case"children":l=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(V(91));break;default:nt(t,e,i,s,A,null)}W6(t,a,n,l);return;case"option":for(c in A)A.hasOwnProperty(c)&&(a=A[c],a!=null)&&(c==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":nt(t,e,c,a,A,null));return;case"dialog":De("beforetoggle",t),De("toggle",t),De("cancel",t),De("close",t);break;case"iframe":case"object":De("load",t);break;case"video":case"audio":for(a=0;a<kf.length;a++)De(kf[a],t);break;case"image":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"embed":case"source":case"link":De("error",t),De("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in A)if(A.hasOwnProperty(d)&&(a=A[d],a!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(V(137,e));default:nt(t,e,d,a,A,null)}return;default:if(Ry(e)){for(h in A)A.hasOwnProperty(h)&&(a=A[h],a!==void 0&&By(t,e,h,a,A,void 0));return}}for(s in A)A.hasOwnProperty(s)&&(a=A[s],a!=null&&nt(t,e,s,a,A,null))}function PK(t,e,A,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,l=null,i=null,s=null,c=null,d=null,h=null;for(B in A){var p=A[B];if(A.hasOwnProperty(B)&&p!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":c=p;default:a.hasOwnProperty(B)||nt(t,e,B,null,a,p)}}for(var m in a){var B=a[m];if(p=A[m],a.hasOwnProperty(m)&&(B!=null||p!=null))switch(m){case"type":l=B;break;case"name":n=B;break;case"checked":d=B;break;case"defaultChecked":h=B;break;case"value":i=B;break;case"defaultValue":s=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(V(137,e));break;default:B!==p&&nt(t,e,m,B,a,p)}}VC(t,i,s,c,d,h,l,n);return;case"select":B=i=s=m=null;for(l in A)if(c=A[l],A.hasOwnProperty(l)&&c!=null)switch(l){case"value":break;case"multiple":B=c;default:a.hasOwnProperty(l)||nt(t,e,l,null,a,c)}for(n in a)if(l=a[n],c=A[n],a.hasOwnProperty(n)&&(l!=null||c!=null))switch(n){case"value":m=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:l!==c&&nt(t,e,n,l,a,c)}e=s,A=i,a=B,m!=null?ou(t,!!A,m,!1):!!a!=!!A&&(e!=null?ou(t,!!A,e,!0):ou(t,!!A,A?[]:"",!1));return;case"textarea":B=m=null;for(s in A)if(n=A[s],A.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:nt(t,e,s,null,a,n)}for(i in a)if(n=a[i],l=A[i],a.hasOwnProperty(i)&&(n!=null||l!=null))switch(i){case"value":m=n;break;case"defaultValue":B=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(V(91));break;default:n!==l&&nt(t,e,i,n,a,l)}J6(t,m,B);return;case"option":for(var y in A)m=A[y],A.hasOwnProperty(y)&&m!=null&&!a.hasOwnProperty(y)&&(y==="selected"?t.selected=!1:nt(t,e,y,null,a,m));for(c in a)m=a[c],B=A[c],a.hasOwnProperty(c)&&m!==B&&(m!=null||B!=null)&&(c==="selected"?t.selected=m&&typeof m!="function"&&typeof m!="symbol":nt(t,e,c,m,a,B));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in A)m=A[v],A.hasOwnProperty(v)&&m!=null&&!a.hasOwnProperty(v)&&nt(t,e,v,null,a,m);for(d in a)if(m=a[d],B=A[d],a.hasOwnProperty(d)&&m!==B&&(m!=null||B!=null))switch(d){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(V(137,e));break;default:nt(t,e,d,m,a,B)}return;default:if(Ry(e)){for(var b in A)m=A[b],A.hasOwnProperty(b)&&m!==void 0&&!a.hasOwnProperty(b)&&By(t,e,b,void 0,a,m);for(h in a)m=a[h],B=A[h],!a.hasOwnProperty(h)||m===B||m===void 0&&B===void 0||By(t,e,h,m,a,B);return}}for(var w in A)m=A[w],A.hasOwnProperty(w)&&m!=null&&!a.hasOwnProperty(w)&&nt(t,e,w,null,a,m);for(p in a)m=a[p],B=A[p],!a.hasOwnProperty(p)||m===B||m==null&&B==null||nt(t,e,p,m,a,B)}function d6(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kK(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,A=performance.getEntriesByType("resource"),a=0;a<A.length;a++){var n=A[a],l=n.transferSize,i=n.initiatorType,s=n.duration;if(l&&s&&d6(i)){for(i=0,s=n.responseEnd,a+=1;a<A.length;a++){var c=A[a],d=c.startTime;if(d>s)break;var h=c.transferSize,p=c.initiatorType;h&&d6(p)&&(c=c.responseEnd,i+=h*(c<s?1:(s-d)/(c-d)))}if(--a,e+=8*(l+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Cy=null,yy=null;function Sm(t){return t.nodeType===9?t:t.ownerDocument}function h6(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function aL(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function xy(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var TC=null;function XK(){var t=window.event;return t&&t.type==="popstate"?t===TC?!1:(TC=t,!0):(TC=null,!1)}var nL=typeof setTimeout=="function"?setTimeout:void 0,qK=typeof clearTimeout=="function"?clearTimeout:void 0,p6=typeof Promise=="function"?Promise:void 0,YK=typeof queueMicrotask=="function"?queueMicrotask:typeof p6<"u"?function(t){return p6.resolve(null).then(t).catch(jK)}:nL;function jK(t){setTimeout(function(){throw t})}function yo(t){return t==="head"}function m6(t,e){var A=e,a=0;do{var n=A.nextSibling;if(t.removeChild(A),n&&n.nodeType===8)if(A=n.data,A==="/$"||A==="/&"){if(a===0){t.removeChild(n),vu(e);return}a--}else if(A==="$"||A==="$?"||A==="$~"||A==="$!"||A==="&")a++;else if(A==="html")Df(t.ownerDocument.documentElement);else if(A==="head"){A=t.ownerDocument.head,Df(A);for(var l=A.firstChild;l;){var i=l.nextSibling,s=l.nodeName;l[ed]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&l.rel.toLowerCase()==="stylesheet"||A.removeChild(l),l=i}}else A==="body"&&Df(t.ownerDocument.body);A=n}while(A);vu(e)}function g6(t,e){var A=t;t=0;do{var a=A.nextSibling;if(A.nodeType===1?e?(A._stashedDisplay=A.style.display,A.style.display="none"):(A.style.display=A._stashedDisplay||"",A.getAttribute("style")===""&&A.removeAttribute("style")):A.nodeType===3&&(e?(A._stashedText=A.nodeValue,A.nodeValue=""):A.nodeValue=A._stashedText||""),a&&a.nodeType===8)if(A=a.data,A==="/$"){if(t===0)break;t--}else A!=="$"&&A!=="$?"&&A!=="$~"&&A!=="$!"||t++;A=a}while(A)}function wy(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var A=e;switch(e=e.nextSibling,A.nodeName){case"HTML":case"HEAD":case"BODY":wy(A),Hy(A);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(A.rel.toLowerCase()==="stylesheet")continue}t.removeChild(A)}}function ZK(t,e,A,a){for(;t.nodeType===1;){var n=A;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[ed])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(l=t.getAttribute("rel"),l==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(l!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(l=t.getAttribute("src"),(l!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&l&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var l=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===l)return t}else return t;if(t=Bn(t.nextSibling),t===null)break}return null}function JK(t,e,A){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!A||(t=Bn(t.nextSibling),t===null))return null;return t}function lL(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Bn(t.nextSibling),t===null))return null;return t}function vy(t){return t.data==="$?"||t.data==="$~"}function Sy(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function WK(t,e){var A=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||A.readyState!=="loading")e();else{var a=function(){e(),A.removeEventListener("DOMContentLoaded",a)};A.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Bn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var by=null;function B6(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var A=t.data;if(A==="/$"||A==="/&"){if(e===0)return Bn(t.nextSibling);e--}else A!=="$"&&A!=="$!"&&A!=="$?"&&A!=="$~"&&A!=="&"||e++}t=t.nextSibling}return null}function C6(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var A=t.data;if(A==="$"||A==="$!"||A==="$?"||A==="$~"||A==="&"){if(e===0)return t;e--}else A!=="/$"&&A!=="/&"||e++}t=t.previousSibling}return null}function rL(t,e,A){switch(e=Sm(A),t){case"html":if(t=e.documentElement,!t)throw Error(V(452));return t;case"head":if(t=e.head,!t)throw Error(V(453));return t;case"body":if(t=e.body,!t)throw Error(V(454));return t;default:throw Error(V(451))}}function Df(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Hy(t)}var Cn=new Map,y6=new Set;function bm(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var sr=Je.d;Je.d={f:$K,r:ez,D:tz,C:Az,L:az,m:nz,X:rz,S:lz,M:oz};function $K(){var t=sr.f(),e=zm();return t||e}function ez(t){var e=bu(t);e!==null&&e.tag===5&&e.type==="form"?$U(e):sr.r(t)}var Qu=typeof document>"u"?null:document;function oL(t,e,A){var a=Qu;if(a&&typeof e=="string"&&e){var n=hn(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof A=="string"&&(n+='[crossorigin="'+A+'"]'),y6.has(n)||(y6.add(n),t={rel:t,crossOrigin:A,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),GA(e,"link",t),UA(e),a.head.appendChild(e)))}}function tz(t){sr.D(t),oL("dns-prefetch",t,null)}function Az(t,e){sr.C(t,e),oL("preconnect",t,e)}function az(t,e,A){sr.L(t,e,A);var a=Qu;if(a&&t&&e){var n='link[rel="preload"][as="'+hn(e)+'"]';e==="image"&&A&&A.imageSrcSet?(n+='[imagesrcset="'+hn(A.imageSrcSet)+'"]',typeof A.imageSizes=="string"&&(n+='[imagesizes="'+hn(A.imageSizes)+'"]')):n+='[href="'+hn(t)+'"]';var l=n;switch(e){case"style":l=wu(t);break;case"script":l=Fu(t)}Cn.has(l)||(t=yt({rel:"preload",href:e==="image"&&A&&A.imageSrcSet?void 0:t,as:e},A),Cn.set(l,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(rd(l))||e==="script"&&a.querySelector(od(l))||(e=a.createElement("link"),GA(e,"link",t),UA(e),a.head.appendChild(e)))}}function nz(t,e){sr.m(t,e);var A=Qu;if(A&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+hn(a)+'"][href="'+hn(t)+'"]',l=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Fu(t)}if(!Cn.has(l)&&(t=yt({rel:"modulepreload",href:t},e),Cn.set(l,t),A.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(A.querySelector(od(l)))return}a=A.createElement("link"),GA(a,"link",t),UA(a),A.head.appendChild(a)}}}function lz(t,e,A){sr.S(t,e,A);var a=Qu;if(a&&t){var n=ru(a).hoistableStyles,l=wu(t);e=e||"default";var i=n.get(l);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(rd(l)))s.loading=5;else{t=yt({rel:"stylesheet",href:t,"data-precedence":e},A),(A=Cn.get(l))&&B4(t,A);var c=i=a.createElement("link");UA(c),GA(c,"link",t),c._p=new Promise(function(d,h){c.onload=d,c.onerror=h}),c.addEventListener("load",function(){s.loading|=1}),c.addEventListener("error",function(){s.loading|=2}),s.loading|=4,J0(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(l,i)}}}function rz(t,e){sr.X(t,e);var A=Qu;if(A&&t){var a=ru(A).hoistableScripts,n=Fu(t),l=a.get(n);l||(l=A.querySelector(od(n)),l||(t=yt({src:t,async:!0},e),(e=Cn.get(n))&&C4(t,e),l=A.createElement("script"),UA(l),GA(l,"link",t),A.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(n,l))}}function oz(t,e){sr.M(t,e);var A=Qu;if(A&&t){var a=ru(A).hoistableScripts,n=Fu(t),l=a.get(n);l||(l=A.querySelector(od(n)),l||(t=yt({src:t,async:!0,type:"module"},e),(e=Cn.get(n))&&C4(t,e),l=A.createElement("script"),UA(l),GA(l,"link",t),A.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(n,l))}}function x6(t,e,A,a){var n=(n=lo.current)?bm(n):null;if(!n)throw Error(V(446));switch(t){case"meta":case"title":return null;case"style":return typeof A.precedence=="string"&&typeof A.href=="string"?(e=wu(A.href),A=ru(n).hoistableStyles,a=A.get(e),a||(a={type:"style",instance:null,count:0,state:null},A.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(A.rel==="stylesheet"&&typeof A.href=="string"&&typeof A.precedence=="string"){t=wu(A.href);var l=ru(n).hoistableStyles,i=l.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(t,i),(l=n.querySelector(rd(t)))&&!l._p&&(i.instance=l,i.state.loading=5),Cn.has(t)||(A={rel:"preload",as:"style",href:A.href,crossOrigin:A.crossOrigin,integrity:A.integrity,media:A.media,hrefLang:A.hrefLang,referrerPolicy:A.referrerPolicy},Cn.set(t,A),l||iz(n,t,A,i.state))),e&&a===null)throw Error(V(528,""));return i}if(e&&a!==null)throw Error(V(529,""));return null;case"script":return e=A.async,A=A.src,typeof A=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Fu(A),A=ru(n).hoistableScripts,a=A.get(e),a||(a={type:"script",instance:null,count:0,state:null},A.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(V(444,t))}}function wu(t){return'href="'+hn(t)+'"'}function rd(t){return'link[rel="stylesheet"]['+t+"]"}function iL(t){return yt({},t,{"data-precedence":t.precedence,precedence:null})}function iz(t,e,A,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),GA(e,"link",A),UA(e),t.head.appendChild(e))}function Fu(t){return'[src="'+hn(t)+'"]'}function od(t){return"script[async]"+t}function w6(t,e,A){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+hn(A.href)+'"]');if(a)return e.instance=a,UA(a),a;var n=yt({},A,{"data-href":A.href,"data-precedence":A.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),UA(a),GA(a,"style",n),J0(a,A.precedence,t),e.instance=a;case"stylesheet":n=wu(A.href);var l=t.querySelector(rd(n));if(l)return e.state.loading|=4,e.instance=l,UA(l),l;a=iL(A),(n=Cn.get(n))&&B4(a,n),l=(t.ownerDocument||t).createElement("link"),UA(l);var i=l;return i._p=new Promise(function(s,c){i.onload=s,i.onerror=c}),GA(l,"link",a),e.state.loading|=4,J0(l,A.precedence,t),e.instance=l;case"script":return l=Fu(A.src),(n=t.querySelector(od(l)))?(e.instance=n,UA(n),n):(a=A,(n=Cn.get(l))&&(a=yt({},A),C4(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),UA(n),GA(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(V(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,J0(a,A.precedence,t));return e.instance}function J0(t,e,A){for(var a=A.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,l=n,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===e)l=s;else if(l!==n)break}l?l.parentNode.insertBefore(t,l.nextSibling):(e=A.nodeType===9?A.head:A,e.insertBefore(t,e.firstChild))}function B4(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function C4(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var W0=null;function v6(t,e,A){if(W0===null){var a=new Map,n=W0=new Map;n.set(A,a)}else n=W0,a=n.get(A),a||(a=new Map,n.set(A,a));if(a.has(t))return a;for(a.set(t,null),A=A.getElementsByTagName(t),n=0;n<A.length;n++){var l=A[n];if(!(l[ed]||l[_A]||t==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(e)||"";i=t+i;var s=a.get(i);s?s.push(l):a.set(i,[l])}}return a}function S6(t,e,A){t=t.ownerDocument||t,t.head.insertBefore(A,e==="title"?t.querySelector("head > title"):null)}function sz(t,e,A){if(A===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function sL(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function uz(t,e,A,a){if(A.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(A.state.loading&4)===0){if(A.instance===null){var n=wu(a.href),l=e.querySelector(rd(n));if(l){e=l._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Um.bind(t),e.then(t,t)),A.state.loading|=4,A.instance=l,UA(l);return}l=e.ownerDocument||e,a=iL(a),(n=Cn.get(n))&&B4(a,n),l=l.createElement("link"),UA(l);var i=l;i._p=new Promise(function(s,c){i.onload=s,i.onerror=c}),GA(l,"link",a),A.instance=l}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(A,e),(e=A.state.preload)&&(A.state.loading&3)===0&&(t.count++,A=Um.bind(t),e.addEventListener("load",A),e.addEventListener("error",A))}}var IC=0;function cz(t,e){return t.stylesheets&&t.count===0&&$0(t,t.stylesheets),0<t.count||0<t.imgCount?function(A){var a=setTimeout(function(){if(t.stylesheets&&$0(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4+e);0<t.imgBytes&&IC===0&&(IC=62500*kK());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&$0(t,t.stylesheets),t.unsuspend)){var l=t.unsuspend;t.unsuspend=null,l()}},(t.imgBytes>IC?50:800)+e);return t.unsuspend=A,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Um(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Em=null;function $0(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Em=new Map,e.forEach(fz,t),Em=null,Um.call(t))}function fz(t,e){if(!(e.state.loading&4)){var A=Em.get(t);if(A)var a=A.get(null);else{A=new Map,Em.set(t,A);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<n.length;l++){var i=n[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(A.set(i.dataset.precedence,i),a=i)}a&&A.set(null,a)}n=e.instance,i=n.getAttribute("data-precedence"),l=A.get(i)||a,l===a&&A.set(null,n),A.set(i,n),this.count++,a=Um.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),l?l.parentNode.insertBefore(n,l.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var qf={$$typeof:Wl,Provider:null,Consumer:null,_currentValue:hi,_currentValue2:hi,_threadCount:0};function dz(t,e,A,a,n,l,i,s,c){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nC(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nC(0),this.hiddenUpdates=nC(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function uL(t,e,A,a,n,l,i,s,c,d,h,p){return t=new dz(t,e,A,i,c,d,h,p,s),e=1,l===!0&&(e|=24),l=Ga(3,null,null,e),t.current=l,l.stateNode=t,e=ky(),e.refCount++,t.pooledCache=e,e.refCount++,l.memoizedState={element:a,isDehydrated:A,cache:e},Yy(l),t}function cL(t){return t?(t=Au,t):Au}function fL(t,e,A,a,n,l){n=cL(n),a.context===null?a.context=n:a.pendingContext=n,a=oo(e),a.payload={element:A},l=l===void 0?null:l,l!==null&&(a.callback=l),A=io(t,a,e),A!==null&&(ga(A,t,e),Ef(A,t,e))}function b6(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var A=t.retryLane;t.retryLane=A!==0&&A<e?A:e}}function y4(t,e){b6(t,e),(t=t.alternate)&&b6(t,e)}function dL(t){if(t.tag===13||t.tag===31){var e=Ei(t,67108864);e!==null&&ga(e,t,67108864),y4(t,67108864)}}function U6(t){if(t.tag===13||t.tag===31){var e=ka();e=Ty(e);var A=Ei(t,e);A!==null&&ga(A,t,e),y4(t,e)}}var Lm=!0;function hz(t,e,A,a){var n=Ce.T;Ce.T=null;var l=Je.p;try{Je.p=2,x4(t,e,A,a)}finally{Je.p=l,Ce.T=n}}function pz(t,e,A,a){var n=Ce.T;Ce.T=null;var l=Je.p;try{Je.p=8,x4(t,e,A,a)}finally{Je.p=l,Ce.T=n}}function x4(t,e,A,a){if(Lm){var n=Uy(a);if(n===null)FC(t,e,a,Qm,A),E6(t,a);else if(gz(n,t,e,A,a))a.stopPropagation();else if(E6(t,a),e&4&&-1<mz.indexOf(t)){for(;n!==null;){var l=bu(n);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=ci(l.pendingLanes);if(i!==0){var s=l;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var c=1<<31-Pa(i);s.entanglements[1]|=c,i&=~c}Bl(l),(Ze&6)===0&&(Bm=za()+500,ld(0,!1))}}break;case 31:case 13:s=Ei(l,2),s!==null&&ga(s,l,2),zm(),y4(l,2)}if(l=Uy(a),l===null&&FC(t,e,a,Qm,A),l===n)break;n=l}n!==null&&a.stopPropagation()}else FC(t,e,a,null,A)}}function Uy(t){return t=Dy(t),w4(t)}var Qm=null;function w4(t){if(Qm=null,t=Zs(t),t!==null){var e=Zf(t);if(e===null)t=null;else{var A=e.tag;if(A===13){if(t=H6(e),t!==null)return t;t=null}else if(A===31){if(t=R6(e),t!==null)return t;t=null}else if(A===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Qm=t,null}function hL(t){switch(t){case"beforetoggle":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"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(aG()){case O6:return 2;case N6:return 8;case nm:case nG:return 32;case G6:return 268435456;default:return 32}default:return 32}}var Ey=!1,co=null,fo=null,ho=null,Yf=new Map,jf=new Map,$r=[],mz="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function E6(t,e){switch(t){case"focusin":case"focusout":co=null;break;case"dragenter":case"dragleave":fo=null;break;case"mouseover":case"mouseout":ho=null;break;case"pointerover":case"pointerout":Yf.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":jf.delete(e.pointerId)}}function mf(t,e,A,a,n,l){return t===null||t.nativeEvent!==l?(t={blockedOn:e,domEventName:A,eventSystemFlags:a,nativeEvent:l,targetContainers:[n]},e!==null&&(e=bu(e),e!==null&&dL(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function gz(t,e,A,a,n){switch(e){case"focusin":return co=mf(co,t,e,A,a,n),!0;case"dragenter":return fo=mf(fo,t,e,A,a,n),!0;case"mouseover":return ho=mf(ho,t,e,A,a,n),!0;case"pointerover":var l=n.pointerId;return Yf.set(l,mf(Yf.get(l)||null,t,e,A,a,n)),!0;case"gotpointercapture":return l=n.pointerId,jf.set(l,mf(jf.get(l)||null,t,e,A,a,n)),!0}return!1}function pL(t){var e=Zs(t.target);if(e!==null){var A=Zf(e);if(A!==null){if(e=A.tag,e===13){if(e=H6(A),e!==null){t.blockedOn=e,ub(t.priority,function(){U6(A)});return}}else if(e===31){if(e=R6(A),e!==null){t.blockedOn=e,ub(t.priority,function(){U6(A)});return}}else if(e===3&&A.stateNode.current.memoizedState.isDehydrated){t.blockedOn=A.tag===3?A.stateNode.containerInfo:null;return}}}t.blockedOn=null}function em(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var A=Uy(t.nativeEvent);if(A===null){A=t.nativeEvent;var a=new A.constructor(A.type,A);kC=a,A.target.dispatchEvent(a),kC=null}else return e=bu(A),e!==null&&dL(e),t.blockedOn=A,!1;e.shift()}return!0}function L6(t,e,A){em(t)&&A.delete(e)}function Bz(){Ey=!1,co!==null&&em(co)&&(co=null),fo!==null&&em(fo)&&(fo=null),ho!==null&&em(ho)&&(ho=null),Yf.forEach(L6),jf.forEach(L6)}function O0(t,e){t.blockedOn===e&&(t.blockedOn=null,Ey||(Ey=!0,pA.unstable_scheduleCallback(pA.unstable_NormalPriority,Bz)))}var N0=null;function Q6(t){N0!==t&&(N0=t,pA.unstable_scheduleCallback(pA.unstable_NormalPriority,function(){N0===t&&(N0=null);for(var e=0;e<t.length;e+=3){var A=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(w4(a||A)===null)continue;break}var l=bu(A);l!==null&&(t.splice(e,3),e-=3,oy(l,{pending:!0,data:n,method:A.method,action:a},a,n))}}))}function vu(t){function e(c){return O0(c,t)}co!==null&&O0(co,t),fo!==null&&O0(fo,t),ho!==null&&O0(ho,t),Yf.forEach(e),jf.forEach(e);for(var A=0;A<$r.length;A++){var a=$r[A];a.blockedOn===t&&(a.blockedOn=null)}for(;0<$r.length&&(A=$r[0],A.blockedOn===null);)pL(A),A.blockedOn===null&&$r.shift();if(A=(t.ownerDocument||t).$$reactFormReplay,A!=null)for(a=0;a<A.length;a+=3){var n=A[a],l=A[a+1],i=n[Ba]||null;if(typeof l=="function")i||Q6(A);else if(i){var s=null;if(l&&l.hasAttribute("formAction")){if(n=l,i=l[Ba]||null)s=i.formAction;else if(w4(n)!==null)continue}else s=i.action;typeof s=="function"?A[a+1]=s:(A.splice(a,3),a-=3),Q6(A)}}}function mL(){function t(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(A,20)}function A(){if(!a&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(A,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function v4(t){this._internalRoot=t}km.prototype.render=v4.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(V(409));var A=e.current,a=ka();fL(A,a,t,e,null,null)};km.prototype.unmount=v4.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fL(t.current,2,null,t,null,null),zm(),e[Su]=null}};function km(t){this._internalRoot=t}km.prototype.unstable_scheduleHydration=function(t){if(t){var e=k6();t={blockedOn:null,target:t,priority:e};for(var A=0;A<$r.length&&e!==0&&e<$r[A].priority;A++);$r.splice(A,0,t),A===0&&pL(t)}};var F6=T6.version;if(F6!=="19.2.4")throw Error(V(527,F6,"19.2.4"));Je.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(V(188)):(t=Object.keys(t).join(","),Error(V(268,t)));return t=ZN(e),t=t!==null?D6(t):null,t=t===null?null:t.stateNode,t};var Cz={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Ce,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(gf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!gf.isDisabled&&gf.supportsFiber))try{Jf=gf.inject(Cz),Va=gf}catch{}var gf;Xm.createRoot=function(t,e){if(!I6(t))throw Error(V(299));var A=!1,a="",n=oE,l=iE,i=sE;return e!=null&&(e.unstable_strictMode===!0&&(A=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(l=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=uL(t,1,!1,null,null,A,a,null,n,l,i,mL),t[Su]=e.current,g4(t),new v4(e)};Xm.hydrateRoot=function(t,e,A){if(!I6(t))throw Error(V(299));var a=!1,n="",l=oE,i=iE,s=sE,c=null;return A!=null&&(A.unstable_strictMode===!0&&(a=!0),A.identifierPrefix!==void 0&&(n=A.identifierPrefix),A.onUncaughtError!==void 0&&(l=A.onUncaughtError),A.onCaughtError!==void 0&&(i=A.onCaughtError),A.onRecoverableError!==void 0&&(s=A.onRecoverableError),A.formState!==void 0&&(c=A.formState)),e=uL(t,1,!0,e,A??null,a,n,c,l,i,s,mL),e.context=cL(null),A=e.current,a=ka(),a=Ty(a),n=oo(a),n.callback=null,io(A,n,a),A=a,e.current.lanes=A,$f(e,A),Bl(e),t[Su]=e.current,g4(t),new km(e)};Xm.version="19.2.4"});var yL=ua((Wj,CL)=>{"use strict";function BL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(BL)}catch(t){console.error(t)}}BL(),CL.exports=gL()});var HL=ua(qm=>{"use strict";var Jz=Symbol.for("react.transitional.element"),Wz=Symbol.for("react.fragment");function IL(t,e,A){var a=null;if(A!==void 0&&(a=""+A),e.key!==void 0&&(a=""+e.key),"key"in e){A={};for(var n in e)n!=="key"&&(A[n]=e[n])}else A=e;return e=A.ref,{$$typeof:Jz,type:t,key:a,ref:e!==void 0?e:null,props:A}}qm.Fragment=Wz;qm.jsx=IL;qm.jsxs=IL});var Qe=ua((aZ,RL)=>{"use strict";RL.exports=HL()});var YF=ua((Gle,Zd)=>{"use strict";Zd.exports=function(t){function e(r,o,u,f){return new cT(r,o,u,f)}function A(){}function a(r){var o="https://react.dev/errors/"+r;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(r){var o=r,u=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(u=o.return),r=o.return;while(r)}return o.tag===3?u:null}function l(r){if(n(r)!==r)throw Error(a(188))}function i(r){var o=r.alternate;if(!o){if(o=n(r),o===null)throw Error(a(188));return o!==r?null:r}for(var u=r,f=o;;){var g=u.return;if(g===null)break;var C=g.alternate;if(C===null){if(f=g.return,f!==null){u=f;continue}break}if(g.child===C.child){for(C=g.child;C;){if(C===u)return l(g),r;if(C===f)return l(g),o;C=C.sibling}throw Error(a(188))}if(u.return!==f.return)u=g,f=C;else{for(var E=!1,I=g.child;I;){if(I===u){E=!0,u=g,f=C;break}if(I===f){E=!0,f=g,u=C;break}I=I.sibling}if(!E){for(I=C.child;I;){if(I===u){E=!0,u=C,f=g;break}if(I===f){E=!0,f=C,u=g;break}I=I.sibling}if(!E)throw Error(a(189))}}if(u.alternate!==f)throw Error(a(190))}if(u.tag!==3)throw Error(a(188));return u.stateNode.current===u?r:o}function s(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r;for(r=r.child;r!==null;){if(o=s(r),o!==null)return o;r=r.sibling}return null}function c(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r;for(r=r.child;r!==null;){if(r.tag!==4&&(o=c(r),o!==null))return o;r=r.sibling}return null}function d(r){return r===null||typeof r!="object"?null:(r=$v&&r[$v]||r["@@iterator"],typeof r=="function"?r:null)}function h(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===mT?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case as:return"Fragment";case Z1:return"Profiler";case Jv:return"StrictMode";case W1:return"Suspense";case $1:return"SuspenseList";case tB:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case As:return"Portal";case br:return r.displayName||"Context";case Wv:return(r._context.displayName||"Context")+".Consumer";case J1:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case eB:return o=r.displayName||null,o!==null?o:h(r.type)||"Memo";case Ur:o=r._payload,r=r._init;try{return h(r(o))}catch{}}return null}function p(r){return{current:r}}function m(r){0>rs||(r.current=oB[rs],oB[rs]=null,rs--)}function B(r,o){rs++,oB[rs]=r.current,r.current=o}function y(r){return r>>>=0,r===0?32:31-(PI(r)/kI|0)|0}function v(r){var o=r&42;if(o!==0)return o;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function b(r,o,u){var f=r.pendingLanes;if(f===0)return 0;var g=0,C=r.suspendedLanes,E=r.pingedLanes;r=r.warmLanes;var I=f&134217727;return I!==0?(f=I&~C,f!==0?g=v(f):(E&=I,E!==0?g=v(E):u||(u=I&~r,u!==0&&(g=v(u))))):(I=f&~C,I!==0?g=v(I):E!==0?g=v(E):u||(u=f&~r,u!==0&&(g=v(u)))),g===0?0:o!==0&&o!==g&&(o&C)===0&&(C=g&-g,u=o&-o,C>=u||C===32&&(u&4194048)!==0)?o:g}function w(r,o){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&o)===0}function x(r,o){switch(r){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function S(){var r=zh;return zh<<=1,(zh&62914560)===0&&(zh=4194304),r}function U(r){for(var o=[],u=0;31>u;u++)o.push(r);return o}function L(r,o){r.pendingLanes|=o,o!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function F(r,o,u,f,g,C){var E=r.pendingLanes;r.pendingLanes=u,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=u,r.entangledLanes&=u,r.errorRecoveryDisabledLanes&=u,r.shellSuspendCounter=0;var I=r.entanglements,N=r.expirationTimes,j=r.hiddenUpdates;for(u=E&~u;0<u;){var Ae=31-Fa(u),W=1<<Ae;I[Ae]=0,N[Ae]=-1;var re=j[Ae];if(re!==null)for(j[Ae]=null,Ae=0;Ae<re.length;Ae++){var we=re[Ae];we!==null&&(we.lane&=-536870913)}u&=~W}f!==0&&T(r,f,0),C!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=C&~(E&~o))}function T(r,o,u){r.pendingLanes|=o,r.suspendedLanes&=~o;var f=31-Fa(o);r.entangledLanes|=o,r.entanglements[f]=r.entanglements[f]|1073741824|u&261930}function M(r,o){var u=r.entangledLanes|=o;for(r=r.entanglements;u;){var f=31-Fa(u),g=1<<f;g&o|r[f]&o&&(r[f]|=o),u&=~g}}function D(r,o){var u=o&-o;return u=(u&42)!==0?1:G(u),(u&(r.suspendedLanes|o))!==0?0:u}function G(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function ee(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function P(r){if(typeof ZI=="function"&&JI(r),Ta&&typeof Ta.setStrictMode=="function")try{Ta.setStrictMode(wc,r)}catch{}}function se(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}function le(r){if(uB===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);uB=o&&o[1]||"",bS=-1<u.stack.indexOf(`
|
|
10
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
11
|
+
`+uB+r+bS}function te(r,o){if(!r||cB)return"";cB=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(o){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(we){var re=we}Reflect.construct(r,[],W)}else{try{W.call()}catch(we){re=we}r.call(W.prototype)}}else{try{throw Error()}catch(we){re=we}(W=r())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(we){if(we&&re&&typeof we.stack=="string")return[we.stack,re.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=f.DetermineComponentFrameRoot(),E=C[0],I=C[1];if(E&&I){var N=E.split(`
|
|
12
|
+
`),j=I.split(`
|
|
13
|
+
`);for(g=f=0;f<N.length&&!N[f].includes("DetermineComponentFrameRoot");)f++;for(;g<j.length&&!j[g].includes("DetermineComponentFrameRoot");)g++;if(f===N.length||g===j.length)for(f=N.length-1,g=j.length-1;1<=f&&0<=g&&N[f]!==j[g];)g--;for(;1<=f&&0<=g;f--,g--)if(N[f]!==j[g]){if(f!==1||g!==1)do if(f--,g--,0>g||N[f]!==j[g]){var Ae=`
|
|
14
|
+
`+N[f].replace(" at new "," at ");return r.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",r.displayName)),Ae}while(1<=f&&0<=g);break}}}finally{cB=!1,Error.prepareStackTrace=u}return(u=r?r.displayName||r.name:"")?le(u):""}function q(r,o){switch(r.tag){case 26:case 27:case 5:return le(r.type);case 16:return le("Lazy");case 13:return r.child!==o&&o!==null?le("Suspense Fallback"):le("Suspense");case 19:return le("SuspenseList");case 0:case 15:return te(r.type,!1);case 11:return te(r.type.render,!1);case 1:return te(r.type,!0);case 31:return le("Activity");default:return""}}function fe(r){try{var o="",u=null;do o+=q(r,u),u=r,r=r.return;while(r);return o}catch(f){return`
|
|
15
|
+
Error generating stack: `+f.message+`
|
|
16
|
+
`+f.stack}}function X(r,o){if(typeof r=="object"&&r!==null){var u=US.get(r);return u!==void 0?u:(o={value:r,source:o,stack:fe(o)},US.set(r,o),o)}return{value:r,source:o,stack:fe(o)}}function oe(r,o){is[ss++]=vc,is[ss++]=Ph,Ph=r,vc=o}function ye(r,o,u){Wa[$a++]=ll,Wa[$a++]=rl,Wa[$a++]=Er,Er=r;var f=ll;r=rl;var g=32-Fa(f)-1;f&=~(1<<g),u+=1;var C=32-Fa(o)+g;if(30<C){var E=g-g%5;C=(f&(1<<E)-1).toString(32),f>>=E,g-=E,ll=1<<32-Fa(o)+g|u<<g|f,rl=C+r}else ll=1<<C|u<<g|f,rl=r}function he(r){r.return!==null&&(oe(r,1),ye(r,1,0))}function ze(r){for(;r===Ph;)Ph=is[--ss],is[ss]=null,vc=is[--ss],is[ss]=null;for(;r===Er;)Er=Wa[--$a],Wa[$a]=null,rl=Wa[--$a],Wa[$a]=null,ll=Wa[--$a],Wa[$a]=null}function Dt(r,o){Wa[$a++]=ll,Wa[$a++]=rl,Wa[$a++]=Er,ll=o.id,rl=o.overflow,Er=r}function Zt(r,o){B(Lr,o),B(Sc,r),B(FA,null),r=CT(o),m(FA),B(FA,r)}function LA(){m(FA),m(Sc),m(Lr)}function xA(r){r.memoizedState!==null&&B(kh,r);var o=FA.current,u=yT(o,r.type);o!==u&&(B(Sc,r),B(FA,u))}function WA(r){Sc.current===r&&(m(FA),m(Sc)),kh.current===r&&(m(kh),Rl?ko._currentValue=ns:ko._currentValue2=ns)}function Mt(r){var o=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jn(X(o,r)),fB}function Et(r,o){if(!YA)throw Error(a(175));yI(r.stateNode,r.type,r.memoizedProps,o,r)||Mt(r,!0)}function gr(r){for(TA=r.return;TA;)switch(TA.tag){case 5:case 31:case 13:en=!1;return;case 27:case 3:en=!0;return;default:TA=TA.return}}function En(r){if(!YA||r!==TA)return!1;if(!Ge)return gr(r),Ge=!0,!1;var o=r.tag;if(fA?o!==3&&o!==27&&(o!==5||fS(r.type)&&!Nh(r.type,r.memoizedProps))&&Qt&&Mt(r):o!==3&&(o!==5||fS(r.type)&&!Nh(r.type,r.memoizedProps))&&Qt&&Mt(r),gr(r),o===13){if(!YA)throw Error(a(316));if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));Qt=bI(r)}else if(o===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));Qt=SI(r)}else Qt=fA&&o===27?uI(r.type,Qt):TA?cS(r.stateNode):null;return!0}function Ln(){YA&&(Qt=TA=null,Ge=!1)}function ht(){var r=Qr;return r!==null&&(sa===null?sa=r:sa.push.apply(sa,r),Qr=null),r}function Jn(r){Qr===null?Qr=[r]:Qr.push(r)}function vt(r,o,u){Rl?(B(Xh,o._currentValue),o._currentValue=u):(B(Xh,o._currentValue2),o._currentValue2=u)}function uA(r){var o=Xh.current;Rl?r._currentValue=o:r._currentValue2=o,m(Xh)}function Wn(r,o,u){for(;r!==null;){var f=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,f!==null&&(f.childLanes|=o)):f!==null&&(f.childLanes&o)!==o&&(f.childLanes|=o),r===u)break;r=r.return}}function ac(r,o,u,f){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var C=g.dependencies;if(C!==null){var E=g.child;C=C.firstContext;e:for(;C!==null;){var I=C;C=g;for(var N=0;N<o.length;N++)if(I.context===o[N]){C.lanes|=u,I=C.alternate,I!==null&&(I.lanes|=u),Wn(C.return,u,r),f||(E=null);break e}C=I.next}}else if(g.tag===18){if(E=g.return,E===null)throw Error(a(341));E.lanes|=u,C=E.alternate,C!==null&&(C.lanes|=u),Wn(E,u,r),E=null}else E=g.child;if(E!==null)E.return=g;else for(E=g;E!==null;){if(E===r){E=null;break}if(g=E.sibling,g!==null){g.return=E.return,E=g;break}E=E.return}g=E}}function $n(r,o,u,f){r=null;for(var g=o,C=!1;g!==null;){if(!C){if((g.flags&524288)!==0)C=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var E=g.alternate;if(E===null)throw Error(a(387));if(E=E.memoizedProps,E!==null){var I=g.type;Ia(g.pendingProps.value,E.value)||(r!==null?r.push(I):r=[I])}}else if(g===kh.current){if(E=g.alternate,E===null)throw Error(a(387));E.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(ko):r=[ko])}g=g.return}r!==null&&ac(o,r,u,f),o.flags|=262144}function Br(r){for(r=r.firstContext;r!==null;){var o=r.context;if(!Ia(Rl?o._currentValue:o._currentValue2,r.memoizedValue))return!0;r=r.next}return!1}function Qn(r){Xo=r,Ml=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function cA(r){return nc(Xo,r)}function Zi(r,o){return Xo===null&&Qn(r),nc(r,o)}function nc(r,o){var u=Rl?o._currentValue:o._currentValue2;if(o={context:o,memoizedValue:u,next:null},Ml===null){if(r===null)throw Error(a(308));Ml=o,r.dependencies={lanes:0,firstContext:o},r.flags|=524288}else Ml=Ml.next=o;return u}function lc(){return{controller:new $I,data:new Map,refCount:0}}function Mo(r){r.refCount--,r.refCount===0&&eH(tH,function(){r.controller.abort()})}function _o(){}function la(r){r!==us&&r.next===null&&(us===null?qh=us=r:us=us.next=r),Yh=!0,dB||(dB=!0,ie())}function el(r,o){if(!hB&&Yh){hB=!0;do for(var u=!1,f=qh;f!==null;){if(!o)if(r!==0){var g=f.pendingLanes;if(g===0)var C=0;else{var E=f.suspendedLanes,I=f.pingedLanes;C=(1<<31-Fa(42|r)+1)-1,C&=g&~(E&~I),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(u=!0,J(f,C))}else C=_e,C=b(f,f===it?C:0,f.cancelPendingCommit!==null||f.timeoutHandle!==Po),(C&3)===0||w(f,C)||(u=!0,J(f,C));f=f.next}while(u);hB=!1}}function ih(){sh()}function sh(){Yh=dB=!1;var r=0;qo!==0&&QT()&&(r=qo);for(var o=oa(),u=null,f=qh;f!==null;){var g=f.next,C=tl(f,o);C===0?(f.next=null,u===null?qh=g:u.next=g,g===null&&(us=u)):(u=f,(r!==0||(C&3)!==0)&&(Yh=!0)),f=g}dA!==0&&dA!==5||el(r,!1),qo!==0&&(qo=0)}function tl(r,o){for(var u=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,C=r.pendingLanes&-62914561;0<C;){var E=31-Fa(C),I=1<<E,N=g[E];N===-1?((I&u)===0||(I&f)!==0)&&(g[E]=x(I,o)):N<=o&&(r.expiredLanes|=I),C&=~I}if(o=it,u=_e,u=b(r,r===o?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Po),f=r.callbackNode,u===0||r===o&&(et===2||et===9)||r.cancelPendingCommit!==null)return f!==null&&f!==null&&iB(f),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||w(r,u)){if(o=u&-u,o===r.callbackPriority)return o;switch(f!==null&&iB(f),ee(u)){case 2:case 8:u=YI;break;case 32:u=sB;break;case 268435456:u=jI;break;default:u=sB}return f=Oo.bind(null,r),u=Vh(u,f),r.callbackPriority=o,r.callbackNode=u,o}return f!==null&&f!==null&&iB(f),r.callbackPriority=2,r.callbackNode=null,2}function Oo(r,o){if(dA!==0&&dA!==5)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(Bc()&&r.callbackNode!==u)return null;var f=_e;return f=b(r,r===it?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Po),f===0?null:(Uv(r,f,o),tl(r,oa()),r.callbackNode!=null&&r.callbackNode===u?Oo.bind(null,r):null)}function J(r,o){if(Bc())return null;Uv(r,o,!0)}function ie(){MT?_T(function(){(Ie&6)!==0?Vh(vS,ih):sh()}):Vh(vS,ih)}function de(){if(qo===0){var r=cs;r===0&&(r=Gh,Gh<<=1,(Gh&261888)===0&&(Gh=256)),qo=r}return qo}function Se(r,o){if(bc===null){var u=bc=[];pB=0,cs=de(),fs={status:"pending",value:void 0,then:function(f){u.push(f)}}}return pB++,o.then(ot,ot),o}function ot(){if(--pB===0&&bc!==null){fs!==null&&(fs.status="fulfilled");var r=bc;bc=null,cs=0,fs=null;for(var o=0;o<r.length;o++)(0,r[o])()}}function Ve(r,o){var u=[],f={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return r.then(function(){f.status="fulfilled",f.value=o;for(var g=0;g<u.length;g++)(0,u[g])(o)},function(g){for(f.status="rejected",f.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),f}function Lt(){var r=Yo.current;return r!==null?r:it.pooledCache}function Ua(r,o){o===null?B(Yo,Yo.current):B(Yo,o.pool)}function Al(){var r=Lt();return r===null?null:{parent:Rl?Ft._currentValue:Ft._currentValue2,pool:r}}function Ji(r,o){if(Ia(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var u=Object.keys(r),f=Object.keys(o);if(u.length!==f.length)return!1;for(f=0;f<u.length;f++){var g=u[f];if(!WI.call(o,g)||!Ia(r[g],o[g]))return!1}return!0}function uh(r){return r=r.status,r==="fulfilled"||r==="rejected"}function ch(r,o,u){switch(u=r[u],u===void 0?r.push(o):u!==o&&(o.then(_o,_o),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,Zx(r),r;default:if(typeof o.status=="string")o.then(_o,_o);else{if(r=it,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=o,r.status="pending",r.then(function(f){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=f}},function(f){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=f}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,Zx(r),r}throw jo=o,ds}}function Ll(r){try{var o=r._init;return o(r._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(jo=u,ds):u}}function fh(){if(jo===null)throw Error(a(459));var r=jo;return jo=null,r}function Zx(r){if(r===ds||r===jh)throw Error(a(483))}function dh(r){var o=Uc;return Uc+=1,hs===null&&(hs=[]),ch(hs,r,o)}function rc(r,o){o=o.props.ref,r.ref=o!==void 0?o:null}function hh(r,o){throw o.$$typeof===hT?Error(a(525)):(r=Object.prototype.toString.call(o),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r)))}function Jx(r){function o(_,R){if(r){var O=_.deletions;O===null?(_.deletions=[R],_.flags|=16):O.push(R)}}function u(_,R){if(!r)return null;for(;R!==null;)o(_,R),R=R.sibling;return null}function f(_){for(var R=new Map;_!==null;)_.key!==null?R.set(_.key,_):R.set(_.index,_),_=_.sibling;return R}function g(_,R){return _=Hl(_,R),_.index=0,_.sibling=null,_}function C(_,R,O){return _.index=O,r?(O=_.alternate,O!==null?(O=O.index,O<R?(_.flags|=67108866,R):O):(_.flags|=67108866,R)):(_.flags|=1048576,R)}function E(_){return r&&_.alternate===null&&(_.flags|=67108866),_}function I(_,R,O,$){return R===null||R.tag!==6?(R=X1(O,_.mode,$),R.return=_,R):(R=g(R,O),R.return=_,R)}function N(_,R,O,$){var me=O.type;return me===as?Ae(_,R,O.props.children,$,O.key):R!==null&&(R.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===Ur&&Ll(me)===R.type)?(R=g(R,O.props),rc(R,O),R.return=_,R):(R=Mh(O.type,O.key,O.props,null,_.mode,$),rc(R,O),R.return=_,R)}function j(_,R,O,$){return R===null||R.tag!==4||R.stateNode.containerInfo!==O.containerInfo||R.stateNode.implementation!==O.implementation?(R=q1(O,_.mode,$),R.return=_,R):(R=g(R,O.children||[]),R.return=_,R)}function Ae(_,R,O,$,me){return R===null||R.tag!==7?(R=Vo(O,_.mode,$,me),R.return=_,R):(R=g(R,O),R.return=_,R)}function W(_,R,O){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=X1(""+R,_.mode,O),R.return=_,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _h:return O=Mh(R.type,R.key,R.props,null,_.mode,O),rc(O,R),O.return=_,O;case As:return R=q1(R,_.mode,O),R.return=_,R;case Ur:return R=Ll(R),W(_,R,O)}if(Oh(R)||d(R))return R=Vo(R,_.mode,O,null),R.return=_,R;if(typeof R.then=="function")return W(_,dh(R),O);if(R.$$typeof===br)return W(_,Zi(_,R),O);hh(_,R)}return null}function re(_,R,O,$){var me=R!==null?R.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return me!==null?null:I(_,R,""+O,$);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _h:return O.key===me?N(_,R,O,$):null;case As:return O.key===me?j(_,R,O,$):null;case Ur:return O=Ll(O),re(_,R,O,$)}if(Oh(O)||d(O))return me!==null?null:Ae(_,R,O,$,null);if(typeof O.then=="function")return re(_,R,dh(O),$);if(O.$$typeof===br)return re(_,R,Zi(_,O),$);hh(_,O)}return null}function we(_,R,O,$,me){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return _=_.get(O)||null,I(R,_,""+$,me);if(typeof $=="object"&&$!==null){switch($.$$typeof){case _h:return _=_.get($.key===null?O:$.key)||null,N(R,_,$,me);case As:return _=_.get($.key===null?O:$.key)||null,j(R,_,$,me);case Ur:return $=Ll($),we(_,R,O,$,me)}if(Oh($)||d($))return _=_.get(O)||null,Ae(R,_,$,me,null);if(typeof $.then=="function")return we(_,R,O,dh($),me);if($.$$typeof===br)return we(_,R,O,Zi(R,$),me);hh(R,$)}return null}function IA(_,R,O,$){for(var me=null,Tt=null,Be=R,Ye=R=0,SA=null;Be!==null&&Ye<O.length;Ye++){Be.index>Ye?(SA=Be,Be=null):SA=Be.sibling;var je=re(_,Be,O[Ye],$);if(je===null){Be===null&&(Be=SA);break}r&&Be&&je.alternate===null&&o(_,Be),R=C(je,R,Ye),Tt===null?me=je:Tt.sibling=je,Tt=je,Be=SA}if(Ye===O.length)return u(_,Be),Ge&&oe(_,Ye),me;if(Be===null){for(;Ye<O.length;Ye++)Be=W(_,O[Ye],$),Be!==null&&(R=C(Be,R,Ye),Tt===null?me=Be:Tt.sibling=Be,Tt=Be);return Ge&&oe(_,Ye),me}for(Be=f(Be);Ye<O.length;Ye++)SA=we(Be,_,Ye,O[Ye],$),SA!==null&&(r&&SA.alternate!==null&&Be.delete(SA.key===null?Ye:SA.key),R=C(SA,R,Ye),Tt===null?me=SA:Tt.sibling=SA,Tt=SA);return r&&Be.forEach(function(Dr){return o(_,Dr)}),Ge&&oe(_,Ye),me}function Hc(_,R,O,$){if(O==null)throw Error(a(151));for(var me=null,Tt=null,Be=R,Ye=R=0,SA=null,je=O.next();Be!==null&&!je.done;Ye++,je=O.next()){Be.index>Ye?(SA=Be,Be=null):SA=Be.sibling;var Dr=re(_,Be,je.value,$);if(Dr===null){Be===null&&(Be=SA);break}r&&Be&&Dr.alternate===null&&o(_,Be),R=C(Dr,R,Ye),Tt===null?me=Dr:Tt.sibling=Dr,Tt=Dr,Be=SA}if(je.done)return u(_,Be),Ge&&oe(_,Ye),me;if(Be===null){for(;!je.done;Ye++,je=O.next())je=W(_,je.value,$),je!==null&&(R=C(je,R,Ye),Tt===null?me=je:Tt.sibling=je,Tt=je);return Ge&&oe(_,Ye),me}for(Be=f(Be);!je.done;Ye++,je=O.next())je=we(Be,_,Ye,je.value,$),je!==null&&(r&&je.alternate!==null&&Be.delete(je.key===null?Ye:je.key),R=C(je,R,Ye),Tt===null?me=je:Tt.sibling=je,Tt=je);return r&&Be.forEach(function(lH){return o(_,lH)}),Ge&&oe(_,Ye),me}function $o(_,R,O,$){if(typeof O=="object"&&O!==null&&O.type===as&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case _h:e:{for(var me=O.key;R!==null;){if(R.key===me){if(me=O.type,me===as){if(R.tag===7){u(_,R.sibling),$=g(R,O.props.children),$.return=_,_=$;break e}}else if(R.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===Ur&&Ll(me)===R.type){u(_,R.sibling),$=g(R,O.props),rc($,O),$.return=_,_=$;break e}u(_,R);break}else o(_,R);R=R.sibling}O.type===as?($=Vo(O.props.children,_.mode,$,O.key),$.return=_,_=$):($=Mh(O.type,O.key,O.props,null,_.mode,$),rc($,O),$.return=_,_=$)}return E(_);case As:e:{for(me=O.key;R!==null;){if(R.key===me)if(R.tag===4&&R.stateNode.containerInfo===O.containerInfo&&R.stateNode.implementation===O.implementation){u(_,R.sibling),$=g(R,O.children||[]),$.return=_,_=$;break e}else{u(_,R);break}else o(_,R);R=R.sibling}$=q1(O,_.mode,$),$.return=_,_=$}return E(_);case Ur:return O=Ll(O),$o(_,R,O,$)}if(Oh(O))return IA(_,R,O,$);if(d(O)){if(me=d(O),typeof me!="function")throw Error(a(150));return O=me.call(O),Hc(_,R,O,$)}if(typeof O.then=="function")return $o(_,R,dh(O),$);if(O.$$typeof===br)return $o(_,R,Zi(_,O),$);hh(_,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,R!==null&&R.tag===6?(u(_,R.sibling),$=g(R,O),$.return=_,_=$):(u(_,R),$=X1(O,_.mode,$),$.return=_,_=$),E(_)):u(_,R)}return function(_,R,O,$){try{Uc=0;var me=$o(_,R,O,$);return hs=null,me}catch(Be){if(Be===ds||Be===jh)throw Be;var Tt=e(29,Be,null,_.mode);return Tt.lanes=$,Tt.return=_,Tt}}}function ph(){for(var r=ps,o=gB=ps=0;o<r;){var u=tn[o];tn[o++]=null;var f=tn[o];tn[o++]=null;var g=tn[o];tn[o++]=null;var C=tn[o];if(tn[o++]=null,f!==null&&g!==null){var E=f.pending;E===null?g.next=g:(g.next=E.next,E.next=g),f.pending=g}C!==0&&Wx(u,g,C)}}function mh(r,o,u,f){tn[ps++]=r,tn[ps++]=o,tn[ps++]=u,tn[ps++]=f,gB|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function Wg(r,o,u,f){return mh(r,o,u,f),gh(r)}function No(r,o){return mh(r,null,null,o),gh(r)}function Wx(r,o,u){r.lanes|=u;var f=r.alternate;f!==null&&(f.lanes|=u);for(var g=!1,C=r.return;C!==null;)C.childLanes|=u,f=C.alternate,f!==null&&(f.childLanes|=u),C.tag===22&&(r=C.stateNode,r===null||r._visibility&1||(g=!0)),r=C,C=C.return;return r.tag===3?(C=r.stateNode,g&&o!==null&&(g=31-Fa(u),r=C.hiddenUpdates,f=r[g],f===null?r[g]=[o]:f.push(o),o.lane=u|536870912),C):null}function gh(r){if(50<Ic)throw Ic=0,QB=null,Error(a(185));for(var o=r.return;o!==null;)r=o,o=r.return;return r.tag===3?r.stateNode:null}function $g(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function e1(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Cr(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function yr(r,o,u){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(Ie&2)!==0){var g=f.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),f.pending=o,o=gh(r),Wx(r,null,u),o}return mh(r,f,o,u),gh(r)}function oc(r,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var f=o.lanes;f&=r.pendingLanes,u|=f,o.lanes=u,M(r,u)}}function t1(r,o){var u=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,u===f)){var g=null,C=null;if(u=u.firstBaseUpdate,u!==null){do{var E={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};C===null?g=C=E:C=C.next=E,u=u.next}while(u!==null);C===null?g=C=o:C=C.next=o}else g=C=o;u={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:C,shared:f.shared,callbacks:f.callbacks},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=o:r.next=o,u.lastBaseUpdate=o}function ic(){if(BB){var r=fs;if(r!==null)throw r}}function sc(r,o,u,f){BB=!1;var g=r.updateQueue;Fr=!1;var C=g.firstBaseUpdate,E=g.lastBaseUpdate,I=g.shared.pending;if(I!==null){g.shared.pending=null;var N=I,j=N.next;N.next=null,E===null?C=j:E.next=j,E=N;var Ae=r.alternate;Ae!==null&&(Ae=Ae.updateQueue,I=Ae.lastBaseUpdate,I!==E&&(I===null?Ae.firstBaseUpdate=j:I.next=j,Ae.lastBaseUpdate=N))}if(C!==null){var W=g.baseState;E=0,Ae=j=N=null,I=C;do{var re=I.lane&-536870913,we=re!==I.lane;if(we?(_e&re)===re:(f&re)===re){re!==0&&re===cs&&(BB=!0),Ae!==null&&(Ae=Ae.next={lane:0,tag:I.tag,payload:I.payload,callback:null,next:null});e:{var IA=r,Hc=I;re=o;var $o=u;switch(Hc.tag){case 1:if(IA=Hc.payload,typeof IA=="function"){W=IA.call($o,W,re);break e}W=IA;break e;case 3:IA.flags=IA.flags&-65537|128;case 0:if(IA=Hc.payload,re=typeof IA=="function"?IA.call($o,W,re):IA,re==null)break e;W=j1({},W,re);break e;case 2:Fr=!0}}re=I.callback,re!==null&&(r.flags|=64,we&&(r.flags|=8192),we=g.callbacks,we===null?g.callbacks=[re]:we.push(re))}else we={lane:re,tag:I.tag,payload:I.payload,callback:I.callback,next:null},Ae===null?(j=Ae=we,N=W):Ae=Ae.next=we,E|=re;if(I=I.next,I===null){if(I=g.shared.pending,I===null)break;we=I,I=we.next,we.next=null,g.lastBaseUpdate=we,g.shared.pending=null}}while(!0);Ae===null&&(N=W),g.baseState=N,g.firstBaseUpdate=j,g.lastBaseUpdate=Ae,C===null&&(g.shared.lanes=0),Ir|=E,r.lanes=E,r.memoizedState=W}}function $x(r,o){if(typeof r!="function")throw Error(a(191,r));r.call(o)}function ew(r,o){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)$x(u[r],o)}function tw(r,o){r=Nl,B(Jh,r),B(ms,o),Nl=r|o.baseLanes}function A1(){B(Jh,Nl),B(ms,ms.current)}function a1(){Nl=Jh.current,m(ms),m(Jh)}function xr(r){var o=r.alternate;B(kt,kt.current&1),B(Ha,r),An===null&&(o===null||ms.current!==null||o.memoizedState!==null)&&(An=r)}function n1(r){B(kt,kt.current),B(Ha,r),An===null&&(An=r)}function Aw(r){r.tag===22?(B(kt,kt.current),B(Ha,r),An===null&&(An=r)):wr(r)}function wr(){B(kt,kt.current),B(Ha,Ha.current)}function Ea(r){m(Ha),An===r&&(An=null),m(kt)}function Bh(r){for(var o=r;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||nB(u)||lB(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function _t(){throw Error(a(321))}function l1(r,o){if(o===null)return!1;for(var u=0;u<o.length&&u<r.length;u++)if(!Ia(r[u],o[u]))return!1;return!0}function r1(r,o,u,f,g,C){return _l=C,be=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,pe.H=r===null||r.memoizedState===null?QS:CB,Jo=!1,C=u(f,g),Jo=!1,gs&&(C=nw(o,u,f,g)),aw(r),C}function aw(r){pe.H=Lc;var o=at!==null&&at.next!==null;if(_l=0,Jt=at=be=null,Wh=!1,Ec=0,Bs=null,o)throw Error(a(300));r===null||Wt||(r=r.dependencies,r!==null&&Br(r)&&(Wt=!0))}function nw(r,o,u,f){be=r;var g=0;do{if(gs&&(Bs=null),Ec=0,gs=!1,25<=g)throw Error(a(301));if(g+=1,Jt=at=null,r.updateQueue!=null){var C=r.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}pe.H=FS,C=o(u,f)}while(gs);return C}function P7(){var r=pe.H,o=r.useState()[0];return o=typeof o.then=="function"?uc(o):o,r=r.useState()[0],(at!==null?at.memoizedState:null)!==r&&(be.flags|=1024),o}function o1(){var r=$h!==0;return $h=0,r}function i1(r,o,u){o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~u}function s1(r){if(Wh){for(r=r.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Wh=!1}_l=0,Jt=at=be=null,gs=!1,Ec=$h=0,Bs=null}function $A(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?be.memoizedState=Jt=r:Jt=Jt.next=r,Jt}function Pt(){if(at===null){var r=be.alternate;r=r!==null?r.memoizedState:null}else r=at.next;var o=Jt===null?be.memoizedState:Jt.next;if(o!==null)Jt=o,at=r;else{if(r===null)throw be.alternate===null?Error(a(467)):Error(a(310));at=r,r={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Jt===null?be.memoizedState=Jt=r:Jt=Jt.next=r}return Jt}function Ch(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uc(r){var o=Ec;return Ec+=1,Bs===null&&(Bs=[]),r=ch(Bs,r,o),o=be,(Jt===null?o.memoizedState:Jt.next)===null&&(o=o.alternate,pe.H=o===null||o.memoizedState===null?QS:CB),r}function yh(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return uc(r);if(r.$$typeof===br)return cA(r)}throw Error(a(438,String(r)))}function u1(r){var o=null,u=be.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var f=be.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(o={data:f.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Ch(),be.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(r),f=0;f<r;f++)u[f]=pT;return o.index++,u}function Ql(r,o){return typeof o=="function"?o(r):o}function xh(r){var o=Pt();return c1(o,at,r)}function c1(r,o,u){var f=r.queue;if(f===null)throw Error(a(311));f.lastRenderedReducer=u;var g=r.baseQueue,C=f.pending;if(C!==null){if(g!==null){var E=g.next;g.next=C.next,C.next=E}o.baseQueue=g=C,f.pending=null}if(C=r.baseState,g===null)r.memoizedState=C;else{o=g.next;var I=E=null,N=null,j=o,Ae=!1;do{var W=j.lane&-536870913;if(W!==j.lane?(_e&W)===W:(_l&W)===W){var re=j.revertLane;if(re===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),W===cs&&(Ae=!0);else if((_l&re)===re){j=j.next,re===cs&&(Ae=!0);continue}else W={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},N===null?(I=N=W,E=C):N=N.next=W,be.lanes|=re,Ir|=re;W=j.action,Jo&&u(C,W),C=j.hasEagerState?j.eagerState:u(C,W)}else re={lane:W,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},N===null?(I=N=re,E=C):N=N.next=re,be.lanes|=W,Ir|=W;j=j.next}while(j!==null&&j!==o);if(N===null?E=C:N.next=I,!Ia(C,r.memoizedState)&&(Wt=!0,Ae&&(u=fs,u!==null)))throw u;r.memoizedState=C,r.baseState=E,r.baseQueue=N,f.lastRenderedState=C}return g===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function f1(r){var o=Pt(),u=o.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=r;var f=u.dispatch,g=u.pending,C=o.memoizedState;if(g!==null){u.pending=null;var E=g=g.next;do C=r(C,E.action),E=E.next;while(E!==g);Ia(C,o.memoizedState)||(Wt=!0),o.memoizedState=C,o.baseQueue===null&&(o.baseState=C),u.lastRenderedState=C}return[C,f]}function lw(r,o,u){var f=be,g=Pt(),C=Ge;if(C){if(u===void 0)throw Error(a(407));u=u()}else u=o();var E=!Ia((at||g).memoizedState,u);if(E&&(g.memoizedState=u,Wt=!0),g=g.queue,p1(iw.bind(null,f,g,r),[r]),g.getSnapshot!==o||E||Jt!==null&&Jt.memoizedState.tag&1){if(f.flags|=2048,Wi(9,{destroy:void 0},ow.bind(null,f,g,u,o),null),it===null)throw Error(a(349));C||(_l&127)!==0||rw(f,o,u)}return u}function rw(r,o,u){r.flags|=16384,r={getSnapshot:o,value:u},o=be.updateQueue,o===null?(o=Ch(),be.updateQueue=o,o.stores=[r]):(u=o.stores,u===null?o.stores=[r]:u.push(r))}function ow(r,o,u,f){o.value=u,o.getSnapshot=f,sw(o)&&uw(r)}function iw(r,o,u){return u(function(){sw(o)&&uw(r)})}function sw(r){var o=r.getSnapshot;r=r.value;try{var u=o();return!Ia(r,u)}catch{return!0}}function uw(r){var o=No(r,2);o!==null&&ra(o,r,2)}function d1(r){var o=$A();if(typeof r=="function"){var u=r;if(r=u(),Jo){P(!0);try{u()}finally{P(!1)}}}return o.memoizedState=o.baseState=r,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:r},o}function cw(r,o,u,f){return r.baseState=u,c1(r,at,typeof f=="function"?f:Ql)}function k7(r,o,u,f,g){if(Sh(r))throw Error(a(485));if(r=o.action,r!==null){var C={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){C.listeners.push(E)}};pe.T!==null?u(!0):C.isTransition=!1,f(C),u=o.pending,u===null?(C.next=o.pending=C,fw(o,C)):(C.next=u.next,o.pending=u.next=C)}}function fw(r,o){var u=o.action,f=o.payload,g=r.state;if(o.isTransition){var C=pe.T,E={};pe.T=E;try{var I=u(g,f),N=pe.S;N!==null&&N(E,I),dw(r,o,I)}catch(j){h1(r,o,j)}finally{C!==null&&E.types!==null&&(C.types=E.types),pe.T=C}}else try{C=u(g,f),dw(r,o,C)}catch(j){h1(r,o,j)}}function dw(r,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(f){hw(r,o,f)},function(f){return h1(r,o,f)}):hw(r,o,u)}function hw(r,o,u){o.status="fulfilled",o.value=u,pw(o),r.state=u,o=r.pending,o!==null&&(u=o.next,u===o?r.pending=null:(u=u.next,o.next=u,fw(r,u)))}function h1(r,o,u){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do o.status="rejected",o.reason=u,pw(o),o=o.next;while(o!==f)}r.action=null}function pw(r){r=r.listeners;for(var o=0;o<r.length;o++)(0,r[o])()}function mw(r,o){return o}function gw(r,o){if(Ge){var u=it.formState;if(u!==null){e:{var f=be;if(Ge){if(Qt){var g=iI(Qt,en);if(g){Qt=cS(g),f=sI(g);break e}}Mt(f)}f=!1}f&&(o=u[0])}}u=$A(),u.memoizedState=u.baseState=o,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mw,lastRenderedState:o},u.queue=f,u=Dw.bind(null,be,f),f.dispatch=u,f=d1(!1);var C=C1.bind(null,be,!1,f.queue);return f=$A(),g={state:o,dispatch:null,action:r,pending:null},f.queue=g,u=k7.bind(null,be,g,C,u),g.dispatch=u,f.memoizedState=r,[o,u,!1]}function Bw(r){var o=Pt();return Cw(o,at,r)}function Cw(r,o,u){if(o=c1(r,o,mw)[0],r=xh(Ql)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var f=uc(o)}catch(E){throw E===ds?jh:E}else f=o;o=Pt();var g=o.queue,C=g.dispatch;return u!==o.memoizedState&&(be.flags|=2048,Wi(9,{destroy:void 0},X7.bind(null,g,u),null)),[f,C,r]}function X7(r,o){r.action=o}function yw(r){var o=Pt(),u=at;if(u!==null)return Cw(o,u,r);Pt(),o=o.memoizedState,u=Pt();var f=u.queue.dispatch;return u.memoizedState=r,[o,f,!1]}function Wi(r,o,u,f){return r={tag:r,create:u,deps:f,inst:o,next:null},o=be.updateQueue,o===null&&(o=Ch(),be.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=r.next=r:(f=u.next,u.next=r,r.next=f,o.lastEffect=r),r}function xw(){return Pt().memoizedState}function wh(r,o,u,f){var g=$A();be.flags|=r,g.memoizedState=Wi(1|o,{destroy:void 0},u,f===void 0?null:f)}function vh(r,o,u,f){var g=Pt();f=f===void 0?null:f;var C=g.memoizedState.inst;at!==null&&f!==null&&l1(f,at.memoizedState.deps)?g.memoizedState=Wi(o,C,u,f):(be.flags|=r,g.memoizedState=Wi(1|o,C,u,f))}function ww(r,o){wh(8390656,8,r,o)}function p1(r,o){vh(2048,8,r,o)}function q7(r){be.flags|=4;var o=be.updateQueue;if(o===null)o=Ch(),be.updateQueue=o,o.events=[r];else{var u=o.events;u===null?o.events=[r]:u.push(r)}}function vw(r){var o=Pt().memoizedState;return q7({ref:o,nextImpl:r}),function(){if((Ie&2)!==0)throw Error(a(440));return o.impl.apply(void 0,arguments)}}function Sw(r,o){return vh(4,2,r,o)}function bw(r,o){return vh(4,4,r,o)}function Uw(r,o){if(typeof o=="function"){r=r();var u=o(r);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Ew(r,o,u){u=u!=null?u.concat([r]):null,vh(4,4,Uw.bind(null,o,r),u)}function m1(){}function Lw(r,o){var u=Pt();o=o===void 0?null:o;var f=u.memoizedState;return o!==null&&l1(o,f[1])?f[0]:(u.memoizedState=[r,o],r)}function Qw(r,o){var u=Pt();o=o===void 0?null:o;var f=u.memoizedState;if(o!==null&&l1(o,f[1]))return f[0];if(f=r(),Jo){P(!0);try{r()}finally{P(!1)}}return u.memoizedState=[f,o],f}function g1(r,o,u){return u===void 0||(_l&1073741824)!==0&&(_e&261930)===0?r.memoizedState=o:(r.memoizedState=u,r=bv(),be.lanes|=r,Ir|=r,u)}function Fw(r,o,u,f){return Ia(u,o)?u:ms.current!==null?(r=g1(r,u,f),Ia(r,o)||(Wt=!0),r):(_l&42)===0||(_l&1073741824)!==0&&(_e&261930)===0?(Wt=!0,r.memoizedState=u):(r=bv(),be.lanes|=r,Ir|=r,o)}function Tw(r,o,u,f,g){var C=Dl();wA(C!==0&&8>C?C:8);var E=pe.T,I={};pe.T=I,C1(r,!1,o,u);try{var N=g(),j=pe.S;if(j!==null&&j(I,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Ae=Ve(N,f);cc(r,o,Ae,La(r))}else cc(r,o,f,La(r))}catch(W){cc(r,o,{then:function(){},status:"rejected",reason:W},La())}finally{wA(C),E!==null&&I.types!==null&&(E.types=I.types),pe.T=E}}function Iw(r){var o=r.memoizedState;if(o!==null)return o;o={memoizedState:ns,baseState:ns,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:ns},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:u},next:null},r.memoizedState=o,r=r.alternate,r!==null&&(r.memoizedState=o),o}function B1(){return cA(ko)}function Hw(){return Pt().memoizedState}function Rw(){return Pt().memoizedState}function Y7(r){for(var o=r.return;o!==null;){switch(o.tag){case 24:case 3:var u=La();r=Cr(u);var f=yr(o,r,u);f!==null&&(ra(f,o,u),oc(f,o,u)),o={cache:lc()},r.payload=o;return}o=o.return}}function j7(r,o,u){var f=La();u={lane:f,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Sh(r)?Mw(o,u):(u=Wg(r,o,u,f),u!==null&&(ra(u,r,f),_w(u,o,f)))}function Dw(r,o,u){var f=La();cc(r,o,u,f)}function cc(r,o,u,f){var g={lane:f,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Sh(r))Mw(o,g);else{var C=r.alternate;if(r.lanes===0&&(C===null||C.lanes===0)&&(C=o.lastRenderedReducer,C!==null))try{var E=o.lastRenderedState,I=C(E,u);if(g.hasEagerState=!0,g.eagerState=I,Ia(I,E))return mh(r,o,g,0),it===null&&ph(),!1}catch{}if(u=Wg(r,o,g,f),u!==null)return ra(u,r,f),_w(u,o,f),!0}return!1}function C1(r,o,u,f){if(f={lane:2,revertLane:de(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Sh(r)){if(o)throw Error(a(479))}else o=Wg(r,u,f,2),o!==null&&ra(o,r,2)}function Sh(r){var o=r.alternate;return r===be||o!==null&&o===be}function Mw(r,o){gs=Wh=!0;var u=r.pending;u===null?o.next=o:(o.next=u.next,u.next=o),r.pending=o}function _w(r,o,u){if((u&4194048)!==0){var f=o.lanes;f&=r.pendingLanes,u|=f,o.lanes=u,M(r,u)}}function y1(r,o,u,f){o=r.memoizedState,u=u(f,o),u=u==null?o:j1({},o,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}function Ow(r,o,u,f,g,C,E){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,C,E):o.prototype&&o.prototype.isPureReactComponent?!Ji(u,f)||!Ji(g,C):!0}function Nw(r,o,u,f){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,f),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,f),o.state!==r&&yB.enqueueReplaceState(o,o.state,null)}function Go(r,o){var u=o;if("ref"in o){u={};for(var f in o)f!=="ref"&&(u[f]=o[f])}if(r=r.defaultProps){u===o&&(u=j1({},u));for(var g in r)u[g]===void 0&&(u[g]=r[g])}return u}function bh(r,o){try{var u=r.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(f){setTimeout(function(){throw f})}}function Gw(r,o,u){try{var f=r.onCaughtError;f(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function x1(r,o,u){return u=Cr(u),u.tag=3,u.payload={element:null},u.callback=function(){bh(r,o)},u}function Kw(r){return r=Cr(r),r.tag=3,r}function zw(r,o,u,f){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var C=f.value;r.payload=function(){return g(C)},r.callback=function(){Gw(o,u,f)}}var E=u.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(r.callback=function(){Gw(o,u,f),typeof g!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var I=f.stack;this.componentDidCatch(f.value,{componentStack:I!==null?I:""})})}function Z7(r,o,u,f,g){if(u.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(o=u.alternate,o!==null&&$n(o,u,g,!0),u=Ha.current,u!==null){switch(u.tag){case 31:case 13:return An===null?Rh():u.alternate===null&&Ot===0&&(Ot=3),u.flags&=-257,u.flags|=65536,u.lanes=g,f===Zh?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([f]):o.add(f),P1(r,f,g)),!1;case 22:return u.flags|=65536,f===Zh?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([f])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([f]):u.add(f)),P1(r,f,g)),!1}throw Error(a(435,u.tag))}return P1(r,f,g),Rh(),!1}if(Ge)return o=Ha.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,f!==fB&&(r=Error(a(422),{cause:f}),Jn(X(r,u)))):(f!==fB&&(o=Error(a(423),{cause:f}),Jn(X(o,u))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,f=X(f,u),g=x1(r.stateNode,f,g),t1(r,g),Ot!==4&&(Ot=2)),!1;var C=Error(a(520),{cause:f});if(C=X(C,u),Fc===null?Fc=[C]:Fc.push(C),Ot!==4&&(Ot=2),o===null)return!0;f=X(f,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,r=g&-g,u.lanes|=r,r=x1(u.stateNode,f,r),t1(u,r),!1;case 1:if(o=u.type,C=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Hr===null||!Hr.has(C))))return u.flags|=65536,g&=-g,u.lanes|=g,g=Kw(g),zw(g,r,u,f),t1(u,g),!1}u=u.return}while(u!==null);return!1}function QA(r,o,u,f){o.child=r===null?LS(o,null,u,f):Zo(o,r.child,u,f)}function Vw(r,o,u,f,g){u=u.render;var C=o.ref;if("ref"in f){var E={};for(var I in f)I!=="ref"&&(E[I]=f[I])}else E=f;return Qn(o),f=r1(r,o,u,E,C,g),I=o1(),r!==null&&!Wt?(i1(r,o,g),Fl(r,o,g)):(Ge&&I&&he(o),o.flags|=1,QA(r,o,f,g),o.child)}function Pw(r,o,u,f,g){if(r===null){var C=u.type;return typeof C=="function"&&!k1(C)&&C.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=C,kw(r,o,C,f,g)):(r=Mh(u.type,null,f,o,o.mode,g),r.ref=o.ref,r.return=o,o.child=r)}if(C=r.child,!L1(r,g)){var E=C.memoizedProps;if(u=u.compare,u=u!==null?u:Ji,u(E,f)&&r.ref===o.ref)return Fl(r,o,g)}return o.flags|=1,r=Hl(C,f),r.ref=o.ref,r.return=o,o.child=r}function kw(r,o,u,f,g){if(r!==null){var C=r.memoizedProps;if(Ji(C,f)&&r.ref===o.ref)if(Wt=!1,o.pendingProps=f=C,L1(r,g))(r.flags&131072)!==0&&(Wt=!0);else return o.lanes=r.lanes,Fl(r,o,g)}return w1(r,o,u,f,g)}function Xw(r,o,u,f){var g=f.children,C=r!==null?r.memoizedState:null;if(r===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((o.flags&128)!==0){if(C=C!==null?C.baseLanes|u:u,r!==null){for(f=o.child=r.child,g=0;f!==null;)g=g|f.lanes|f.childLanes,f=f.sibling;f=g&~C}else f=0,o.child=null;return qw(r,o,C,u,f)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},r!==null&&Ua(o,C!==null?C.cachePool:null),C!==null?tw(o,C):A1(),Aw(o);else return f=o.lanes=536870912,qw(r,o,C!==null?C.baseLanes|u:u,u,f)}else C!==null?(Ua(o,C.cachePool),tw(o,C),wr(o),o.memoizedState=null):(r!==null&&Ua(o,null),A1(),wr(o));return QA(r,o,g,u),o.child}function fc(r,o){return r!==null&&r.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function qw(r,o,u,f,g){var C=Lt();return C=C===null?null:{parent:Rl?Ft._currentValue:Ft._currentValue2,pool:C},o.memoizedState={baseLanes:u,cachePool:C},r!==null&&Ua(o,null),A1(),Aw(o),r!==null&&$n(r,o,f,!0),o.childLanes=g,null}function Uh(r,o){return o=Lh({mode:o.mode,children:o.children},r.mode),o.ref=r.ref,r.child=o,o.return=r,o}function Yw(r,o,u){return Zo(o,r.child,null,u),r=Uh(o,o.pendingProps),r.flags|=2,Ea(o),o.memoizedState=null,r}function J7(r,o,u){var f=o.pendingProps,g=(o.flags&128)!==0;if(o.flags&=-129,r===null){if(Ge){if(f.mode==="hidden")return r=Uh(o,f),o.lanes=536870912,fc(null,r);if(n1(o),(r=Qt)?(r=BI(r,en),r!==null&&(o.memoizedState={dehydrated:r,treeContext:Er!==null?{id:ll,overflow:rl}:null,retryLane:536870912,hydrationErrors:null},u=kv(r),u.return=o,o.child=u,TA=o,Qt=null)):r=null,r===null)throw Mt(o);return o.lanes=536870912,null}return Uh(o,f)}var C=r.memoizedState;if(C!==null){var E=C.dehydrated;if(n1(o),g)if(o.flags&256)o.flags&=-257,o=Yw(r,o,u);else if(o.memoizedState!==null)o.child=r.child,o.flags|=128,o=null;else throw Error(a(558));else if(Wt||$n(r,o,u,!1),g=(u&r.childLanes)!==0,Wt||g){if(f=it,f!==null&&(E=D(f,u),E!==0&&E!==C.retryLane))throw C.retryLane=E,No(r,E),ra(f,r,E),xB;Rh(),o=Yw(r,o,u)}else r=C.treeContext,YA&&(Qt=dI(E),TA=o,Ge=!0,Qr=null,en=!1,r!==null&&Dt(o,r)),o=Uh(o,f),o.flags|=4096;return o}return r=Hl(r.child,{mode:f.mode,children:f.children}),r.ref=o.ref,o.child=r,r.return=o,r}function Eh(r,o){var u=o.ref;if(u===null)r!==null&&r.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(a(284));(r===null||r.ref!==u)&&(o.flags|=4194816)}}function w1(r,o,u,f,g){return Qn(o),u=r1(r,o,u,f,void 0,g),f=o1(),r!==null&&!Wt?(i1(r,o,g),Fl(r,o,g)):(Ge&&f&&he(o),o.flags|=1,QA(r,o,u,g),o.child)}function jw(r,o,u,f,g,C){return Qn(o),o.updateQueue=null,u=nw(o,f,u,g),aw(r),f=o1(),r!==null&&!Wt?(i1(r,o,C),Fl(r,o,C)):(Ge&&f&&he(o),o.flags|=1,QA(r,o,u,C),o.child)}function Zw(r,o,u,f,g){if(Qn(o),o.stateNode===null){var C=os,E=u.contextType;typeof E=="object"&&E!==null&&(C=cA(E)),C=new u(f,C),o.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=yB,o.stateNode=C,C._reactInternals=o,C=o.stateNode,C.props=f,C.state=o.memoizedState,C.refs={},$g(o),E=u.contextType,C.context=typeof E=="object"&&E!==null?cA(E):os,C.state=o.memoizedState,E=u.getDerivedStateFromProps,typeof E=="function"&&(y1(o,u,E,f),C.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(E=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),E!==C.state&&yB.enqueueReplaceState(C,C.state,null),sc(o,f,C,g),ic(),C.state=o.memoizedState),typeof C.componentDidMount=="function"&&(o.flags|=4194308),f=!0}else if(r===null){C=o.stateNode;var I=o.memoizedProps,N=Go(u,I);C.props=N;var j=C.context,Ae=u.contextType;E=os,typeof Ae=="object"&&Ae!==null&&(E=cA(Ae));var W=u.getDerivedStateFromProps;Ae=typeof W=="function"||typeof C.getSnapshotBeforeUpdate=="function",I=o.pendingProps!==I,Ae||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I||j!==E)&&Nw(o,C,f,E),Fr=!1;var re=o.memoizedState;C.state=re,sc(o,f,C,g),ic(),j=o.memoizedState,I||re!==j||Fr?(typeof W=="function"&&(y1(o,u,W,f),j=o.memoizedState),(N=Fr||Ow(o,u,N,f,re,j,E))?(Ae||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(o.flags|=4194308)):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=f,o.memoizedState=j),C.props=f,C.state=j,C.context=E,f=N):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),f=!1)}else{C=o.stateNode,e1(r,o),E=o.memoizedProps,Ae=Go(u,E),C.props=Ae,W=o.pendingProps,re=C.context,j=u.contextType,N=os,typeof j=="object"&&j!==null&&(N=cA(j)),I=u.getDerivedStateFromProps,(j=typeof I=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(E!==W||re!==N)&&Nw(o,C,f,N),Fr=!1,re=o.memoizedState,C.state=re,sc(o,f,C,g),ic();var we=o.memoizedState;E!==W||re!==we||Fr||r!==null&&r.dependencies!==null&&Br(r.dependencies)?(typeof I=="function"&&(y1(o,u,I,f),we=o.memoizedState),(Ae=Fr||Ow(o,u,Ae,f,re,we,N)||r!==null&&r.dependencies!==null&&Br(r.dependencies))?(j||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(f,we,N),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(f,we,N)),typeof C.componentDidUpdate=="function"&&(o.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof C.componentDidUpdate!="function"||E===r.memoizedProps&&re===r.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&re===r.memoizedState||(o.flags|=1024),o.memoizedProps=f,o.memoizedState=we),C.props=f,C.state=we,C.context=N,f=Ae):(typeof C.componentDidUpdate!="function"||E===r.memoizedProps&&re===r.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&re===r.memoizedState||(o.flags|=1024),f=!1)}return C=f,Eh(r,o),f=(o.flags&128)!==0,C||f?(C=o.stateNode,u=f&&typeof u.getDerivedStateFromError!="function"?null:C.render(),o.flags|=1,r!==null&&f?(o.child=Zo(o,r.child,null,g),o.child=Zo(o,null,u,g)):QA(r,o,u,g),o.memoizedState=C.state,r=o.child):r=Fl(r,o,g),r}function Jw(r,o,u,f){return Ln(),o.flags|=256,QA(r,o,u,f),o.child}function v1(r){return{baseLanes:r,cachePool:Al()}}function S1(r,o,u){return r=r!==null?r.childLanes&~u:0,o&&(r|=Da),r}function Ww(r,o,u){var f=o.pendingProps,g=!1,C=(o.flags&128)!==0,E;if((E=C)||(E=r!==null&&r.memoizedState===null?!1:(kt.current&2)!==0),E&&(g=!0,o.flags&=-129),E=(o.flags&32)!==0,o.flags&=-33,r===null){if(Ge){if(g?xr(o):wr(o),(r=Qt)?(r=CI(r,en),r!==null&&(o.memoizedState={dehydrated:r,treeContext:Er!==null?{id:ll,overflow:rl}:null,retryLane:536870912,hydrationErrors:null},u=kv(r),u.return=o,o.child=u,TA=o,Qt=null)):r=null,r===null)throw Mt(o);return lB(r)?o.lanes=32:o.lanes=536870912,null}var I=f.children;return f=f.fallback,g?(wr(o),g=o.mode,I=Lh({mode:"hidden",children:I},g),f=Vo(f,g,u,null),I.return=o,f.return=o,I.sibling=f,o.child=I,f=o.child,f.memoizedState=v1(u),f.childLanes=S1(r,E,u),o.memoizedState=wB,fc(null,f)):(xr(o),b1(o,I))}var N=r.memoizedState;if(N!==null&&(I=N.dehydrated,I!==null)){if(C)o.flags&256?(xr(o),o.flags&=-257,o=U1(r,o,u)):o.memoizedState!==null?(wr(o),o.child=r.child,o.flags|=128,o=null):(wr(o),I=f.fallback,g=o.mode,f=Lh({mode:"visible",children:f.children},g),I=Vo(I,g,u,null),I.flags|=2,f.return=o,I.return=o,f.sibling=I,o.child=f,Zo(o,r.child,null,u),f=o.child,f.memoizedState=v1(u),f.childLanes=S1(r,E,u),o.memoizedState=wB,o=fc(null,f));else if(xr(o),lB(I))E=rI(I).digest,f=Error(a(419)),f.stack="",f.digest=E,Jn({value:f,source:null,stack:null}),o=U1(r,o,u);else if(Wt||$n(r,o,u,!1),E=(u&r.childLanes)!==0,Wt||E){if(E=it,E!==null&&(f=D(E,u),f!==0&&f!==N.retryLane))throw N.retryLane=f,No(r,f),ra(E,r,f),xB;nB(I)||Rh(),o=U1(r,o,u)}else nB(I)?(o.flags|=192,o.child=r.child,o=null):(r=N.treeContext,YA&&(Qt=hI(I),TA=o,Ge=!0,Qr=null,en=!1,r!==null&&Dt(o,r)),o=b1(o,f.children),o.flags|=4096);return o}return g?(wr(o),I=f.fallback,g=o.mode,N=r.child,C=N.sibling,f=Hl(N,{mode:"hidden",children:f.children}),f.subtreeFlags=N.subtreeFlags&65011712,C!==null?I=Hl(C,I):(I=Vo(I,g,u,null),I.flags|=2),I.return=o,f.return=o,f.sibling=I,o.child=f,fc(null,f),f=o.child,I=r.child.memoizedState,I===null?I=v1(u):(g=I.cachePool,g!==null?(N=Rl?Ft._currentValue:Ft._currentValue2,g=g.parent!==N?{parent:N,pool:N}:g):g=Al(),I={baseLanes:I.baseLanes|u,cachePool:g}),f.memoizedState=I,f.childLanes=S1(r,E,u),o.memoizedState=wB,fc(r.child,f)):(xr(o),u=r.child,r=u.sibling,u=Hl(u,{mode:"visible",children:f.children}),u.return=o,u.sibling=null,r!==null&&(E=o.deletions,E===null?(o.deletions=[r],o.flags|=16):E.push(r)),o.child=u,o.memoizedState=null,u)}function b1(r,o){return o=Lh({mode:"visible",children:o},r.mode),o.return=r,r.child=o}function Lh(r,o){return r=e(22,r,null,o),r.lanes=0,r}function U1(r,o,u){return Zo(o,r.child,null,u),r=b1(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function $w(r,o,u){r.lanes|=o;var f=r.alternate;f!==null&&(f.lanes|=o),Wn(r.return,o,u)}function E1(r,o,u,f,g,C){var E=r.memoizedState;E===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:f,tail:u,tailMode:g,treeForkCount:C}:(E.isBackwards=o,E.rendering=null,E.renderingStartTime=0,E.last=f,E.tail=u,E.tailMode=g,E.treeForkCount=C)}function ev(r,o,u){var f=o.pendingProps,g=f.revealOrder,C=f.tail;f=f.children;var E=kt.current,I=(E&2)!==0;if(I?(E=E&1|2,o.flags|=128):E&=1,B(kt,E),QA(r,o,f,u),f=Ge?vc:0,!I&&r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&$w(r,u,o);else if(r.tag===19)$w(r,u,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(u=o.child,g=null;u!==null;)r=u.alternate,r!==null&&Bh(r)===null&&(g=u),u=u.sibling;u=g,u===null?(g=o.child,o.child=null):(g=u.sibling,u.sibling=null),E1(o,!1,g,u,C,f);break;case"backwards":case"unstable_legacy-backwards":for(u=null,g=o.child,o.child=null;g!==null;){if(r=g.alternate,r!==null&&Bh(r)===null){o.child=g;break}r=g.sibling,g.sibling=u,u=g,g=r}E1(o,!0,u,null,C,f);break;case"together":E1(o,!1,null,null,void 0,f);break;default:o.memoizedState=null}return o.child}function Fl(r,o,u){if(r!==null&&(o.dependencies=r.dependencies),Ir|=o.lanes,(u&o.childLanes)===0)if(r!==null){if($n(r,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(r!==null&&o.child!==r.child)throw Error(a(153));if(o.child!==null){for(r=o.child,u=Hl(r,r.pendingProps),o.child=u,u.return=o;r.sibling!==null;)r=r.sibling,u=u.sibling=Hl(r,r.pendingProps),u.return=o;u.sibling=null}return o.child}function L1(r,o){return(r.lanes&o)!==0?!0:(r=r.dependencies,!!(r!==null&&Br(r)))}function W7(r,o,u){switch(o.tag){case 3:Zt(o,o.stateNode.containerInfo),vt(o,Ft,r.memoizedState.cache),Ln();break;case 27:case 5:xA(o);break;case 4:Zt(o,o.stateNode.containerInfo);break;case 10:vt(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,n1(o),null;break;case 13:var f=o.memoizedState;if(f!==null)return f.dehydrated!==null?(xr(o),o.flags|=128,null):(u&o.child.childLanes)!==0?Ww(r,o,u):(xr(o),r=Fl(r,o,u),r!==null?r.sibling:null);xr(o);break;case 19:var g=(r.flags&128)!==0;if(f=(u&o.childLanes)!==0,f||($n(r,o,u,!1),f=(u&o.childLanes)!==0),g){if(f)return ev(r,o,u);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),B(kt,kt.current),f)break;return null;case 22:return o.lanes=0,Xw(r,o,u,o.pendingProps);case 24:vt(o,Ft,r.memoizedState.cache)}return Fl(r,o,u)}function tv(r,o,u){if(r!==null)if(r.memoizedProps!==o.pendingProps)Wt=!0;else{if(!L1(r,u)&&(o.flags&128)===0)return Wt=!1,W7(r,o,u);Wt=(r.flags&131072)!==0}else Wt=!1,Ge&&(o.flags&1048576)!==0&&ye(o,vc,o.index);switch(o.lanes=0,o.tag){case 16:e:{var f=o.pendingProps;if(r=Ll(o.elementType),o.type=r,typeof r=="function")k1(r)?(f=Go(r,f),o.tag=1,o=Zw(null,o,r,f,u)):(o.tag=0,o=w1(null,o,r,f,u));else{if(r!=null){var g=r.$$typeof;if(g===J1){o.tag=11,o=Vw(null,o,r,f,u);break e}else if(g===eB){o.tag=14,o=Pw(null,o,r,f,u);break e}}throw o=h(r)||r,Error(a(306,o,""))}}return o;case 0:return w1(r,o,o.type,o.pendingProps,u);case 1:return f=o.type,g=Go(f,o.pendingProps),Zw(r,o,f,g,u);case 3:e:{if(Zt(o,o.stateNode.containerInfo),r===null)throw Error(a(387));var C=o.pendingProps;g=o.memoizedState,f=g.element,e1(r,o),sc(o,C,null,u);var E=o.memoizedState;if(C=E.cache,vt(o,Ft,C),C!==g.cache&&ac(o,[Ft],u,!0),ic(),C=E.element,YA&&g.isDehydrated)if(g={element:C,isDehydrated:!1,cache:E.cache},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){o=Jw(r,o,C,u);break e}else if(C!==f){f=X(Error(a(424)),o),Jn(f),o=Jw(r,o,C,u);break e}else for(YA&&(Qt=fI(o.stateNode.containerInfo),TA=o,Ge=!0,Qr=null,en=!0),u=LS(o,null,C,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ln(),C===f){o=Fl(r,o,u);break e}QA(r,o,C,u)}o=o.child}return o;case 26:if(Hn)return Eh(r,o),r===null?(u=hS(o.type,null,o.pendingProps,null))?o.memoizedState=u:Ge||(o.stateNode=NI(o.type,o.pendingProps,Lr.current,o)):o.memoizedState=hS(o.type,r.memoizedProps,o.pendingProps,r.memoizedState),null;case 27:if(fA)return xA(o),r===null&&fA&&Ge&&(f=o.stateNode=yS(o.type,o.pendingProps,Lr.current,FA.current,!1),TA=o,en=!0,Qt=pI(o.type,f,Qt)),QA(r,o,o.pendingProps.children,u),Eh(r,o),r===null&&(o.flags|=4194304),o.child;case 5:return r===null&&Ge&&(MI(o.type,o.pendingProps,FA.current),(g=f=Qt)&&(f=mI(f,o.type,o.pendingProps,en),f!==null?(o.stateNode=f,TA=o,Qt=cI(f),en=!1,g=!0):g=!1),g||Mt(o)),xA(o),g=o.type,C=o.pendingProps,E=r!==null?r.memoizedProps:null,f=C.children,Nh(g,C)?f=null:E!==null&&Nh(g,E)&&(o.flags|=32),o.memoizedState!==null&&(g=r1(r,o,P7,null,null,u),Rl?ko._currentValue=g:ko._currentValue2=g),Eh(r,o),QA(r,o,f,u),o.child;case 6:return r===null&&Ge&&(_I(o.pendingProps,FA.current),(r=u=Qt)&&(u=gI(u,o.pendingProps,en),u!==null?(o.stateNode=u,TA=o,Qt=null,r=!0):r=!1),r||Mt(o)),null;case 13:return Ww(r,o,u);case 4:return Zt(o,o.stateNode.containerInfo),f=o.pendingProps,r===null?o.child=Zo(o,null,f,u):QA(r,o,f,u),o.child;case 11:return Vw(r,o,o.type,o.pendingProps,u);case 7:return QA(r,o,o.pendingProps,u),o.child;case 8:return QA(r,o,o.pendingProps.children,u),o.child;case 12:return QA(r,o,o.pendingProps.children,u),o.child;case 10:return f=o.pendingProps,vt(o,o.type,f.value),QA(r,o,f.children,u),o.child;case 9:return g=o.type._context,f=o.pendingProps.children,Qn(o),g=cA(g),f=f(g),o.flags|=1,QA(r,o,f,u),o.child;case 14:return Pw(r,o,o.type,o.pendingProps,u);case 15:return kw(r,o,o.type,o.pendingProps,u);case 19:return ev(r,o,u);case 31:return J7(r,o,u);case 22:return Xw(r,o,u,o.pendingProps);case 24:return Qn(o),f=cA(Ft),r===null?(g=Lt(),g===null&&(g=it,C=lc(),g.pooledCache=C,C.refCount++,C!==null&&(g.pooledCacheLanes|=u),g=C),o.memoizedState={parent:f,cache:g},$g(o),vt(o,Ft,g)):((r.lanes&u)!==0&&(e1(r,o),sc(o,null,null,u),ic()),g=r.memoizedState,C=o.memoizedState,g.parent!==f?(g={parent:f,cache:f},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),vt(o,Ft,f)):(f=C.cache,vt(o,Ft,f),f!==g.cache&&ac(o,[Ft],u,!0))),QA(r,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(a(156,o.tag))}function Fn(r){r.flags|=4}function Qh(r){nl&&(r.flags|=8)}function Av(r,o){if(r!==null&&r.child===o.child)return!1;if((o.flags&16)!==0)return!0;for(r=o.child;r!==null;){if((r.flags&8218)!==0||(r.subtreeFlags&8218)!==0)return!0;r=r.sibling}return!1}function Q1(r,o,u,f){if(qA)for(u=o.child;u!==null;){if(u.tag===5||u.tag===6)AB(r,u.stateNode);else if(!(u.tag===4||fA&&u.tag===27)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return}u.sibling.return=u.return,u=u.sibling}else if(nl)for(var g=o.child;g!==null;){if(g.tag===5){var C=g.stateNode;u&&f&&(C=sS(C,g.type,g.memoizedProps)),AB(r,C)}else if(g.tag===6)C=g.stateNode,u&&f&&(C=uS(C,g.memoizedProps)),AB(r,C);else if(g.tag!==4){if(g.tag===22&&g.memoizedState!==null)C=g.child,C!==null&&(C.return=g),Q1(r,g,!0,!0);else if(g.child!==null){g.child.return=g,g=g.child;continue}}if(g===o)break;for(;g.sibling===null;){if(g.return===null||g.return===o)return;g=g.return}g.sibling.return=g.return,g=g.sibling}}function av(r,o,u,f){var g=!1;if(nl)for(var C=o.child;C!==null;){if(C.tag===5){var E=C.stateNode;u&&f&&(E=sS(E,C.type,C.memoizedProps)),oS(r,E)}else if(C.tag===6)E=C.stateNode,u&&f&&(E=uS(E,C.memoizedProps)),oS(r,E);else if(C.tag!==4){if(C.tag===22&&C.memoizedState!==null)g=C.child,g!==null&&(g.return=C),av(r,C,!0,!0),g=!0;else if(C.child!==null){C.child.return=C,C=C.child;continue}}if(C===o)break;for(;C.sibling===null;){if(C.return===null||C.return===o)return g;C=C.return}C.sibling.return=C.return,C=C.sibling}return g}function nv(r,o){if(nl&&Av(r,o)){r=o.stateNode;var u=r.containerInfo,f=rS();av(f,o,!1,!1),r.pendingChildren=f,Fn(o),lI(u,f)}}function F1(r,o,u,f){if(qA)r.memoizedProps!==f&&Fn(o);else if(nl){var g=r.stateNode,C=r.memoizedProps;if((r=Av(r,o))||C!==f){var E=FA.current;C=nI(g,u,C,f,!r,null),C===g?o.stateNode=g:(Qh(o),tS(C,u,f,E)&&Fn(o),o.stateNode=C,r&&Q1(C,o,!1,!1))}else o.stateNode=g}}function T1(r,o,u,f,g){if((r.mode&32)!==0&&(u===null?TT(o,f):IT(o,u,f))){if(r.flags|=16777216,(g&335544128)===g||aB(o,f))if(aS(r.stateNode,o,f))r.flags|=8192;else if(Fv())r.flags|=8192;else throw jo=Zh,mB}else r.flags&=-16777217}function lv(r,o){if(KI(o)){if(r.flags|=16777216,!CS(o))if(Fv())r.flags|=8192;else throw jo=Zh,mB}else r.flags&=-16777217}function Fh(r,o){o!==null&&(r.flags|=4),r.flags&16384&&(o=r.tag!==22?S():536870912,r.lanes|=o,xs|=o)}function dc(r,o){if(!Ge)switch(r.tailMode){case"hidden":o=r.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var f=null;u!==null;)u.alternate!==null&&(f=u),u=u.sibling;f===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function pt(r){var o=r.alternate!==null&&r.alternate.child===r.child,u=0,f=0;if(o)for(var g=r.child;g!==null;)u|=g.lanes|g.childLanes,f|=g.subtreeFlags&65011712,f|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)u|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=f,r.childLanes=u,o}function $7(r,o,u){var f=o.pendingProps;switch(ze(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(o),null;case 1:return pt(o),null;case 3:return u=o.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),o.memoizedState.cache!==f&&(o.flags|=2048),uA(Ft),LA(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(En(o)?Fn(o):r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,ht())),nv(r,o),pt(o),null;case 26:if(Hn){var g=o.type,C=o.memoizedState;return r===null?(Fn(o),C!==null?(pt(o),lv(o,C)):(pt(o),T1(o,g,null,f,u))):C?C!==r.memoizedState?(Fn(o),pt(o),lv(o,C)):(pt(o),o.flags&=-16777217):(C=r.memoizedProps,qA?C!==f&&Fn(o):F1(r,o,g,f),pt(o),T1(o,g,C,f,u)),null}case 27:if(fA){if(WA(o),u=Lr.current,g=o.type,r!==null&&o.stateNode!=null)qA?r.memoizedProps!==f&&Fn(o):F1(r,o,g,f);else{if(!f){if(o.stateNode===null)throw Error(a(166));return pt(o),null}r=FA.current,En(o)?Et(o,r):(r=yS(g,f,u,r,!0),o.stateNode=r,Fn(o))}return pt(o),null}case 5:if(WA(o),g=o.type,r!==null&&o.stateNode!=null)F1(r,o,g,f);else{if(!f){if(o.stateNode===null)throw Error(a(166));return pt(o),null}if(C=FA.current,En(o))Et(o,C),FI(o.stateNode,g,f,C)&&(o.flags|=64);else{var E=vT(g,f,Lr.current,C,o);Qh(o),Q1(E,o,!1,!1),o.stateNode=E,tS(E,g,f,C)&&Fn(o)}}return pt(o),T1(o,o.type,r===null?null:r.memoizedProps,o.pendingProps,u),null;case 6:if(r&&o.stateNode!=null)u=r.memoizedProps,qA?u!==f&&Fn(o):nl&&(u!==f?(r=Lr.current,u=FA.current,Qh(o),o.stateNode=AS(f,r,u,o)):o.stateNode=r.stateNode);else{if(typeof f!="string"&&o.stateNode===null)throw Error(a(166));if(r=Lr.current,u=FA.current,En(o)){if(!YA)throw Error(a(176));if(r=o.stateNode,u=o.memoizedProps,f=null,g=TA,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}xI(r,u,o,f)||Mt(o,!0)}else Qh(o),o.stateNode=AS(f,r,u,o)}return pt(o),null;case 31:if(u=o.memoizedState,r===null||r.memoizedState!==null){if(f=En(o),u!==null){if(r===null){if(!f)throw Error(a(318));if(!YA)throw Error(a(556));if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));wI(r,o)}else Ln(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;pt(o),r=!1}else u=ht(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return o.flags&256?(Ea(o),o):(Ea(o),null);if((o.flags&128)!==0)throw Error(a(558))}return pt(o),null;case 13:if(f=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=En(o),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(a(318));if(!YA)throw Error(a(344));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(a(317));vI(g,o)}else Ln(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;pt(o),g=!1}else g=ht(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(Ea(o),o):(Ea(o),null)}return Ea(o),(o.flags&128)!==0?(o.lanes=u,o):(u=f!==null,r=r!==null&&r.memoizedState!==null,u&&(f=o.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool),C=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(C=f.memoizedState.cachePool.pool),C!==g&&(f.flags|=2048)),u!==r&&u&&(o.child.flags|=8192),Fh(o,o.updateQueue),pt(o),null);case 4:return LA(),nv(r,o),r===null&&ET(o.stateNode.containerInfo),pt(o),null;case 10:return uA(o.type),pt(o),null;case 19:if(m(kt),f=o.memoizedState,f===null)return pt(o),null;if(g=(o.flags&128)!==0,C=f.rendering,C===null)if(g)dc(f,!1);else{if(Ot!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(C=Bh(r),C!==null){for(o.flags|=128,dc(f,!1),r=C.updateQueue,o.updateQueue=r,Fh(o,r),o.subtreeFlags=0,r=u,u=o.child;u!==null;)Pv(u,r),u=u.sibling;return B(kt,kt.current&1|2),Ge&&oe(o,f.treeForkCount),o.child}r=r.sibling}f.tail!==null&&oa()>Tc&&(o.flags|=128,g=!0,dc(f,!1),o.lanes=4194304)}else{if(!g)if(r=Bh(C),r!==null){if(o.flags|=128,g=!0,r=r.updateQueue,o.updateQueue=r,Fh(o,r),dc(f,!0),f.tail===null&&f.tailMode==="hidden"&&!C.alternate&&!Ge)return pt(o),null}else 2*oa()-f.renderingStartTime>Tc&&u!==536870912&&(o.flags|=128,g=!0,dc(f,!1),o.lanes=4194304);f.isBackwards?(C.sibling=o.child,o.child=C):(r=f.last,r!==null?r.sibling=C:o.child=C,f.last=C)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=oa(),r.sibling=null,u=kt.current,B(kt,g?u&1|2:u&1),Ge&&oe(o,f.treeForkCount),r):(pt(o),null);case 22:case 23:return Ea(o),a1(),f=o.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(o.flags|=8192):f&&(o.flags|=8192),f?(u&536870912)!==0&&(o.flags&128)===0&&(pt(o),o.subtreeFlags&6&&(o.flags|=8192)):pt(o),u=o.updateQueue,u!==null&&Fh(o,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==u&&(o.flags|=2048),r!==null&&m(Yo),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),uA(Ft),pt(o),null;case 25:return null;case 30:return null}throw Error(a(156,o.tag))}function eT(r,o){switch(ze(o),o.tag){case 1:return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return uA(Ft),LA(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 26:case 27:case 5:return WA(o),null;case 31:if(o.memoizedState!==null){if(Ea(o),o.alternate===null)throw Error(a(340));Ln()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 13:if(Ea(o),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(a(340));Ln()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return m(kt),null;case 4:return LA(),null;case 10:return uA(o.type),null;case 22:case 23:return Ea(o),a1(),r!==null&&m(Yo),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 24:return uA(Ft),null;case 25:return null;default:return null}}function rv(r,o){switch(ze(o),o.tag){case 3:uA(Ft),LA();break;case 26:case 27:case 5:WA(o);break;case 4:LA();break;case 31:o.memoizedState!==null&&Ea(o);break;case 13:Ea(o);break;case 19:m(kt);break;case 10:uA(o.type);break;case 22:case 23:Ea(o),a1(),r!==null&&m(Yo);break;case 24:uA(Ft)}}function hc(r,o){try{var u=o.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var g=f.next;u=g;do{if((u.tag&r)===r){f=void 0;var C=u.create,E=u.inst;f=C(),E.destroy=f}u=u.next}while(u!==g)}}catch(I){qe(o,o.return,I)}}function vr(r,o,u){try{var f=o.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var C=g.next;f=C;do{if((f.tag&r)===r){var E=f.inst,I=E.destroy;if(I!==void 0){E.destroy=void 0,g=o;var N=u,j=I;try{j()}catch(Ae){qe(g,N,Ae)}}}f=f.next}while(f!==C)}}catch(Ae){qe(o,o.return,Ae)}}function ov(r){var o=r.updateQueue;if(o!==null){var u=r.stateNode;try{ew(o,u)}catch(f){qe(r,r.return,f)}}}function iv(r,o,u){u.props=Go(r.type,r.memoizedProps),u.state=r.memoizedState;try{u.componentWillUnmount()}catch(f){qe(r,o,f)}}function pc(r,o){try{var u=r.ref;if(u!==null){switch(r.tag){case 26:case 27:case 5:var f=Cc(r.stateNode);break;case 30:f=r.stateNode;break;default:f=r.stateNode}typeof u=="function"?r.refCleanup=u(f):u.current=f}}catch(g){qe(r,o,g)}}function al(r,o){var u=r.ref,f=r.refCleanup;if(u!==null)if(typeof f=="function")try{f()}catch(g){qe(r,o,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){qe(r,o,g)}else u.current=null}function sv(r){var o=r.type,u=r.memoizedProps,f=r.stateNode;try{qT(f,o,u,r)}catch(g){qe(r,r.return,g)}}function I1(r,o,u){try{YT(r.stateNode,r.type,u,o,r)}catch(f){qe(r,r.return,f)}}function uv(r){return r.tag===5||r.tag===3||(Hn?r.tag===26:!1)||(fA?r.tag===27&&ls(r.type):!1)||r.tag===4}function H1(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||uv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(fA&&r.tag===27&&ls(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function R1(r,o,u){var f=r.tag;if(f===5||f===6)r=r.stateNode,o?ZT(u,r,o):kT(u,r);else if(f!==4&&(fA&&f===27&&ls(r.type)&&(u=r.stateNode,o=null),r=r.child,r!==null))for(R1(r,o,u),r=r.sibling;r!==null;)R1(r,o,u),r=r.sibling}function Th(r,o,u){var f=r.tag;if(f===5||f===6)r=r.stateNode,o?jT(u,r,o):PT(u,r);else if(f!==4&&(fA&&f===27&&ls(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(Th(r,o,u),r=r.sibling;r!==null;)Th(r,o,u),r=r.sibling}function cv(r,o,u){r=r.containerInfo;try{iS(r,u)}catch(f){qe(o,o.return,f)}}function fv(r){var o=r.stateNode,u=r.memoizedProps;try{VI(r.type,u,o,r)}catch(f){qe(r,r.return,f)}}function tT(r,o){for(xT(r.containerInfo),vA=o;vA!==null;)if(r=vA,o=r.child,(r.subtreeFlags&1028)!==0&&o!==null)o.return=r,vA=o;else for(;vA!==null;){r=vA;var u=r.alternate;switch(o=r.flags,r.tag){case 0:if((o&4)!==0&&(o=r.updateQueue,o=o!==null?o.events:null,o!==null))for(var f=0;f<o.length;f++){var g=o[f];g.ref.impl=g.nextImpl}break;case 11:case 15:break;case 1:if((o&1024)!==0&&u!==null){o=void 0,f=r,g=u.memoizedProps,u=u.memoizedState;var C=f.stateNode;try{var E=Go(f.type,g);o=C.getSnapshotBeforeUpdate(E,u),C.__reactInternalSnapshotBeforeUpdate=o}catch(I){qe(f,f.return,I)}}break;case 3:(o&1024)!==0&&qA&&aI(r.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(a(163))}if(o=r.sibling,o!==null){o.return=r.return,vA=o;break}vA=r.return}}function dv(r,o,u){var f=u.flags;switch(u.tag){case 0:case 11:case 15:Tl(r,u),f&4&&hc(5,u);break;case 1:if(Tl(r,u),f&4)if(r=u.stateNode,o===null)try{r.componentDidMount()}catch(E){qe(u,u.return,E)}else{var g=Go(u.type,o.memoizedProps);o=o.memoizedState;try{r.componentDidUpdate(g,o,r.__reactInternalSnapshotBeforeUpdate)}catch(E){qe(u,u.return,E)}}f&64&&ov(u),f&512&&pc(u,u.return);break;case 3:if(Tl(r,u),f&64&&(f=u.updateQueue,f!==null)){if(r=null,u.child!==null)switch(u.child.tag){case 27:case 5:r=Cc(u.child.stateNode);break;case 1:r=u.child.stateNode}try{ew(f,r)}catch(E){qe(u,u.return,E)}}break;case 27:fA&&o===null&&f&4&&fv(u);case 26:case 5:if(Tl(r,u),o===null){if(f&4)sv(u);else if(f&64){r=u.type,o=u.memoizedProps,g=u.stateNode;try{UI(g,r,o,u)}catch(E){qe(u,u.return,E)}}}f&512&&pc(u,u.return);break;case 12:Tl(r,u);break;case 31:Tl(r,u),f&4&&pv(r,u);break;case 13:Tl(r,u),f&4&&mv(r,u),f&64&&(f=u.memoizedState,f!==null&&(f=f.dehydrated,f!==null&&(u=iT.bind(null,u),oI(f,u))));break;case 22:if(f=u.memoizedState!==null||Ol,!f){o=o!==null&&o.memoizedState!==null||$t,g=Ol;var C=$t;Ol=f,($t=o)&&!C?Il(r,u,(u.subtreeFlags&8772)!==0):Tl(r,u),Ol=g,$t=C}break;case 30:break;default:Tl(r,u)}}function hv(r){var o=r.alternate;o!==null&&(r.alternate=null,hv(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&FT(o)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Tn(r,o,u){for(u=u.child;u!==null;)D1(r,o,u),u=u.sibling}function D1(r,o,u){if(Ta&&typeof Ta.onCommitFiberUnmount=="function")try{Ta.onCommitFiberUnmount(wc,u)}catch{}switch(u.tag){case 26:if(Hn){$t||al(u,o),Tn(r,o,u),u.memoizedState?mS(u.memoizedState):u.stateNode&&BS(u.stateNode);break}case 27:if(fA){$t||al(u,o);var f=eA,g=ia;ls(u.type)&&(eA=u.stateNode,ia=!1),Tn(r,o,u),xS(u.stateNode),eA=f,ia=g;break}case 5:$t||al(u,o);case 6:if(qA){if(f=eA,g=ia,eA=null,Tn(r,o,u),eA=f,ia=g,eA!==null)if(ia)try{WT(eA,u.stateNode)}catch(C){qe(u,o,C)}else try{JT(eA,u.stateNode)}catch(C){qe(u,o,C)}}else Tn(r,o,u);break;case 18:qA&&eA!==null&&(ia?HI(eA,u.stateNode):II(eA,u.stateNode));break;case 4:qA?(f=eA,g=ia,eA=u.stateNode.containerInfo,ia=!0,Tn(r,o,u),eA=f,ia=g):(nl&&cv(u.stateNode,u,rS()),Tn(r,o,u));break;case 0:case 11:case 14:case 15:vr(2,u,o),$t||vr(4,u,o),Tn(r,o,u);break;case 1:$t||(al(u,o),f=u.stateNode,typeof f.componentWillUnmount=="function"&&iv(u,o,f)),Tn(r,o,u);break;case 21:Tn(r,o,u);break;case 22:$t=(f=$t)||u.memoizedState!==null,Tn(r,o,u),$t=f;break;default:Tn(r,o,u)}}function pv(r,o){if(YA&&o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{LI(r)}catch(u){qe(o,o.return,u)}}}function mv(r,o){if(YA&&o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{QI(r)}catch(u){qe(o,o.return,u)}}function AT(r){switch(r.tag){case 31:case 13:case 19:var o=r.stateNode;return o===null&&(o=r.stateNode=new TS),o;case 22:return r=r.stateNode,o=r._retryCache,o===null&&(o=r._retryCache=new TS),o;default:throw Error(a(435,r.tag))}}function Ih(r,o){var u=AT(r);o.forEach(function(f){if(!u.has(f)){u.add(f);var g=sT.bind(null,r,f);f.then(g,g)}})}function XA(r,o){var u=o.deletions;if(u!==null)for(var f=0;f<u.length;f++){var g=u[f],C=r,E=o;if(qA){var I=E;e:for(;I!==null;){switch(I.tag){case 27:if(fA){if(ls(I.type)){eA=I.stateNode,ia=!1;break e}break}case 5:eA=I.stateNode,ia=!1;break e;case 3:case 4:eA=I.stateNode.containerInfo,ia=!0;break e}I=I.return}if(eA===null)throw Error(a(160));D1(C,E,g),eA=null,ia=!1}else D1(C,E,g);C=g.alternate,C!==null&&(C.return=null),g.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)gv(o,r),o=o.sibling}function gv(r,o){var u=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:XA(o,r),ea(r),f&4&&(vr(3,r,r.return),hc(3,r),vr(5,r,r.return));break;case 1:XA(o,r),ea(r),f&512&&($t||u===null||al(u,u.return)),f&64&&Ol&&(r=r.updateQueue,r!==null&&(f=r.callbacks,f!==null&&(u=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=u===null?f:u.concat(f))));break;case 26:if(Hn){var g=Rn;if(XA(o,r),ea(r),f&512&&($t||u===null||al(u,u.return)),f&4){f=u!==null?u.memoizedState:null;var C=r.memoizedState;u===null?C===null?r.stateNode===null?r.stateNode=OI(g,r.type,r.memoizedProps,r):gS(g,r.type,r.stateNode):r.stateNode=pS(g,C,r.memoizedProps):f!==C?(f===null?u.stateNode!==null&&BS(u.stateNode):mS(f),C===null?gS(g,r.type,r.stateNode):pS(g,C,r.memoizedProps)):C===null&&r.stateNode!==null&&I1(r,r.memoizedProps,u.memoizedProps)}break}case 27:if(fA){XA(o,r),ea(r),f&512&&($t||u===null||al(u,u.return)),u!==null&&f&4&&I1(r,r.memoizedProps,u.memoizedProps);break}case 5:if(XA(o,r),ea(r),f&512&&($t||u===null||al(u,u.return)),qA){if(r.flags&32){g=r.stateNode;try{lS(g)}catch(W){qe(r,r.return,W)}}f&4&&r.stateNode!=null&&(g=r.memoizedProps,I1(r,g,u!==null?u.memoizedProps:g)),f&1024&&(vB=!0)}else nl&&r.alternate!==null&&(r.alternate.stateNode=r.stateNode);break;case 6:if(XA(o,r),ea(r),f&4&&qA){if(r.stateNode===null)throw Error(a(162));f=r.memoizedProps,u=u!==null?u.memoizedProps:f,g=r.stateNode;try{XT(g,u,f)}catch(W){qe(r,r.return,W)}}break;case 3:if(Hn?(GI(),g=Rn,Rn=rB(o.containerInfo),XA(o,r),Rn=g):XA(o,r),ea(r),f&4){if(qA&&YA&&u!==null&&u.memoizedState.isDehydrated)try{EI(o.containerInfo)}catch(W){qe(r,r.return,W)}if(nl){f=o.containerInfo,u=o.pendingChildren;try{iS(f,u)}catch(W){qe(r,r.return,W)}}}vB&&(vB=!1,Bv(r));break;case 4:Hn?(u=Rn,Rn=rB(r.stateNode.containerInfo),XA(o,r),ea(r),Rn=u):(XA(o,r),ea(r)),f&4&&nl&&cv(r.stateNode,r,r.stateNode.pendingChildren);break;case 12:XA(o,r),ea(r);break;case 31:XA(o,r),ea(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,Ih(r,f)));break;case 13:XA(o,r),ea(r),r.child.flags&8192&&r.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(lp=oa()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,Ih(r,f)));break;case 22:g=r.memoizedState!==null;var E=u!==null&&u.memoizedState!==null,I=Ol,N=$t;if(Ol=I||g,$t=N||E,XA(o,r),$t=N,Ol=I,ea(r),f&8192&&(o=r.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(u===null||E||Ol||$t||Ko(r)),qA)){e:if(u=null,qA)for(o=r;;){if(o.tag===5||Hn&&o.tag===26){if(u===null){E=u=o;try{C=E.stateNode,g?$T(C):tI(E.stateNode,E.memoizedProps)}catch(W){qe(E,E.return,W)}}}else if(o.tag===6){if(u===null){E=o;try{var j=E.stateNode;g?eI(j):AI(j,E.memoizedProps)}catch(W){qe(E,E.return,W)}}}else if(o.tag===18){if(u===null){E=o;try{var Ae=E.stateNode;g?RI(Ae):DI(E.stateNode)}catch(W){qe(E,E.return,W)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===r)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break e;for(;o.sibling===null;){if(o.return===null||o.return===r)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}}f&4&&(f=r.updateQueue,f!==null&&(u=f.retryQueue,u!==null&&(f.retryQueue=null,Ih(r,u))));break;case 19:XA(o,r),ea(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,Ih(r,f)));break;case 30:break;case 21:break;default:XA(o,r),ea(r)}}function ea(r){var o=r.flags;if(o&2){try{for(var u,f=r.return;f!==null;){if(uv(f)){u=f;break}f=f.return}if(qA){if(u==null)throw Error(a(160));switch(u.tag){case 27:if(fA){var g=u.stateNode,C=H1(r);Th(r,C,g);break}case 5:var E=u.stateNode;u.flags&32&&(lS(E),u.flags&=-33);var I=H1(r);Th(r,I,E);break;case 3:case 4:var N=u.stateNode.containerInfo,j=H1(r);R1(r,j,N);break;default:throw Error(a(161))}}}catch(Ae){qe(r,r.return,Ae)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function Bv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var o=r;Bv(o),o.tag===5&&o.flags&1024&&DT(o.stateNode),r=r.sibling}}function Tl(r,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)dv(r,o.alternate,o),o=o.sibling}function Ko(r){for(r=r.child;r!==null;){var o=r;switch(o.tag){case 0:case 11:case 14:case 15:vr(4,o,o.return),Ko(o);break;case 1:al(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&iv(o,o.return,u),Ko(o);break;case 27:fA&&xS(o.stateNode);case 26:case 5:al(o,o.return),Ko(o);break;case 22:o.memoizedState===null&&Ko(o);break;case 30:Ko(o);break;default:Ko(o)}r=r.sibling}}function Il(r,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var f=o.alternate,g=r,C=o,E=C.flags;switch(C.tag){case 0:case 11:case 15:Il(g,C,u),hc(4,C);break;case 1:if(Il(g,C,u),f=C,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(j){qe(f,f.return,j)}if(f=C,g=f.updateQueue,g!==null){var I=f.stateNode;try{var N=g.shared.hiddenCallbacks;if(N!==null)for(g.shared.hiddenCallbacks=null,g=0;g<N.length;g++)$x(N[g],I)}catch(j){qe(f,f.return,j)}}u&&E&64&&ov(C),pc(C,C.return);break;case 27:fA&&fv(C);case 26:case 5:Il(g,C,u),u&&f===null&&E&4&&sv(C),pc(C,C.return);break;case 12:Il(g,C,u);break;case 31:Il(g,C,u),u&&E&4&&pv(g,C);break;case 13:Il(g,C,u),u&&E&4&&mv(g,C);break;case 22:C.memoizedState===null&&Il(g,C,u),pc(C,C.return);break;case 30:break;default:Il(g,C,u)}o=o.sibling}}function M1(r,o){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==u&&(r!=null&&r.refCount++,u!=null&&Mo(u))}function _1(r,o){r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&Mo(r))}function In(r,o,u,f){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Cv(r,o,u,f),o=o.sibling}function Cv(r,o,u,f){var g=o.flags;switch(o.tag){case 0:case 11:case 15:In(r,o,u,f),g&2048&&hc(9,o);break;case 1:In(r,o,u,f);break;case 3:In(r,o,u,f),g&2048&&(r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&Mo(r)));break;case 12:if(g&2048){In(r,o,u,f),r=o.stateNode;try{var C=o.memoizedProps,E=C.id,I=C.onPostCommit;typeof I=="function"&&I(E,o.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(N){qe(o,o.return,N)}}else In(r,o,u,f);break;case 31:In(r,o,u,f);break;case 13:In(r,o,u,f);break;case 23:break;case 22:C=o.stateNode,E=o.alternate,o.memoizedState!==null?C._visibility&2?In(r,o,u,f):mc(r,o):C._visibility&2?In(r,o,u,f):(C._visibility|=2,$i(r,o,u,f,(o.subtreeFlags&10256)!==0||!1)),g&2048&&M1(E,o);break;case 24:In(r,o,u,f),g&2048&&_1(o.alternate,o);break;default:In(r,o,u,f)}}function $i(r,o,u,f,g){for(g=g&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var C=r,E=o,I=u,N=f,j=E.flags;switch(E.tag){case 0:case 11:case 15:$i(C,E,I,N,g),hc(8,E);break;case 23:break;case 22:var Ae=E.stateNode;E.memoizedState!==null?Ae._visibility&2?$i(C,E,I,N,g):mc(C,E):(Ae._visibility|=2,$i(C,E,I,N,g)),g&&j&2048&&M1(E.alternate,E);break;case 24:$i(C,E,I,N,g),g&&j&2048&&_1(E.alternate,E);break;default:$i(C,E,I,N,g)}o=o.sibling}}function mc(r,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=r,f=o,g=f.flags;switch(f.tag){case 22:mc(u,f),g&2048&&M1(f.alternate,f);break;case 24:mc(u,f),g&2048&&_1(f.alternate,f);break;default:mc(u,f)}o=o.sibling}}function zo(r,o,u){if(r.subtreeFlags&Cs)for(r=r.child;r!==null;)yv(r,o,u),r=r.sibling}function yv(r,o,u){switch(r.tag){case 26:if(zo(r,o,u),r.flags&Cs)if(r.memoizedState!==null)zI(u,Rn,r.memoizedState,r.memoizedProps);else{var f=r.stateNode,g=r.type;r=r.memoizedProps,((o&335544128)===o||aB(g,r))&&nS(u,f,g,r)}break;case 5:zo(r,o,u),r.flags&Cs&&(f=r.stateNode,g=r.type,r=r.memoizedProps,((o&335544128)===o||aB(g,r))&&nS(u,f,g,r));break;case 3:case 4:Hn?(f=Rn,Rn=rB(r.stateNode.containerInfo),zo(r,o,u),Rn=f):zo(r,o,u);break;case 22:r.memoizedState===null&&(f=r.alternate,f!==null&&f.memoizedState!==null?(f=Cs,Cs=16777216,zo(r,o,u),Cs=f):zo(r,o,u));break;default:zo(r,o,u)}}function xv(r){var o=r.alternate;if(o!==null&&(r=o.child,r!==null)){o.child=null;do o=r.sibling,r.sibling=null,r=o;while(r!==null)}}function gc(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var f=o[u];vA=f,vv(f,r)}xv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)wv(r),r=r.sibling}function wv(r){switch(r.tag){case 0:case 11:case 15:gc(r),r.flags&2048&&vr(9,r,r.return);break;case 3:gc(r);break;case 12:gc(r);break;case 22:var o=r.stateNode;r.memoizedState!==null&&o._visibility&2&&(r.return===null||r.return.tag!==13)?(o._visibility&=-3,Hh(r)):gc(r);break;default:gc(r)}}function Hh(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var f=o[u];vA=f,vv(f,r)}xv(r)}for(r=r.child;r!==null;){switch(o=r,o.tag){case 0:case 11:case 15:vr(8,o,o.return),Hh(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,Hh(o));break;default:Hh(o)}r=r.sibling}}function vv(r,o){for(;vA!==null;){var u=vA;switch(u.tag){case 0:case 11:case 15:vr(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var f=u.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:Mo(u.memoizedState.cache)}if(f=u.child,f!==null)f.return=u,vA=f;else e:for(u=r;vA!==null;){f=vA;var g=f.sibling,C=f.return;if(hv(f),f===u){vA=null;break e}if(g!==null){g.return=C,vA=g;break e}vA=C}}}function O1(r){var o=UT(r);if(o!=null){if(typeof o.memoizedProps["data-testname"]!="string")throw Error(a(364));return o}if(r=OT(r),r===null)throw Error(a(362));return r.stateNode.current}function N1(r,o){var u=r.tag;switch(o.$$typeof){case ep:if(r.type===o.value)return!0;break;case tp:e:{for(o=o.value,r=[r,0],u=0;u<r.length;){var f=r[u++],g=f.tag,C=r[u++],E=o[C];if(g!==5&&g!==26&&g!==27||!xc(f)){for(;E!=null&&N1(f,E);)C++,E=o[C];if(C===o.length){o=!0;break e}else for(f=f.child;f!==null;)r.push(f,C),f=f.sibling}}o=!1}return o;case Ap:if((u===5||u===26||u===27)&&KT(r.stateNode,o.value))return!0;break;case np:if((u===5||u===6||u===26||u===27)&&(r=GT(r),r!==null&&0<=r.indexOf(o.value)))return!0;break;case ap:if((u===5||u===26||u===27)&&(r=r.memoizedProps["data-testname"],typeof r=="string"&&r.toLowerCase()===o.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function G1(r){switch(r.$$typeof){case ep:return"<"+(h(r.value)||"Unknown")+">";case tp:return":has("+(G1(r)||"")+")";case Ap:return'[role="'+r.value+'"]';case np:return'"'+r.value+'"';case ap:return'[data-testname="'+r.value+'"]';default:throw Error(a(365))}}function Sv(r,o){var u=[];r=[r,0];for(var f=0;f<r.length;){var g=r[f++],C=g.tag,E=r[f++],I=o[E];if(C!==5&&C!==26&&C!==27||!xc(g)){for(;I!=null&&N1(g,I);)E++,I=o[E];if(E===o.length)u.push(g);else for(g=g.child;g!==null;)r.push(g,E),g=g.sibling}}return u}function K1(r,o){if(!yc)throw Error(a(363));r=O1(r),r=Sv(r,o),o=[],r=Array.from(r);for(var u=0;u<r.length;){var f=r[u++],g=f.tag;if(g===5||g===26||g===27)xc(f)||o.push(f.stateNode);else for(f=f.child;f!==null;)r.push(f),f=f.sibling}return o}function La(){return(Ie&2)!==0&&_e!==0?_e&-_e:pe.T!==null?de():LT()}function bv(){if(Da===0)if((_e&536870912)===0||Ge){var r=Kh;Kh<<=1,(Kh&3932160)===0&&(Kh=262144),Da=r}else Da=536870912;return r=Ha.current,r!==null&&(r.flags|=32),Da}function ra(r,o,u){(r===it&&(et===2||et===9)||r.cancelPendingCommit!==null)&&(es(r,0),Sr(r,_e,Da,!1)),L(r,u),((Ie&2)===0||r!==it)&&(r===it&&((Ie&2)===0&&(Wo|=u),Ot===4&&Sr(r,_e,Da,!1)),la(r))}function Uv(r,o,u){if((Ie&6)!==0)throw Error(a(327));var f=!u&&(o&127)===0&&(o&r.expiredLanes)===0||w(r,o),g=f?lT(r,o):V1(r,o,!0),C=f;do{if(g===0){ys&&!f&&Sr(r,o,0,!1);break}else{if(u=r.current.alternate,C&&!aT(u)){g=V1(r,o,!1),C=!1;continue}if(g===2){if(C=o,r.errorRecoveryDisabledLanes&C)var E=0;else E=r.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){o=E;e:{var I=r;g=Fc;var N=YA&&I.current.memoizedState.isDehydrated;if(N&&(es(I,E).flags|=256),E=V1(I,E,!1),E!==2){if(SB&&!N){I.errorRecoveryDisabledLanes|=C,Wo|=C,g=4;break e}C=sa,sa=g,C!==null&&(sa===null?sa=C:sa.push.apply(sa,C))}g=E}if(C=!1,g!==2)continue}}if(g===1){es(r,0),Sr(r,o,0,!0);break}e:{switch(f=r,C=g,C){case 0:case 1:throw Error(a(345));case 4:if((o&4194048)!==o)break;case 6:Sr(f,o,Da,!Tr);break e;case 2:sa=null;break;case 3:case 5:break;default:throw Error(a(329))}if((o&62914560)===o&&(g=lp+300-oa(),10<g)){if(Sr(f,o,Da,!Tr),b(f,0,!0)!==0)break e;Gl=o,f.timeoutHandle=ST(Ev.bind(null,f,u,sa,rp,UB,o,Da,Wo,xs,Tr,C,"Throttled",-0,0),g);break e}Ev(f,u,sa,rp,UB,o,Da,Wo,xs,Tr,C,null,-0,0)}}break}while(!0);la(r)}function Ev(r,o,u,f,g,C,E,I,N,j,Ae,W,re,we){if(r.timeoutHandle=Po,W=o.subtreeFlags,W&8192||(W&16785408)===16785408){W=HT(),yv(o,C,W);var IA=(C&62914560)===C?lp-oa():(C&4194048)===C?IS-oa():0;if(IA=RT(W,IA),IA!==null){Gl=C,r.cancelPendingCommit=IA(Mv.bind(null,r,o,C,u,f,g,E,I,N,Ae,W,null,re,we)),Sr(r,C,E,!j);return}}Mv(r,o,C,u,f,g,E,I,N)}function aT(r){for(var o=r;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var f=0;f<u.length;f++){var g=u[f],C=g.getSnapshot;g=g.value;try{if(!Ia(C(),g))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Sr(r,o,u,f){o&=~bB,o&=~Wo,r.suspendedLanes|=o,r.pingedLanes&=~o,f&&(r.warmLanes|=o),f=r.expirationTimes;for(var g=o;0<g;){var C=31-Fa(g),E=1<<C;f[C]=-1,g&=~E}u!==0&&T(r,u,o)}function Lv(){return(Ie&6)===0?(el(0,!1),!1):!0}function z1(){if(He!==null){if(et===0)var r=He.return;else r=He,Ml=Xo=null,s1(r),hs=null,Uc=0,r=He;for(;r!==null;)rv(r.alternate,r),r=r.return;He=null}}function es(r,o){var u=r.timeoutHandle;u!==Po&&(r.timeoutHandle=Po,bT(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Gl=0,z1(),it=r,He=u=Hl(r.current,null),_e=o,et=0,Ra=null,Tr=!1,ys=w(r,o),SB=!1,xs=Da=bB=Wo=Ir=Ot=0,sa=Fc=null,UB=!1,(o&8)!==0&&(o|=o&32);var f=r.entangledLanes;if(f!==0)for(r=r.entanglements,f&=o;0<f;){var g=31-Fa(f),C=1<<g;o|=r[g],f&=~C}return Nl=o,ph(),u}function Qv(r,o){be=null,pe.H=Lc,o===ds||o===jh?(o=fh(),et=3):o===mB?(o=fh(),et=4):et=o===xB?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Ra=o,He===null&&(Ot=1,bh(r,X(o,r.current)))}function Fv(){var r=Ha.current;return r===null?!0:(_e&4194048)===_e?An===null:(_e&62914560)===_e||(_e&536870912)!==0?r===An:!1}function Tv(){var r=pe.H;return pe.H=Lc,r===null?Lc:r}function Iv(){var r=pe.A;return pe.A=aH,r}function Rh(){Ot=4,Tr||(_e&4194048)!==_e&&Ha.current!==null||(ys=!0),(Ir&134217727)===0&&(Wo&134217727)===0||it===null||Sr(it,_e,Da,!1)}function V1(r,o,u){var f=Ie;Ie|=2;var g=Tv(),C=Iv();(it!==r||_e!==o)&&(rp=null,es(r,o)),o=!1;var E=Ot;e:do try{if(et!==0&&He!==null){var I=He,N=Ra;switch(et){case 8:z1(),E=6;break e;case 3:case 2:case 9:case 6:Ha.current===null&&(o=!0);var j=et;if(et=0,Ra=null,ts(r,I,N,j),u&&ys){E=0;break e}break;default:j=et,et=0,Ra=null,ts(r,I,N,j)}}nT(),E=Ot;break}catch(Ae){Qv(r,Ae)}while(!0);return o&&r.shellSuspendCounter++,Ml=Xo=null,Ie=f,pe.H=g,pe.A=C,He===null&&(it=null,_e=0,ph()),E}function nT(){for(;He!==null;)Hv(He)}function lT(r,o){var u=Ie;Ie|=2;var f=Tv(),g=Iv();it!==r||_e!==o?(rp=null,Tc=oa()+500,es(r,o)):ys=w(r,o);e:do try{if(et!==0&&He!==null){o=He;var C=Ra;t:switch(et){case 1:et=0,Ra=null,ts(r,o,C,1);break;case 2:case 9:if(uh(C)){et=0,Ra=null,Rv(o);break}o=function(){et!==2&&et!==9||it!==r||(et=7),la(r)},C.then(o,o);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:uh(C)?(et=0,Ra=null,Rv(o)):(et=0,Ra=null,ts(r,o,C,7));break;case 5:var E=null;switch(He.tag){case 26:E=He.memoizedState;case 5:case 27:var I=He,N=I.type,j=I.pendingProps;if(E?CS(E):aS(I.stateNode,N,j)){et=0,Ra=null;var Ae=I.sibling;if(Ae!==null)He=Ae;else{var W=I.return;W!==null?(He=W,Dh(W)):He=null}break t}}et=0,Ra=null,ts(r,o,C,5);break;case 6:et=0,Ra=null,ts(r,o,C,6);break;case 8:z1(),Ot=6;break e;default:throw Error(a(462))}}rT();break}catch(re){Qv(r,re)}while(!0);return Ml=Xo=null,pe.H=f,pe.A=g,Ie=u,He!==null?0:(it=null,_e=0,ph(),Ot)}function rT(){for(;He!==null&&!XI();)Hv(He)}function Hv(r){var o=tv(r.alternate,r,Nl);r.memoizedProps=r.pendingProps,o===null?Dh(r):He=o}function Rv(r){var o=r,u=o.alternate;switch(o.tag){case 15:case 0:o=jw(u,o,o.pendingProps,o.type,void 0,_e);break;case 11:o=jw(u,o,o.pendingProps,o.type.render,o.ref,_e);break;case 5:s1(o);default:rv(u,o),o=He=Pv(o,Nl),o=tv(u,o,Nl)}r.memoizedProps=r.pendingProps,o===null?Dh(r):He=o}function ts(r,o,u,f){Ml=Xo=null,s1(o),hs=null,Uc=0;var g=o.return;try{if(Z7(r,g,o,u,_e)){Ot=1,bh(r,X(u,r.current)),He=null;return}}catch(C){if(g!==null)throw He=g,C;Ot=1,bh(r,X(u,r.current)),He=null;return}o.flags&32768?(Ge||f===1?r=!0:ys||(_e&536870912)!==0?r=!1:(Tr=r=!0,(f===2||f===9||f===3||f===6)&&(f=Ha.current,f!==null&&f.tag===13&&(f.flags|=16384))),Dv(o,r)):Dh(o)}function Dh(r){var o=r;do{if((o.flags&32768)!==0){Dv(o,Tr);return}r=o.return;var u=$7(o.alternate,o,Nl);if(u!==null){He=u;return}if(o=o.sibling,o!==null){He=o;return}He=o=r}while(o!==null);Ot===0&&(Ot=5)}function Dv(r,o){do{var u=eT(r.alternate,r);if(u!==null){u.flags&=32767,He=u;return}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(r=r.sibling,r!==null)){He=r;return}He=r=u}while(r!==null);Ot=6,He=null}function Mv(r,o,u,f,g,C,E,I,N){r.cancelPendingCommit=null;do Bc();while(dA!==0);if((Ie&6)!==0)throw Error(a(327));if(o!==null){if(o===r.current)throw Error(a(177));if(C=o.lanes|o.childLanes,C|=gB,F(r,u,C,E,I,N),r===it&&(He=it=null,_e=0),ws=o,Rr=r,Gl=u,EB=C,LB=g,HS=f,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,uT(sB,function(){return Kv(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||f){f=pe.T,pe.T=null,g=Dl(),wA(2),E=Ie,Ie|=4;try{tT(r,o,u)}finally{Ie=E,wA(g),pe.T=f}}dA=1,_v(),Ov(),Nv()}}function _v(){if(dA===1){dA=0;var r=Rr,o=ws,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=pe.T,pe.T=null;var f=Dl();wA(2);var g=Ie;Ie|=4;try{gv(o,r),wT(r.containerInfo)}finally{Ie=g,wA(f),pe.T=u}}r.current=o,dA=2}}function Ov(){if(dA===2){dA=0;var r=Rr,o=ws,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=pe.T,pe.T=null;var f=Dl();wA(2);var g=Ie;Ie|=4;try{dv(r,o.alternate,o)}finally{Ie=g,wA(f),pe.T=u}}dA=3}}function Nv(){if(dA===4||dA===3){dA=0,qI();var r=Rr,o=ws,u=Gl,f=HS;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?dA=5:(dA=0,ws=Rr=null,Gv(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Hr=null),ee(u),o=o.stateNode,Ta&&typeof Ta.onCommitFiberRoot=="function")try{Ta.onCommitFiberRoot(wc,o,void 0,(o.current.flags&128)===128)}catch{}if(f!==null){o=pe.T,g=Dl(),wA(2),pe.T=null;try{for(var C=r.onRecoverableError,E=0;E<f.length;E++){var I=f[E];C(I.value,{componentStack:I.stack})}}finally{pe.T=o,wA(g)}}(Gl&3)!==0&&Bc(),la(r),g=r.pendingLanes,(u&261930)!==0&&(g&42)!==0?r===QB?Ic++:(Ic=0,QB=r):Ic=0,YA&&TI(),el(0,!1)}}function Gv(r,o){(r.pooledCacheLanes&=o)===0&&(o=r.pooledCache,o!=null&&(r.pooledCache=null,Mo(o)))}function Bc(){return _v(),Ov(),Nv(),Kv()}function Kv(){if(dA!==5)return!1;var r=Rr,o=EB;EB=0;var u=ee(Gl),f=32>u?32:u;u=pe.T;var g=Dl();try{wA(f),pe.T=null,f=LB,LB=null;var C=Rr,E=Gl;if(dA=0,ws=Rr=null,Gl=0,(Ie&6)!==0)throw Error(a(331));var I=Ie;if(Ie|=4,wv(C.current),Cv(C,C.current,E,f),Ie=I,el(0,!1),Ta&&typeof Ta.onPostCommitFiberRoot=="function")try{Ta.onPostCommitFiberRoot(wc,C)}catch{}return!0}finally{wA(g),pe.T=u,Gv(r,o)}}function zv(r,o,u){o=X(u,o),o=x1(r.stateNode,o,2),r=yr(r,o,2),r!==null&&(L(r,2),la(r))}function qe(r,o,u){if(r.tag===3)zv(r,r,u);else for(;o!==null;){if(o.tag===3){zv(o,r,u);break}else if(o.tag===1){var f=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Hr===null||!Hr.has(f))){r=X(u,r),u=Kw(2),f=yr(o,u,2),f!==null&&(zw(u,f,o,r),L(f,2),la(f));break}}o=o.return}}function P1(r,o,u){var f=r.pingCache;if(f===null){f=r.pingCache=new nH;var g=new Set;f.set(o,g)}else g=f.get(o),g===void 0&&(g=new Set,f.set(o,g));g.has(u)||(SB=!0,g.add(u),r=oT.bind(null,r,o,u),o.then(r,r))}function oT(r,o,u){var f=r.pingCache;f!==null&&f.delete(o),r.pingedLanes|=r.suspendedLanes&u,r.warmLanes&=~u,it===r&&(_e&u)===u&&(Ot===4||Ot===3&&(_e&62914560)===_e&&300>oa()-lp?(Ie&2)===0&&es(r,0):bB|=u,xs===_e&&(xs=0)),la(r)}function Vv(r,o){o===0&&(o=S()),r=No(r,o),r!==null&&(L(r,o),la(r))}function iT(r){var o=r.memoizedState,u=0;o!==null&&(u=o.retryLane),Vv(r,u)}function sT(r,o){var u=0;switch(r.tag){case 31:case 13:var f=r.stateNode,g=r.memoizedState;g!==null&&(u=g.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(a(314))}f!==null&&f.delete(o),Vv(r,u)}function uT(r,o){return Vh(r,o)}function cT(r,o,u,f){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function k1(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Hl(r,o){var u=r.alternate;return u===null?(u=e(r.tag,o,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=o,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,o=r.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u}function Pv(r,o){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,o=u.dependencies,r.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),r}function Mh(r,o,u,f,g,C){var E=0;if(f=r,typeof r=="function")k1(r)&&(E=1);else if(typeof r=="string")E=Hn&&fA?dS(r,u,FA.current)?26:wS(r)?27:5:Hn?dS(r,u,FA.current)?26:5:fA&&wS(r)?27:5;else e:switch(r){case tB:return r=e(31,u,o,g),r.elementType=tB,r.lanes=C,r;case as:return Vo(u.children,g,C,o);case Jv:E=8,g|=24;break;case Z1:return r=e(12,u,o,g|2),r.elementType=Z1,r.lanes=C,r;case W1:return r=e(13,u,o,g),r.elementType=W1,r.lanes=C,r;case $1:return r=e(19,u,o,g),r.elementType=$1,r.lanes=C,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case br:E=10;break e;case Wv:E=9;break e;case J1:E=11;break e;case eB:E=14;break e;case Ur:E=16,f=null;break e}E=29,u=Error(a(130,r===null?"null":typeof r,"")),f=null}return o=e(E,u,o,g),o.elementType=r,o.type=f,o.lanes=C,o}function Vo(r,o,u,f){return r=e(7,r,f,o),r.lanes=u,r}function X1(r,o,u){return r=e(6,r,null,o),r.lanes=u,r}function kv(r){var o=e(18,null,null,0);return o.stateNode=r,o}function q1(r,o,u){return o=e(4,r.children!==null?r.children:[],r.key,o),o.lanes=u,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function fT(r,o,u,f,g,C,E,I,N){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Po,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=U(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=U(0),this.hiddenUpdates=U(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=C,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Xv(r,o,u,f,g,C,E,I,N,j,Ae,W){return r=new fT(r,o,u,E,N,j,Ae,W,I),o=1,C===!0&&(o|=24),C=e(3,null,null,o),r.current=C,C.stateNode=r,o=lc(),o.refCount++,r.pooledCache=o,o.refCount++,C.memoizedState={element:f,isDehydrated:u,cache:o},$g(C),r}function qv(r){return r?(r=os,r):os}function Yv(r){var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=i(o),r=r!==null?s(r):null,r===null?null:Cc(r.stateNode)}function jv(r,o,u,f,g,C){g=qv(g),f.context===null?f.context=g:f.pendingContext=g,f=Cr(o),f.payload={element:u},C=C===void 0?null:C,C!==null&&(f.callback=C),u=yr(r,f,o),u!==null&&(ra(u,r,o),oc(u,r,o))}function Zv(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<o?u:o}}function Y1(r,o){Zv(r,o),(r=r.alternate)&&Zv(r,o)}var Te={},dT=ue(),Qa=y0(),j1=Object.assign,hT=Symbol.for("react.element"),_h=Symbol.for("react.transitional.element"),As=Symbol.for("react.portal"),as=Symbol.for("react.fragment"),Jv=Symbol.for("react.strict_mode"),Z1=Symbol.for("react.profiler"),Wv=Symbol.for("react.consumer"),br=Symbol.for("react.context"),J1=Symbol.for("react.forward_ref"),W1=Symbol.for("react.suspense"),$1=Symbol.for("react.suspense_list"),eB=Symbol.for("react.memo"),Ur=Symbol.for("react.lazy"),tB=Symbol.for("react.activity"),pT=Symbol.for("react.memo_cache_sentinel"),$v=Symbol.iterator,mT=Symbol.for("react.client.reference"),Oh=Array.isArray,pe=dT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gT=t.rendererVersion,BT=t.rendererPackageName,eS=t.extraDevToolsConfig,Cc=t.getPublicInstance,CT=t.getRootHostContext,yT=t.getChildHostContext,xT=t.prepareForCommit,wT=t.resetAfterCommit,vT=t.createInstance;t.cloneMutableInstance;var AB=t.appendInitialChild,tS=t.finalizeInitialChildren,Nh=t.shouldSetTextContent,AS=t.createTextInstance;t.cloneMutableTextInstance;var ST=t.scheduleTimeout,bT=t.cancelTimeout,Po=t.noTimeout,Rl=t.isPrimaryRenderer;t.warnsIfNotActing;var qA=t.supportsMutation,nl=t.supportsPersistence,YA=t.supportsHydration,UT=t.getInstanceFromNode;t.beforeActiveInstanceBlur;var ET=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var wA=t.setCurrentUpdatePriority,Dl=t.getCurrentUpdatePriority,LT=t.resolveUpdatePriority;t.trackSchedulerEvent,t.resolveEventType,t.resolveEventTimeStamp;var QT=t.shouldAttemptEagerTransition,FT=t.detachDeletedInstance;t.requestPostPaintCallback;var TT=t.maySuspendCommit,IT=t.maySuspendCommitOnUpdate,aB=t.maySuspendCommitInSyncRender,aS=t.preloadInstance,HT=t.startSuspendingCommit,nS=t.suspendInstance;t.suspendOnActiveViewTransition;var RT=t.waitForCommitToBeReady;t.getSuspendedCommitReason;var ns=t.NotPendingTransition,ko=t.HostTransitionContext,DT=t.resetFormInstance;t.bindToConsole;var MT=t.supportsMicrotasks,_T=t.scheduleMicrotask,yc=t.supportsTestSelectors,OT=t.findFiberRoot,NT=t.getBoundingRect,GT=t.getTextContent,xc=t.isHiddenSubtree,KT=t.matchAccessibilityRole,zT=t.setFocusIfFocusable,VT=t.setupIntersectionObserver,PT=t.appendChild,kT=t.appendChildToContainer,XT=t.commitTextUpdate,qT=t.commitMount,YT=t.commitUpdate,jT=t.insertBefore,ZT=t.insertInContainerBefore,JT=t.removeChild,WT=t.removeChildFromContainer,lS=t.resetTextContent,$T=t.hideInstance,eI=t.hideTextInstance,tI=t.unhideInstance,AI=t.unhideTextInstance;t.cancelViewTransitionName,t.cancelRootViewTransitionName,t.restoreRootViewTransitionName,t.cloneRootViewTransitionContainer,t.removeRootViewTransitionClone,t.measureClonedInstance,t.hasInstanceChanged,t.hasInstanceAffectedParent,t.startViewTransition,t.startGestureTransition,t.stopViewTransition,t.getCurrentGestureOffset,t.createViewTransitionInstance;var aI=t.clearContainer;t.createFragmentInstance,t.updateFragmentInstanceFiber,t.commitNewChildToFragmentInstance,t.deleteChildFromFragmentInstance;var nI=t.cloneInstance,rS=t.createContainerChildSet,oS=t.appendChildToContainerChildSet,lI=t.finalizeContainerChildren,iS=t.replaceContainerChildren,sS=t.cloneHiddenInstance,uS=t.cloneHiddenTextInstance,nB=t.isSuspenseInstancePending,lB=t.isSuspenseInstanceFallback,rI=t.getSuspenseInstanceFallbackErrorDetails,oI=t.registerSuspenseInstanceRetry,iI=t.canHydrateFormStateMarker,sI=t.isFormStateMarkerMatching,cS=t.getNextHydratableSibling,uI=t.getNextHydratableSiblingAfterSingleton,cI=t.getFirstHydratableChild,fI=t.getFirstHydratableChildWithinContainer,dI=t.getFirstHydratableChildWithinActivityInstance,hI=t.getFirstHydratableChildWithinSuspenseInstance,pI=t.getFirstHydratableChildWithinSingleton,mI=t.canHydrateInstance,gI=t.canHydrateTextInstance,BI=t.canHydrateActivityInstance,CI=t.canHydrateSuspenseInstance,yI=t.hydrateInstance,xI=t.hydrateTextInstance,wI=t.hydrateActivityInstance,vI=t.hydrateSuspenseInstance,SI=t.getNextHydratableInstanceAfterActivityInstance,bI=t.getNextHydratableInstanceAfterSuspenseInstance,UI=t.commitHydratedInstance,EI=t.commitHydratedContainer,LI=t.commitHydratedActivityInstance,QI=t.commitHydratedSuspenseInstance,FI=t.finalizeHydratedChildren,TI=t.flushHydrationEvents;t.clearActivityBoundary;var II=t.clearSuspenseBoundary;t.clearActivityBoundaryFromContainer;var HI=t.clearSuspenseBoundaryFromContainer,RI=t.hideDehydratedBoundary,DI=t.unhideDehydratedBoundary,fS=t.shouldDeleteUnhydratedTailInstances;t.diffHydratedPropsForDevWarnings,t.diffHydratedTextForDevWarnings,t.describeHydratableInstanceForDevWarnings;var MI=t.validateHydratableInstance,_I=t.validateHydratableTextInstance,Hn=t.supportsResources,dS=t.isHostHoistableType,rB=t.getHoistableRoot,hS=t.getResource,pS=t.acquireResource,mS=t.releaseResource,OI=t.hydrateHoistable,gS=t.mountHoistable,BS=t.unmountHoistable,NI=t.createHoistableInstance,GI=t.prepareToCommitHoistables,KI=t.mayResourceSuspendCommit,CS=t.preloadResource,zI=t.suspendResource,fA=t.supportsSingletons,yS=t.resolveSingletonInstance,VI=t.acquireSingletonInstance,xS=t.releaseSingletonInstance,wS=t.isHostSingletonType,ls=t.isSingletonScope,oB=[],rs=-1,os={},Fa=Math.clz32?Math.clz32:y,PI=Math.log,kI=Math.LN2,Gh=256,Kh=262144,zh=4194304,Vh=Qa.unstable_scheduleCallback,iB=Qa.unstable_cancelCallback,XI=Qa.unstable_shouldYield,qI=Qa.unstable_requestPaint,oa=Qa.unstable_now,vS=Qa.unstable_ImmediatePriority,YI=Qa.unstable_UserBlockingPriority,sB=Qa.unstable_NormalPriority,jI=Qa.unstable_IdlePriority,ZI=Qa.log,JI=Qa.unstable_setDisableYieldValue,wc=null,Ta=null,Ia=typeof Object.is=="function"?Object.is:se,SS=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},WI=Object.prototype.hasOwnProperty,uB,bS,cB=!1,US=new WeakMap,is=[],ss=0,Ph=null,vc=0,Wa=[],$a=0,Er=null,ll=1,rl="",FA=p(null),Sc=p(null),Lr=p(null),kh=p(null),TA=null,Qt=null,Ge=!1,Qr=null,en=!1,fB=Error(a(519)),Xh=p(null),Xo=null,Ml=null,$I=typeof AbortController<"u"?AbortController:function(){var r=[],o=this.signal={aborted:!1,addEventListener:function(u,f){r.push(f)}};this.abort=function(){o.aborted=!0,r.forEach(function(u){return u()})}},eH=Qa.unstable_scheduleCallback,tH=Qa.unstable_NormalPriority,Ft={$$typeof:br,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},qh=null,us=null,dB=!1,Yh=!1,hB=!1,qo=0,bc=null,pB=0,cs=0,fs=null,ES=pe.S;pe.S=function(r,o){IS=oa(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&Se(r,o),ES!==null&&ES(r,o)};var Yo=p(null),ds=Error(a(460)),mB=Error(a(474)),jh=Error(a(542)),Zh={then:function(){}},jo=null,hs=null,Uc=0,Zo=Jx(!0),LS=Jx(!1),tn=[],ps=0,gB=0,Fr=!1,BB=!1,ms=p(null),Jh=p(0),Ha=p(null),An=null,kt=p(0),_l=0,be=null,at=null,Jt=null,Wh=!1,gs=!1,Jo=!1,$h=0,Ec=0,Bs=null,AH=0,Lc={readContext:cA,use:yh,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};Lc.useEffectEvent=_t;var QS={readContext:cA,use:yh,useCallback:function(r,o){return $A().memoizedState=[r,o===void 0?null:o],r},useContext:cA,useEffect:ww,useImperativeHandle:function(r,o,u){u=u!=null?u.concat([r]):null,wh(4194308,4,Uw.bind(null,o,r),u)},useLayoutEffect:function(r,o){return wh(4194308,4,r,o)},useInsertionEffect:function(r,o){wh(4,2,r,o)},useMemo:function(r,o){var u=$A();o=o===void 0?null:o;var f=r();if(Jo){P(!0);try{r()}finally{P(!1)}}return u.memoizedState=[f,o],f},useReducer:function(r,o,u){var f=$A();if(u!==void 0){var g=u(o);if(Jo){P(!0);try{u(o)}finally{P(!1)}}}else g=o;return f.memoizedState=f.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},f.queue=r,r=r.dispatch=j7.bind(null,be,r),[f.memoizedState,r]},useRef:function(r){var o=$A();return r={current:r},o.memoizedState=r},useState:function(r){r=d1(r);var o=r.queue,u=Dw.bind(null,be,o);return o.dispatch=u,[r.memoizedState,u]},useDebugValue:m1,useDeferredValue:function(r,o){var u=$A();return g1(u,r,o)},useTransition:function(){var r=d1(!1);return r=Tw.bind(null,be,r.queue,!0,!1),$A().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,o,u){var f=be,g=$A();if(Ge){if(u===void 0)throw Error(a(407));u=u()}else{if(u=o(),it===null)throw Error(a(349));(_e&127)!==0||rw(f,o,u)}g.memoizedState=u;var C={value:u,getSnapshot:o};return g.queue=C,ww(iw.bind(null,f,C,r),[r]),f.flags|=2048,Wi(9,{destroy:void 0},ow.bind(null,f,C,u,o),null),u},useId:function(){var r=$A(),o=it.identifierPrefix;if(Ge){var u=rl,f=ll;u=(f&~(1<<32-Fa(f)-1)).toString(32)+u,o="_"+o+"R_"+u,u=$h++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=AH++,o="_"+o+"r_"+u.toString(32)+"_";return r.memoizedState=o},useHostTransitionStatus:B1,useFormState:gw,useActionState:gw,useOptimistic:function(r){var o=$A();o.memoizedState=o.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=C1.bind(null,be,!0,u),u.dispatch=o,[r,o]},useMemoCache:u1,useCacheRefresh:function(){return $A().memoizedState=Y7.bind(null,be)},useEffectEvent:function(r){var o=$A(),u={impl:r};return o.memoizedState=u,function(){if((Ie&2)!==0)throw Error(a(440));return u.impl.apply(void 0,arguments)}}},CB={readContext:cA,use:yh,useCallback:Lw,useContext:cA,useEffect:p1,useImperativeHandle:Ew,useInsertionEffect:Sw,useLayoutEffect:bw,useMemo:Qw,useReducer:xh,useRef:xw,useState:function(){return xh(Ql)},useDebugValue:m1,useDeferredValue:function(r,o){var u=Pt();return Fw(u,at.memoizedState,r,o)},useTransition:function(){var r=xh(Ql)[0],o=Pt().memoizedState;return[typeof r=="boolean"?r:uc(r),o]},useSyncExternalStore:lw,useId:Hw,useHostTransitionStatus:B1,useFormState:Bw,useActionState:Bw,useOptimistic:function(r,o){var u=Pt();return cw(u,at,r,o)},useMemoCache:u1,useCacheRefresh:Rw};CB.useEffectEvent=vw;var FS={readContext:cA,use:yh,useCallback:Lw,useContext:cA,useEffect:p1,useImperativeHandle:Ew,useInsertionEffect:Sw,useLayoutEffect:bw,useMemo:Qw,useReducer:f1,useRef:xw,useState:function(){return f1(Ql)},useDebugValue:m1,useDeferredValue:function(r,o){var u=Pt();return at===null?g1(u,r,o):Fw(u,at.memoizedState,r,o)},useTransition:function(){var r=f1(Ql)[0],o=Pt().memoizedState;return[typeof r=="boolean"?r:uc(r),o]},useSyncExternalStore:lw,useId:Hw,useHostTransitionStatus:B1,useFormState:yw,useActionState:yw,useOptimistic:function(r,o){var u=Pt();return at!==null?cw(u,at,r,o):(u.baseState=r,[r,u.queue.dispatch])},useMemoCache:u1,useCacheRefresh:Rw};FS.useEffectEvent=vw;var yB={enqueueSetState:function(r,o,u){r=r._reactInternals;var f=La(),g=Cr(f);g.payload=o,u!=null&&(g.callback=u),o=yr(r,g,f),o!==null&&(ra(o,r,f),oc(o,r,f))},enqueueReplaceState:function(r,o,u){r=r._reactInternals;var f=La(),g=Cr(f);g.tag=1,g.payload=o,u!=null&&(g.callback=u),o=yr(r,g,f),o!==null&&(ra(o,r,f),oc(o,r,f))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var u=La(),f=Cr(u);f.tag=2,o!=null&&(f.callback=o),o=yr(r,f,u),o!==null&&(ra(o,r,u),oc(o,r,u))}},xB=Error(a(461)),Wt=!1,wB={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ol=!1,$t=!1,vB=!1,TS=typeof WeakSet=="function"?WeakSet:Set,vA=null,eA=null,ia=!1,Rn=null,Cs=8192,aH={getCacheForType:function(r){var o=cA(Ft),u=o.data.get(r);return u===void 0&&(u=r(),o.data.set(r,u)),u},cacheSignal:function(){return cA(Ft).controller.signal}},ep=0,tp=1,Ap=2,ap=3,np=4;if(typeof Symbol=="function"&&Symbol.for){var Qc=Symbol.for;ep=Qc("selector.component"),tp=Qc("selector.has_pseudo_class"),Ap=Qc("selector.role"),ap=Qc("selector.test_id"),np=Qc("selector.text")}var nH=typeof WeakMap=="function"?WeakMap:Map,Ie=0,it=null,He=null,_e=0,et=0,Ra=null,Tr=!1,ys=!1,SB=!1,Nl=0,Ot=0,Ir=0,Wo=0,bB=0,Da=0,xs=0,Fc=null,sa=null,UB=!1,lp=0,IS=0,Tc=1/0,rp=null,Hr=null,dA=0,Rr=null,ws=null,Gl=0,EB=0,LB=null,HS=null,Ic=0,QB=null;return Te.attemptContinuousHydration=function(r){if(r.tag===13||r.tag===31){var o=No(r,67108864);o!==null&&ra(o,r,67108864),Y1(r,67108864)}},Te.attemptHydrationAtCurrentPriority=function(r){if(r.tag===13||r.tag===31){var o=La();o=G(o);var u=No(r,o);u!==null&&ra(u,r,o),Y1(r,o)}},Te.attemptSynchronousHydration=function(r){switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var o=v(r.pendingLanes);if(o!==0){for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var u=1<<31-Fa(o);r.entanglements[1]|=u,o&=~u}la(r),(Ie&6)===0&&(Tc=oa()+500,el(0,!1))}}break;case 31:case 13:o=No(r,2),o!==null&&ra(o,r,2),Lv(),Y1(r,2)}},Te.batchedUpdates=function(r,o){return r(o)},Te.createComponentSelector=function(r){return{$$typeof:ep,value:r}},Te.createContainer=function(r,o,u,f,g,C,E,I,N,j){return Xv(r,o,!1,null,u,f,C,null,E,I,N,j)},Te.createHasPseudoClassSelector=function(r){return{$$typeof:tp,value:r}},Te.createHydrationContainer=function(r,o,u,f,g,C,E,I,N,j,Ae,W,re,we){return r=Xv(u,f,!0,r,g,C,I,we,N,j,Ae,W),r.context=qv(null),u=r.current,f=La(),f=G(f),g=Cr(f),g.callback=o??null,yr(u,g,f),o=f,r.current.lanes=o,L(r,o),la(r),r},Te.createPortal=function(r,o,u){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:As,key:f==null?null:""+f,children:r,containerInfo:o,implementation:u}},Te.createRoleSelector=function(r){return{$$typeof:Ap,value:r}},Te.createTestNameSelector=function(r){return{$$typeof:ap,value:r}},Te.createTextSelector=function(r){return{$$typeof:np,value:r}},Te.defaultOnCaughtError=function(r){console.error(r)},Te.defaultOnRecoverableError=function(r){SS(r)},Te.defaultOnUncaughtError=function(r){SS(r)},Te.deferredUpdates=function(r){var o=pe.T,u=Dl();try{return wA(32),pe.T=null,r()}finally{wA(u),pe.T=o}},Te.discreteUpdates=function(r,o,u,f,g){var C=pe.T,E=Dl();try{return wA(2),pe.T=null,r(o,u,f,g)}finally{wA(E),pe.T=C,Ie===0&&(Tc=oa()+500)}},Te.findAllNodes=K1,Te.findBoundingRects=function(r,o){if(!yc)throw Error(a(363));o=K1(r,o),r=[];for(var u=0;u<o.length;u++)r.push(NT(o[u]));for(o=r.length-1;0<o;o--){u=r[o];for(var f=u.x,g=f+u.width,C=u.y,E=C+u.height,I=o-1;0<=I;I--)if(o!==I){var N=r[I],j=N.x,Ae=j+N.width,W=N.y,re=W+N.height;if(f>=j&&C>=W&&g<=Ae&&E<=re){r.splice(o,1);break}else if(f!==j||u.width!==N.width||re<C||W>E){if(!(C!==W||u.height!==N.height||Ae<f||j>g)){j>f&&(N.width+=j-f,N.x=f),Ae<g&&(N.width=g-j),r.splice(o,1);break}}else{W>C&&(N.height+=W-C,N.y=C),re<E&&(N.height=E-W),r.splice(o,1);break}}}return r},Te.findHostInstance=Yv,Te.findHostInstanceWithNoPortals=function(r){return r=i(r),r=r!==null?c(r):null,r===null?null:Cc(r.stateNode)},Te.findHostInstanceWithWarning=function(r){return Yv(r)},Te.flushPassiveEffects=Bc,Te.flushSyncFromReconciler=function(r){var o=Ie;Ie|=1;var u=pe.T,f=Dl();try{if(wA(2),pe.T=null,r)return r()}finally{wA(f),pe.T=u,Ie=o,(Ie&6)===0&&el(0,!1)}},Te.flushSyncWork=Lv,Te.focusWithin=function(r,o){if(!yc)throw Error(a(363));for(r=O1(r),o=Sv(r,o),o=Array.from(o),r=0;r<o.length;){var u=o[r++],f=u.tag;if(!xc(u)){if((f===5||f===26||f===27)&&zT(u.stateNode))return!0;for(u=u.child;u!==null;)o.push(u),u=u.sibling}}return!1},Te.getFindAllNodesFailureDescription=function(r,o){if(!yc)throw Error(a(363));var u=0,f=[];r=[O1(r),0];for(var g=0;g<r.length;){var C=r[g++],E=C.tag,I=r[g++],N=o[I];if((E!==5&&E!==26&&E!==27||!xc(C))&&(N1(C,N)&&(f.push(G1(N)),I++,I>u&&(u=I)),I<o.length))for(C=C.child;C!==null;)r.push(C,I),C=C.sibling}if(u<o.length){for(r=[];u<o.length;u++)r.push(G1(o[u]));return`findAllNodes was able to match part of the selector:
|
|
17
|
+
`+(f.join(" > ")+`
|
|
18
|
+
|
|
19
|
+
No matching component was found for:
|
|
20
|
+
`)+r.join(" > ")}return null},Te.getPublicRootInstance=function(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 27:case 5:return Cc(r.child.stateNode);default:return r.child.stateNode}},Te.injectIntoDevTools=function(){var r={bundleType:0,version:gT,rendererPackageName:BT,currentDispatcherRef:pe,reconcilerVersion:"19.2.0"};if(eS!==null&&(r.rendererConfig=eS),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")r=!1;else{var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled||!o.supportsFiber)r=!0;else{try{wc=o.inject(r),Ta=o}catch{}r=!!o.checkDCE}}return r},Te.isAlreadyRendering=function(){return(Ie&6)!==0},Te.observeVisibleRects=function(r,o,u,f){if(!yc)throw Error(a(363));r=K1(r,o);var g=VT(r,u,f).disconnect;return{disconnect:function(){g()}}},Te.shouldError=function(){return null},Te.shouldSuspend=function(){return!1},Te.startHostTransition=function(r,o,u,f){if(r.tag!==5)throw Error(a(476));var g=Iw(r).queue;Tw(r,g,o,ns,u===null?A:function(){var C=Iw(r);return C.next===null&&(C=r.alternate.memoizedState),cc(r,C.next.queue,{},La()),u(f)})},Te.updateContainer=function(r,o,u,f){var g=o.current,C=La();return jv(g,C,r,o,u,f),C},Te.updateContainerSync=function(r,o,u,f){return jv(o.current,2,r,o,u,f),2},Te};Zd.exports.default=Zd.exports;Object.defineProperty(Zd.exports,"__esModule",{value:!0})});var ZF=ua((Kle,jF)=>{"use strict";jF.exports=YF()});var JF=ua(Ho=>{"use strict";Ho.ConcurrentRoot=1;Ho.ContinuousEventPriority=8;Ho.DefaultEventPriority=32;Ho.DiscreteEventPriority=2;Ho.IdleEventPriority=268435456;Ho.LegacyRoot=0;Ho.NoEventPriority=0});var kx=ua((Vle,WF)=>{"use strict";WF.exports=JF()});var _j={};RS(_j,{LoupeWidget:()=>oh,capturePageContext:()=>h0,captureScreenshot:()=>d0,destroy:()=>Mj,init:()=>Dj,submitFeedback:()=>p0});var MS=`
|
|
21
|
+
.loupe-btn {
|
|
22
|
+
position: fixed;
|
|
23
|
+
z-index: 2147483647;
|
|
24
|
+
background-color: #10b981;
|
|
25
|
+
color: #ffffff;
|
|
26
|
+
border: none;
|
|
27
|
+
border-radius: 9999px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
padding: 8px 16px;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.loupe-btn:hover {
|
|
37
|
+
opacity: 0.9;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.bottom-right {
|
|
41
|
+
bottom: 24px;
|
|
42
|
+
right: 24px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.bottom-left {
|
|
46
|
+
bottom: 24px;
|
|
47
|
+
left: 24px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.top-right {
|
|
51
|
+
top: 24px;
|
|
52
|
+
right: 24px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.top-left {
|
|
56
|
+
top: 24px;
|
|
57
|
+
left: 24px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.loupe-modal {
|
|
61
|
+
display: none;
|
|
62
|
+
position: fixed;
|
|
63
|
+
z-index: 2147483646;
|
|
64
|
+
bottom: 80px;
|
|
65
|
+
right: 24px;
|
|
66
|
+
background: #18181b;
|
|
67
|
+
border: 1px solid #3f3f46;
|
|
68
|
+
border-radius: 12px;
|
|
69
|
+
padding: 24px;
|
|
70
|
+
min-width: 320px;
|
|
71
|
+
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
|
72
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
73
|
+
color: #f4f4f5;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.loupe-modal.modal--visible {
|
|
77
|
+
display: block;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.loupe-modal textarea {
|
|
81
|
+
width: 100%;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
background: #27272a;
|
|
84
|
+
border: 1px solid #3f3f46;
|
|
85
|
+
border-radius: 6px;
|
|
86
|
+
color: #f4f4f5;
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
89
|
+
padding: 8px;
|
|
90
|
+
margin-bottom: 12px;
|
|
91
|
+
resize: vertical;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.loupe-modal select {
|
|
95
|
+
width: 100%;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
background: #27272a;
|
|
98
|
+
border: 1px solid #3f3f46;
|
|
99
|
+
border-radius: 6px;
|
|
100
|
+
color: #f4f4f5;
|
|
101
|
+
font-size: 14px;
|
|
102
|
+
padding: 8px;
|
|
103
|
+
margin-bottom: 16px;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.loupe-modal-actions {
|
|
108
|
+
display: flex;
|
|
109
|
+
gap: 8px;
|
|
110
|
+
justify-content: flex-end;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.loupe-modal-submit {
|
|
114
|
+
background: #10b981;
|
|
115
|
+
color: #fff;
|
|
116
|
+
border: none;
|
|
117
|
+
border-radius: 6px;
|
|
118
|
+
padding: 8px 16px;
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.loupe-modal-cancel {
|
|
124
|
+
background: transparent;
|
|
125
|
+
color: #a1a1aa;
|
|
126
|
+
border: 1px solid #3f3f46;
|
|
127
|
+
border-radius: 6px;
|
|
128
|
+
padding: 8px 16px;
|
|
129
|
+
font-size: 14px;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
}
|
|
132
|
+
`;var _a=class t{constructor(e,A,a,n){this.left=e,this.top=A,this.width=a,this.height=n}add(e,A,a,n){return new t(this.left+e,this.top+A,this.width+a,this.height+n)}static fromClientRect(e,A){return new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height)}static fromDOMRectList(e,A){let a=Array.from(A),n=a.find(l=>l.width!==0);return n||(n=a.find(l=>l.height!==0)),!n&&a.length>0&&(n=a[0]),n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY}};_a.EMPTY=new _a(0,0,0,0);var e0=(t,e)=>_a.fromClientRect(t,e.getBoundingClientRect()),fH=t=>{let e=t.body,A=t.documentElement;if(!e||!A)throw new Error("Unable to get document size");let a=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),n=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new _a(0,0,a,n)},t0=function(t){for(var e=[],A=0,a=t.length;A<a;){var n=t.charCodeAt(A++);if(n>=55296&&n<=56319&&A<a){var l=t.charCodeAt(A++);(l&64512)===56320?e.push(((n&1023)<<10)+(l&1023)+65536):(e.push(n),A--)}else e.push(n)}return e},qt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var a=[],n=-1,l="";++n<A;){var i=t[n];i<=65535?a.push(i):(i-=65536,a.push((i>>10)+55296,i%1024+56320)),(n+1===A||a.length>16384)&&(l+=String.fromCharCode.apply(String,a),a.length=0)}return l},_S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dH=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Rc=0;Rc<_S.length;Rc++)dH[_S.charCodeAt(Rc)]=Rc;var Rc,OS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Dc=0;Dc<OS.length;Dc++)Vc[OS.charCodeAt(Dc)]=Dc;var Dc,hH=function(t){var e=t.length*.75,A=t.length,a,n=0,l,i,s,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),h=Array.isArray(d)?d:new Uint8Array(d);for(a=0;a<A;a+=4)l=Vc[t.charCodeAt(a)],i=Vc[t.charCodeAt(a+1)],s=Vc[t.charCodeAt(a+2)],c=Vc[t.charCodeAt(a+3)],h[n++]=l<<2|i>>4,h[n++]=(i&15)<<4|s>>2,h[n++]=(s&3)<<6|c&63;return d},pH=function(t){for(var e=t.length,A=[],a=0;a<e;a+=2)A.push(t[a+1]<<8|t[a]);return A},mH=function(t){for(var e=t.length,A=[],a=0;a<e;a+=4)A.push(t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a]);return A},ai=5,T2=11,FB=2,gH=T2-ai,_3=65536>>ai,BH=1<<ai,TB=BH-1,CH=1024>>ai,yH=_3+CH,xH=yH,wH=32,vH=xH+wH,SH=65536>>T2,bH=1<<gH,UH=bH-1,NS=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},EH=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},LH=function(t,e){var A=hH(t),a=Array.isArray(A)?mH(A):new Uint32Array(A),n=Array.isArray(A)?pH(A):new Uint16Array(A),l=24,i=NS(n,l/2,a[4]/2),s=a[5]===2?NS(n,(l+a[4])/2):EH(a,Math.ceil((l+a[4])/4));return new QH(a[0],a[1],a[2],a[3],i,s)},QH=(function(){function t(e,A,a,n,l,i){this.initialValue=e,this.errorValue=A,this.highStart=a,this.highValueIndex=n,this.index=l,this.data=i}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>ai],A=(A<<FB)+(e&TB),this.data[A];if(e<=65535)return A=this.index[_3+(e-55296>>ai)],A=(A<<FB)+(e&TB),this.data[A];if(e<this.highStart)return A=vH-SH+(e>>T2),A=this.index[A],A+=e>>ai&UH,A=this.index[A],A=(A<<FB)+(e&TB),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),GS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",FH=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Mc=0;Mc<GS.length;Mc++)FH[GS.charCodeAt(Mc)]=Mc;var Mc,TH="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",KS=50,IH=1,O3=2,N3=3,HH=4,RH=5,zS=7,G3=8,VS=9,Gr=10,WB=11,PS=12,$B=13,DH=14,Pc=15,e2=16,ip=17,_c=18,MH=19,kS=20,t2=21,Oc=22,IB=23,vs=24,Ma=25,kc=26,Xc=27,Ss=28,_H=29,ti=30,OH=31,sp=32,up=33,A2=34,a2=35,n2=36,tf=37,l2=38,vp=39,Sp=40,HB=41,K3=42,NH=43,GH=[9001,65288],z3="!",Oe="\xD7",cp="\xF7",r2=LH(TH),Kl=[ti,n2],o2=[IH,O3,N3,RH],V3=[Gr,G3],XS=[Xc,kc],KH=o2.concat(V3),qS=[l2,vp,Sp,A2,a2],zH=[Pc,$B],VH=function(t,e){e===void 0&&(e="strict");var A=[],a=[],n=[];return t.forEach(function(l,i){var s=r2.get(l);if(s>KS?(n.push(!0),s-=KS):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return a.push(i),A.push(e2);if(s===HH||s===WB){if(i===0)return a.push(i),A.push(ti);var c=A[i-1];return KH.indexOf(c)===-1?(a.push(a[i-1]),A.push(c)):(a.push(i),A.push(ti))}if(a.push(i),s===OH)return A.push(e==="strict"?t2:tf);if(s===K3||s===_H)return A.push(ti);if(s===NH)return l>=131072&&l<=196605||l>=196608&&l<=262141?A.push(tf):A.push(ti);A.push(s)}),[a,A,n]},RB=function(t,e,A,a){var n=a[A];if(Array.isArray(t)?t.indexOf(n)!==-1:t===n)for(var l=A;l<=a.length;){l++;var i=a[l];if(i===e)return!0;if(i!==Gr)break}if(n===Gr)for(var l=A;l>0;){l--;var s=a[l];if(Array.isArray(t)?t.indexOf(s)!==-1:t===s)for(var c=A;c<=a.length;){c++;var i=a[c];if(i===e)return!0;if(i!==Gr)break}if(s!==Gr)break}return!1},YS=function(t,e){for(var A=t;A>=0;){var a=e[A];if(a===Gr)A--;else return a}return 0},PH=function(t,e,A,a,n){if(A[a]===0)return Oe;var l=a-1;if(Array.isArray(n)&&n[l]===!0)return Oe;var i=l-1,s=l+1,c=e[l],d=i>=0?e[i]:0,h=e[s];if(c===O3&&h===N3)return Oe;if(o2.indexOf(c)!==-1)return z3;if(o2.indexOf(h)!==-1||V3.indexOf(h)!==-1)return Oe;if(YS(l,e)===G3)return cp;if(r2.get(t[l])===WB||(c===sp||c===up)&&r2.get(t[s])===WB||c===zS||h===zS||c===VS||[Gr,$B,Pc].indexOf(c)===-1&&h===VS||[ip,_c,MH,vs,Ss].indexOf(h)!==-1||YS(l,e)===Oc||RB(IB,Oc,l,e)||RB([ip,_c],t2,l,e)||RB(PS,PS,l,e))return Oe;if(c===Gr)return cp;if(c===IB||h===IB)return Oe;if(h===e2||c===e2)return cp;if([$B,Pc,t2].indexOf(h)!==-1||c===DH||d===n2&&zH.indexOf(c)!==-1||c===Ss&&h===n2||h===kS||Kl.indexOf(h)!==-1&&c===Ma||Kl.indexOf(c)!==-1&&h===Ma||c===Xc&&[tf,sp,up].indexOf(h)!==-1||[tf,sp,up].indexOf(c)!==-1&&h===kc||Kl.indexOf(c)!==-1&&XS.indexOf(h)!==-1||XS.indexOf(c)!==-1&&Kl.indexOf(h)!==-1||[Xc,kc].indexOf(c)!==-1&&(h===Ma||[Oc,Pc].indexOf(h)!==-1&&e[s+1]===Ma)||[Oc,Pc].indexOf(c)!==-1&&h===Ma||c===Ma&&[Ma,Ss,vs].indexOf(h)!==-1)return Oe;if([Ma,Ss,vs,ip,_c].indexOf(h)!==-1)for(var p=l;p>=0;){var m=e[p];if(m===Ma)return Oe;if([Ss,vs].indexOf(m)!==-1)p--;else break}if([Xc,kc].indexOf(h)!==-1)for(var p=[ip,_c].indexOf(c)!==-1?i:l;p>=0;){var m=e[p];if(m===Ma)return Oe;if([Ss,vs].indexOf(m)!==-1)p--;else break}if(l2===c&&[l2,vp,A2,a2].indexOf(h)!==-1||[vp,A2].indexOf(c)!==-1&&[vp,Sp].indexOf(h)!==-1||[Sp,a2].indexOf(c)!==-1&&h===Sp||qS.indexOf(c)!==-1&&[kS,kc].indexOf(h)!==-1||qS.indexOf(h)!==-1&&c===Xc||Kl.indexOf(c)!==-1&&Kl.indexOf(h)!==-1||c===vs&&Kl.indexOf(h)!==-1||Kl.concat(Ma).indexOf(c)!==-1&&h===Oc&&GH.indexOf(t[s])===-1||Kl.concat(Ma).indexOf(h)!==-1&&c===_c)return Oe;if(c===HB&&h===HB){for(var B=A[l],y=1;B>0&&(B--,e[B]===HB);)y++;if(y%2!==0)return Oe}return c===sp&&h===up?Oe:cp},kH=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=VH(t,e.lineBreak),a=A[0],n=A[1],l=A[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(s){return[Ma,ti,K3].indexOf(s)!==-1?tf:s}));var i=e.wordBreak==="keep-all"?l.map(function(s,c){return s&&t[c]>=19968&&t[c]<=40959}):void 0;return[a,n,i]},XH=(function(){function t(e,A,a,n){this.codePoints=e,this.required=A===z3,this.start=a,this.end=n}return t.prototype.slice=function(){return qt.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),qH=function(t,e){var A=t0(t),a=kH(A,e),n=a[0],l=a[1],i=a[2],s=A.length,c=0,d=0;return{next:function(){if(d>=s)return{done:!0,value:null};for(var h=Oe;d<s&&(h=PH(A,l,n,++d,i))===Oe;);if(h!==Oe||d===s){var p=new XH(A,h,c,d);return c=d,{value:p,done:!1}}return{done:!0,value:null}}}},YH=1,jH=2,Ms=4,jS=8,Ep=10,ZS=47,Jc=92,ZH=9,JH=32,fp=34,Nc=61,WH=35,$H=36,eR=37,dp=39,hp=40,Gc=41,tR=95,ca=45,AR=33,aR=60,nR=62,lR=64,rR=91,oR=93,iR=61,sR=123,pp=63,uR=125,JS=124,cR=126,fR=128,WS=65533,DB=42,Ai=43,dR=44,hR=58,pR=59,Af=46,mR=0,gR=8,BR=11,CR=14,yR=31,xR=127,ol=-1,P3=48,k3=97,X3=101,wR=102,vR=117,SR=122,q3=65,Y3=69,j3=70,bR=85,UR=90,jA=t=>t>=P3&&t<=57,ER=t=>t>=55296&&t<=57343,bs=t=>jA(t)||t>=q3&&t<=j3||t>=k3&&t<=wR,LR=t=>t>=k3&&t<=SR,QR=t=>t>=q3&&t<=UR,FR=t=>LR(t)||QR(t),TR=t=>t>=fR,mp=t=>t===Ep||t===ZH||t===JH,Lp=t=>FR(t)||TR(t)||t===tR,$S=t=>Lp(t)||jA(t)||t===ca,IR=t=>t>=mR&&t<=gR||t===BR||t>=CR&&t<=yR||t===xR,Or=(t,e)=>t!==Jc?!1:e!==Ep,gp=(t,e,A)=>t===ca?Lp(e)||Or(e,A):Lp(t)?!0:!!(t===Jc&&Or(t,e)),MB=(t,e,A)=>t===Ai||t===ca?jA(e)?!0:e===Af&&jA(A):jA(t===Af?e:t),HR=t=>{let e=0,A=1;(t[e]===Ai||t[e]===ca)&&(t[e]===ca&&(A=-1),e++);let a=[];for(;jA(t[e]);)a.push(t[e++]);let n=a.length?parseInt(qt(...a),10):0;t[e]===Af&&e++;let l=[];for(;jA(t[e]);)l.push(t[e++]);let i=l.length,s=i?parseInt(qt(...l),10):0;(t[e]===Y3||t[e]===X3)&&e++;let c=1;(t[e]===Ai||t[e]===ca)&&(t[e]===ca&&(c=-1),e++);let d=[];for(;jA(t[e]);)d.push(t[e++]);let h=d.length?parseInt(qt(...d),10):0;return A*(n+s*Math.pow(10,-i))*Math.pow(10,c*h)},RR={type:2},DR={type:3},MR={type:4},_R={type:13},OR={type:8},NR={type:21},GR={type:9},KR={type:10},zR={type:11},VR={type:12},PR={type:14},Bp={type:23},kR={type:1},XR={type:25},qR={type:24},YR={type:26},jR={type:27},ZR={type:28},JR={type:29},WR={type:31},i2={type:32},Qp=class{constructor(){this._value=[]}write(e){this._value=this._value.concat(t0(e))}read(){let e=[],A=this.consumeToken();for(;A!==i2;)e.push(A),A=this.consumeToken();return e}consumeToken(){let e=this.consumeCodePoint();switch(e){case fp:return this.consumeStringToken(fp);case WH:let A=this.peekCodePoint(0),a=this.peekCodePoint(1),n=this.peekCodePoint(2);if($S(A)||Or(a,n)){let B=gp(A,a,n)?jH:YH;return{type:5,value:this.consumeName(),flags:B}}break;case $H:if(this.peekCodePoint(0)===Nc)return this.consumeCodePoint(),_R;break;case dp:return this.consumeStringToken(dp);case hp:return RR;case Gc:return DR;case DB:if(this.peekCodePoint(0)===Nc)return this.consumeCodePoint(),PR;break;case Ai:if(MB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case dR:return MR;case ca:let l=e,i=this.peekCodePoint(0),s=this.peekCodePoint(1);if(MB(l,i,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(gp(l,i,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(i===ca&&s===nR)return this.consumeCodePoint(),this.consumeCodePoint(),qR;break;case Af:if(MB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case ZS:if(this.peekCodePoint(0)===DB)for(this.consumeCodePoint();;){let B=this.consumeCodePoint();if(B===DB&&(B=this.consumeCodePoint(),B===ZS))return this.consumeToken();if(B===ol)return this.consumeToken()}break;case hR:return YR;case pR:return jR;case aR:if(this.peekCodePoint(0)===AR&&this.peekCodePoint(1)===ca&&this.peekCodePoint(2)===ca)return this.consumeCodePoint(),this.consumeCodePoint(),XR;break;case lR:let c=this.peekCodePoint(0),d=this.peekCodePoint(1),h=this.peekCodePoint(2);if(gp(c,d,h))return{type:7,value:this.consumeName()};break;case rR:return ZR;case Jc:if(Or(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case oR:return JR;case iR:if(this.peekCodePoint(0)===Nc)return this.consumeCodePoint(),OR;break;case sR:return zR;case uR:return VR;case vR:case bR:let p=this.peekCodePoint(0),m=this.peekCodePoint(1);return p===Ai&&(bs(m)||m===pp)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case JS:if(this.peekCodePoint(0)===Nc)return this.consumeCodePoint(),GR;if(this.peekCodePoint(0)===JS)return this.consumeCodePoint(),NR;break;case cR:if(this.peekCodePoint(0)===Nc)return this.consumeCodePoint(),KR;break;case ol:return i2}return mp(e)?(this.consumeWhiteSpace(),WR):jA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Lp(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:qt(e)}}consumeCodePoint(){let e=this._value.shift();return typeof e>"u"?-1:e}reconsumeCodePoint(e){this._value.unshift(e)}peekCodePoint(e){return e>=this._value.length?-1:this._value[e]}consumeUnicodeRangeToken(){let e=[],A=this.consumeCodePoint();for(;bs(A)&&e.length<6;)e.push(A),A=this.consumeCodePoint();let a=!1;for(;A===pp&&e.length<6;)e.push(A),A=this.consumeCodePoint(),a=!0;if(a){let l=parseInt(qt(...e.map(s=>s===pp?P3:s)),16),i=parseInt(qt(...e.map(s=>s===pp?j3:s)),16);return{type:30,start:l,end:i}}let n=parseInt(qt(...e),16);if(this.peekCodePoint(0)===ca&&bs(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();let l=[];for(;bs(A)&&l.length<6;)l.push(A),A=this.consumeCodePoint();let i=parseInt(qt(...l),16);return{type:30,start:n,end:i}}else return{type:30,start:n,end:n}}consumeIdentLikeToken(){let e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===hp?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===hp?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}}consumeUrlToken(){let e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ol)return{type:22,value:""};let A=this.peekCodePoint(0);if(A===dp||A===fp){let a=this.consumeStringToken(this.consumeCodePoint());return a.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ol||this.peekCodePoint(0)===Gc)?(this.consumeCodePoint(),{type:22,value:a.value}):(this.consumeBadUrlRemnants(),Bp)}for(;;){let a=this.consumeCodePoint();if(a===ol||a===Gc)return{type:22,value:qt(...e)};if(mp(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ol||this.peekCodePoint(0)===Gc?(this.consumeCodePoint(),{type:22,value:qt(...e)}):(this.consumeBadUrlRemnants(),Bp);if(a===fp||a===dp||a===hp||IR(a))return this.consumeBadUrlRemnants(),Bp;if(a===Jc)if(Or(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bp;else e.push(a)}}consumeWhiteSpace(){for(;mp(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){let e=this.consumeCodePoint();if(e===Gc||e===ol)return;Or(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let a="";for(;e>0;){let n=Math.min(5e4,e);a+=qt(...this._value.splice(0,n)),e-=n}return this._value.shift(),a}consumeStringToken(e){let A="",a=0;do{let n=this._value[a];if(n===ol||n===void 0||n===e)return A+=this.consumeStringSlice(a),{type:0,value:A};if(n===Ep)return this._value.splice(0,a),kR;if(n===Jc){let l=this._value[a+1];l!==ol&&l!==void 0&&(l===Ep?(A+=this.consumeStringSlice(a),a=-1,this._value.shift()):Or(n,l)&&(A+=this.consumeStringSlice(a),A+=qt(this.consumeEscapedCodePoint()),a=-1))}a++}while(!0)}consumeNumber(){let e=[],A=Ms,a=this.peekCodePoint(0);for((a===Ai||a===ca)&&e.push(this.consumeCodePoint());jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());a=this.peekCodePoint(0);let n=this.peekCodePoint(1);if(a===Af&&jA(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=jS;jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());a=this.peekCodePoint(0),n=this.peekCodePoint(1);let l=this.peekCodePoint(2);if((a===Y3||a===X3)&&((n===Ai||n===ca)&&jA(l)||jA(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=jS;jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[HR(e),A]}consumeNumericToken(){let[e,A]=this.consumeNumber(),a=this.peekCodePoint(0),n=this.peekCodePoint(1),l=this.peekCodePoint(2);if(gp(a,n,l)){let i=this.consumeName();return{type:15,number:e,flags:A,unit:i}}return a===eR?(this.consumeCodePoint(),{type:16,number:e,flags:A}):{type:17,number:e,flags:A}}consumeEscapedCodePoint(){let e=this.consumeCodePoint();if(bs(e)){let A=qt(e);for(;bs(this.peekCodePoint(0))&&A.length<6;)A+=qt(this.consumeCodePoint());mp(this.peekCodePoint(0))&&this.consumeCodePoint();let a=parseInt(A,16);return a===0||ER(a)||a>1114111?WS:a}return e===ol?WS:e}consumeName(){let e="";for(;;){let A=this.consumeCodePoint();if($S(A))e+=qt(A);else if(Or(A,this.peekCodePoint(0)))e+=qt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),e}}},Fp=class t{constructor(e){this._tokens=e}static create(e){let A=new Qp;return A.write(e),new t(A.read())}static parseValue(e){return t.create(e).parseComponentValue()}static parseValues(e){return t.create(e).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);let A=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){let e=[];for(;;){let A=this.consumeComponentValue();if(A.type===32)return e;e.push(A),e.push()}}consumeComponentValue(){let e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){let A={type:e,values:[]},a=this.consumeToken();for(;;){if(a.type===32||eD(a,e))return A;this.reconsumeToken(a),A.values.push(this.consumeComponentValue()),a=this.consumeToken()}}consumeFunction(e){let A={name:e.value,values:[],type:18};for(;;){let a=this.consumeToken();if(a.type===32||a.type===3)return A;this.reconsumeToken(a),A.values.push(this.consumeComponentValue())}}consumeToken(){let e=this._tokens.shift();return typeof e>"u"?i2:e}reconsumeToken(e){this._tokens.unshift(e)}},ul=t=>t.type===15,tA=t=>t.type===17,Re=t=>t.type===20,$R=t=>t.type===0,s2=(t,e)=>Re(t)&&t.value===e,Z3=t=>t.type!==31,DA=t=>t.type!==31&&t.type!==4,cl=t=>{let e=[],A=[];return t.forEach(a=>{if(a.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(A),A=[];return}a.type!==31&&A.push(a)}),A.length&&e.push(A),e},eD=(t,e)=>e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3,Pr=t=>t.type===17||t.type===15,mt=t=>t.type===16||Pr(t),tD=t=>t.type===18&&t.name==="calc",AD=(t,e=0)=>{let A=a=>{let n="";for(let l of a)if(l.type!==31){if(l.type===18)if(l.name==="calc"){let i=A(l.values);if(i===null)return null;n+=`(${i})`}else return null;else if(l.type===17)n+=l.number.toString();else if(l.type===15)l.unit==="px"?n+=l.number.toString():l.unit==="rem"||l.unit==="em"?n+=(l.number*16).toString():n+=l.number.toString();else if(l.type===16)n+=(l.number/100*e).toString();else if(l.type===6){let i=l.value;i==="+"||i==="-"||i==="*"||i==="/"?n+=` ${i} `:i==="("?n+="(":i===")"&&(n+=")")}}return n};try{let a=A(t.values);if(a===null||a.trim()==="")return null;let n=new Function("return "+a)();if(typeof n=="number"&&!isNaN(n))return{type:17,number:n,flags:Ms}}catch{return null}return null},J3=t=>t.length>1?[t[0],t[1]]:[t[0]],RA={type:17,number:0,flags:Ms},I2={type:16,number:50,flags:Ms},Kr={type:16,number:100,flags:Ms},qc=(t,e,A)=>{let[a,n]=t;return[Pe(a,e),Pe(typeof n<"u"?n:a,A)]},Pe=(t,e)=>{if(t.type===16)return t.number/100*e;if(ul(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},W3="deg",$3="grad",e5="rad",t5="turn",_s={name:"angle",parse:(t,e)=>{if(e.type===15)switch(e.unit){case W3:return Math.PI*e.number/180;case $3:return Math.PI/200*e.number;case e5:return e.number;case t5:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},A5=t=>t.type===15&&(t.unit===W3||t.unit===$3||t.unit===e5||t.unit===t5),a5=t=>{switch(t.filter(Re).map(A=>A.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[RA,RA];case"to top":case"bottom":return ln(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[RA,Kr];case"to right":case"left":return ln(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Kr,Kr];case"to bottom":case"top":return ln(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Kr,RA];case"to left":case"right":return ln(270)}return 0},ln=t=>Math.PI*t/180,zr=t=>(255&t)===0,ct=t=>{let e=255&t,A=255&t>>8,a=255&t>>16,n=255&t>>24;return e<255?`rgba(${n},${a},${A},${e/255})`:`rgb(${n},${a},${A})`},Mn=(t,e,A,a)=>(t<<24|e<<16|A<<8|Math.round(a*255)<<0)>>>0,Nr=(t,e)=>{if(t.type===17)return t.number;if(t.type===16){let A=e===3?1:255;return e===3?t.number/100*A:Math.round(t.number/100*A)}return 0},oi=t=>(t[0].type===20?t[0].value:"unknown")==="from",Nt=(t,e,A)=>Math.min(Math.max(t,e),A),fa=(t,e)=>[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]],aD=t=>Mn(Nt(Math.round(t[0]*255),0,255),Nt(Math.round(t[1]*255),0,255),Nt(Math.round(t[2]*255),0,255),Nt(t[3],0,1)),H2=([t,e,A,a])=>{let n=ii([t,e,A]);return Mn(Nt(Math.round(n[0]*255),0,255),Nt(Math.round(n[1]*255),0,255),Nt(Math.round(n[2]*255),0,255),a)},lf=t=>{let e=kr([t[0],t[1],t[2]]);return H2([e[0],e[1],e[2],t[3]])},nD=(t,e)=>{if(oi(e.filter(DA)))throw new Error("Relative color not supported for lab()");let[A,a,n,l]=A0(e),i=ii(kr(l0([A,a,n])));return Mn(Nt(Math.round(i[0]*255),0,255),Nt(Math.round(i[1]*255),0,255),Nt(Math.round(i[2]*255),0,255),l)},lD=(t,e)=>{if(oi(e.filter(DA)))throw new Error("Relative color not supported for oklab()");let[A,a,n,l]=A0(e),i=ii(kr(n0([A,a,n])));return Mn(Nt(Math.round(i[0]*255),0,255),Nt(Math.round(i[1]*255),0,255),Nt(Math.round(i[2]*255),0,255),l)},rD=(t,e)=>{if(oi(e.filter(DA)))throw new Error("Relative color not supported for oklch()");let[A,a,n,l]=r5(e),i=ii(kr(n0(a0([A,a,n]))));return Mn(Nt(Math.round(i[0]*255),0,255),Nt(Math.round(i[1]*255),0,255),Nt(Math.round(i[2]*255),0,255),l)},oD=(t,e)=>{if(oi(e.filter(DA)))throw new Error("Relative color not supported for lch()");let[A,a,n,l]=l5(e),i=ii(kr(l0(a0([A,a,n]))));return Mn(Nt(Math.round(i[0]*255),0,255),Nt(Math.round(i[1]*255),0,255),Nt(Math.round(i[2]*255),0,255),l)},n5=(t,e)=>{let A=e.filter(DA),[a,n,l,i]=A,s=(a.type===17?ln(a.number):_s.parse(t,a))/(Math.PI*2),c=mt(n)?n.number/100:0,d=mt(l)?l.number/100:0,h=typeof i<"u"&&mt(i)?Pe(i,1):1;return[s,c,d,h]},e3=(t,e)=>{if(oi(e))throw new Error("Relative color not supported for hsl()");let[A,a,n,l]=n5(t,e),i=i5([A,a,n]);return Mn(i[0]*255,i[1]*255,i[2]*255,a===0?1:l)},l5=t=>{let e=t.filter(DA),A=mt(e[0])?e[0].number:0,a=mt(e[1])?e[1].number:0,n=tA(e[2])||ul(e[2])?e[2].number:0,l=typeof e[4]<"u"&&mt(e[4])?Pe(e[4],1):1;return[A,a,n,l]},A0=t=>{let e=t.filter(DA),A=e[0].type===16?e[0].number/100:tA(e[0])?e[0].number:0,a=e[1].type===16?e[1].number/100:tA(e[1])?e[1].number:0,n=tA(e[2])||ul(e[2])?e[2].number:0,l=typeof e[4]<"u"&&mt(e[4])?Pe(e[4],1):1;return[A,a,n,l]},r5=t=>{let e=t.filter(DA),A=e[0].type===16?e[0].number/100:tA(e[0])?e[0].number:0,a=e[1].type===16?e[1].number/100:tA(e[1])?e[1].number:0,n=tA(e[2])||ul(e[2])?e[2].number:0,l=typeof e[4]<"u"&&mt(e[4])?Pe(e[4],1):1;return[A,a,n,l]},o5=t=>fa([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],t),R2=t=>fa([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],t),_B=(t,e,A)=>(A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<1/2?e:A<2/3?(e-t)*6*(2/3-A)+t:t),i5=([t,e,A])=>{if(e===0)return[A*255,A*255,A*255];let a=A<=.5?A*(e+1):A+e-A*e,n=A*2-a,l=_B(n,a,t+1/3),i=_B(n,a,t),s=_B(n,a,t-1/3);return[l,i,s]},a0=([t,e,A])=>(e<0&&(e=0),isNaN(A)&&(A=0),[t,e*Math.cos(A*Math.PI/180),e*Math.sin(A*Math.PI/180)]),n0=t=>{let e=fa([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],t),A=e.map(a=>a**3);return fa([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],A)},l0=t=>{let e=(t[0]+16)/116,A=t[1]/500+e,a=e-t[2]/200,n=24389/27,l=24/116,i=[(A>l?A**3:(116*A-16)/n)*.3457/.3585,t[0]>8?e**3:t[0]/n,(a>l?a**3:(116*a-16)/n)*(1-.3457-.3585)/.3585];return R2([i[0],i[1],i[2]])},iD=(t,e)=>{let A=e.filter(DA);if(A.length===3){let[a,n,l]=A.map(Nr),i=c2([a/255,n/255,l/255]),[s,c,d]=u2([i[0],i[1],i[2]]);return[s,c,d,1]}if(A.length===4){let[a,n,l,i]=A.map(Nr),s=c2([a/255,n/255,l/255]),[c,d,h]=u2([s[0],s[1],s[2]]);return[c,d,h,i]}return[0,0,0,1]},sD=(t,e)=>{let[A,a,n,l]=n5(t,e),i=c2(i5([A,a,n])),[s,c,d]=u2([i[0],i[1],i[2]]);return[s,c,d,l]},uD=(t,e)=>{let[A,a,n,l]=A0(e),[i,s,c]=l0([A,a,n]);return[i,s,c,l]},cD=(t,e)=>{let[A,a,n,l]=l5(e),[i,s,c]=l0(a0([A,a,n]));return[i,s,c,l]},fD=(t,e)=>{let[A,a,n,l]=r5(e),[i,s,c]=n0(a0([A,a,n]));return[i,s,c,l]},dD=(t,e)=>{let[A,a,n,l]=A0(e),[i,s,c]=n0([A,a,n]);return[i,s,c,l]},hD=t=>R2([t[0],t[1],t[2]]),t3=t=>t,pD=t=>{let[e,A,a]=o5([t[0],t[2],t[3]]);return[e,A,a,t[3]]},A3=t=>lf([t[0],t[1],t[2],t[3]]),mD=t=>{let e=hD([t[0],t[1],t[2]]);return lf([e[0],e[1],e[2],t[3]])},kr=t=>fa([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],t),u2=t=>fa([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],t),ii=t=>t.map(e=>{let A=e<0?-1:1,a=Math.abs(e);return a>.0031308?A*(1.055*a**(1/2.4)-.055):12.92*e}),c2=t=>t.map(e=>{let A=e<0?-1:1,a=Math.abs(e);return a<=.04045?e/12.92:A*((a+.055)/1.055)**2.4}),gD=t=>{let[e,A,a]=ii(kr([t[0],t[1],t[2]]));return[e,A,a,t[3]]},BD=t=>{let[e,A,a]=kr([t[0],t[1],t[2]]);return[Nt(Math.round(e*255),0,255),Nt(Math.round(A*255),0,255),Nt(Math.round(a*255),0,255),t[3]]},CD=t=>fa([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],t),yD=t=>fa([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],t),xD=t=>t.map(e=>{let A=e<0?-1:1;return e*A<=.04045?e/12.92:A*((e+.055)/1.055)**2.4||0}),wD=t=>ii(t),vD=t=>{let e=xD([t[0],t[1],t[2]]);return CD([e[0],e[1],e[2]])},SD=t=>{let[e,A,a]=wD(yD([t[0],t[1],t[2]]));return[e,A,a,t[3]]},bD=t=>{let e=vD([t[0],t[1],t[2]]);return lf([e[0],e[1],e[2],t[3]])},UD=t=>fa([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],t),ED=t=>fa([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],t),LD=t=>{let e=t.map(A=>{let a=A<0?-1:1,n=Math.abs(A);return a*n**2.19921875});return[e[0],e[1],e[2]]},QD=t=>{let e=t.map(A=>{let a=A<0?-1:1,n=Math.abs(A);return a*n**.4547069271758437});return[e[0],e[1],e[2]]},FD=t=>{let[e,A,a]=QD(UD([t[0],t[1],t[2]]));return[e,A,a,t[3]]},TD=t=>{let e=kr(ED(LD([t[0],t[1],t[2]])));return H2([e[0],e[1],e[2],t[3]])},ID=t=>fa([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],t),HD=t=>fa([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],t),RD=t=>t.map(e=>e<16/512?e/16:e**1.8),DD=t=>t.map(e=>e>1/512?e**(1/1.8):e*16),MD=t=>{let e=RD([t[0],t[1],t[2]]);return R2(ID([e[0],e[1],e[2]]))},_D=t=>{let[e,A,a]=DD(HD(o5([t[0],t[1],t[2]])));return[e,A,a,t[3]]},OD=t=>{let e=MD([t[0],t[1],t[2]]);return lf([e[0],e[1],e[2],t[3]])},Tp=1.09929682680944,s5=.018053968510807,ND=t=>t.map(function(e){return e<s5*4.5?e/4.5:Math.pow((e+Tp-1)/Tp,1/.45)}),GD=t=>t.map(function(e){return e>=s5?Tp*Math.pow(e,.45)-(Tp-1):4.5*e}),KD=t=>fa([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],t),zD=t=>fa([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],t),VD=t=>{let e=ND([t[0],t[1],t[2]]);return KD([e[0],e[1],e[2]])},PD=t=>{let[e,A,a]=GD(zD([t[0],t[1],t[2]]));return[e,A,a,t[3]]},kD=t=>{let e=VD([t[0],t[1],t[2]]);return lf([e[0],e[1],e[2],t[3]])},Vr={name:"color",parse:(t,e)=>{if(e.type===18){let A=jD[e.name];if(typeof A>"u")throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return A(t,e.values)}if(e.type===5){let[A,a,n,l]=u5(e);return Mn(A,a,n,l)}if(e.type===20){let A=sl[e.value.toUpperCase()];if(typeof A<"u")return A}return sl.TRANSPARENT}},u5=t=>{if(t.value.length===3){let e=t.value.substring(0,1),A=t.value.substring(1,2),a=t.value.substring(2,3);return[parseInt(e+e,16),parseInt(A+A,16),parseInt(a+a,16),1]}if(t.value.length===4){let e=t.value.substring(0,1),A=t.value.substring(1,2),a=t.value.substring(2,3),n=t.value.substring(3,4);return[parseInt(e+e,16),parseInt(A+A,16),parseInt(a+a,16),parseInt(n+n,16)/255]}if(t.value.length===6){let e=t.value.substring(0,2),A=t.value.substring(2,4),a=t.value.substring(4,6);return[parseInt(e,16),parseInt(A,16),parseInt(a,16),1]}if(t.value.length===8){let e=t.value.substring(0,2),A=t.value.substring(2,4),a=t.value.substring(4,6),n=t.value.substring(6,8);return[parseInt(e,16),parseInt(A,16),parseInt(a,16),parseInt(n,16)/255]}return[0,0,0,1]},a3=(t,e)=>{let A=e.filter(DA);if(oi(A))throw new Error("Relative color not supported for rgb()");if(A.length===3){let[a,n,l]=A.map(Nr);return Mn(a,n,l,1)}if(A.length===4){let[a,n,l,i]=A.map(Nr);return Mn(a,n,l,i)}if(A.length===5&&A[3].type===6&&A[3].value==="/"){let a=Nr(A[0],0),n=Nr(A[1],1),l=Nr(A[2],2),i=Nr(A[4],3);return Mn(a,n,l,i)}return 0},XD=(t,e)=>{let A=e.filter(DA),a=A[0].type===20?A[0].value:"unknown";if(!oi(A)){let l=a,i=n3[l];if(typeof i>"u")throw new Error(`Attempting to parse an unsupported color space "${l}" for color() function`);let s=tA(A[1])?A[1].number:0,c=tA(A[2])?A[2].number:0,d=tA(A[3])?A[3].number:0,h=A.length>4&&A[4].type===6&&A[4].value==="/"&&tA(A[5])?A[5].number:1;return i([s,c,d,h])}else{let l=(x,S)=>{if(tA(S))return S.number;let U=F=>F==="r"||F==="x"?0:F==="g"||F==="y"?1:2;if(Re(S)){let F=U(S.value);return x[F]}let L=F=>{let T=F.filter(DA),M="(";for(let D of T)M+=D.type===18&&D.name==="calc"?L(D.values):tA(D)?D.number:D.type===6||Re(D)?D.value:"";return M+=")",M};if(S.type===18){let F=S.values.filter(DA);if(S.name==="calc"){let T=L(F).replace(/r|x/,x[0].toString()).replace(/g|y/,x[1].toString()).replace(/b|z/,x[2].toString());return new Function("return "+T)()}}return null},i=A[1].type===18?A[1].name:Re(A[1])||A[1].type===5?"rgb":"unknown",s=Re(A[2])?A[2].value:"unknown",c=A[1].type===18?A[1].values:Re(A[1])?[A[1]]:[];if(Re(A[1])){if(typeof sl[A[1].value.toUpperCase()]>"u")throw new Error("Attempting to use unknown color in relative color 'from'");{let S=Hs(t,A[1].value),U=255&S,L=255&S>>8,F=255&S>>16;c=[{type:17,number:255&S>>24,flags:1},{type:17,number:F,flags:1},{type:17,number:L,flags:1},{type:17,number:U>1?U/255:U,flags:1}]}}else if(A[1].type===5){let[x,S,U,L]=u5(A[1]);c=[{type:17,number:x,flags:1},{type:17,number:S,flags:1},{type:17,number:U,flags:1},{type:17,number:L>1?L/255:L,flags:1}]}if(c.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(s==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");let d=qD[i],h=YD[s],p=n3[s];if(typeof d>"u")throw new Error(`Attempting to parse an unsupported color space "${i}" for color() function`);if(typeof h>"u")throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);let m=d(t,c),B=h(m),y=l(B,A[3]),v=l(B,A[4]),b=l(B,A[5]),w=A.length>6&&A[6].type===6&&A[6].value==="/"&&tA(A[7])?A[7].number:1;if(y===null||v===null||b===null)throw new Error("Invalid relative color in color() function");return p([y,v,b,w])}},n3={srgb:aD,"srgb-linear":H2,"display-p3":bD,"a98-rgb":TD,"prophoto-rgb":OD,xyz:A3,"xyz-d50":mD,"xyz-d65":A3,rec2020:kD},qD={rgb:iD,hsl:sD,lab:uD,lch:cD,oklab:dD,oklch:fD},YD={srgb:gD,"srgb-linear":BD,"display-p3":SD,"a98-rgb":FD,"prophoto-rgb":_D,xyz:t3,"xyz-d50":pD,"xyz-d65":t3,rec2020:PD},jD={hsl:e3,hsla:e3,rgb:a3,rgba:a3,lch:oD,oklch:rD,oklab:lD,lab:nD,color:XD},Hs=(t,e)=>Vr.parse(t,Fp.create(e).parseComponentValue()),sl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ZD={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(t,e)=>e.map(A=>{if(Re(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})},JD={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},r0=(t,e)=>{let A=Vr.parse(t,e[0]),a=e[1];return a&&mt(a)?{color:A,stop:a}:{color:A,stop:null}},l3=(t,e)=>{let A=t[0],a=t[t.length-1];A.stop===null&&(A.stop=RA),a.stop===null&&(a.stop=Kr);let n=[],l=0;for(let s=0;s<t.length;s++){let c=t[s].stop;if(c!==null){let d=Pe(c,e);d>l?n.push(d):n.push(l),l=d}else n.push(null)}let i=null;for(let s=0;s<n.length;s++){let c=n[s];if(c===null)i===null&&(i=s);else if(i!==null){let d=s-i,h=n[i-1],p=(c-h)/(d+1);for(let m=1;m<=d;m++)n[i+m-1]=p*m;i=null}}return t.map(({color:s},c)=>({color:s,stop:Math.max(Math.min(1,n[c]/e),0)}))},WD=(t,e,A)=>{let a=e/2,n=A/2,l=Pe(t[0],e)-a,i=n-Pe(t[1],A);return(Math.atan2(i,l)+Math.PI*2)%(Math.PI*2)},$D=(t,e,A)=>{let a=typeof t=="number"?t:WD(t,e,A),n=Math.abs(e*Math.sin(a))+Math.abs(A*Math.cos(a)),l=e/2,i=A/2,s=n/2,c=Math.sin(a-Math.PI/2)*s,d=Math.cos(a-Math.PI/2)*s;return[n,l-d,l+d,i-c,i+c]},Dn=(t,e)=>Math.sqrt(t*t+e*e),r3=(t,e,A,a,n)=>[[0,0],[0,e],[t,0],[t,e]].reduce((i,s)=>{let[c,d]=s,h=Dn(A-c,a-d);return(n?h<i.optimumDistance:h>i.optimumDistance)?{optimumCorner:s,optimumDistance:h}:i},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner,eM=(t,e,A,a,n)=>{let l=0,i=0;switch(t.size){case 0:t.shape===0?l=i=Math.min(Math.abs(e),Math.abs(e-a),Math.abs(A),Math.abs(A-n)):t.shape===1&&(l=Math.min(Math.abs(e),Math.abs(e-a)),i=Math.min(Math.abs(A),Math.abs(A-n)));break;case 2:if(t.shape===0)l=i=Math.min(Dn(e,A),Dn(e,A-n),Dn(e-a,A),Dn(e-a,A-n));else if(t.shape===1){let s=Math.min(Math.abs(A),Math.abs(A-n))/Math.min(Math.abs(e),Math.abs(e-a)),[c,d]=r3(a,n,e,A,!0);l=Dn(c-e,(d-A)/s),i=s*l}break;case 1:t.shape===0?l=i=Math.max(Math.abs(e),Math.abs(e-a),Math.abs(A),Math.abs(A-n)):t.shape===1&&(l=Math.max(Math.abs(e),Math.abs(e-a)),i=Math.max(Math.abs(A),Math.abs(A-n)));break;case 3:if(t.shape===0)l=i=Math.max(Dn(e,A),Dn(e,A-n),Dn(e-a,A),Dn(e-a,A-n));else if(t.shape===1){let s=Math.max(Math.abs(A),Math.abs(A-n))/Math.max(Math.abs(e),Math.abs(e-a)),[c,d]=r3(a,n,e,A,!1);l=Dn(c-e,(d-A)/s),i=s*l}break}return Array.isArray(t.size)&&(l=Pe(t.size[0],a),i=t.size.length===2?Pe(t.size[1],n):l),[l,i]},tM=(t,e)=>{let A=ln(180),a=[];return cl(e).forEach((n,l)=>{if(l===0){let s=n[0];if(s.type===20&&s.value==="to"){A=a5(n);return}else if(A5(s)){A=_s.parse(t,s);return}}let i=r0(t,n);a.push(i)}),{angle:A,stops:a,type:1}},Cp=(t,e)=>{let A=ln(180),a=[];return cl(e).forEach((n,l)=>{if(l===0){let s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){A=a5(n);return}else if(A5(s)){A=(_s.parse(t,s)+ln(270))%ln(360);return}}let i=r0(t,n);a.push(i)}),{angle:A,stops:a,type:1}},AM=(t,e)=>{let A=ln(180),a=[],n=1,l=0,i=3,s=[];return cl(e).forEach((c,d)=>{let h=c[0];if(d===0){if(Re(h)&&h.value==="linear"){n=1;return}else if(Re(h)&&h.value==="radial"){n=2;return}}if(h.type===18){if(h.name==="from"){let p=Vr.parse(t,h.values[0]);a.push({stop:RA,color:p})}else if(h.name==="to"){let p=Vr.parse(t,h.values[0]);a.push({stop:Kr,color:p})}else if(h.name==="color-stop"){let p=h.values.filter(DA);if(p.length===2){let m=Vr.parse(t,p[1]),B=p[0];tA(B)&&a.push({stop:{type:16,number:B.number*100,flags:B.flags},color:m})}}}}),n===1?{angle:(A+ln(180))%ln(360),stops:a,type:n}:{size:i,shape:l,stops:a,position:s,type:n}},c5="closest-side",f5="farthest-side",d5="closest-corner",h5="farthest-corner",p5="circle",m5="ellipse",g5="cover",B5="contain",aM=(t,e)=>{let A=0,a=3,n=[],l=[];return cl(e).forEach((i,s)=>{let c=!0;if(s===0){let d=!1;c=i.reduce((h,p)=>{if(d)if(Re(p))switch(p.value){case"center":return l.push(I2),h;case"top":case"left":return l.push(RA),h;case"right":case"bottom":return l.push(Kr),h}else(mt(p)||Pr(p))&&l.push(p);else if(Re(p))switch(p.value){case p5:return A=0,!1;case m5:return A=1,!1;case"at":return d=!0,!1;case c5:return a=0,!1;case g5:case f5:return a=1,!1;case B5:case d5:return a=2,!1;case h5:return a=3,!1}else if(Pr(p)||mt(p))return Array.isArray(a)||(a=[]),a.push(p),!1;return h},c)}if(c){let d=r0(t,i);n.push(d)}}),{size:a,shape:A,stops:n,position:l,type:2}},yp=(t,e)=>{let A=0,a=3,n=[],l=[];return cl(e).forEach((i,s)=>{let c=!0;if(s===0?c=i.reduce((d,h)=>{if(Re(h))switch(h.value){case"center":return l.push(I2),!1;case"top":case"left":return l.push(RA),!1;case"right":case"bottom":return l.push(Kr),!1}else if(mt(h)||Pr(h))return l.push(h),!1;return d},c):s===1&&(c=i.reduce((d,h)=>{if(Re(h))switch(h.value){case p5:return A=0,!1;case m5:return A=1,!1;case B5:case c5:return a=0,!1;case f5:return a=1,!1;case d5:return a=2,!1;case g5:case h5:return a=3,!1}else if(Pr(h)||mt(h))return Array.isArray(a)||(a=[]),a.push(h),!1;return d},c)),c){let d=r0(t,i);n.push(d)}}),{size:a,shape:A,stops:n,position:l,type:2}},nM=t=>t.type===1,lM=t=>t.type===2,D2={name:"image",parse:(t,e)=>{if(e.type===22){let A={url:e.value,type:0};return t.cache.addImage(e.value),A}if(e.type===18){let A=C5[e.name];if(typeof A>"u")throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return A(t,e.values)}throw new Error(`Unsupported image type ${e.type}`)}};function rM(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!C5[t.name])}var C5={"linear-gradient":tM,"-moz-linear-gradient":Cp,"-ms-linear-gradient":Cp,"-o-linear-gradient":Cp,"-webkit-linear-gradient":Cp,"radial-gradient":aM,"-moz-radial-gradient":yp,"-ms-radial-gradient":yp,"-o-radial-gradient":yp,"-webkit-radial-gradient":yp,"-webkit-gradient":AM},oM={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>{if(e.length===0)return[];let A=e[0];return A.type===20&&A.value==="none"?[]:e.filter(a=>DA(a)&&rM(a)).map(a=>D2.parse(t,a))}},iM={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(t,e)=>e.map(A=>{if(Re(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})},sM={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(t,e)=>cl(e).map(A=>A.map(a=>tD(a)?AD(a,0):mt(a)?a:null).filter(a=>a!==null)).map(J3)},uM={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(t,e)=>cl(e).map(A=>A.filter(Re).map(a=>a.value).join(" ")).map(cM)},cM=t=>{switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},Rs;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Rs||(Rs={}));var fM={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(t,e)=>cl(e).map(A=>A.filter(dM))},dM=t=>Re(t)||mt(t),o0=t=>({name:`border-${t}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),hM=o0("top"),pM=o0("right"),mM=o0("bottom"),gM=o0("left"),i0=t=>({name:`border-radius-${t}`,initialValue:"0 0",prefix:!1,type:1,parse:(e,A)=>J3(A.filter(mt))}),BM=i0("top-left"),CM=i0("top-right"),yM=i0("bottom-right"),xM=i0("bottom-left"),s0=t=>({name:`border-${t}-style`,initialValue:"solid",prefix:!1,type:2,parse:(e,A)=>{switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),wM=s0("top"),vM=s0("right"),SM=s0("bottom"),bM=s0("left"),u0=t=>({name:`border-${t}-width`,initialValue:"0",type:0,prefix:!1,parse:(e,A)=>ul(A)?A.number:0}),UM=u0("top"),EM=u0("right"),LM=u0("bottom"),QM=u0("left"),FM={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},TM={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(t,e)=>e==="rtl"?1:0},IM={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(t,e)=>e.filter(Re).reduce((A,a)=>A|HM(a.value),0)},HM=t=>{switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},RM={name:"float",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},DM={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(t,e)=>e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0},Ip;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Ip||(Ip={}));var MM={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>e==="strict"?Ip.STRICT:Ip.NORMAL},_M={name:"line-height",initialValue:"normal",prefix:!1,type:4},o3=(t,e)=>Re(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:mt(t)?Pe(t,e):e,OM={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:(t,e)=>e.type===20&&e.value==="none"?null:D2.parse(t,e)},NM={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(t,e)=>e==="inside"?0:1},f2={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},c0=t=>({name:`margin-${t}`,initialValue:"0",prefix:!1,type:4}),GM=c0("top"),KM=c0("right"),zM=c0("bottom"),VM=c0("left"),PM={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(t,e)=>e.filter(Re).map(A=>{switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},kM={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>e==="break-word"?"break-word":"normal"},f0=t=>({name:`padding-${t}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),XM=f0("top"),qM=f0("right"),YM=f0("bottom"),jM=f0("left"),ZM={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},JM={name:"position",initialValue:"static",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},WM={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>e.length===1&&s2(e[0],"none")?[]:cl(e).map(A=>{let a={color:sl.TRANSPARENT,offsetX:RA,offsetY:RA,blur:RA},n=0;for(let l=0;l<A.length;l++){let i=A[l];Pr(i)?(n===0?a.offsetX=i:n===1?a.offsetY=i:a.blur=i,n++):a.color=Vr.parse(t,i)}return a})},$M={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},e_={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(t,e)=>{if(e.type===20&&e.value==="none")return null;if(e.type===18){let A=n_[e.name];if(typeof A>"u")throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return A(t,e.values)}return null}},t_=(t,e)=>{let A=e.filter(a=>a.type===17).map(a=>a.number);return A.length===6?A:null},A_=(t,e)=>{let A=e.filter(d=>d.type===17).map(d=>d.number),[a,n,{},{},l,i,{},{},{},{},{},{},s,c]=A;return A.length===16?[a,n,l,i,s,c]:null},a_=(t,e)=>{if(e.length!==1)return null;let A=e[0],a=0;if(A.type===17&&A.number===0)a=0;else if(A.type===15)a=_s.parse(t,A);else return null;let n=Math.cos(a),l=Math.sin(a);return[n,l,-l,n,0,0]},n_={matrix:t_,matrix3d:A_,rotate:a_},i3={type:16,number:50,flags:Ms},l_=[i3,i3],r_={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(t,e)=>{let A=e.filter(mt);return A.length!==2?l_:[A[0],A[1]]}},o_={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(t,e)=>e.type===20&&e.value==="none"?null:e.type===17&&e.number===0?0:e.type===15?_s.parse(t,e)*180/Math.PI:null},i_={name:"visible",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Wc;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Wc||(Wc={}));var s_={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"break-all":return Wc.BREAK_ALL;case"keep-all":return Wc.KEEP_ALL;default:return Wc.NORMAL}}},u_={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>{if(e.type===20)return{auto:!0,order:0};if(tA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},y5={name:"time",parse:(t,e)=>{if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},c_={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(t,e)=>tA(e)?e.number:1},f_={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},d_={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(t,e)=>e.filter(Re).map(A=>{switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(A=>A!==0)},h_={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},p_={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>{if(Re(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return ul(e)?e.number:"auto"}},m_={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>Re(e)&&e.value==="auto"?"auto":ul(e)?e.number:"auto"},g_={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(t,e)=>{let A=[],a=[];return e.forEach(n=>{switch(n.type){case 20:case 0:A.push(n.value);break;case 17:A.push(n.number.toString());break;case 4:a.push(A.join(" ")),A.length=0;break}}),A.length&&a.push(A.join(" ")),a.map(n=>n.indexOf(" ")===-1?n:`'${n}'`)}},B_={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},C_={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(t,e)=>tA(e)?e.number:Re(e)&&e.value==="bold"?700:400},y_={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>e.filter(Re).map(A=>A.value)},x_={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},It=(t,e)=>(t&e)!==0,w_={name:"content",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>{if(e.length===0)return[];let A=e[0];return A.type===20&&A.value==="none"?[]:e}},v_={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(e.length===0)return null;let A=e[0];if(A.type===20&&A.value==="none")return null;let a=[],n=e.filter(Z3);for(let l=0;l<n.length;l++){let i=n[l],s=n[l+1];if(i.type===20){let c=s&&tA(s)?s.number:1;a.push({counter:i.value,increment:c})}}return a}},S_={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(e.length===0)return[];let A=[],a=e.filter(Z3);for(let n=0;n<a.length;n++){let l=a[n],i=a[n+1];if(Re(l)&&l.value!=="none"){let s=i&&tA(i)?i.number:0;A.push({counter:l.value,reset:s})}}return A}},b_={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(t,e)=>e.filter(ul).map(A=>y5.parse(t,A))},U_={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(e.length===0)return null;let A=e[0];if(A.type===20&&A.value==="none")return null;let a=[],n=e.filter($R);if(n.length%2!==0)return null;for(let l=0;l<n.length;l+=2){let i=n[l].value,s=n[l+1].value;a.push({open:i,close:s})}return a}},s3=(t,e,A)=>{if(!t)return"";let a=t[Math.min(e,t.length-1)];return a?A?a.open:a.close:""},E_={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>e.length===1&&s2(e[0],"none")?[]:cl(e).map(A=>{let a={color:255,offsetX:RA,offsetY:RA,blur:RA,spread:RA,inset:!1},n=0;for(let l=0;l<A.length;l++){let i=A[l];s2(i,"inset")?a.inset=!0:Pr(i)?(n===0?a.offsetX=i:n===1?a.offsetY=i:n===2?a.blur=i:a.spread=i,n++):a.color=Vr.parse(t,i)}return a})},L_={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(t,e)=>{let A=[0,1,2],a=[];return e.filter(Re).forEach(n=>{switch(n.value){case"stroke":a.push(1);break;case"fill":a.push(0);break;case"markers":a.push(2);break}}),A.forEach(n=>{a.indexOf(n)===-1&&a.push(n)}),a}},Q_={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},F_={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(t,e)=>ul(e)?e.number:0},T_={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(t,e)=>e.type===20&&e.value==="none"?0:e.type===17?Math.max(0,Math.floor(e.number)):0},I_={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:(t,e)=>e.filter(Re).reduce((A,a)=>A|H_(a.value),0)},H_=t=>{switch(t){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},R_={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(t,e)=>e==="ellipsis"?1:0},d2=class{constructor(e,A){this.animationDuration=ae(e,b_,A.animationDuration),this.backgroundClip=ae(e,ZD,A.backgroundClip),this.backgroundColor=ae(e,JD,A.backgroundColor),this.backgroundImage=ae(e,oM,A.backgroundImage),this.backgroundOrigin=ae(e,iM,A.backgroundOrigin),this.backgroundPosition=ae(e,sM,A.backgroundPosition),this.backgroundRepeat=ae(e,uM,A.backgroundRepeat),this.backgroundSize=ae(e,fM,A.backgroundSize),this.borderTopColor=ae(e,hM,A.borderTopColor),this.borderRightColor=ae(e,pM,A.borderRightColor),this.borderBottomColor=ae(e,mM,A.borderBottomColor),this.borderLeftColor=ae(e,gM,A.borderLeftColor),this.borderTopLeftRadius=ae(e,BM,A.borderTopLeftRadius),this.borderTopRightRadius=ae(e,CM,A.borderTopRightRadius),this.borderBottomRightRadius=ae(e,yM,A.borderBottomRightRadius),this.borderBottomLeftRadius=ae(e,xM,A.borderBottomLeftRadius),this.borderTopStyle=ae(e,wM,A.borderTopStyle),this.borderRightStyle=ae(e,vM,A.borderRightStyle),this.borderBottomStyle=ae(e,SM,A.borderBottomStyle),this.borderLeftStyle=ae(e,bM,A.borderLeftStyle),this.borderTopWidth=ae(e,UM,A.borderTopWidth),this.borderRightWidth=ae(e,EM,A.borderRightWidth),this.borderBottomWidth=ae(e,LM,A.borderBottomWidth),this.borderLeftWidth=ae(e,QM,A.borderLeftWidth),this.boxShadow=ae(e,E_,A.boxShadow),this.color=ae(e,FM,A.color),this.direction=ae(e,TM,A.direction),this.display=ae(e,IM,A.display),this.float=ae(e,RM,A.cssFloat),this.fontFamily=ae(e,g_,A.fontFamily),this.fontSize=ae(e,B_,A.fontSize),this.fontStyle=ae(e,x_,A.fontStyle),this.fontVariant=ae(e,y_,A.fontVariant),this.fontWeight=ae(e,C_,A.fontWeight),this.letterSpacing=ae(e,DM,A.letterSpacing),this.lineBreak=ae(e,MM,A.lineBreak),this.lineHeight=ae(e,_M,A.lineHeight),this.listStyleImage=ae(e,OM,A.listStyleImage),this.listStylePosition=ae(e,NM,A.listStylePosition),this.listStyleType=ae(e,f2,A.listStyleType),this.marginTop=ae(e,GM,A.marginTop),this.marginRight=ae(e,KM,A.marginRight),this.marginBottom=ae(e,zM,A.marginBottom),this.marginLeft=ae(e,VM,A.marginLeft),this.opacity=ae(e,c_,A.opacity);let a=ae(e,PM,A.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=ae(e,kM,A.overflowWrap),this.paddingTop=ae(e,XM,A.paddingTop),this.paddingRight=ae(e,qM,A.paddingRight),this.paddingBottom=ae(e,YM,A.paddingBottom),this.paddingLeft=ae(e,jM,A.paddingLeft),this.paintOrder=ae(e,L_,A.paintOrder),this.position=ae(e,JM,A.position),this.textAlign=ae(e,ZM,A.textAlign),this.textDecorationColor=ae(e,f_,A.textDecorationColor??A.color),this.textDecorationLine=ae(e,d_,A.textDecorationLine??A.textDecoration),this.textDecorationStyle=ae(e,h_,A.textDecorationStyle),this.textDecorationThickness=ae(e,p_,A.textDecorationThickness),this.textUnderlineOffset=ae(e,m_,A.textUnderlineOffset),this.textShadow=ae(e,WM,A.textShadow),this.textTransform=ae(e,$M,A.textTransform),this.textOverflow=ae(e,R_,A.textOverflow),this.transform=ae(e,e_,A.transform),this.transformOrigin=ae(e,r_,A.transformOrigin),this.rotate=ae(e,o_,A.rotate),this.visibility=ae(e,i_,A.visibility),this.webkitTextStrokeColor=ae(e,Q_,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=ae(e,F_,A.webkitTextStrokeWidth),this.webkitLineClamp=ae(e,T_,A.webkitLineClamp),this.wordBreak=ae(e,s_,A.wordBreak),this.zIndex=ae(e,u_,A.zIndex),this.objectFit=ae(e,I_,A.objectFit)}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return zr(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return It(this.display,4)||It(this.display,33554432)||It(this.display,268435456)||It(this.display,536870912)||It(this.display,67108864)||It(this.display,134217728)}},h2=class{constructor(e,A){this.content=ae(e,w_,A.content),this.quotes=ae(e,U_,A.quotes)}},Hp=class{constructor(e,A){this.counterIncrement=ae(e,v_,A.counterIncrement),this.counterReset=ae(e,S_,A.counterReset)}},ae=(t,e,A)=>{let a=new Qp,n=A!==null&&typeof A<"u"?A.toString():e.initialValue;a.write(n);let l=new Fp(a.read());switch(e.type){case 2:let i=l.parseComponentValue();return e.parse(t,Re(i)?i.value:e.initialValue);case 0:return e.parse(t,l.parseComponentValue());case 1:return e.parse(t,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(e.format){case"angle":return _s.parse(t,l.parseComponentValue());case"color":return Vr.parse(t,l.parseComponentValue());case"image":return D2.parse(t,l.parseComponentValue());case"length":let s=l.parseComponentValue();return Pr(s)?s:RA;case"length-percentage":let c=l.parseComponentValue();return mt(c)?c:RA;case"time":return y5.parse(t,l.parseComponentValue())}break}},D_="data-html2canvas-debug",M_=t=>{switch(t.getAttribute(D_)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},p2=(t,e)=>{let A=M_(t);return A===1||e===A},on=class{constructor(e,A){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,p2(A,3))debugger;this.styles=new d2(e,window.getComputedStyle(A,null)),B2(A)&&(this.styles.animationDuration.some(a=>a>0)&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none"),this.styles.rotate!==null&&(A.style.rotate="none")),this.bounds=e0(this.context,A),p2(A,4)&&(this.flags|=16)}},__="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",u3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Kc=0;Kc<u3.length;Kc++)Yc[u3.charCodeAt(Kc)]=Kc;var Kc,O_=function(t){var e=t.length*.75,A=t.length,a,n=0,l,i,s,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),h=Array.isArray(d)?d:new Uint8Array(d);for(a=0;a<A;a+=4)l=Yc[t.charCodeAt(a)],i=Yc[t.charCodeAt(a+1)],s=Yc[t.charCodeAt(a+2)],c=Yc[t.charCodeAt(a+3)],h[n++]=l<<2|i>>4,h[n++]=(i&15)<<4|s>>2,h[n++]=(s&3)<<6|c&63;return d},N_=function(t){for(var e=t.length,A=[],a=0;a<e;a+=2)A.push(t[a+1]<<8|t[a]);return A},G_=function(t){for(var e=t.length,A=[],a=0;a<e;a+=4)A.push(t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a]);return A},ni=5,M2=11,OB=2,K_=M2-ni,x5=65536>>ni,z_=1<<ni,NB=z_-1,V_=1024>>ni,P_=x5+V_,k_=P_,X_=32,q_=k_+X_,Y_=65536>>M2,j_=1<<K_,Z_=j_-1,c3=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},J_=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},W_=function(t,e){var A=O_(t),a=Array.isArray(A)?G_(A):new Uint32Array(A),n=Array.isArray(A)?N_(A):new Uint16Array(A),l=24,i=c3(n,l/2,a[4]/2),s=a[5]===2?c3(n,(l+a[4])/2):J_(a,Math.ceil((l+a[4])/4));return new $_(a[0],a[1],a[2],a[3],i,s)},$_=(function(){function t(e,A,a,n,l,i){this.initialValue=e,this.errorValue=A,this.highStart=a,this.highValueIndex=n,this.index=l,this.data=i}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>ni],A=(A<<OB)+(e&NB),this.data[A];if(e<=65535)return A=this.index[x5+(e-55296>>ni)],A=(A<<OB)+(e&NB),this.data[A];if(e<this.highStart)return A=q_-Y_+(e>>M2),A=this.index[A],A+=e>>ni&Z_,A=this.index[A],A=(A<<OB)+(e&NB),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),f3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eO=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(zc=0;zc<f3.length;zc++)eO[f3.charCodeAt(zc)]=zc;var zc,tO=1,GB=2,KB=3,d3=4,h3=5,AO=7,p3=8,zB=9,VB=10,m3=11,g3=12,B3=13,C3=14,PB=15,aO=function(t){for(var e=[],A=0,a=t.length;A<a;){var n=t.charCodeAt(A++);if(n>=55296&&n<=56319&&A<a){var l=t.charCodeAt(A++);(l&64512)===56320?e.push(((n&1023)<<10)+(l&1023)+65536):(e.push(n),A--)}else e.push(n)}return e},nO=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var a=[],n=-1,l="";++n<A;){var i=t[n];i<=65535?a.push(i):(i-=65536,a.push((i>>10)+55296,i%1024+56320)),(n+1===A||a.length>16384)&&(l+=String.fromCharCode.apply(String,a),a.length=0)}return l},lO=W_(__),an="\xD7",kB="\xF7",rO=function(t){return lO.get(t)},oO=function(t,e,A){var a=A-2,n=e[a],l=e[A-1],i=e[A];if(l===GB&&i===KB)return an;if(l===GB||l===KB||l===d3||i===GB||i===KB||i===d3)return kB;if(l===p3&&[p3,zB,m3,g3].indexOf(i)!==-1||(l===m3||l===zB)&&(i===zB||i===VB)||(l===g3||l===VB)&&i===VB||i===B3||i===h3||i===AO||l===tO)return an;if(l===B3&&i===C3){for(;n===h3;)n=e[--a];if(n===C3)return an}if(l===PB&&i===PB){for(var s=0;n===PB;)s++,n=e[--a];if(s%2===0)return an}return kB},iO=function(t){var e=aO(t),A=e.length,a=0,n=0,l=e.map(rO);return{next:function(){if(a>=A)return{done:!0,value:null};for(var i=an;a<A&&(i=oO(e,l,++a))===an;);if(i!==an||a===A){var s=nO.apply(null,e.slice(n,a));return n=a,{value:s,done:!1}}return{done:!0,value:null}}}},sO=function(t){for(var e=iO(t),A=[],a;!(a=e.next()).done;)a.value&&A.push(a.value.slice());return A},uO=t=>{if(t.createRange){let A=t.createRange();if(A.getBoundingClientRect){let a=t.createElement("boundtest");a.style.height="123px",a.style.display="block",t.body.appendChild(a),A.selectNode(a);let n=A.getBoundingClientRect(),l=Math.round(n.height);if(t.body.removeChild(a),l===123)return!0}}return!1},cO=t=>{let e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);let A=t.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";let a=e.firstChild,n=t0(a.data).map(c=>qt(c)),l=0,i={},s=n.every((c,d)=>{A.setStart(a,l),A.setEnd(a,l+c.length);let h=A.getBoundingClientRect();l+=c.length;let p=h.x>i.x||h.y>i.y;return i=h,d===0?!0:p});return t.body.removeChild(e),s},fO=()=>typeof new Image().crossOrigin<"u",dO=()=>typeof new XMLHttpRequest().responseType=="string",hO=t=>{let e=new Image,A=t.createElement("canvas"),a=A.getContext("2d");if(!a)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{a.drawImage(e,0,0),A.toDataURL()}catch{return!1}return!0},y3=t=>t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255,pO=t=>{let e=t.createElement("canvas"),A=100;e.width=A,e.height=A;let a=e.getContext("2d");if(!a)return Promise.reject(!1);a.fillStyle="rgb(0, 255, 0)",a.fillRect(0,0,A,A);let n=new Image,l=e.toDataURL();n.src=l;let i=m2(A,A,0,0,n);return a.fillStyle="red",a.fillRect(0,0,A,A),x3(i).then(s=>{a.drawImage(s,0,0);let c=a.getImageData(0,0,A,A).data;a.fillStyle="red",a.fillRect(0,0,A,A);let d=t.createElement("div");return d.style.backgroundImage=`url(${l})`,d.style.height=`${A}px`,y3(c)?x3(m2(A,A,0,0,d)):Promise.reject(!1)}).then(s=>(a.drawImage(s,0,0),y3(a.getImageData(0,0,A,A).data))).catch(()=>!1)},m2=(t,e,A,a,n)=>{let l="http://www.w3.org/2000/svg",i=document.createElementNS(l,"svg"),s=document.createElementNS(l,"foreignObject");return i.setAttributeNS(null,"width",t.toString()),i.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",A.toString()),s.setAttributeNS(null,"y",a.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(s),s.appendChild(n),i},x3=t=>new Promise((e,A)=>{let a=new Image;a.onload=()=>e(a),a.onerror=A,a.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`}),HA={get SUPPORT_RANGE_BOUNDS(){let t=uO(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){let t=HA.SUPPORT_RANGE_BOUNDS&&cO(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){let t=hO(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){let t=typeof Array.from=="function"&&typeof window.fetch=="function"?pO(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){let t=fO();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){let t=dO();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){let t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){let t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},li=class{constructor(e,A){this.text=e,this.bounds=A}},mO=(t,e,A,a)=>{let n=CO(e,A),l=[],i=0;return n.forEach(s=>{if(A.textDecorationLine.length||s.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){let c=w3(a,i,s.length).getClientRects();if(c.length>1){let d=il(s),h=0;d.forEach(p=>{l.push(new li(p,_a.fromDOMRectList(t,w3(a,h+i,p.length).getClientRects()))),h+=p.length})}else l.push(new li(s,_a.fromDOMRectList(t,c)))}else{let c=a.splitText(s.length);l.push(new li(s,gO(t,a))),a=c}else HA.SUPPORT_RANGE_BOUNDS||(a=a.splitText(s.length));i+=s.length}),l},gO=(t,e)=>{let A=e.ownerDocument;if(A){let a=A.createElement("html2canvaswrapper");a.appendChild(e.cloneNode(!0));let n=e.parentNode;if(n){n.replaceChild(a,e);let l=e0(t,a);return a.firstChild&&n.replaceChild(a.firstChild,a),l}}return _a.EMPTY},w3=(t,e,A)=>{let a=t.ownerDocument;if(!a)throw new Error("Node has no owner document");let n=a.createRange();return n.setStart(t,e),n.setEnd(t,e+A),n},il=t=>{if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){let e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(A=>A.segment)}return sO(t)},BO=(t,e)=>{if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){let A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(t)).map(a=>a.segment)}return xO(t,e)},CO=(t,e)=>e.letterSpacing!==0?il(t):BO(t,e),yO=[32,160,4961,65792,65793,4153,4241],xO=(t,e)=>{let A=qH(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),a=[],n;for(;!(n=A.next()).done;)if(n.value){let l=n.value.slice(),i=t0(l),s="";i.forEach(c=>{yO.indexOf(c)===-1?s+=qt(c):(s.length&&a.push(s),a.push(qt(c)),s="")}),s.length&&a.push(s)}return a},g2=class{constructor(e,A,a){this.text=wO(A.data,a.textTransform),this.textBounds=mO(e,this.text,a,A)}},wO=(t,e)=>{switch(e){case 1:return t.toLowerCase();case 3:return t.replace(vO,SO);case 2:return t.toUpperCase();default:return t}},vO=/(^|\s|:|-|\(|\))([a-z])/g,SO=(t,e,A)=>t.length>0?e+A.toUpperCase():t,Rp=class extends on{constructor(e,A){super(e,A),this.src=A.currentSrc||A.src,this.intrinsicWidth=A.naturalWidth,this.intrinsicHeight=A.naturalHeight,this.context.cache.addImage(this.src)}},Dp=class extends on{constructor(e,A){super(e,A),this.canvas=A,this.intrinsicWidth=A.width,this.intrinsicHeight=A.height}},Mp=class extends on{constructor(e,A){super(e,A);let a=new XMLSerializer,n=e0(e,A);A.setAttribute("width",`${n.width}px`),A.setAttribute("height",`${n.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(a.serializeToString(A))}`,this.intrinsicWidth=A.width.baseVal.value,this.intrinsicHeight=A.height.baseVal.value,this.context.cache.addImage(this.svg)}},_p=class extends on{constructor(e,A){super(e,A),this.value=A.value}},af=class extends on{constructor(e,A){super(e,A),this.start=A.start,this.reversed=typeof A.reversed=="boolean"&&A.reversed===!0}},bO=[{type:15,flags:0,unit:"px",number:3}],UO=[{type:16,flags:0,number:50}],EO=t=>t.width>t.height?new _a(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new _a(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t,LO=t=>{let e=t.type===FO?new Array(t.value.length+1).join("\u2022"):t.value;return e.length===0?t.placeholder||"":e},QO=t=>t.value.length===0&&!!t.placeholder,Op="checkbox",Np="radio",FO="password",v3=707406591,TO=1970632191,ri=class extends on{constructor(e,A){switch(super(e,A),this.type=A.type.toLowerCase(),this.checked=A.checked,this.value=LO(A),this.isPlaceholder=QO(A),(this.type===Op||this.type===Np)&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=EO(this.bounds)),this.type){case Op:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=bO;break;case Np:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=UO;break}}},Gp=class extends on{constructor(e,A){super(e,A);let a=A.options[A.selectedIndex||0];this.value=a&&a.text||""}},Kp=class extends on{constructor(e,A){super(e,A),this.value=A.value}},zp=class extends on{constructor(e,A){super(e,A),this.src=A.src,this.width=parseInt(A.width,10)||0,this.height=parseInt(A.height,10)||0,this.backgroundColor=this.styles.backgroundColor;try{if(A.contentWindow&&A.contentWindow.document&&A.contentWindow.document.documentElement){this.tree=v5(e,A.contentWindow.document.documentElement);let a=A.contentWindow.document.documentElement?Hs(e,getComputedStyle(A.contentWindow.document.documentElement).backgroundColor):sl.TRANSPARENT,n=A.contentWindow.document.body?Hs(e,getComputedStyle(A.contentWindow.document.body).backgroundColor):sl.TRANSPARENT;this.backgroundColor=zr(a)?zr(n)?this.styles.backgroundColor:n:a}}catch{}}},IO=["OL","UL","MENU"],bp=(t,e,A,a)=>{for(let n=e.firstChild,l;n;n=l)if(l=n.nextSibling,S5(n)&&n.data.length>0)A.textNodes.push(new g2(t,n,A.styles));else if(Vl(n))if(jc(n)&&n.assignedNodes)n.assignedNodes().forEach(i=>bp(t,i,A,a));else{let i=w5(t,n);i.styles.isVisible()&&(HO(n,i,a)?i.flags|=4:RO(i.styles)&&(i.flags|=2),IO.indexOf(n.tagName)!==-1&&(i.flags|=8),A.elements.push(i),n.slot,n.shadowRoot?bp(t,n.shadowRoot,i,a):!Vp(n)&&!b5(n)&&!Pp(n)&&bp(t,n,i,a))}},w5=(t,e)=>C2(e)?new Rp(t,e):U5(e)?new Dp(t,e):b5(e)?new Mp(t,e):DO(e)?new _p(t,e):MO(e)?new af(t,e):_O(e)?new ri(t,e):Pp(e)?new Gp(t,e):Vp(e)?new Kp(t,e):E5(e)?new zp(t,e):new on(t,e),v5=(t,e)=>{let A=w5(t,e);return A.flags|=4,bp(t,e,A,A),A},HO=(t,e,A)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||_2(t)&&A.styles.isTransparent(),RO=t=>t.isPositioned()||t.isFloating()?!0:It(t.display,268435456)||It(t.display,33554432)||It(t.display,536870912)||It(t.display,134217728),S5=t=>t.nodeType===Node.TEXT_NODE,Vl=t=>t.nodeType===Node.ELEMENT_NODE,B2=t=>Vl(t)&&typeof t.style<"u"&&!Up(t),Up=t=>typeof t.className=="object",DO=t=>t.tagName==="LI",MO=t=>t.tagName==="OL",_O=t=>t.tagName==="INPUT",OO=t=>t.tagName==="HTML",b5=t=>t.tagName==="svg",_2=t=>t.tagName==="BODY",U5=t=>t.tagName==="CANVAS",S3=t=>t.tagName==="VIDEO",C2=t=>t.tagName==="IMG",E5=t=>t.tagName==="IFRAME",XB=t=>t.tagName==="STYLE",b3=t=>t.tagName==="SCRIPT",Vp=t=>t.tagName==="TEXTAREA",Pp=t=>t.tagName==="SELECT",jc=t=>t.tagName==="SLOT",U3=t=>t.tagName.indexOf("-")>0,y2=class{constructor(){this.counters={}}getCounterValue(e){let A=this.counters[e];return A&&A.length?A[A.length-1]:1}getCounterValues(e){let A=this.counters[e];return A||[]}pop(e){e.forEach(A=>this.counters[A].pop())}parse(e){let A=e.counterIncrement,a=e.counterReset,n=!0;A!==null&&A.forEach(i=>{let s=this.counters[i.counter];s&&i.increment!==0&&(n=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=i.increment)});let l=[];return n&&a.forEach(i=>{let s=this.counters[i.counter];l.push(i.counter),s||(s=this.counters[i.counter]=[]),s.push(i.reset)}),l}},E3={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},L3={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},NO={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},GO={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Us=(t,e,A,a,n,l)=>t<e||t>A?nf(t,n,l.length>0):a.integers.reduce((i,s,c)=>{for(;t>=s;)t-=s,i+=a.values[c];return i},"")+l,L5=(t,e,A,a)=>{let n="";do A||t--,n=a(t)+n,t/=e;while(t*e>=e);return n},Xt=(t,e,A,a,n)=>{let l=A-e+1;return(t<0?"-":"")+(L5(Math.abs(t),l,a,i=>qt(Math.floor(i%l)+e))+n)},ei=(t,e,A=". ")=>{let a=e.length;return L5(Math.abs(t),a,!1,n=>e[Math.floor(n%a)])+A},Qs=1,Mr=2,_r=4,Zc=8,zl=(t,e,A,a,n,l)=>{if(t<-9999||t>9999)return nf(t,4,n.length>0);let i=Math.abs(t),s=n;if(i===0)return e[0]+s;for(let c=0;i>0&&c<=4;c++){let d=i%10;d===0&&It(l,Qs)&&s!==""?s=e[d]+s:d>1||d===1&&c===0||d===1&&c===1&&It(l,Mr)||d===1&&c===1&&It(l,_r)&&t>100||d===1&&c>1&&It(l,Zc)?s=e[d]+(c>0?A[c-1]:"")+s:d===1&&c>0&&(s=A[c-1]+s),i=Math.floor(i/10)}return(t<0?a:"")+s},Q3="\u5341\u767E\u5343\u842C",F3="\u62FE\u4F70\u4EDF\u842C",T3="\u30DE\u30A4\u30CA\u30B9",qB="\uB9C8\uC774\uB108\uC2A4",nf=(t,e,A)=>{let a=A?". ":"",n=A?"\u3001":"",l=A?", ":"",i=A?" ":"";switch(e){case 0:return"\u2022"+i;case 1:return"\u25E6"+i;case 2:return"\u25FE"+i;case 5:let s=Xt(t,48,57,!0,a);return s.length<4?`0${s}`:s;case 4:return ei(t,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",n);case 6:return Us(t,1,3999,E3,3,a).toLowerCase();case 7:return Us(t,1,3999,E3,3,a);case 8:return Xt(t,945,969,!1,a);case 9:return Xt(t,97,122,!1,a);case 10:return Xt(t,65,90,!1,a);case 11:return Xt(t,1632,1641,!0,a);case 12:case 49:return Us(t,1,9999,L3,3,a);case 35:return Us(t,1,9999,L3,3,a).toLowerCase();case 13:return Xt(t,2534,2543,!0,a);case 14:case 30:return Xt(t,6112,6121,!0,a);case 15:return ei(t,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",n);case 16:return ei(t,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",n);case 17:case 48:return zl(t,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Q3,"\u8CA0",n,Mr|_r|Zc);case 47:return zl(t,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",F3,"\u8CA0",n,Qs|Mr|_r|Zc);case 42:return zl(t,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Q3,"\u8D1F",n,Mr|_r|Zc);case 41:return zl(t,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",F3,"\u8D1F",n,Qs|Mr|_r|Zc);case 26:return zl(t,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",T3,n,0);case 25:return zl(t,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",T3,n,Qs|Mr|_r);case 31:return zl(t,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",qB,l,Qs|Mr|_r);case 33:return zl(t,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",qB,l,0);case 32:return zl(t,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",qB,l,Qs|Mr|_r);case 18:return Xt(t,2406,2415,!0,a);case 20:return Us(t,1,19999,GO,3,a);case 21:return Xt(t,2790,2799,!0,a);case 22:return Xt(t,2662,2671,!0,a);case 52:return Us(t,1,10999,NO,3,a);case 23:return ei(t,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return ei(t,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Xt(t,3302,3311,!0,a);case 28:return ei(t,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",n);case 29:return ei(t,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",n);case 34:return Xt(t,3792,3801,!0,a);case 37:return Xt(t,6160,6169,!0,a);case 38:return Xt(t,4160,4169,!0,a);case 39:return Xt(t,2918,2927,!0,a);case 40:return Xt(t,1776,1785,!0,a);case 43:return Xt(t,3046,3055,!0,a);case 44:return Xt(t,3174,3183,!0,a);case 45:return Xt(t,3664,3673,!0,a);case 46:return Xt(t,3872,3881,!0,a);default:return Xt(t,48,57,!0,a)}},x2="data-html2canvas-ignore",KO=t=>{let e=t;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;let A=e.getRootNode();if(A&&A!==e.ownerDocument&&A.host)return A;e=e.parentNode}return null},kp=class{constructor(e,A,a){if(this.context=e,this.options=a,this.scrolledElements=[],this.referenceElement=A,this.counters=new y2,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){let n=KO(A);n&&(this.options.iframeContainer=n)}this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}toIFrame(e,A){let a=zO(e,A,this.options.iframeContainer);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");let n=e.defaultView.pageXOffset,l=e.defaultView.pageYOffset,i=a.contentWindow,s=i.document,c=kO(a).then(async()=>{this.scrolledElements.forEach(YO),i&&(i.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(i.scrollY!==A.top||i.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-A.left,i.scrollY-A.top,0,0)));let p=this.options.onclone,m=this.clonedReferenceElement;return typeof m>"u"?Promise.reject(`Error finding the ${this.referenceElement.nodeName} in the cloned document`):(s.fonts&&s.fonts.ready&&await s.fonts.ready,/(AppleWebKit)/g.test(navigator.userAgent)&&await PO(s),typeof p=="function"?Promise.resolve().then(()=>p(s,m)).then(()=>a):a)}),d=s.baseURI;s.open();try{let p=trustedTypes.createPolicy("my-policy",{createHTML:y=>y}),m=I3(document.doctype)+"<html></html>",B=p.createHTML(m);s.write(B)}catch{s.write(I3(document.doctype)+"<html></html>")}qO(this.referenceElement.ownerDocument,n,l);let h=s.adoptNode(this.documentElement);return $O(h,d),s.replaceChild(h,s.documentElement),s.close(),c}createElementClone(e){if(p2(e,2))debugger;if(U5(e))return this.createCanvasClone(e);if(S3(e))return this.createVideoClone(e);if(XB(e))return this.createStyleClone(e);let A=e.cloneNode(!1);return C2(A)&&(C2(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),U3(A)?this.createCustomElementClone(A):A}createCustomElementClone(e){let A=document.createElement("div");if(A.className=e.className,YB(e.style,A),e.shadowRoot)try{A.attachShadow({mode:"open"})}catch(a){this.context.logger.error("Failed to attach shadow root to custom element clone:",a)}return A}createStyleClone(e){try{let a=e.sheet;if(a&&a.cssRules){let n=[].slice.call(a.cssRules,0).reduce((i,s)=>s&&typeof s.cssText=="string"?i+s.cssText:i,""),l=e.cloneNode(!1);return l.textContent=n,this.options.cspNonce&&(l.nonce=this.options.cspNonce),l}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}let A=e.cloneNode(!1);return this.options.cspNonce&&(A.nonce=this.options.cspNonce),A}createCanvasClone(e){if(this.options.inlineImages&&e.ownerDocument){let a=e.ownerDocument.createElement("img");try{return a.src=e.toDataURL(),a}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}let A=e.cloneNode(!1);try{A.width=e.width,A.height=e.height;let a=e.getContext("2d"),n=A.getContext("2d",{willReadFrequently:!0});if(n)if(!this.options.allowTaint&&a)n.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{let l=e.getContext("webgl2")??e.getContext("webgl");l&&l.getContextAttributes()?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e),n.drawImage(e,0,0)}return A}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return A}createVideoClone(e){let A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;let a=A.getContext("2d");try{return a&&(a.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||a.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}let n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n}appendChildNode(e,A,a){(!Vl(A)||!b3(A)&&!A.hasAttribute(x2)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!Vl(A)||!XB(A))&&e.appendChild(this.cloneNode(A,a))}shouldCloneChild(e){return!Vl(e)||!b3(e)&&!e.hasAttribute(x2)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e))}shouldCloneStyleElement(e){return!this.options.copyStyles||!Vl(e)||!XB(e)}safeAppendClonedChild(e,A,a){this.shouldCloneChild(A)&&this.shouldCloneStyleElement(A)&&e.appendChild(this.cloneNode(A,a))}cloneAssignedNodes(e,A,a){e.forEach(n=>{this.safeAppendClonedChild(A,n,a)})}cloneSlotFallbackContent(e,A,a){for(let n=e.firstChild;n;n=n.nextSibling)this.safeAppendClonedChild(A,n,a)}cloneSlotElement(e,A,a){if(!jc(e))return;let n=e;if(typeof n.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",e),this.cloneSlotFallbackContent(e,A,a);return}let l=n.assignedNodes();if(!l||!Array.isArray(l)){this.context.logger.warn("assignedNodes() did not return a valid array",e),this.cloneSlotFallbackContent(e,A,a);return}l.length>0?this.cloneAssignedNodes(l,A,a):this.cloneSlotFallbackContent(e,A,a)}cloneShadowDOMChildren(e,A,a){for(let n=e.firstChild;n;n=n.nextSibling)Vl(n)&&jc(n)?this.cloneSlotElement(n,A,a):this.safeAppendClonedChild(A,n,a)}cloneLightDOMChildren(e,A,a){for(let n=e.firstChild;n;n=n.nextSibling)this.appendChildNode(A,n,a)}cloneSlotElementAsLightDOM(e,A,a){if(!jc(e))return;let n=e;if(typeof n.assignedNodes!="function"){for(let i=e.firstChild;i;i=i.nextSibling)this.appendChildNode(A,i,a);return}let l=n.assignedNodes();if(l&&Array.isArray(l)&&l.length>0)l.forEach(i=>this.appendChildNode(A,i,a));else for(let i=e.firstChild;i;i=i.nextSibling)this.appendChildNode(A,i,a)}cloneShadowDOMAsLightDOM(e,A,a){for(let n=e.firstChild;n;n=n.nextSibling)Vl(n)&&jc(n)?this.cloneSlotElementAsLightDOM(n,A,a):this.appendChildNode(A,n,a)}cloneChildNodes(e,A,a){e.shadowRoot&&A.shadowRoot?(this.cloneShadowDOMChildren(e.shadowRoot,A.shadowRoot,a),this.cloneLightDOMChildren(e,A,a)):e.shadowRoot&&!A.shadowRoot?this.cloneShadowDOMAsLightDOM(e.shadowRoot,A,a):this.cloneLightDOMChildren(e,A,a)}cloneNode(e,A){if(S5(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);let a=e.ownerDocument.defaultView;if(a&&Vl(e)&&(B2(e)||Up(e))){let n=this.createElementClone(e);n.style.transitionProperty="none";let l=a.getComputedStyle(e),i=a.getComputedStyle(e,":before"),s=a.getComputedStyle(e,":after");this.referenceElement===e&&B2(n)&&(this.clonedReferenceElement=n),_2(n)&&JO(n,this.options.cspNonce);let c=this.counters.parse(new Hp(this.context,l)),d=this.resolvePseudoContent(e,n,i,$c.BEFORE);U3(e)&&(A=!0),S3(e)||this.cloneChildNodes(e,n,A),d&&n.insertBefore(d,n.firstChild);let h=this.resolvePseudoContent(e,n,s,$c.AFTER);return h&&n.appendChild(h),this.counters.pop(c),(l&&(this.options.copyStyles||Up(e))&&!E5(e)||A)&&YB(l,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Vp(e)||Pp(e))&&(Vp(n)||Pp(n))&&(n.value=e.value),n}return e.cloneNode(!1)}resolvePseudoContent(e,A,a,n){if(!a)return;let l=a.content,i=A.ownerDocument;if(!i||!l||l==="none"||l==="-moz-alt-content"||a.display==="none")return;this.counters.parse(new Hp(this.context,a));let s=new h2(this.context,a),c=i.createElement("html2canvaspseudoelement");YB(a,c),s.content.forEach(h=>{if(h.type===0)c.appendChild(i.createTextNode(h.value));else if(h.type===22){let p=i.createElement("img");p.src=h.value,p.style.opacity="1",c.appendChild(p)}else if(h.type===18){if(h.name==="attr"){let p=h.values.filter(Re);p.length&&c.appendChild(i.createTextNode(e.getAttribute(p[0].value)||""))}else if(h.name==="counter"){let[p,m]=h.values.filter(DA);if(p&&Re(p)){let B=this.counters.getCounterValue(p.value),y=m&&Re(m)?f2.parse(this.context,m.value):3;c.appendChild(i.createTextNode(nf(B,y,!1)))}}else if(h.name==="counters"){let[p,m,B]=h.values.filter(DA);if(p&&Re(p)){let y=this.counters.getCounterValues(p.value),v=B&&Re(B)?f2.parse(this.context,B.value):3,b=m&&m.type===0?m.value:"",w=y.map(x=>nf(x,v,!1)).join(b);c.appendChild(i.createTextNode(w))}}}else if(h.type===20)switch(h.value){case"open-quote":c.appendChild(i.createTextNode(s3(s.quotes,this.quoteDepth++,!0)));break;case"close-quote":c.appendChild(i.createTextNode(s3(s.quotes,--this.quoteDepth,!1)));break;default:c.appendChild(i.createTextNode(h.value))}}),c.className=`${w2} ${v2}`;let d=n===$c.BEFORE?` ${w2}`:` ${v2}`;return Up(A)?A.className.baseValue+=d:A.className+=d,c}static destroy(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1}},$c;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})($c||($c={}));var zO=(t,e,A)=>{let a=t.createElement("iframe");return a.className="html2canvas-container",a.style.visibility="hidden",a.style.position="fixed",a.style.left="-10000px",a.style.top="0px",a.style.border="0",a.width=e.width.toString(),a.height=e.height.toString(),a.scrolling="no",a.setAttribute(x2,"true"),(A||t.body).appendChild(a),a},VO=t=>new Promise(e=>{if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e}),PO=t=>Promise.all([].slice.call(t.images,0).map(VO)),kO=t=>new Promise((e,A)=>{let a=t.contentWindow;if(!a)return A("No window assigned for iframe");let n=a.document;a.onload=t.onload=()=>{a.onload=t.onload=null;let l=setInterval(()=>{n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(l),e(t))},50)}}),XO=["all","d","content"],YB=(t,e)=>{for(let A=t.length-1;A>=0;A--){let a=t.item(A);XO.indexOf(a)===-1&&!a.startsWith("--")&&e.style.setProperty(a,t.getPropertyValue(a))}return e},I3=t=>{let e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+=`"${t.publicId}"`),t.systemId&&(e+=`"${t.systemId}"`),e+=">"),e},qO=(t,e,A)=>{t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},YO=([t,e,A])=>{t.scrollLeft=e,t.scrollTop=A},jO=":before",ZO=":after",w2="___html2canvas___pseudoelement_before",v2="___html2canvas___pseudoelement_after",H3=`{
|
|
133
|
+
content: "" !important;
|
|
134
|
+
display: none !important;
|
|
135
|
+
}`,JO=(t,e)=>{WO(t,`.${w2}${jO}${H3}
|
|
136
|
+
.${v2}${ZO}${H3}`,e)},WO=(t,e,A)=>{let a=t.ownerDocument;if(a){let n=a.createElement("style");n.textContent=e,A&&(n.nonce=A),t.appendChild(n)}},$O=(t,e)=>{let A=t.ownerDocument.createElement("base");A.href=e;let a=t.getElementsByTagName("head").item(0);a?.insertBefore(A,a?.firstChild??null)},Ds=class t{static getOrigin(e){let A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"}static isSameOrigin(e){return t.getOrigin(e)===t._origin}static setContext(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)}};Ds._origin="about:blank";var S2=class{constructor(e,A){this.context=e,this._options=A,this._cache={}}addImage(e){let A=Promise.resolve();return this.has(e)||(ZB(e)||aN(e))&&(this._cache[e]=this.loadImage(e)).catch(()=>{}),A}match(e){return this._cache[e]}async loadImage(e){let A=typeof this._options.customIsSameOrigin=="function"?await this._options.customIsSameOrigin(e,Ds.isSameOrigin):Ds.isSameOrigin(e),a=!jB(e)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!A,n=!jB(e)&&!A&&!ZB(e)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!a;if(!A&&this._options.allowTaint===!1&&!jB(e)&&!ZB(e)&&!n&&!a)return;let l=e;return n&&(l=await this.proxy(l)),this.context.logger.debug(`Added image ${e.substring(0,256)}`),await new Promise((i,s)=>{let c=new Image;c.onload=()=>i(c),c.onerror=s,(nN(l)||a)&&(c.crossOrigin="anonymous"),c.src=l,c.complete===!0&&setTimeout(()=>i(c),500),this._options.imageTimeout>0&&setTimeout(()=>s(`Timed out (${this._options.imageTimeout}ms) loading image`),this._options.imageTimeout)})}has(e){return typeof this._cache[e]<"u"}keys(){return Promise.resolve(Object.keys(this._cache))}proxy(e){let A=this._options.proxy;if(!A)throw new Error("No proxy defined");let a=e.substring(0,256);return new Promise((n,l)=>{let i=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=()=>{if(s.status===200)if(i==="text")n(s.response);else{let d=new FileReader;d.addEventListener("load",()=>n(d.result),!1),d.addEventListener("error",h=>l(h),!1),d.readAsDataURL(s.response)}else l(`Failed to proxy resource ${a} with status code ${s.status}`)},s.onerror=l;let c=A.indexOf("?")>-1?"&":"?";if(s.open("GET",`${A}${c}url=${encodeURIComponent(e)}&responseType=${i}`),i!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=i),this._options.imageTimeout){let d=this._options.imageTimeout;s.timeout=d,s.ontimeout=()=>l(`Timed out (${d}ms) proxying ${a}`)}s.send()})}},eN=/^data:image\/svg\+xml/i,tN=/^data:image\/.*;base64,/i,AN=/^data:image\/.*/i,aN=t=>HA.SUPPORT_SVG_DRAWING||!lN(t),jB=t=>AN.test(t),nN=t=>tN.test(t),ZB=t=>t.substr(0,4)==="blob",lN=t=>t.substr(-3).toLowerCase()==="svg"||eN.test(t),ne=class t{constructor(e,A){this.type=0,this.x=e,this.y=A}add(e,A){return new t(this.x+e,this.y+A)}},Es=(t,e,A)=>new ne(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A),Ts=class t{constructor(e,A,a,n){this.type=1,this.start=e,this.startControl=A,this.endControl=a,this.end=n}subdivide(e,A){let a=Es(this.start,this.startControl,e),n=Es(this.startControl,this.endControl,e),l=Es(this.endControl,this.end,e),i=Es(a,n,e),s=Es(n,l,e),c=Es(i,s,e);return A?new t(this.start,a,i,c):new t(c,s,l,this.end)}add(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))}reverse(){return new t(this.end,this.endControl,this.startControl,this.start)}},nn=t=>t.type===1,b2=class{constructor(e){let A=e.styles,a=e.bounds,[n,l]=qc(A.borderTopLeftRadius,a.width,a.height),[i,s]=qc(A.borderTopRightRadius,a.width,a.height),[c,d]=qc(A.borderBottomRightRadius,a.width,a.height),[h,p]=qc(A.borderBottomLeftRadius,a.width,a.height),m=[];m.push((n+i)/a.width),m.push((h+c)/a.width),m.push((l+p)/a.height),m.push((s+d)/a.height);let B=Math.max(...m);B>1&&(n/=B,l/=B,i/=B,s/=B,c/=B,d/=B,h/=B,p/=B);let y=a.width-i,v=a.height-d,b=a.width-c,w=a.height-p,x=A.borderTopWidth,S=A.borderRightWidth,U=A.borderBottomWidth,L=A.borderLeftWidth,F=Pe(A.paddingTop,e.bounds.width),T=Pe(A.paddingRight,e.bounds.width),M=Pe(A.paddingBottom,e.bounds.width),D=Pe(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||l>0?St(a.left+L/3,a.top+x/3,n-L/3,l-x/3,We.TOP_LEFT):new ne(a.left+L/3,a.top+x/3),this.topRightBorderDoubleOuterBox=n>0||l>0?St(a.left+y,a.top+x/3,i-S/3,s-x/3,We.TOP_RIGHT):new ne(a.left+a.width-S/3,a.top+x/3),this.bottomRightBorderDoubleOuterBox=c>0||d>0?St(a.left+b,a.top+v,c-S/3,d-U/3,We.BOTTOM_RIGHT):new ne(a.left+a.width-S/3,a.top+a.height-U/3),this.bottomLeftBorderDoubleOuterBox=h>0||p>0?St(a.left+L/3,a.top+w,h-L/3,p-U/3,We.BOTTOM_LEFT):new ne(a.left+L/3,a.top+a.height-U/3),this.topLeftBorderDoubleInnerBox=n>0||l>0?St(a.left+L*2/3,a.top+x*2/3,n-L*2/3,l-x*2/3,We.TOP_LEFT):new ne(a.left+L*2/3,a.top+x*2/3),this.topRightBorderDoubleInnerBox=n>0||l>0?St(a.left+y,a.top+x*2/3,i-S*2/3,s-x*2/3,We.TOP_RIGHT):new ne(a.left+a.width-S*2/3,a.top+x*2/3),this.bottomRightBorderDoubleInnerBox=c>0||d>0?St(a.left+b,a.top+v,c-S*2/3,d-U*2/3,We.BOTTOM_RIGHT):new ne(a.left+a.width-S*2/3,a.top+a.height-U*2/3),this.bottomLeftBorderDoubleInnerBox=h>0||p>0?St(a.left+L*2/3,a.top+w,h-L*2/3,p-U*2/3,We.BOTTOM_LEFT):new ne(a.left+L*2/3,a.top+a.height-U*2/3),this.topLeftBorderStroke=n>0||l>0?St(a.left+L/2,a.top+x/2,n-L/2,l-x/2,We.TOP_LEFT):new ne(a.left+L/2,a.top+x/2),this.topRightBorderStroke=n>0||l>0?St(a.left+y,a.top+x/2,i-S/2,s-x/2,We.TOP_RIGHT):new ne(a.left+a.width-S/2,a.top+x/2),this.bottomRightBorderStroke=c>0||d>0?St(a.left+b,a.top+v,c-S/2,d-U/2,We.BOTTOM_RIGHT):new ne(a.left+a.width-S/2,a.top+a.height-U/2),this.bottomLeftBorderStroke=h>0||p>0?St(a.left+L/2,a.top+w,h-L/2,p-U/2,We.BOTTOM_LEFT):new ne(a.left+L/2,a.top+a.height-U/2),this.topLeftBorderBox=n>0||l>0?St(a.left,a.top,n,l,We.TOP_LEFT):new ne(a.left,a.top),this.topRightBorderBox=i>0||s>0?St(a.left+y,a.top,i,s,We.TOP_RIGHT):new ne(a.left+a.width,a.top),this.bottomRightBorderBox=c>0||d>0?St(a.left+b,a.top+v,c,d,We.BOTTOM_RIGHT):new ne(a.left+a.width,a.top+a.height),this.bottomLeftBorderBox=h>0||p>0?St(a.left,a.top+w,h,p,We.BOTTOM_LEFT):new ne(a.left,a.top+a.height),this.topLeftPaddingBox=n>0||l>0?St(a.left+L,a.top+x,Math.max(0,n-L),Math.max(0,l-x),We.TOP_LEFT):new ne(a.left+L,a.top+x),this.topRightPaddingBox=i>0||s>0?St(a.left+Math.min(y,a.width-S),a.top+x,y>a.width+S?0:Math.max(0,i-S),Math.max(0,s-x),We.TOP_RIGHT):new ne(a.left+a.width-S,a.top+x),this.bottomRightPaddingBox=c>0||d>0?St(a.left+Math.min(b,a.width-L),a.top+Math.min(v,a.height-U),Math.max(0,c-S),Math.max(0,d-U),We.BOTTOM_RIGHT):new ne(a.left+a.width-S,a.top+a.height-U),this.bottomLeftPaddingBox=h>0||p>0?St(a.left+L,a.top+Math.min(w,a.height-U),Math.max(0,h-L),Math.max(0,p-U),We.BOTTOM_LEFT):new ne(a.left+L,a.top+a.height-U),this.topLeftContentBox=n>0||l>0?St(a.left+L+D,a.top+x+F,Math.max(0,n-(L+D)),Math.max(0,l-(x+F)),We.TOP_LEFT):new ne(a.left+L+D,a.top+x+F),this.topRightContentBox=i>0||s>0?St(a.left+Math.min(y,a.width+L+D),a.top+x+F,y>a.width+L+D?0:i-L+D,s-(x+F),We.TOP_RIGHT):new ne(a.left+a.width-(S+T),a.top+x+F),this.bottomRightContentBox=c>0||d>0?St(a.left+Math.min(b,a.width-(L+D)),a.top+Math.min(v,a.height+x+F),Math.max(0,c-(S+T)),d-(U+M),We.BOTTOM_RIGHT):new ne(a.left+a.width-(S+T),a.top+a.height-(U+M)),this.bottomLeftContentBox=h>0||p>0?St(a.left+L+D,a.top+w,Math.max(0,h-(L+D)),p-(U+M),We.BOTTOM_LEFT):new ne(a.left+L+D,a.top+a.height-(U+M))}},We;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(We||(We={}));var St=(t,e,A,a,n)=>{let l=4*((Math.sqrt(2)-1)/3),i=A*l,s=a*l,c=t+A,d=e+a;switch(n){case We.TOP_LEFT:return new Ts(new ne(t,d),new ne(t,d-s),new ne(c-i,e),new ne(c,e));case We.TOP_RIGHT:return new Ts(new ne(t,e),new ne(t+i,e),new ne(c,d-s),new ne(c,d));case We.BOTTOM_RIGHT:return new Ts(new ne(c,e),new ne(c,e+s),new ne(t+i,d),new ne(t,d));case We.BOTTOM_LEFT:default:return new Ts(new ne(c,d),new ne(c-i,d),new ne(t,e+s),new ne(t,e))}},Xp=t=>[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox],rN=t=>[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox],qp=t=>[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox],Yp=class{constructor(e,A,a){this.offsetX=e,this.offsetY=A,this.matrix=a,this.type=0,this.target=6}},Is=class{constructor(e,A){this.path=e,this.target=A,this.type=1}},U2=class{constructor(e){this.opacity=e,this.type=2,this.target=6}},oN=t=>t.type===0,Q5=t=>t.type===1,iN=t=>t.type===2,R3=(t,e)=>t.length===e.length?t.some((A,a)=>A===e[a]):!1,sN=(t,e,A,a,n)=>t.map((l,i)=>{switch(i){case 0:return l.add(e,A);case 1:return l.add(e+a,A);case 2:return l.add(e+a,A+n);case 3:return l.add(e,A+n)}return l}),jp=class{constructor(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}},Zp=class{constructor(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new b2(this.container),this.container.styles.opacity<1&&this.effects.push(new U2(this.container.styles.opacity)),this.container.styles.rotate!==null){let a=this.container.styles.transformOrigin,n=this.container.bounds.left+Pe(a[0],this.container.bounds.width),l=this.container.bounds.top+Pe(a[1],this.container.bounds.height),s=this.container.styles.rotate*Math.PI/180,c=Math.cos(s),d=Math.sin(s),h=[c,d,-d,c,0,0];this.effects.push(new Yp(n,l,h))}if(this.container.styles.transform!==null){let a=this.container.styles.transformOrigin,n=this.container.bounds.left+Pe(a[0],this.container.bounds.width),l=this.container.bounds.top+Pe(a[1],this.container.bounds.height),i=this.container.styles.transform;this.effects.push(new Yp(n,l,i))}if(this.container.styles.overflowX!==0){let a=Xp(this.curves),n=qp(this.curves);R3(a,n)?this.effects.push(new Is(a,6)):(this.effects.push(new Is(a,2)),this.effects.push(new Is(n,4)))}}getEffects(e){let A=[2,3].indexOf(this.container.styles.position)===-1,a=this.parent,n=this.effects.slice(0);for(;a;){let l=a.effects.filter(i=>!Q5(i));if(A||a.container.styles.position!==0||!a.parent){if(A=[2,3].indexOf(a.container.styles.position)===-1,a.container.styles.overflowX!==0){let i=Xp(a.curves),s=qp(a.curves);R3(i,s)||n.unshift(new Is(s,6))}n.unshift(...l)}else n.unshift(...l);a=a.parent}return n.filter(l=>It(l.target,e))}},E2=(t,e,A,a)=>{t.container.elements.forEach(n=>{let l=It(n.flags,4),i=It(n.flags,2),s=new Zp(n,t);It(n.styles.display,2048)&&a.push(s);let c=It(n.flags,8)?[]:a;if(l||i){let d=l||n.styles.isPositioned()?A:e,h=new jp(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){let p=n.styles.zIndex.order;if(p<0){let m=0;d.negativeZIndex.some((B,y)=>p>B.element.container.styles.zIndex.order?(m=y,!1):m>0),d.negativeZIndex.splice(m,0,h)}else if(p>0){let m=0;d.positiveZIndex.some((B,y)=>p>=B.element.container.styles.zIndex.order?(m=y+1,!1):m>0),d.positiveZIndex.splice(m,0,h)}else d.zeroOrAutoZIndexOrTransformedOrOpacity.push(h)}else n.styles.isFloating()?d.nonPositionedFloats.push(h):d.nonPositionedInlineLevel.push(h);E2(s,h,l?h:A,c)}else n.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),E2(s,e,A,c);It(n.flags,8)&&F5(n,c)})},F5=(t,e)=>{let A=t instanceof af?t.start:1,a=t instanceof af?t.reversed:!1;for(let n=0;n<e.length;n++){let l=e[n];l.container instanceof _p&&typeof l.container.value=="number"&&l.container.value!==0&&(A=l.container.value),l.listValue=nf(A,l.container.styles.listStyleType,!0),A+=a?-1:1}},uN=t=>{let e=new Zp(t,null),A=new jp(e),a=[];return E2(e,A,A,a),F5(e.container,a),A},D3=(t,e)=>{switch(e){case 0:return rn(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return rn(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return rn(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return rn(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},cN=(t,e)=>{switch(e){case 0:return rn(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return rn(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return rn(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return rn(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},fN=(t,e)=>{switch(e){case 0:return rn(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return rn(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return rn(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return rn(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},dN=(t,e)=>{switch(e){case 0:return xp(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return xp(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return xp(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return xp(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},xp=(t,e)=>{let A=[];return nn(t)?A.push(t.subdivide(.5,!1)):A.push(t),nn(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},rn=(t,e,A,a)=>{let n=[];return nn(t)?n.push(t.subdivide(.5,!1)):n.push(t),nn(A)?n.push(A.subdivide(.5,!0)):n.push(A),nn(a)?n.push(a.subdivide(.5,!0).reverse()):n.push(a),nn(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},T5=t=>{let e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},ef=t=>{let e=t.styles,A=t.bounds,a=Pe(e.paddingLeft,A.width),n=Pe(e.paddingRight,A.width),l=Pe(e.paddingTop,A.width),i=Pe(e.paddingBottom,A.width);return A.add(a+e.borderLeftWidth,l+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+a+n),-(e.borderTopWidth+e.borderBottomWidth+l+i))},hN=(t,e)=>t===0?e.bounds:t===2?ef(e):T5(e),pN=(t,e)=>t===0?e.bounds:t===2?ef(e):T5(e),JB=(t,e,A)=>{let a=hN(Fs(t.styles.backgroundOrigin,e),t),n=pN(Fs(t.styles.backgroundClip,e),t),l=mN(Fs(t.styles.backgroundSize,e),A,a),[i,s]=l,c=qc(Fs(t.styles.backgroundPosition,e),a.width-i,a.height-s),d=gN(Fs(t.styles.backgroundRepeat,e),c,l,a,n),h=Math.round(a.left+c[0]),p=Math.round(a.top+c[1]);return i=Math.max(1,i),s=Math.max(1,s),[d,h,p,i,s]},Ls=t=>Re(t)&&t.value===Rs.AUTO,wp=t=>typeof t=="number",mN=(t,[e,A,a],n)=>{let[l,i]=t;if(!l)return[0,0];if(mt(l)&&i&&mt(i))return[Pe(l,n.width),Pe(i,n.height)];let s=wp(a);if(Re(l)&&(l.value===Rs.CONTAIN||l.value===Rs.COVER))return wp(a)?n.width/n.height<a!=(l.value===Rs.COVER)?[n.width,n.width/a]:[n.height*a,n.height]:[n.width,n.height];let c=wp(e),d=wp(A),h=c||d;if(Ls(l)&&(!i||Ls(i))){if(c&&d)return[e,A];if(!s&&!h)return[n.width,n.height];if(h&&s){let v=c?e:A*a,b=d?A:e/a;return[v,b]}let B=c?e:n.width,y=d?A:n.height;return[B,y]}if(s){let B=0,y=0;return mt(l)?B=Pe(l,n.width):mt(i)&&(y=Pe(i,n.height)),Ls(l)?B=y*a:(!i||Ls(i))&&(y=B/a),[B,y]}let p=null,m=null;if(mt(l)?p=Pe(l,n.width):i&&mt(i)&&(m=Pe(i,n.height)),p!==null&&(!i||Ls(i))&&(m=c&&d?p/e*A:n.height),m!==null&&Ls(l)&&(p=c&&d?m/A*e:n.width),p!==null&&m!==null)return[p,m];throw new Error("Unable to calculate background-size for element")},Fs=(t,e)=>{let A=t[e];return typeof A>"u"?t[0]:A},gN=(t,[e,A],[a,n],l,i)=>{switch(t){case 2:return[new ne(Math.round(l.left),Math.round(l.top+A)),new ne(Math.round(l.left+l.width),Math.round(l.top+A)),new ne(Math.round(l.left+l.width),Math.round(n+l.top+A)),new ne(Math.round(l.left),Math.round(n+l.top+A))];case 3:return[new ne(Math.round(l.left+e),Math.round(l.top)),new ne(Math.round(l.left+e+a),Math.round(l.top)),new ne(Math.round(l.left+e+a),Math.round(l.height+l.top)),new ne(Math.round(l.left+e),Math.round(l.height+l.top))];case 1:return[new ne(Math.round(l.left+e),Math.round(l.top+A)),new ne(Math.round(l.left+e+a),Math.round(l.top+A)),new ne(Math.round(l.left+e+a),Math.round(l.top+A+n)),new ne(Math.round(l.left+e),Math.round(l.top+A+n))];default:return[new ne(Math.round(i.left),Math.round(i.top)),new ne(Math.round(i.left+i.width),Math.round(i.top)),new ne(Math.round(i.left+i.width),Math.round(i.height+i.top)),new ne(Math.round(i.left),Math.round(i.height+i.top))]}},BN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",M3="Hidden Text",L2=class{constructor(e){this._data={},this._document=e}parseMetrics(e,A){let a=this._document.createElement("div"),n=this._document.createElement("img"),l=this._document.createElement("span"),i=this._document.body;a.style.visibility="hidden",a.style.fontFamily=e,a.style.fontSize=A,a.style.margin="0",a.style.padding="0",a.style.whiteSpace="nowrap",i.appendChild(a),n.src=BN,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",l.style.fontFamily=e,l.style.fontSize=A,l.style.margin="0",l.style.padding="0",l.appendChild(this._document.createTextNode(M3)),a.appendChild(l),a.appendChild(n);let s=n.offsetTop-l.offsetTop+2;a.removeChild(l),a.appendChild(this._document.createTextNode(M3)),a.style.lineHeight="normal",n.style.verticalAlign="super";let c=n.offsetTop-a.offsetTop+2;return i.removeChild(a),{baseline:s,middle:c}}getMetrics(e,A){let a=`${e} ${A}`;return typeof this._data[a]>"u"&&(this._data[a]=this.parseMetrics(e,A)),this._data[a]}},Jp=class{constructor(e,A){this.context=e,this.options=A}},CN=1e4,Q2=class t extends Jp{constructor(e,A){super(e,A),this._activeEffects=[],this.canvas=A.canvas?A.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),A.canvas||(this.canvas.width=Math.floor(A.width*A.scale),this.canvas.height=Math.floor(A.height*A.scale),this.canvas.style.width=`${A.width}px`,this.canvas.style.height=`${A.height}px`),this.fontMetrics=new L2(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-A.x,-A.y),this.ctx.textBaseline="bottom",this._activeEffects=[],this.context.logger.debug(`Canvas renderer initialized (${A.width}x${A.height}) with scale ${A.scale}`)}applyEffects(e){for(;this._activeEffects.length;)this.popEffect();e.forEach(A=>this.applyEffect(A))}applyEffect(e){this.ctx.save(),iN(e)&&(this.ctx.globalAlpha=e.opacity),oN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Q5(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)}popEffect(){this._activeEffects.pop(),this.ctx.restore()}async renderStack(e){e.element.container.styles.isVisible()&&await this.renderStackContent(e)}async renderNode(e){if(It(e.container.flags,16))debugger;e.container.styles.isVisible()&&(await this.renderNodeBackgroundAndBorders(e),await this.renderNodeContent(e))}renderTextWithLetterSpacing(e,A,a){A===0?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+a):il(e.text).reduce((l,i)=>(this.ctx.fillText(i,l,e.bounds.top+a),l+this.ctx.measureText(i).width),e.bounds.left)}renderTextBoundWithPaintOrder(e,A,a){a.forEach(n=>{switch(n){case 0:this.ctx.fillStyle=ct(A.color),this.renderTextWithLetterSpacing(e,A.letterSpacing,A.fontSize.number);break;case 1:A.webkitTextStrokeWidth&&e.text.trim().length&&(this.ctx.strokeStyle=ct(A.webkitTextStrokeColor),this.ctx.lineWidth=A.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",this.renderTextWithLetterSpacing(e,A.letterSpacing,A.fontSize.number));break}})}renderTextDecoration(e,A){this.ctx.fillStyle=ct(A.textDecorationColor||A.color);let a=1;typeof A.textDecorationThickness=="number"?a=A.textDecorationThickness:A.textDecorationThickness==="from-font"&&(a=Math.max(1,Math.floor(A.fontSize.number*.05)));let n=0;typeof A.textUnderlineOffset=="number"&&(n=A.textUnderlineOffset);let l=A.textDecorationStyle;A.textDecorationLine.forEach(i=>{let s=0;switch(i){case 1:s=e.top+e.height-a+n;break;case 2:s=e.top;break;case 3:s=e.top+(e.height/2-a/2);break;default:return}this.drawDecorationLine(e.left,s,e.width,a,l)})}drawDecorationLine(e,A,a,n,l){switch(l){case 0:this.ctx.fillRect(e,A,a,n);break;case 1:let i=Math.max(1,n);this.ctx.fillRect(e,A,a,n),this.ctx.fillRect(e,A+n+i,a,n);break;case 2:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([n,n*2]),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(e,A+n/2),this.ctx.lineTo(e+a,A+n/2),this.ctx.stroke(),this.ctx.restore();break;case 3:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([n*3,n*2]),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(e,A+n/2),this.ctx.lineTo(e+a,A+n/2),this.ctx.stroke(),this.ctx.restore();break;case 4:this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle;let s=n*2,c=n*4,d=e;for(this.ctx.moveTo(d,A+n/2);d<e+a;){let h=Math.min(d+c/2,e+a);if(this.ctx.quadraticCurveTo(d+c/4,A+n/2-s,h,A+n/2),d=h,d<e+a){let p=Math.min(d+c/2,e+a);this.ctx.quadraticCurveTo(d+c/4,A+n/2+s,p,A+n/2),d=p}}this.ctx.stroke(),this.ctx.restore();break;default:this.ctx.fillRect(e,A,a,n)}}truncateTextWithEllipsis(e,A,a){let l=this.ctx.measureText("...").width;if(a===0){let i=e;for(;this.ctx.measureText(i).width+l>A&&i.length>0;)i=i.slice(0,-1);return i+"..."}else{let i=il(e),s=l,c=[];for(let d of i){let h=this.ctx.measureText(d).width+a;if(s+h>A)break;c.push(d),s+=h}return c.join("")+"..."}}createFontStyle(e){let A=e.fontVariant.filter(l=>l==="normal"||l==="small-caps").join(""),a=SN(e.fontFamily).join(", "),n=ul(e.fontSize)?`${e.fontSize.number}${e.fontSize.unit}`:`${e.fontSize.number}px`;return[[e.fontStyle,A,e.fontWeight,n,a].join(" "),a,n]}async renderTextNode(e,A,a){let[n]=this.createFontStyle(A);this.ctx.font=n,this.ctx.direction=A.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";let l=A.paintOrder,i=A.fontSize.number*1.5;if(A.webkitLineClamp>0&&(A.display&2)!==0&&A.overflowY===1&&e.textBounds.length>0){let p=[],m=[],B=e.textBounds[0].bounds.top;e.textBounds.forEach(v=>{Math.abs(v.bounds.top-B)>=i*.5?(m.length>0&&p.push(m),m=[v],B=v.bounds.top):m.push(v)}),m.length>0&&p.push(m);let y=A.webkitLineClamp;if(p.length>y){for(let b=0;b<y-1;b++)p[b].forEach(w=>{this.renderTextBoundWithPaintOrder(w,A,l)});let v=p[y-1];if(v&&v.length>0&&a){let b=v.map(U=>U.text).join(""),w=v[0],x=a.width-(w.bounds.left-a.left),S=this.truncateTextWithEllipsis(b,x,A.letterSpacing);l.forEach(U=>{switch(U){case 0:this.ctx.fillStyle=ct(A.color),A.letterSpacing===0?this.ctx.fillText(S,w.bounds.left,w.bounds.top+A.fontSize.number):il(S).reduce((F,T)=>(this.ctx.fillText(T,F,w.bounds.top+A.fontSize.number),F+this.ctx.measureText(T).width+A.letterSpacing),w.bounds.left);break;case 1:A.webkitTextStrokeWidth&&S.trim().length&&(this.ctx.strokeStyle=ct(A.webkitTextStrokeColor),this.ctx.lineWidth=A.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",A.letterSpacing===0?this.ctx.strokeText(S,w.bounds.left,w.bounds.top+A.fontSize.number):il(S).reduce((F,T)=>(this.ctx.strokeText(T,F,w.bounds.top+A.fontSize.number),F+this.ctx.measureText(T).width+A.letterSpacing),w.bounds.left));break}})}return}}let c=A.textOverflow===1&&a&&A.overflowX===1&&e.textBounds.length>0,d=!1,h="";if(c){let p=e.textBounds[0].bounds.top;if(e.textBounds.every(B=>Math.abs(B.bounds.top-p)<i*.5)){let B=e.textBounds.map(b=>b.text).join("");B=B.replace(/\s+/g," ").trim();let y=this.ctx.measureText(B).width,v=a.width;y>v&&(d=!0,h=this.truncateTextWithEllipsis(B,v,A.letterSpacing))}}if(d){let p=e.textBounds[0];l.forEach(m=>{switch(m){case 0:this.ctx.fillStyle=ct(A.color),A.letterSpacing===0?this.ctx.fillText(h,p.bounds.left,p.bounds.top+A.fontSize.number):il(h).reduce((v,b)=>(this.ctx.fillText(b,v,p.bounds.top+A.fontSize.number),v+this.ctx.measureText(b).width+A.letterSpacing),p.bounds.left);let B=A.textShadow;B.length&&h.trim().length&&(B.slice(0).reverse().forEach(y=>{this.ctx.shadowColor=ct(y.color),this.ctx.shadowOffsetX=y.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=y.offsetY.number*this.options.scale,this.ctx.shadowBlur=y.blur.number,A.letterSpacing===0?this.ctx.fillText(h,p.bounds.left,p.bounds.top+A.fontSize.number):il(h).reduce((b,w)=>(this.ctx.fillText(w,b,p.bounds.top+A.fontSize.number),b+this.ctx.measureText(w).width+A.letterSpacing),p.bounds.left)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0);break;case 1:A.webkitTextStrokeWidth&&h.trim().length&&(this.ctx.strokeStyle=ct(A.webkitTextStrokeColor),this.ctx.lineWidth=A.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",A.letterSpacing===0?this.ctx.strokeText(h,p.bounds.left,p.bounds.top+A.fontSize.number):il(h).reduce((v,b)=>(this.ctx.strokeText(b,v,p.bounds.top+A.fontSize.number),v+this.ctx.measureText(b).width+A.letterSpacing),p.bounds.left));break}});return}e.textBounds.forEach(p=>{l.forEach(m=>{switch(m){case 0:this.ctx.fillStyle=ct(A.color),this.renderTextWithLetterSpacing(p,A.letterSpacing,A.fontSize.number);let B=A.textShadow;B.length&&p.text.trim().length&&(B.slice(0).reverse().forEach(y=>{this.ctx.shadowColor=ct(y.color),this.ctx.shadowOffsetX=y.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=y.offsetY.number*this.options.scale,this.ctx.shadowBlur=y.blur.number,this.renderTextWithLetterSpacing(p,A.letterSpacing,A.fontSize.number)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0),A.textDecorationLine.length&&this.renderTextDecoration(p.bounds,A);break;case 1:if(A.webkitTextStrokeWidth&&p.text.trim().length){this.ctx.strokeStyle=ct(A.webkitTextStrokeColor),this.ctx.lineWidth=A.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round";let y=A.fontSize.number;A.letterSpacing===0?this.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+y):il(p.text).reduce((b,w)=>(this.ctx.strokeText(w,b,p.bounds.top+y),b+this.ctx.measureText(w).width),p.bounds.left)}this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter";break}})})}renderReplacedElement(e,A,a){let n=a.naturalWidth||e.intrinsicWidth,l=a.naturalHeight||e.intrinsicHeight;if(a&&n>0&&l>0){let i=ef(e),s=qp(A);this.path(s),this.ctx.save(),this.ctx.clip();let c=0,d=0,h=n,p=l,m=i.left,B=i.top,y=i.width,v=i.height,{objectFit:b}=e.styles,w=y/v,x=h/p;if(b===2)x>w?(v=y/x,B+=(i.height-v)/2):(y=v*x,m+=(i.width-y)/2);else if(b===4)x>w?(h=p*w,c+=(n-h)/2):(p=h/w,d+=(l-p)/2);else if(b===8)h>y?(c+=(h-y)/2,h=y):(m+=(y-h)/2,y=h),p>v?(d+=(p-v)/2,p=v):(B+=(v-p)/2,v=p);else if(b===16){let S=x>w?y:v*x,U=h>y?h:y;S<U?x>w?(v=y/x,B+=(i.height-v)/2):(y=v*x,m+=(i.width-y)/2):(h>y?(c+=(h-y)/2,h=y):(m+=(y-h)/2,y=h),p>v?(d+=(p-v)/2,p=v):(B+=(v-p)/2,v=p))}this.ctx.drawImage(a,c,d,h,p,m,B,y,v),this.ctx.restore()}}async renderNodeContent(e){this.applyEffects(e.getEffects(4));let A=e.container,a=e.curves,n=A.styles,l=ef(A);for(let i of A.textNodes)await this.renderTextNode(i,n,l);if(A instanceof Rp)try{let i=await this.context.cache.match(A.src);this.renderReplacedElement(A,a,i)}catch{this.context.logger.error(`Error loading image ${A.src}`)}if(A instanceof Dp&&this.renderReplacedElement(A,a,A.canvas),A instanceof Mp)try{let i=await this.context.cache.match(A.svg);this.renderReplacedElement(A,a,i)}catch{this.context.logger.error(`Error loading svg ${A.svg.substring(0,255)}`)}if(A instanceof zp&&A.tree){let s=await new t(this.context,{scale:this.options.scale,backgroundColor:A.backgroundColor,x:0,y:0,width:A.width,height:A.height}).render(A.tree);A.width&&A.height&&this.ctx.drawImage(s,0,0,A.width,A.height,A.bounds.left,A.bounds.top,A.bounds.width,A.bounds.height)}if(A instanceof ri){let i=Math.min(A.bounds.width,A.bounds.height);A.type===Op?A.checked&&(this.ctx.save(),this.path([new ne(A.bounds.left+i*.39363,A.bounds.top+i*.79),new ne(A.bounds.left+i*.16,A.bounds.top+i*.5549),new ne(A.bounds.left+i*.27347,A.bounds.top+i*.44071),new ne(A.bounds.left+i*.39694,A.bounds.top+i*.5649),new ne(A.bounds.left+i*.72983,A.bounds.top+i*.23),new ne(A.bounds.left+i*.84,A.bounds.top+i*.34085),new ne(A.bounds.left+i*.39363,A.bounds.top+i*.79)]),this.ctx.fillStyle=ct(v3),this.ctx.fill(),this.ctx.restore()):A.type===Np&&A.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(A.bounds.left+i/2,A.bounds.top+i/2,i/4,0,Math.PI*2,!0),this.ctx.fillStyle=ct(v3),this.ctx.fill(),this.ctx.restore())}if(yN(A)&&A.value.length){let[i,s,c]=this.createFontStyle(n),{baseline:d}=this.fontMetrics.getMetrics(s,c);this.ctx.font=i;let h=A instanceof ri&&A.isPlaceholder;this.ctx.fillStyle=ct(h?TO:n.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=wN(A.styles.textAlign);let p=ef(A),m=0;switch(A.styles.textAlign){case 1:m+=p.width/2;break;case 2:m+=p.width;break}let B=0;if(A instanceof ri){let v=Pe(n.fontSize,0);B=(p.height-v)/2}let y=p.add(m,B,0,0);this.ctx.save(),this.path([new ne(p.left,p.top),new ne(p.left+p.width,p.top),new ne(p.left+p.width,p.top+p.height),new ne(p.left,p.top+p.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new li(A.value,y),n.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(It(A.styles.display,2048)){if(A.styles.listStyleImage!==null){let i=A.styles.listStyleImage;if(i.type===0){let s,c=i.url;try{s=await this.context.cache.match(c),this.ctx.drawImage(s,A.bounds.left-(s.width+10),A.bounds.top)}catch{this.context.logger.error(`Error loading list-style-image ${c}`)}}}else if(e.listValue&&A.styles.listStyleType!==-1){let[i]=this.createFontStyle(n);this.ctx.font=i,this.ctx.fillStyle=ct(n.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right";let s=new _a(A.bounds.left,A.bounds.top+Pe(A.styles.paddingTop,A.bounds.width),A.bounds.width,o3(n.lineHeight,n.fontSize.number)/2+1);this.renderTextWithLetterSpacing(new li(e.listValue,s),n.letterSpacing,o3(n.lineHeight,n.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}}}async renderStackContent(e){if(It(e.element.container.flags,16))debugger;await this.renderNodeBackgroundAndBorders(e.element);for(let A of e.negativeZIndex)await this.renderStack(A);await this.renderNodeContent(e.element);for(let A of e.nonInlineLevel)await this.renderNode(A);for(let A of e.nonPositionedFloats)await this.renderStack(A);for(let A of e.nonPositionedInlineLevel)await this.renderStack(A);for(let A of e.inlineLevel)await this.renderNode(A);for(let A of e.zeroOrAutoZIndexOrTransformedOrOpacity)await this.renderStack(A);for(let A of e.positiveZIndex)await this.renderStack(A)}mask(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.options.width,0),this.ctx.lineTo(this.options.width,this.options.height),this.ctx.lineTo(0,this.options.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()}path(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()}formatPath(e){e.forEach((A,a)=>{let n=nn(A)?A.start:A;a===0?this.ctx.moveTo(n.x,n.y):this.ctx.lineTo(n.x,n.y),nn(A)&&this.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})}renderRepeat(e,A,a,n){this.path(e),this.ctx.fillStyle=A,this.ctx.translate(a,n),this.ctx.fill(),this.ctx.translate(-a,-n)}resizeImage(e,A,a){let l=(this.canvas.ownerDocument??document).createElement("canvas");return l.width=Math.max(1,A),l.height=Math.max(1,a),l.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,A,a),l}async renderBackgroundImage(e){let A=e.styles.backgroundImage.length-1;for(let a of e.styles.backgroundImage.slice(0).reverse()){if(a.type===0){let n,l=a.url;try{n=await this.context.cache.match(l)}catch{this.context.logger.error(`Error loading background-image ${l}`)}if(n){let i=isNaN(n.width)||n.width===0?1:n.width,s=isNaN(n.height)||n.height===0?1:n.height,[c,d,h,p,m]=JB(e,A,[i,s,i/s]),B=this.ctx.createPattern(this.resizeImage(n,p,m),"repeat");this.renderRepeat(c,B,d,h)}}else if(nM(a)){let[n,l,i,s,c]=JB(e,A,[null,null,null]),[d,h,p,m,B]=$D(a.angle,s,c),y=document.createElement("canvas");y.width=s,y.height=c;let v=y.getContext("2d"),b=v.createLinearGradient(h,m,p,B);if(l3(a.stops,d||1).forEach(w=>b.addColorStop(w.stop,ct(w.color))),v.fillStyle=b,v.fillRect(0,0,s,c),s>0&&c>0){let w=this.ctx.createPattern(y,"repeat");this.renderRepeat(n,w,l,i)}}else if(lM(a)){let[n,l,i,s,c]=JB(e,A,[null,null,null]),d=a.position.length===0?[I2]:a.position,h=Pe(d[0],s),p=Pe(d[d.length-1],c),[m,B]=eM(a,h,p,s,c);if((m===0||B===0)&&(m=Math.max(m,.01),B=Math.max(B,.01)),m>0&&B>0){let y=this.ctx.createRadialGradient(l+h,i+p,0,l+h,i+p,m);if(l3(a.stops,m*2).forEach(v=>y.addColorStop(v.stop,ct(v.color))),this.path(n),this.ctx.fillStyle=y,m!==B){let v=e.bounds.left+.5*e.bounds.width,b=e.bounds.top+.5*e.bounds.height,w=B/m,x=1/w;this.ctx.save(),this.ctx.translate(v,b),this.ctx.transform(1,0,0,w,0,0),this.ctx.translate(-v,-b),this.ctx.fillRect(l,x*(i-b)+b,s,c*x),this.ctx.restore()}else this.ctx.fill()}}A--}}async renderSolidBorder(e,A,a){this.path(D3(a,A)),this.ctx.fillStyle=ct(e),this.ctx.fill()}async renderDoubleBorder(e,A,a,n){if(A<3){await this.renderSolidBorder(e,a,n);return}let l=cN(n,a);this.path(l),this.ctx.fillStyle=ct(e),this.ctx.fill();let i=fN(n,a);this.path(i),this.ctx.fill()}async renderNodeBackgroundAndBorders(e){this.applyEffects(e.getEffects(2));let A=e.container.styles,a=!zr(A.backgroundColor)||A.backgroundImage.length,n=[{style:A.borderTopStyle,color:A.borderTopColor,width:A.borderTopWidth},{style:A.borderRightStyle,color:A.borderRightColor,width:A.borderRightWidth},{style:A.borderBottomStyle,color:A.borderBottomColor,width:A.borderBottomWidth},{style:A.borderLeftStyle,color:A.borderLeftColor,width:A.borderLeftWidth}],l=xN(Fs(A.backgroundClip,0),e.curves);(a||A.boxShadow.length)&&(this.ctx.save(),this.path(l),this.ctx.clip(),zr(A.backgroundColor)||(this.ctx.fillStyle=ct(A.backgroundColor),this.ctx.fill()),await this.renderBackgroundImage(e.container),this.ctx.restore(),A.boxShadow.slice(0).reverse().forEach(s=>{this.ctx.save();let c=Xp(e.curves),d=s.inset?0:CN,h=sN(c,-d+(s.inset?1:-1)*s.spread.number,(s.inset?1:-1)*s.spread.number,s.spread.number*(s.inset?-2:2),s.spread.number*(s.inset?-2:2));s.inset?(this.path(c),this.ctx.clip(),this.mask(h)):(this.mask(c),this.ctx.clip(),this.path(h)),this.ctx.shadowOffsetX=s.offsetX.number+d,this.ctx.shadowOffsetY=s.offsetY.number,this.ctx.shadowColor=ct(s.color),this.ctx.shadowBlur=s.blur.number,this.ctx.fillStyle=s.inset?ct(s.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()}));let i=0;for(let s of n)s.style!==0&&!zr(s.color)&&s.width>0&&(s.style===2?await this.renderDashedDottedBorder(s.color,s.width,i,e.curves,2):s.style===3?await this.renderDashedDottedBorder(s.color,s.width,i,e.curves,3):s.style===4?await this.renderDoubleBorder(s.color,s.width,i,e.curves):await this.renderSolidBorder(s.color,i,e.curves)),i++}async renderDashedDottedBorder(e,A,a,n,l){this.ctx.save();let i=dN(n,a),s=D3(n,a);l===2&&(this.path(s),this.ctx.clip());let c,d,h,p;nn(s[0])?(c=s[0].start.x,d=s[0].start.y):(c=s[0].x,d=s[0].y),nn(s[1])?(h=s[1].end.x,p=s[1].end.y):(h=s[1].x,p=s[1].y);let m;a===0||a===2?m=Math.abs(c-h):m=Math.abs(d-p),this.ctx.beginPath(),l===3?this.formatPath(i):this.formatPath(s.slice(0,2));let B=A<3?A*3:A*2,y=A<3?A*2:A;l===3&&(B=A,y=A);let v=!0;if(m<=B*2)v=!1;else if(m<=B*2+y){let b=m/(2*B+y);B*=b,y*=b}else{let b=Math.floor((m+y)/(B+y)),w=(m-b*B)/(b-1),x=(m-(b+1)*B)/b;y=x<=0||Math.abs(y-w)<Math.abs(y-x)?w:x}if(v&&(l===3?this.ctx.setLineDash([0,B+y]):this.ctx.setLineDash([B,y])),l===3?(this.ctx.lineCap="round",this.ctx.lineWidth=A):this.ctx.lineWidth=A*2+1.1,this.ctx.strokeStyle=ct(e),this.ctx.stroke(),this.ctx.setLineDash([]),l===2){if(nn(s[0])){let b=s[3],w=s[0];this.ctx.beginPath(),this.formatPath([new ne(b.end.x,b.end.y),new ne(w.start.x,w.start.y)]),this.ctx.stroke()}if(nn(s[1])){let b=s[1],w=s[2];this.ctx.beginPath(),this.formatPath([new ne(b.end.x,b.end.y),new ne(w.start.x,w.start.y)]),this.ctx.stroke()}}this.ctx.restore()}async render(e){this.options.backgroundColor&&(this.ctx.fillStyle=ct(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));let A=uN(e);return await this.renderStack(A),this.applyEffects([]),this.canvas}},yN=t=>t instanceof Kp||t instanceof Gp?!0:t instanceof ri&&t.type!==Np&&t.type!==Op,xN=(t,e)=>{switch(t){case 0:return Xp(e);case 2:return rN(e);default:return qp(e)}},wN=t=>{switch(t){case 1:return"center";case 2:return"right";default:return"left"}},vN=["-apple-system","system-ui"],SN=t=>/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(e=>vN.indexOf(e)===-1):t,F2=class extends Jp{constructor(e,A){super(e,A),this.canvas=A.canvas?A.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=A,this.canvas.width=Math.floor(A.width*A.scale),this.canvas.height=Math.floor(A.height*A.scale),this.canvas.style.width=`${A.width}px`,this.canvas.style.height=`${A.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-A.x,-A.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${A.width}x${A.height} at ${A.x},${A.y}) with scale ${A.scale}`)}async render(e){let A=m2(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),a=await bN(A);return this.options.backgroundColor&&(this.ctx.fillStyle=ct(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas}},bN=t=>new Promise((e,A)=>{let a=new Image;a.onload=()=>{e(a)},a.onerror=A,a.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`}),Wp=class{constructor({id:e,enabled:A}){this.id=e,this.enabled=A,this.start=Date.now()}debug(...e){this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...e):this.info(...e))}getTime(){return Date.now()-this.start}info(...e){this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...e)}warn(...e){this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...e):this.info(...e))}error(...e){this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...e):this.info(...e))}};Wp.instances={};var $p=class t{constructor(e,A){this.windowBounds=A,this.instanceName=`#${t.instanceCount++}`,this.logger=new Wp({id:this.instanceName,enabled:e.logging}),this.cache=e.cache??new S2(this,e)}};$p.instanceCount=1;var I5,UN=t=>{I5=t},O2=(t,e={})=>EN(t,e);O2.setCspNonce=UN;typeof window<"u"&&Ds.setContext(window);var EN=async(t,e)=>{if(!t||typeof t!="object")return Promise.reject("Invalid element provided as first argument");let A=t.ownerDocument;if(!A)throw new Error("Element is not attached to a Document");let a=A.defaultView;if(!a)throw new Error("Document is not attached to a Window");let n={allowTaint:e.allowTaint??!1,imageTimeout:e.imageTimeout??15e3,proxy:e.proxy,useCORS:e.useCORS??!1,customIsSameOrigin:e.customIsSameOrigin},l={logging:e.logging??!0,cache:e.cache,...n},i={windowWidth:e.windowWidth??a.innerWidth,windowHeight:e.windowHeight??a.innerHeight,scrollX:e.scrollX??a.pageXOffset,scrollY:e.scrollY??a.pageYOffset},s=new _a(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),c=new $p(l,s),d=e.foreignObjectRendering??!1,h={allowTaint:e.allowTaint??!1,onclone:e.onclone,ignoreElements:e.ignoreElements,iframeContainer:e.iframeContainer,inlineImages:d,copyStyles:d,cspNonce:I5};c.logger.debug(`Starting document clone with size ${s.width}x${s.height} scrolled to ${-s.left},${-s.top}`);let p=new kp(c,t,h),m=p.clonedReferenceElement;if(!m)return Promise.reject("Unable to find element in cloned iframe");let B=await p.toIFrame(A,s),{width:y,height:v,left:b,top:w}=_2(m)||OO(m)?fH(m.ownerDocument):e0(c,m),x=LN(c,m,e.backgroundColor),S={canvas:e.canvas,backgroundColor:x,scale:e.scale??a.devicePixelRatio??1,x:(e.x??0)+b,y:(e.y??0)+w,width:e.width??Math.ceil(y),height:e.height??Math.ceil(v)},U;if(d)c.logger.debug("Document cloned, using foreign object rendering"),U=await new F2(c,S).render(m);else{c.logger.debug(`Document cloned, element located at ${b},${w} with size ${y}x${v} using computed rendering`),c.logger.debug("Starting DOM parsing");let L=v5(c,m);x===L.styles.backgroundColor&&(L.styles.backgroundColor=sl.TRANSPARENT),c.logger.debug(`Starting renderer for element at ${S.x},${S.y} with size ${S.width}x${S.height}`),U=await new Q2(c,S).render(L)}return(e.removeContainer??!0)&&(kp.destroy(B)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),U},LN=(t,e,A)=>{let a=e.ownerDocument,n=a.documentElement?Hs(t,getComputedStyle(a.documentElement).backgroundColor):sl.TRANSPARENT,l=a.body?Hs(t,getComputedStyle(a.body).backgroundColor):sl.TRANSPARENT,i=typeof A=="string"?Hs(t,A):A===null?sl.TRANSPARENT:4294967295;return e===a.documentElement?zr(n)?zr(l)?i:l:n:i};async function d0(t){t.style.display="none";try{return(await O2(document.documentElement,{useCORS:!0,allowTaint:!1,logging:!1,x:window.scrollX,y:window.scrollY,width:window.innerWidth,height:window.innerHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight})).toDataURL("image/jpeg",.8)}finally{t.style.display=""}}function h0(){return{url:window.location.href,title:document.title,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,userAgent:navigator.userAgent,capturedAt:new Date().toISOString()}}async function p0(t){let e=await fetch(t.edgeFunctionUrl,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":t.apiKey},body:JSON.stringify({comment:t.comment,severity:t.severity,screenshot:t.screenshotDataUrl,context:t.context})});if(!e.ok)throw new Error("Submit failed: "+e.status);return e.json()}var K7=Y(ue()),z7=Y(yL());function xL(t){var e,A,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(A=xL(t[e]))&&(a&&(a+=" "),a+=A)}else for(A in t)t[A]&&(a&&(a+=" "),a+=A);return a}function wL(){for(var t,e,A=0,a="",n=arguments.length;A<n;A++)(t=arguments[A])&&(e=xL(t))&&(a&&(a+=" "),a+=e);return a}var yz=t=>{let e=wz(t),{conflictingClassGroups:A,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:i=>{let s=i.split("-");return s[0]===""&&s.length!==1&&s.shift(),bL(s,e)||xz(i)},getConflictingClassGroupIds:(i,s)=>{let c=A[i]||[];return s&&a[i]?[...c,...a[i]]:c}}},bL=(t,e)=>{if(t.length===0)return e.classGroupId;let A=t[0],a=e.nextPart.get(A),n=a?bL(t.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;let l=t.join("-");return e.validators.find(({validator:i})=>i(l))?.classGroupId},vL=/^\[(.+)\]$/,xz=t=>{if(vL.test(t)){let e=vL.exec(t)[1],A=e?.substring(0,e.indexOf(":"));if(A)return"arbitrary.."+A}},wz=t=>{let{theme:e,prefix:A}=t,a={nextPart:new Map,validators:[]};return Sz(Object.entries(t.classGroups),A).forEach(([l,i])=>{b4(i,a,l,e)}),a},b4=(t,e,A,a)=>{t.forEach(n=>{if(typeof n=="string"){let l=n===""?e:SL(e,n);l.classGroupId=A;return}if(typeof n=="function"){if(vz(n)){b4(n(a),e,A,a);return}e.validators.push({validator:n,classGroupId:A});return}Object.entries(n).forEach(([l,i])=>{b4(i,SL(e,l),A,a)})})},SL=(t,e)=>{let A=t;return e.split("-").forEach(a=>{A.nextPart.has(a)||A.nextPart.set(a,{nextPart:new Map,validators:[]}),A=A.nextPart.get(a)}),A},vz=t=>t.isThemeGetter,Sz=(t,e)=>e?t.map(([A,a])=>{let n=a.map(l=>typeof l=="string"?e+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([i,s])=>[e+i,s])):l);return[A,n]}):t,bz=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,A=new Map,a=new Map,n=(l,i)=>{A.set(l,i),e++,e>t&&(e=0,a=A,A=new Map)};return{get(l){let i=A.get(l);if(i!==void 0)return i;if((i=a.get(l))!==void 0)return n(l,i),i},set(l,i){A.has(l)?A.set(l,i):n(l,i)}}};var Uz=t=>{let{separator:e,experimentalParseClassName:A}=t,a=e.length===1,n=e[0],l=e.length,i=s=>{let c=[],d=0,h=0,p;for(let b=0;b<s.length;b++){let w=s[b];if(d===0){if(w===n&&(a||s.slice(b,b+l)===e)){c.push(s.slice(h,b)),h=b+l;continue}if(w==="/"){p=b;continue}}w==="["?d++:w==="]"&&d--}let m=c.length===0?s:s.substring(h),B=m.startsWith("!"),y=B?m.substring(1):m,v=p&&p>h?p-h:void 0;return{modifiers:c,hasImportantModifier:B,baseClassName:y,maybePostfixModifierPosition:v}};return A?s=>A({className:s,parseClassName:i}):i},Ez=t=>{if(t.length<=1)return t;let e=[],A=[];return t.forEach(a=>{a[0]==="["?(e.push(...A.sort(),a),A=[]):A.push(a)}),e.push(...A.sort()),e},Lz=t=>({cache:bz(t.cacheSize),parseClassName:Uz(t),...yz(t)}),Qz=/\s+/,Fz=(t,e)=>{let{parseClassName:A,getClassGroupId:a,getConflictingClassGroupIds:n}=e,l=[],i=t.trim().split(Qz),s="";for(let c=i.length-1;c>=0;c-=1){let d=i[c],{modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:B}=A(d),y=!!B,v=a(y?m.substring(0,B):m);if(!v){if(!y){s=d+(s.length>0?" "+s:s);continue}if(v=a(m),!v){s=d+(s.length>0?" "+s:s);continue}y=!1}let b=Ez(h).join(":"),w=p?b+"!":b,x=w+v;if(l.includes(x))continue;l.push(x);let S=n(v,y);for(let U=0;U<S.length;++U){let L=S[U];l.push(w+L)}s=d+(s.length>0?" "+s:s)}return s};function Tz(){let t=0,e,A,a="";for(;t<arguments.length;)(e=arguments[t++])&&(A=UL(e))&&(a&&(a+=" "),a+=A);return a}var UL=t=>{if(typeof t=="string")return t;let e,A="";for(let a=0;a<t.length;a++)t[a]&&(e=UL(t[a]))&&(A&&(A+=" "),A+=e);return A};function Iz(t,...e){let A,a,n,l=i;function i(c){let d=e.reduce((h,p)=>p(h),t());return A=Lz(d),a=A.cache.get,n=A.cache.set,l=s,s(c)}function s(c){let d=a(c);if(d)return d;let h=Fz(c,A);return n(c,h),h}return function(){return l(Tz.apply(null,arguments))}}var xt=t=>{let e=A=>A[t]||[];return e.isThemeGetter=!0,e},EL=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hz=/^\d+\/\d+$/,Rz=new Set(["px","full","screen"]),Dz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mz=/\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$/,_z=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Oz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ur=t=>Tu(t)||Rz.has(t)||Hz.test(t),xo=t=>Iu(t,"length",qz),Tu=t=>!!t&&!Number.isNaN(Number(t)),S4=t=>Iu(t,"number",Tu),id=t=>!!t&&Number.isInteger(Number(t)),Gz=t=>t.endsWith("%")&&Tu(t.slice(0,-1)),Le=t=>EL.test(t),wo=t=>Dz.test(t),Kz=new Set(["length","size","percentage"]),zz=t=>Iu(t,Kz,LL),Vz=t=>Iu(t,"position",LL),Pz=new Set(["image","url"]),kz=t=>Iu(t,Pz,jz),Xz=t=>Iu(t,"",Yz),sd=()=>!0,Iu=(t,e,A)=>{let a=EL.exec(t);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):A(a[2]):!1},qz=t=>Mz.test(t)&&!_z.test(t),LL=()=>!1,Yz=t=>Oz.test(t),jz=t=>Nz.test(t);var Zz=()=>{let t=xt("colors"),e=xt("spacing"),A=xt("blur"),a=xt("brightness"),n=xt("borderColor"),l=xt("borderRadius"),i=xt("borderSpacing"),s=xt("borderWidth"),c=xt("contrast"),d=xt("grayscale"),h=xt("hueRotate"),p=xt("invert"),m=xt("gap"),B=xt("gradientColorStops"),y=xt("gradientColorStopPositions"),v=xt("inset"),b=xt("margin"),w=xt("opacity"),x=xt("padding"),S=xt("saturate"),U=xt("scale"),L=xt("sepia"),F=xt("skew"),T=xt("space"),M=xt("translate"),D=()=>["auto","contain","none"],G=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto",Le,e],P=()=>[Le,e],se=()=>["",ur,xo],le=()=>["auto",Tu,Le],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],oe=()=>["","0",Le],ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[Tu,Le];return{cacheSize:500,separator:":",theme:{colors:[sd],spacing:[ur,xo],blur:["none","",wo,Le],brightness:he(),borderColor:[t],borderRadius:["none","","full",wo,Le],borderSpacing:P(),borderWidth:se(),contrast:he(),grayscale:oe(),hueRotate:he(),invert:oe(),gap:P(),gradientColorStops:[t],gradientColorStopPositions:[Gz,xo],inset:ee(),margin:ee(),opacity:he(),padding:P(),saturate:he(),scale:he(),sepia:oe(),skew:he(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[wo]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"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"],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:[...te(),Le]}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",id,Le]}],basis:[{basis:ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",id,Le]}],"grid-cols":[{"grid-cols":[sd]}],"col-start-end":[{col:["auto",{span:["full",id,Le]},Le]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[sd]}],"row-start-end":[{row:["auto",{span:[id,Le]},Le]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,e]}],"min-w":[{"min-w":[Le,e,"min","max","fit"]}],"max-w":[{"max-w":[Le,e,"none","full","min","max","fit","prose",{screen:[wo]},wo]}],h:[{h:[Le,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,e,"auto","min","max","fit"]}],"font-size":[{text:["base",wo,xo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S4]}],"font-family":[{font:[sd]}],"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:["tighter","tight","normal","wide","wider","widest",Le]}],"line-clamp":[{"line-clamp":["none",Tu,S4]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ur,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ur,xo]}],"underline-offset":[{"underline-offset":["auto",ur,Le]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),Vz]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zz]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kz]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[B]}],"gradient-via":[{via:[B]}],"gradient-to":[{to:[B]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:q()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[ur,Le]}],"outline-w":[{outline:[ur,xo]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[ur,xo]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",wo,Xz]}],"shadow-color":[{shadow:[sd]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[A]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",wo,Le]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[p]}],saturate:[{saturate:[S]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[A]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[U]}],"scale-x":[{"scale-x":[U]}],"scale-y":[{"scale-y":[U]}],rotate:[{rotate:[id,Le]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",Le]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Le]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ur,xo,S4]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var QL=Iz(Zz);var x7=Y(ue());var rA=Y(ue(),1);var TL=Y(ue(),1);function FL(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Qi(...t){return e=>{let A=!1,a=t.map(n=>{let l=FL(n,e);return!A&&typeof l=="function"&&(A=!0),l});if(A)return()=>{for(let n=0;n<a.length;n++){let l=a[n];typeof l=="function"?l():FL(t[n],null)}}}}function KA(...t){return TL.useCallback(Qi(...t),t)}var Ym=Y(Qe(),1),$z=Symbol.for("react.lazy"),jm=rA[" use ".trim().toString()];function eV(t){return typeof t=="object"&&t!==null&&"then"in t}function DL(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===$z&&"_payload"in t&&eV(t._payload)}function U4(t){let e=tV(t),A=rA.forwardRef((a,n)=>{let{children:l,...i}=a;DL(l)&&typeof jm=="function"&&(l=jm(l._payload));let s=rA.Children.toArray(l),c=s.find(aV);if(c){let d=c.props.children,h=s.map(p=>p===c?rA.Children.count(d)>1?rA.Children.only(null):rA.isValidElement(d)?d.props.children:null:p);return(0,Ym.jsx)(e,{...i,ref:n,children:rA.isValidElement(d)?rA.cloneElement(d,void 0,h):null})}return(0,Ym.jsx)(e,{...i,ref:n,children:l})});return A.displayName=`${t}.Slot`,A}var ML=U4("Slot");function tV(t){let e=rA.forwardRef((A,a)=>{let{children:n,...l}=A;if(DL(n)&&typeof jm=="function"&&(n=jm(n._payload)),rA.isValidElement(n)){let i=lV(n),s=nV(l,n.props);return n.type!==rA.Fragment&&(s.ref=a?Qi(a,i):i),rA.cloneElement(n,s)}return rA.Children.count(n)>1?rA.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var AV=Symbol("radix.slottable");function aV(t){return rA.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===AV}function nV(t,e){let A={...e};for(let a in e){let n=t[a],l=e[a];/^on[A-Z]/.test(a)?n&&l?A[a]=(...s)=>{let c=l(...s);return n(...s),c}:n&&(A[a]=n):a==="style"?A[a]={...n,...l}:a==="className"&&(A[a]=[n,l].filter(Boolean).join(" "))}return{...t,...A}}function lV(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,A=e&&"isReactWarning"in e&&e.isReactWarning;return A?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,A=e&&"isReactWarning"in e&&e.isReactWarning,A?t.props.ref:t.props.ref||t.ref)}var w7=Y(Qe()),ZY=Y(Qe()),Yi=Y(ue()),ji=Y(Qe()),rh=Y(ue());var dt=Y(ue(),1);var rZ=!!(typeof window<"u"&&window.document&&window.document.createElement);function zA(t,e,{checkForDefaultPrevented:A=!0}={}){return function(n){if(t?.(n),A===!1||!n.defaultPrevented)return e?.(n)}}var yn=Y(ue(),1),E4=Y(Qe(),1);function _L(t,e){let A=yn.createContext(e),a=l=>{let{children:i,...s}=l,c=yn.useMemo(()=>s,Object.values(s));return(0,E4.jsx)(A.Provider,{value:c,children:i})};a.displayName=t+"Provider";function n(l){let i=yn.useContext(A);if(i)return i;if(e!==void 0)return e;throw new Error(`\`${l}\` must be used within \`${t}\``)}return[a,n]}function Hu(t,e=[]){let A=[];function a(l,i){let s=yn.createContext(i),c=A.length;A=[...A,i];let d=p=>{let{scope:m,children:B,...y}=p,v=m?.[t]?.[c]||s,b=yn.useMemo(()=>y,Object.values(y));return(0,E4.jsx)(v.Provider,{value:b,children:B})};d.displayName=l+"Provider";function h(p,m){let B=m?.[t]?.[c]||s,y=yn.useContext(B);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[d,h]}let n=()=>{let l=A.map(i=>yn.createContext(i));return function(s){let c=s?.[t]||l;return yn.useMemo(()=>({[`__scope${t}`]:{...s,[t]:c}}),[s,c])}};return n.scopeName=t,[a,rV(n,...e)]}function rV(...t){let e=t[0];if(t.length===1)return e;let A=()=>{let a=t.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(l){let i=a.reduce((s,{useScope:c,scopeName:d})=>{let p=c(l)[`__scope${d}`];return{...s,...p}},{});return yn.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return A.scopeName=e.scopeName,A}var L4=Y(ue(),1);var OL=Y(ue(),1),ya=globalThis?.document?OL.useLayoutEffect:()=>{};var oV=L4[" useId ".trim().toString()]||(()=>{}),iV=0;function Ru(t){let[e,A]=L4.useState(oV());return ya(()=>{t||A(a=>a??String(iV++))},[t]),t||(e?`radix-${e}`:"")}var xn=Y(ue(),1);var Jm=Y(ue(),1);var sV=xn[" useInsertionEffect ".trim().toString()]||ya;function Zm({prop:t,defaultProp:e,onChange:A=()=>{},caller:a}){let[n,l,i]=uV({defaultProp:e,onChange:A}),s=t!==void 0,c=s?t:n;{let h=xn.useRef(t!==void 0);xn.useEffect(()=>{let p=h.current;p!==s&&console.warn(`${a} is changing from ${p?"controlled":"uncontrolled"} to ${s?"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.`),h.current=s},[s,a])}let d=xn.useCallback(h=>{if(s){let p=cV(h)?h(t):h;p!==t&&i.current?.(p)}else l(h)},[s,t,l,i]);return[c,d]}function uV({defaultProp:t,onChange:e}){let[A,a]=xn.useState(t),n=xn.useRef(A),l=xn.useRef(e);return sV(()=>{l.current=e},[e]),xn.useEffect(()=>{n.current!==A&&(l.current?.(A),n.current=A)},[A,n]),[A,a,l]}function cV(t){return typeof t=="function"}var Ht=Y(ue(),1);var GL=Y(ue(),1),KL=Y(zs(),1);var mA=Y(ue(),1);var Wm=Y(Qe(),1);function NL(t){let e=fV(t),A=mA.forwardRef((a,n)=>{let{children:l,...i}=a,s=mA.Children.toArray(l),c=s.find(hV);if(c){let d=c.props.children,h=s.map(p=>p===c?mA.Children.count(d)>1?mA.Children.only(null):mA.isValidElement(d)?d.props.children:null:p);return(0,Wm.jsx)(e,{...i,ref:n,children:mA.isValidElement(d)?mA.cloneElement(d,void 0,h):null})}return(0,Wm.jsx)(e,{...i,ref:n,children:l})});return A.displayName=`${t}.Slot`,A}function fV(t){let e=mA.forwardRef((A,a)=>{let{children:n,...l}=A;if(mA.isValidElement(n)){let i=mV(n),s=pV(l,n.props);return n.type!==mA.Fragment&&(s.ref=a?Qi(a,i):i),mA.cloneElement(n,s)}return mA.Children.count(n)>1?mA.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var dV=Symbol("radix.slottable");function hV(t){return mA.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===dV}function pV(t,e){let A={...e};for(let a in e){let n=t[a],l=e[a];/^on[A-Z]/.test(a)?n&&l?A[a]=(...s)=>{let c=l(...s);return n(...s),c}:n&&(A[a]=n):a==="style"?A[a]={...n,...l}:a==="className"&&(A[a]=[n,l].filter(Boolean).join(" "))}return{...t,...A}}function mV(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,A=e&&"isReactWarning"in e&&e.isReactWarning;return A?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,A=e&&"isReactWarning"in e&&e.isReactWarning,A?t.props.ref:t.props.ref||t.ref)}var zL=Y(Qe(),1),gV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],zt=gV.reduce((t,e)=>{let A=NL(`Primitive.${e}`),a=GL.forwardRef((n,l)=>{let{asChild:i,...s}=n,c=i?A:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,zL.jsx)(c,{...s,ref:l})});return a.displayName=`Primitive.${e}`,{...t,[e]:a}},{});function VL(t,e){t&&KL.flushSync(()=>t.dispatchEvent(e))}var Du=Y(ue(),1);function Cl(t){let e=Du.useRef(t);return Du.useEffect(()=>{e.current=t}),Du.useMemo(()=>(...A)=>e.current?.(...A),[])}var PL=Y(ue(),1);function kL(t,e=globalThis?.document){let A=Cl(t);PL.useEffect(()=>{let a=n=>{n.key==="Escape"&&A(n)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[A,e])}var F4=Y(Qe(),1),BV="DismissableLayer",Q4="dismissableLayer.update",CV="dismissableLayer.pointerDownOutside",yV="dismissableLayer.focusOutside",XL,YL=Ht.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ud=Ht.forwardRef((t,e)=>{let{disableOutsidePointerEvents:A=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=Ht.useContext(YL),[h,p]=Ht.useState(null),m=h?.ownerDocument??globalThis?.document,[,B]=Ht.useState({}),y=KA(e,T=>p(T)),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),x=h?v.indexOf(h):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,U=x>=w,L=vV(T=>{let M=T.target,D=[...d.branches].some(G=>G.contains(M));!U||D||(n?.(T),i?.(T),T.defaultPrevented||s?.())},m),F=SV(T=>{let M=T.target;[...d.branches].some(G=>G.contains(M))||(l?.(T),i?.(T),T.defaultPrevented||s?.())},m);return kL(T=>{x===d.layers.size-1&&(a?.(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},m),Ht.useEffect(()=>{if(h)return A&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(XL=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),qL(),()=>{A&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=XL)}},[h,m,A,d]),Ht.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),qL())},[h,d]),Ht.useEffect(()=>{let T=()=>B({});return document.addEventListener(Q4,T),()=>document.removeEventListener(Q4,T)},[]),(0,F4.jsx)(zt.div,{...c,ref:y,style:{pointerEvents:S?U?"auto":"none":void 0,...t.style},onFocusCapture:zA(t.onFocusCapture,F.onFocusCapture),onBlurCapture:zA(t.onBlurCapture,F.onBlurCapture),onPointerDownCapture:zA(t.onPointerDownCapture,L.onPointerDownCapture)})});ud.displayName=BV;var xV="DismissableLayerBranch",wV=Ht.forwardRef((t,e)=>{let A=Ht.useContext(YL),a=Ht.useRef(null),n=KA(e,a);return Ht.useEffect(()=>{let l=a.current;if(l)return A.branches.add(l),()=>{A.branches.delete(l)}},[A.branches]),(0,F4.jsx)(zt.div,{...t,ref:n})});wV.displayName=xV;function vV(t,e=globalThis?.document){let A=Cl(t),a=Ht.useRef(!1),n=Ht.useRef(()=>{});return Ht.useEffect(()=>{let l=s=>{if(s.target&&!a.current){let d=function(){jL(CV,A,h,{discrete:!0})};var c=d;let h={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=d,e.addEventListener("click",n.current,{once:!0})):d()}else e.removeEventListener("click",n.current);a.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",l),e.removeEventListener("click",n.current)}},[e,A]),{onPointerDownCapture:()=>a.current=!0}}function SV(t,e=globalThis?.document){let A=Cl(t),a=Ht.useRef(!1);return Ht.useEffect(()=>{let n=l=>{l.target&&!a.current&&jL(yV,A,{originalEvent:l},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,A]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function qL(){let t=new CustomEvent(Q4);document.dispatchEvent(t)}function jL(t,e,A,{discrete:a}){let n=A.originalEvent.target,l=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:A});e&&n.addEventListener(t,e,{once:!0}),a?VL(n,l):n.dispatchEvent(l)}var wn=Y(ue(),1);var e8=Y(Qe(),1),T4="focusScope.autoFocusOnMount",I4="focusScope.autoFocusOnUnmount",ZL={bubbles:!1,cancelable:!0},bV="FocusScope",H4=wn.forwardRef((t,e)=>{let{loop:A=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:l,...i}=t,[s,c]=wn.useState(null),d=Cl(n),h=Cl(l),p=wn.useRef(null),m=KA(e,v=>c(v)),B=wn.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;wn.useEffect(()=>{if(a){let x=function(F){if(B.paused||!s)return;let T=F.target;s.contains(T)?p.current=T:vo(p.current,{select:!0})},S=function(F){if(B.paused||!s)return;let T=F.relatedTarget;T!==null&&(s.contains(T)||vo(p.current,{select:!0}))},U=function(F){if(document.activeElement===document.body)for(let M of F)M.removedNodes.length>0&&vo(s)};var v=x,b=S,w=U;document.addEventListener("focusin",x),document.addEventListener("focusout",S);let L=new MutationObserver(U);return s&&L.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",S),L.disconnect()}}},[a,s,B.paused]),wn.useEffect(()=>{if(s){WL.add(B);let v=document.activeElement;if(!s.contains(v)){let w=new CustomEvent(T4,ZL);s.addEventListener(T4,d),s.dispatchEvent(w),w.defaultPrevented||(UV(TV(t8(s)),{select:!0}),document.activeElement===v&&vo(s))}return()=>{s.removeEventListener(T4,d),setTimeout(()=>{let w=new CustomEvent(I4,ZL);s.addEventListener(I4,h),s.dispatchEvent(w),w.defaultPrevented||vo(v??document.body,{select:!0}),s.removeEventListener(I4,h),WL.remove(B)},0)}}},[s,d,h,B]);let y=wn.useCallback(v=>{if(!A&&!a||B.paused)return;let b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(b&&w){let x=v.currentTarget,[S,U]=EV(x);S&&U?!v.shiftKey&&w===U?(v.preventDefault(),A&&vo(S,{select:!0})):v.shiftKey&&w===S&&(v.preventDefault(),A&&vo(U,{select:!0})):w===x&&v.preventDefault()}},[A,a,B.paused]);return(0,e8.jsx)(zt.div,{tabIndex:-1,...i,ref:m,onKeyDown:y})});H4.displayName=bV;function UV(t,{select:e=!1}={}){let A=document.activeElement;for(let a of t)if(vo(a,{select:e}),document.activeElement!==A)return}function EV(t){let e=t8(t),A=JL(e,t),a=JL(e.reverse(),t);return[A,a]}function t8(t){let e=[],A=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{let n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;A.nextNode();)e.push(A.currentNode);return e}function JL(t,e){for(let A of t)if(!LV(A,{upTo:e}))return A}function LV(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function QV(t){return t instanceof HTMLInputElement&&"select"in t}function vo(t,{select:e=!1}={}){if(t&&t.focus){let A=document.activeElement;t.focus({preventScroll:!0}),t!==A&&QV(t)&&e&&t.select()}}var WL=FV();function FV(){let t=[];return{add(e){let A=t[0];e!==A&&A?.pause(),t=$L(t,e),t.unshift(e)},remove(e){t=$L(t,e),t[0]?.resume()}}}function $L(t,e){let A=[...t],a=A.indexOf(e);return a!==-1&&A.splice(a,1),A}function TV(t){return t.filter(e=>e.tagName!=="A")}var $m=Y(ue(),1),A8=Y(zs(),1);var a8=Y(Qe(),1),IV="Portal",cd=$m.forwardRef((t,e)=>{let{container:A,...a}=t,[n,l]=$m.useState(!1);ya(()=>l(!0),[]);let i=A||n&&globalThis?.document?.body;return i?A8.default.createPortal((0,a8.jsx)(zt.div,{...a,ref:e}),i):null});cd.displayName=IV;var xa=Y(ue(),1);var n8=Y(ue(),1);function HV(t,e){return n8.useReducer((A,a)=>e[A][a]??A,t)}var So=t=>{let{present:e,children:A}=t,a=RV(e),n=typeof A=="function"?A({present:a.isPresent}):xa.Children.only(A),l=KA(a.ref,DV(n));return typeof A=="function"||a.isPresent?xa.cloneElement(n,{ref:l}):null};So.displayName="Presence";function RV(t){let[e,A]=xa.useState(),a=xa.useRef(null),n=xa.useRef(t),l=xa.useRef("none"),i=t?"mounted":"unmounted",[s,c]=HV(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return xa.useEffect(()=>{let d=eg(a.current);l.current=s==="mounted"?d:"none"},[s]),ya(()=>{let d=a.current,h=n.current;if(h!==t){let m=l.current,B=eg(d);t?c("MOUNT"):B==="none"||d?.display==="none"?c("UNMOUNT"):c(h&&m!==B?"ANIMATION_OUT":"UNMOUNT"),n.current=t}},[t,c]),ya(()=>{if(e){let d,h=e.ownerDocument.defaultView??window,p=B=>{let v=eg(a.current).includes(CSS.escape(B.animationName));if(B.target===e&&v&&(c("ANIMATION_END"),!n.current)){let b=e.style.animationFillMode;e.style.animationFillMode="forwards",d=h.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},m=B=>{B.target===e&&(l.current=eg(a.current))};return e.addEventListener("animationstart",m),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{h.clearTimeout(d),e.removeEventListener("animationstart",m),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:xa.useCallback(d=>{a.current=d?getComputedStyle(d):null,A(d)},[])}}function eg(t){return t?.animationName||"none"}function DV(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,A=e&&"isReactWarning"in e&&e.isReactWarning;return A?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,A=e&&"isReactWarning"in e&&e.isReactWarning,A?t.props.ref:t.props.ref||t.ref)}var r8=Y(ue(),1),R4=0;function o8(){r8.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??l8()),document.body.insertAdjacentElement("beforeend",t[1]??l8()),R4++,()=>{R4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),R4--}},[])}function l8(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var wa=function(){return wa=Object.assign||function(e){for(var A,a=1,n=arguments.length;a<n;a++){A=arguments[a];for(var l in A)Object.prototype.hasOwnProperty.call(A,l)&&(e[l]=A[l])}return e},wa.apply(this,arguments)};function tg(t,e){var A={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(A[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(A[a[n]]=t[a[n]]);return A}function i8(t,e,A){if(A||arguments.length===2)for(var a=0,n=e.length,l;a<n;a++)(l||!(a in e))&&(l||(l=Array.prototype.slice.call(e,0,a)),l[a]=e[a]);return t.concat(l||Array.prototype.slice.call(e))}var rg=Y(ue());var JA=Y(ue());var Fi="right-scroll-bar-position",Ti="width-before-scroll-bar",D4="with-scroll-bars-hidden",M4="--removed-body-scroll-bar-size";function Ag(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}var s8=Y(ue());function u8(t,e){var A=(0,s8.useState)(function(){return{value:t,callback:e,facade:{get current(){return A.value},set current(a){var n=A.value;n!==a&&(A.value=a,A.callback(a,n))}}}})[0];return A.callback=e,A.facade}var ag=Y(ue());var MV=typeof window<"u"?ag.useLayoutEffect:ag.useEffect,c8=new WeakMap;function _4(t,e){var A=u8(e||null,function(a){return t.forEach(function(n){return Ag(n,a)})});return MV(function(){var a=c8.get(A);if(a){var n=new Set(a),l=new Set(t),i=A.current;n.forEach(function(s){l.has(s)||Ag(s,null)}),l.forEach(function(s){n.has(s)||Ag(s,i)})}c8.set(A,t)},[t]),A}function _V(t){return t}function OV(t,e){e===void 0&&(e=_V);var A=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return A.length?A[A.length-1]:t},useMedium:function(l){var i=e(l,a);return A.push(i),function(){A=A.filter(function(s){return s!==i})}},assignSyncMedium:function(l){for(a=!0;A.length;){var i=A;A=[],i.forEach(l)}A={push:function(s){return l(s)},filter:function(){return A}}},assignMedium:function(l){a=!0;var i=[];if(A.length){var s=A;A=[],s.forEach(l),i=A}var c=function(){var h=i;i=[],h.forEach(l)},d=function(){return Promise.resolve().then(c)};d(),A={push:function(h){i.push(h),d()},filter:function(h){return i=i.filter(h),A}}}};return n}function O4(t){t===void 0&&(t={});var e=OV(null);return e.options=wa({async:!0,ssr:!1},t),e}var f8=Y(ue()),d8=function(t){var e=t.sideCar,A=tg(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return f8.createElement(a,wa({},A))};d8.isSideCarExport=!0;function N4(t,e){return t.useMedium(e),d8}var ng=O4();var G4=function(){},fd=JA.forwardRef(function(t,e){var A=JA.useRef(null),a=JA.useState({onScrollCapture:G4,onWheelCapture:G4,onTouchMoveCapture:G4}),n=a[0],l=a[1],i=t.forwardProps,s=t.children,c=t.className,d=t.removeScrollBar,h=t.enabled,p=t.shards,m=t.sideCar,B=t.noRelative,y=t.noIsolation,v=t.inert,b=t.allowPinchZoom,w=t.as,x=w===void 0?"div":w,S=t.gapMode,U=tg(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=m,F=_4([A,e]),T=wa(wa({},U),n);return JA.createElement(JA.Fragment,null,h&&JA.createElement(L,{sideCar:ng,removeScrollBar:d,shards:p,noRelative:B,noIsolation:y,inert:v,setCallbacks:l,allowPinchZoom:!!b,lockRef:A,gapMode:S}),i?JA.cloneElement(JA.Children.only(s),wa(wa({},T),{ref:F})):JA.createElement(x,wa({},T,{className:c,ref:F}),s))});fd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fd.classNames={fullWidth:Ti,zeroRight:Fi};var wt=Y(ue());var _u=Y(ue());var m8=Y(ue());var h8;var p8=function(){if(h8)return h8;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NV(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=p8();return e&&t.setAttribute("nonce",e),t}function GV(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function KV(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var K4=function(){var t=0,e=null;return{add:function(A){t==0&&(e=NV())&&(GV(e,A),KV(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};var z4=function(){var t=K4();return function(e,A){m8.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&A])}};var dd=function(){var t=z4(),e=function(A){var a=A.styles,n=A.dynamic;return t(a,n),null};return e};var zV={left:0,top:0,right:0,gap:0},V4=function(t){return parseInt(t||"",10)||0},VV=function(t){var e=window.getComputedStyle(document.body),A=e[t==="padding"?"paddingLeft":"marginLeft"],a=e[t==="padding"?"paddingTop":"marginTop"],n=e[t==="padding"?"paddingRight":"marginRight"];return[V4(A),V4(a),V4(n)]},P4=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return zV;var e=VV(t),A=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-A+e[2]-e[0])}};var PV=dd(),Mu="data-scroll-locked",kV=function(t,e,A,a){var n=t.left,l=t.top,i=t.right,s=t.gap;return A===void 0&&(A="margin"),`
|
|
137
|
+
.`.concat(D4,` {
|
|
138
|
+
overflow: hidden `).concat(a,`;
|
|
139
|
+
padding-right: `).concat(s,"px ").concat(a,`;
|
|
140
|
+
}
|
|
141
|
+
body[`).concat(Mu,`] {
|
|
142
|
+
overflow: hidden `).concat(a,`;
|
|
143
|
+
overscroll-behavior: contain;
|
|
144
|
+
`).concat([e&&"position: relative ".concat(a,";"),A==="margin"&&`
|
|
145
|
+
padding-left: `.concat(n,`px;
|
|
146
|
+
padding-top: `).concat(l,`px;
|
|
147
|
+
padding-right: `).concat(i,`px;
|
|
148
|
+
margin-left:0;
|
|
149
|
+
margin-top:0;
|
|
150
|
+
margin-right: `).concat(s,"px ").concat(a,`;
|
|
151
|
+
`),A==="padding"&&"padding-right: ".concat(s,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.`).concat(Fi,` {
|
|
155
|
+
right: `).concat(s,"px ").concat(a,`;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.`).concat(Ti,` {
|
|
159
|
+
margin-right: `).concat(s,"px ").concat(a,`;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.`).concat(Fi," .").concat(Fi,` {
|
|
163
|
+
right: 0 `).concat(a,`;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.`).concat(Ti," .").concat(Ti,` {
|
|
167
|
+
margin-right: 0 `).concat(a,`;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
body[`).concat(Mu,`] {
|
|
171
|
+
`).concat(M4,": ").concat(s,`px;
|
|
172
|
+
}
|
|
173
|
+
`)},g8=function(){var t=parseInt(document.body.getAttribute(Mu)||"0",10);return isFinite(t)?t:0},XV=function(){_u.useEffect(function(){return document.body.setAttribute(Mu,(g8()+1).toString()),function(){var t=g8()-1;t<=0?document.body.removeAttribute(Mu):document.body.setAttribute(Mu,t.toString())}},[])},k4=function(t){var e=t.noRelative,A=t.noImportant,a=t.gapMode,n=a===void 0?"margin":a;XV();var l=_u.useMemo(function(){return P4(n)},[n]);return _u.createElement(PV,{styles:kV(l,!e,n,A?"":"!important")})};var X4=!1;if(typeof window<"u")try{hd=Object.defineProperty({},"passive",{get:function(){return X4=!0,!0}}),window.addEventListener("test",hd,hd),window.removeEventListener("test",hd,hd)}catch{X4=!1}var hd,Ii=X4?{passive:!1}:!1;var qV=function(t){return t.tagName==="TEXTAREA"},B8=function(t,e){if(!(t instanceof Element))return!1;var A=window.getComputedStyle(t);return A[e]!=="hidden"&&!(A.overflowY===A.overflowX&&!qV(t)&&A[e]==="visible")},YV=function(t){return B8(t,"overflowY")},jV=function(t){return B8(t,"overflowX")},q4=function(t,e){var A=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=C8(t,a);if(n){var l=y8(t,a),i=l[1],s=l[2];if(i>s)return!0}a=a.parentNode}while(a&&a!==A.body);return!1},ZV=function(t){var e=t.scrollTop,A=t.scrollHeight,a=t.clientHeight;return[e,A,a]},JV=function(t){var e=t.scrollLeft,A=t.scrollWidth,a=t.clientWidth;return[e,A,a]},C8=function(t,e){return t==="v"?YV(e):jV(e)},y8=function(t,e){return t==="v"?ZV(e):JV(e)},WV=function(t,e){return t==="h"&&e==="rtl"?-1:1},x8=function(t,e,A,a,n){var l=WV(t,window.getComputedStyle(e).direction),i=l*a,s=A.target,c=e.contains(s),d=!1,h=i>0,p=0,m=0;do{if(!s)break;var B=y8(t,s),y=B[0],v=B[1],b=B[2],w=v-b-l*y;(y||w)&&C8(t,s)&&(p+=w,m+=y);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&s!==document.body||c&&(e.contains(s)||e===s));return(h&&(n&&Math.abs(p)<1||!n&&i>p)||!h&&(n&&Math.abs(m)<1||!n&&-i>m))&&(d=!0),d};var lg=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},w8=function(t){return[t.deltaX,t.deltaY]},v8=function(t){return t&&"current"in t?t.current:t},$V=function(t,e){return t[0]===e[0]&&t[1]===e[1]},eP=function(t){return`
|
|
174
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
175
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
176
|
+
`)},tP=0,Ou=[];function S8(t){var e=wt.useRef([]),A=wt.useRef([0,0]),a=wt.useRef(),n=wt.useState(tP++)[0],l=wt.useState(dd)[0],i=wt.useRef(t);wt.useEffect(function(){i.current=t},[t]),wt.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var v=i8([t.lockRef.current],(t.shards||[]).map(v8),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var s=wt.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var w=lg(v),x=A.current,S="deltaX"in v?v.deltaX:x[0]-w[0],U="deltaY"in v?v.deltaY:x[1]-w[1],L,F=v.target,T=Math.abs(S)>Math.abs(U)?"h":"v";if("touches"in v&&T==="h"&&F.type==="range")return!1;var M=window.getSelection(),D=M&&M.anchorNode,G=D?D===F||D.contains(F):!1;if(G)return!1;var ee=q4(T,F);if(!ee)return!0;if(ee?L=T:(L=T==="v"?"h":"v",ee=q4(T,F)),!ee)return!1;if(!a.current&&"changedTouches"in v&&(S||U)&&(a.current=L),!L)return!0;var P=a.current||L;return x8(P,b,v,P==="h"?S:U,!0)},[]),c=wt.useCallback(function(v){var b=v;if(!(!Ou.length||Ou[Ou.length-1]!==l)){var w="deltaY"in b?w8(b):lg(b),x=e.current.filter(function(L){return L.name===b.type&&(L.target===b.target||b.target===L.shadowParent)&&$V(L.delta,w)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var S=(i.current.shards||[]).map(v8).filter(Boolean).filter(function(L){return L.contains(b.target)}),U=S.length>0?s(b,S[0]):!i.current.noIsolation;U&&b.cancelable&&b.preventDefault()}}},[]),d=wt.useCallback(function(v,b,w,x){var S={name:v,delta:b,target:w,should:x,shadowParent:AP(w)};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(U){return U!==S})},1)},[]),h=wt.useCallback(function(v){A.current=lg(v),a.current=void 0},[]),p=wt.useCallback(function(v){d(v.type,w8(v),v.target,s(v,t.lockRef.current))},[]),m=wt.useCallback(function(v){d(v.type,lg(v),v.target,s(v,t.lockRef.current))},[]);wt.useEffect(function(){return Ou.push(l),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Ii),document.addEventListener("touchmove",c,Ii),document.addEventListener("touchstart",h,Ii),function(){Ou=Ou.filter(function(v){return v!==l}),document.removeEventListener("wheel",c,Ii),document.removeEventListener("touchmove",c,Ii),document.removeEventListener("touchstart",h,Ii)}},[]);var B=t.removeScrollBar,y=t.inert;return wt.createElement(wt.Fragment,null,y?wt.createElement(l,{styles:eP(n)}):null,B?wt.createElement(k4,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function AP(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}var b8=N4(ng,S8);var U8=rg.forwardRef(function(t,e){return rg.createElement(fd,wa({},t,{ref:e,sideCar:b8}))});U8.classNames=fd.classNames;var Y4=U8;var aP=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Nu=new WeakMap,og=new WeakMap,ig={},j4=0,E8=function(t){return t&&(t.host||E8(t.parentNode))},nP=function(t,e){return e.map(function(A){if(t.contains(A))return A;var a=E8(A);return a&&t.contains(a)?a:(console.error("aria-hidden",A,"in not contained inside",t,". Doing nothing"),null)}).filter(function(A){return!!A})},lP=function(t,e,A,a){var n=nP(e,Array.isArray(t)?t:[t]);ig[A]||(ig[A]=new WeakMap);var l=ig[A],i=[],s=new Set,c=new Set(n),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};n.forEach(d);var h=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(m){if(s.has(m))h(m);else try{var B=m.getAttribute(a),y=B!==null&&B!=="false",v=(Nu.get(m)||0)+1,b=(l.get(m)||0)+1;Nu.set(m,v),l.set(m,b),i.push(m),v===1&&y&&og.set(m,!0),b===1&&m.setAttribute(A,"true"),y||m.setAttribute(a,"true")}catch(w){console.error("aria-hidden: cannot operate on ",m,w)}})};return h(e),s.clear(),j4++,function(){i.forEach(function(p){var m=Nu.get(p)-1,B=l.get(p)-1;Nu.set(p,m),l.set(p,B),m||(og.has(p)||p.removeAttribute(a),og.delete(p)),B||p.removeAttribute(A)}),j4--,j4||(Nu=new WeakMap,Nu=new WeakMap,og=new WeakMap,ig={})}},L8=function(t,e,A){A===void 0&&(A="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),n=e||aP(t);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),lP(a,n,A,"aria-hidden")):function(){return null}};var gA=Y(ue(),1);var sg=Y(Qe(),1);function Q8(t){let e=rP(t),A=gA.forwardRef((a,n)=>{let{children:l,...i}=a,s=gA.Children.toArray(l),c=s.find(iP);if(c){let d=c.props.children,h=s.map(p=>p===c?gA.Children.count(d)>1?gA.Children.only(null):gA.isValidElement(d)?d.props.children:null:p);return(0,sg.jsx)(e,{...i,ref:n,children:gA.isValidElement(d)?gA.cloneElement(d,void 0,h):null})}return(0,sg.jsx)(e,{...i,ref:n,children:l})});return A.displayName=`${t}.Slot`,A}function rP(t){let e=gA.forwardRef((A,a)=>{let{children:n,...l}=A;if(gA.isValidElement(n)){let i=uP(n),s=sP(l,n.props);return n.type!==gA.Fragment&&(s.ref=a?Qi(a,i):i),gA.cloneElement(n,s)}return gA.Children.count(n)>1?gA.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var oP=Symbol("radix.slottable");function iP(t){return gA.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===oP}function sP(t,e){let A={...e};for(let a in e){let n=t[a],l=e[a];/^on[A-Z]/.test(a)?n&&l?A[a]=(...s)=>{let c=l(...s);return n(...s),c}:n&&(A[a]=n):a==="style"?A[a]={...n,...l}:a==="className"&&(A[a]=[n,l].filter(Boolean).join(" "))}return{...t,...A}}function uP(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,A=e&&"isReactWarning"in e&&e.isReactWarning;return A?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,A=e&&"isReactWarning"in e&&e.isReactWarning,A?t.props.ref:t.props.ref||t.ref)}var rt=Y(Qe(),1),cg="Dialog",[F8,sW]=Hu(cg),[cP,Gn]=F8(cg),fP=t=>{let{__scopeDialog:e,children:A,open:a,defaultOpen:n,onOpenChange:l,modal:i=!0}=t,s=dt.useRef(null),c=dt.useRef(null),[d,h]=Zm({prop:a,defaultProp:n??!1,onChange:l,caller:cg});return(0,rt.jsx)(cP,{scope:e,triggerRef:s,contentRef:c,contentId:Ru(),titleId:Ru(),descriptionId:Ru(),open:d,onOpenChange:h,onOpenToggle:dt.useCallback(()=>h(p=>!p),[h]),modal:i,children:A})};fP.displayName=cg;var T8="DialogTrigger",dP=dt.forwardRef((t,e)=>{let{__scopeDialog:A,...a}=t,n=Gn(T8,A),l=KA(e,n.triggerRef);return(0,rt.jsx)(zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":W4(n.open),...a,ref:l,onClick:zA(t.onClick,n.onOpenToggle)})});dP.displayName=T8;var Z4="DialogPortal",[hP,I8]=F8(Z4,{forceMount:void 0}),H8=t=>{let{__scopeDialog:e,forceMount:A,children:a,container:n}=t,l=Gn(Z4,e);return(0,rt.jsx)(hP,{scope:e,forceMount:A,children:dt.Children.map(a,i=>(0,rt.jsx)(So,{present:A||l.open,children:(0,rt.jsx)(cd,{asChild:!0,container:n,children:i})}))})};H8.displayName=Z4;var ug="DialogOverlay",R8=dt.forwardRef((t,e)=>{let A=I8(ug,t.__scopeDialog),{forceMount:a=A.forceMount,...n}=t,l=Gn(ug,t.__scopeDialog);return l.modal?(0,rt.jsx)(So,{present:a||l.open,children:(0,rt.jsx)(mP,{...n,ref:e})}):null});R8.displayName=ug;var pP=Q8("DialogOverlay.RemoveScroll"),mP=dt.forwardRef((t,e)=>{let{__scopeDialog:A,...a}=t,n=Gn(ug,A);return(0,rt.jsx)(Y4,{as:pP,allowPinchZoom:!0,shards:[n.contentRef],children:(0,rt.jsx)(zt.div,{"data-state":W4(n.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),Hi="DialogContent",D8=dt.forwardRef((t,e)=>{let A=I8(Hi,t.__scopeDialog),{forceMount:a=A.forceMount,...n}=t,l=Gn(Hi,t.__scopeDialog);return(0,rt.jsx)(So,{present:a||l.open,children:l.modal?(0,rt.jsx)(gP,{...n,ref:e}):(0,rt.jsx)(BP,{...n,ref:e})})});D8.displayName=Hi;var gP=dt.forwardRef((t,e)=>{let A=Gn(Hi,t.__scopeDialog),a=dt.useRef(null),n=KA(e,A.contentRef,a);return dt.useEffect(()=>{let l=a.current;if(l)return L8(l)},[]),(0,rt.jsx)(M8,{...t,ref:n,trapFocus:A.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:zA(t.onCloseAutoFocus,l=>{l.preventDefault(),A.triggerRef.current?.focus()}),onPointerDownOutside:zA(t.onPointerDownOutside,l=>{let i=l.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&l.preventDefault()}),onFocusOutside:zA(t.onFocusOutside,l=>l.preventDefault())})}),BP=dt.forwardRef((t,e)=>{let A=Gn(Hi,t.__scopeDialog),a=dt.useRef(!1),n=dt.useRef(!1);return(0,rt.jsx)(M8,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{t.onCloseAutoFocus?.(l),l.defaultPrevented||(a.current||A.triggerRef.current?.focus(),l.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:l=>{t.onInteractOutside?.(l),l.defaultPrevented||(a.current=!0,l.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let i=l.target;A.triggerRef.current?.contains(i)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&n.current&&l.preventDefault()}})}),M8=dt.forwardRef((t,e)=>{let{__scopeDialog:A,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:l,...i}=t,s=Gn(Hi,A),c=dt.useRef(null),d=KA(e,c);return o8(),(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(H4,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:l,children:(0,rt.jsx)(ud,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":W4(s.open),...i,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(CP,{titleId:s.titleId}),(0,rt.jsx)(xP,{contentRef:c,descriptionId:s.descriptionId})]})]})}),J4="DialogTitle",_8=dt.forwardRef((t,e)=>{let{__scopeDialog:A,...a}=t,n=Gn(J4,A);return(0,rt.jsx)(zt.h2,{id:n.titleId,...a,ref:e})});_8.displayName=J4;var O8="DialogDescription",N8=dt.forwardRef((t,e)=>{let{__scopeDialog:A,...a}=t,n=Gn(O8,A);return(0,rt.jsx)(zt.p,{id:n.descriptionId,...a,ref:e})});N8.displayName=O8;var G8="DialogClose",K8=dt.forwardRef((t,e)=>{let{__scopeDialog:A,...a}=t,n=Gn(G8,A);return(0,rt.jsx)(zt.button,{type:"button",...a,ref:e,onClick:zA(t.onClick,()=>n.onOpenChange(!1))})});K8.displayName=G8;function W4(t){return t?"open":"closed"}var z8="DialogTitleWarning",[uW,V8]=_L(z8,{contentName:Hi,titleName:J4,docsSlug:"dialog"}),CP=({titleId:t})=>{let e=V8(z8),A=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
177
|
+
|
|
178
|
+
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
179
|
+
|
|
180
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return dt.useEffect(()=>{t&&(document.getElementById(t)||console.error(A))},[A,t]),null},yP="DialogDescriptionWarning",xP=({contentRef:t,descriptionId:e})=>{let a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V8(yP).contentName}}.`;return dt.useEffect(()=>{let n=t.current?.getAttribute("aria-describedby");e&&n&&(document.getElementById(e)||console.warn(a))},[a,t,e]),null};var P8=H8,$4=R8,ex=D8,tx=_8,Ax=N8,k8=K8;var dg=Y(ue());var X8=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fg=(...t)=>t.filter((e,A,a)=>!!e&&a.indexOf(e)===A).join(" ");var pd=Y(ue());var q8={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"};var Y8=(0,pd.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:A=2,absoluteStrokeWidth:a,className:n="",children:l,iconNode:i,...s},c)=>(0,pd.createElement)("svg",{ref:c,...q8,width:e,height:e,stroke:t,strokeWidth:a?Number(A)*24/Number(e):A,className:fg("lucide",n),...s},[...i.map(([d,h])=>(0,pd.createElement)(d,h)),...Array.isArray(l)?l:[l]]));var ke=(t,e)=>{let A=(0,dg.forwardRef)(({className:a,...n},l)=>(0,dg.createElement)(Y8,{ref:l,iconNode:e,className:fg(`lucide-${X8(t)}`,a),...n}));return A.displayName=`${t}`,A};var md=ke("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var gd=ke("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var bo=ke("CircleHelp",[["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"}]]);var Bd=ke("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var Gu=ke("Crop",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);var Cd=ke("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);var yd=ke("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var xd=ke("MousePointer2",[["path",{d:"m4 4 7.07 17 2.51-7.39L21 11.07z",key:"1vqm48"}]]);var Uo=ke("Pen",[["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"}]]);var wd=ke("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);var vd=ke("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);var Sd=ke("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["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"}]]);var bd=ke("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);var Ud=ke("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);var Ri=ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Ed=ke("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);var Ld=ke("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);var Ja=Y(Qe()),S7=Y(ue()),b7=Y(Qe()),U7=Y(ue()),E7=Y(Qe()),L7=Y(ue()),Q7=Y(Qe()),F7=Y(ue());var Ee=Y(ue(),1);var Sa=Y(ue(),1);var J8=["top","right","bottom","left"];var yl=Math.min,na=Math.max,Fd=Math.round,Td=Math.floor,Kn=t=>({x:t,y:t}),vP={left:"right",right:"left",bottom:"top",top:"bottom"};function pg(t,e,A){return na(t,yl(e,A))}function xl(t,e){return typeof t=="function"?t(e):t}function wl(t){return t.split("-")[0]}function Di(t){return t.split("-")[1]}function mg(t){return t==="x"?"y":"x"}function gg(t){return t==="y"?"height":"width"}function zn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Bg(t){return mg(zn(t))}function W8(t,e,A){A===void 0&&(A=!1);let a=Di(t),n=Bg(t),l=gg(n),i=n==="x"?a===(A?"end":"start")?"right":"left":a==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(i=Qd(i)),[i,Qd(i)]}function $8(t){let e=Qd(t);return[hg(t),e,hg(e)]}function hg(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var j8=["left","right"],Z8=["right","left"],SP=["top","bottom"],bP=["bottom","top"];function UP(t,e,A){switch(t){case"top":case"bottom":return A?e?Z8:j8:e?j8:Z8;case"left":case"right":return e?SP:bP;default:return[]}}function eQ(t,e,A,a){let n=Di(t),l=UP(wl(t),A==="start",a);return n&&(l=l.map(i=>i+"-"+n),e&&(l=l.concat(l.map(hg)))),l}function Qd(t){let e=wl(t);return vP[e]+t.slice(e.length)}function EP(t){return{top:0,right:0,bottom:0,left:0,...t}}function ax(t){return typeof t!="number"?EP(t):{top:t,right:t,bottom:t,left:t}}function Mi(t){let{x:e,y:A,width:a,height:n}=t;return{width:a,height:n,top:A,left:e,right:e+a,bottom:A+n,x:e,y:A}}function tQ(t,e,A){let{reference:a,floating:n}=t,l=zn(e),i=Bg(e),s=gg(i),c=wl(e),d=l==="y",h=a.x+a.width/2-n.width/2,p=a.y+a.height/2-n.height/2,m=a[s]/2-n[s]/2,B;switch(c){case"top":B={x:h,y:a.y-n.height};break;case"bottom":B={x:h,y:a.y+a.height};break;case"right":B={x:a.x+a.width,y:p};break;case"left":B={x:a.x-n.width,y:p};break;default:B={x:a.x,y:a.y}}switch(Di(e)){case"start":B[i]-=m*(A&&d?-1:1);break;case"end":B[i]+=m*(A&&d?-1:1);break}return B}async function nQ(t,e){var A;e===void 0&&(e={});let{x:a,y:n,platform:l,rects:i,elements:s,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:m=!1,padding:B=0}=xl(e,t),y=ax(B),b=s[m?p==="floating"?"reference":"floating":p],w=Mi(await l.getClippingRect({element:(A=await(l.isElement==null?void 0:l.isElement(b)))==null||A?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:d,rootBoundary:h,strategy:c})),x=p==="floating"?{x:a,y:n,width:i.floating.width,height:i.floating.height}:i.reference,S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),U=await(l.isElement==null?void 0:l.isElement(S))?await(l.getScale==null?void 0:l.getScale(S))||{x:1,y:1}:{x:1,y:1},L=Mi(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:c}):x);return{top:(w.top-L.top+y.top)/U.y,bottom:(L.bottom-w.bottom+y.bottom)/U.y,left:(w.left-L.left+y.left)/U.x,right:(L.right-w.right+y.right)/U.x}}var LP=50,lQ=async(t,e,A)=>{let{placement:a="bottom",strategy:n="absolute",middleware:l=[],platform:i}=A,s=i.detectOverflow?i:{...i,detectOverflow:nQ},c=await(i.isRTL==null?void 0:i.isRTL(e)),d=await i.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:p}=tQ(d,a,c),m=a,B=0,y={};for(let v=0;v<l.length;v++){let b=l[v];if(!b)continue;let{name:w,fn:x}=b,{x:S,y:U,data:L,reset:F}=await x({x:h,y:p,initialPlacement:a,placement:m,strategy:n,middlewareData:y,rects:d,platform:s,elements:{reference:t,floating:e}});h=S??h,p=U??p,y[w]={...y[w],...L},F&&B<LP&&(B++,typeof F=="object"&&(F.placement&&(m=F.placement),F.rects&&(d=F.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:n}):F.rects),{x:h,y:p}=tQ(d,m,c)),v=-1)}return{x:h,y:p,placement:m,strategy:n,middlewareData:y}},rQ=t=>({name:"arrow",options:t,async fn(e){let{x:A,y:a,placement:n,rects:l,platform:i,elements:s,middlewareData:c}=e,{element:d,padding:h=0}=xl(t,e)||{};if(d==null)return{};let p=ax(h),m={x:A,y:a},B=Bg(n),y=gg(B),v=await i.getDimensions(d),b=B==="y",w=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",U=l.reference[y]+l.reference[B]-m[B]-l.floating[y],L=m[B]-l.reference[B],F=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d)),T=F?F[S]:0;(!T||!await(i.isElement==null?void 0:i.isElement(F)))&&(T=s.floating[S]||l.floating[y]);let M=U/2-L/2,D=T/2-v[y]/2-1,G=yl(p[w],D),ee=yl(p[x],D),P=G,se=T-v[y]-ee,le=T/2-v[y]/2+M,te=pg(P,le,se),q=!c.arrow&&Di(n)!=null&&le!==te&&l.reference[y]/2-(le<P?G:ee)-v[y]/2<0,fe=q?le<P?le-P:le-se:0;return{[B]:m[B]+fe,data:{[B]:te,centerOffset:le-te-fe,...q&&{alignmentOffset:fe}},reset:q}}});var oQ=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var A,a;let{placement:n,middlewareData:l,rects:i,initialPlacement:s,platform:c,elements:d}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:B="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...b}=xl(t,e);if((A=l.arrow)!=null&&A.alignmentOffset)return{};let w=wl(n),x=zn(s),S=wl(s)===s,U=await(c.isRTL==null?void 0:c.isRTL(d.floating)),L=m||(S||!v?[Qd(s)]:$8(s)),F=y!=="none";!m&&F&&L.push(...eQ(s,v,y,U));let T=[s,...L],M=await c.detectOverflow(e,b),D=[],G=((a=l.flip)==null?void 0:a.overflows)||[];if(h&&D.push(M[w]),p){let le=W8(n,i,U);D.push(M[le[0]],M[le[1]])}if(G=[...G,{placement:n,overflows:D}],!D.every(le=>le<=0)){var ee,P;let le=(((ee=l.flip)==null?void 0:ee.index)||0)+1,te=T[le];if(te&&(!(p==="alignment"?x!==zn(te):!1)||G.every(X=>zn(X.placement)===x?X.overflows[0]>0:!0)))return{data:{index:le,overflows:G},reset:{placement:te}};let q=(P=G.filter(fe=>fe.overflows[0]<=0).sort((fe,X)=>fe.overflows[1]-X.overflows[1])[0])==null?void 0:P.placement;if(!q)switch(B){case"bestFit":{var se;let fe=(se=G.filter(X=>{if(F){let oe=zn(X.placement);return oe===x||oe==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(oe=>oe>0).reduce((oe,ye)=>oe+ye,0)]).sort((X,oe)=>X[1]-oe[1])[0])==null?void 0:se[0];fe&&(q=fe);break}case"initialPlacement":q=s;break}if(n!==q)return{reset:{placement:q}}}return{}}}};function AQ(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function aQ(t){return J8.some(e=>t[e]>=0)}var iQ=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:A,platform:a}=e,{strategy:n="referenceHidden",...l}=xl(t,e);switch(n){case"referenceHidden":{let i=await a.detectOverflow(e,{...l,elementContext:"reference"}),s=AQ(i,A.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:aQ(s)}}}case"escaped":{let i=await a.detectOverflow(e,{...l,altBoundary:!0}),s=AQ(i,A.floating);return{data:{escapedOffsets:s,escaped:aQ(s)}}}default:return{}}}}};var sQ=new Set(["left","top"]);async function QP(t,e){let{placement:A,platform:a,elements:n}=t,l=await(a.isRTL==null?void 0:a.isRTL(n.floating)),i=wl(A),s=Di(A),c=zn(A)==="y",d=sQ.has(i)?-1:1,h=l&&c?-1:1,p=xl(e,t),{mainAxis:m,crossAxis:B,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof y=="number"&&(B=s==="end"?y*-1:y),c?{x:B*h,y:m*d}:{x:m*d,y:B*h}}var uQ=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var A,a;let{x:n,y:l,placement:i,middlewareData:s}=e,c=await QP(e,t);return i===((A=s.offset)==null?void 0:A.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:n+c.x,y:l+c.y,data:{...c,placement:i}}}}},cQ=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:A,y:a,placement:n,platform:l}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x,y:S}=w;return{x,y:S}}},...d}=xl(t,e),h={x:A,y:a},p=await l.detectOverflow(e,d),m=zn(wl(n)),B=mg(m),y=h[B],v=h[m];if(i){let w=B==="y"?"top":"left",x=B==="y"?"bottom":"right",S=y+p[w],U=y-p[x];y=pg(S,y,U)}if(s){let w=m==="y"?"top":"left",x=m==="y"?"bottom":"right",S=v+p[w],U=v-p[x];v=pg(S,v,U)}let b=c.fn({...e,[B]:y,[m]:v});return{...b,data:{x:b.x-A,y:b.y-a,enabled:{[B]:i,[m]:s}}}}}},fQ=function(t){return t===void 0&&(t={}),{options:t,fn(e){let{x:A,y:a,placement:n,rects:l,middlewareData:i}=e,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=xl(t,e),h={x:A,y:a},p=zn(n),m=mg(p),B=h[m],y=h[p],v=xl(s,e),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){let S=m==="y"?"height":"width",U=l.reference[m]-l.floating[S]+b.mainAxis,L=l.reference[m]+l.reference[S]-b.mainAxis;B<U?B=U:B>L&&(B=L)}if(d){var w,x;let S=m==="y"?"width":"height",U=sQ.has(wl(n)),L=l.reference[p]-l.floating[S]+(U&&((w=i.offset)==null?void 0:w[p])||0)+(U?0:b.crossAxis),F=l.reference[p]+l.reference[S]+(U?0:((x=i.offset)==null?void 0:x[p])||0)-(U?b.crossAxis:0);y<L?y=L:y>F&&(y=F)}return{[m]:B,[p]:y}}}},dQ=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var A,a;let{placement:n,rects:l,platform:i,elements:s}=e,{apply:c=()=>{},...d}=xl(t,e),h=await i.detectOverflow(e,d),p=wl(n),m=Di(n),B=zn(n)==="y",{width:y,height:v}=l.floating,b,w;p==="top"||p==="bottom"?(b=p,w=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(w=p,b=m==="end"?"top":"bottom");let x=v-h.top-h.bottom,S=y-h.left-h.right,U=yl(v-h[b],x),L=yl(y-h[w],S),F=!e.middlewareData.shift,T=U,M=L;if((A=e.middlewareData.shift)!=null&&A.enabled.x&&(M=S),(a=e.middlewareData.shift)!=null&&a.enabled.y&&(T=x),F&&!m){let G=na(h.left,0),ee=na(h.right,0),P=na(h.top,0),se=na(h.bottom,0);B?M=y-2*(G!==0||ee!==0?G+ee:na(h.left,h.right)):T=v-2*(P!==0||se!==0?P+se:na(h.top,h.bottom))}await c({...e,availableWidth:M,availableHeight:T});let D=await i.getDimensions(s.floating);return y!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function Cg(){return typeof window<"u"}function Ni(t){return pQ(t)?(t.nodeName||"").toLowerCase():"#document"}function va(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Vn(t){var e;return(e=(pQ(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function pQ(t){return Cg()?t instanceof Node||t instanceof va(t).Node:!1}function vn(t){return Cg()?t instanceof Element||t instanceof va(t).Element:!1}function vl(t){return Cg()?t instanceof HTMLElement||t instanceof va(t).HTMLElement:!1}function hQ(t){return!Cg()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof va(t).ShadowRoot}function Ku(t){let{overflow:e,overflowX:A,overflowY:a,display:n}=Sn(t);return/auto|scroll|overlay|hidden|clip/.test(e+a+A)&&n!=="inline"&&n!=="contents"}function mQ(t){return/^(table|td|th)$/.test(Ni(t))}function Id(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var FP=/transform|translate|scale|rotate|perspective|filter/,TP=/paint|layout|strict|content/,_i=t=>!!t&&t!=="none",nx;function yg(t){let e=vn(t)?Sn(t):t;return _i(e.transform)||_i(e.translate)||_i(e.scale)||_i(e.rotate)||_i(e.perspective)||!xg()&&(_i(e.backdropFilter)||_i(e.filter))||FP.test(e.willChange||"")||TP.test(e.contain||"")}function gQ(t){let e=cr(t);for(;vl(e)&&!Gi(e);){if(yg(e))return e;if(Id(e))return null;e=cr(e)}return null}function xg(){return nx==null&&(nx=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nx}function Gi(t){return/^(html|body|#document)$/.test(Ni(t))}function Sn(t){return va(t).getComputedStyle(t)}function Hd(t){return vn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function cr(t){if(Ni(t)==="html")return t;let e=t.assignedSlot||t.parentNode||hQ(t)&&t.host||Vn(t);return hQ(e)?e.host:e}function BQ(t){let e=cr(t);return Gi(e)?t.ownerDocument?t.ownerDocument.body:t.body:vl(e)&&Ku(e)?e:BQ(e)}function Oi(t,e,A){var a;e===void 0&&(e=[]),A===void 0&&(A=!0);let n=BQ(t),l=n===((a=t.ownerDocument)==null?void 0:a.body),i=va(n);if(l){let s=wg(i);return e.concat(i,i.visualViewport||[],Ku(n)?n:[],s&&A?Oi(s):[])}else return e.concat(n,Oi(n,[],A))}function wg(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function wQ(t){let e=Sn(t),A=parseFloat(e.width)||0,a=parseFloat(e.height)||0,n=vl(t),l=n?t.offsetWidth:A,i=n?t.offsetHeight:a,s=Fd(A)!==l||Fd(a)!==i;return s&&(A=l,a=i),{width:A,height:a,$:s}}function rx(t){return vn(t)?t:t.contextElement}function zu(t){let e=rx(t);if(!vl(e))return Kn(1);let A=e.getBoundingClientRect(),{width:a,height:n,$:l}=wQ(e),i=(l?Fd(A.width):A.width)/a,s=(l?Fd(A.height):A.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var IP=Kn(0);function vQ(t){let e=va(t);return!xg()||!e.visualViewport?IP:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function HP(t,e,A){return e===void 0&&(e=!1),!A||e&&A!==va(t)?!1:e}function Ki(t,e,A,a){e===void 0&&(e=!1),A===void 0&&(A=!1);let n=t.getBoundingClientRect(),l=rx(t),i=Kn(1);e&&(a?vn(a)&&(i=zu(a)):i=zu(t));let s=HP(l,A,a)?vQ(l):Kn(0),c=(n.left+s.x)/i.x,d=(n.top+s.y)/i.y,h=n.width/i.x,p=n.height/i.y;if(l){let m=va(l),B=a&&vn(a)?va(a):a,y=m,v=wg(y);for(;v&&a&&B!==y;){let b=zu(v),w=v.getBoundingClientRect(),x=Sn(v),S=w.left+(v.clientLeft+parseFloat(x.paddingLeft))*b.x,U=w.top+(v.clientTop+parseFloat(x.paddingTop))*b.y;c*=b.x,d*=b.y,h*=b.x,p*=b.y,c+=S,d+=U,y=va(v),v=wg(y)}}return Mi({width:h,height:p,x:c,y:d})}function vg(t,e){let A=Hd(t).scrollLeft;return e?e.left+A:Ki(Vn(t)).left+A}function SQ(t,e){let A=t.getBoundingClientRect(),a=A.left+e.scrollLeft-vg(t,A),n=A.top+e.scrollTop;return{x:a,y:n}}function RP(t){let{elements:e,rect:A,offsetParent:a,strategy:n}=t,l=n==="fixed",i=Vn(a),s=e?Id(e.floating):!1;if(a===i||s&&l)return A;let c={scrollLeft:0,scrollTop:0},d=Kn(1),h=Kn(0),p=vl(a);if((p||!p&&!l)&&((Ni(a)!=="body"||Ku(i))&&(c=Hd(a)),p)){let B=Ki(a);d=zu(a),h.x=B.x+a.clientLeft,h.y=B.y+a.clientTop}let m=i&&!p&&!l?SQ(i,c):Kn(0);return{width:A.width*d.x,height:A.height*d.y,x:A.x*d.x-c.scrollLeft*d.x+h.x+m.x,y:A.y*d.y-c.scrollTop*d.y+h.y+m.y}}function DP(t){return Array.from(t.getClientRects())}function MP(t){let e=Vn(t),A=Hd(t),a=t.ownerDocument.body,n=na(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),l=na(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),i=-A.scrollLeft+vg(t),s=-A.scrollTop;return Sn(a).direction==="rtl"&&(i+=na(e.clientWidth,a.clientWidth)-n),{width:n,height:l,x:i,y:s}}var CQ=25;function _P(t,e){let A=va(t),a=Vn(t),n=A.visualViewport,l=a.clientWidth,i=a.clientHeight,s=0,c=0;if(n){l=n.width,i=n.height;let h=xg();(!h||h&&e==="fixed")&&(s=n.offsetLeft,c=n.offsetTop)}let d=vg(a);if(d<=0){let h=a.ownerDocument,p=h.body,m=getComputedStyle(p),B=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(a.clientWidth-p.clientWidth-B);y<=CQ&&(l-=y)}else d<=CQ&&(l+=d);return{width:l,height:i,x:s,y:c}}function OP(t,e){let A=Ki(t,!0,e==="fixed"),a=A.top+t.clientTop,n=A.left+t.clientLeft,l=vl(t)?zu(t):Kn(1),i=t.clientWidth*l.x,s=t.clientHeight*l.y,c=n*l.x,d=a*l.y;return{width:i,height:s,x:c,y:d}}function yQ(t,e,A){let a;if(e==="viewport")a=_P(t,A);else if(e==="document")a=MP(Vn(t));else if(vn(e))a=OP(e,A);else{let n=vQ(t);a={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Mi(a)}function bQ(t,e){let A=cr(t);return A===e||!vn(A)||Gi(A)?!1:Sn(A).position==="fixed"||bQ(A,e)}function NP(t,e){let A=e.get(t);if(A)return A;let a=Oi(t,[],!1).filter(s=>vn(s)&&Ni(s)!=="body"),n=null,l=Sn(t).position==="fixed",i=l?cr(t):t;for(;vn(i)&&!Gi(i);){let s=Sn(i),c=yg(i);!c&&s.position==="fixed"&&(n=null),(l?!c&&!n:!c&&s.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||Ku(i)&&!c&&bQ(t,i))?a=a.filter(h=>h!==i):n=s,i=cr(i)}return e.set(t,a),a}function GP(t){let{element:e,boundary:A,rootBoundary:a,strategy:n}=t,i=[...A==="clippingAncestors"?Id(e)?[]:NP(e,this._c):[].concat(A),a],s=yQ(e,i[0],n),c=s.top,d=s.right,h=s.bottom,p=s.left;for(let m=1;m<i.length;m++){let B=yQ(e,i[m],n);c=na(B.top,c),d=yl(B.right,d),h=yl(B.bottom,h),p=na(B.left,p)}return{width:d-p,height:h-c,x:p,y:c}}function KP(t){let{width:e,height:A}=wQ(t);return{width:e,height:A}}function zP(t,e,A){let a=vl(e),n=Vn(e),l=A==="fixed",i=Ki(t,!0,l,e),s={scrollLeft:0,scrollTop:0},c=Kn(0);function d(){c.x=vg(n)}if(a||!a&&!l)if((Ni(e)!=="body"||Ku(n))&&(s=Hd(e)),a){let B=Ki(e,!0,l,e);c.x=B.x+e.clientLeft,c.y=B.y+e.clientTop}else n&&d();l&&!a&&n&&d();let h=n&&!a&&!l?SQ(n,s):Kn(0),p=i.left+s.scrollLeft-c.x-h.x,m=i.top+s.scrollTop-c.y-h.y;return{x:p,y:m,width:i.width,height:i.height}}function lx(t){return Sn(t).position==="static"}function xQ(t,e){if(!vl(t)||Sn(t).position==="fixed")return null;if(e)return e(t);let A=t.offsetParent;return Vn(t)===A&&(A=A.ownerDocument.body),A}function UQ(t,e){let A=va(t);if(Id(t))return A;if(!vl(t)){let n=cr(t);for(;n&&!Gi(n);){if(vn(n)&&!lx(n))return n;n=cr(n)}return A}let a=xQ(t,e);for(;a&&mQ(a)&&lx(a);)a=xQ(a,e);return a&&Gi(a)&&lx(a)&&!yg(a)?A:a||gQ(t)||A}var VP=async function(t){let e=this.getOffsetParent||UQ,A=this.getDimensions,a=await A(t.floating);return{reference:zP(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function PP(t){return Sn(t).direction==="rtl"}var EQ={convertOffsetParentRelativeRectToViewportRelativeRect:RP,getDocumentElement:Vn,getClippingRect:GP,getOffsetParent:UQ,getElementRects:VP,getClientRects:DP,getDimensions:KP,getScale:zu,isElement:vn,isRTL:PP};function LQ(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function kP(t,e){let A=null,a,n=Vn(t);function l(){var s;clearTimeout(a),(s=A)==null||s.disconnect(),A=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),l();let d=t.getBoundingClientRect(),{left:h,top:p,width:m,height:B}=d;if(s||e(),!m||!B)return;let y=Td(p),v=Td(n.clientWidth-(h+m)),b=Td(n.clientHeight-(p+B)),w=Td(h),S={rootMargin:-y+"px "+-v+"px "+-b+"px "+-w+"px",threshold:na(0,yl(1,c))||1},U=!0;function L(F){let T=F[0].intersectionRatio;if(T!==c){if(!U)return i();T?i(!1,T):a=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!LQ(d,t.getBoundingClientRect())&&i(),U=!1}try{A=new IntersectionObserver(L,{...S,root:n.ownerDocument})}catch{A=new IntersectionObserver(L,S)}A.observe(t)}return i(!0),l}function ox(t,e,A,a){a===void 0&&(a={});let{ancestorScroll:n=!0,ancestorResize:l=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,d=rx(t),h=n||l?[...d?Oi(d):[],...e?Oi(e):[]]:[];h.forEach(w=>{n&&w.addEventListener("scroll",A,{passive:!0}),l&&w.addEventListener("resize",A)});let p=d&&s?kP(d,A):null,m=-1,B=null;i&&(B=new ResizeObserver(w=>{let[x]=w;x&&x.target===d&&B&&e&&(B.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=B)==null||S.observe(e)})),A()}),d&&!c&&B.observe(d),e&&B.observe(e));let y,v=c?Ki(t):null;c&&b();function b(){let w=Ki(t);v&&!LQ(v,w)&&A(),v=w,y=requestAnimationFrame(b)}return A(),()=>{var w;h.forEach(x=>{n&&x.removeEventListener("scroll",A),l&&x.removeEventListener("resize",A)}),p?.(),(w=B)==null||w.disconnect(),B=null,c&&cancelAnimationFrame(y)}}var QQ=uQ;var FQ=cQ,TQ=oQ,IQ=dQ,HQ=iQ,ix=rQ;var RQ=fQ,sx=(t,e,A)=>{let a=new Map,n={platform:EQ,...A},l={...n.platform,_c:a};return lQ(t,e,{...n,platform:l})};var oA=Y(ue(),1),MQ=Y(ue(),1),_Q=Y(zs(),1),XP=typeof document<"u",qP=function(){},Sg=XP?MQ.useLayoutEffect:qP;function bg(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let A,a,n;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(A=t.length,A!==e.length)return!1;for(a=A;a--!==0;)if(!bg(t[a],e[a]))return!1;return!0}if(n=Object.keys(t),A=n.length,A!==Object.keys(e).length)return!1;for(a=A;a--!==0;)if(!{}.hasOwnProperty.call(e,n[a]))return!1;for(a=A;a--!==0;){let l=n[a];if(!(l==="_owner"&&t.$$typeof)&&!bg(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}function OQ(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function DQ(t,e){let A=OQ(t);return Math.round(e*A)/A}function ux(t){let e=oA.useRef(t);return Sg(()=>{e.current=t}),e}function NQ(t){t===void 0&&(t={});let{placement:e="bottom",strategy:A="absolute",middleware:a=[],platform:n,elements:{reference:l,floating:i}={},transform:s=!0,whileElementsMounted:c,open:d}=t,[h,p]=oA.useState({x:0,y:0,strategy:A,placement:e,middlewareData:{},isPositioned:!1}),[m,B]=oA.useState(a);bg(m,a)||B(a);let[y,v]=oA.useState(null),[b,w]=oA.useState(null),x=oA.useCallback(X=>{X!==F.current&&(F.current=X,v(X))},[]),S=oA.useCallback(X=>{X!==T.current&&(T.current=X,w(X))},[]),U=l||y,L=i||b,F=oA.useRef(null),T=oA.useRef(null),M=oA.useRef(h),D=c!=null,G=ux(c),ee=ux(n),P=ux(d),se=oA.useCallback(()=>{if(!F.current||!T.current)return;let X={placement:e,strategy:A,middleware:m};ee.current&&(X.platform=ee.current),sx(F.current,T.current,X).then(oe=>{let ye={...oe,isPositioned:P.current!==!1};le.current&&!bg(M.current,ye)&&(M.current=ye,_Q.flushSync(()=>{p(ye)}))})},[m,e,A,ee,P]);Sg(()=>{d===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,p(X=>({...X,isPositioned:!1})))},[d]);let le=oA.useRef(!1);Sg(()=>(le.current=!0,()=>{le.current=!1}),[]),Sg(()=>{if(U&&(F.current=U),L&&(T.current=L),U&&L){if(G.current)return G.current(U,L,se);se()}},[U,L,se,G,D]);let te=oA.useMemo(()=>({reference:F,floating:T,setReference:x,setFloating:S}),[x,S]),q=oA.useMemo(()=>({reference:U,floating:L}),[U,L]),fe=oA.useMemo(()=>{let X={position:A,left:0,top:0};if(!q.floating)return X;let oe=DQ(q.floating,h.x),ye=DQ(q.floating,h.y);return s?{...X,transform:"translate("+oe+"px, "+ye+"px)",...OQ(q.floating)>=1.5&&{willChange:"transform"}}:{position:A,left:oe,top:ye}},[A,s,q.floating,h.x,h.y]);return oA.useMemo(()=>({...h,update:se,refs:te,elements:q,floatingStyles:fe}),[h,se,te,q,fe])}var YP=t=>{function e(A){return{}.hasOwnProperty.call(A,"current")}return{name:"arrow",options:t,fn(A){let{element:a,padding:n}=typeof t=="function"?t(A):t;return a&&e(a)?a.current!=null?ix({element:a.current,padding:n}).fn(A):{}:a?ix({element:a,padding:n}).fn(A):{}}}},GQ=(t,e)=>{let A=QQ(t);return{name:A.name,fn:A.fn,options:[t,e]}},KQ=(t,e)=>{let A=FQ(t);return{name:A.name,fn:A.fn,options:[t,e]}},zQ=(t,e)=>({fn:RQ(t).fn,options:[t,e]}),VQ=(t,e)=>{let A=TQ(t);return{name:A.name,fn:A.fn,options:[t,e]}},PQ=(t,e)=>{let A=IQ(t);return{name:A.name,fn:A.fn,options:[t,e]}};var kQ=(t,e)=>{let A=HQ(t);return{name:A.name,fn:A.fn,options:[t,e]}};var XQ=(t,e)=>{let A=YP(t);return{name:A.name,fn:A.fn,options:[t,e]}};var qQ=Y(ue(),1);var cx=Y(Qe(),1),jP="Arrow",YQ=qQ.forwardRef((t,e)=>{let{children:A,width:a=10,height:n=5,...l}=t;return(0,cx.jsx)(zt.svg,{...l,ref:e,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?A:(0,cx.jsx)("polygon",{points:"0,0 30,0 15,10"})})});YQ.displayName=jP;var jQ=YQ;var ZQ=Y(ue(),1);function JQ(t){let[e,A]=ZQ.useState(void 0);return ya(()=>{if(t){A({width:t.offsetWidth,height:t.offsetHeight});let a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let l=n[0],i,s;if("borderBoxSize"in l){let c=l.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,s=d.blockSize}else i=t.offsetWidth,s=t.offsetHeight;A({width:i,height:s})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else A(void 0)},[t]),e}var Eo=Y(Qe(),1);var fx="Popper",[WQ,dx]=Hu(fx),[JP,$Q]=WQ(fx),e9=t=>{let{__scopePopper:e,children:A}=t,[a,n]=Sa.useState(null);return(0,Eo.jsx)(JP,{scope:e,anchor:a,onAnchorChange:n,children:A})};e9.displayName=fx;var t9="PopperAnchor",A9=Sa.forwardRef((t,e)=>{let{__scopePopper:A,virtualRef:a,...n}=t,l=$Q(t9,A),i=Sa.useRef(null),s=KA(e,i),c=Sa.useRef(null);return Sa.useEffect(()=>{let d=c.current;c.current=a?.current||i.current,d!==c.current&&l.onAnchorChange(c.current)}),a?null:(0,Eo.jsx)(zt.div,{...n,ref:s})});A9.displayName=t9;var hx="PopperContent",[WP,$P]=WQ(hx),a9=Sa.forwardRef((t,e)=>{let{__scopePopper:A,side:a="bottom",sideOffset:n=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:h=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:B="optimized",onPlaced:y,...v}=t,b=$Q(hx,A),[w,x]=Sa.useState(null),S=KA(e,WA=>x(WA)),[U,L]=Sa.useState(null),F=JQ(U),T=F?.width??0,M=F?.height??0,D=a+(l!=="center"?"-"+l:""),G=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},ee=Array.isArray(d)?d:[d],P=ee.length>0,se={padding:G,boundary:ee.filter(tk),altBoundary:P},{refs:le,floatingStyles:te,placement:q,isPositioned:fe,middlewareData:X}=NQ({strategy:"fixed",placement:D,whileElementsMounted:(...WA)=>ox(...WA,{animationFrame:B==="always"}),elements:{reference:b.anchor},middleware:[GQ({mainAxis:n+M,alignmentAxis:i}),c&&KQ({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?zQ():void 0,...se}),c&&VQ({...se}),PQ({...se,apply:({elements:WA,rects:Mt,availableWidth:Et,availableHeight:gr})=>{let{width:En,height:Ln}=Mt.reference,ht=WA.floating.style;ht.setProperty("--radix-popper-available-width",`${Et}px`),ht.setProperty("--radix-popper-available-height",`${gr}px`),ht.setProperty("--radix-popper-anchor-width",`${En}px`),ht.setProperty("--radix-popper-anchor-height",`${Ln}px`)}}),U&&XQ({element:U,padding:s}),Ak({arrowWidth:T,arrowHeight:M}),m&&kQ({strategy:"referenceHidden",...se})]}),[oe,ye]=r9(q),he=Cl(y);ya(()=>{fe&&he?.()},[fe,he]);let ze=X.arrow?.x,Dt=X.arrow?.y,Zt=X.arrow?.centerOffset!==0,[LA,xA]=Sa.useState();return ya(()=>{w&&xA(window.getComputedStyle(w).zIndex)},[w]),(0,Eo.jsx)("div",{ref:le.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:fe?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:LA,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,Eo.jsx)(WP,{scope:A,placedSide:oe,onArrowChange:L,arrowX:ze,arrowY:Dt,shouldHideArrow:Zt,children:(0,Eo.jsx)(zt.div,{"data-side":oe,"data-align":ye,...v,ref:S,style:{...v.style,animation:fe?void 0:"none"}})})})});a9.displayName=hx;var n9="PopperArrow",ek={top:"bottom",right:"left",bottom:"top",left:"right"},l9=Sa.forwardRef(function(e,A){let{__scopePopper:a,...n}=e,l=$P(n9,a),i=ek[l.placedSide];return(0,Eo.jsx)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:(0,Eo.jsx)(jQ,{...n,ref:A,style:{...n.style,display:"block"}})})});l9.displayName=n9;function tk(t){return t!==null}var Ak=t=>({name:"transformOrigin",options:t,fn(e){let{placement:A,rects:a,middlewareData:n}=e,i=n.arrow?.centerOffset!==0,s=i?0:t.arrowWidth,c=i?0:t.arrowHeight,[d,h]=r9(A),p={start:"0%",center:"50%",end:"100%"}[h],m=(n.arrow?.x??0)+s/2,B=(n.arrow?.y??0)+c/2,y="",v="";return d==="bottom"?(y=i?p:`${m}px`,v=`${-c}px`):d==="top"?(y=i?p:`${m}px`,v=`${a.floating.height+c}px`):d==="right"?(y=`${-c}px`,v=i?p:`${B}px`):d==="left"&&(y=`${a.floating.width+c}px`,v=i?p:`${B}px`),{data:{x:y,y:v}}}});function r9(t){let[e,A="center"]=t.split("-");return[e,A]}var o9=e9,i9=A9,s9=a9,u9=l9;var Rd=Y(ue(),1);var Ug=Y(Qe(),1);var nk=Symbol("radix.slottable");function c9(t){let e=({children:A})=>(0,Ug.jsx)(Ug.Fragment,{children:A});return e.displayName=`${t}.Slottable`,e.__radixId=nk,e}var f9=Y(ue(),1);var d9=Y(Qe(),1),lk=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"}),rk="VisuallyHidden",h9=f9.forwardRef((t,e)=>(0,d9.jsx)(zt.span,{...t,ref:e,style:{...lk,...t.style}}));h9.displayName=rk;var p9=h9;var iA=Y(Qe(),1),[Eg,nee]=Hu("Tooltip",[dx]),Lg=dx(),m9="TooltipProvider",ik=700,px="tooltip.open",[sk,gx]=Eg(m9),uk=t=>{let{__scopeTooltip:e,delayDuration:A=ik,skipDelayDuration:a=300,disableHoverableContent:n=!1,children:l}=t,i=Ee.useRef(!0),s=Ee.useRef(!1),c=Ee.useRef(0);return Ee.useEffect(()=>{let d=c.current;return()=>window.clearTimeout(d)},[]),(0,iA.jsx)(sk,{scope:e,isOpenDelayedRef:i,delayDuration:A,onOpen:Ee.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:Ee.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,a)},[a]),isPointerInTransitRef:s,onPointerInTransitChange:Ee.useCallback(d=>{s.current=d},[]),disableHoverableContent:n,children:l})};uk.displayName=m9;var Dd="Tooltip",[ck,Md]=Eg(Dd),fk=t=>{let{__scopeTooltip:e,children:A,open:a,defaultOpen:n,onOpenChange:l,disableHoverableContent:i,delayDuration:s}=t,c=gx(Dd,t.__scopeTooltip),d=Lg(e),[h,p]=Ee.useState(null),m=Ru(),B=Ee.useRef(0),y=i??c.disableHoverableContent,v=s??c.delayDuration,b=Ee.useRef(!1),[w,x]=Zm({prop:a,defaultProp:n??!1,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(px))):c.onClose(),l?.(T)},caller:Dd}),S=Ee.useMemo(()=>w?b.current?"delayed-open":"instant-open":"closed",[w]),U=Ee.useCallback(()=>{window.clearTimeout(B.current),B.current=0,b.current=!1,x(!0)},[x]),L=Ee.useCallback(()=>{window.clearTimeout(B.current),B.current=0,x(!1)},[x]),F=Ee.useCallback(()=>{window.clearTimeout(B.current),B.current=window.setTimeout(()=>{b.current=!0,x(!0),B.current=0},v)},[v,x]);return Ee.useEffect(()=>()=>{B.current&&(window.clearTimeout(B.current),B.current=0)},[]),(0,iA.jsx)(o9,{...d,children:(0,iA.jsx)(ck,{scope:e,contentId:m,open:w,stateAttribute:S,trigger:h,onTriggerChange:p,onTriggerEnter:Ee.useCallback(()=>{c.isOpenDelayedRef.current?F():U()},[c.isOpenDelayedRef,F,U]),onTriggerLeave:Ee.useCallback(()=>{y?L():(window.clearTimeout(B.current),B.current=0)},[L,y]),onOpen:U,onClose:L,disableHoverableContent:y,children:A})})};fk.displayName=Dd;var mx="TooltipTrigger",dk=Ee.forwardRef((t,e)=>{let{__scopeTooltip:A,...a}=t,n=Md(mx,A),l=gx(mx,A),i=Lg(A),s=Ee.useRef(null),c=KA(e,s,n.onTriggerChange),d=Ee.useRef(!1),h=Ee.useRef(!1),p=Ee.useCallback(()=>d.current=!1,[]);return Ee.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),(0,iA.jsx)(i9,{asChild:!0,...i,children:(0,iA.jsx)(zt.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...a,ref:c,onPointerMove:zA(t.onPointerMove,m=>{m.pointerType!=="touch"&&!h.current&&!l.isPointerInTransitRef.current&&(n.onTriggerEnter(),h.current=!0)}),onPointerLeave:zA(t.onPointerLeave,()=>{n.onTriggerLeave(),h.current=!1}),onPointerDown:zA(t.onPointerDown,()=>{n.open&&n.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:zA(t.onFocus,()=>{d.current||n.onOpen()}),onBlur:zA(t.onBlur,n.onClose),onClick:zA(t.onClick,n.onClose)})})});dk.displayName=mx;var Bx="TooltipPortal",[hk,pk]=Eg(Bx,{forceMount:void 0}),g9=t=>{let{__scopeTooltip:e,forceMount:A,children:a,container:n}=t,l=Md(Bx,e);return(0,iA.jsx)(hk,{scope:e,forceMount:A,children:(0,iA.jsx)(So,{present:A||l.open,children:(0,iA.jsx)(cd,{asChild:!0,container:n,children:a})})})};g9.displayName=Bx;var Vu="TooltipContent",B9=Ee.forwardRef((t,e)=>{let A=pk(Vu,t.__scopeTooltip),{forceMount:a=A.forceMount,side:n="top",...l}=t,i=Md(Vu,t.__scopeTooltip);return(0,iA.jsx)(So,{present:a||i.open,children:i.disableHoverableContent?(0,iA.jsx)(C9,{side:n,...l,ref:e}):(0,iA.jsx)(mk,{side:n,...l,ref:e})})}),mk=Ee.forwardRef((t,e)=>{let A=Md(Vu,t.__scopeTooltip),a=gx(Vu,t.__scopeTooltip),n=Ee.useRef(null),l=KA(e,n),[i,s]=Ee.useState(null),{trigger:c,onClose:d}=A,h=n.current,{onPointerInTransitChange:p}=a,m=Ee.useCallback(()=>{s(null),p(!1)},[p]),B=Ee.useCallback((y,v)=>{let b=y.currentTarget,w={x:y.clientX,y:y.clientY},x=xk(w,b.getBoundingClientRect()),S=wk(w,x),U=vk(v.getBoundingClientRect()),L=bk([...S,...U]);s(L),p(!0)},[p]);return Ee.useEffect(()=>()=>m(),[m]),Ee.useEffect(()=>{if(c&&h){let y=b=>B(b,h),v=b=>B(b,c);return c.addEventListener("pointerleave",y),h.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",y),h.removeEventListener("pointerleave",v)}}},[c,h,B,m]),Ee.useEffect(()=>{if(i){let y=v=>{let b=v.target,w={x:v.clientX,y:v.clientY},x=c?.contains(b)||h?.contains(b),S=!Sk(w,i);x?m():S&&(m(),d())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,h,i,d,m]),(0,iA.jsx)(C9,{...t,ref:l})}),[gk,Bk]=Eg(Dd,{isInside:!1}),Ck=c9("TooltipContent"),C9=Ee.forwardRef((t,e)=>{let{__scopeTooltip:A,children:a,"aria-label":n,onEscapeKeyDown:l,onPointerDownOutside:i,...s}=t,c=Md(Vu,A),d=Lg(A),{onClose:h}=c;return Ee.useEffect(()=>(document.addEventListener(px,h),()=>document.removeEventListener(px,h)),[h]),Ee.useEffect(()=>{if(c.trigger){let p=m=>{m.target?.contains(c.trigger)&&h()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,h]),(0,iA.jsx)(ud,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:h,children:(0,iA.jsxs)(s9,{"data-state":c.stateAttribute,...d,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,iA.jsx)(Ck,{children:a}),(0,iA.jsx)(gk,{scope:A,isInside:!0,children:(0,iA.jsx)(p9,{id:c.contentId,role:"tooltip",children:n||a})})]})})});B9.displayName=Vu;var y9="TooltipArrow",yk=Ee.forwardRef((t,e)=>{let{__scopeTooltip:A,...a}=t,n=Lg(A);return Bk(y9,A).isInside?null:(0,iA.jsx)(u9,{...n,...a,ref:e})});yk.displayName=y9;function xk(t,e){let A=Math.abs(e.top-t.y),a=Math.abs(e.bottom-t.y),n=Math.abs(e.right-t.x),l=Math.abs(e.left-t.x);switch(Math.min(A,a,n,l)){case l:return"left";case n:return"right";case A:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function wk(t,e,A=5){let a=[];switch(e){case"top":a.push({x:t.x-A,y:t.y+A},{x:t.x+A,y:t.y+A});break;case"bottom":a.push({x:t.x-A,y:t.y-A},{x:t.x+A,y:t.y-A});break;case"left":a.push({x:t.x+A,y:t.y-A},{x:t.x+A,y:t.y+A});break;case"right":a.push({x:t.x-A,y:t.y-A},{x:t.x-A,y:t.y+A});break}return a}function vk(t){let{top:e,right:A,bottom:a,left:n}=t;return[{x:n,y:e},{x:A,y:e},{x:A,y:a},{x:n,y:a}]}function Sk(t,e){let{x:A,y:a}=t,n=!1;for(let l=0,i=e.length-1;l<e.length;i=l++){let s=e[l],c=e[i],d=s.x,h=s.y,p=c.x,m=c.y;h>a!=m>a&&A<(p-d)*(a-h)/(m-h)+d&&(n=!n)}return n}function bk(t){let e=t.slice();return e.sort((A,a)=>A.x<a.x?-1:A.x>a.x?1:A.y<a.y?-1:A.y>a.y?1:0),Uk(e)}function Uk(t){if(t.length<=1)return t.slice();let e=[];for(let a=0;a<t.length;a++){let n=t[a];for(;e.length>=2;){let l=e[e.length-1],i=e[e.length-2];if((l.x-i.x)*(n.y-i.y)>=(l.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}e.pop();let A=[];for(let a=t.length-1;a>=0;a--){let n=t[a];for(;A.length>=2;){let l=A[A.length-1],i=A[A.length-2];if((l.x-i.x)*(n.y-i.y)>=(l.y-i.y)*(n.x-i.x))A.pop();else break}A.push(n)}return A.pop(),e.length===1&&A.length===1&&e[0].x===A[0].x&&e[0].y===A[0].y?e:e.concat(A)}var x9=g9,Cx=B9;var jx=Y(Qe()),T7=Y(ue());var b9=Y(ue(),1);var w9=Y(ue(),1),Lk=Y(zs(),1);var v9=Y(Qe(),1),Qk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],S9=Qk.reduce((t,e)=>{let A=U4(`Primitive.${e}`),a=w9.forwardRef((n,l)=>{let{asChild:i,...s}=n,c=i?A:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,v9.jsx)(c,{...s,ref:l})});return a.displayName=`Primitive.${e}`,{...t,[e]:a}},{});var U9=Y(Qe(),1),Fk="Label",E9=b9.forwardRef((t,e)=>(0,U9.jsx)(S9.label,{...t,ref:e,onMouseDown:A=>{A.target.closest("button, input, select, textarea")||(t.onMouseDown?.(A),!A.defaultPrevented&&A.detail>1&&A.preventDefault())}}));E9.displayName=Fk;var yx=E9;var I7=Y(Qe()),hj=Y(Qe()),pj=Y(ue());var H7=Y(Qe()),R7=Y(ue());var D7=Y(Qe()),M7=Y(ue()),_7=Y(Qe()),mj=Y(ue());var O7=Y(Qe()),N7=Y(Qe()),ce=Y(ue());var Ik=Math.PI/180;function Hk(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}var Lo=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Z={_global:Lo,version:"10.2.0",isBrowser:Hk(),isUnminified:/param/.test(function(t){}.toString()),dblClickWindow:400,getAngle(t){return Z.angleDeg?t*Ik:t},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_renderBackend:"web",legacyTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return Z.DD.isDragging},isTransforming(){var t,e;return(e=(t=Z.Transformer)===null||t===void 0?void 0:t.isTransforming())!==null&&e!==void 0?e:!1},isDragReady(){return!!Z.DD.node},releaseCanvasOnDestroy:!0,document:Lo.document,_injectGlobal(t){typeof Lo.Konva<"u"&&console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."),Lo.Konva=t}},xe=t=>{Z[t.prototype.getClassName()]=t};Z._injectGlobal(Z);var Rk=`Konva.js unsupported environment.
|
|
181
|
+
|
|
182
|
+
Looks like you are trying to use Konva.js in Node.js environment. because "document" object is undefined.
|
|
183
|
+
|
|
184
|
+
To use Konva.js in Node.js environment, you need to use the "canvas-backend" or "skia-backend" module.
|
|
185
|
+
|
|
186
|
+
bash: npm install canvas
|
|
187
|
+
js: import "konva/canvas-backend";
|
|
188
|
+
|
|
189
|
+
or
|
|
190
|
+
|
|
191
|
+
bash: npm install skia-canvas
|
|
192
|
+
js: import "konva/skia-backend";
|
|
193
|
+
`,L9=()=>{if(typeof document>"u")throw new Error(Rk)},VA=class t{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new t(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){let A=this.m;return{x:A[0]*e.x+A[2]*e.y+A[4],y:A[1]*e.x+A[3]*e.y+A[5]}}translate(e,A){return this.m[4]+=this.m[0]*e+this.m[2]*A,this.m[5]+=this.m[1]*e+this.m[3]*A,this}scale(e,A){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=A,this.m[3]*=A,this}rotate(e){let A=Math.cos(e),a=Math.sin(e),n=this.m[0]*A+this.m[2]*a,l=this.m[1]*A+this.m[3]*a,i=this.m[0]*-a+this.m[2]*A,s=this.m[1]*-a+this.m[3]*A;return this.m[0]=n,this.m[1]=l,this.m[2]=i,this.m[3]=s,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,A){let a=this.m[0]+this.m[2]*A,n=this.m[1]+this.m[3]*A,l=this.m[2]+this.m[0]*e,i=this.m[3]+this.m[1]*e;return this.m[0]=a,this.m[1]=n,this.m[2]=l,this.m[3]=i,this}multiply(e){let A=this.m[0]*e.m[0]+this.m[2]*e.m[1],a=this.m[1]*e.m[0]+this.m[3]*e.m[1],n=this.m[0]*e.m[2]+this.m[2]*e.m[3],l=this.m[1]*e.m[2]+this.m[3]*e.m[3],i=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],s=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=A,this.m[1]=a,this.m[2]=n,this.m[3]=l,this.m[4]=i,this.m[5]=s,this}invert(){let e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),A=this.m[3]*e,a=-this.m[1]*e,n=-this.m[2]*e,l=this.m[0]*e,i=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),s=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=A,this.m[1]=a,this.m[2]=n,this.m[3]=l,this.m[4]=i,this.m[5]=s,this}getMatrix(){return this.m}decompose(){let e=this.m[0],A=this.m[1],a=this.m[2],n=this.m[3],l=this.m[4],i=this.m[5],s=e*n-A*a,c={x:l,y:i,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(e!=0||A!=0){let d=Math.sqrt(e*e+A*A);c.rotation=A>0?Math.acos(e/d):-Math.acos(e/d),c.scaleX=d,c.scaleY=s/d,c.skewX=(e*a+A*n)/s,c.skewY=0}else if(a!=0||n!=0){let d=Math.sqrt(a*a+n*n);c.rotation=Math.PI/2-(n>0?Math.acos(-a/d):-Math.acos(a/d)),c.scaleX=s/d,c.scaleY=d,c.skewX=0,c.skewY=(e*a+A*n)/s}return c.rotation=H._getRotation(c.rotation),c}},Dk="[object Array]",Mk="[object Number]",_k="[object String]",Ok="[object Boolean]",Nk=Math.PI/180,Gk=180/Math.PI,_d="#",Kk="",zk="0",Vk="Konva warning: ",Q9="Konva error: ",Pk="rgb(",xx={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},kk=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,Qg=[],Od=null,Xk=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(t){setTimeout(t,16)},H={_isElement(t){return!!(t&&t.nodeType==1)},_isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject(t){return!!t&&t.constructor===Object},_isArray(t){return Object.prototype.toString.call(t)===Dk},_isNumber(t){return Object.prototype.toString.call(t)===Mk&&!isNaN(t)&&isFinite(t)},_isString(t){return Object.prototype.toString.call(t)===_k},_isBoolean(t){return Object.prototype.toString.call(t)===Ok},isObject(t){return t instanceof Object},isValidSelector(t){if(typeof t!="string")return!1;let e=t[0];return e==="#"||e==="."||e===e.toUpperCase()},_sign(t){return t===0||t>0?1:-1},requestAnimFrame(t){Qg.push(t),Qg.length===1&&Xk(function(){let e=Qg;Qg=[],e.forEach(function(A){A()})})},createCanvasElement(){L9();let t=document.createElement("canvas");try{t.style=t.style||{}}catch{}return t},createImageElement(){return L9(),document.createElement("img")},_isInDocument(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_urlToImage(t,e){let A=H.createImageElement();A.onload=function(){e(A)},A.src=t},_rgbToHex(t,e,A){return((1<<24)+(t<<16)+(e<<8)+A).toString(16).slice(1)},_hexToRgb(t){t=t.replace(_d,Kk);let e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:e&255}},getRandomColor(){let t=(Math.random()*16777215<<0).toString(16);for(;t.length<6;)t=zk+t;return _d+t},isCanvasFarblingActive(){if(Od!==null)return Od;if(typeof document>"u")return Od=!1,!1;let t=this.createCanvasElement();t.width=10,t.height=10;let e=t.getContext("2d",{willReadFrequently:!0});e.clearRect(0,0,10,10),e.fillStyle="#282828",e.fillRect(0,0,10,10);let A=e.getImageData(0,0,10,10).data,a=!1;for(let n=0;n<100;n++)if(A[n*4]!==40||A[n*4+1]!==40||A[n*4+2]!==40||A[n*4+3]!==255){a=!0;break}return Od=a,this.releaseCanvas(t),Od},getHitColor(){let t=this.getRandomColor();return this.isCanvasFarblingActive()?this.getSnappedHexColor(t):t},getHitColorKey(t,e,A){return this.isCanvasFarblingActive()&&(t=Math.round(t/5)*5,e=Math.round(e/5)*5,A=Math.round(A/5)*5),_d+this._rgbToHex(t,e,A)},getSnappedHexColor(t){let e=this._hexToRgb(t);return _d+this._rgbToHex(Math.round(e.r/5)*5,Math.round(e.g/5)*5,Math.round(e.b/5)*5)},getRGB(t){let e;return t in xx?(e=xx[t],{r:e[0],g:e[1],b:e[2]}):t[0]===_d?this._hexToRgb(t.substring(1)):t.substr(0,4)===Pk?(e=kk.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA(t){return t=t||"black",H._namedColorToRBA(t)||H._hex3ColorToRGBA(t)||H._hex4ColorToRGBA(t)||H._hex6ColorToRGBA(t)||H._hex8ColorToRGBA(t)||H._rgbColorToRGBA(t)||H._rgbaColorToRGBA(t)||H._hslColorToRGBA(t)},_namedColorToRBA(t){let e=xx[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(t.indexOf("rgb(")===0){t=t.match(/rgb\(([^)]+)\)/)[1];let e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(t.indexOf("rgba(")===0){t=t.match(/rgba\(([^)]+)\)/)[1];let e=t.split(/ *, */).map((A,a)=>A.slice(-1)==="%"?a===3?parseInt(A)/100:parseInt(A)/100*255:Number(A));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex8ColorToRGBA(t){if(t[0]==="#"&&t.length===9)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:parseInt(t.slice(7,9),16)/255}},_hex6ColorToRGBA(t){if(t[0]==="#"&&t.length===7)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex4ColorToRGBA(t){if(t[0]==="#"&&t.length===5)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:parseInt(t[4]+t[4],16)/255}},_hex3ColorToRGBA(t){if(t[0]==="#"&&t.length===4)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){let[e,...A]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),a=Number(A[0])/360,n=Number(A[1])/100,l=Number(A[2])/100,i,s,c;if(n===0)return c=l*255,{r:Math.round(c),g:Math.round(c),b:Math.round(c),a:1};l<.5?i=l*(1+n):i=l+n-l*n;let d=2*l-i,h=[0,0,0];for(let p=0;p<3;p++)s=a+1/3*-(p-1),s<0&&s++,s>1&&s--,6*s<1?c=d+(i-d)*6*s:2*s<1?c=i:3*s<2?c=d+(i-d)*(2/3-s)*6:c=d,h[p]=c*255;return{r:Math.round(h[0]),g:Math.round(h[1]),b:Math.round(h[2]),a:1}}},haveIntersection(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject(t){let e={};for(let A in t)this._isPlainObject(t[A])?e[A]=this.cloneObject(t[A]):this._isArray(t[A])?e[A]=this.cloneArray(t[A]):e[A]=t[A];return e},cloneArray(t){return t.slice(0)},degToRad(t){return t*Nk},radToDeg(t){return t*Gk},_degToRad(t){return H.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),H.degToRad(t)},_radToDeg(t){return H.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),H.radToDeg(t)},_getRotation(t){return Z.angleDeg?H.radToDeg(t):t},_capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw(t){throw new Error(Q9+t)},error(t){console.error(Q9+t)},warn(t){Z.showWarnings&&console.warn(Vk+t)},each(t,e){for(let A in t)e(A,t[A])},_inRange(t,e,A){return e<=t&&t<A},_getProjectionToSegment(t,e,A,a,n,l){let i,s,c,d=(t-A)*(t-A)+(e-a)*(e-a);if(d==0)i=t,s=e,c=(n-A)*(n-A)+(l-a)*(l-a);else{let h=((n-t)*(A-t)+(l-e)*(a-e))/d;h<0?(i=t,s=e,c=(t-n)*(t-n)+(e-l)*(e-l)):h>1?(i=A,s=a,c=(A-n)*(A-n)+(a-l)*(a-l)):(i=t+h*(A-t),s=e+h*(a-e),c=(i-n)*(i-n)+(s-l)*(s-l))}return[i,s,c]},_getProjectionToLine(t,e,A){let a=H.cloneObject(t),n=Number.MAX_VALUE;return e.forEach(function(l,i){if(!A&&i===e.length-1)return;let s=e[(i+1)%e.length],c=H._getProjectionToSegment(l.x,l.y,s.x,s.y,t.x,t.y),d=c[0],h=c[1],p=c[2];p<n&&(a.x=d,a.y=h,n=p)}),a},_prepareArrayForTween(t,e,A){let a=[],n=[];if(t.length>e.length){let i=e;e=t,t=i}for(let i=0;i<t.length;i+=2)a.push({x:t[i],y:t[i+1]});for(let i=0;i<e.length;i+=2)n.push({x:e[i],y:e[i+1]});let l=[];return n.forEach(function(i){let s=H._getProjectionToLine(i,a,A);l.push(s.x),l.push(s.y)}),l},_prepareToStringify(t){let e;t.visitedByCircularReferenceRemoval=!0;for(let A in t)if(t.hasOwnProperty(A)&&t[A]&&typeof t[A]=="object"){if(e=Object.getOwnPropertyDescriptor(t,A),t[A].visitedByCircularReferenceRemoval||H._isElement(t[A]))if(e.configurable)delete t[A];else return null;else if(H._prepareToStringify(t[A])===null)if(e.configurable)delete t[A];else return null}return delete t.visitedByCircularReferenceRemoval,t},_assign(t,e){for(let A in e)t[A]=e[A];return t},_getFirstPointerId(t){return t.touches?t.changedTouches[0].identifier:t.pointerId||999},releaseCanvas(...t){Z.releaseCanvasOnDestroy&&t.forEach(e=>{e.width=0,e.height=0})},drawRoundedRectPath(t,e,A,a){let n=e<0?e:0,l=A<0?A:0;e=Math.abs(e),A=Math.abs(A);let i=0,s=0,c=0,d=0;typeof a=="number"?i=s=c=d=Math.min(a,e/2,A/2):(i=Math.min(a[0]||0,e/2,A/2),s=Math.min(a[1]||0,e/2,A/2),d=Math.min(a[2]||0,e/2,A/2),c=Math.min(a[3]||0,e/2,A/2)),t.moveTo(n+i,l),t.lineTo(n+e-s,l),t.arc(n+e-s,l+s,s,Math.PI*3/2,0,!1),t.lineTo(n+e,l+A-d),t.arc(n+e-d,l+A-d,d,0,Math.PI/2,!1),t.lineTo(n+c,l+A),t.arc(n+c,l+A-c,c,Math.PI/2,Math.PI,!1),t.lineTo(n,l+i),t.arc(n+i,l+i,i,Math.PI,Math.PI*3/2,!1)},drawRoundedPolygonPath(t,e,A,a,n){a=Math.abs(a);for(let l=0;l<A;l++){let i=e[(l-1+A)%A],s=e[l],c=e[(l+1)%A],d={x:s.x-i.x,y:s.y-i.y},h={x:c.x-s.x,y:c.y-s.y},p=Math.hypot(d.x,d.y),m=Math.hypot(h.x,h.y),B;typeof n=="number"?B=n:B=l<n.length?n[l]:0,B=a*Math.cos(Math.PI/A)*Math.min(1,B/a*2);let v={x:d.x/p,y:d.y/p},b={x:h.x/m,y:h.y/m},w={x:s.x-v.x*B,y:s.y-v.y*B},x={x:s.x+b.x*B,y:s.y+b.y*B};l===0?t.moveTo(w.x,w.y):t.lineTo(w.x,w.y),t.arcTo(s.x,s.y,x.x,x.y,B)}}};function qk(t){let e=[],A=t.length,a=H;for(let n=0;n<A;n++){let l=t[n];a._isNumber(l)?l=Math.round(l*1e3)/1e3:a._isString(l)||(l=l+""),e.push(l)}return e}var F9=",",Yk="(",jk=")",Zk="([",Jk="])",Wk=";",$k="()",eX="=",T9=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],tX=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled","filter"],AX=100,Fg=null;function wx(){if(Fg!==null)return Fg;try{let e=H.createCanvasElement().getContext("2d");return e?!!e&&"filter"in e:(Fg=!1,!1)}catch{return Fg=!1,!1}}var zi=class{constructor(e){this.canvas=e,Z.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,A){let a=this.traceArr,n=a.length,l="",i,s,c,d;for(i=0;i<n;i++)s=a[i],c=s.method,c?(d=s.args,l+=c,e?l+=$k:H._isArray(d[0])?l+=Zk+d.join(F9)+Jk:(A&&(d=d.map(h=>typeof h=="number"?Math.floor(h):h)),l+=Yk+d.join(F9)+jk)):(l+=s.property,e||(l+=eX+s.val)),l+=Wk;return l}clearTrace(){this.traceArr=[]}_trace(e){let A=this.traceArr,a;A.push(e),a=A.length,a>=AX&&A.shift()}reset(){let e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){let A=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,A.getWidth()/A.pixelRatio,A.getHeight()/A.pixelRatio)}_applyLineCap(e){let A=e.attrs.lineCap;A&&this.setAttr("lineCap",A)}_applyOpacity(e){let A=e.getAbsoluteOpacity();A!==1&&this.setAttr("globalAlpha",A)}_applyLineJoin(e){let A=e.attrs.lineJoin;A&&this.setAttr("lineJoin",A)}_applyMiterLimit(e){let A=e.attrs.miterLimit;A!=null&&this.setAttr("miterLimit",A)}setAttr(e,A){this._context[e]=A}arc(e,A,a,n,l,i){this._context.arc(e,A,a,n,l,i)}arcTo(e,A,a,n,l){this._context.arcTo(e,A,a,n,l)}beginPath(){this._context.beginPath()}bezierCurveTo(e,A,a,n,l,i){this._context.bezierCurveTo(e,A,a,n,l,i)}clearRect(e,A,a,n){this._context.clearRect(e,A,a,n)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,A){let a=arguments;if(a.length===2)return this._context.createImageData(e,A);if(a.length===1)return this._context.createImageData(e)}createLinearGradient(e,A,a,n){return this._context.createLinearGradient(e,A,a,n)}createPattern(e,A){return this._context.createPattern(e,A)}createRadialGradient(e,A,a,n,l,i){return this._context.createRadialGradient(e,A,a,n,l,i)}drawImage(e,A,a,n,l,i,s,c,d){let h=arguments,p=this._context;h.length===3?p.drawImage(e,A,a):h.length===5?p.drawImage(e,A,a,n,l):h.length===9&&p.drawImage(e,A,a,n,l,i,s,c,d)}ellipse(e,A,a,n,l,i,s,c){this._context.ellipse(e,A,a,n,l,i,s,c)}isPointInPath(e,A,a,n){return a?this._context.isPointInPath(a,e,A,n):this._context.isPointInPath(e,A,n)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,A,a,n){this._context.fillRect(e,A,a,n)}strokeRect(e,A,a,n){this._context.strokeRect(e,A,a,n)}fillText(e,A,a,n){n?this._context.fillText(e,A,a,n):this._context.fillText(e,A,a)}measureText(e){return this._context.measureText(e)}getImageData(e,A,a,n){return this._context.getImageData(e,A,a,n)}lineTo(e,A){this._context.lineTo(e,A)}moveTo(e,A){this._context.moveTo(e,A)}rect(e,A,a,n){this._context.rect(e,A,a,n)}roundRect(e,A,a,n,l){this._context.roundRect(e,A,a,n,l)}putImageData(e,A,a){this._context.putImageData(e,A,a)}quadraticCurveTo(e,A,a,n){this._context.quadraticCurveTo(e,A,a,n)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,A){this._context.scale(e,A)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,A,a,n,l,i){this._context.setTransform(e,A,a,n,l,i)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,A,a,n){this._context.strokeText(e,A,a,n)}transform(e,A,a,n,l,i){this._context.transform(e,A,a,n,l,i)}translate(e,A){this._context.translate(e,A)}_enableTrace(){let e=this,A=T9.length,a=this.setAttr,n,l,i=function(s){let c=e[s],d;e[s]=function(){return l=qk(Array.prototype.slice.call(arguments,0)),d=c.apply(e,arguments),e._trace({method:s,args:l}),d}};for(n=0;n<A;n++)i(T9[n]);e.setAttr=function(){a.apply(e,arguments);let s=arguments[0],c=arguments[1];(s==="shadowOffsetX"||s==="shadowOffsetY"||s==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),e._trace({property:s,val:c})}}_applyGlobalCompositeOperation(e){let A=e.attrs.globalCompositeOperation;!A||A==="source-over"||this.setAttr("globalCompositeOperation",A)}};tX.forEach(function(t){Object.defineProperty(zi.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})});var Tg=class extends zi{constructor(e,{willReadFrequently:A=!1}={}){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:A})}_fillColor(e){let A=e.fill();this.setAttr("fillStyle",A),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){let A=e._getLinearGradient();A&&(this.setAttr("fillStyle",A),e._fillFunc(this))}_fillRadialGradient(e){let A=e._getRadialGradient();A&&(this.setAttr("fillStyle",A),e._fillFunc(this))}_fill(e){let A=e.fill(),a=e.getFillPriority();if(A&&a==="color"){this._fillColor(e);return}let n=e.getFillPatternImage();if(n&&a==="pattern"){this._fillPattern(e);return}let l=e.getFillLinearGradientColorStops();if(l&&a==="linear-gradient"){this._fillLinearGradient(e);return}let i=e.getFillRadialGradientColorStops();if(i&&a==="radial-gradient"){this._fillRadialGradient(e);return}A?this._fillColor(e):n?this._fillPattern(e):l?this._fillLinearGradient(e):i&&this._fillRadialGradient(e)}_strokeLinearGradient(e){let A=e.getStrokeLinearGradientStartPoint(),a=e.getStrokeLinearGradientEndPoint(),n=e.getStrokeLinearGradientColorStops(),l=this.createLinearGradient(A.x,A.y,a.x,a.y);if(n){for(let i=0;i<n.length;i+=2)l.addColorStop(n[i],n[i+1]);this.setAttr("strokeStyle",l)}}_stroke(e){let A=e.dash(),a=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!a){this.save();let l=this.getCanvas().getPixelRatio();this.setTransform(l,0,0,l,0,0)}this._applyLineCap(e),A&&e.dashEnabled()&&(this.setLineDash(A),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),a||this.restore()}}_applyShadow(e){var A,a,n;let l=(A=e.getShadowRGBA())!==null&&A!==void 0?A:"black",i=(a=e.getShadowBlur())!==null&&a!==void 0?a:5,s=(n=e.getShadowOffset())!==null&&n!==void 0?n:{x:0,y:0},c=e.getAbsoluteScale(),d=this.canvas.getPixelRatio(),h=c.x*d,p=c.y*d;this.setAttr("shadowColor",l),this.setAttr("shadowBlur",i*Math.min(Math.abs(h),Math.abs(p))),this.setAttr("shadowOffsetX",s.x*h),this.setAttr("shadowOffsetY",s.y*p)}},Ig=class extends zi{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){let A=e.getStrokeScaleEnabled();if(!A){this.save();let l=this.getCanvas().getPixelRatio();this.setTransform(l,0,0,l,0,0)}this._applyLineCap(e);let a=e.hitStrokeWidth(),n=a==="auto"?e.strokeWidth():a;this.setAttr("lineWidth",n),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),A||this.restore()}}};var Hg;function aX(){if(Hg)return Hg;let t=H.createCanvasElement(),e=t.getContext("2d");return Hg=(function(){let A=Z._global.devicePixelRatio||1,a=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return A/a})(),H.releaseCanvas(t),Hg}var Pu=class{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;let a=(e||{}).pixelRatio||Z.pixelRatio||aX();this.pixelRatio=a,this._canvas=H.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){let A=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/A,this.getHeight()/A)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";let A=this.pixelRatio;this.getContext()._context.scale(A,A)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";let A=this.pixelRatio;this.getContext()._context.scale(A,A)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,A){this.setWidth(e||0),this.setHeight(A||0)}toDataURL(e,A){try{return this._canvas.toDataURL(e,A)}catch{try{return this._canvas.toDataURL()}catch(n){return H.error("Unable to get data URL. "+n.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}},Ya=class extends Pu{constructor(e={width:0,height:0,willReadFrequently:!1}){super(e),this.context=new Tg(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}},Qo=class extends Pu{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new Ig(this),this.setSize(e.width,e.height)}};var Xe={get isDragging(){let t=!1;return Xe._dragElements.forEach(e=>{e.dragStatus==="dragging"&&(t=!0)}),t},justDragged:!1,get node(){let t;return Xe._dragElements.forEach(e=>{t=e.node}),t},_dragElements:new Map,_drag(t){let e=[];Xe._dragElements.forEach((A,a)=>{let{node:n}=A,l=n.getStage();l.setPointersPositions(t),A.pointerId===void 0&&(A.pointerId=H._getFirstPointerId(t));let i=l._changedPointerPositions.find(s=>s.id===A.pointerId);if(i){if(A.dragStatus!=="dragging"){let s=n.dragDistance();if(Math.max(Math.abs(i.x-A.startPointerPos.x),Math.abs(i.y-A.startPointerPos.y))<s||(n.startDrag({evt:t}),!n.isDragging()))return}n._setDragPosition(t,A),e.push(n)}}),e.forEach(A=>{A.fire("dragmove",{type:"dragmove",target:A,evt:t},!0)})},_endDragBefore(t){let e=[];Xe._dragElements.forEach(A=>{let{node:a}=A,n=a.getStage();if(t&&n.setPointersPositions(t),!n._changedPointerPositions.find(s=>s.id===A.pointerId))return;(A.dragStatus==="dragging"||A.dragStatus==="stopped")&&(Xe.justDragged=!0,Z._mouseListenClick=!1,Z._touchListenClick=!1,Z._pointerListenClick=!1,A.dragStatus="stopped");let i=A.node.getLayer()||A.node instanceof Z.Stage&&A.node;i&&e.indexOf(i)===-1&&e.push(i)}),e.forEach(A=>{A.draw()})},_endDragAfter(t){Xe._dragElements.forEach((e,A)=>{e.dragStatus==="stopped"&&e.node.fire("dragend",{type:"dragend",target:e.node,evt:t},!0),e.dragStatus!=="dragging"&&Xe._dragElements.delete(A)})}};Z.isBrowser&&(window.addEventListener("mouseup",Xe._endDragBefore,!0),window.addEventListener("touchend",Xe._endDragBefore,!0),window.addEventListener("touchcancel",Xe._endDragBefore,!0),window.addEventListener("mousemove",Xe._drag),window.addEventListener("touchmove",Xe._drag),window.addEventListener("mouseup",Xe._endDragAfter,!1),window.addEventListener("touchend",Xe._endDragAfter,!1),window.addEventListener("touchcancel",Xe._endDragAfter,!1));function Fo(t){return H._isString(t)?'"'+t+'"':Object.prototype.toString.call(t)==="[object Number]"||H._isBoolean(t)?t:Object.prototype.toString.call(t)}function Rg(t){return t>255?255:t<0?0:Math.round(t)}function K(){if(Z.isUnminified)return function(t,e){return H._isNumber(t)||H.warn(Fo(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function To(t){if(Z.isUnminified)return function(e,A){let a=H._isNumber(e),n=H._isArray(e)&&e.length==t;return!a&&!n&&H.warn(Fo(e)+' is a not valid value for "'+A+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function Nd(){if(Z.isUnminified)return function(t,e){return H._isNumber(t)||t==="auto"||H.warn(Fo(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function Sl(){if(Z.isUnminified)return function(t,e){return H._isString(t)||H.warn(Fo(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function vx(){if(Z.isUnminified)return function(t,e){let A=H._isString(t),a=Object.prototype.toString.call(t)==="[object CanvasGradient]"||t&&t.addColorStop;return A||a||H.warn(Fo(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function I9(){if(Z.isUnminified)return function(t,e){let A=Int8Array?Object.getPrototypeOf(Int8Array):null;return A&&t instanceof A||(H._isArray(t)?t.forEach(function(a){H._isNumber(a)||H.warn('"'+e+'" attribute has non numeric element '+a+". Make sure that all elements are numbers.")}):H.warn(Fo(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}function PA(){if(Z.isUnminified)return function(t,e){return t===!0||t===!1||H.warn(Fo(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function H9(t){if(Z.isUnminified)return function(e,A){return e==null||H.isObject(e)||H.warn(Fo(e)+' is a not valid value for "'+A+'" attribute. The value should be an object with properties '+t),e}}var Gd="get",Kd="set",Q={addGetterSetter(t,e,A,a,n){Q.addGetter(t,e,A),Q.addSetter(t,e,a,n),Q.addOverloadedGetterSetter(t,e)},addGetter(t,e,A){let a=Gd+H._capitalize(e);t.prototype[a]=t.prototype[a]||function(){let n=this.attrs[e];return n===void 0?A:n}},addSetter(t,e,A,a){let n=Kd+H._capitalize(e);t.prototype[n]||Q.overWriteSetter(t,e,A,a)},overWriteSetter(t,e,A,a){let n=Kd+H._capitalize(e);t.prototype[n]=function(l){return A&&l!==void 0&&l!==null&&(l=A.call(this,l,e)),this._setAttr(e,l),a&&a.call(this),this}},addComponentsGetterSetter(t,e,A,a,n){let l=A.length,i=H._capitalize,s=Gd+i(e),c=Kd+i(e);t.prototype[s]=function(){let h={};for(let p=0;p<l;p++){let m=A[p];h[m]=this.getAttr(e+i(m))}return h};let d=H9(A);t.prototype[c]=function(h){let p=this.attrs[e];a&&(h=a.call(this,h,e)),d&&d.call(this,h,e);for(let m in h)h.hasOwnProperty(m)&&this._setAttr(e+i(m),h[m]);return h||A.forEach(m=>{this._setAttr(e+i(m),void 0)}),this._fireChangeEvent(e,p,h),n&&n.call(this),this},Q.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter(t,e){let A=H._capitalize(e),a=Kd+A,n=Gd+A;t.prototype[e]=function(){return arguments.length?(this[a](arguments[0]),this):this[n]()}},addDeprecatedGetterSetter(t,e,A,a){H.error("Adding deprecated "+e);let n=Gd+H._capitalize(e),l=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[n]=function(){H.error(l);let i=this.attrs[e];return i===void 0?A:i},Q.addSetter(t,e,a,function(){H.error(l)}),Q.addOverloadedGetterSetter(t,e)},backCompat(t,e){H.each(e,function(A,a){let n=t.prototype[a],l=Gd+H._capitalize(A),i=Kd+H._capitalize(A);function s(){n.apply(this,arguments),H.error('"'+A+'" method is deprecated and will be removed soon. Use ""'+a+'" instead.')}t.prototype[A]=s,t.prototype[l]=s,t.prototype[i]=s})},afterSetFilter(){this._filterUpToDate=!1}};function nX(t){let e=/(\w+)\(([^)]+)\)/g,A;for(;(A=e.exec(t))!==null;){let[,a,n]=A;switch(a){case"blur":{let l=parseFloat(n.replace("px",""));return function(i){this.blurRadius(l*.5);let s=Z.Filters;s&&s.Blur&&s.Blur.call(this,i)}}case"brightness":{let l=n.includes("%")?parseFloat(n)/100:parseFloat(n);return function(i){this.brightness(l);let s=Z.Filters;s&&s.Brightness&&s.Brightness.call(this,i)}}case"contrast":{let l=parseFloat(n);return function(i){let s=100*(Math.sqrt(l)-1);this.contrast(s);let c=Z.Filters;c&&c.Contrast&&c.Contrast.call(this,i)}}case"grayscale":return function(l){let i=Z.Filters;i&&i.Grayscale&&i.Grayscale.call(this,l)};case"sepia":return function(l){let i=Z.Filters;i&&i.Sepia&&i.Sepia.call(this,l)};case"invert":return function(l){let i=Z.Filters;i&&i.Invert&&i.Invert.call(this,l)};default:H.warn(`CSS filter "${a}" is not supported in fallback mode. Consider using function filters for better compatibility.`);break}}return()=>{}}var Dg="absoluteOpacity",R9="allEventListeners",fr="absoluteTransform",D9="absoluteScale",Vi="canvas",lX="Change",rX="children",oX="konva",Sx="listening",iX="mouseenter",sX="mouseleave",uX="pointerenter",cX="pointerleave",fX="touchenter",dX="touchleave";var M9="set",_9="Shape",Mg=" ",O9="stage",Io="transform",hX="Stage",bx="visible",pX=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Mg),mX=1,k=class t{constructor(e){this._id=mX++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===Io||e===fr)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,A){let a=this._cache.get(e);return(a===void 0||(e===Io||e===fr)&&a.dirty===!0)&&(a=A.call(this),this._cache.set(e,a)),a}_calculate(e,A,a){if(!this._attachedDepsListeners.get(e)){let n=A.map(l=>l+"Change.konva").join(Mg);this.on(n,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,a)}_getCanvasCache(){return this._cache.get(Vi)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===fr&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Vi)){let{scene:e,filter:A,hit:a}=this._cache.get(Vi);H.releaseCanvas(e._canvas,A._canvas,a._canvas),this._cache.delete(Vi)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){let A=e||{},a={};(A.x===void 0||A.y===void 0||A.width===void 0||A.height===void 0)&&(a=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let n=Math.ceil(A.width||a.width),l=Math.ceil(A.height||a.height),i=A.pixelRatio,s=A.x===void 0?Math.floor(a.x):A.x,c=A.y===void 0?Math.floor(a.y):A.y,d=A.offset||0,h=A.drawBorder||!1,p=A.hitCanvasPixelRatio||1;if(!n||!l){H.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}let m=Math.abs(Math.round(a.x)-s)>.5?1:0,B=Math.abs(Math.round(a.y)-c)>.5?1:0;n+=d*2+m,l+=d*2+B,s-=d,c-=d;let y=new Ya({pixelRatio:i,width:n,height:l}),v=new Ya({pixelRatio:i,width:0,height:0,willReadFrequently:!0}),b=new Qo({pixelRatio:p,width:n,height:l}),w=y.getContext(),x=b.getContext(),S=new Ya({width:y.width/y.pixelRatio+Math.abs(s),height:y.height/y.pixelRatio+Math.abs(c),pixelRatio:y.pixelRatio}),U=S.getContext();return b.isCache=!0,y.isCache=!0,this._cache.delete(Vi),this._filterUpToDate=!1,A.imageSmoothingEnabled===!1&&(y.getContext()._context.imageSmoothingEnabled=!1,v.getContext()._context.imageSmoothingEnabled=!1),w.save(),x.save(),U.save(),w.translate(-s,-c),x.translate(-s,-c),U.translate(-s,-c),S.x=s,S.y=c,this._isUnderCache=!0,this._clearSelfAndDescendantCache(Dg),this._clearSelfAndDescendantCache(D9),this.drawScene(y,this,S),this.drawHit(b,this),this._isUnderCache=!1,w.restore(),x.restore(),h&&(w.save(),w.beginPath(),w.rect(0,0,n,l),w.closePath(),w.setAttr("strokeStyle","red"),w.setAttr("lineWidth",5),w.stroke(),w.restore()),H.releaseCanvas(S._canvas),this._cache.set(Vi,{scene:y,filter:v,hit:b,x:s,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Vi)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,A){let a=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],n=1/0,l=1/0,i=-1/0,s=-1/0,c=this.getAbsoluteTransform(A);return a.forEach(function(d){let h=c.point(d);n===void 0&&(n=i=h.x,l=s=h.y),n=Math.min(n,h.x),l=Math.min(l,h.y),i=Math.max(i,h.x),s=Math.max(s,h.y)}),{x:n,y:l,width:i-n,height:s-l}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);let A=this._getCanvasCache();e.translate(A.x,A.y);let a=this._getCachedSceneCanvas(),n=a.pixelRatio;e.drawImage(a._canvas,0,0,a.width/n,a.height/n),e.restore()}_drawCachedHitCanvas(e){let A=this._getCanvasCache(),a=A.hit;e.save(),e.translate(A.x,A.y),e.drawImage(a._canvas,0,0,a.width/a.pixelRatio,a.height/a.pixelRatio),e.restore()}_getCachedSceneCanvas(){let e=this.filters(),A=this._getCanvasCache(),a=A.scene,n=A.filter,l=n.getContext(),i,s,c,d;if(!e||e.length===0)return a;if(this._filterUpToDate)return n;let h=!0;for(let m=0;m<e.length;m++){let B=typeof e[m]=="string"&&!wx();if(typeof e[m]!="string"||!wx()){h=!1;break}}let p=a.pixelRatio;if(n.setSize(a.width/a.pixelRatio,a.height/a.pixelRatio),h){let m=e.join(" ");return l.save(),l.setAttr("filter",m),l.drawImage(a._canvas,0,0,a.getWidth()/p,a.getHeight()/p),l.restore(),this._filterUpToDate=!0,n}try{for(i=e.length,l.clear(),l.drawImage(a._canvas,0,0,a.getWidth()/p,a.getHeight()/p),s=l.getImageData(0,0,n.getWidth(),n.getHeight()),c=0;c<i;c++)d=e[c],typeof d=="string"&&(d=nX(d)),d.call(this,s),l.putImageData(s,0,0)}catch(m){H.error("Unable to apply filter. "+m.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}return this._filterUpToDate=!0,n}on(e,A){if(this._cache&&this._cache.delete(R9),arguments.length===3)return this._delegate.apply(this,arguments);let a=e.split(Mg);for(let n=0;n<a.length;n++){let i=a[n].split("."),s=i[0],c=i[1]||"";this.eventListeners[s]||(this.eventListeners[s]=[]),this.eventListeners[s].push({name:c,handler:A})}return this}off(e,A){let a=(e||"").split(Mg),n=a.length,l,i,s,c,d,h;if(this._cache&&this._cache.delete(R9),!e)for(i in this.eventListeners)this._off(i);for(l=0;l<n;l++)if(s=a[l],c=s.split("."),d=c[0],h=c[1],d)this.eventListeners[d]&&this._off(d,h,A);else for(i in this.eventListeners)this._off(i,h,A);return this}dispatchEvent(e){let A={target:this,type:e.type,evt:e};return this.fire(e.type,A),this}addEventListener(e,A){return this.on(e,function(a){A.call(this,a.evt)}),this}removeEventListener(e){return this.off(e),this}_delegate(e,A,a){let n=this;this.on(e,function(l){let i=l.target.findAncestors(A,!0,n);for(let s=0;s<i.length;s++)l=H.cloneObject(l),l.currentTarget=i[s],a.call(i[s],l)})}remove(){return this.isDragging()&&this.stopDrag(),Xe._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(fr),this._clearSelfAndDescendantCache(Dg),this._clearSelfAndDescendantCache(D9),this._clearSelfAndDescendantCache(O9),this._clearSelfAndDescendantCache(bx),this._clearSelfAndDescendantCache(Sx)}_remove(){this._clearCaches();let e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){let A="get"+H._capitalize(e);return H._isFunction(this[A])?this[A]():this.attrs[e]}getAncestors(){let e=this.getParent(),A=[];for(;e;)A.push(e),e=e.getParent();return A}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges(()=>{let A,a;if(!e)return this;for(A in e)A!==rX&&(a=M9+H._capitalize(A),H._isFunction(this[a])?this[a](e[A]):this._setAttr(A,e[A]))}),this}isListening(){return this._getCache(Sx,this._isListening)}_isListening(e){if(!this.listening())return!1;let a=this.getParent();return a&&a!==e&&this!==e?a._isListening(e):!0}isVisible(){return this._getCache(bx,this._isVisible)}_isVisible(e){if(!this.visible())return!1;let a=this.getParent();return a&&a!==e&&this!==e?a._isVisible(e):!0}shouldDrawHit(e,A=!1){if(e)return this._isVisible(e)&&this._isListening(e);let a=this.getLayer(),n=!1;Xe._dragElements.forEach(i=>{i.dragStatus==="dragging"&&(i.node.nodeType==="Stage"||i.node.getLayer()===a)&&(n=!0)});let l=!A&&!Z.hitOnDragEnabled&&(n||Z.isTransforming());return this.isListening()&&this.isVisible()&&!l}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let e=this.getDepth(),A=this,a=0,n,l,i,s;function c(h){for(n=[],l=h.length,i=0;i<l;i++)s=h[i],a++,s.nodeType!==_9&&(n=n.concat(s.getChildren().slice())),s._id===A._id&&(i=l);n.length>0&&n[0].getDepth()<=e&&c(n)}let d=this.getStage();return A.nodeType!==hX&&d&&c(d.getChildren()),a}getDepth(){let e=0,A=this.parent;for(;A;)e++,A=A.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Io),this._clearSelfAndDescendantCache(fr)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){let e=this.getStage();if(!e)return null;let A=e.getPointerPosition();if(!A)return null;let a=this.getAbsoluteTransform().copy();return a.invert(),a.point(A)}getAbsolutePosition(e){let A=!1,a=this.parent;for(;a;){if(a.isCached()){A=!0;break}a=a.parent}A&&!e&&(e=!0);let n=this.getAbsoluteTransform(e).getMatrix(),l=new VA,i=this.offset();return l.m=n.slice(),l.translate(i.x,i.y),l.getTranslation()}setAbsolutePosition(e){let{x:A,y:a,...n}=this._clearTransform();this.attrs.x=A,this.attrs.y=a,this._clearCache(Io);let l=this._getAbsoluteTransform().copy();return l.invert(),l.translate(e.x,e.y),e={x:this.attrs.x+l.getTranslation().x,y:this.attrs.y+l.getTranslation().y},this._setTransform(n),this.setPosition({x:e.x,y:e.y}),this._clearCache(Io),this._clearSelfAndDescendantCache(fr),this}_setTransform(e){let A;for(A in e)this.attrs[A]=e[A]}_clearTransform(){let e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){let A=e.x,a=e.y,n=this.x(),l=this.y();return A!==void 0&&(n+=A),a!==void 0&&(l+=a),this.setPosition({x:n,y:l}),this}_eachAncestorReverse(e,A){let a=[],n=this.getParent(),l,i;if(!(A&&A._id===this._id)){for(a.unshift(this);n&&(!A||n._id!==A._id);)a.unshift(n),n=n.parent;for(l=a.length,i=0;i<l;i++)e(a[i])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return H.warn("Node has no parent. moveToTop function is ignored."),!1;let e=this.index,A=this.parent.getChildren().length;return e<A-1?(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return H.warn("Node has no parent. moveUp function is ignored."),!1;let e=this.index,A=this.parent.getChildren().length;return e<A-1?(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return H.warn("Node has no parent. moveDown function is ignored."),!1;let e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return H.warn("Node has no parent. moveToBottom function is ignored."),!1;let e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return H.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&H.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");let A=this.index;return this.parent.children.splice(A,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Dg,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let e=this.opacity(),A=this.getParent();return A&&!A._isUnderCache&&(e*=A.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){let e=this.getAttrs(),A,a,n,l,i,s={attrs:{},className:this.getClassName()};for(A in e)a=e[A],i=H.isObject(a)&&!H._isPlainObject(a)&&!H._isArray(a),!i&&(n=typeof this[A]=="function"&&this[A],delete e[A],l=n?n.call(this):null,e[A]=a,l!==a&&(s.attrs[A]=a));return H._prepareToStringify(s)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,A,a){let n=[];A&&this._isMatch(e)&&n.push(this);let l=this.parent;for(;l;){if(l===a)return n;l._isMatch(e)&&n.push(l),l=l.parent}return n}isAncestorOf(e){return!1}findAncestor(e,A,a){return this.findAncestors(e,A,a)[0]}_isMatch(e){if(!e)return!1;if(typeof e=="function")return e(this);let A=e.replace(/ /g,"").split(","),a=A.length,n,l;for(n=0;n<a;n++)if(l=A[n],H.isValidSelector(l)||(H.warn('Selector "'+l+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),H.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),H.warn("Konva is awesome, right?")),l.charAt(0)==="#"){if(this.id()===l.slice(1))return!0}else if(l.charAt(0)==="."){if(this.hasName(l.slice(1)))return!0}else if(this.className===l||this.nodeType===l)return!0;return!1}getLayer(){let e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(O9,this._getStage)}_getStage(){let e=this.getParent();return e?e.getStage():null}fire(e,A={},a){return A.target=A.target||this,a?this._fireAndBubble(e,A):this._fire(e,A),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(fr,this._getAbsoluteTransform)}_getAbsoluteTransform(e){let A;if(e)return A=new VA,this._eachAncestorReverse(function(a){let n=a.transformsEnabled();n==="all"?A.multiply(a.getTransform()):n==="position"&&A.translate(a.x()-a.offsetX(),a.y()-a.offsetY())},e),A;{A=this._cache.get(fr)||new VA,this.parent?this.parent.getAbsoluteTransform().copyInto(A):A.reset();let a=this.transformsEnabled();if(a==="all")A.multiply(this.getTransform());else if(a==="position"){let n=this.attrs.x||0,l=this.attrs.y||0,i=this.attrs.offsetX||0,s=this.attrs.offsetY||0;A.translate(n-i,l-s)}return A.dirty=!1,A}}getAbsoluteScale(e){let A=this;for(;A;)A._isUnderCache&&(e=A),A=A.getParent();let n=this.getAbsoluteTransform(e).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Io,this._getTransform)}_getTransform(){var e,A;let a=this._cache.get(Io)||new VA;a.reset();let n=this.x(),l=this.y(),i=Z.getAngle(this.rotation()),s=(e=this.attrs.scaleX)!==null&&e!==void 0?e:1,c=(A=this.attrs.scaleY)!==null&&A!==void 0?A:1,d=this.attrs.skewX||0,h=this.attrs.skewY||0,p=this.attrs.offsetX||0,m=this.attrs.offsetY||0;return(n!==0||l!==0)&&a.translate(n,l),i!==0&&a.rotate(i),(d!==0||h!==0)&&a.skew(d,h),(s!==1||c!==1)&&a.scale(s,c),(p!==0||m!==0)&&a.translate(-1*p,-1*m),a.dirty=!1,a}clone(e){let A=H.cloneObject(this.attrs),a,n,l,i,s;for(a in e)A[a]=e[a];let c=new this.constructor(A);for(a in this.eventListeners)for(n=this.eventListeners[a],l=n.length,i=0;i<l;i++)s=n[i],s.name.indexOf(oX)<0&&(c.eventListeners[a]||(c.eventListeners[a]=[]),c.eventListeners[a].push(s));return c}_toKonvaCanvas(e){e=e||{};let A=this.getClientRect(),a=this.getStage(),n=e.x!==void 0?e.x:Math.floor(A.x),l=e.y!==void 0?e.y:Math.floor(A.y),i=e.pixelRatio||1,s=new Ya({width:e.width||Math.ceil(A.width)||(a?a.width():0),height:e.height||Math.ceil(A.height)||(a?a.height():0),pixelRatio:i}),c=s.getContext(),d=new Ya({width:s.width/s.pixelRatio+Math.abs(n),height:s.height/s.pixelRatio+Math.abs(l),pixelRatio:s.pixelRatio});return e.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(n||l)&&c.translate(-1*n,-1*l),this.drawScene(s,void 0,d),c.restore(),s}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){e=e||{};let A=e.mimeType||null,a=e.quality||null,n=this._toKonvaCanvas(e).toDataURL(A,a);return e.callback&&e.callback(n),n}toImage(e){return new Promise((A,a)=>{try{let n=e?.callback;n&&delete e.callback,H._urlToImage(this.toDataURL(e),function(l){A(l),n?.(l)})}catch(n){a(n)}})}toBlob(e){return new Promise((A,a)=>{try{let n=e?.callback;n&&delete e.callback,this.toCanvas(e).toBlob(l=>{A(l),n?.(l)},e?.mimeType,e?.quality)}catch(n){a(n)}})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Z.dragDistance}_off(e,A,a){let n=this.eventListeners[e],l,i,s;for(l=0;l<n.length;l++)if(i=n[l].name,s=n[l].handler,(i!=="konva"||A==="konva")&&(!A||i===A)&&(!a||a===s)){if(n.splice(l,1),n.length===0){delete this.eventListeners[e];break}l--}}_fireChangeEvent(e,A,a){this._fire(e+lX,{oldVal:A,newVal:a})}addName(e){if(!this.hasName(e)){let A=this.name(),a=A?A+" "+e:e;this.name(a)}return this}hasName(e){if(!e)return!1;let A=this.name();return A?(A||"").split(/\s/g).indexOf(e)!==-1:!1}removeName(e){let A=(this.name()||"").split(/\s/g),a=A.indexOf(e);return a!==-1&&(A.splice(a,1),this.name(A.join(" "))),this}setAttr(e,A){let a=this[M9+H._capitalize(e)];return H._isFunction(a)?a.call(this,A):this._setAttr(e,A),this}_requestDraw(){if(Z.autoDrawEnabled){let e=this.getLayer()||this.getStage();e?.batchDraw()}}_setAttr(e,A){let a=this.attrs[e];a===A&&!H.isObject(A)||(A==null?delete this.attrs[e]:this.attrs[e]=A,this._shouldFireChangeEvents&&this._fireChangeEvent(e,a,A),this._requestDraw())}_setComponentAttr(e,A,a){let n;a!==void 0&&(n=this.attrs[e],n||(this.attrs[e]=this.getAttr(e)),this.attrs[e][A]=a,this._fireChangeEvent(e,n,a))}_fireAndBubble(e,A,a){A&&this.nodeType===_9&&(A.target=this);let n=[iX,sX,uX,cX,fX,dX];if(!(n.indexOf(e)!==-1&&(a&&(this===a||this.isAncestorOf&&this.isAncestorOf(a))||this.nodeType==="Stage"&&!a))){this._fire(e,A);let i=n.indexOf(e)!==-1&&a&&a.isAncestorOf&&a.isAncestorOf(this)&&!a.isAncestorOf(this.parent);(A&&!A.cancelBubble||!A)&&this.parent&&this.parent.isListening()&&!i&&(a&&a.parent?this._fireAndBubble.call(this.parent,e,A,a):this._fireAndBubble.call(this.parent,e,A))}}_getProtoListeners(e){var A,a;let{nodeType:n}=this,l=t.protoListenerMap.get(n)||{},i=l?.[e];if(i===void 0){i=[];let s=Object.getPrototypeOf(this);for(;s;){let c=(a=(A=s.eventListeners)===null||A===void 0?void 0:A[e])!==null&&a!==void 0?a:[];i.push(...c),s=Object.getPrototypeOf(s)}l[e]=i,t.protoListenerMap.set(n,l)}return i}_fire(e,A){A=A||{},A.currentTarget=this,A.type=e;let a=this._getProtoListeners(e);if(a)for(let l=0;l<a.length;l++)a[l].handler.call(this,A);let n=this.eventListeners[e];if(n)for(let l=0;l<n.length;l++)n[l].handler.call(this,A)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){let A=e?e.pointerId:void 0,a=this.getStage(),n=this.getAbsolutePosition();if(!a)return;let l=a._getPointerById(A)||a._changedPointerPositions[0]||n;Xe._dragElements.set(this._id,{node:this,startPointerPos:l,offset:{x:l.x-n.x,y:l.y-n.y},dragStatus:"ready",pointerId:A})}startDrag(e,A=!0){Xe._dragElements.has(this._id)||this._createDragElement(e);let a=Xe._dragElements.get(this._id);a.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},A)}_setDragPosition(e,A){let a=this.getStage()._getPointerById(A.pointerId);if(!a)return;let n={x:a.x-A.offset.x,y:a.y-A.offset.y},l=this.dragBoundFunc();if(l!==void 0){let i=l.call(this,n,e);i?n=i:H.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==n.x||this._lastPos.y!==n.y)&&(this.setAbsolutePosition(n),this._requestDraw()),this._lastPos=n}stopDrag(e){let A=Xe._dragElements.get(this._id);A&&(A.dragStatus="stopped"),Xe._endDragBefore(e),Xe._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){let e=Xe._dragElements.get(this._id);return e?e.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(e){if(!(!(e.evt.button!==void 0)||Z.dragButtons.indexOf(e.evt.button)>=0)||this.isDragging())return;let n=!1;Xe._dragElements.forEach(l=>{this.isAncestorOf(l.node)&&(n=!0)}),n||this._createDragElement(e)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;let A=Xe._dragElements.get(this._id),a=A&&A.dragStatus==="dragging",n=A&&A.dragStatus==="ready";a?this.stopDrag():n&&Xe._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){let A=this.getStage();if(!A)return!1;let a={x:-e.x,y:-e.y,width:A.width()+2*e.x,height:A.height()+2*e.y};return H.haveIntersection(a,this.getClientRect())}static create(e,A){return H._isString(e)&&(e=JSON.parse(e)),this._createNode(e,A)}static _createNode(e,A){let a=t.prototype.getClassName.call(e),n=e.children,l,i,s;A&&(e.attrs.container=A),Z[a]||(H.warn('Can not find a node with class name "'+a+'". Fallback to "Shape".'),a="Shape");let c=Z[a];if(l=new c(e.attrs),n)for(i=n.length,s=0;s<i;s++)l.add(t._createNode(n[s]));return l}};k.protoListenerMap=new Map;k.prototype.nodeType="Node";k.prototype._attrsAffectingSize=[];k.prototype.eventListeners={};k.prototype.on.call(k.prototype,pX,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Io),this._clearSelfAndDescendantCache(fr)});k.prototype.on.call(k.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(bx)});k.prototype.on.call(k.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(Sx)});k.prototype.on.call(k.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Dg)});var ut=Q.addGetterSetter;ut(k,"zIndex");ut(k,"absolutePosition");ut(k,"position");ut(k,"x",0,K());ut(k,"y",0,K());ut(k,"globalCompositeOperation","source-over",Sl());ut(k,"opacity",1,K());ut(k,"name","",Sl());ut(k,"id","",Sl());ut(k,"rotation",0,K());Q.addComponentsGetterSetter(k,"scale",["x","y"]);ut(k,"scaleX",1,K());ut(k,"scaleY",1,K());Q.addComponentsGetterSetter(k,"skew",["x","y"]);ut(k,"skewX",0,K());ut(k,"skewY",0,K());Q.addComponentsGetterSetter(k,"offset",["x","y"]);ut(k,"offsetX",0,K());ut(k,"offsetY",0,K());ut(k,"dragDistance",void 0,K());ut(k,"width",0,K());ut(k,"height",0,K());ut(k,"listening",!0,PA());ut(k,"preventDefault",!0,PA());ut(k,"filters",void 0,function(t){return this._filterUpToDate=!1,t});ut(k,"visible",!0,PA());ut(k,"transformsEnabled","all",Sl());ut(k,"size");ut(k,"dragBoundFunc");ut(k,"draggable",!1,PA());Q.backCompat(k,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});var BA=class extends k{constructor(){super(...arguments),this.children=[]}getChildren(e){let A=this.children||[];return e?A.filter(e):A}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(let a=0;a<e.length;a++)this.add(e[a]);return this}let A=e[0];return A.getParent()?(A.moveTo(this),this):(this._validateAdd(A),A.index=this.getChildren().length,A.parent=this,A._clearCaches(),this.getChildren().push(A),this._fire("add",{child:A}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){let A=this._generalFind(e,!0);return A.length>0?A[0]:void 0}_generalFind(e,A){let a=[];return this._descendants(n=>{let l=n._isMatch(e);return l&&a.push(n),!!(l&&A)}),a}_descendants(e){let A=!1,a=this.getChildren();for(let n of a){if(A=e(n),A)return!0;if(n.hasChildren()&&(A=n._descendants(e),A))return!0}return!1}toObject(){let e=k.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(A=>{e.children.push(A.toObject())}),e}isAncestorOf(e){let A=e.getParent();for(;A;){if(A._id===this._id)return!0;A=A.getParent()}return!1}clone(e){let A=k.prototype.clone.call(this,e);return this.getChildren().forEach(function(a){A.add(a.clone())}),A}getAllIntersections(e){let A=[];return this.find("Shape").forEach(a=>{a.isVisible()&&a.intersects(e)&&A.push(a)}),A}_clearSelfAndDescendantCache(e){var A;super._clearSelfAndDescendantCache(e),!this.isCached()&&((A=this.children)===null||A===void 0||A.forEach(function(a){a._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(A,a){A.index=a}),this._requestDraw()}drawScene(e,A,a){let n=this.getLayer(),l=e||n&&n.getCanvas(),i=l&&l.getContext(),s=this._getCanvasCache(),c=s&&s.scene,d=l&&l.isCache;if(!this.isVisible()&&!d)return this;if(c){i.save();let h=this.getAbsoluteTransform(A).getMatrix();i.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this._drawCachedSceneCanvas(i),i.restore()}else this._drawChildren("drawScene",l,A,a);return this}drawHit(e,A){if(!this.shouldDrawHit(A))return this;let a=this.getLayer(),n=e||a&&a.hitCanvas,l=n&&n.getContext(),i=this._getCanvasCache();if(i&&i.hit){l.save();let c=this.getAbsoluteTransform(A).getMatrix();l.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(l),l.restore()}else this._drawChildren("drawHit",n,A);return this}_drawChildren(e,A,a,n){var l;let i=A&&A.getContext(),s=this.clipWidth(),c=this.clipHeight(),d=this.clipFunc(),h=typeof s=="number"&&typeof c=="number"||d,p=a===this;if(h){i.save();let B=this.getAbsoluteTransform(a),y=B.getMatrix();i.transform(y[0],y[1],y[2],y[3],y[4],y[5]),i.beginPath();let v;if(d)v=d.call(this,i,this);else{let b=this.clipX(),w=this.clipY();i.rect(b||0,w||0,s,c)}i.clip.apply(i,v),y=B.copy().invert().getMatrix(),i.transform(y[0],y[1],y[2],y[3],y[4],y[5])}let m=!p&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";m&&(i.save(),i._applyGlobalCompositeOperation(this)),(l=this.children)===null||l===void 0||l.forEach(function(B){B[e](A,a,n)}),m&&i.restore(),h&&i.restore()}getClientRect(e={}){var A;let a=e.skipTransform,n=e.relativeTo,l,i,s,c,d={x:1/0,y:1/0,width:0,height:0},h=this;(A=this.children)===null||A===void 0||A.forEach(function(B){if(!B.visible())return;let y=B.getClientRect({relativeTo:h,skipShadow:e.skipShadow,skipStroke:e.skipStroke});y.width===0&&y.height===0||(l===void 0?(l=y.x,i=y.y,s=y.x+y.width,c=y.y+y.height):(l=Math.min(l,y.x),i=Math.min(i,y.y),s=Math.max(s,y.x+y.width),c=Math.max(c,y.y+y.height)))});let p=this.find("Shape"),m=!1;for(let B=0;B<p.length;B++)if(p[B]._isVisible(this)){m=!0;break}return m&&l!==void 0?d={x:l,y:i,width:s-l,height:c-i}:d={x:0,y:0,width:0,height:0},a?d:this._transformedRect(d,n)}};Q.addComponentsGetterSetter(BA,"clip",["x","y","width","height"]);Q.addGetterSetter(BA,"clipX",void 0,K());Q.addGetterSetter(BA,"clipY",void 0,K());Q.addGetterSetter(BA,"clipWidth",void 0,K());Q.addGetterSetter(BA,"clipHeight",void 0,K());Q.addGetterSetter(BA,"clipFunc");var zd=new Map,N9=Z._global.PointerEvent!==void 0;function _g(t){return zd.get(t)}function Og(t){return{evt:t,pointerId:t.pointerId}}function Ng(t,e){return zd.get(t)===e}function Gg(t,e){Pi(t),e.getStage()&&(zd.set(t,e),N9&&e._fire("gotpointercapture",Og(new PointerEvent("gotpointercapture"))))}function Pi(t,e){let A=zd.get(t);if(!A)return;let a=A.getStage();a&&a.content,zd.delete(t),N9&&A._fire("lostpointercapture",Og(new PointerEvent("lostpointercapture")))}var gX="Stage",BX="string",K9="px",CX="mouseout",V9="mouseleave",P9="mouseover",k9="mouseenter",X9="mousemove",q9="mousedown",Y9="mouseup",Vd="pointermove",Pd="pointerdown",Xu="pointerup",kd="pointercancel",yX="lostpointercapture",Kg="pointerout",Xd="pointerleave",zg="pointerover",Vg="pointerenter",Ex="contextmenu",j9="touchstart",Z9="touchend",J9="touchmove",W9="touchcancel",Lx="wheel",xX=5,wX=[[k9,"_pointerenter"],[q9,"_pointerdown"],[X9,"_pointermove"],[Y9,"_pointerup"],[V9,"_pointerleave"],[j9,"_pointerdown"],[J9,"_pointermove"],[Z9,"_pointerup"],[W9,"_pointercancel"],[P9,"_pointerover"],[Lx,"_wheel"],[Ex,"_contextmenu"],[Pd,"_pointerdown"],[Vd,"_pointermove"],[Xu,"_pointerup"],[kd,"_pointercancel"],[Xd,"_pointerleave"],[yX,"_lostpointercapture"]],Ux={mouse:{[Kg]:CX,[Xd]:V9,[zg]:P9,[Vg]:k9,[Vd]:X9,[Pd]:q9,[Xu]:Y9,[kd]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[Kg]:"touchout",[Xd]:"touchleave",[zg]:"touchover",[Vg]:"touchenter",[Vd]:J9,[Pd]:j9,[Xu]:Z9,[kd]:W9,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[Kg]:Kg,[Xd]:Xd,[zg]:zg,[Vg]:Vg,[Vd]:Vd,[Pd]:Pd,[Xu]:Xu,[kd]:kd,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},qd=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",ku=t=>{let e=qd(t);if(e==="pointer")return Z.pointerEventsEnabled&&Ux.pointer;if(e==="touch")return Ux.touch;if(e==="mouse")return Ux.mouse};function z9(t={}){return(t.clipFunc||t.clipWidth||t.clipHeight)&&H.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}var vX="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",qu=[],ki=class extends BA{constructor(e){super(z9(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),qu.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{z9(this.attrs)}),this._checkVisibility()}_validateAdd(e){let A=e.getType()==="Layer",a=e.getType()==="FastLayer";A||a||H.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;let e=this.visible()?"":"none";this.content.style.display=e}setContainer(e){if(typeof e===BX){let A;if(e.charAt(0)==="."){let a=e.slice(1);e=document.getElementsByClassName(a)[0]}else e.charAt(0)!=="#"?A=e:A=e.slice(1),e=document.getElementById(A);if(!e)throw"Can not find container in document with id "+A}return this._setAttr("container",e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){let e=this.children,A=e.length;for(let a=0;a<A;a++)e[a].clear();return this}clone(e){return e||(e={}),e.container=typeof document<"u"&&document.createElement("div"),BA.prototype.clone.call(this,e)}destroy(){super.destroy();let e=this.content;e&&H._isInDocument(e)&&this.container().removeChild(e);let A=qu.indexOf(this);return A>-1&&qu.splice(A,1),H.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){let e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(H.warn(vX),null)}_getPointerById(e){return this._pointerPositions.find(A=>A.id===e)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){e={...e},e.x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();let A=new Ya({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),a=A.getContext()._context,n=this.children;return(e.x||e.y)&&a.translate(-1*e.x,-1*e.y),n.forEach(function(l){if(!l.isVisible())return;let i=l._toKonvaCanvas(e);a.drawImage(i._canvas,e.x,e.y,i.getWidth()/i.getPixelRatio(),i.getHeight()/i.getPixelRatio())}),A}getIntersection(e){if(!e)return null;let A=this.children,a=A.length,n=a-1;for(let l=n;l>=0;l--){let i=A[l].getIntersection(e);if(i)return i}return null}_resizeDOM(){let e=this.width(),A=this.height();this.content&&(this.content.style.width=e+K9,this.content.style.height=A+K9),this.bufferCanvas.setSize(e,A),this.bufferHitCanvas.setSize(e,A),this.children.forEach(a=>{a.setSize({width:e,height:A}),a.draw()})}add(e,...A){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}super.add(e);let a=this.children.length;return a>xX&&H.warn("The stage has "+a+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),Z.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return Ng(e,this)}setPointerCapture(e){Gg(e,this)}releaseCapture(e){Pi(e,this)}getLayers(){return this.children}_bindContentEvents(){Z.isBrowser&&wX.forEach(([e,A])=>{this.content.addEventListener(e,a=>{this[A](a)},{passive:!1})})}_pointerenter(e){this.setPointersPositions(e);let A=ku(e.type);A&&this._fire(A.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);let A=ku(e.type);A&&this._fire(A.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let A=this[e+"targetShape"];return A&&!A.getStage()&&(A=null),A}_pointerleave(e){let A=ku(e.type),a=qd(e.type);if(!A)return;this.setPointersPositions(e);let n=this._getTargetShape(a),l=!(Z.isDragging()||Z.isTransforming())||Z.hitOnDragEnabled;n&&l?(n._fireAndBubble(A.pointerout,{evt:e}),n._fireAndBubble(A.pointerleave,{evt:e}),this._fire(A.pointerleave,{evt:e,target:this,currentTarget:this}),this[a+"targetShape"]=null):l&&(this._fire(A.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(A.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(e){let A=ku(e.type),a=qd(e.type);if(!A)return;this.setPointersPositions(e);let n=!1;this._changedPointerPositions.forEach(l=>{let i=this.getIntersection(l);if(Xe.justDragged=!1,Z["_"+a+"ListenClick"]=!0,!i||!i.isListening()){this[a+"ClickStartShape"]=void 0;return}Z.capturePointerEventsEnabled&&i.setPointerCapture(l.id),this[a+"ClickStartShape"]=i,i._fireAndBubble(A.pointerdown,{evt:e,pointerId:l.id}),n=!0;let s=e.type.indexOf("touch")>=0;i.preventDefault()&&e.cancelable&&s&&e.preventDefault()}),n||this._fire(A.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(e){let A=ku(e.type),a=qd(e.type);if(!A)return;let n=e.type.indexOf("touch")>=0||e.pointerType==="touch";if(Z.isDragging()&&Xe.node.preventDefault()&&e.cancelable&&n&&e.preventDefault(),this.setPointersPositions(e),!(!(Z.isDragging()||Z.isTransforming())||Z.hitOnDragEnabled))return;let i={},s=!1,c=this._getTargetShape(a);this._changedPointerPositions.forEach(d=>{let h=_g(d.id)||this.getIntersection(d),p=d.id,m={evt:e,pointerId:p},B=c!==h;if(B&&c&&(c._fireAndBubble(A.pointerout,{...m},h),c._fireAndBubble(A.pointerleave,{...m},h)),h){if(i[h._id])return;i[h._id]=!0}h&&h.isListening()?(s=!0,B&&(h._fireAndBubble(A.pointerover,{...m},c),h._fireAndBubble(A.pointerenter,{...m},c),this[a+"targetShape"]=h),h._fireAndBubble(A.pointermove,{...m})):c&&(this._fire(A.pointerover,{evt:e,target:this,currentTarget:this,pointerId:p}),this[a+"targetShape"]=null)}),s||this._fire(A.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){let A=ku(e.type),a=qd(e.type);if(!A)return;this.setPointersPositions(e);let n=this[a+"ClickStartShape"],l=this[a+"ClickEndShape"],i={},s=!1;this._changedPointerPositions.forEach(c=>{let d=_g(c.id)||this.getIntersection(c);if(d){if(d.releaseCapture(c.id),i[d._id])return;i[d._id]=!0}let h=c.id,p={evt:e,pointerId:h},m=!1;Z["_"+a+"InDblClickWindow"]?(m=!0,clearTimeout(this[a+"DblTimeout"])):Xe.justDragged||(Z["_"+a+"InDblClickWindow"]=!0,clearTimeout(this[a+"DblTimeout"])),this[a+"DblTimeout"]=setTimeout(function(){Z["_"+a+"InDblClickWindow"]=!1},Z.dblClickWindow),d&&d.isListening()?(s=!0,this[a+"ClickEndShape"]=d,d._fireAndBubble(A.pointerup,{...p}),Z["_"+a+"ListenClick"]&&n&&n===d&&(d._fireAndBubble(A.pointerclick,{...p}),m&&l&&l===d&&d._fireAndBubble(A.pointerdblclick,{...p}))):(this[a+"ClickEndShape"]=null,s||(this._fire(A.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),s=!0),Z["_"+a+"ListenClick"]&&this._fire(A.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:h}),m&&this._fire(A.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:h}))}),s||this._fire(A.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),Z["_"+a+"ListenClick"]=!1,e.cancelable&&a!=="touch"&&a!=="pointer"&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);let A=this.getIntersection(this.getPointerPosition());A&&A.isListening()?A._fireAndBubble(Ex,{evt:e}):this._fire(Ex,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);let A=this.getIntersection(this.getPointerPosition());A&&A.isListening()?A._fireAndBubble(Lx,{evt:e}):this._fire(Lx,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);let A=_g(e.pointerId)||this.getIntersection(this.getPointerPosition());A&&A._fireAndBubble(Xu,Og(e)),Pi(e.pointerId)}_lostpointercapture(e){Pi(e.pointerId)}setPointersPositions(e){let A=this._getContentPosition(),a=null,n=null;e=e||window.event,e.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,l=>{this._pointerPositions.push({id:l.identifier,x:(l.clientX-A.left)/A.scaleX,y:(l.clientY-A.top)/A.scaleY})}),Array.prototype.forEach.call(e.changedTouches||e.touches,l=>{this._changedPointerPositions.push({id:l.identifier,x:(l.clientX-A.left)/A.scaleX,y:(l.clientY-A.top)/A.scaleY})})):(a=(e.clientX-A.left)/A.scaleX,n=(e.clientY-A.top)/A.scaleY,this.pointerPos={x:a,y:n},this._pointerPositions=[{x:a,y:n,id:H._getFirstPointerId(e)}],this._changedPointerPositions=[{x:a,y:n,id:H._getFirstPointerId(e)}])}_setPointerPosition(e){H.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};let e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new Ya({width:this.width(),height:this.height()}),this.bufferHitCanvas=new Qo({pixelRatio:1,width:this.width(),height:this.height()}),!Z.isBrowser)return;let e=this.container();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}cache(){return H.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(e){e.batchDraw()}),this}};ki.prototype.nodeType=gX;xe(ki);Q.addGetterSetter(ki,"container");Z.isBrowser&&document.addEventListener("visibilitychange",()=>{qu.forEach(t=>{t.batchDraw()})});var $9="hasShadow",eF="shadowRGBA",tF="patternImage",AF="linearGradient",aF="radialGradient",Pg;function Qx(){return Pg||(Pg=H.createCanvasElement().getContext("2d"),Pg)}var Xi={};function SX(t){let e=this.attrs.fillRule;e?t.fill(e):t.fill()}function bX(t){t.stroke()}function UX(t){let e=this.attrs.fillRule;e?t.fill(e):t.fill()}function EX(t){t.stroke()}function LX(){this._clearCache($9)}function QX(){this._clearCache(eF)}function FX(){this._clearCache(tF)}function TX(){this._clearCache(AF)}function IX(){this._clearCache(aF)}var z=class extends k{constructor(e){super(e);let A,a=0;for(;A=H.getHitColor(),!(A&&!(A in Xi));)if(a++,a>=1e4){H.warn("Failed to find a unique color key for a shape. Konva may work incorrectly. Most likely your browser is using canvas farbling. Consider disabling it."),A=H.getRandomColor();break}this.colorKey=A,Xi[A]=this}getContext(){return H.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return H.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache($9,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(tF,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){let A=Qx().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){let a=new VA;a.translate(this.fillPatternX(),this.fillPatternY()),a.rotate(Z.getAngle(this.fillPatternRotation())),a.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),a.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());let n=a.getMatrix(),l=typeof DOMMatrix>"u"?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);A.setTransform(l)}return A}}_getLinearGradient(){return this._getCache(AF,this.__getLinearGradient)}__getLinearGradient(){let e=this.fillLinearGradientColorStops();if(e){let A=Qx(),a=this.fillLinearGradientStartPoint(),n=this.fillLinearGradientEndPoint(),l=A.createLinearGradient(a.x,a.y,n.x,n.y);for(let i=0;i<e.length;i+=2)l.addColorStop(e[i],e[i+1]);return l}}_getRadialGradient(){return this._getCache(aF,this.__getRadialGradient)}__getRadialGradient(){let e=this.fillRadialGradientColorStops();if(e){let A=Qx(),a=this.fillRadialGradientStartPoint(),n=this.fillRadialGradientEndPoint(),l=A.createRadialGradient(a.x,a.y,this.fillRadialGradientStartRadius(),n.x,n.y,this.fillRadialGradientEndRadius());for(let i=0;i<e.length;i+=2)l.addColorStop(e[i],e[i+1]);return l}}getShadowRGBA(){return this._getCache(eF,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;let e=H.colorToRGBA(this.shadowColor());if(e)return"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){let e=this.hitStrokeWidth();return e==="auto"?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){let A=this.getStage();if(!A)return!1;let a=A.bufferHitCanvas;return a.getContext().clear(),this.drawHit(a,void 0,!0),a.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data[3]>0}destroy(){return k.prototype.destroy.call(this),delete Xi[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;let n=e||this.hasFill(),l=this.hasStroke(),i=this.getAbsoluteOpacity()!==1;if(n&&l&&i)return!0;let s=this.hasShadow(),c=this.shadowForStrokeEnabled();return!!(n&&l&&s&&c)}setStrokeHitEnabled(e){H.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){let e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){let A=!1,a=this.getParent();for(;a;){if(a.isCached()){A=!0;break}a=a.getParent()}let n=e.skipTransform,l=e.relativeTo||A&&this.getStage()||void 0,i=this.getSelfRect(),c=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,d=i.width+c,h=i.height+c,p=!e.skipShadow&&this.hasShadow(),m=p?this.shadowOffsetX():0,B=p?this.shadowOffsetY():0,y=d+Math.abs(m),v=h+Math.abs(B),b=p&&this.shadowBlur()||0,w=y+b*2,x=v+b*2,S={width:w,height:x,x:-(c/2+b)+Math.min(m,0)+i.x,y:-(c/2+b)+Math.min(B,0)+i.y};return n?S:this._transformedRect(S,l)}drawScene(e,A,a){let n=this.getLayer(),l=e||n.getCanvas(),i=l.getContext(),s=this._getCanvasCache(),c=this.getSceneFunc(),d=this.hasShadow(),h,p=!1,m=A===this;if(!this.isVisible()&&!m)return this;if(s){i.save();let B=this.getAbsoluteTransform(A).getMatrix();return i.transform(B[0],B[1],B[2],B[3],B[4],B[5]),this._drawCachedSceneCanvas(i),i.restore(),this}if(!c)return this;if(i.save(),this._useBufferCanvas()&&!p){h=this.getStage();let B=a||h.bufferCanvas,y=B.getContext();a?(y.save(),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,B.width,B.height),y.restore()):y.clear(),y.save(),y._applyLineJoin(this),y._applyMiterLimit(this);let v=this.getAbsoluteTransform(A).getMatrix();y.transform(v[0],v[1],v[2],v[3],v[4],v[5]),c.call(this,y,this),y.restore();let b=B.pixelRatio;d&&i._applyShadow(this),m||(i._applyOpacity(this),i._applyGlobalCompositeOperation(this)),i.drawImage(B._canvas,B.x||0,B.y||0,B.width/b,B.height/b)}else{if(i._applyLineJoin(this),i._applyMiterLimit(this),!m){let B=this.getAbsoluteTransform(A).getMatrix();i.transform(B[0],B[1],B[2],B[3],B[4],B[5]),i._applyOpacity(this),i._applyGlobalCompositeOperation(this)}d&&i._applyShadow(this),c.call(this,i,this)}return i.restore(),this}drawHit(e,A,a=!1){if(!this.shouldDrawHit(A,a))return this;let n=this.getLayer(),l=e||n.hitCanvas,i=l&&l.getContext(),s=this.hitFunc()||this.sceneFunc(),c=this._getCanvasCache(),d=c&&c.hit;if(this.colorKey||H.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),d){i.save();let p=this.getAbsoluteTransform(A).getMatrix();return i.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedHitCanvas(i),i.restore(),this}if(!s)return this;if(i.save(),i._applyLineJoin(this),i._applyMiterLimit(this),!(this===A)){let p=this.getAbsoluteTransform(A).getMatrix();i.transform(p[0],p[1],p[2],p[3],p[4],p[5])}return s.call(this,i,this),i.restore(),this}drawHitFromCache(e=0){let A=this._getCanvasCache(),a=this._getCachedSceneCanvas(),n=A.hit,l=n.getContext(),i=n.getWidth(),s=n.getHeight();l.clear(),l.drawImage(a._canvas,0,0,i,s);try{let c=l.getImageData(0,0,i,s),d=c.data,h=d.length,p=H._hexToRgb(this.colorKey);for(let m=0;m<h;m+=4)d[m+3]>e?(d[m]=p.r,d[m+1]=p.g,d[m+2]=p.b,d[m+3]=255):d[m+3]=0;l.putImageData(c,0,0)}catch(c){H.error("Unable to draw hit graph from cached scene canvas. "+c.message)}return this}hasPointerCapture(e){return Ng(e,this)}setPointerCapture(e){Gg(e,this)}releaseCapture(e){Pi(e,this)}};z.prototype._fillFunc=SX;z.prototype._strokeFunc=bX;z.prototype._fillFuncHit=UX;z.prototype._strokeFuncHit=EX;z.prototype._centroid=!1;z.prototype.nodeType="Shape";xe(z);z.prototype.eventListeners={};z.prototype.on.call(z.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",LX);z.prototype.on.call(z.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",QX);z.prototype.on.call(z.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",FX);z.prototype.on.call(z.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",TX);z.prototype.on.call(z.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",IX);Q.addGetterSetter(z,"stroke",void 0,vx());Q.addGetterSetter(z,"strokeWidth",2,K());Q.addGetterSetter(z,"fillAfterStrokeEnabled",!1);Q.addGetterSetter(z,"hitStrokeWidth","auto",Nd());Q.addGetterSetter(z,"strokeHitEnabled",!0,PA());Q.addGetterSetter(z,"perfectDrawEnabled",!0,PA());Q.addGetterSetter(z,"shadowForStrokeEnabled",!0,PA());Q.addGetterSetter(z,"lineJoin");Q.addGetterSetter(z,"lineCap");Q.addGetterSetter(z,"miterLimit");Q.addGetterSetter(z,"sceneFunc");Q.addGetterSetter(z,"hitFunc");Q.addGetterSetter(z,"dash");Q.addGetterSetter(z,"dashOffset",0,K());Q.addGetterSetter(z,"shadowColor",void 0,Sl());Q.addGetterSetter(z,"shadowBlur",0,K());Q.addGetterSetter(z,"shadowOpacity",1,K());Q.addComponentsGetterSetter(z,"shadowOffset",["x","y"]);Q.addGetterSetter(z,"shadowOffsetX",0,K());Q.addGetterSetter(z,"shadowOffsetY",0,K());Q.addGetterSetter(z,"fillPatternImage");Q.addGetterSetter(z,"fill",void 0,vx());Q.addGetterSetter(z,"fillPatternX",0,K());Q.addGetterSetter(z,"fillPatternY",0,K());Q.addGetterSetter(z,"fillLinearGradientColorStops");Q.addGetterSetter(z,"strokeLinearGradientColorStops");Q.addGetterSetter(z,"fillRadialGradientStartRadius",0);Q.addGetterSetter(z,"fillRadialGradientEndRadius",0);Q.addGetterSetter(z,"fillRadialGradientColorStops");Q.addGetterSetter(z,"fillPatternRepeat","repeat");Q.addGetterSetter(z,"fillEnabled",!0);Q.addGetterSetter(z,"strokeEnabled",!0);Q.addGetterSetter(z,"shadowEnabled",!0);Q.addGetterSetter(z,"dashEnabled",!0);Q.addGetterSetter(z,"strokeScaleEnabled",!0);Q.addGetterSetter(z,"fillPriority","color");Q.addComponentsGetterSetter(z,"fillPatternOffset",["x","y"]);Q.addGetterSetter(z,"fillPatternOffsetX",0,K());Q.addGetterSetter(z,"fillPatternOffsetY",0,K());Q.addComponentsGetterSetter(z,"fillPatternScale",["x","y"]);Q.addGetterSetter(z,"fillPatternScaleX",1,K());Q.addGetterSetter(z,"fillPatternScaleY",1,K());Q.addComponentsGetterSetter(z,"fillLinearGradientStartPoint",["x","y"]);Q.addComponentsGetterSetter(z,"strokeLinearGradientStartPoint",["x","y"]);Q.addGetterSetter(z,"fillLinearGradientStartPointX",0);Q.addGetterSetter(z,"strokeLinearGradientStartPointX",0);Q.addGetterSetter(z,"fillLinearGradientStartPointY",0);Q.addGetterSetter(z,"strokeLinearGradientStartPointY",0);Q.addComponentsGetterSetter(z,"fillLinearGradientEndPoint",["x","y"]);Q.addComponentsGetterSetter(z,"strokeLinearGradientEndPoint",["x","y"]);Q.addGetterSetter(z,"fillLinearGradientEndPointX",0);Q.addGetterSetter(z,"strokeLinearGradientEndPointX",0);Q.addGetterSetter(z,"fillLinearGradientEndPointY",0);Q.addGetterSetter(z,"strokeLinearGradientEndPointY",0);Q.addComponentsGetterSetter(z,"fillRadialGradientStartPoint",["x","y"]);Q.addGetterSetter(z,"fillRadialGradientStartPointX",0);Q.addGetterSetter(z,"fillRadialGradientStartPointY",0);Q.addComponentsGetterSetter(z,"fillRadialGradientEndPoint",["x","y"]);Q.addGetterSetter(z,"fillRadialGradientEndPointX",0);Q.addGetterSetter(z,"fillRadialGradientEndPointY",0);Q.addGetterSetter(z,"fillPatternRotation",0);Q.addGetterSetter(z,"fillRule",void 0,Sl());Q.backCompat(z,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});var HX="beforeDraw",RX="draw",nF=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],DX=nF.length,Pn=class extends BA{constructor(e){super(e),this.canvas=new Ya,this.hitCanvas=new Qo({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);let A=this.getStage();return A&&A.content&&(A.content.removeChild(this.getNativeCanvasElement()),e<A.children.length-1?A.content.insertBefore(this.getNativeCanvasElement(),A.children[e+1].getCanvas()._canvas):A.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){k.prototype.moveToTop.call(this);let e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!k.prototype.moveUp.call(this))return!1;let A=this.getStage();return!A||!A.content?!1:(A.content.removeChild(this.getNativeCanvasElement()),this.index<A.children.length-1?A.content.insertBefore(this.getNativeCanvasElement(),A.children[this.index+1].getCanvas()._canvas):A.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(k.prototype.moveDown.call(this)){let e=this.getStage();if(e){let A=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),A[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(k.prototype.moveToBottom.call(this)){let e=this.getStage();if(e){let A=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),A[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){let e=this.getNativeCanvasElement();return k.prototype.remove.call(this),e&&e.parentNode&&H._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:A}){return this.canvas.setSize(e,A),this.hitCanvas.setSize(e,A),this._setSmoothEnabled(),this}_validateAdd(e){let A=e.getType();A!=="Group"&&A!=="Shape"&&H.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return e={...e},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x!==void 0?e.x:this.x(),e.y=e.y!==void 0?e.y:this.y(),k.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){H.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){H.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,H.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;let A=1,a=!1;for(;;){for(let n=0;n<DX;n++){let l=nF[n],i=this._getIntersection({x:e.x+l.x*A,y:e.y+l.y*A}),s=i.shape;if(s)return s;if(a=!!i.antialiased,!i.antialiased)break}if(a)A+=1;else return null}}_getIntersection(e){let A=this.hitCanvas.pixelRatio,a=this.hitCanvas.context.getImageData(Math.round(e.x*A),Math.round(e.y*A),1,1).data,n=a[3];if(n===255){let l=H.getHitColorKey(a[0],a[1],a[2]),i=Xi[l];return i?{shape:i}:{antialiased:!0}}else if(n>0)return{antialiased:!0};return{}}drawScene(e,A,a){let n=this.getLayer(),l=e||n&&n.getCanvas();return this._fire(HX,{node:this}),this.clearBeforeDraw()&&l.getContext().clear(),BA.prototype.drawScene.call(this,l,A,a),this._fire(RX,{node:this}),this}drawHit(e,A){let a=this.getLayer(),n=e||a&&a.hitCanvas;return a&&a.clearBeforeDraw()&&a.getHitCanvas().getContext().clear(),BA.prototype.drawHit.call(this,n,A),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){H.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return H.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;let e=this.parent;!!this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}destroy(){return H.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};Pn.prototype.nodeType="Layer";xe(Pn);Q.addGetterSetter(Pn,"imageSmoothingEnabled",!0);Q.addGetterSetter(Pn,"clearBeforeDraw",!0);Q.addGetterSetter(Pn,"hitGraphEnabled",!0,PA());var Yu=class extends Pn{constructor(e){super(e),this.listening(!1),H.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}};Yu.prototype.nodeType="FastLayer";xe(Yu);var kn=class extends BA{_validateAdd(e){let A=e.getType();A!=="Group"&&A!=="Shape"&&H.throw("You may only add groups and shapes to groups.")}};kn.prototype.nodeType="Group";xe(kn);var Fx=(function(){return Lo.performance&&Lo.performance.now?function(){return Lo.performance.now()}:function(){return new Date().getTime()}})(),Xn=class t{constructor(e,A){this.id=t.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Fx(),frameRate:0},this.func=e,this.setLayers(A)}setLayers(e){let A=[];return e&&(A=Array.isArray(e)?e:[e]),this.layers=A,this}getLayers(){return this.layers}addLayer(e){let A=this.layers,a=A.length;for(let n=0;n<a;n++)if(A[n]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){let A=t.animations,a=A.length;for(let n=0;n<a;n++)if(A[n].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=Fx(),t._addAnimation(this),this}stop(){return t._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){let A=e.id,a=this.animations,n=a.length;for(let l=0;l<n;l++)if(a[l].id===A){this.animations.splice(l,1);break}}static _runFrames(){let e={},A=this.animations;for(let a=0;a<A.length;a++){let n=A[a],l=n.layers,i=n.func;n._updateFrameObject(Fx());let s=l.length,c;if(i?c=i.call(n,n.frame)!==!1:c=!0,!!c)for(let d=0;d<s;d++){let h=l[d];h._id!==void 0&&(e[h._id]=h)}}for(let a in e)e.hasOwnProperty(a)&&e[a].batchDraw()}static _animationLoop(){let e=t;e.animations.length?(e._runFrames(),H.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,H.requestAnimFrame(this._animationLoop))}};Xn.animations=[];Xn.animIdCounter=0;Xn.animRunning=!1;var MX={node:1,duration:1,easing:1,onFinish:1,yoyo:1},_X=1,lF=2,rF=3,oF=["fill","stroke","shadowColor"],OX=0,Tx=class{constructor(e,A,a,n,l,i,s){this.prop=e,this.propFunc=A,this.begin=n,this._pos=n,this.duration=i,this._change=0,this.prevPos=0,this.yoyo=s,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=a,this._change=l-this.begin,this.pause()}fire(e){let A=this[e];A&&A()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return e===void 0&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=lF,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=rF,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){let e=this.getTimer()-this._startTime;this.state===lF?this.setTime(e):this.state===rF&&this.setTime(this.duration-e)}pause(){this.state=_X,this.fire("onPause")}getTimer(){return new Date().getTime()}},qi=class t{constructor(e){let A=this,a=e.node,n=a._id,l=e.easing||ju.Linear,i=!!e.yoyo,s,c;typeof e.duration>"u"?s=.3:e.duration===0?s=.001:s=e.duration,this.node=a,this._id=OX++;let d=a.getLayer()||(a instanceof Z.Stage?a.getLayers():null);d||H.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Xn(function(){A.tween.onEnterFrame()},d),this.tween=new Tx(c,function(h){A._tweenFunc(h)},l,0,1,s*1e3,i),this._addListeners(),t.attrs[n]||(t.attrs[n]={}),t.attrs[n][this._id]||(t.attrs[n][this._id]={}),t.tweens[n]||(t.tweens[n]={});for(c in e)MX[c]===void 0&&this._addAttr(c,e[c]);this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset,this.onUpdate=e.onUpdate}_addAttr(e,A){let a=this.node,n=a._id,l,i,s,c,d,h=t.tweens[n][e];h&&delete t.attrs[n][h][e];let p=a.getAttr(e);if(H._isArray(A))if(l=[],i=Math.max(A.length,p.length),e==="points"&&A.length!==p.length&&(A.length>p.length?(c=p,p=H._prepareArrayForTween(p,A,a.closed())):(s=A,A=H._prepareArrayForTween(A,p,a.closed()))),e.indexOf("fill")===0)for(let m=0;m<i;m++)if(m%2===0)l.push(A[m]-p[m]);else{let B=H.colorToRGBA(p[m]);d=H.colorToRGBA(A[m]),p[m]=B,l.push({r:d.r-B.r,g:d.g-B.g,b:d.b-B.b,a:d.a-B.a})}else for(let m=0;m<i;m++)l.push(A[m]-p[m]);else oF.indexOf(e)!==-1?(p=H.colorToRGBA(p),d=H.colorToRGBA(A),l={r:d.r-p.r,g:d.g-p.g,b:d.b-p.b,a:d.a-p.a}):l=A-p;t.attrs[n][this._id][e]={start:p,diff:l,end:A,trueEnd:s,trueStart:c},t.tweens[n][e]=this._id}_tweenFunc(e){let A=this.node,a=t.attrs[A._id][this._id],n,l,i,s,c,d,h,p;for(n in a){if(l=a[n],i=l.start,s=l.diff,p=l.end,H._isArray(i))if(c=[],h=Math.max(i.length,p.length),n.indexOf("fill")===0)for(d=0;d<h;d++)d%2===0?c.push((i[d]||0)+s[d]*e):c.push("rgba("+Math.round(i[d].r+s[d].r*e)+","+Math.round(i[d].g+s[d].g*e)+","+Math.round(i[d].b+s[d].b*e)+","+(i[d].a+s[d].a*e)+")");else for(d=0;d<h;d++)c.push((i[d]||0)+s[d]*e);else oF.indexOf(n)!==-1?c="rgba("+Math.round(i.r+s.r*e)+","+Math.round(i.g+s.g*e)+","+Math.round(i.b+s.b*e)+","+(i.a+s.a*e)+")":c=i+s*e;A.setAttr(n,c)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{let e=this.node,A=t.attrs[e._id][this._id];A.points&&A.points.trueEnd&&e.setAttr("points",A.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{let e=this.node,A=t.attrs[e._id][this._id];A.points&&A.points.trueStart&&e.points(A.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(e*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){let e=this.node._id,A=this._id,a=t.tweens[e];this.pause(),this.anim&&this.anim.stop();for(let n in a)delete t.tweens[e][n];delete t.attrs[e][A],t.tweens[e]&&(Object.keys(t.tweens[e]).length===0&&delete t.tweens[e],Object.keys(t.attrs[e]).length===0&&delete t.attrs[e])}};qi.attrs={};qi.tweens={};k.prototype.to=function(t){let e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new qi(t).play()};var ju={BackEaseIn(t,e,A,a){return A*(t/=a)*t*((1.70158+1)*t-1.70158)+e},BackEaseOut(t,e,A,a){return A*((t=t/a-1)*t*((1.70158+1)*t+1.70158)+1)+e},BackEaseInOut(t,e,A,a){let n=1.70158;return(t/=a/2)<1?A/2*(t*t*(((n*=1.525)+1)*t-n))+e:A/2*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)+e},ElasticEaseIn(t,e,A,a,n,l){let i=0;return t===0?e:(t/=a)===1?e+A:(l||(l=a*.3),!n||n<Math.abs(A)?(n=A,i=l/4):i=l/(2*Math.PI)*Math.asin(A/n),-(n*Math.pow(2,10*(t-=1))*Math.sin((t*a-i)*(2*Math.PI)/l))+e)},ElasticEaseOut(t,e,A,a,n,l){let i=0;return t===0?e:(t/=a)===1?e+A:(l||(l=a*.3),!n||n<Math.abs(A)?(n=A,i=l/4):i=l/(2*Math.PI)*Math.asin(A/n),n*Math.pow(2,-10*t)*Math.sin((t*a-i)*(2*Math.PI)/l)+A+e)},ElasticEaseInOut(t,e,A,a,n,l){let i=0;return t===0?e:(t/=a/2)===2?e+A:(l||(l=a*(.3*1.5)),!n||n<Math.abs(A)?(n=A,i=l/4):i=l/(2*Math.PI)*Math.asin(A/n),t<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t*a-i)*(2*Math.PI)/l))+e:n*Math.pow(2,-10*(t-=1))*Math.sin((t*a-i)*(2*Math.PI)/l)*.5+A+e)},BounceEaseOut(t,e,A,a){return(t/=a)<1/2.75?A*(7.5625*t*t)+e:t<2/2.75?A*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?A*(7.5625*(t-=2.25/2.75)*t+.9375)+e:A*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn(t,e,A,a){return A-ju.BounceEaseOut(a-t,0,A,a)+e},BounceEaseInOut(t,e,A,a){return t<a/2?ju.BounceEaseIn(t*2,0,A,a)*.5+e:ju.BounceEaseOut(t*2-a,0,A,a)*.5+A*.5+e},EaseIn(t,e,A,a){return A*(t/=a)*t+e},EaseOut(t,e,A,a){return-A*(t/=a)*(t-2)+e},EaseInOut(t,e,A,a){return(t/=a/2)<1?A/2*t*t+e:-A/2*(--t*(t-2)-1)+e},StrongEaseIn(t,e,A,a){return A*(t/=a)*t*t*t*t+e},StrongEaseOut(t,e,A,a){return A*((t=t/a-1)*t*t*t*t+1)+e},StrongEaseInOut(t,e,A,a){return(t/=a/2)<1?A/2*t*t*t*t*t+e:A/2*((t-=2)*t*t*t*t+2)+e},Linear(t,e,A,a){return A*t/a+e}};var Zu=H._assign(Z,{Util:H,Transform:VA,Node:k,Container:BA,Stage:ki,stages:qu,Layer:Pn,FastLayer:Yu,Group:kn,DD:Xe,Shape:z,shapes:Xi,Animation:Xn,Tween:qi,Easings:ju,Context:zi,Canvas:Pu});var bn=class extends z{_sceneFunc(e){let A=Z.getAngle(this.angle()),a=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,A,a),e.arc(0,0,this.innerRadius(),A,0,!a),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){let e=this.innerRadius(),A=this.outerRadius(),a=this.clockwise(),n=Z.getAngle(a?360-this.angle():this.angle()),l=Math.cos(Math.min(n,Math.PI)),i=1,s=Math.sin(Math.min(Math.max(Math.PI,n),3*Math.PI/2)),c=Math.sin(Math.min(n,Math.PI/2)),d=l*(l>0?e:A),h=i*(i>0?A:e),p=s*(s>0?e:A),m=c*(c>0?A:e);return{x:d,y:a?-1*m:p,width:h-d,height:m-p}}};bn.prototype._centroid=!0;bn.prototype.className="Arc";bn.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"];xe(bn);Q.addGetterSetter(bn,"innerRadius",0,K());Q.addGetterSetter(bn,"outerRadius",0,K());Q.addGetterSetter(bn,"angle",0,K());Q.addGetterSetter(bn,"clockwise",!1,PA());function Ix(t,e,A,a,n,l,i){let s=Math.sqrt(Math.pow(A-t,2)+Math.pow(a-e,2)),c=Math.sqrt(Math.pow(n-A,2)+Math.pow(l-a,2)),d=i*s/(s+c),h=i*c/(s+c),p=A-d*(n-t),m=a-d*(l-e),B=A+h*(n-t),y=a+h*(l-e);return[p,m,B,y]}function iF(t,e){let A=t.length,a=[];for(let n=2;n<A-2;n+=2){let l=Ix(t[n-2],t[n-1],t[n],t[n+1],t[n+2],t[n+3],e);isNaN(l[0])||(a.push(l[0]),a.push(l[1]),a.push(t[n]),a.push(t[n+1]),a.push(l[2]),a.push(l[3]))}return a}function NX(t){let e=[[t[0],t[2],t[4],t[6]],[t[1],t[3],t[5],t[7]]],A=[];for(let a of e){let n=-3*a[0]+9*a[1]-9*a[2]+3*a[3];if(n!==0){let l=6*a[0]-12*a[1]+6*a[2],i=-3*a[0]+3*a[1],s=l*l-4*n*i;if(s>=0){let c=Math.sqrt(s);A.push((-l+c)/(2*n)),A.push((-l-c)/(2*n))}}}return A.filter(a=>a>0&&a<1).flatMap(a=>e.map(n=>{let l=1-a;return l*l*l*n[0]+3*l*l*a*n[1]+3*l*a*a*n[2]+a*a*a*n[3]}))}var ja=class extends z{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(e){let A=this.points(),a=A.length,n=this.tension(),l=this.closed(),i=this.bezier();if(!a)return;let s=0;if(e.beginPath(),e.moveTo(A[0],A[1]),n!==0&&a>4){let c=this.getTensionPoints(),d=c.length;for(s=l?0:4,l||e.quadraticCurveTo(c[0],c[1],c[2],c[3]);s<d-2;)e.bezierCurveTo(c[s++],c[s++],c[s++],c[s++],c[s++],c[s++]);l||e.quadraticCurveTo(c[d-2],c[d-1],A[a-2],A[a-1])}else if(i)for(s=2;s<a;)e.bezierCurveTo(A[s++],A[s++],A[s++],A[s++],A[s++],A[s++]);else for(s=2;s<a;s+=2)e.lineTo(A[s],A[s+1]);l?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():iF(this.points(),this.tension())}_getTensionPointsClosed(){let e=this.points(),A=e.length,a=this.tension(),n=Ix(e[A-2],e[A-1],e[0],e[1],e[2],e[3],a),l=Ix(e[A-4],e[A-3],e[A-2],e[A-1],e[0],e[1],a),i=iF(e,a);return[n[2],n[3]].concat(i).concat([l[0],l[1],e[A-2],e[A-1],l[2],l[3],n[0],n[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};this.tension()!==0?e=[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:this.bezier()?e=[e[0],e[1],...NX(this.points()),e[e.length-2],e[e.length-1]]:e=this.points();let A=e[0],a=e[0],n=e[1],l=e[1],i,s;for(let c=0;c<e.length/2;c++)i=e[c*2],s=e[c*2+1],A=Math.min(A,i),a=Math.max(a,i),n=Math.min(n,s),l=Math.max(l,s);return{x:A,y:n,width:a-A,height:l-n}}};ja.prototype.className="Line";ja.prototype._attrsAffectingSize=["points","bezier","tension"];xe(ja);Q.addGetterSetter(ja,"closed",!1);Q.addGetterSetter(ja,"bezier",!1);Q.addGetterSetter(ja,"tension",0,K());Q.addGetterSetter(ja,"points",[],I9());var GX=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],KX=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],zX=[[1],[1,1],[1,2,1],[1,3,3,1]],Rx=(t,e,A)=>{let a,n,i=A/2;a=0;for(let s=0;s<20;s++)n=i*GX[20][s]+i,a+=KX[20][s]*VX(t,e,n);return i*a},Dx=(t,e,A)=>{A===void 0&&(A=1);let a=t[0]-2*t[1]+t[2],n=e[0]-2*e[1]+e[2],l=2*t[1]-2*t[0],i=2*e[1]-2*e[0],s=4*(a*a+n*n),c=4*(a*l+n*i),d=l*l+i*i;if(s===0)return A*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));let h=c/(2*s),p=d/s,m=A+h,B=p-h*h,y=m*m+B>0?Math.sqrt(m*m+B):0,v=h*h+B>0?Math.sqrt(h*h+B):0,b=h+Math.sqrt(h*h+B)!==0?B*Math.log(Math.abs((m+y)/(h+v))):0;return Math.sqrt(s)/2*(m*y-h*v+b)};function VX(t,e,A){let a=Hx(1,A,t),n=Hx(1,A,e),l=a*a+n*n;return Math.sqrt(l)}var Hx=(t,e,A)=>{let a=A.length-1,n,l;if(a===0)return 0;if(t===0){l=0;for(let i=0;i<=a;i++)l+=zX[a][i]*Math.pow(1-e,a-i)*Math.pow(e,i)*A[i];return l}else{n=new Array(a);for(let i=0;i<a;i++)n[i]=a*(A[i+1]-A[i]);return Hx(t-1,e,n)}},Mx=(t,e,A)=>{let a=1,n=t/e,l=(t-A(n))/e,i=0;for(;a>.001;){let s=A(n+l),c=Math.abs(t-s)/e;if(c<a)a=c,n+=l;else{let d=A(n-l),h=Math.abs(t-d)/e;h<a?(a=h,n-=l):l/=2}if(i++,i>500)break}return n};var kA=class t extends z{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=t.parsePathData(this.data()),this.pathLength=t.getPathLength(this.dataArray)}_sceneFunc(e){let A=this.dataArray;e.beginPath();let a=!1;for(let n=0;n<A.length;n++){let l=A[n].command,i=A[n].points;switch(l){case"L":e.lineTo(i[0],i[1]);break;case"M":e.moveTo(i[0],i[1]);break;case"C":e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case"Q":e.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case"A":let s=i[0],c=i[1],d=i[2],h=i[3],p=i[4],m=i[5],B=i[6],y=i[7],v=d>h?d:h,b=d>h?1:d/h,w=d>h?h/d:1;e.translate(s,c),e.rotate(B),e.scale(b,w),e.arc(0,0,v,p,p+m,1-y),e.scale(1/b,1/w),e.rotate(-B),e.translate(-s,-c);break;case"z":a=!0,e.closePath();break}}!a&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){let e=[];this.dataArray.forEach(function(c){if(c.command==="A"){let d=c.points[4],h=c.points[5],p=c.points[4]+h,m=Math.PI/180;if(Math.abs(d-p)<m&&(m=Math.abs(d-p)),h<0)for(let B=d-m;B>p;B-=m){let y=t.getPointOnEllipticalArc(c.points[0],c.points[1],c.points[2],c.points[3],B,0);e.push(y.x,y.y)}else for(let B=d+m;B<p;B+=m){let y=t.getPointOnEllipticalArc(c.points[0],c.points[1],c.points[2],c.points[3],B,0);e.push(y.x,y.y)}}else if(c.command==="C")for(let d=0;d<=1;d+=.01){let h=t.getPointOnCubicBezier(d,c.start.x,c.start.y,c.points[0],c.points[1],c.points[2],c.points[3],c.points[4],c.points[5]);e.push(h.x,h.y)}else e=e.concat(c.points)});let A=e[0],a=e[0],n=e[1],l=e[1],i,s;for(let c=0;c<e.length/2;c++)i=e[c*2],s=e[c*2+1],isNaN(i)||(A=Math.min(A,i),a=Math.max(a,i)),isNaN(s)||(n=Math.min(n,s),l=Math.max(l,s));return{x:A,y:n,width:a-A,height:l-n}}getLength(){return this.pathLength}getPointAtLength(e){return t.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,A,a,n){return Math.sqrt((a-e)*(a-e)+(n-A)*(n-A))}static getPathLength(e){let A=0;for(let a=0;a<e.length;++a)A+=e[a].pathLength;return A}static getPointAtLengthOfDataArray(e,A){let a,n=0,l=A.length;if(!l)return null;for(;n<l&&e>A[n].pathLength;)e-=A[n].pathLength,++n;if(n===l)return a=A[n-1].points.slice(-2),{x:a[0],y:a[1]};if(e<.01)return A[n].command==="M"?(a=A[n].points.slice(0,2),{x:a[0],y:a[1]}):{x:A[n].start.x,y:A[n].start.y};let i=A[n],s=i.points;switch(i.command){case"L":return t.getPointOnLine(e,i.start.x,i.start.y,s[0],s[1]);case"C":return t.getPointOnCubicBezier(Mx(e,t.getPathLength(A),v=>Rx([i.start.x,s[0],s[2],s[4]],[i.start.y,s[1],s[3],s[5]],v)),i.start.x,i.start.y,s[0],s[1],s[2],s[3],s[4],s[5]);case"Q":return t.getPointOnQuadraticBezier(Mx(e,t.getPathLength(A),v=>Dx([i.start.x,s[0],s[2]],[i.start.y,s[1],s[3]],v)),i.start.x,i.start.y,s[0],s[1],s[2],s[3]);case"A":let c=s[0],d=s[1],h=s[2],p=s[3],m=s[5],B=s[6],y=s[4];return y+=m*e/i.pathLength,t.getPointOnEllipticalArc(c,d,h,p,y,B)}return null}static getPointOnLine(e,A,a,n,l,i,s){i=i??A,s=s??a;let c=this.getLineLength(A,a,n,l);if(c<1e-10)return{x:A,y:a};if(n===A)return{x:i,y:s+(l>a?e:-e)};let d=(l-a)/(n-A),h=Math.sqrt(e*e/(1+d*d))*(n<A?-1:1),p=d*h;if(Math.abs(s-a-d*(i-A))<1e-10)return{x:i+h,y:s+p};let m=((i-A)*(n-A)+(s-a)*(l-a))/(c*c),B=A+m*(n-A),y=a+m*(l-a),v=this.getLineLength(i,s,B,y),b=Math.sqrt(e*e-v*v),w=Math.sqrt(b*b/(1+d*d))*(n<A?-1:1),x=d*w;return{x:B+w,y:y+x}}static getPointOnCubicBezier(e,A,a,n,l,i,s,c,d){function h(b){return b*b*b}function p(b){return 3*b*b*(1-b)}function m(b){return 3*b*(1-b)*(1-b)}function B(b){return(1-b)*(1-b)*(1-b)}let y=c*h(e)+i*p(e)+n*m(e)+A*B(e),v=d*h(e)+s*p(e)+l*m(e)+a*B(e);return{x:y,y:v}}static getPointOnQuadraticBezier(e,A,a,n,l,i,s){function c(B){return B*B}function d(B){return 2*B*(1-B)}function h(B){return(1-B)*(1-B)}let p=i*c(e)+n*d(e)+A*h(e),m=s*c(e)+l*d(e)+a*h(e);return{x:p,y:m}}static getPointOnEllipticalArc(e,A,a,n,l,i){let s=Math.cos(i),c=Math.sin(i),d={x:a*Math.cos(l),y:n*Math.sin(l)};return{x:e+(d.x*s-d.y*c),y:A+(d.x*c+d.y*s)}}static parsePathData(e){if(!e)return[];let A=e,a=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];A=A.replace(new RegExp(" ","g"),",");for(let p=0;p<a.length;p++)A=A.replace(new RegExp(a[p],"g"),"|"+a[p]);let n=A.split("|"),l=[],i=[],s=0,c=0,d=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,h;for(let p=1;p<n.length;p++){let m=n[p],B=m.charAt(0);for(m=m.slice(1),i.length=0;h=d.exec(m);)i.push(h[0]);let y=[],v=B==="A"||B==="a"?0:-1;for(let b=0,w=i.length;b<w;b++){let x=i[b];if(x==="00"){y.push(0,0),v>=0&&(v+=2,v>=7&&(v-=7));continue}if(v>=0){if(v===3){if(/^[01]{2}\d+(?:\.\d+)?$/.test(x)){y.push(parseInt(x[0],10)),y.push(parseInt(x[1],10)),y.push(parseFloat(x.slice(2))),v+=3,v>=7&&(v-=7);continue}if(x==="11"||x==="10"||x==="01"){y.push(parseInt(x[0],10)),y.push(parseInt(x[1],10)),v+=2,v>=7&&(v-=7);continue}if(x==="0"||x==="1"){y.push(parseInt(x,10)),v+=1,v>=7&&(v-=7);continue}}else if(v===4){if(/^[01]\d+(?:\.\d+)?$/.test(x)){y.push(parseInt(x[0],10)),y.push(parseFloat(x.slice(1))),v+=2,v>=7&&(v-=7);continue}if(x==="0"||x==="1"){y.push(parseInt(x,10)),v+=1,v>=7&&(v-=7);continue}}let S=parseFloat(x);isNaN(S)?y.push(0):y.push(S),v+=1,v>=7&&(v-=7)}else{let S=parseFloat(x);isNaN(S)?y.push(0):y.push(S)}}for(;y.length>0&&!isNaN(y[0]);){let b="",w=[],x=s,S=c,U,L,F,T,M,D,G,ee,P,se;switch(B){case"l":s+=y.shift(),c+=y.shift(),b="L",w.push(s,c);break;case"L":s=y.shift(),c=y.shift(),w.push(s,c);break;case"m":let le=y.shift(),te=y.shift();if(s+=le,c+=te,b="M",l.length>2&&l[l.length-1].command==="z"){for(let q=l.length-2;q>=0;q--)if(l[q].command==="M"){s=l[q].points[0]+le,c=l[q].points[1]+te;break}}w.push(s,c),B="l";break;case"M":s=y.shift(),c=y.shift(),b="M",w.push(s,c),B="L";break;case"h":s+=y.shift(),b="L",w.push(s,c);break;case"H":s=y.shift(),b="L",w.push(s,c);break;case"v":c+=y.shift(),b="L",w.push(s,c);break;case"V":c=y.shift(),b="L",w.push(s,c);break;case"C":w.push(y.shift(),y.shift(),y.shift(),y.shift()),s=y.shift(),c=y.shift(),w.push(s,c);break;case"c":w.push(s+y.shift(),c+y.shift(),s+y.shift(),c+y.shift()),s+=y.shift(),c+=y.shift(),b="C",w.push(s,c);break;case"S":L=s,F=c,U=l[l.length-1],U.command==="C"&&(L=s+(s-U.points[2]),F=c+(c-U.points[3])),w.push(L,F,y.shift(),y.shift()),s=y.shift(),c=y.shift(),b="C",w.push(s,c);break;case"s":L=s,F=c,U=l[l.length-1],U.command==="C"&&(L=s+(s-U.points[2]),F=c+(c-U.points[3])),w.push(L,F,s+y.shift(),c+y.shift()),s+=y.shift(),c+=y.shift(),b="C",w.push(s,c);break;case"Q":w.push(y.shift(),y.shift()),s=y.shift(),c=y.shift(),w.push(s,c);break;case"q":w.push(s+y.shift(),c+y.shift()),s+=y.shift(),c+=y.shift(),b="Q",w.push(s,c);break;case"T":L=s,F=c,U=l[l.length-1],U.command==="Q"&&(L=s+(s-U.points[0]),F=c+(c-U.points[1])),s=y.shift(),c=y.shift(),b="Q",w.push(L,F,s,c);break;case"t":L=s,F=c,U=l[l.length-1],U.command==="Q"&&(L=s+(s-U.points[0]),F=c+(c-U.points[1])),s+=y.shift(),c+=y.shift(),b="Q",w.push(L,F,s,c);break;case"A":T=y.shift(),M=y.shift(),D=y.shift(),G=y.shift(),ee=y.shift(),P=s,se=c,s=y.shift(),c=y.shift(),b="A",w=this.convertEndpointToCenterParameterization(P,se,s,c,G,ee,T,M,D);break;case"a":T=y.shift(),M=y.shift(),D=y.shift(),G=y.shift(),ee=y.shift(),P=s,se=c,s+=y.shift(),c+=y.shift(),b="A",w=this.convertEndpointToCenterParameterization(P,se,s,c,G,ee,T,M,D);break}l.push({command:b||B,points:w,start:{x,y:S},pathLength:this.calcLength(x,S,b||B,w)})}(B==="z"||B==="Z")&&l.push({command:"z",points:[],start:void 0,pathLength:0})}return l}static calcLength(e,A,a,n){let l,i,s,c,d=t;switch(a){case"L":return d.getLineLength(e,A,n[0],n[1]);case"C":return Rx([e,n[0],n[2],n[4]],[A,n[1],n[3],n[5]],1);case"Q":return Dx([e,n[0],n[2]],[A,n[1],n[3]],1);case"A":l=0;let h=n[4],p=n[5],m=n[4]+p,B=Math.PI/180;if(Math.abs(h-m)<B&&(B=Math.abs(h-m)),i=d.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),p<0)for(c=h-B;c>m;c-=B)s=d.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),l+=d.getLineLength(i.x,i.y,s.x,s.y),i=s;else for(c=h+B;c<m;c+=B)s=d.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),l+=d.getLineLength(i.x,i.y,s.x,s.y),i=s;return s=d.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],m,0),l+=d.getLineLength(i.x,i.y,s.x,s.y),l}return 0}static convertEndpointToCenterParameterization(e,A,a,n,l,i,s,c,d){let h=d*(Math.PI/180),p=Math.cos(h)*(e-a)/2+Math.sin(h)*(A-n)/2,m=-1*Math.sin(h)*(e-a)/2+Math.cos(h)*(A-n)/2,B=p*p/(s*s)+m*m/(c*c);B>1&&(s*=Math.sqrt(B),c*=Math.sqrt(B));let y=Math.sqrt((s*s*(c*c)-s*s*(m*m)-c*c*(p*p))/(s*s*(m*m)+c*c*(p*p)));l===i&&(y*=-1),isNaN(y)&&(y=0);let v=y*s*m/c,b=y*-c*p/s,w=(e+a)/2+Math.cos(h)*v-Math.sin(h)*b,x=(A+n)/2+Math.sin(h)*v+Math.cos(h)*b,S=function(G){return Math.sqrt(G[0]*G[0]+G[1]*G[1])},U=function(G,ee){return(G[0]*ee[0]+G[1]*ee[1])/(S(G)*S(ee))},L=function(G,ee){return(G[0]*ee[1]<G[1]*ee[0]?-1:1)*Math.acos(U(G,ee))},F=L([1,0],[(p-v)/s,(m-b)/c]),T=[(p-v)/s,(m-b)/c],M=[(-1*p-v)/s,(-1*m-b)/c],D=L(T,M);return U(T,M)<=-1&&(D=Math.PI),U(T,M)>=1&&(D=0),i===0&&D>0&&(D=D-2*Math.PI),i===1&&D<0&&(D=D+2*Math.PI),[w,x,s,c,F,D,h,i]}};kA.prototype.className="Path";kA.prototype._attrsAffectingSize=["data"];xe(kA);Q.addGetterSetter(kA,"data");var bl=class extends ja{_sceneFunc(e){super._sceneFunc(e);let A=Math.PI*2,a=this.points(),n=a,l=this.tension()!==0&&a.length>4;l&&(n=this.getTensionPoints());let i=this.pointerLength(),s=a.length,c,d;if(l){let m=[n[n.length-4],n[n.length-3],n[n.length-2],n[n.length-1],a[s-2],a[s-1]],B=kA.calcLength(n[n.length-4],n[n.length-3],"C",m),y=kA.getPointOnQuadraticBezier(Math.min(1,1-i/B),m[0],m[1],m[2],m[3],m[4],m[5]);c=a[s-2]-y.x,d=a[s-1]-y.y}else c=a[s-2]-a[s-4],d=a[s-1]-a[s-3];let h=(Math.atan2(d,c)+A)%A,p=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(a[s-2],a[s-1]),e.rotate(h),e.moveTo(0,0),e.lineTo(-i,p/2),e.lineTo(-i,-p/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(a[0],a[1]),l?(c=(n[0]+n[2])/2-a[0],d=(n[1]+n[3])/2-a[1]):(c=a[2]-a[0],d=a[3]-a[1]),e.rotate((Math.atan2(-d,-c)+A)%A),e.moveTo(0,0),e.lineTo(-i,p/2),e.lineTo(-i,-p/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){let A=this.dashEnabled();A&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),A&&(this.attrs.dashEnabled=!0)}getSelfRect(){let e=super.getSelfRect(),A=this.pointerWidth()/2;return{x:e.x,y:e.y-A,width:e.width,height:e.height+A*2}}};bl.prototype.className="Arrow";xe(bl);Q.addGetterSetter(bl,"pointerLength",10,K());Q.addGetterSetter(bl,"pointerWidth",10,K());Q.addGetterSetter(bl,"pointerAtBeginning",!1);Q.addGetterSetter(bl,"pointerAtEnding",!0);var dr=class extends z{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}};dr.prototype._centroid=!0;dr.prototype.className="Circle";dr.prototype._attrsAffectingSize=["radius"];xe(dr);Q.addGetterSetter(dr,"radius",0,K());var qn=class extends z{_sceneFunc(e){let A=this.radiusX(),a=this.radiusY();e.beginPath(),e.save(),A!==a&&e.scale(1,a/A),e.arc(0,0,A,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}};qn.prototype.className="Ellipse";qn.prototype._centroid=!0;qn.prototype._attrsAffectingSize=["radiusX","radiusY"];xe(qn);Q.addComponentsGetterSetter(qn,"radius",["x","y"]);Q.addGetterSetter(qn,"radiusX",0,K());Q.addGetterSetter(qn,"radiusY",0,K());var ba=class t extends z{constructor(e){super(e),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",A=>{this._removeImageLoad(A.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){let e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener("load",this._loadListener)}_removeImageLoad(e){e&&e.removeEventListener&&e.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){let e=!!this.cornerRadius(),A=this.hasShadow();return e&&A?!0:super._useBufferCanvas(!0)}_sceneFunc(e){let A=this.getWidth(),a=this.getHeight(),n=this.cornerRadius(),l=this.attrs.image,i;if(l){let s=this.attrs.cropWidth,c=this.attrs.cropHeight;s&&c?i=[l,this.cropX(),this.cropY(),s,c,0,0,A,a]:i=[l,0,0,A,a]}(this.hasFill()||this.hasStroke()||n)&&(e.beginPath(),n?H.drawRoundedRectPath(e,A,a,n):e.rect(0,0,A,a),e.closePath(),e.fillStrokeShape(this)),l&&(n&&e.clip(),e.drawImage.apply(e,i))}_hitFunc(e){let A=this.width(),a=this.height(),n=this.cornerRadius();e.beginPath(),n?H.drawRoundedRectPath(e,A,a,n):e.rect(0,0,A,a),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,A,a;return(a=(e=this.attrs.width)!==null&&e!==void 0?e:(A=this.image())===null||A===void 0?void 0:A.width)!==null&&a!==void 0?a:0}getHeight(){var e,A,a;return(a=(e=this.attrs.height)!==null&&e!==void 0?e:(A=this.image())===null||A===void 0?void 0:A.height)!==null&&a!==void 0?a:0}static fromURL(e,A,a=null){let n=H.createImageElement();n.onload=function(){let l=new t({image:n});A(l)},n.onerror=a,n.crossOrigin="Anonymous",n.src=e}};ba.prototype.className="Image";ba.prototype._attrsAffectingSize=["image"];xe(ba);Q.addGetterSetter(ba,"cornerRadius",0,To(4));Q.addGetterSetter(ba,"image");Q.addComponentsGetterSetter(ba,"crop",["x","y","width","height"]);Q.addGetterSetter(ba,"cropX",0,K());Q.addGetterSetter(ba,"cropY",0,K());Q.addGetterSetter(ba,"cropWidth",0,K());Q.addGetterSetter(ba,"cropHeight",0,K());var sF=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],PX="Change.konva",kX="none",_x="up",Ox="right",Nx="down",Gx="left",XX=sF.length,Ju=class extends kn{constructor(e){super(e),this.on("add.konva",function(A){this._addListeners(A.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){let A=this,a,n=function(){A._sync()};for(a=0;a<XX;a++)e.on(sF[a]+PX,n)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let e=this.getText(),A=this.getTag(),a,n,l,i,s,c,d;if(e&&A){switch(a=e.width(),n=e.height(),l=A.pointerDirection(),i=A.pointerWidth(),d=A.pointerHeight(),s=0,c=0,l){case _x:s=a/2,c=-1*d;break;case Ox:s=a+i,c=n/2;break;case Nx:s=a/2,c=n+d;break;case Gx:s=-1*i,c=n/2;break}A.setAttrs({x:-1*s,y:-1*c,width:a,height:n}),e.setAttrs({x:-1*s,y:-1*c})}}};Ju.prototype.className="Label";xe(Ju);var Ul=class extends z{_sceneFunc(e){let A=this.width(),a=this.height(),n=this.pointerDirection(),l=this.pointerWidth(),i=this.pointerHeight(),s=this.cornerRadius(),c=0,d=0,h=0,p=0;typeof s=="number"?c=d=h=p=Math.min(s,A/2,a/2):(c=Math.min(s[0]||0,A/2,a/2),d=Math.min(s[1]||0,A/2,a/2),p=Math.min(s[2]||0,A/2,a/2),h=Math.min(s[3]||0,A/2,a/2)),e.beginPath(),e.moveTo(c,0),n===_x&&(e.lineTo((A-l)/2,0),e.lineTo(A/2,-1*i),e.lineTo((A+l)/2,0)),e.lineTo(A-d,0),e.arc(A-d,d,d,Math.PI*3/2,0,!1),n===Ox&&(e.lineTo(A,(a-i)/2),e.lineTo(A+l,a/2),e.lineTo(A,(a+i)/2)),e.lineTo(A,a-p),e.arc(A-p,a-p,p,0,Math.PI/2,!1),n===Nx&&(e.lineTo((A+l)/2,a),e.lineTo(A/2,a+i),e.lineTo((A-l)/2,a)),e.lineTo(h,a),e.arc(h,a-h,h,Math.PI/2,Math.PI,!1),n===Gx&&(e.lineTo(0,(a+i)/2),e.lineTo(-1*l,a/2),e.lineTo(0,(a-i)/2)),e.lineTo(0,c),e.arc(c,c,c,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){let e=0,A=0,a=this.pointerWidth(),n=this.pointerHeight(),l=this.pointerDirection(),i=this.width(),s=this.height();return l===_x?(A-=n,s+=n):l===Nx?s+=n:l===Gx?(e-=a*1.5,i+=a):l===Ox&&(i+=a*1.5),{x:e,y:A,width:i,height:s}}};Ul.prototype.className="Tag";xe(Ul);Q.addGetterSetter(Ul,"pointerDirection",kX);Q.addGetterSetter(Ul,"pointerWidth",0,K());Q.addGetterSetter(Ul,"pointerHeight",0,K());Q.addGetterSetter(Ul,"cornerRadius",0,To(4));var hr=class extends z{_sceneFunc(e){let A=this.cornerRadius(),a=this.width(),n=this.height();e.beginPath(),A?H.drawRoundedRectPath(e,a,n,A):e.rect(0,0,a,n),e.closePath(),e.fillStrokeShape(this)}};hr.prototype.className="Rect";xe(hr);Q.addGetterSetter(hr,"cornerRadius",0,To(4));var Yn=class extends z{_sceneFunc(e){let A=this._getPoints(),a=this.radius(),n=this.sides(),l=this.cornerRadius();if(e.beginPath(),l)H.drawRoundedPolygonPath(e,A,n,a,l);else{e.moveTo(A[0].x,A[0].y);for(let i=1;i<A.length;i++)e.lineTo(A[i].x,A[i].y)}e.closePath(),e.fillStrokeShape(this)}_getPoints(){let e=this.attrs.sides,A=this.attrs.radius||0,a=[];for(let n=0;n<e;n++)a.push({x:A*Math.sin(n*2*Math.PI/e),y:-1*A*Math.cos(n*2*Math.PI/e)});return a}getSelfRect(){let e=this._getPoints(),A=e[0].x,a=e[0].x,n=e[0].y,l=e[0].y;return e.forEach(i=>{A=Math.min(A,i.x),a=Math.max(a,i.x),n=Math.min(n,i.y),l=Math.max(l,i.y)}),{x:A,y:n,width:a-A,height:l-n}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};Yn.prototype.className="RegularPolygon";Yn.prototype._centroid=!0;Yn.prototype._attrsAffectingSize=["radius"];xe(Yn);Q.addGetterSetter(Yn,"radius",0,K());Q.addGetterSetter(Yn,"sides",0,K());Q.addGetterSetter(Yn,"cornerRadius",0,To(4));var uF=Math.PI*2,El=class extends z{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,uF,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),uF,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};El.prototype.className="Ring";El.prototype._centroid=!0;El.prototype._attrsAffectingSize=["innerRadius","outerRadius"];xe(El);Q.addGetterSetter(El,"innerRadius",0,K());Q.addGetterSetter(El,"outerRadius",0,K());var Za=class extends z{constructor(e){super(e),this._updated=!0,this.anim=new Xn(()=>{let A=this._updated;return this._updated=!1,A}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){let A=this.animation(),a=this.frameIndex(),n=a*4,l=this.animations()[A],i=this.frameOffsets(),s=l[n+0],c=l[n+1],d=l[n+2],h=l[n+3],p=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,d,h),e.closePath(),e.fillStrokeShape(this)),p)if(i){let m=i[A],B=a*2;e.drawImage(p,s,c,d,h,m[B+0],m[B+1],d,h)}else e.drawImage(p,s,c,d,h,0,0,d,h)}_hitFunc(e){let A=this.animation(),a=this.frameIndex(),n=a*4,l=this.animations()[A],i=this.frameOffsets(),s=l[n+2],c=l[n+3];if(e.beginPath(),i){let d=i[A],h=a*2;e.rect(d[h+0],d[h+1],s,c)}else e.rect(0,0,s,c);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){let e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;let e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){let e=this.frameIndex(),A=this.animation(),a=this.animations(),n=a[A],l=n.length/4;e<l-1?this.frameIndex(e+1):this.frameIndex(0)}};Za.prototype.className="Sprite";xe(Za);Q.addGetterSetter(Za,"animation");Q.addGetterSetter(Za,"animations");Q.addGetterSetter(Za,"frameOffsets");Q.addGetterSetter(Za,"image");Q.addGetterSetter(Za,"frameIndex",0,K());Q.addGetterSetter(Za,"frameRate",17,K());Q.backCompat(Za,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});var jn=class extends z{_sceneFunc(e){let A=this.innerRadius(),a=this.outerRadius(),n=this.numPoints();e.beginPath(),e.moveTo(0,0-a);for(let l=1;l<n*2;l++){let i=l%2===0?a:A,s=i*Math.sin(l*Math.PI/n),c=-1*i*Math.cos(l*Math.PI/n);e.lineTo(s,c)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};jn.prototype.className="Star";jn.prototype._centroid=!0;jn.prototype._attrsAffectingSize=["innerRadius","outerRadius"];xe(jn);Q.addGetterSetter(jn,"numPoints",5,K());Q.addGetterSetter(jn,"innerRadius",0,K());Q.addGetterSetter(jn,"outerRadius",0,K());function pr(t){return[...t].reduce((e,A,a,n)=>{if(/\p{Emoji}/u.test(A)){let l=n[a+1];l&&/\p{Emoji_Modifier}|\u200D/u.test(l)?(e.push(A+l),n[a+1]=""):e.push(A)}else/\p{Regional_Indicator}{2}/u.test(A+(n[a+1]||""))?e.push(A+n[a+1]):a>0&&/\p{Mn}|\p{Me}|\p{Mc}/u.test(A)?e[e.length-1]+=A:A&&e.push(A);return e},[])}var Wu="auto",qX="center",pF="inherit",Yd="justify",YX="Change.konva",jX="2d",cF="-",mF="left",ZX="text",JX="Text",WX="top",$X="bottom",fF="middle",gF="normal",eq="px ",kg=" ",tq="right",dF="rtl",Aq="word",aq="char",hF="none",Kx="\u2026",BF=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],nq=BF.length;function lq(t){return t.split(",").map(e=>{e=e.trim();let A=e.indexOf(" ")>=0,a=e.indexOf('"')>=0||e.indexOf("'")>=0;return A&&!a&&(e=`"${e}"`),e}).join(", ")}var Xg;function zx(){return Xg||(Xg=H.createCanvasElement().getContext(jX),Xg)}function rq(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function oq(t){t.setAttr("miterLimit",2),t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function iq(t){return t=t||{},!t.fillLinearGradientColorStops&&!t.fillRadialGradientColorStops&&!t.fillPatternImage&&(t.fill=t.fill||"black"),t}var $e=class extends z{constructor(e){super(iq(e)),this._partialTextX=0,this._partialTextY=0;for(let A=0;A<nq;A++)this.on(BF[A]+YX,this._setTextData);this._setTextData()}_sceneFunc(e){var A,a;let n=this.textArr,l=n.length;if(!this.text())return;let i=this.padding(),s=this.fontSize(),c=this.lineHeight()*s,d=this.verticalAlign(),h=this.direction(),p=0,m=this.align(),B=this.getWidth(),y=this.letterSpacing(),v=this.charRenderFunc(),b=this.fill(),w=this.textDecoration(),x=this.underlineOffset(),S=w.indexOf("underline")!==-1,U=w.indexOf("line-through")!==-1,L;h=h===pF?e.direction:h;let F=c/2,T=fF;if(!Z.legacyTextRendering){let M=this.measureSize("M");T="alphabetic";let D=(A=M.fontBoundingBoxAscent)!==null&&A!==void 0?A:M.actualBoundingBoxAscent,G=(a=M.fontBoundingBoxDescent)!==null&&a!==void 0?a:M.actualBoundingBoxDescent;F=(D-G)/2+c/2}for(h===dF&&e.setAttr("direction",h),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",T),e.setAttr("textAlign",mF),d===fF?p=(this.getHeight()-l*c-i*2)/2:d===$X&&(p=this.getHeight()-l*c-i*2),e.translate(i,p+i),L=0;L<l;L++){let M=0,D=0,G=n[L],ee=G.text,P=G.width,se=G.lastInParagraph;if(e.save(),m===tq?M+=B-P-i*2:m===qX&&(M+=(B-P-i*2)/2),S){e.save(),e.beginPath();let te=x??(Z.legacyTextRendering?Math.round(s/2):Math.round(s/4)),q=M,fe=F+D+te;e.moveTo(q,fe);let X=m===Yd&&!se?B-i*2:P;e.lineTo(q+Math.round(X),fe),e.lineWidth=s/15;let oe=this._getLinearGradient();e.strokeStyle=oe||b,e.stroke(),e.restore()}let le=M;if(h!==dF&&(y!==0||m===Yd||v)){let te=ee.split(" ").length-1,q=pr(ee);for(let fe=0;fe<q.length;fe++){let X=q[fe];if(X===" "&&!se&&m===Yd&&(M+=(B-i*2-P)/te),this._partialTextX=M,this._partialTextY=F+D,this._partialText=X,v){e.save();let ye=n.slice(0,L).reduce((ze,Dt)=>ze+pr(Dt.text).length,0),he=fe+ye;v({char:X,index:he,x:M,y:F+D,lineIndex:L,column:fe,isLastInLine:se,width:this.measureSize(X).width,context:e})}e.fillStrokeShape(this),v&&e.restore(),M+=this.measureSize(X).width+y}}else y!==0&&e.setAttr("letterSpacing",`${y}px`),this._partialTextX=M,this._partialTextY=F+D,this._partialText=ee,e.fillStrokeShape(this);if(U){e.save(),e.beginPath();let te=Z.legacyTextRendering?0:-Math.round(s/4),q=le;e.moveTo(q,F+D+te);let fe=m===Yd&&!se?B-i*2:P;e.lineTo(q+Math.round(fe),F+D+te),e.lineWidth=s/15;let X=this._getLinearGradient();e.strokeStyle=X||b,e.stroke(),e.restore()}e.restore(),l>1&&(F+=c)}}_hitFunc(e){let A=this.getWidth(),a=this.getHeight();e.beginPath(),e.rect(0,0,A,a),e.closePath(),e.fillStrokeShape(this)}setText(e){let A=H._isString(e)?e:e==null?"":e+"";return this._setAttr(ZX,A),this}getWidth(){return this.attrs.width===Wu||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Wu||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return H.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var A,a,n,l,i,s,c,d,h,p,m;let B=zx(),y=this.fontSize(),v;B.save(),B.font=this._getContextFont(),v=B.measureText(e),B.restore();let b=y/100;return{actualBoundingBoxAscent:(A=v.actualBoundingBoxAscent)!==null&&A!==void 0?A:71.58203125*b,actualBoundingBoxDescent:(a=v.actualBoundingBoxDescent)!==null&&a!==void 0?a:0,actualBoundingBoxLeft:(n=v.actualBoundingBoxLeft)!==null&&n!==void 0?n:-7.421875*b,actualBoundingBoxRight:(l=v.actualBoundingBoxRight)!==null&&l!==void 0?l:75.732421875*b,alphabeticBaseline:(i=v.alphabeticBaseline)!==null&&i!==void 0?i:0,emHeightAscent:(s=v.emHeightAscent)!==null&&s!==void 0?s:100*b,emHeightDescent:(c=v.emHeightDescent)!==null&&c!==void 0?c:-20*b,fontBoundingBoxAscent:(d=v.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*b,fontBoundingBoxDescent:(h=v.fontBoundingBoxDescent)!==null&&h!==void 0?h:21*b,hangingBaseline:(p=v.hangingBaseline)!==null&&p!==void 0?p:72.80000305175781*b,ideographicBaseline:(m=v.ideographicBaseline)!==null&&m!==void 0?m:-21*b,width:v.width,height:y}}_getContextFont(){return this.fontStyle()+kg+this.fontVariant()+kg+(this.fontSize()+eq)+lq(this.fontFamily())}_addTextLine(e){this.align()===Yd&&(e=e.trim());let a=this._getTextWidth(e);return this.textArr.push({text:e,width:a,lastInParagraph:!1})}_getTextWidth(e){let A=this.letterSpacing(),a=e.length;return zx().measureText(e).width+A*a}_setTextData(){let e=this.text().split(`
|
|
194
|
+
`),A=+this.fontSize(),a=0,n=this.lineHeight()*A,l=this.attrs.width,i=this.attrs.height,s=l!==Wu&&l!==void 0,c=i!==Wu&&i!==void 0,d=this.padding(),h=l-d*2,p=i-d*2,m=0,B=this.wrap(),y=B!==hF,v=B!==aq&&y,b=this.ellipsis();this.textArr=[],zx().font=this._getContextFont();let w=b?this._getTextWidth(Kx):0;for(let x=0,S=e.length;x<S;++x){let U=e[x],L=this._getTextWidth(U);if(s&&L>h)for(;U.length>0;){let F=0,T=pr(U).length,M="",D=0;for(;F<T;){let G=F+T>>>1,ee=pr(U),P=ee.slice(0,G+1).join(""),se=this._getTextWidth(P);(b&&c&&m+n>p?se+w:se)<=h?(F=G+1,M=P,D=se):T=G}if(M){if(v){let P=pr(U),se=pr(M),le=P[se.length],te=le===kg||le===cF,q;if(te&&D<=h)q=se.length;else{let fe=se.lastIndexOf(kg),X=se.lastIndexOf(cF);q=Math.max(fe,X)+1}q>0&&(F=q,M=P.slice(0,F).join(""),D=this._getTextWidth(M))}if(M=M.trimRight(),this._addTextLine(M),a=Math.max(a,D),m+=n,this._shouldHandleEllipsis(m)){this._tryToAddEllipsisToLastLine();break}if(U=pr(U).slice(F).join("").trimLeft(),U.length>0&&(L=this._getTextWidth(U),L<=h)){this._addTextLine(U),m+=n,a=Math.max(a,L);break}}else break}else this._addTextLine(U),m+=n,a=Math.max(a,L),this._shouldHandleEllipsis(m)&&x<S-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&m+n>p)break}this.textHeight=A,this.textWidth=a}_shouldHandleEllipsis(e){let A=+this.fontSize(),a=this.lineHeight()*A,n=this.attrs.height,l=n!==Wu&&n!==void 0,i=this.padding(),s=n-i*2;return!(this.wrap()!==hF)||l&&e+a>s}_tryToAddEllipsisToLastLine(){let e=this.attrs.width,A=e!==Wu&&e!==void 0,a=this.padding(),n=e-a*2,l=this.ellipsis(),i=this.textArr[this.textArr.length-1];!i||!l||(A&&(this._getTextWidth(i.text+Kx)<n||(i.text=i.text.slice(0,i.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(i.text+Kx))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){let e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,A=this.hasShadow();return e&&A?!0:super._useBufferCanvas()}};$e.prototype._fillFunc=rq;$e.prototype._strokeFunc=oq;$e.prototype.className=JX;$e.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];xe($e);Q.overWriteSetter($e,"width",Nd());Q.overWriteSetter($e,"height",Nd());Q.addGetterSetter($e,"direction",pF);Q.addGetterSetter($e,"fontFamily","Arial");Q.addGetterSetter($e,"fontSize",12,K());Q.addGetterSetter($e,"fontStyle",gF);Q.addGetterSetter($e,"fontVariant",gF);Q.addGetterSetter($e,"padding",0,K());Q.addGetterSetter($e,"align",mF);Q.addGetterSetter($e,"verticalAlign",WX);Q.addGetterSetter($e,"lineHeight",1,K());Q.addGetterSetter($e,"wrap",Aq);Q.addGetterSetter($e,"ellipsis",!1,PA());Q.addGetterSetter($e,"letterSpacing",0,K());Q.addGetterSetter($e,"text","",Sl());Q.addGetterSetter($e,"textDecoration","");Q.addGetterSetter($e,"underlineOffset",void 0,K());Q.addGetterSetter($e,"charRenderFunc",void 0);var sq="",CF="normal";function yF(t){t.fillText(this.partialText,0,0)}function xF(t){t.strokeText(this.partialText,0,0)}var Vt=class extends z{constructor(e){super(e),this.dummyCanvas=H.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return kA.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;let A=this.pathLength;return e>A?null:kA.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=kA.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();let A=this.textDecoration(),a=this.fill(),n=this.fontSize(),l=this.glyphInfo,i=A.indexOf("underline")!==-1,s=A.indexOf("line-through")!==-1;i&&e.beginPath();for(let c=0;c<l.length;c++){e.save();let d=l[c].p0;e.translate(d.x,d.y),e.rotate(l[c].rotation),this.partialText=l[c].text,e.fillStrokeShape(this),i&&(c===0&&e.moveTo(0,n/2+1),e.lineTo(l[c].width,n/2+1)),e.restore()}if(i&&(e.strokeStyle=a,e.lineWidth=n/20,e.stroke()),s){e.beginPath();for(let c=0;c<l.length;c++){e.save();let d=l[c].p0;e.translate(d.x,d.y),e.rotate(l[c].rotation),c===0&&e.moveTo(0,0),e.lineTo(l[c].width,0),e.restore()}e.strokeStyle=a,e.lineWidth=n/20,e.stroke()}e.restore()}_hitFunc(e){e.beginPath();let A=this.glyphInfo;if(A.length>=1){let a=A[0].p0;e.moveTo(a.x,a.y)}for(let a=0;a<A.length;a++){let n=A[a].p1;e.lineTo(n.x,n.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return H.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return $e.prototype.setText.call(this,e)}_getContextFont(){return $e.prototype._getContextFont.call(this)}_getTextSize(e){let a=this.dummyCanvas.getContext("2d");a.save(),a.font=this._getContextFont();let n=a.measureText(e);return a.restore(),{width:n.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){let e=pr(this.text()),A=[],a=0;for(let p=0;p<e.length;p++)A.push({char:e[p],width:this._getTextSize(e[p]).width}),a+=A[p].width;let{height:n}=this._getTextSize(this.attrs.text);if(this.textWidth=a,this.textHeight=n,this.glyphInfo=[],!this.attrs.data)return null;let l=this.letterSpacing(),i=this.align(),s=this.kerningFunc(),c=Math.max(this.textWidth+((this.attrs.text||"").length-1)*l,0),d=0;i==="center"&&(d=Math.max(0,this.pathLength/2-c/2)),i==="right"&&(d=Math.max(0,this.pathLength-c));let h=d;for(let p=0;p<A.length;p++){let m=this._getPointAtLength(h);if(!m)return;let B=A[p].char,y=A[p].width+l;if(B===" "&&i==="justify"){let U=this.text().split(" ").length-1;y+=(this.pathLength-c)/U}let v=this._getPointAtLength(h+y);if(!v)return;let b=kA.getLineLength(m.x,m.y,v.x,v.y),w=0;if(s)try{w=s(A[p-1].char,B)*this.fontSize()}catch{w=0}m.x+=w,v.x+=w,this.textWidth+=w;let x=kA.getPointOnLine(w+b/2,m.x,m.y,v.x,v.y),S=Math.atan2(v.y-m.y,v.x-m.x);this.glyphInfo.push({transposeX:x.x,transposeY:x.y,text:e[p],rotation:S,p0:m,p1:v,width:b}),h+=y}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};let e=[];this.glyphInfo.forEach(function(d){e.push(d.p0.x),e.push(d.p0.y),e.push(d.p1.x),e.push(d.p1.y)});let A=e[0]||0,a=e[0]||0,n=e[1]||0,l=e[1]||0,i,s;for(let d=0;d<e.length/2;d++)i=e[d*2],s=e[d*2+1],A=Math.min(A,i),a=Math.max(a,i),n=Math.min(n,s),l=Math.max(l,s);let c=this.fontSize();return{x:A-c/2,y:n-c/2,width:a-A+c,height:l-n+c}}destroy(){return H.releaseCanvas(this.dummyCanvas),super.destroy()}};Vt.prototype._fillFunc=yF;Vt.prototype._strokeFunc=xF;Vt.prototype._fillFuncHit=yF;Vt.prototype._strokeFuncHit=xF;Vt.prototype.className="TextPath";Vt.prototype._attrsAffectingSize=["text","fontSize","data"];xe(Vt);Q.addGetterSetter(Vt,"data");Q.addGetterSetter(Vt,"fontFamily","Arial");Q.addGetterSetter(Vt,"fontSize",12,K());Q.addGetterSetter(Vt,"fontStyle",CF);Q.addGetterSetter(Vt,"align","left");Q.addGetterSetter(Vt,"letterSpacing",0,K());Q.addGetterSetter(Vt,"textBaseline","middle");Q.addGetterSetter(Vt,"fontVariant",CF);Q.addGetterSetter(Vt,"text",sq);Q.addGetterSetter(Vt,"textDecoration","");Q.addGetterSetter(Vt,"kerningFunc",void 0);var SF="tr-konva",uq=["resizeEnabledChange","rotateAnchorOffsetChange","rotateAnchorAngleChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(t=>t+`.${SF}`).join(" "),wF="nodesRect",cq=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange","draggableChange"],fq={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},dq="ontouchstart"in Z._global;function hq(t,e,A){if(t==="rotater")return A;e+=H.degToRad(fq[t]||0);let a=(H.radToDeg(e)%360+360)%360;return H._inRange(a,315+22.5,360)||H._inRange(a,0,22.5)?"ns-resize":H._inRange(a,45-22.5,45+22.5)?"nesw-resize":H._inRange(a,90-22.5,90+22.5)?"ew-resize":H._inRange(a,135-22.5,135+22.5)?"nwse-resize":H._inRange(a,180-22.5,180+22.5)?"ns-resize":H._inRange(a,225-22.5,225+22.5)?"nesw-resize":H._inRange(a,270-22.5,270+22.5)?"ew-resize":H._inRange(a,315-22.5,315+22.5)?"nwse-resize":(H.error("Transformer has unknown angle for cursor detection: "+a),"pointer")}var qg=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],vF=1e8;function pq(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function bF(t,e,A){let a=A.x+(t.x-A.x)*Math.cos(e)-(t.y-A.y)*Math.sin(e),n=A.y+(t.x-A.x)*Math.sin(e)+(t.y-A.y)*Math.cos(e);return{...t,rotation:t.rotation+e,x:a,y:n}}function mq(t,e){let A=pq(t);return bF(t,e,A)}function gq(t,e,A){let a=e;for(let n=0;n<t.length;n++){let l=Z.getAngle(t[n]),i=Math.abs(l-e)%(Math.PI*2);Math.min(i,Math.PI*2-i)<A&&(a=l)}return a}var Vx=0,Fe=class extends kn{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(uq,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return H.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return SF+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();let A=e.filter(n=>n.isAncestorOf(this)?(H.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=e=A,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(n=>{let l=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(n._attrsAffectingSize.length){let i=n._attrsAffectingSize.map(s=>s+"Change."+this._getEventNamespace()).join(" ");n.on(i,l)}n.on(cq.map(i=>i+`.${this._getEventNamespace()}`).join(" "),l),n.on(`absoluteTransformChange.${this._getEventNamespace()}`,l),this._proxyDrag(n)}),this._resetTransformCache(),this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let A;e.on(`dragstart.${this._getEventNamespace()}`,a=>{A=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(".back")&&this.startDrag(a,!1)}),e.on(`dragmove.${this._getEventNamespace()}`,a=>{if(!A)return;let n=e.getAbsolutePosition(),l=n.x-A.x,i=n.y-A.y;this.nodes().forEach(s=>{if(s===e||s.isDragging())return;let c=s.getAbsolutePosition();s.setAbsolutePosition({x:c.x+l,y:c.y+i}),s.startDrag(a)}),A=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(wF),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(wF,this.__getNodeRect)}__getNodeShape(e,A=this.rotation(),a){let n=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),l=e.getAbsoluteScale(a),i=e.getAbsolutePosition(a),s=n.x*l.x-e.offsetX()*l.x,c=n.y*l.y-e.offsetY()*l.y,d=(Z.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),h={x:i.x+s*Math.cos(d)+c*Math.sin(-d),y:i.y+c*Math.cos(d)+s*Math.sin(d),width:n.width*l.x,height:n.height*l.y,rotation:d};return bF(h,-Z.getAngle(A),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-vF,y:-vF,width:0,height:0,rotation:0};let A=[];this.nodes().map(d=>{let h=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),p=[{x:h.x,y:h.y},{x:h.x+h.width,y:h.y},{x:h.x+h.width,y:h.y+h.height},{x:h.x,y:h.y+h.height}],m=d.getAbsoluteTransform();p.forEach(function(B){let y=m.point(B);A.push(y)})});let a=new VA;a.rotate(-Z.getAngle(this.rotation()));let n=1/0,l=1/0,i=-1/0,s=-1/0;A.forEach(function(d){let h=a.point(d);n===void 0&&(n=i=h.x,l=s=h.y),n=Math.min(n,h.x),l=Math.min(l,h.y),i=Math.max(i,h.x),s=Math.max(s,h.y)}),a.invert();let c=a.point({x:n,y:l});return{x:c.x,y:c.y,width:i-n,height:s-l,rotation:Z.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),qg.forEach(e=>{this._createAnchor(e)}),this._createAnchor("rotater")}_createAnchor(e){let A=new hr({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:dq?10:"auto"}),a=this;A.on("mousedown touchstart",function(n){a._handleMouseDown(n)}),A.on("dragstart",n=>{A.stopDrag(),n.cancelBubble=!0}),A.on("dragend",n=>{n.cancelBubble=!0}),A.on("mouseenter",()=>{let n=Z.getAngle(this.rotation()),l=this.rotateAnchorCursor(),i=hq(e,n,l);A.getStage().content&&(A.getStage().content.style.cursor=i),this._cursorChange=!0}),A.on("mouseout",()=>{A.getStage().content&&(A.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(A)}_createBack(){let e=new z({name:"back",width:0,height:0,sceneFunc(A,a){let n=a.getParent(),l=n.padding(),i=a.width(),s=a.height();if(A.beginPath(),A.rect(-l,-l,i+l*2,s+l*2),n.rotateEnabled()&&n.rotateLineVisible()){let c=n.rotateAnchorAngle(),d=n.rotateAnchorOffset(),h=H.degToRad(c),p=Math.sin(h),m=-Math.cos(h),B=i/2,y=s/2,v=1/0;m<0?v=Math.min(v,-y/m):m>0&&(v=Math.min(v,(s-y)/m)),p<0?v=Math.min(v,-B/p):p>0&&(v=Math.min(v,(i-B)/p));let b=B+p*v,w=y+m*v,x=H._sign(s),S=b+p*d*x,U=w+m*d*x;A.moveTo(b,w),A.lineTo(S,U)}A.fillStrokeShape(a)},hitFunc:(A,a)=>{if(!this.shouldOverdrawWholeArea())return;let n=this.padding();A.beginPath(),A.rect(-n,-n,a.width()+n*2,a.height()+n*2),A.fillStrokeShape(a)}});this.add(e),this._proxyDrag(e),e.on("dragstart",A=>{A.cancelBubble=!0}),e.on("dragmove",A=>{A.cancelBubble=!0}),e.on("dragend",A=>{A.cancelBubble=!0}),this.on("dragmove",A=>{this.update()})}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];let A=this._getNodeRect(),a=A.width,n=A.height,l=Math.sqrt(Math.pow(a,2)+Math.pow(n,2));this.sin=Math.abs(n/l),this.cos=Math.abs(a/l),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;let i=e.target.getAbsolutePosition(),s=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-i.x,y:s.y-i.y},Vx++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach(c=>{c._fire("transformstart",{evt:e.evt,target:c})})}_handleMouseMove(e){let A,a,n,l=this.findOne("."+this._movingAnchorName),i=l.getStage();i.setPointersPositions(e);let s=i.getPointerPosition(),c={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y},d=l.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(d,c,e)),l.setAbsolutePosition(c);let h=l.getAbsolutePosition();if(d.x===h.x&&d.y===h.y)return;if(this._movingAnchorName==="rotater"){let x=this._getNodeRect();A=l.x()-x.width/2,a=-l.y()+x.height/2;let S=Z.getAngle(this.rotateAnchorAngle()),U=Math.atan2(-a,A)+Math.PI/2-S;x.height<0&&(U-=Math.PI);let F=Z.getAngle(this.rotation())+U,T=Z.getAngle(this.rotationSnapTolerance()),D=gq(this.rotationSnaps(),F,T)-x.rotation,G=mq(x,D);this._fitNodesInto(G,e);return}let p=this.shiftBehavior(),m;p==="inverted"?m=this.keepRatio()&&!e.shiftKey:p==="none"?m=this.keepRatio():m=this.keepRatio()||e.shiftKey;let B=this.centeredScaling()||e.altKey;if(this._movingAnchorName==="top-left"){if(m){let x=B?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};n=Math.sqrt(Math.pow(x.x-l.x(),2)+Math.pow(x.y-l.y(),2));let S=this.findOne(".top-left").x()>x.x?-1:1,U=this.findOne(".top-left").y()>x.y?-1:1;A=n*this.cos*S,a=n*this.sin*U,this.findOne(".top-left").x(x.x-A),this.findOne(".top-left").y(x.y-a)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(l.y());else if(this._movingAnchorName==="top-right"){if(m){let x=B?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};n=Math.sqrt(Math.pow(l.x()-x.x,2)+Math.pow(x.y-l.y(),2));let S=this.findOne(".top-right").x()<x.x?-1:1,U=this.findOne(".top-right").y()>x.y?-1:1;A=n*this.cos*S,a=n*this.sin*U,this.findOne(".top-right").x(x.x+A),this.findOne(".top-right").y(x.y-a)}var y=l.position();this.findOne(".top-left").y(y.y),this.findOne(".bottom-right").x(y.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(l.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(l.x());else if(this._movingAnchorName==="bottom-left"){if(m){let x=B?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};n=Math.sqrt(Math.pow(x.x-l.x(),2)+Math.pow(l.y()-x.y,2));let S=x.x<l.x()?-1:1,U=l.y()<x.y?-1:1;A=n*this.cos*S,a=n*this.sin*U,l.x(x.x-A),l.y(x.y+a)}y=l.position(),this.findOne(".top-left").x(y.x),this.findOne(".bottom-right").y(y.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(l.y());else if(this._movingAnchorName==="bottom-right"){if(m){let x=B?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};n=Math.sqrt(Math.pow(l.x()-x.x,2)+Math.pow(l.y()-x.y,2));let S=this.findOne(".bottom-right").x()<x.x?-1:1,U=this.findOne(".bottom-right").y()<x.y?-1:1;A=n*this.cos*S,a=n*this.sin*U,this.findOne(".bottom-right").x(x.x+A),this.findOne(".bottom-right").y(x.y+a)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(B=this.centeredScaling()||e.altKey,B){let x=this.findOne(".top-left"),S=this.findOne(".bottom-right"),U=x.x(),L=x.y(),F=this.getWidth()-S.x(),T=this.getHeight()-S.y();S.move({x:-U,y:-L}),x.move({x:F,y:T})}let v=this.findOne(".top-left").getAbsolutePosition();A=v.x,a=v.y;let b=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),w=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:A,y:a,width:b,height:w,rotation:Z.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var A;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));let a=this.getNode();Vx--,this._fire("transformend",{evt:e,target:a}),(A=this.getLayer())===null||A===void 0||A.batchDraw(),a&&this._nodes.forEach(n=>{var l;n._fire("transformend",{evt:e,target:n}),(l=n.getLayer())===null||l===void 0||l.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(e,A){let a=this._getNodeRect(),n=1;if(H._inRange(e.width,-this.padding()*2-n,n)){this.update();return}if(H._inRange(e.height,-this.padding()*2-n,n)){this.update();return}let l=new VA;if(l.rotate(Z.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){let m=l.point({x:-this.padding()*2,y:0});e.x+=m.x,e.y+=m.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){let m=l.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,e.width+=this.padding()*2}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){let m=l.point({x:0,y:-this.padding()*2});e.x+=m.x,e.y+=m.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,e.height+=this.padding()*2}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){let m=l.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,e.height+=this.padding()*2}if(this.boundBoxFunc()){let m=this.boundBoxFunc()(a,e);m?e=m:H.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}let i=1e7,s=new VA;s.translate(a.x,a.y),s.rotate(a.rotation),s.scale(a.width/i,a.height/i);let c=new VA,d=e.width/i,h=e.height/i;this.flipEnabled()===!1?(c.translate(e.x,e.y),c.rotate(e.rotation),c.translate(e.width<0?e.width:0,e.height<0?e.height:0),c.scale(Math.abs(d),Math.abs(h))):(c.translate(e.x,e.y),c.rotate(e.rotation),c.scale(d,h));let p=c.multiply(s.invert());this._nodes.forEach(m=>{var B;if(!m.getStage())return;let y=m.getParent().getAbsoluteTransform(),v=m.getTransform().copy();v.translate(m.offsetX(),m.offsetY());let b=new VA;b.multiply(y.copy().invert()).multiply(p).multiply(y).multiply(v);let w=b.decompose();m.setAttrs(w),(B=m.getLayer())===null||B===void 0||B.batchDraw()}),this.rotation(H._getRotation(e.rotation)),this._nodes.forEach(m=>{this._fire("transform",{evt:A,target:m}),m._fire("transform",{evt:A,target:m})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,A){this.findOne(e).setAttrs(A)}update(){var e;let A=this._getNodeRect();this.rotation(H._getRotation(A.rotation));let a=A.width,n=A.height,l=this.enabledAnchors(),i=this.resizeEnabled(),s=this.padding(),c=this.anchorSize(),d=this.find("._anchor");d.forEach(F=>{F.setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:c/2+s,offsetY:c/2+s,visible:i&&l.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:a/2,y:0,offsetY:c/2+s,visible:i&&l.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:a,y:0,offsetX:c/2-s,offsetY:c/2+s,visible:i&&l.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:n/2,offsetX:c/2+s,visible:i&&l.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:a,y:n/2,offsetX:c/2-s,visible:i&&l.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:n,offsetX:c/2+s,offsetY:c/2-s,visible:i&&l.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:a/2,y:n,offsetY:c/2-s,visible:i&&l.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:a,y:n,offsetX:c/2-s,offsetY:c/2-s,visible:i&&l.indexOf("bottom-right")>=0});let h=this.rotateAnchorAngle(),p=this.rotateAnchorOffset(),m=H.degToRad(h),B=Math.sin(m),y=-Math.cos(m),v=a/2,b=n/2,w=1/0;y<0?w=Math.min(w,-b/y):y>0&&(w=Math.min(w,(n-b)/y)),B<0?w=Math.min(w,-v/B):B>0&&(w=Math.min(w,(a-v)/B));let x=v+B*w,S=b+y*w,U=H._sign(n);this._batchChangeChild(".rotater",{x:x+B*p*U,y:S+y*p*U-s*y,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:a,height:n,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),draggable:this.nodes().some(F=>F.draggable()),x:0,y:0});let L=this.anchorStyleFunc();L&&d.forEach(F=>{L(F)}),(e=this.getLayer())===null||e===void 0||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();let e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),kn.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return k.prototype.toObject.call(this)}clone(e){return k.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};Fe.isTransforming=()=>Vx>0;function Bq(t){return t instanceof Array||H.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(e){qg.indexOf(e)===-1&&H.warn("Unknown anchor name: "+e+". Available names are: "+qg.join(", "))}),t||[]}Fe.prototype.className="Transformer";xe(Fe);Q.addGetterSetter(Fe,"enabledAnchors",qg,Bq);Q.addGetterSetter(Fe,"flipEnabled",!0,PA());Q.addGetterSetter(Fe,"resizeEnabled",!0);Q.addGetterSetter(Fe,"anchorSize",10,K());Q.addGetterSetter(Fe,"rotateEnabled",!0);Q.addGetterSetter(Fe,"rotateLineVisible",!0);Q.addGetterSetter(Fe,"rotationSnaps",[]);Q.addGetterSetter(Fe,"rotateAnchorOffset",50,K());Q.addGetterSetter(Fe,"rotateAnchorAngle",0,K());Q.addGetterSetter(Fe,"rotateAnchorCursor","crosshair");Q.addGetterSetter(Fe,"rotationSnapTolerance",5,K());Q.addGetterSetter(Fe,"borderEnabled",!0);Q.addGetterSetter(Fe,"anchorStroke","rgb(0, 161, 255)");Q.addGetterSetter(Fe,"anchorStrokeWidth",1,K());Q.addGetterSetter(Fe,"anchorFill","white");Q.addGetterSetter(Fe,"anchorCornerRadius",0,K());Q.addGetterSetter(Fe,"borderStroke","rgb(0, 161, 255)");Q.addGetterSetter(Fe,"borderStrokeWidth",1,K());Q.addGetterSetter(Fe,"borderDash");Q.addGetterSetter(Fe,"keepRatio",!0);Q.addGetterSetter(Fe,"shiftBehavior","default");Q.addGetterSetter(Fe,"centeredScaling",!1);Q.addGetterSetter(Fe,"ignoreStroke",!1);Q.addGetterSetter(Fe,"padding",0,K());Q.addGetterSetter(Fe,"nodes");Q.addGetterSetter(Fe,"node");Q.addGetterSetter(Fe,"boundBoxFunc");Q.addGetterSetter(Fe,"anchorDragBoundFunc");Q.addGetterSetter(Fe,"anchorStyleFunc");Q.addGetterSetter(Fe,"shouldOverdrawWholeArea",!1);Q.addGetterSetter(Fe,"useSingleNodeRotation",!0);Q.backCompat(Fe,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var Un=class extends z{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,Z.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};Un.prototype.className="Wedge";Un.prototype._centroid=!0;Un.prototype._attrsAffectingSize=["radius"];xe(Un);Q.addGetterSetter(Un,"radius",0,K());Q.addGetterSetter(Un,"angle",0,K());Q.addGetterSetter(Un,"clockwise",!1);Q.backCompat(Un,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function UF(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var Cq=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],yq=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function xq(t,e){let A=t.data,a=t.width,n=t.height,l,i,s,c,d,h,p,m,B,y,v,b,w,x,S,U,L,F,T,M,D=e+e+1,G=a-1,ee=n-1,P=e+1,se=P*(P+1)/2,le=new UF,te=Cq[e],q=yq[e],fe=null,X=le,oe=null,ye=null;for(let he=1;he<D;he++)X=X.next=new UF,he===P&&(fe=X);X.next=le,s=i=0;for(let he=0;he<n;he++){b=w=x=S=c=d=h=p=0,m=P*(U=A[i]),B=P*(L=A[i+1]),y=P*(F=A[i+2]),v=P*(T=A[i+3]),c+=se*U,d+=se*L,h+=se*F,p+=se*T,X=le;for(let ze=0;ze<P;ze++)X.r=U,X.g=L,X.b=F,X.a=T,X=X.next;for(let ze=1;ze<P;ze++)l=i+((G<ze?G:ze)<<2),c+=(X.r=U=A[l])*(M=P-ze),d+=(X.g=L=A[l+1])*M,h+=(X.b=F=A[l+2])*M,p+=(X.a=T=A[l+3])*M,b+=U,w+=L,x+=F,S+=T,X=X.next;oe=le,ye=fe;for(let ze=0;ze<a;ze++)A[i+3]=T=p*te>>q,T!==0?(T=255/T,A[i]=(c*te>>q)*T,A[i+1]=(d*te>>q)*T,A[i+2]=(h*te>>q)*T):A[i]=A[i+1]=A[i+2]=0,c-=m,d-=B,h-=y,p-=v,m-=oe.r,B-=oe.g,y-=oe.b,v-=oe.a,l=s+((l=ze+e+1)<G?l:G)<<2,b+=oe.r=A[l],w+=oe.g=A[l+1],x+=oe.b=A[l+2],S+=oe.a=A[l+3],c+=b,d+=w,h+=x,p+=S,oe=oe.next,m+=U=ye.r,B+=L=ye.g,y+=F=ye.b,v+=T=ye.a,b-=U,w-=L,x-=F,S-=T,ye=ye.next,i+=4;s+=a}for(let he=0;he<a;he++){w=x=S=b=d=h=p=c=0,i=he<<2,m=P*(U=A[i]),B=P*(L=A[i+1]),y=P*(F=A[i+2]),v=P*(T=A[i+3]),c+=se*U,d+=se*L,h+=se*F,p+=se*T,X=le;for(let Dt=0;Dt<P;Dt++)X.r=U,X.g=L,X.b=F,X.a=T,X=X.next;let ze=a;for(let Dt=1;Dt<=e;Dt++)i=ze+he<<2,c+=(X.r=U=A[i])*(M=P-Dt),d+=(X.g=L=A[i+1])*M,h+=(X.b=F=A[i+2])*M,p+=(X.a=T=A[i+3])*M,b+=U,w+=L,x+=F,S+=T,X=X.next,Dt<ee&&(ze+=a);i=he,oe=le,ye=fe;for(let Dt=0;Dt<n;Dt++)l=i<<2,A[l+3]=T=p*te>>q,T>0?(T=255/T,A[l]=(c*te>>q)*T,A[l+1]=(d*te>>q)*T,A[l+2]=(h*te>>q)*T):A[l]=A[l+1]=A[l+2]=0,c-=m,d-=B,h-=y,p-=v,m-=oe.r,B-=oe.g,y-=oe.b,v-=oe.a,l=he+((l=Dt+P)<ee?l:ee)*a<<2,c+=b+=oe.r=A[l],d+=w+=oe.g=A[l+1],h+=x+=oe.b=A[l+2],p+=S+=oe.a=A[l+3],oe=oe.next,m+=U=ye.r,B+=L=ye.g,y+=F=ye.b,v+=T=ye.a,b-=U,w-=L,x-=F,S-=T,ye=ye.next,i+=a}}var EF=function(e){let A=Math.round(this.blurRadius());A>0&&xq(e,A)};Q.addGetterSetter(k,"blurRadius",0,K(),Q.afterSetFilter);var LF=function(t){let e=this.brightness()*255,A=t.data,a=A.length;for(let n=0;n<a;n+=4)A[n]+=e,A[n+1]+=e,A[n+2]+=e};Q.addGetterSetter(k,"brightness",0,K(),Q.afterSetFilter);var QF=function(t){let e=this.brightness(),A=t.data,a=A.length;for(let n=0;n<a;n+=4)A[n]=Math.min(255,A[n]*e),A[n+1]=Math.min(255,A[n+1]*e),A[n+2]=Math.min(255,A[n+2]*e)};var FF=function(t){let e=Math.pow((this.contrast()+100)/100,2),A=t.data,a=A.length,n=150,l=150,i=150;for(let s=0;s<a;s+=4)n=A[s],l=A[s+1],i=A[s+2],n/=255,n-=.5,n*=e,n+=.5,n*=255,l/=255,l-=.5,l*=e,l+=.5,l*=255,i/=255,i-=.5,i*=e,i+=.5,i*=255,n=n<0?0:n>255?255:n,l=l<0?0:l>255?255:l,i=i<0?0:i>255?255:i,A[s]=n,A[s+1]=l,A[s+2]=i};Q.addGetterSetter(k,"contrast",0,K(),Q.afterSetFilter);var TF=function(t){var e,A,a,n,l,i,s,c,d;let h=t.data,p=t.width,m=t.height,B=Math.min(1,Math.max(0,(A=(e=this.embossStrength)===null||e===void 0?void 0:e.call(this))!==null&&A!==void 0?A:.5)),y=Math.min(1,Math.max(0,(n=(a=this.embossWhiteLevel)===null||a===void 0?void 0:a.call(this))!==null&&n!==void 0?n:.5)),b=(s={"top-left":315,top:270,"top-right":225,right:180,"bottom-right":135,bottom:90,"bottom-left":45,left:0}[(i=(l=this.embossDirection)===null||l===void 0?void 0:l.call(this))!==null&&i!==void 0?i:"top-left"])!==null&&s!==void 0?s:315,w=!!((d=(c=this.embossBlend)===null||c===void 0?void 0:c.call(this))!==null&&d!==void 0&&d),x=B*10,S=y*255,U=b*Math.PI/180,L=Math.cos(U),F=Math.sin(U),T=128/1020*x,M=new Uint8ClampedArray(h),D=new Float32Array(p*m);for(let le=0,te=0;te<h.length;te+=4,le++)D[le]=.2126*M[te]+.7152*M[te+1]+.0722*M[te+2];let G=[-1,0,1,-2,0,2,-1,0,1],ee=[-1,-2,-1,0,0,0,1,2,1],P=[-p-1,-p,-p+1,-1,0,1,p-1,p,p+1],se=le=>le<0?0:le>255?255:le;for(let le=1;le<m-1;le++)for(let te=1;te<p-1;te++){let q=le*p+te,fe=0,X=0;fe+=D[q+P[0]]*G[0],X+=D[q+P[0]]*ee[0],fe+=D[q+P[1]]*G[1],X+=D[q+P[1]]*ee[1],fe+=D[q+P[2]]*G[2],X+=D[q+P[2]]*ee[2],fe+=D[q+P[3]]*G[3],X+=D[q+P[3]]*ee[3],fe+=D[q+P[5]]*G[5],X+=D[q+P[5]]*ee[5],fe+=D[q+P[6]]*G[6],X+=D[q+P[6]]*ee[6],fe+=D[q+P[7]]*G[7],X+=D[q+P[7]]*ee[7],fe+=D[q+P[8]]*G[8],X+=D[q+P[8]]*ee[8];let oe=L*fe+F*X,ye=se(S+oe*T),he=q*4;if(w){let ze=ye-S;h[he]=se(M[he]+ze),h[he+1]=se(M[he+1]+ze),h[he+2]=se(M[he+2]+ze),h[he+3]=M[he+3]}else h[he]=h[he+1]=h[he+2]=ye,h[he+3]=M[he+3]}for(let le=0;le<p;le++){let te=le*4,q=((m-1)*p+le)*4;h[te]=M[te],h[te+1]=M[te+1],h[te+2]=M[te+2],h[te+3]=M[te+3],h[q]=M[q],h[q+1]=M[q+1],h[q+2]=M[q+2],h[q+3]=M[q+3]}for(let le=1;le<m-1;le++){let te=le*p*4,q=(le*p+(p-1))*4;h[te]=M[te],h[te+1]=M[te+1],h[te+2]=M[te+2],h[te+3]=M[te+3],h[q]=M[q],h[q+1]=M[q+1],h[q+2]=M[q+2],h[q+3]=M[q+3]}return t};Q.addGetterSetter(k,"embossStrength",.5,K(),Q.afterSetFilter);Q.addGetterSetter(k,"embossWhiteLevel",.5,K(),Q.afterSetFilter);Q.addGetterSetter(k,"embossDirection","top-left",void 0,Q.afterSetFilter);Q.addGetterSetter(k,"embossBlend",!1,void 0,Q.afterSetFilter);function Px(t,e,A,a,n){let l=A-e,i=n-a;if(l===0)return a+i/2;if(i===0)return a;let s=(t-e)/l;return s=i*s+a,s}var IF=function(t){let e=t.data,A=e.length,a=e[0],n=a,l,i=e[1],s=i,c,d=e[2],h=d,p,m=this.enhance();if(m===0)return;for(let S=0;S<A;S+=4)l=e[S+0],l<a?a=l:l>n&&(n=l),c=e[S+1],c<i?i=c:c>s&&(s=c),p=e[S+2],p<d?d=p:p>h&&(h=p);n===a&&(n=255,a=0),s===i&&(s=255,i=0),h===d&&(h=255,d=0);let B,y,v,b,w,x;if(m>0)B=n+m*(255-n),y=a-m*(a-0),v=s+m*(255-s),b=i-m*(i-0),w=h+m*(255-h),x=d-m*(d-0);else{let S=(n+a)*.5;B=n+m*(n-S),y=a+m*(a-S);let U=(s+i)*.5;v=s+m*(s-U),b=i+m*(i-U);let L=(h+d)*.5;w=h+m*(h-L),x=d+m*(d-L)}for(let S=0;S<A;S+=4)e[S+0]=Px(e[S+0],a,n,y,B),e[S+1]=Px(e[S+1],i,s,b,v),e[S+2]=Px(e[S+2],d,h,x,w)};Q.addGetterSetter(k,"enhance",0,K(),Q.afterSetFilter);var HF=function(t){let e=t.data,A=e.length;for(let a=0;a<A;a+=4){let n=.34*e[a]+.5*e[a+1]+.16*e[a+2];e[a]=n,e[a+1]=n,e[a+2]=n}};Q.addGetterSetter(k,"hue",0,K(),Q.afterSetFilter);Q.addGetterSetter(k,"saturation",0,K(),Q.afterSetFilter);Q.addGetterSetter(k,"luminance",0,K(),Q.afterSetFilter);var RF=function(t){let e=t.data,A=e.length,a=1,n=Math.pow(2,this.saturation()),l=Math.abs(this.hue()+360)%360,i=this.luminance()*127,s=a*n*Math.cos(l*Math.PI/180),c=a*n*Math.sin(l*Math.PI/180),d=.299*a+.701*s+.167*c,h=.587*a-.587*s+.33*c,p=.114*a-.114*s-.497*c,m=.299*a-.299*s-.328*c,B=.587*a+.413*s+.035*c,y=.114*a-.114*s+.293*c,v=.299*a-.3*s+1.25*c,b=.587*a-.586*s-1.05*c,w=.114*a+.886*s-.2*c,x,S,U,L;for(let F=0;F<A;F+=4)x=e[F+0],S=e[F+1],U=e[F+2],L=e[F+3],e[F+0]=d*x+h*S+p*U+i,e[F+1]=m*x+B*S+y*U+i,e[F+2]=v*x+b*S+w*U+i,e[F+3]=L};var DF=function(t){let e=t.data,A=e.length,a=Math.pow(2,this.value()),n=Math.pow(2,this.saturation()),l=Math.abs(this.hue()+360)%360,i=a*n*Math.cos(l*Math.PI/180),s=a*n*Math.sin(l*Math.PI/180),c=.299*a+.701*i+.167*s,d=.587*a-.587*i+.33*s,h=.114*a-.114*i-.497*s,p=.299*a-.299*i-.328*s,m=.587*a+.413*i+.035*s,B=.114*a-.114*i+.293*s,y=.299*a-.3*i+1.25*s,v=.587*a-.586*i-1.05*s,b=.114*a+.886*i-.2*s;for(let w=0;w<A;w+=4){let x=e[w+0],S=e[w+1],U=e[w+2],L=e[w+3];e[w+0]=c*x+d*S+h*U,e[w+1]=p*x+m*S+B*U,e[w+2]=y*x+v*S+b*U,e[w+3]=L}};Q.addGetterSetter(k,"hue",0,K(),Q.afterSetFilter);Q.addGetterSetter(k,"saturation",0,K(),Q.afterSetFilter);Q.addGetterSetter(k,"value",0,K(),Q.afterSetFilter);var MF=function(t){let e=t.data,A=e.length;for(let a=0;a<A;a+=4)e[a]=255-e[a],e[a+1]=255-e[a+1],e[a+2]=255-e[a+2]};var wq=function(t,e,A){let a=t.data,n=e.data,l=t.width,i=t.height,s=A.polarCenterX||l/2,c=A.polarCenterY||i/2,d=Math.sqrt(s*s+c*c),h=l-s,p=i-c,m=Math.sqrt(h*h+p*p);d=m>d?m:d;let B=i,y=l,v=360/y*Math.PI/180;for(let b=0;b<y;b+=1){let w=Math.sin(b*v),x=Math.cos(b*v);for(let S=0;S<B;S+=1){h=Math.floor(s+d*S/B*x),p=Math.floor(c+d*S/B*w);let U=(p*l+h)*4,L=a[U+0],F=a[U+1],T=a[U+2],M=a[U+3];U=(b+S*l)*4,n[U+0]=L,n[U+1]=F,n[U+2]=T,n[U+3]=M}}},vq=function(t,e,A){let a=t.data,n=e.data,l=t.width,i=t.height,s=A.polarCenterX||l/2,c=A.polarCenterY||i/2,d=Math.sqrt(s*s+c*c),h=l-s,p=i-c,m=Math.sqrt(h*h+p*p);d=m>d?m:d;let B=i,y=l,v=A.polarRotation||0,b,w;for(h=0;h<l;h+=1)for(p=0;p<i;p+=1){let x=h-s,S=p-c,U=Math.sqrt(x*x+S*S)*B/d,L=(Math.atan2(S,x)*180/Math.PI+360+v)%360;L=L*y/360,b=Math.floor(L),w=Math.floor(U);let F=(w*l+b)*4,T=a[F+0],M=a[F+1],D=a[F+2],G=a[F+3];F=(p*l+h)*4,n[F+0]=T,n[F+1]=M,n[F+2]=D,n[F+3]=G}},_F=function(t){let e=t.width,A=t.height,a,n,l,i,s,c,d,h,p,m,B=Math.round(this.kaleidoscopePower()),y=Math.round(this.kaleidoscopeAngle()),v=Math.floor(e*(y%360)/360);if(B<1)return;let b=H.createCanvasElement();b.width=e,b.height=A;let w=b.getContext("2d").getImageData(0,0,e,A);H.releaseCanvas(b),wq(t,w,{polarCenterX:e/2,polarCenterY:A/2});let x=e/Math.pow(2,B);for(;x<=8;)x=x*2,B-=1;x=Math.ceil(x);let S=x,U=0,L=S,F=1;for(v+x>e&&(U=S,L=0,F=-1),n=0;n<A;n+=1)for(a=U;a!==L;a+=F)l=Math.round(a+v)%e,p=(e*n+l)*4,s=w.data[p+0],c=w.data[p+1],d=w.data[p+2],h=w.data[p+3],m=(e*n+a)*4,w.data[m+0]=s,w.data[m+1]=c,w.data[m+2]=d,w.data[m+3]=h;for(n=0;n<A;n+=1)for(S=Math.floor(x),i=0;i<B;i+=1){for(a=0;a<S+1;a+=1)p=(e*n+a)*4,s=w.data[p+0],c=w.data[p+1],d=w.data[p+2],h=w.data[p+3],m=(e*n+S*2-a-1)*4,w.data[m+0]=s,w.data[m+1]=c,w.data[m+2]=d,w.data[m+3]=h;S*=2}vq(w,t,{polarRotation:0})};Q.addGetterSetter(k,"kaleidoscopePower",2,K(),Q.afterSetFilter);Q.addGetterSetter(k,"kaleidoscopeAngle",0,K(),Q.afterSetFilter);function Yg(t,e,A){let a=(A*t.width+e)*4,n=[];return n.push(t.data[a++],t.data[a++],t.data[a++],t.data[a++]),n}function jd(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function Sq(t){let e=[0,0,0];for(let A=0;A<t.length;A++)e[0]+=t[A][0],e[1]+=t[A][1],e[2]+=t[A][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function bq(t,e){let A=Yg(t,0,0),a=Yg(t,t.width-1,0),n=Yg(t,0,t.height-1),l=Yg(t,t.width-1,t.height-1),i=e||10;if(jd(A,a)<i&&jd(a,l)<i&&jd(l,n)<i&&jd(n,A)<i){let s=Sq([a,A,l,n]),c=[];for(let d=0;d<t.width*t.height;d++){let h=jd(s,[t.data[d*4],t.data[d*4+1],t.data[d*4+2]]);c[d]=h<i?0:255}return c}}function Uq(t,e){for(let A=0;A<t.width*t.height;A++)t.data[4*A+3]=e[A]}function Eq(t,e,A){let a=[1,1,1,1,0,1,1,1,1],n=Math.round(Math.sqrt(a.length)),l=Math.floor(n/2),i=[];for(let s=0;s<A;s++)for(let c=0;c<e;c++){let d=s*e+c,h=0;for(let p=0;p<n;p++)for(let m=0;m<n;m++){let B=s+p-l,y=c+m-l;if(B>=0&&B<A&&y>=0&&y<e){let v=B*e+y,b=a[p*n+m];h+=t[v]*b}}i[d]=h===2040?255:0}return i}function Lq(t,e,A){let a=[1,1,1,1,1,1,1,1,1],n=Math.round(Math.sqrt(a.length)),l=Math.floor(n/2),i=[];for(let s=0;s<A;s++)for(let c=0;c<e;c++){let d=s*e+c,h=0;for(let p=0;p<n;p++)for(let m=0;m<n;m++){let B=s+p-l,y=c+m-l;if(B>=0&&B<A&&y>=0&&y<e){let v=B*e+y,b=a[p*n+m];h+=t[v]*b}}i[d]=h>=1020?255:0}return i}function Qq(t,e,A){let a=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],n=Math.round(Math.sqrt(a.length)),l=Math.floor(n/2),i=[];for(let s=0;s<A;s++)for(let c=0;c<e;c++){let d=s*e+c,h=0;for(let p=0;p<n;p++)for(let m=0;m<n;m++){let B=s+p-l,y=c+m-l;if(B>=0&&B<A&&y>=0&&y<e){let v=B*e+y,b=a[p*n+m];h+=t[v]*b}}i[d]=h}return i}var OF=function(t){let e=this.threshold(),A=bq(t,e);return A&&(A=Eq(A,t.width,t.height),A=Lq(A,t.width,t.height),A=Qq(A,t.width,t.height),Uq(t,A)),t};Q.addGetterSetter(k,"threshold",0,K(),Q.afterSetFilter);var NF=function(t){let e=this.noise()*255,A=t.data,a=A.length,n=e/2;for(let l=0;l<a;l+=4)A[l+0]+=n-2*n*Math.random(),A[l+1]+=n-2*n*Math.random(),A[l+2]+=n-2*n*Math.random()};Q.addGetterSetter(k,"noise",.2,K(),Q.afterSetFilter);var GF=function(t){let e=Math.ceil(this.pixelSize()),A=t.width,a=t.height,n=Math.ceil(A/e),l=Math.ceil(a/e),i=t.data;if(e<=0){H.error("pixelSize value can not be <= 0");return}for(let s=0;s<n;s+=1)for(let c=0;c<l;c+=1){let d=0,h=0,p=0,m=0,B=s*e,y=B+e,v=c*e,b=v+e,w=0;for(let x=B;x<y;x+=1)if(!(x>=A))for(let S=v;S<b;S+=1){if(S>=a)continue;let U=(A*S+x)*4;d+=i[U+0],h+=i[U+1],p+=i[U+2],m+=i[U+3],w+=1}d=d/w,h=h/w,p=p/w,m=m/w;for(let x=B;x<y;x+=1)if(!(x>=A))for(let S=v;S<b;S+=1){if(S>=a)continue;let U=(A*S+x)*4;i[U+0]=d,i[U+1]=h,i[U+2]=p,i[U+3]=m}}};Q.addGetterSetter(k,"pixelSize",8,K(),Q.afterSetFilter);var KF=function(t){let e=Math.round(this.levels()*254)+1,A=t.data,a=A.length,n=255/e;for(let l=0;l<a;l+=1)A[l]=Math.floor(A[l]/n)*n};Q.addGetterSetter(k,"levels",.5,K(),Q.afterSetFilter);var zF=function(t){let e=t.data,A=e.length,a=this.red(),n=this.green(),l=this.blue();for(let i=0;i<A;i+=4){let s=(.34*e[i]+.5*e[i+1]+.16*e[i+2])/255;e[i]=s*a,e[i+1]=s*n,e[i+2]=s*l,e[i+3]=e[i+3]}};Q.addGetterSetter(k,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});Q.addGetterSetter(k,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});Q.addGetterSetter(k,"blue",0,Rg,Q.afterSetFilter);var VF=function(t){let e=t.data,A=e.length,a=this.red(),n=this.green(),l=this.blue(),i=this.alpha();for(let s=0;s<A;s+=4){let c=1-i;e[s]=a*i+e[s]*c,e[s+1]=n*i+e[s+1]*c,e[s+2]=l*i+e[s+2]*c}};Q.addGetterSetter(k,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});Q.addGetterSetter(k,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});Q.addGetterSetter(k,"blue",0,Rg,Q.afterSetFilter);Q.addGetterSetter(k,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});var PF=function(t){let e=t.data,A=e.length;for(let a=0;a<A;a+=4){let n=e[a+0],l=e[a+1],i=e[a+2];e[a+0]=Math.min(255,n*.393+l*.769+i*.189),e[a+1]=Math.min(255,n*.349+l*.686+i*.168),e[a+2]=Math.min(255,n*.272+l*.534+i*.131)}};var kF=function(t){let A=t.data;for(let a=0;a<A.length;a+=4){let n=A[a],l=A[a+1],i=A[a+2];.2126*n+.7152*l+.0722*i>=128&&(A[a]=255-n,A[a+1]=255-l,A[a+2]=255-i)}return t};var XF=function(t){let e=this.threshold()*255,A=t.data,a=A.length;for(let n=0;n<a;n+=1)A[n]=A[n]<e?0:255};Q.addGetterSetter(k,"threshold",.5,K(),Q.afterSetFilter);var qF=Zu.Util._assign(Zu,{Arc:bn,Arrow:bl,Circle:dr,Ellipse:qn,Image:ba,Label:Ju,Tag:Ul,Line:ja,Path:kA,Rect:hr,RegularPolygon:Yn,Ring:El,Sprite:Za,Star:jn,Text:$e,TextPath:Vt,Transformer:Fe,Wedge:Un,Filters:{Blur:EF,Brightness:QF,Brighten:LF,Contrast:FF,Emboss:TF,Enhance:IF,Grayscale:HF,HSL:RF,HSV:DF,Invert:MF,Kaleidoscope:_F,Mask:OF,Noise:NF,Pixelate:GF,Posterize:KF,RGB:zF,RGBA:VF,Sepia:PF,Solarize:kF,Threshold:XF}});var jg=qF;var CA=Y(ue());var $u=Zu;var s7=Y(ZF()),u7=Y(kx());var Xx={};RS(Xx,{HostTransitionContext:()=>NY,NotPendingTransition:()=>OY,afterActiveInstanceBlur:()=>xY,appendChild:()=>lY,appendChildToContainer:()=>rY,appendInitialChild:()=>Dq,beforeActiveInstanceBlur:()=>yY,cancelTimeout:()=>jq,clearContainer:()=>gY,commitMount:()=>cY,commitTextUpdate:()=>uY,commitUpdate:()=>fY,createInstance:()=>Mq,createTextInstance:()=>_q,detachDeletedInstance:()=>BY,finalizeInitialChildren:()=>Oq,getChildHostContext:()=>qq,getCurrentEventPriority:()=>wY,getCurrentUpdatePriority:()=>UY,getInstanceFromNode:()=>CY,getInstanceFromScope:()=>SY,getPublicInstance:()=>Nq,getRootHostContext:()=>Xq,hideInstance:()=>dY,hideTextInstance:()=>hY,idlePriority:()=>tc.unstable_IdlePriority,insertBefore:()=>l7,insertInContainerBefore:()=>oY,isPrimaryRenderer:()=>eY,maySuspendCommit:()=>HY,noTimeout:()=>Wq,now:()=>tc.unstable_now,preloadInstance:()=>RY,prepareForCommit:()=>Gq,preparePortalMount:()=>Kq,prepareScopeUpdate:()=>vY,prepareUpdate:()=>zq,removeChild:()=>iY,removeChildFromContainer:()=>sY,requestPostPaintCallback:()=>IY,resetAfterCommit:()=>Vq,resetFormInstance:()=>GY,resetTextContent:()=>Pq,resolveEventTimeStamp:()=>TY,resolveEventType:()=>FY,resolveUpdatePriority:()=>EY,run:()=>tc.unstable_runWithPriority,scheduleMicrotask:()=>Jq,scheduleTimeout:()=>Yq,setCurrentUpdatePriority:()=>bY,shouldAttemptEagerTransition:()=>LY,shouldDeprioritizeSubtree:()=>kq,shouldSetTextContent:()=>$q,startSuspendingCommit:()=>DY,supportsHydration:()=>nY,supportsMicrotasks:()=>Zq,supportsMutation:()=>AY,supportsPersistence:()=>aY,suspendInstance:()=>MY,trackSchedulerEvent:()=>QY,unhideInstance:()=>pY,unhideTextInstance:()=>mY,waitForCommitToBeReady:()=>_Y,warnsIfNotActing:()=>tY});var A7=Y(ue());var $F={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0},e7=!1,t7=!1,Jd=".react-konva-event",Fq=!1;var Tq=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
|
195
|
+
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
|
|
196
|
+
Consider to add onDragMove or onDragEnd events.
|
|
197
|
+
For more info see: https://github.com/konvajs/react-konva/issues/256
|
|
198
|
+
`,Iq=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
|
199
|
+
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
|
200
|
+
For more info see: https://github.com/konvajs/react-konva/issues/194
|
|
201
|
+
`,Hq={};function ec(t,e,A=Hq){if(!e7&&"zIndex"in e&&(console.warn(Iq),e7=!0),!t7&&e.draggable){var a=e.x!==void 0||e.y!==void 0,n=e.onDragEnd||e.onDragMove;a&&!n&&(console.warn(Tq),t7=!0)}for(var l in A)if(!$F[l]){var i=l.slice(0,2)==="on",s=A[l]!==e[l];if(i&&s){var c=l.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t.off(c,A[l])}var d=!e.hasOwnProperty(l);d&&t.setAttr(l,void 0)}var h=Fq||e._useStrictMode,p={},m=!1;let B={};for(var l in e)if(!$F[l]){var i=l.slice(0,2)==="on",y=A[l]!==e[l];if(i&&y){var c=l.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),e[l]&&(B[c]=e[l])}!i&&(e[l]!==A[l]||h&&e[l]!==t.getAttr(l))&&(m=!0,p[l]=e[l])}m&&(t.setAttrs(p),mr(t));for(var c in B)t.off(c+Jd),t.on(c+Jd,B[c])}function mr(t){if(!Z.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}var tc=Y(y0()),Wd=Y(kx()),a7={},Rq={};$u.Node.prototype._applyProps=ec;var n7=Wd.DefaultEventPriority;function Dq(t,e){if(typeof e=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${e}`);return}t.add(e),mr(t)}function Mq(t,e,A){let a=$u[t];a||(console.error(`Konva has no node with the type ${t}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${t}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),a=$u.Group);let n={},l={};for(var i in e)if(i!=="ref"){var s=i.slice(0,2)==="on";s?l[i]=e[i]:n[i]=e[i]}let c=new a(n);return ec(c,l),c}function _q(t,e,A){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${t}"`)}function Oq(t,e,A){return!1}function Nq(t){return t}function Gq(){return null}function Kq(){return null}function zq(t,e,A,a){return Rq}function Vq(){}function Pq(t){}function kq(t,e){return!1}function Xq(){return a7}function qq(){return a7}var Yq=setTimeout,jq=clearTimeout,Zq=!0,Jq=t=>{t()},Wq=-1;function $q(t,e){return!1}var eY=!1,tY=!1,AY=!0,aY=!1,nY=!1;function lY(t,e){e.parent===t?e.moveToTop():t.add(e),mr(t)}function rY(t,e){e.parent===t?e.moveToTop():t.add(e),mr(t)}function l7(t,e,A){e._remove(),t.add(e),e.setZIndex(A.getZIndex()),mr(t)}function oY(t,e,A){l7(t,e,A)}function iY(t,e){e.destroy(),e.off(Jd),mr(t)}function sY(t,e){e.destroy(),e.off(Jd),mr(t)}function uY(t,e,A){console.error(`Text components are not yet supported in ReactKonva. You text is: "${A}"`)}function cY(t,e,A){}function fY(t,e,A,a){ec(t,a,A)}function dY(t){t.hide(),mr(t)}function hY(t){}function pY(t,e){(e.visible==null||e.visible)&&t.show()}function mY(t,e){}function gY(t){}function BY(){}function CY(){return null}function yY(){}function xY(){}function wY(){return Wd.DefaultEventPriority}function vY(){}function SY(){return null}function bY(t){n7=t}function UY(){return n7}function EY(){return Wd.DiscreteEventPriority}function LY(){return!1}function QY(){}function FY(){return null}function TY(){return-1.1}function IY(){}function HY(){return!1}function RY(){return!0}function DY(){}function MY(){}function _Y(){return null}var OY=null,NY=A7.default.createContext(null);function GY(){}var Rt=Y(ue(),1);function r7(t,e,A){if(!t)return;if(A(t)===!0)return t;let a=e?t.return:t.child;for(;a;){let n=r7(a,e,A);if(n)return n;a=e?null:a.sibling}}function o7(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}var qx=o7(Rt.createContext(null)),$d=class extends Rt.Component{render(){return Rt.createElement(qx.Provider,{value:this._reactInternals},this.props.children)}};function KY(){let t=Rt.useContext(qx);if(t===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");let e=Rt.useId();return Rt.useMemo(()=>{for(let A of[t,t?.alternate]){if(!A)continue;let a=r7(A,!1,n=>{let l=n.memoizedState;for(;l;){if(l.memoizedState===e)return!0;l=l.next}});if(a)return a}},[t,e])}var zY=Symbol.for("react.context"),VY=t=>t!==null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===zY;function PY(){let t=KY(),[e]=Rt.useState(()=>new Map);e.clear();let A=t;for(;A;){let a=A.type;VY(a)&&a!==qx&&!e.has(a)&&e.set(a,Rt.use(o7(a))),A=A.return}return e}function i7(){let t=PY();return Rt.useMemo(()=>Array.from(t.keys()).reduce((e,A)=>a=>Rt.createElement(e,null,Rt.createElement(A.Provider,{...a,value:t.get(A)})),e=>Rt.createElement($d,{...e})),[t])}if(CA.default.version.indexOf("19")===-1)throw new Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");function kY(t){let e=CA.default.useRef({});return CA.default.useLayoutEffect(()=>{e.current=t}),CA.default.useLayoutEffect(()=>()=>{e.current={}},[]),e.current}var XY=()=>{let t=CA.default.useRef(0);return CA.default.useMemo(()=>{t.current++},[]),t.current>1},qY=t=>{let e=CA.default.useRef(null),A=CA.default.useRef(null),a=CA.default.useRef(null),n=kY(t),l=i7(),i=CA.default.useRef(null),s=h=>{let{forwardedRef:p}=t;p&&(typeof p=="function"?p(h):p.current=h)},c=XY(),d=()=>{s(null),Ac.flushSyncFromReconciler(()=>{Ac.updateContainer(null,a.current,null)}),A.current?.destroy(),A.current=null};return CA.default.useLayoutEffect(()=>(i.current&&(clearTimeout(i.current),i.current=null),A.current?s(A.current):(A.current=new $u.Stage({width:t.width,height:t.height,container:e.current}),s(A.current),a.current=Ac.createContainer(A.current,u7.ConcurrentRoot,null,!1,null,"",console.error,console.error,console.error,null),Ac.updateContainer(CA.default.createElement(l,{},t.children),a.current,null,()=>{})),()=>{c?i.current=setTimeout(d,0):d()}),[]),CA.default.useLayoutEffect(()=>{s(A.current),ec(A.current,t,n),Ac.flushSyncFromReconciler(()=>{Ac.updateContainer(CA.default.createElement(l,{},t.children),a.current,null)})}),CA.default.createElement("div",{ref:e,id:t.id,accessKey:t.accessKey,className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})},Yx="Layer";var c7="Group";var Ro="Rect";var f7="Ellipse";var Zg="Line";var d7="Image",h7="Text";var p7="Arrow";var m7="Transformer";var Ac=(0,s7.default)(Xx),g7=CA.default.forwardRef((t,e)=>CA.default.createElement($d,{},CA.default.createElement(qY,{...t,forwardedRef:e})));var eh=Y(Qe());var th=Y(Qe());var Do=Y(Qe());var Ah=Y(Qe());var ah=Y(Qe());var nh=Y(Qe());var lh=Y(Qe());var ge=Y(Qe()),yA=Y(Qe());function sA(...t){return QL(wL(t))}var YY={default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent text-text-secondary hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},jY={default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"},Zn=x7.forwardRef(({className:t,variant:e="default",size:A="default",asChild:a=!1,...n},l)=>(0,w7.jsx)(a?ML:"button",{className:sA("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",YY[e],jY[A],t),ref:l,...n}));Zn.displayName="Button";var JY=Yi.forwardRef(({className:t,...e},A)=>(0,ji.jsx)("div",{ref:A,className:sA("rounded-lg border border-border bg-card text-card-foreground shadow-sm",t),...e}));JY.displayName="Card";var WY=Yi.forwardRef(({className:t,...e},A)=>(0,ji.jsx)("div",{ref:A,className:sA("flex flex-col space-y-1.5 p-6",t),...e}));WY.displayName="CardHeader";var $Y=Yi.forwardRef(({className:t,...e},A)=>(0,ji.jsx)("h3",{ref:A,className:sA("text-2xl font-semibold leading-none tracking-tight",t),...e}));$Y.displayName="CardTitle";var ej=Yi.forwardRef(({className:t,...e},A)=>(0,ji.jsx)("p",{ref:A,className:sA("text-sm text-muted-foreground",t),...e}));ej.displayName="CardDescription";var tj=Yi.forwardRef(({className:t,...e},A)=>(0,ji.jsx)("div",{ref:A,className:sA("p-6 pt-0",t),...e}));tj.displayName="CardContent";var Aj=Yi.forwardRef(({className:t,...e},A)=>(0,ji.jsx)("div",{ref:A,className:sA("flex items-center p-6 pt-0",t),...e}));Aj.displayName="CardFooter";var aj=P8;var v7=rh.forwardRef(({className:t,...e},A)=>(0,Ja.jsx)($4,{ref:A,className:sA("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",t),...e}));v7.displayName=$4.displayName;var nj=rh.forwardRef(({className:t,children:e,...A},a)=>(0,Ja.jsxs)(aj,{children:[(0,Ja.jsx)(v7,{}),(0,Ja.jsxs)(ex,{ref:a,className:sA("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-card 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:rounded-lg",t),...A,children:[e,(0,Ja.jsxs)(k8,{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:[(0,Ja.jsx)(Ri,{className:"h-4 w-4"}),(0,Ja.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));nj.displayName=ex.displayName;var lj=({className:t,...e})=>(0,Ja.jsx)("div",{className:sA("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});lj.displayName="DialogHeader";var rj=({className:t,...e})=>(0,Ja.jsx)("div",{className:sA("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});rj.displayName="DialogFooter";var oj=rh.forwardRef(({className:t,...e},A)=>(0,Ja.jsx)(tx,{ref:A,className:sA("text-lg font-semibold leading-none tracking-tight",t),...e}));oj.displayName=tx.displayName;var ij=rh.forwardRef(({className:t,...e},A)=>(0,Ja.jsx)(Ax,{ref:A,className:sA("text-sm text-muted-foreground",t),...e}));ij.displayName=Ax.displayName;var sj=S7.forwardRef(({className:t,type:e,...A},a)=>(0,b7.jsx)("input",{type:e,className:sA("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:a,...A}));sj.displayName="Input";var uj=U7.forwardRef(({className:t,children:e,...A},a)=>(0,E7.jsx)("select",{className:sA("flex h-9 w-full rounded-md border border-input bg-surface-2 px-3 py-1 text-sm text-foreground shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),style:{colorScheme:"dark"},ref:a,...A,children:e}));uj.displayName="Select";var cj=L7.forwardRef(({className:t,...e},A)=>(0,Q7.jsx)("textarea",{className:sA("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm 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",t),ref:A,...e}));cj.displayName="Textarea";var fj=F7.forwardRef(({className:t,sideOffset:e=4,...A},a)=>(0,jx.jsx)(x9,{children:(0,jx.jsx)(Cx,{ref:a,sideOffset:e,className:sA("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...A})}));fj.displayName=Cx.displayName;var dj=T7.forwardRef(({className:t,...e},A)=>(0,I7.jsx)(yx,{ref:A,className:sA("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t),...e}));dj.displayName=yx.displayName;function gj({shapes:t,activeShape:e,onSelect:A,onShapeChange:a,shapeRefsMap:n,isSelectActive:l}){let i=t.filter(c=>c.type==="rect"),s=e?.type==="rect"?[...i,e]:i;return(0,eh.jsx)(eh.Fragment,{children:s.map((c,d)=>{if(c.points.length<2)return null;let[h,p]=c.points[0],[m,B]=c.points[1],y=t.indexOf(c),v=c===e;return(0,eh.jsx)(Ro,{x:Math.min(h,m),y:Math.min(p,B),width:Math.abs(m-h),height:Math.abs(B-p),stroke:c.color,strokeWidth:c.strokeWidth,draggable:!v&&l,ref:b=>{v||(b?n?.current.set(y,b):n?.current.delete(y))},onClick:()=>!v&&l&&A?.(y),onTap:()=>!v&&l&&A?.(y),onDragEnd:b=>{if(!a||v)return;let w=b.target,x=Math.min(h,m),S=Math.min(p,B),U=w.x()-x,L=w.y()-S;w.x(0),w.y(0);let F={...c,points:[[h+U,p+L],[m+U,B+L]]};a(y,F)},onTransformEnd:b=>{if(!a||v)return;let w=b.target,x=w.scaleX(),S=w.scaleY();if(x===1&&S===1)return;let U=Math.abs(m-h),L=Math.abs(B-p),F=w.x(),T=w.y();w.scaleX(1),w.scaleY(1),w.x(0),w.y(0);let M={...c,points:[[F,T],[F+U*x,T+L*S]]};a(y,M)}},`rect-${d}`)})})}function Bj({shapes:t,activeShape:e,onSelect:A,onShapeChange:a,shapeRefsMap:n,isSelectActive:l}){let i=t.filter(c=>c.type==="arrow"),s=e?.type==="arrow"?[...i,e]:i;return(0,th.jsx)(th.Fragment,{children:s.map((c,d)=>{if(c.points.length<2)return null;let[h,p]=c.points[0],[m,B]=c.points[1],y=t.indexOf(c),v=c===e;return(0,th.jsx)(p7,{points:[h,p,m,B],stroke:c.color,strokeWidth:c.strokeWidth,fill:c.color,pointerLength:12,pointerWidth:10,hitFunc:(b,w)=>{let x=Math.min(h,m),S=Math.min(p,B);b.beginPath(),b.rect(x,S,Math.abs(m-h),Math.abs(B-p)),b.closePath(),b.fillStrokeShape(w)},draggable:!v&&l,ref:b=>{v||(b?n?.current.set(y,b):n?.current.delete(y))},onClick:()=>!v&&l&&A?.(y),onTap:()=>!v&&l&&A?.(y),onDragEnd:b=>{if(!a||v)return;let w=b.target,x=w.x(),S=w.y();w.x(0),w.y(0);let U={...c,points:c.points.map(([L,F])=>[L+x,F+S])};a(y,U)}},`arrow-${d}`)})})}function Cj(t,e){let A=t.strokeWidth;if(!t.pressure||t.pressure.length<2)return A;let a=t.pressure[e]??.5,n=t.pressure[e+1]??a,l=(a+n)/2;return Math.max(.5,A*l*2)}function yj({shapes:t,activeShape:e,onSelect:A,onShapeChange:a,shapeRefsMap:n,isSelectActive:l}){let i=t.filter(c=>c.type==="freehand"),s=e?.type==="freehand"?[...i,e]:i;return(0,Do.jsx)(Do.Fragment,{children:s.map((c,d)=>{if(c.points.length<2)return null;let h=t.indexOf(c),p=c===e,m=c.points.map(([x])=>x),B=c.points.map(([,x])=>x),y=Math.min(...m),v=Math.min(...B),b=Math.max(1,Math.max(...m)-y),w=Math.max(1,Math.max(...B)-v);return(0,Do.jsxs)(c7,{draggable:!p&&l,ref:x=>{p||(x?n?.current.set(h,x):n?.current.delete(h))},onClick:()=>!p&&l&&A?.(h),onTap:()=>!p&&l&&A?.(h),onDragEnd:x=>{if(!a||p)return;let S=x.target,U=S.x(),L=S.y();S.x(0),S.y(0),a(h,{...c,points:c.points.map(([F,T])=>[F+U,T+L])})},onTransformEnd:x=>{if(!a||p)return;let S=x.target,U=S.scaleX(),L=S.scaleY();if(U===1&&L===1)return;let F=S.x(),T=S.y();S.scaleX(1),S.scaleY(1),S.x(0),S.y(0),a(h,{...c,points:c.points.map(([M,D])=>[M*U+F,D*L+T]),pressure:void 0})},children:[(0,Do.jsx)(Ro,{x:y,y:v,width:b,height:w,fill:"transparent",stroke:"transparent"}),c.points.slice(0,-1).map((x,S)=>{let U=c.points[S+1];return(0,Do.jsx)(Zg,{points:[x[0],x[1],U[0],U[1]],stroke:c.color,strokeWidth:Cj(c,S),lineCap:"round",lineJoin:"round",listening:!1},S)})]},`freehand-${d}`)})})}function xj({shapes:t,activeShape:e,onSelect:A,onShapeChange:a,shapeRefsMap:n,isSelectActive:l}){let i=t.filter(c=>c.type==="line"),s=e?.type==="line"?[...i,e]:i;return(0,Ah.jsx)(Ah.Fragment,{children:s.map((c,d)=>{if(c.points.length<2)return null;let[h,p]=c.points[0],[m,B]=c.points[1],y=t.indexOf(c),v=c===e;return(0,Ah.jsx)(Zg,{points:[h,p,m,B],stroke:c.color,strokeWidth:c.strokeWidth,lineCap:"round",hitFunc:(b,w)=>{let x=Math.min(h,m),S=Math.min(p,B);b.beginPath(),b.rect(x,S,Math.abs(m-h),Math.abs(B-p)),b.closePath(),b.fillStrokeShape(w)},draggable:!v&&l,ref:b=>{v||(b?n?.current.set(y,b):n?.current.delete(y))},onClick:()=>!v&&l&&A?.(y),onTap:()=>!v&&l&&A?.(y),onDragEnd:b=>{if(!a||v)return;let w=b.target,x=w.x(),S=w.y();w.x(0),w.y(0);let U={...c,points:c.points.map(([L,F])=>[L+x,F+S])};a(y,U)}},`line-${d}`)})})}function wj({shapes:t,activeShape:e,onSelect:A,onShapeChange:a,shapeRefsMap:n,isSelectActive:l}){let i=t.filter(c=>c.type==="circle"),s=e?.type==="circle"?[...i,e]:i;return(0,ah.jsx)(ah.Fragment,{children:s.map((c,d)=>{if(c.points.length<2)return null;let[h,p]=c.points[0],[m,B]=c.points[1],y=(h+m)/2,v=(p+B)/2,b=Math.abs(m-h)/2,w=Math.abs(B-p)/2,x=t.indexOf(c),S=c===e;return(0,ah.jsx)(f7,{x:y,y:v,radiusX:b,radiusY:w,stroke:c.color,strokeWidth:c.strokeWidth,draggable:!S&&l,ref:U=>{S||(U?n?.current.set(x,U):n?.current.delete(x))},onClick:()=>!S&&l&&A?.(x),onTap:()=>!S&&l&&A?.(x),onDragEnd:U=>{if(!a||S)return;let L=U.target,F=L.x()-y,T=L.y()-v;L.x(0),L.y(0);let M={...c,points:[[h+F,p+T],[m+F,B+T]]};a(x,M)},onTransformEnd:U=>{if(!a||S)return;let L=U.target,F=L.scaleX(),T=L.scaleY();if(F===1&&T===1)return;let M=b*F,D=w*T,G=L.x(),ee=L.y();L.scaleX(1),L.scaleY(1),L.x(0),L.y(0);let P={...c,points:[[G-M,ee-D],[G+M,ee+D]]};a(x,P)}},`circle-${d}`)})})}function vj({shapes:t,onDblClick:e,onSelect:A,onShapeChange:a,shapeRefsMap:n,isSelectActive:l,editingIndex:i}){let s=t.filter(c=>c.type==="text");return(0,nh.jsx)(nh.Fragment,{children:s.map((c,d)=>{if(c.points.length<1)return null;let[h,p]=c.points[0],m=t.indexOf(c);return(0,nh.jsx)(h7,{x:h,y:p,visible:m!==i,text:c.text||"Text",fontSize:c.fontSize||16,fill:c.color,fontFamily:"Inter, sans-serif",fontStyle:"bold",draggable:l,ref:B=>{B?n?.current.set(m,B):n?.current.delete(m)},onClick:()=>l&&A?.(m),onTap:()=>l&&A?.(m),onDblClick:()=>e?.(m,c),onDblTap:()=>e?.(m,c),onTransformEnd:B=>{if(!a)return;let y=B.target,v=y.scaleX(),b=y.scaleY();if(v===1&&b===1)return;let w=Math.max(8,Math.round((c.fontSize||16)*Math.max(v,b))),x=y.x(),S=y.y();y.scaleX(1),y.scaleY(1),y.x(0),y.y(0),a(m,{...c,points:[[x,S]],fontSize:w})},onDragEnd:B=>{if(!a)return;let y=B.target,[v,b]=c.points[0],w=y.x()-v,x=y.y()-b;y.x(0),y.y(0);let S={...c,points:[[v+w,b+x]]};a(m,S)}},`text-${d}`)})})}function Sj({shapes:t,activeShape:e,onSelect:A,onShapeChange:a,shapeRefsMap:n,isSelectActive:l}){let i=t.filter(c=>c.type==="blur"),s=e?.type==="blur"?[...i,e]:i;return(0,lh.jsx)(lh.Fragment,{children:s.map((c,d)=>{if(c.points.length<2)return null;let[h,p]=c.points[0],[m,B]=c.points[1],y=t.indexOf(c),v=c===e;return(0,lh.jsx)(Ro,{x:Math.min(h,m),y:Math.min(p,B),width:Math.abs(m-h),height:Math.abs(B-p),fill:"black",cornerRadius:2,draggable:!v&&l,ref:b=>{v||(b?n?.current.set(y,b):n?.current.delete(y))},onClick:()=>!v&&l&&A?.(y),onTap:()=>!v&&l&&A?.(y),onDragEnd:b=>{if(!a||v)return;let w=b.target,x=Math.min(h,m),S=Math.min(p,B),U=w.x()-x,L=w.y()-S;w.x(0),w.y(0);let F={...c,points:[[h+U,p+L],[m+U,B+L]]};a(y,F)},onTransformEnd:b=>{if(!a||v)return;let w=b.target,x=w.scaleX(),S=w.scaleY();if(x===1&&S===1)return;let U=Math.abs(m-h),L=Math.abs(B-p),F=w.x(),T=w.y();w.scaleX(1),w.scaleY(1),w.x(0),w.y(0);let M={...c,points:[[F,T],[F+U*x,T+L*S]]};a(y,M)}},`blur-${d}`)})})}var bj=[{name:"Red",value:"rgba(239, 68, 68, 0.85)"},{name:"Blue",value:"rgba(59, 130, 246, 0.85)"},{name:"Green",value:"rgba(34, 197, 94, 0.85)"},{name:"Yellow",value:"rgba(234, 179, 8, 0.85)"},{name:"White",value:"rgba(255, 255, 255, 0.85)"}],Uj=[{type:"select",icon:xd,label:"Select",shortcut:"V"},{type:"rect",icon:vd,label:"Rectangle",shortcut:"R"},{type:"arrow",icon:md,label:"Arrow",shortcut:"A"},{type:"freehand",icon:Uo,label:"Freehand",shortcut:"F"},{type:"line",icon:yd,label:"Line",shortcut:"L"},{type:"circle",icon:Bd,label:"Circle",shortcut:"C"},{type:"text",icon:bd,label:"Text",shortcut:"T"},{type:"blur",icon:Cd,label:"Blur/Redact",shortcut:"B"},{type:"crop",icon:Gu,label:"Crop",shortcut:"X"}],Ej=[{label:"S",value:1,title:"Thin"},{label:"M",value:3,title:"Medium"},{label:"L",value:6,title:"Thick"}],Lj=[{keys:["V"],desc:"Select / move"},{keys:["R"],desc:"Rectangle"},{keys:["A"],desc:"Arrow"},{keys:["F"],desc:"Freehand"},{keys:["L"],desc:"Line"},{keys:["C"],desc:"Circle"},{keys:["T"],desc:"Text"},{keys:["B"],desc:"Blur / redact"},{keys:["X"],desc:"Crop"},{keys:["\u2318","Z"],desc:"Undo"},{keys:["\u2318","\u21E7","Z"],desc:"Redo"},{keys:["\u2318","S"],desc:"Save & close"},{keys:["Esc"],desc:"Cancel"},{keys:["\u2318","+"],desc:"Zoom in"},{keys:["\u2318","-"],desc:"Zoom out"},{keys:["\u2318","0"],desc:"Reset zoom"},{keys:["?"],desc:"Show shortcuts"}];function Qj({activeTool:t,onToolChange:e,activeColor:A,onColorChange:a,activeStrokeWidth:n,onStrokeWidthChange:l,canUndo:i,canRedo:s,onUndo:c,onRedo:d,onClearAll:h,onDone:p,onCancel:m,zoom:B=1,onZoomIn:y,onZoomOut:v,onZoomReset:b,showShortcuts:w,onToggleShortcuts:x,onApplyCrop:S,hasCropSelection:U=!1}){return(0,ge.jsxs)("div",{className:"flex flex-wrap items-center gap-1 px-3 py-2 bg-surface-1 border-b border-border-default relative",children:[(0,ge.jsx)("div",{className:"flex items-center gap-1",children:Uj.map(({type:L,icon:F,label:T,shortcut:M})=>(0,ge.jsx)(Zn,{size:"icon",variant:t===L?"default":"outline",className:"h-8 w-8",onClick:()=>e(L),title:`${T} (${M})`,children:(0,ge.jsx)(F,{className:"h-4 w-4"})},L))}),(0,ge.jsx)("div",{className:"w-px h-6 bg-surface-3 mx-1"}),(0,ge.jsx)("div",{className:"flex items-center gap-1",children:bj.map(({name:L,value:F})=>(0,ge.jsx)("button",{className:sA("h-6 w-6 rounded-full border border-border-default flex-shrink-0",A===F&&"ring-2 ring-white ring-offset-1 ring-offset-surface-1"),style:{backgroundColor:F},onClick:()=>a(F),title:L},L))}),t!=="blur"&&t!=="text"&&t!=="select"&&t!=="crop"&&(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("div",{className:"w-px h-6 bg-surface-3 mx-1"}),(0,ge.jsx)("div",{className:"flex items-center gap-1",children:Ej.map(({label:L,value:F,title:T})=>(0,ge.jsx)("button",{className:sA("h-8 w-8 rounded text-xs font-bold border border-border-default transition-colors",n===F?"bg-accent text-white border-accent":"text-text-secondary hover:text-text-primary hover:bg-surface-2"),onClick:()=>l(F),title:T,children:L},F))})]}),t==="crop"&&(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("div",{className:"w-px h-6 bg-surface-3 mx-1"}),(0,ge.jsxs)(Zn,{variant:"default",className:"h-8 px-3 text-sm",onClick:S,disabled:!U,title:"Apply Crop",children:[(0,ge.jsx)(Gu,{className:"h-4 w-4 mr-1"}),"Apply Crop"]})]}),(0,ge.jsx)("div",{className:"w-px h-6 bg-surface-3 mx-1"}),(0,ge.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ge.jsx)(Zn,{size:"icon",variant:"outline",className:"h-8 w-8",onClick:c,disabled:!i,title:"Undo (Ctrl+Z)",children:(0,ge.jsx)(Ud,{className:"h-4 w-4"})}),(0,ge.jsx)(Zn,{size:"icon",variant:"outline",className:"h-8 w-8",onClick:d,disabled:!s,title:"Redo (Ctrl+Shift+Z)",children:(0,ge.jsx)(wd,{className:"h-4 w-4"})}),(0,ge.jsx)(Zn,{size:"icon",variant:"outline",className:"h-8 w-8",onClick:h,title:"Clear All",children:(0,ge.jsx)(Sd,{className:"h-4 w-4"})})]}),(0,ge.jsx)("div",{className:"w-px h-6 bg-surface-3 mx-1"}),(0,ge.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ge.jsx)(Zn,{size:"icon",variant:"outline",className:"h-8 w-8",onClick:v,title:"Zoom Out (Ctrl+-)",children:(0,ge.jsx)(Ld,{className:"h-4 w-4"})}),(0,ge.jsxs)("button",{className:"h-8 px-2 text-xs text-text-secondary hover:text-text-primary transition-colors rounded",onClick:b,title:"Reset Zoom (Ctrl+0)",children:[Math.round(B*100),"%"]}),(0,ge.jsx)(Zn,{size:"icon",variant:"outline",className:"h-8 w-8",onClick:y,title:"Zoom In (Ctrl+=)",children:(0,ge.jsx)(Ed,{className:"h-4 w-4"})})]}),(0,ge.jsx)("div",{className:"flex-1 min-w-0"}),(0,ge.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ge.jsx)(Zn,{size:"icon",variant:w?"default":"outline",className:"h-8 w-8",onClick:x,title:"Keyboard shortcuts (?)",children:(0,ge.jsx)(bo,{className:"h-4 w-4"})}),(0,ge.jsxs)(Zn,{variant:"outline",className:"h-8 px-3 text-sm",onClick:m,children:[(0,ge.jsx)(Ri,{className:"h-4 w-4 mr-1"}),"Cancel"]}),(0,ge.jsxs)(Zn,{variant:"default",className:"h-8 px-4 text-sm",onClick:p,children:[(0,ge.jsx)(gd,{className:"h-4 w-4 mr-1"}),"Done"]})]}),w&&(0,ge.jsxs)("div",{className:"absolute top-full right-0 z-50 mt-1 w-72 bg-surface-2 border border-border-default rounded-lg shadow-lg p-3",children:[(0,ge.jsx)("p",{className:"text-xs font-semibold text-text-secondary uppercase tracking-wide mb-2",children:"Keyboard Shortcuts"}),(0,ge.jsx)("div",{className:"space-y-1",children:Lj.map(({keys:L,desc:F})=>(0,ge.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ge.jsx)("span",{className:"text-xs text-text-secondary",children:F}),(0,ge.jsx)("div",{className:"flex items-center gap-0.5",children:L.map(T=>(0,ge.jsx)("kbd",{className:"px-1.5 py-0.5 text-xs bg-surface-3 border border-border-default rounded font-mono",children:T},T))})]},F))})]})]})}function B7(t){return{shapes:t?[...t]:[],redoStack:[]}}function C7(t,e){return{shapes:[...t.shapes,e],redoStack:[]}}function Fj(t){if(t.shapes.length===0)return t;let e=t.shapes.slice(0,-1),A=t.shapes[t.shapes.length-1];return{shapes:e,redoStack:[...t.redoStack,A]}}function Tj(t){if(t.redoStack.length===0)return t;let e=t.redoStack.slice(0,-1),A=t.redoStack[t.redoStack.length-1];return{shapes:[...t.shapes,A],redoStack:e}}function y7(t,e,A){let a=[...t.shapes];return a[e]=A,{shapes:a,redoStack:[]}}function Ij(t){return{shapes:[],redoStack:[]}}var Hj=2;function G7({screenshotUrl:t,existingAnnotations:e,onSave:A,onCancel:a}){let n=(0,ce.useRef)(null),l=(0,ce.useRef)(null),[i,s]=(0,ce.useState)(null),[c,d]=(0,ce.useState)({width:800,height:600}),[h,p]=(0,ce.useState)(1),[m,B]=(0,ce.useState)(1),[y,v]=(0,ce.useState)({x:0,y:0}),b=(0,ce.useRef)(!1),w=(0,ce.useRef)({x:0,y:0}),x=(0,ce.useRef)(B7(e)),[S,U]=(0,ce.useState)(x.current.shapes),[L,F]=(0,ce.useState)(e.length>0),[T,M]=(0,ce.useState)(!1),[D,G]=(0,ce.useState)("rect"),[ee,P]=(0,ce.useState)("rgba(239, 68, 68, 0.85)"),[se,le]=(0,ce.useState)(3),[te,q]=(0,ce.useState)(null),[fe,X]=(0,ce.useState)(!1),oe=(0,ce.useRef)(null),ye=(0,ce.useRef)(new Map),he=(0,ce.useRef)(!1),[ze,Dt]=(0,ce.useState)(null),Zt=(0,ce.useRef)([]),LA=(0,ce.useRef)([]),[xA,WA]=(0,ce.useState)(null),Mt=(0,ce.useRef)(null),[Et,gr]=(0,ce.useState)(null),[En,Ln]=(0,ce.useState)(t),ht=(0,ce.useCallback)(()=>{U([...x.current.shapes]),F(x.current.shapes.length>0),M(x.current.redoStack.length>0)},[]);(0,ce.useEffect)(()=>{if(oe.current){if(te===null)oe.current.nodes([]);else{let J=ye.current.get(te);J&&oe.current.nodes([J])}oe.current.getLayer()?.batchDraw()}},[te,S]),(0,ce.useEffect)(()=>{D!=="crop"&&gr(null)},[D]),(0,ce.useEffect)(()=>{let J=new window.Image;J.onload=()=>s(J),J.onerror=()=>console.error("Failed to load screenshot"),J.src=En},[En]);let Jn=(0,ce.useCallback)(()=>{if(!i||!l.current)return;let J=l.current,ie=J.clientWidth,de=J.clientHeight,Se=i.naturalWidth,ot=i.naturalHeight,Ve=Math.min(ie/Se,de/ot);d({width:Math.round(ie),height:Math.round(de)}),p(Ve)},[i]);(0,ce.useEffect)(()=>{Jn()},[Jn]),(0,ce.useEffect)(()=>{if(!l.current)return;let J=new ResizeObserver(()=>Jn());return J.observe(l.current),()=>J.disconnect()},[Jn]),(0,ce.useEffect)(()=>{let J=l.current;if(!J)return;let ie=Se=>{Se.button===0&&(LA.current=[Se.pressure===0?.5:Se.pressure])},de=Se=>{he.current&&(LA.current=[...LA.current,Se.pressure===0?.5:Se.pressure])};return J.addEventListener("pointerdown",ie),J.addEventListener("pointermove",de),()=>{J.removeEventListener("pointerdown",ie),J.removeEventListener("pointermove",de)}},[]);let vt=h*m,uA=i?{x:(c.width-i.naturalWidth*vt)/2+y.x,y:(c.height-i.naturalHeight*vt)/2+y.y}:{x:0,y:0},Wn=(0,ce.useCallback)(J=>{let ie=J.getPointerPosition();return ie?{x:(ie.x-uA.x)/vt,y:(ie.y-uA.y)/vt}:null},[vt,uA]),ac=(0,ce.useCallback)(J=>{J.evt.preventDefault();let ie=J.target.getStage();if(ie)if(J.evt.ctrlKey||J.evt.metaKey){let de=ie.getPointerPosition();if(!de)return;let Se=1.08,ot=J.evt.deltaY<0?1:-1,Ve=Math.min(5,Math.max(.1,ot>0?m*Se:m/Se)),Lt=h*m,Ua=h*Ve,Al=(c.width-(i?.naturalWidth??0)*Lt)/2,Ji=(c.height-(i?.naturalHeight??0)*Lt)/2,uh=(de.x-Al-y.x)/Lt,ch=(de.y-Ji-y.y)/Lt,Ll=(c.width-(i?.naturalWidth??0)*Ua)/2,fh=(c.height-(i?.naturalHeight??0)*Ua)/2;v({x:de.x-Ll-uh*Ua,y:de.y-fh-ch*Ua}),B(Ve)}else v(de=>({x:de.x-J.evt.deltaX,y:de.y-J.evt.deltaY}))},[m,y,h,i,c]),$n=(0,ce.useCallback)(()=>{B(J=>Math.min(5,J*1.25))},[]),Br=(0,ce.useCallback)(()=>{B(J=>Math.max(.1,J/1.25))},[]),Qn=(0,ce.useCallback)(()=>{B(1),v({x:0,y:0})},[]),cA=(0,ce.useCallback)(J=>{if(J.evt.button===1){b.current=!0,w.current={x:J.evt.clientX,y:J.evt.clientY},J.evt.preventDefault();return}if(D==="select"||D==="text")return;let ie=J.target.getStage();if(!ie)return;let de=Wn(ie);de&&(he.current=!0,Zt.current=[[de.x,de.y]])},[D,Wn]),Zi=(0,ce.useCallback)(J=>{if(b.current){let Se=J.evt.clientX-w.current.x,ot=J.evt.clientY-w.current.y;w.current={x:J.evt.clientX,y:J.evt.clientY},v(Ve=>({x:Ve.x+Se,y:Ve.y+ot}));return}if(!he.current)return;let ie=J.target.getStage();if(!ie)return;let de=Wn(ie);if(de){if(D==="crop"){let[Se]=Zt.current,ot=[de.x,de.y],Ve=Math.min(Se[0],ot[0]),Lt=Math.min(Se[1],ot[1]),Ua=Math.abs(ot[0]-Se[0]),Al=Math.abs(ot[1]-Se[1]);gr({x:Ve,y:Lt,width:Ua,height:Al});return}if(D==="freehand"){let Se=Zt.current[Zt.current.length-1],ot=de.x-Se[0],Ve=de.y-Se[1];if(Math.sqrt(ot*ot+Ve*Ve)<Hj)return;Zt.current=[...Zt.current,[de.x,de.y]]}else Zt.current=[Zt.current[0],[de.x,de.y]];Dt({type:D,points:[...Zt.current],color:ee,strokeWidth:se,...D==="freehand"&&LA.current.length>0?{pressure:[...LA.current]}:{}})}},[D,ee,se,Wn]),nc=(0,ce.useCallback)(()=>{if(b.current){b.current=!1;return}if(!he.current)return;if(he.current=!1,D==="crop"){Zt.current=[];return}if(Zt.current.length<2){Dt(null);return}let J={type:D,points:Zt.current,color:ee,strokeWidth:D==="blur"?0:se,...D==="freehand"&&LA.current.length>0?{pressure:[...LA.current]}:{}};x.current=C7(x.current,J);let ie=x.current.shapes.length-1;G("select"),q(ie),Zt.current=[],LA.current=[],Dt(null),ht()},[D,ee,se,ht]),lc=(0,ce.useCallback)(J=>{if(D==="select"){let Ve=J.target.getStage(),Lt=Ve?.getLayers()[0];if(J.target===Ve||J.target.getLayer()===Lt){q(null);return}}if(D!=="text")return;let ie=J.target.getStage();if(!ie)return;let de=Wn(ie);if(!de)return;let Se={type:"text",points:[[de.x,de.y]],color:ee,strokeWidth:0,text:"",fontSize:64};x.current=C7(x.current,Se);let ot=x.current.shapes.length-1;WA({index:ot,shape:{...Se,text:""}}),setTimeout(()=>{if(Mt.current){Mt.current.focus();let Ve=Mt.current.value.length;Mt.current.setSelectionRange(Ve,Ve)}},0),ht()},[D,ee,ht,Wn]),Mo=(0,ce.useCallback)((J,ie)=>{WA({index:J,shape:ie}),setTimeout(()=>{if(Mt.current){Mt.current.focus();let de=Mt.current.value.length;Mt.current.setSelectionRange(de,de)}},0)},[]),_o=(0,ce.useCallback)(J=>{if(!xA)return;let ie=xA.index,de={...xA.shape,text:J||"Label"};x.current=y7(x.current,ie,de),WA(null),G("select"),q(ie),ht()},[xA,ht]),la=(0,ce.useCallback)(()=>{x.current=Fj(x.current),q(null),ht()},[ht]),el=(0,ce.useCallback)(()=>{x.current=Tj(x.current),ht()},[ht]),ih=(0,ce.useCallback)(()=>{x.current=Ij(x.current),q(null),ht()},[ht]),sh=(0,ce.useCallback)(()=>{if(!i||!Et||Et.width<1||Et.height<1)return;let J=Math.max(0,Math.round(Et.x)),ie=Math.max(0,Math.round(Et.y)),de=Math.min(i.naturalWidth-J,Math.round(Et.width)),Se=Math.min(i.naturalHeight-ie,Math.round(Et.height));if(de<1||Se<1)return;let ot=document.createElement("canvas");ot.width=de,ot.height=Se;let Ve=ot.getContext("2d");if(!Ve)return;Ve.drawImage(i,J,ie,de,Se,0,0,de,Se);let Lt=ot.toDataURL("image/png");x.current=B7([]),ht(),gr(null),G("select"),q(null),Ln(Lt)},[i,Et,ht]),tl=(0,ce.useCallback)((J,ie)=>{x.current=y7(x.current,J,ie),ht()},[ht]),Oo=(0,ce.useCallback)(()=>{if(!i)return;let J=new jg.Stage({container:document.createElement("div"),width:i.naturalWidth,height:i.naturalHeight}),ie=new jg.Layer;ie.add(new jg.Image({image:i,width:i.naturalWidth,height:i.naturalHeight})),J.add(ie);let de=n.current;if(de){let ot=de.getLayers()[1];if(ot){x.current.shapes.forEach((Lt,Ua)=>{if(Lt.type!=="text")return;let Al=ye.current.get(Ua);Al&&(Al.text(Lt.text||"Label"),Al.visible(!0))});let Ve=ot.clone();Ve.scaleX(1),Ve.scaleY(1),Ve.x(0),Ve.y(0),Ve.find("Transformer").forEach(Lt=>Lt.destroy()),Ve.find(".crop-ui").forEach(Lt=>Lt.destroy()),J.add(Ve)}}J.draw();let Se=J.toDataURL({pixelRatio:2});J.destroy(),A(x.current.shapes,Se)},[A,i]);return(0,ce.useEffect)(()=>{let J=ie=>{let de=ie.target;if(de.tagName==="TEXTAREA"||de.tagName==="INPUT"||de.isContentEditable)return;let Se=ie.metaKey||ie.ctrlKey;if(Se&&ie.shiftKey&&ie.key==="z"){ie.preventDefault(),el();return}if(Se&&ie.key==="z"){ie.preventDefault(),la();return}if(Se&&ie.key==="Enter"){ie.preventDefault(),Oo();return}if(Se&&ie.key==="s"){ie.preventDefault(),Oo();return}if(ie.key==="Escape"){ie.preventDefault(),a();return}if(Se&&(ie.key==="="||ie.key==="+")){ie.preventDefault(),$n();return}if(Se&&ie.key==="-"){ie.preventDefault(),Br();return}if(Se&&ie.key==="0"){ie.preventDefault(),Qn();return}let Ve={v:"select",r:"rect",a:"arrow",f:"freehand",l:"line",c:"circle",t:"text",b:"blur",x:"crop"}[ie.key.toLowerCase()];if(Ve&&!Se){G(Ve);return}ie.key==="?"&&X(Lt=>!Lt)};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[la,el,Oo,$n,Br,Qn,a]),(0,yA.jsxs)("div",{className:"flex flex-col h-full",children:[(0,yA.jsx)(Qj,{activeTool:D,onToolChange:G,activeColor:ee,onColorChange:P,activeStrokeWidth:se,onStrokeWidthChange:le,canUndo:L,canRedo:T,onUndo:la,onRedo:el,onClearAll:ih,onDone:Oo,onCancel:a,zoom:m,onZoomIn:$n,onZoomOut:Br,onZoomReset:Qn,showShortcuts:fe,onToggleShortcuts:()=>X(J=>!J),onApplyCrop:sh,hasCropSelection:!!Et&&Et.width>0&&Et.height>0}),(0,yA.jsxs)("div",{ref:l,className:"flex-1 overflow-hidden bg-surface-1 relative p-4",children:[(0,yA.jsxs)(g7,{ref:n,width:c.width,height:c.height,onMouseDown:cA,onMouseMove:Zi,onMouseUp:nc,onMouseLeave:nc,onClick:lc,onWheel:ac,style:{cursor:D==="text"?"text":D==="select"?"default":"crosshair"},children:[(0,yA.jsx)(Yx,{scaleX:vt,scaleY:vt,x:uA.x,y:uA.y,children:i&&(0,yA.jsx)(d7,{image:i,width:i.naturalWidth,height:i.naturalHeight})}),(0,yA.jsxs)(Yx,{scaleX:vt,scaleY:vt,x:uA.x,y:uA.y,children:[(0,yA.jsx)(Sj,{shapes:S,activeShape:ze,selectedShapeIndex:te,onSelect:J=>q(J),onShapeChange:tl,shapeRefsMap:ye,isSelectActive:D==="select"}),(0,yA.jsx)(gj,{shapes:S,activeShape:ze,selectedShapeIndex:te,onSelect:J=>q(J),onShapeChange:tl,shapeRefsMap:ye,isSelectActive:D==="select"}),(0,yA.jsx)(Bj,{shapes:S,activeShape:ze,selectedShapeIndex:te,onSelect:J=>q(J),onShapeChange:tl,shapeRefsMap:ye,isSelectActive:D==="select"}),(0,yA.jsx)(yj,{shapes:S,activeShape:ze,selectedShapeIndex:te,onSelect:J=>q(J),onShapeChange:tl,shapeRefsMap:ye,isSelectActive:D==="select"}),(0,yA.jsx)(xj,{shapes:S,activeShape:ze,selectedShapeIndex:te,onSelect:J=>q(J),onShapeChange:tl,shapeRefsMap:ye,isSelectActive:D==="select"}),(0,yA.jsx)(wj,{shapes:S,activeShape:ze,selectedShapeIndex:te,onSelect:J=>q(J),onShapeChange:tl,shapeRefsMap:ye,isSelectActive:D==="select"}),(0,yA.jsx)(vj,{shapes:S,onDblClick:Mo,selectedShapeIndex:te,onSelect:J=>q(J),onShapeChange:tl,shapeRefsMap:ye,isSelectActive:D==="select",editingIndex:xA?.index??null}),(0,yA.jsx)(m7,{ref:oe,rotateEnabled:!1,boundBoxFunc:(J,ie)=>Math.abs(ie.width)<5||Math.abs(ie.height)<5?J:ie}),D==="crop"&&Et&&Et.width>0&&Et.height>0&&(0,yA.jsx)(Ro,{name:"crop-ui",x:Et.x,y:Et.y,width:Et.width,height:Et.height,stroke:"rgba(255,255,255,0.9)",strokeWidth:1.5/vt,dash:[6/vt,3/vt],fill:"rgba(0,0,0,0.25)",listening:!1})]})]}),xA&&xA.shape.points.length>0&&(0,yA.jsx)("textarea",{ref:Mt,defaultValue:xA.shape.text||"",className:"absolute bg-transparent border-none outline-none resize-none p-0 m-0",style:{left:`${xA.shape.points[0][0]*vt+uA.x+16}px`,top:`${xA.shape.points[0][1]*vt+uA.y+16}px`,fontSize:`${(xA.shape.fontSize||16)*vt}px`,fontFamily:"Inter, sans-serif",fontWeight:"bold",color:xA.shape.color,minWidth:"50px",minHeight:"24px"},onBlur:J=>_o(J.target.value),onKeyDown:J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),_o(J.target.value)),J.key==="Escape"&&WA(null)}})]})]})}var Rj=`
|
|
202
|
+
/* \u2500\u2500 Design tokens \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
203
|
+
.loupe-annotation-wrap {
|
|
204
|
+
--color-surface-0: #09090b;
|
|
205
|
+
--color-surface-1: #121215;
|
|
206
|
+
--color-surface-2: #1a1a1f;
|
|
207
|
+
--color-surface-3: #222228;
|
|
208
|
+
--color-text-primary: #fafafa;
|
|
209
|
+
--color-text-secondary: #a1a1aa;
|
|
210
|
+
--color-border-default: #27272a;
|
|
211
|
+
--color-accent: #34d399;
|
|
212
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
213
|
+
font-size: 14px;
|
|
214
|
+
color: var(--color-text-primary);
|
|
215
|
+
box-sizing: border-box;
|
|
216
|
+
}
|
|
217
|
+
.loupe-annotation-wrap *, .loupe-annotation-wrap *::before, .loupe-annotation-wrap *::after {
|
|
218
|
+
box-sizing: border-box;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* \u2500\u2500 Layout \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
222
|
+
.flex { display: flex; }
|
|
223
|
+
.flex-col { flex-direction: column; }
|
|
224
|
+
.flex-wrap { flex-wrap: wrap; }
|
|
225
|
+
.flex-1 { flex: 1 1 0%; }
|
|
226
|
+
.flex-shrink-0 { flex-shrink: 0; }
|
|
227
|
+
.items-center { align-items: center; }
|
|
228
|
+
.justify-between { justify-content: space-between; }
|
|
229
|
+
.gap-1 { gap: 4px; }
|
|
230
|
+
.gap-0\\.5 { gap: 2px; }
|
|
231
|
+
.space-y-1 > * + * { margin-top: 4px; }
|
|
232
|
+
.min-w-0 { min-width: 0; }
|
|
233
|
+
|
|
234
|
+
/* \u2500\u2500 Sizing \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
235
|
+
.h-full { height: 100%; }
|
|
236
|
+
.h-4 { height: 16px; }
|
|
237
|
+
.h-6 { height: 24px; }
|
|
238
|
+
.h-8 { height: 32px; }
|
|
239
|
+
.w-4 { width: 16px; }
|
|
240
|
+
.w-6 { width: 24px; }
|
|
241
|
+
.w-8 { width: 32px; }
|
|
242
|
+
.w-px { width: 1px; }
|
|
243
|
+
.w-72 { width: 288px; }
|
|
244
|
+
|
|
245
|
+
/* \u2500\u2500 Spacing \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
246
|
+
.p-0 { padding: 0; }
|
|
247
|
+
.p-3 { padding: 12px; }
|
|
248
|
+
.p-4 { padding: 16px; }
|
|
249
|
+
.px-1\\.5 { padding-left: 6px; padding-right: 6px; }
|
|
250
|
+
.px-2 { padding-left: 8px; padding-right: 8px; }
|
|
251
|
+
.px-3 { padding-left: 12px; padding-right: 12px; }
|
|
252
|
+
.px-4 { padding-left: 16px; padding-right: 16px; }
|
|
253
|
+
.py-0\\.5 { padding-top: 2px; padding-bottom: 2px; }
|
|
254
|
+
.py-2 { padding-top: 8px; padding-bottom: 8px; }
|
|
255
|
+
.m-0 { margin: 0; }
|
|
256
|
+
.mx-1 { margin-left: 4px; margin-right: 4px; }
|
|
257
|
+
.mr-1 { margin-right: 4px; }
|
|
258
|
+
.mt-1 { margin-top: 4px; }
|
|
259
|
+
.mb-2 { margin-bottom: 8px; }
|
|
260
|
+
|
|
261
|
+
/* \u2500\u2500 Position \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
262
|
+
.relative { position: relative; }
|
|
263
|
+
.absolute { position: absolute; }
|
|
264
|
+
.right-0 { right: 0; }
|
|
265
|
+
.top-full { top: 100%; }
|
|
266
|
+
.z-50 { z-index: 50; }
|
|
267
|
+
.overflow-hidden { overflow: hidden; }
|
|
268
|
+
|
|
269
|
+
/* \u2500\u2500 Colours \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
270
|
+
.bg-surface-1 { background-color: var(--color-surface-1); }
|
|
271
|
+
.bg-surface-2 { background-color: var(--color-surface-2); }
|
|
272
|
+
.bg-surface-3 { background-color: var(--color-surface-3); }
|
|
273
|
+
.bg-transparent { background-color: transparent; }
|
|
274
|
+
.bg-accent { background-color: var(--color-accent); }
|
|
275
|
+
.text-text-primary { color: var(--color-text-primary); }
|
|
276
|
+
.text-text-secondary { color: var(--color-text-secondary); }
|
|
277
|
+
.text-white { color: #fff; }
|
|
278
|
+
|
|
279
|
+
/* \u2500\u2500 Borders \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
280
|
+
.border { border-width: 1px; border-style: solid; }
|
|
281
|
+
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
|
|
282
|
+
.border-none { border: none; }
|
|
283
|
+
.border-border-default { border-color: var(--color-border-default); }
|
|
284
|
+
.border-accent { border-color: var(--color-accent); }
|
|
285
|
+
.rounded { border-radius: 4px; }
|
|
286
|
+
.rounded-full { border-radius: 9999px; }
|
|
287
|
+
.rounded-lg { border-radius: 8px; }
|
|
288
|
+
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.2); }
|
|
289
|
+
|
|
290
|
+
/* \u2500\u2500 Typography \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
291
|
+
.text-xs { font-size: 12px; line-height: 16px; }
|
|
292
|
+
.text-sm { font-size: 14px; line-height: 20px; }
|
|
293
|
+
.font-mono { font-family: ui-monospace, monospace; }
|
|
294
|
+
.font-semibold { font-weight: 600; }
|
|
295
|
+
.font-bold { font-weight: 700; }
|
|
296
|
+
.uppercase { text-transform: uppercase; }
|
|
297
|
+
.tracking-wide { letter-spacing: 0.025em; }
|
|
298
|
+
.outline-none { outline: none; }
|
|
299
|
+
.resize-none { resize: none; }
|
|
300
|
+
.transition-colors { transition: color 150ms, background-color 150ms, border-color 150ms; }
|
|
301
|
+
|
|
302
|
+
/* \u2500\u2500 Hover states \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
303
|
+
.hover\\:text-text-primary:hover { color: var(--color-text-primary); }
|
|
304
|
+
.hover\\:bg-surface-2:hover { background-color: var(--color-surface-2); }
|
|
305
|
+
|
|
306
|
+
/* \u2500\u2500 Ring (active color swatch outline) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
307
|
+
.ring-2.ring-white.ring-offset-1 {
|
|
308
|
+
box-shadow: 0 0 0 1px var(--color-surface-1), 0 0 0 3px #fff;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/* \u2500\u2500 Button base reset (so host-page styles don't bleed) \u2500\u2500\u2500 */
|
|
312
|
+
.loupe-annotation-wrap button {
|
|
313
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
314
|
+
cursor: pointer; border: 1px solid var(--color-border-default);
|
|
315
|
+
background: var(--color-surface-2); color: var(--color-text-primary);
|
|
316
|
+
font-family: inherit; font-size: 14px; line-height: 1;
|
|
317
|
+
}
|
|
318
|
+
.loupe-annotation-wrap button:hover {
|
|
319
|
+
background: var(--color-surface-3);
|
|
320
|
+
}
|
|
321
|
+
`;function V7(t,e,A){let a=document.createElement("style");a.textContent=Rj,t.appendChild(a);let n=document.createElement("div");n.className="loupe-annotation-wrap",n.style.cssText="position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,0.85);display:flex;flex-direction:column;",t.appendChild(n);let l=(0,z7.createRoot)(n);function i(){l.unmount(),n.remove(),a.remove()}l.render(K7.default.createElement(G7,{screenshotUrl:e,existingAnnotations:[],onSave:(s,c)=>{i(),A.onSave(s,c)},onCancel:()=>{i(),A.onCancel()}}))}var oh=class{constructor(e){this.hostEl=null;this.shadow=null;this.config={apiKey:e.apiKey,edgeFunctionUrl:e.edgeFunctionUrl??"https://etdekhjnkevmrkgqixow.supabase.co/functions/v1/submit-sdk-feedback",position:e.position??"bottom-right",color:e.color??"#10b981",buttonLabel:e.buttonLabel??"Feedback"}}mount(e){this.hostEl=document.createElement("div"),this.hostEl.id="loupe-widget-host",this.shadow=this.hostEl.attachShadow({mode:"open"});let A=document.createElement("style");A.textContent=MS,this.shadow.appendChild(A);let a=document.createElement("button");a.className=`loupe-btn ${this.config.position}`,a.textContent=this.config.buttonLabel,this.config.color&&(a.style.backgroundColor=this.config.color);let n=document.createElement("div");n.className="loupe-modal",n.setAttribute("data-loupe-modal",""),n.setAttribute("aria-modal","true"),n.setAttribute("role","dialog");let l=document.createElement("textarea");l.placeholder="Describe the issue...",l.rows=4;let i=document.createElement("select"),s=["critical","major","minor","suggestion"];for(let p of s){let m=document.createElement("option");m.value=p,m.textContent=p.charAt(0).toUpperCase()+p.slice(1),i.appendChild(m)}let c=document.createElement("div");c.className="loupe-modal-actions";let d=document.createElement("button");d.className="loupe-modal-submit",d.textContent="Send Feedback";let h=document.createElement("button");h.className="loupe-modal-cancel",h.textContent="Cancel",c.appendChild(h),c.appendChild(d),n.appendChild(l),n.appendChild(i),n.appendChild(c),this.shadow.appendChild(a),this.shadow.appendChild(n),e.appendChild(this.hostEl),a.addEventListener("click",()=>{n.classList.toggle("modal--visible")}),h.addEventListener("click",()=>{n.classList.remove("modal--visible")}),d.addEventListener("click",async()=>{let p=l.value.trim(),m=i.value,B=d.textContent;d.textContent="Capturing...",d.setAttribute("disabled","");try{let y=await d0(this.hostEl).catch(()=>null);n.classList.remove("modal--visible"),V7(this.shadow,y??"",{onSave:async(v,b)=>{let w=h0();try{await p0({apiKey:this.config.apiKey,edgeFunctionUrl:this.config.edgeFunctionUrl,comment:p,severity:m,screenshotDataUrl:b,context:w}),l.value=""}catch{alert("Failed to send feedback. Please try again.")}finally{d.textContent=B,d.removeAttribute("disabled")}},onCancel:()=>{n.classList.add("modal--visible"),d.textContent=B,d.removeAttribute("disabled")}})}catch{alert("Failed to capture screenshot. Please try again."),d.textContent=B,d.removeAttribute("disabled")}})}destroy(){this.hostEl?.remove(),this.hostEl=null,this.shadow=null}};var Jg=null;function Dj(t){Jg=new oh(t),Jg.mount(document.body)}function Mj(){Jg?.destroy(),Jg=null}return cH(_j);})();
|
|
322
|
+
/*! Bundled license information:
|
|
323
|
+
|
|
324
|
+
react/cjs/react.production.js:
|
|
325
|
+
(**
|
|
326
|
+
* @license React
|
|
327
|
+
* react.production.js
|
|
328
|
+
*
|
|
329
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
330
|
+
*
|
|
331
|
+
* This source code is licensed under the MIT license found in the
|
|
332
|
+
* LICENSE file in the root directory of this source tree.
|
|
333
|
+
*)
|
|
334
|
+
|
|
335
|
+
scheduler/cjs/scheduler.production.js:
|
|
336
|
+
(**
|
|
337
|
+
* @license React
|
|
338
|
+
* scheduler.production.js
|
|
339
|
+
*
|
|
340
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the MIT license found in the
|
|
343
|
+
* LICENSE file in the root directory of this source tree.
|
|
344
|
+
*)
|
|
345
|
+
|
|
346
|
+
react-dom/cjs/react-dom.production.js:
|
|
347
|
+
(**
|
|
348
|
+
* @license React
|
|
349
|
+
* react-dom.production.js
|
|
350
|
+
*
|
|
351
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
352
|
+
*
|
|
353
|
+
* This source code is licensed under the MIT license found in the
|
|
354
|
+
* LICENSE file in the root directory of this source tree.
|
|
355
|
+
*)
|
|
356
|
+
|
|
357
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
358
|
+
(**
|
|
359
|
+
* @license React
|
|
360
|
+
* react-dom-client.production.js
|
|
361
|
+
*
|
|
362
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
363
|
+
*
|
|
364
|
+
* This source code is licensed under the MIT license found in the
|
|
365
|
+
* LICENSE file in the root directory of this source tree.
|
|
366
|
+
*)
|
|
367
|
+
|
|
368
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
369
|
+
(**
|
|
370
|
+
* @license React
|
|
371
|
+
* react-jsx-runtime.production.js
|
|
372
|
+
*
|
|
373
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
374
|
+
*
|
|
375
|
+
* This source code is licensed under the MIT license found in the
|
|
376
|
+
* LICENSE file in the root directory of this source tree.
|
|
377
|
+
*)
|
|
378
|
+
|
|
379
|
+
react-reconciler/cjs/react-reconciler.production.js:
|
|
380
|
+
(**
|
|
381
|
+
* @license React
|
|
382
|
+
* react-reconciler.production.js
|
|
383
|
+
*
|
|
384
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
385
|
+
*
|
|
386
|
+
* This source code is licensed under the MIT license found in the
|
|
387
|
+
* LICENSE file in the root directory of this source tree.
|
|
388
|
+
*)
|
|
389
|
+
|
|
390
|
+
react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
391
|
+
(**
|
|
392
|
+
* @license React
|
|
393
|
+
* react-reconciler-constants.production.js
|
|
394
|
+
*
|
|
395
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
396
|
+
*
|
|
397
|
+
* This source code is licensed under the MIT license found in the
|
|
398
|
+
* LICENSE file in the root directory of this source tree.
|
|
399
|
+
*)
|
|
400
|
+
|
|
401
|
+
html2canvas-pro/dist/html2canvas-pro.esm.js:
|
|
402
|
+
(*!
|
|
403
|
+
* html2canvas-pro 1.6.7 <https://yorickshan.github.io/html2canvas-pro/>
|
|
404
|
+
* Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
|
|
405
|
+
* Released under MIT License
|
|
406
|
+
*)
|
|
407
|
+
|
|
408
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
409
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
410
|
+
lucide-react/dist/esm/Icon.js:
|
|
411
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
412
|
+
lucide-react/dist/esm/icons/arrow-up-right.js:
|
|
413
|
+
lucide-react/dist/esm/icons/check.js:
|
|
414
|
+
lucide-react/dist/esm/icons/circle-help.js:
|
|
415
|
+
lucide-react/dist/esm/icons/circle.js:
|
|
416
|
+
lucide-react/dist/esm/icons/crop.js:
|
|
417
|
+
lucide-react/dist/esm/icons/eye-off.js:
|
|
418
|
+
lucide-react/dist/esm/icons/minus.js:
|
|
419
|
+
lucide-react/dist/esm/icons/mouse-pointer-2.js:
|
|
420
|
+
lucide-react/dist/esm/icons/pen.js:
|
|
421
|
+
lucide-react/dist/esm/icons/redo-2.js:
|
|
422
|
+
lucide-react/dist/esm/icons/square.js:
|
|
423
|
+
lucide-react/dist/esm/icons/trash-2.js:
|
|
424
|
+
lucide-react/dist/esm/icons/type.js:
|
|
425
|
+
lucide-react/dist/esm/icons/undo-2.js:
|
|
426
|
+
lucide-react/dist/esm/icons/x.js:
|
|
427
|
+
lucide-react/dist/esm/icons/zoom-in.js:
|
|
428
|
+
lucide-react/dist/esm/icons/zoom-out.js:
|
|
429
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
430
|
+
(**
|
|
431
|
+
* @license lucide-react v0.400.0 - ISC
|
|
432
|
+
*
|
|
433
|
+
* This source code is licensed under the ISC license.
|
|
434
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
435
|
+
*)
|
|
436
|
+
*/
|
|
437
|
+
//# sourceMappingURL=index.global.js.map
|