PageSourceSearch

https://cloud.schulverwalter.de/apps/viewer/js/index-BV---otF.chunk.mjs

js schulverwalter.de collected 2026-09-24 13:25:57 UTC 1,161,825 bytes, 265 lines download raw bytes

1import{T as Vc,S as o9,aa as Cl}from"./previewUtils-Dqoyaeqv.chunk.mjs";function Pa(t){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(t)}function Jx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tC(t,e){if(Pa(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Pa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function s9(t){var e=tC(t,"string");return Pa(e)=="symbol"?e:e+""}function eC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s9(r.key),r)}}function nC(t,e,n){return e&&eC(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function V(t,e,n){return(e=s9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w5={exports:{}},Ye={},x5;function rC(){if(x5)return Ye;x5=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.iterator;function C(X){return X===null||typeof X!="object"?null:(X=x&&X[x]||X["@@iterator"],typeof X=="function"?X:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,w={};function E(X,q,rt){this.props=X,this.context=q,this.refs=w,this.updater=rt||y}E.prototype.isReactComponent={},E.prototype.setState=function(X,q){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,q,"setState")},E.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function M(){}M.prototype=E.prototype;function b(X,q,rt){this.props=X,this.context=q,this.refs=w,this.updater=rt||y}var m=b.prototype=new M;m.constructor=b,h(m,E.prototype),m.isPureReactComponent=!0;var _=Array.isArray,k=Object.prototype.hasOwnProperty,R={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function T(X,q,rt){var ot,ft={},it=null,Y=null;if(q!=null)for(ot in q.ref!==void 0&&(Y=q.ref),q.key!==void 0&&(it=""+q.key),q)k.call(q,ot)&&!G.hasOwnProperty(ot)&&(ft[ot]=q[ot]);var J=arguments.length-2;if(J===1)ft.children=rt;else if(1<J){for(var lt=Array(J),dt=0;dt<J;dt++)lt[dt]=arguments[dt+2];ft.children=lt}if(X&&X.defaultProps)for(ot in J=X.defaultProps,J)ft[ot]===void 0&&(ft[ot]=J[ot]);return{$$typeof:t,type:X,key:it,ref:Y,props:ft,_owner:R.current}}function D(X,q){return{$$typeof:t,type:X.type,key:q,ref:X.ref,props:X.props,_owner:X._owner}}
vendor: 33,796 bytes, lines 1-5
1function A(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function B(X){var q={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(rt){return q[rt]})}var Z=/\/+/g;function S(X,q){return typeof X=="object"&&X!==null&&X.key!=null?B(""+X.key):q.toString(36)}function I(X,q,rt,ot,ft){var it=typeof X;(it==="undefined"||it==="boolean")&&(X=null);var Y=!1;if(X===null)Y=!0;else switch(it){case"string":case"number":Y=!0;break;case"object":switch(X.$$typeof){case t:case e:Y=!0}}if(Y)return Y=X,ft=ft(Y),X=ot===""?"."+S(Y,0):ot,_(ft)?(rt="",X!=null&&(rt=X.replace(Z,"$&/")+"/"),I(ft,q,rt,"",function(dt){return dt})):ft!=null&&(A(ft)&&(ft=D(ft,rt+(!ft.key||Y&&Y.key===ft.key?"":(""+ft.key).replace(Z,"$&/")+"/")+X)),q.push(ft)),1;if(Y=0,ot=ot===""?".":ot+":",_(X))for(var J=0;J<X.length;J++){it=X[J];var lt=ot+S(it,J);Y+=I(it,q,rt,lt,ft)}else if(lt=C(X),typeof lt=="function")for(X=lt.call(X),J=0;!(it=X.next()).done;)it=it.value,lt=ot+S(it,J++),Y+=I(it,q,rt,lt,ft);else if(it==="object")throw q=String(X),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return Y}function N(X,q,rt){if(X==null)return X;var ot=[],ft=0;return I(X,ot,"","",function(it){return q.call(rt,it,ft++)}),ot}function z(X){if(X._status===-1){var q=X._result;q=q(),q.then(function(rt){(X._status===0||X._status===-1)&&(X._status=1,X._result=rt)},function(rt){(X._status===0||X._status===-1)&&(X._status=2,X._result=rt)}),X._status===-1&&(X._status=0,X._result=q)}if(X._status===1)return X._result.default;throw X._result}var W={current:null},Q={transition:null},tt={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:Q,ReactCurrentOwner:R};function at(){throw Error("act(...) is not supported in production builds of React.")}return Ye.Children={map:N,forEach:function(X,q,rt){N(X,function(){q.apply(this,arguments)},rt)},count:function(X){var q=0;return N(X,function(){q++}),q},toArray:function(X){return N(X,function(q){return q})||[]},only:function(X){if(!A(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},Ye.Component=E,Ye.Fragment=n,Ye.Profiler=s,Ye.PureComponent=b,Ye.StrictMode=r,Ye.Suspense=f,Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tt,Ye.act=at,Ye.cloneElement=function(X,q,rt){if(X==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+X+".");var ot=h({},X.props),ft=X.key,it=X.ref,Y=X._owner;if(q!=null){if(q.ref!==void 0&&(it=q.ref,Y=R.current),q.key!==void 0&&(ft=""+q.key),X.type&&X.type.defaultProps)var J=X.type.defaultProps;for(lt in q)k.call(q,lt)&&!G.hasOwnProperty(lt)&&(ot[lt]=q[lt]===void 0&&J!==void 0?J[lt]:q[lt])}var lt=arguments.length-2;if(lt===1)ot.children=rt;else if(1<lt){J=Array(lt);for(var dt=0;dt<lt;dt++)J[dt]=arguments[dt+2];ot.children=J}return{$$typeof:t,type:X.type,key:ft,ref:it,props:ot,_owner:Y}},Ye.createContext=function(X){return X={$$typeof:c,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},X.Provider={$$typeof:o,_context:X},X.Consumer=X},Ye.createElement=T,Ye.createFactory=function(X){var q=T.bind(null,X);return q.type=X,q},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(X){return{$$typeof:d,render:X}},Ye.isValidElement=A,Ye.lazy=function(X){return{$$typeof:v,_payload:{_status:-1,_result:X},_init:z}},Ye.memo=function(X,q){return{$$typeof:g,type:X,compare:q===void 0?null:q}},Ye.startTransition=function(X){var q=Q.transition;Q.transition={};try{X()}finally{Q.transition=q}},Ye.unstable_act=at,Ye.useCallback=function(X,q){return W.current.useCallback(X,q)},Ye.useContext=function(X){return W.current.useContext(X)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(X){return W.current.useDeferredValue(X)},Ye.useEffect=function(X,q){return W.current.useEffect(X,q)},Ye.useId=function(){return W.current.useId()},Ye.useImperativeHandle=function(X,q,rt){return W.current.useImperativeHandle(X,q,rt)},Ye.useInsertionEffect=function(X,q){return W.current.useInsertionEffect(X,q)},Ye.useLayoutEffect=function(X,q){return W.current.useLayoutEffect(X,q)},Ye.useMemo=function(X,q){return W.current.useMemo(X,q)},Ye.useReducer=function(X,q,rt){return W.current.useReducer(X,q,rt)},Ye.useRef=function(X){return W.current.useRef(X)},Ye.useState=function(X){return W.current.useState(X)},Ye.useSyncExternalStore=function(X,q,rt){return W.current.useSyncExternalStore(X,q,rt)},Ye.useTransition=function(){return W.current.useTransition()},Ye.version="18.3.1",Ye}var C5;function tm(){return C5||(C5=1,w5.exports=rC()),w5.exports}var ct=tm();const L=Vc(ct);var Cf={},k2={exports:{}},za={},S5={exports:{}},_5={},E5;function aC(){return E5||(E5=1,(function(t){function e(Q,tt){var at=Q.length;Q.push(tt);t:for(;0<at;){var X=at-1>>>1,q=Q[X];if(0<s(q,tt))Q[X]=tt,Q[at]=q,at=X;else break t}}function n(Q){return Q.length===0?null:Q[0]}function r(Q){if(Q.length===0)return null;var tt=Q[0],at=Q.pop();if(at!==tt){Q[0]=at;t:for(var X=0,q=Q.length,rt=q>>>1;X<rt;){var ot=2*(X+1)-1,ft=Q[ot],it=ot+1,Y=Q[it];if(0>s(ft,at))it<q&&0>s(Y,ft)?(Q[X]=Y,Q[it]=at,X=it):(Q[X]=ft,Q[ot]=at,X=ot);else if(it<q&&0>s(Y,at))Q[X]=Y,Q[it]=at,X=it;else break t}}return tt}function s(Q,tt){var at=Q.sortIndex-tt.sortIndex;return at!==0?at:Q.id-tt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var f=[],g=[],v=1,x=null,C=3,y=!1,h=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(Q){for(var tt=n(g);tt!==null;){if(tt.callback===null)r(g);else if(tt.startTime<=Q)r(g),tt.sortIndex=tt.expirationTime,e(f,tt);else break;tt=n(g)}}function _(Q){if(w=!1,m(Q),!h)if(n(f)!==null)h=!0,z(k);else{var tt=n(g);tt!==null&&W(_,tt.startTime-Q)}}function k(Q,tt){h=!1,w&&(w=!1,M(T),T=-1),y=!0;var at=C;try{for(m(tt),x=n(f);x!==null&&(!(x.expirationTime>tt)||Q&&!B());){var X=x.callback;if(typeof X=="function"){x.callback=null,C=x.priorityLevel;var q=X(x.expirationTime<=tt);tt=t.unstable_now(),typeof q=="function"?x.callback=q:x===n(f)&&r(f),m(tt)}else r(f);x=n(f)}if(x!==null)var rt=!0;else{var ot=n(g);ot!==null&&W(_,ot.startTime-tt),rt=!1}return rt}finally{x=null,C=at,y=!1}}var R=!1,G=null,T=-1,D=5,A=-1;function B(){return!(t.unstable_now()-A<D)}function Z(){if(G!==null){var Q=t.unstable_now();A=Q;var tt=!0;try{tt=G(!0,Q)}finally{tt?S():(R=!1,G=null)}}else R=!1}var S;if(typeof b=="function")S=function(){b(Z)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,N=I.port2;I.port1.onmessage=Z,S=function(){N.postMessage(null)}}else S=function(){E(Z,0)};function z(Q){G=Q,R||(R=!0,S())}function W(Q,tt){T=E(function(){Q(t.unstable_now())},tt)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_continueExecution=function(){h||y||(h=!0,z(k))},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return n(f)},t.unstable_next=function(Q){switch(C){case 1:case 2:case 3:var tt=3;break;default:tt=C}var at=C;C=tt;try{return Q()}finally{C=at}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(Q,tt){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var at=C;C=Q;try{return tt()}finally{C=at}},t.unstable_scheduleCallback=function(Q,tt,at){var X=t.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?X+at:X):at=X,Q){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=at+q,Q={id:v++,callback:tt,priorityLevel:Q,startTime:at,expirationTime:q,sortIndex:-1},at>X?(Q.sortIndex=at,e(g,Q),n(f)===null&&Q===n(g)&&(w?(M(T),T=-1):w=!0,W(_,at-X))):(Q.sortIndex=q,e(f,Q),h||y||(h=!0,z(k))),Q},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(Q){var tt=C;return function(){var at=C;C=tt;try{return Q.apply(this,arguments)}finally{C=at}}}})(_5)),_5}var O5;function em(){return O5||(O5=1,S5.exports=aC()),S5.exports}var k5;function iC(){if(k5)return za;k5=1;var t=tm(),e=em();function n(a){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+a,p=1;p<arguments.length;p++)i+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function o(a,i){c(a,i),c(a+"Capture",i)}function c(a,i){for(s[a]=i,a=0;a<i.length;a++)r.add(i[a])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},x={};function C(a){return f.call(x,a)?!0:f.call(v,a)?!1:g.test(a)?x[a]=!0:(v[a]=!0,!1)}function y(a,i,p,P){if(p!==null&&p.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return P?!1:p!==null?!p.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function h(a,i,p,P){if(i===null||typeof i>"u"||y(a,i,p,P))return!0;if(P)return!1;if(p!==null)switch(p.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function w(a,i,p,P,j,U,nt){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=P,this.attributeNamespace=j,this.mustUseProperty=p,this.propertyName=a,this.type=i,this.sanitizeURL=U,this.removeEmptyString=nt}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){E[a]=new w(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var i=a[0];E[i]=new w(i,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){E[a]=new w(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){E[a]=new w(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){E[a]=new w(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){E[a]=new w(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){E[a]=new w(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){E[a]=new w(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){E[a]=new w(a,5,!1,a.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function b(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var i=a.replace(M,b);E[i]=new w(i,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var i=a.replace(M,b);E[i]=new w(i,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var i=a.replace(M,b);E[i]=new w(i,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){E[a]=new w(a,1,!1,a.toLowerCase(),null,!1,!1)}),E.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){E[a]=new w(a,1,!1,a.toLowerCase(),null,!0,!0)});function m(a,i,p,P){var j=E.hasOwnProperty(i)?E[i]:null;(j!==null?j.type!==0:P||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(h(i,p,j,P)&&(p=null),P||j===null?C(i)&&(p===null?a.removeAttribute(i):a.setAttribute(i,""+p)):j.mustUseProperty?a[j.propertyName]=p===null?j.type===3?!1:"":p:(i=j.attributeName,P=j.attributeNamespace,p===null?a.removeAttribute(i):(j=j.type,p=j===3||j===4&&p===!0?"":""+p,P?a.setAttributeNS(P,i,p):a.setAttribute(i,p))))}var _=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),R=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),B=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),Q=Symbol.iterator;function tt(a){return a===null||typeof a!="object"?null:(a=Q&&a[Q]||a["@@iterator"],typeof a=="function"?a:null)}var at=Object.assign,X;function q(a){if(X===void 0)try{throw Error()}catch(p){var i=p.stack.trim().match(/\n( *(at )?)/);X=i&&i[1]||""}return`
2`+X+a}var rt=!1;function ot(a,i){if(!a||rt)return"";rt=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(Mt){var P=Mt}Reflect.construct(a,[],i)}else{try{i.call()}catch(Mt){P=Mt}a.call(i.prototype)}else{try{throw Error()}catch(Mt){P=Mt}a()}}catch(Mt){if(Mt&&P&&typeof Mt.stack=="string"){for(var j=Mt.stack.split(`
3`),U=P.stack.split(`
4`),nt=j.length-1,ht=U.length-1;1<=nt&&0<=ht&&j[nt]!==U[ht];)ht--;for(;1<=nt&&0<=ht;nt--,ht--)if(j[nt]!==U[ht]){if(nt!==1||ht!==1)do if(nt--,ht--,0>ht||j[nt]!==U[ht]){var vt=`
5`+j[nt].replace(" at new "," at ");return a.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",a.displayName)),vt}while(1<=nt&&0<=ht);break}}}finally{rt=!1,Error.prepareStackTrace=p}return(a=a?a.displayName||a.name:"")?q(a):""}function ft(a){switch(a.tag){case 5:return q(a.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return a=ot(a.type,!1),a;case 11:return a=ot(a.type.render,!1),a;case 1:return a=ot(a.type,!0),a;default:return""}}function it(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case G:return"Fragment";case R:return"Portal";case D:return"Profiler";case T:return"StrictMode";case S:return"Suspense";case I:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case B:return(a.displayName||"Context")+".Consumer";case A:return(a._context.displayName||"Context")+".Provider";case Z:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case N:return i=a.displayName||null,i!==null?i:it(a.type)||"Memo";case z:i=a._payload,a=a._init;try{return it(a(i))}catch{}}return null}function Y(a){var i=a.type;switch(a.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return it(i);case 8:return i===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function J(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function lt(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function dt(a){var i=lt(a)?"checked":"value",p=Object.getOwnPropertyDescriptor(a.constructor.prototype,i),P=""+a[i];if(!a.hasOwnProperty(i)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var j=p.get,U=p.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return j.call(this)},set:function(nt){P=""+nt,U.call(this,nt)}}),Object.defineProperty(a,i,{enumerable:p.enumerable}),{getValue:function(){return P},setValue:function(nt){P=""+nt},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function yt(a){a._valueTracker||(a._valueTracker=dt(a))}function gt(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var p=i.getValue(),P="";return a&&(P=lt(a)?a.checked?"true":"false":a.value),a=P,a!==p?(i.setValue(a),!0):!1}function Dt(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ht(a,i){var p=i.checked;return at({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??a._wrapperState.initialChecked})}function It(a,i){var p=i.defaultValue==null?"":i.defaultValue,P=i.checked!=null?i.checked:i.defaultChecked;p=J(i.value!=null?i.value:p),a._wrapperState={initialChecked:P,initialValue:p,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function qt(a,i){i=i.checked,i!=null&&m(a,"checked",i,!1)}function Bt(a,i){qt(a,i);var p=J(i.value),P=i.type;if(p!=null)P==="number"?(p===0&&a.value===""||a.value!=p)&&(a.value=""+p):a.value!==""+p&&(a.value=""+p);else if(P==="submit"||P==="reset"){a.removeAttribute("value");return}i.hasOwnProperty("value")?Kt(a,i.type,p):i.hasOwnProperty("defaultValue")&&Kt(a,i.type,J(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(a.defaultChecked=!!i.defaultChecked)}function ee(a,i,p){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var P=i.type;if(!(P!=="submit"&&P!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+a._wrapperState.initialValue,p||i===a.value||(a.value=i),a.defaultValue=i}p=a.name,p!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,p!==""&&(a.name=p)}function Kt(a,i,p){(i!=="number"||Dt(a.ownerDocument)!==a)&&(p==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+p&&(a.defaultValue=""+p))}var Yt=Array.isArray;function oe(a,i,p,P){if(a=a.options,i){i={};for(var j=0;j<p.length;j++)i["$"+p[j]]=!0;for(p=0;p<a.length;p++)j=i.hasOwnProperty("$"+a[p].value),a[p].selected!==j&&(a[p].selected=j),j&&P&&(a[p].defaultSelected=!0)}else{for(p=""+J(p),i=null,j=0;j<a.length;j++){if(a[j].value===p){a[j].selected=!0,P&&(a[j].defaultSelected=!0);return}i!==null||a[j].disabled||(i=a[j])}i!==null&&(i.selected=!0)}}function ne(a,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return at({},i,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function ue(a,i){var p=i.value;if(p==null){if(p=i.children,i=i.defaultValue,p!=null){if(i!=null)throw Error(n(92));if(Yt(p)){if(1<p.length)throw Error(n(93));p=p[0]}i=p}i==null&&(i=""),p=i}a._wrapperState={initialValue:J(p)}}function Qt(a,i){var p=J(i.value),P=J(i.defaultValue);p!=null&&(p=""+p,p!==a.value&&(a.value=p),i.defaultValue==null&&a.defaultValue!==p&&(a.defaultValue=p)),P!=null&&(a.defaultValue=""+P)}function $t(a){var i=a.textContent;i===a._wrapperState.initialValue&&i!==""&&i!==null&&(a.value=i)}function we(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fe(a,i){return a==null||a==="http://www.w3.org/1999/xhtml"?we(i):a==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var _e,pn=(function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,p,P,j){MSApp.execUnsafeLocalFunction(function(){return a(i,p,P,j)})}:a})(function(a,i){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=i;else{for(_e=_e||document.createElement("div"),_e.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=_e.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;i.firstChild;)a.appendChild(i.firstChild)}});function jt(a,i){if(i){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=i;return}}a.textContent=i}var se={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Se=["Webkit","ms","Moz","O"];Object.keys(se).forEach(function(a){Se.forEach(function(i){i=i+a.charAt(0).toUpperCase()+a.substring(1),se[i]=se[a]})});function xe(a,i,p){return i==null||typeof i=="boolean"||i===""?"":p||typeof i!="number"||i===0||se.hasOwnProperty(a)&&se[a]?(""+i).trim():i+"px"}function Ge(a,i){a=a.style;for(var p in i)if(i.hasOwnProperty(p)){var P=p.indexOf("--")===0,j=xe(p,i[p],P);p==="float"&&(p="cssFloat"),P?a.setProperty(p,j):a[p]=j}}var an=at({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bn(a,i){if(i){if(an[a]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,a));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Ur(a,i){if(a.indexOf("-")===-1)return typeof i.is=="string";switch(a){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 Ma=null;function La(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var ve=null,Ce=null,Ue=null;function gn(a){if(a=fr(a)){if(typeof ve!="function")throw Error(n(280));var i=a.stateNode;i&&(i=oc(i),ve(a.stateNode,a.type,i))}}function zn(a){Ce?Ue?Ue.push(a):Ue=[a]:Ce=a}function ga(){if(Ce){var a=Ce,i=Ue;if(Ue=Ce=null,gn(a),i)for(a=0;a<i.length;a++)gn(i[a])}}function ta(a,i){return a(i)}function Vo(){}var ho=!1;function ea(a,i,p){if(ho)return a(i,p);ho=!0;try{return ta(a,i,p)}finally{ho=!1,(Ce!==null||Ue!==null)&&(Vo(),ga())}}function ji(a,i){var p=a.stateNode;if(p===null)return null;var P=oc(p);if(P===null)return null;p=P[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(P=!P.disabled)||(a=a.type,P=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!P;break t;default:a=!1}if(a)return null;if(p&&typeof p!="function")throw Error(n(231,i,typeof p));return p}var Qa=!1;if(d)try{var Fn={};Object.defineProperty(Fn,"passive",{get:function(){Qa=!0}}),window.addEventListener("test",Fn,Fn),window.removeEventListener("test",Fn,Fn)}catch{Qa=!1}function na(a,i,p,P,j,U,nt,ht,vt){var Mt=Array.prototype.slice.call(arguments,3);try{i.apply(p,Mt)}catch(Gt){this.onError(Gt)}}var Bi=!1,Ja=null,Hi=!1,Rl=null,kd={onError:function(a){Bi=!0,Ja=a}};function Pd(a,i,p,P,j,U,nt,ht,vt){Bi=!1,Ja=null,na.apply(kd,arguments)}function Md(a,i,p,P,j,U,nt,ht,vt){if(Pd.apply(this,arguments),Bi){if(Bi){var Mt=Ja;Bi=!1,Ja=null}else throw Error(n(198));Hi||(Hi=!0,Rl=Mt)}}function ra(a){var i=a,p=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(p=i.return),a=i.return;while(a)}return i.tag===3?p:null}function $c(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function Xc(a){if(ra(a)!==a)throw Error(n(188))}function Ld(a){var i=a.alternate;if(!i){if(i=ra(a),i===null)throw Error(n(188));return i!==a?null:a}for(var p=a,P=i;;){var j=p.return;if(j===null)break;var U=j.alternate;if(U===null){if(P=j.return,P!==null){p=P;continue}break}if(j.child===U.child){for(U=j.child;U;){if(U===p)return Xc(j),a;if(U===P)return Xc(j),i;U=U.sibling}throw Error(n(188))}if(p.return!==P.return)p=j,P=U;else{for(var nt=!1,ht=j.child;ht;){if(ht===p){nt=!0,p=j,P=U;break}if(ht===P){nt=!0,P=j,p=U;break}ht=ht.sibling}if(!nt){for(ht=U.child;ht;){if(ht===p){nt=!0,p=U,P=j;break}if(ht===P){nt=!0,P=U,p=j;break}ht=ht.sibling}if(!nt)throw Error(n(189))}}if(p.alternate!==P)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?a:i}function qc(a){return a=Ld(a),a!==null?Qc(a):null}function Qc(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var i=Qc(a);if(i!==null)return i;a=a.sibling}return null}var Jc=e.unstable_scheduleCallback,Ts=e.unstable_cancelCallback,Td=e.unstable_shouldYield,As=e.unstable_requestPaint,mn=e.unstable_now,Yo=e.unstable_getCurrentPriorityLevel,vi=e.unstable_ImmediatePriority,Zo=e.unstable_UserBlockingPriority,Is=e.unstable_NormalPriority,Fl=e.unstable_LowPriority,zi=e.unstable_IdlePriority,aa=null,We=null;function sn(a){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(aa,a,void 0,(a.current.flags&128)===128)}catch{}}var qn=Math.clz32?Math.clz32:Gi,hr=Math.log,Ar=Math.LN2;function Gi(a){return a>>>=0,a===0?32:31-(hr(a)/Ar|0)|0}var ti=64,ar=4194304;function yi(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function Ko(a,i){var p=a.pendingLanes;if(p===0)return 0;var P=0,j=a.suspendedLanes,U=a.pingedLanes,nt=p&268435455;if(nt!==0){var ht=nt&~j;ht!==0?P=yi(ht):(U&=nt,U!==0&&(P=yi(U)))}else nt=p&~j,nt!==0?P=yi(nt):U!==0&&(P=yi(U));if(P===0)return 0;if(i!==0&&i!==P&&(i&j)===0&&(j=P&-P,U=i&-i,j>=U||j===16&&(U&4194240)!==0))return i;if((P&4)!==0&&(P|=p&16),i=a.entangledLanes,i!==0)for(a=a.entanglements,i&=P;0<i;)p=31-qn(i),j=1<<p,P|=a[p],i&=~j;return P}function $o(a,i){switch(a){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fo(a,i){for(var p=a.suspendedLanes,P=a.pingedLanes,j=a.expirationTimes,U=a.pendingLanes;0<U;){var nt=31-qn(U),ht=1<<nt,vt=j[nt];vt===-1?((ht&p)===0||(ht&P)!==0)&&(j[nt]=$o(ht,i)):vt<=i&&(a.expiredLanes|=ht),U&=~ht}}function Ns(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function ia(){var a=ti;return ti<<=1,(ti&4194240)===0&&(ti=64),a}function Rs(a){for(var i=[],p=0;31>p;p++)i.push(a);return i}function Xo(a,i,p){a.pendingLanes|=i,i!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,i=31-qn(i),a[i]=p}function Ad(a,i){var p=a.pendingLanes&~i;a.pendingLanes=i,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=i,a.mutableReadLanes&=i,a.entangledLanes&=i,i=a.entanglements;var P=a.eventTimes;for(a=a.expirationTimes;0<p;){var j=31-qn(p),U=1<<j;i[j]=0,P[j]=-1,a[j]=-1,p&=~U}}function po(a,i){var p=a.entangledLanes|=i;for(a=a.entanglements;p;){var P=31-qn(p),j=1<<P;j&i|a[P]&i&&(a[P]|=i),p&=~j}}var Ke=0;function go(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var qo,Dl,Fs,Ds,jl,Qo=!1,ma=[],Ta=null,oa=null,Me=null,mo=new Map,bi=new Map,va=[],tu="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function wi(a,i){switch(a){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":Me=null;break;case"pointerover":case"pointerout":mo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":bi.delete(i.pointerId)}}function ln(a,i,p,P,j,U){return a===null||a.nativeEvent!==U?(a={blockedOn:i,domEventName:p,eventSystemFlags:P,nativeEvent:U,targetContainers:[j]},i!==null&&(i=fr(i),i!==null&&Dl(i)),a):(a.eventSystemFlags|=P,i=a.targetContainers,j!==null&&i.indexOf(j)===-1&&i.push(j),a)}function Bl(a,i,p,P,j){switch(i){case"focusin":return Ta=ln(Ta,a,i,p,P,j),!0;case"dragenter":return oa=ln(oa,a,i,p,P,j),!0;case"mouseover":return Me=ln(Me,a,i,p,P,j),!0;case"pointerover":var U=j.pointerId;return mo.set(U,ln(mo.get(U)||null,a,i,p,P,j)),!0;case"gotpointercapture":return U=j.pointerId,bi.set(U,ln(bi.get(U)||null,a,i,p,P,j)),!0}return!1}function Hl(a){var i=is(a.target);if(i!==null){var p=ra(i);if(p!==null){if(i=p.tag,i===13){if(i=$c(p),i!==null){a.blockedOn=i,jl(a.priority,function(){Fs(p)});return}}else if(i===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function vo(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var p=nn(a.domEventName,a.eventSystemFlags,i[0],a.nativeEvent);if(p===null){p=a.nativeEvent;var P=new p.constructor(p.type,p);Ma=P,p.target.dispatchEvent(P),Ma=null}else return i=fr(p),i!==null&&Dl(i),a.blockedOn=p,!1;i.shift()}return!0}function zl(a,i,p){vo(a)&&p.delete(i)}function js(){Qo=!1,Ta!==null&&vo(Ta)&&(Ta=null),oa!==null&&vo(oa)&&(oa=null),Me!==null&&vo(Me)&&(Me=null),mo.forEach(zl),bi.forEach(zl)}function Ir(a,i){a.blockedOn===i&&(a.blockedOn=null,Qo||(Qo=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,js)))}function yo(a){function i(j){return Ir(j,a)}if(0<ma.length){Ir(ma[0],a);for(var p=1;p<ma.length;p++){var P=ma[p];P.blockedOn===a&&(P.blockedOn=null)}}for(Ta!==null&&Ir(Ta,a),oa!==null&&Ir(oa,a),Me!==null&&Ir(Me,a),mo.forEach(i),bi.forEach(i),p=0;p<va.length;p++)P=va[p],P.blockedOn===a&&(P.blockedOn=null);for(;0<va.length&&(p=va[0],p.blockedOn===null);)Hl(p),p.blockedOn===null&&va.shift()}var bo=_.ReactCurrentBatchConfig,ut=!0;function xt(a,i,p,P){var j=Ke,U=bo.transition;bo.transition=null;try{Ke=1,le(a,i,p,P)}finally{Ke=j,bo.transition=U}}function Pt(a,i,p,P){var j=Ke,U=bo.transition;bo.transition=null;try{Ke=4,le(a,i,p,P)}finally{Ke=j,bo.transition=U}}function le(a,i,p,P){if(ut){var j=nn(a,i,p,P);if(j===null)gu(a,i,P,Ne,p),wi(a,P);else if(Bl(j,a,i,p,P))P.stopPropagation();else if(wi(a,P),i&4&&-1<tu.indexOf(a)){for(;j!==null;){var U=fr(j);if(U!==null&&qo(U),U=nn(a,i,p,P),U===null&&gu(a,i,P,Ne,p),U===j)break;j=U}j!==null&&P.stopPropagation()}else gu(a,i,P,null,p)}}var Ne=null;function nn(a,i,p,P){if(Ne=null,a=La(P),a=is(a),a!==null)if(i=ra(a),i===null)a=null;else if(p=i.tag,p===13){if(a=$c(i),a!==null)return a;a=null}else if(p===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null);return Ne=a,null}function Ve(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invali
5d":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Yo()){case vi:return 1;case Zo:return 4;case Is:case Fl:return 16;case zi:return 536870912;default:return 16}default:return 16}}var Ee=null,Qe=null,ir=null;function or(){if(ir)return ir;var a,i=Qe,p=i.length,P,j="value"in Ee?Ee.value:Ee.textContent,U=j.length;for(a=0;a<p&&i[a]===j[a];a++);var nt=p-a;for(P=1;P<=nt&&i[p-P]===j[U-P];P++);return ir=j.slice(a,1<P?1-P:void 0)}function Un(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function sr(){return!0}function Aa(){return!1}function Tn(a){function i(p,P,j,U,nt){this._reactName=p,this._targetInst=j,this.type=P,this.nativeEvent=U,this.target=nt,this.currentTarget=null;for(var ht in a)a.hasOwnProperty(ht)&&(p=a[ht],this[ht]=p?p(U):U[ht]);return this.isDefaultPrevented=(U.defaultPrevented!=null?U.defaultPrevented:U.returnValue===!1)?sr:Aa,this.isPropagationStopped=Aa,this}return at(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=sr)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=sr)},persist:function(){},isPersistent:sr}),i}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=Tn(sa),Bs=at({},sa,{view:0,detail:0}),Id=Tn(Bs),Gl,Wr,Nr,vn=at({},Bs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gs,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Nr&&(Nr&&a.type==="mousemove"?(Gl=a.screenX-Nr.screenX,Wr=a.screenY-Nr.screenY):Wr=Gl=0,Nr=a),Gl)},movementY:function(a){return"movementY"in a?a.movementY:Wr}}),Hs=Tn(vn),ei=at({},vn,{dataTransfer:0}),A1=Tn(ei),I1=at({},Bs,{relatedTarget:0}),Ul=Tn(I1),Nd=at({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),N1=Tn(Nd),eu=at({},sa,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),R1=Tn(eu),zs=at({},sa,{data:0}),nu=Tn(zs),t2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ru={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"},e2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wl(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=e2[a])?!!i[a]:!1}function Gs(){return Wl}var F1=at({}
vendor: 19,720 bytes, lines 5-6
5,Bs,{key:function(a){if(a.key){var i=t2[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=Un(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?ru[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gs,charCode:function(a){return a.type==="keypress"?Un(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Un(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),D1=Tn(F1),Us=at({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rd=Tn(Us),au=at({},Bs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gs}),iu=Tn(au),Ws=at({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fd=Tn(Ws),Dd=at({},vn,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),j1=Tn(Dd),jd=[9,13,27,32],Vl=d&&"CompositionEvent"in window,xi=null;d&&"documentMode"in document&&(xi=document.documentMode);var Ia=d&&"TextEvent"in window&&!xi,wo=d&&(!Vl||xi&&8<xi&&11>=xi),ou=" ",Bd=!1;function ni(a,i){switch(a){case"keyup":return jd.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wi(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var xo=!1;function B1(a,i){switch(a){case"compositionend":return Wi(i);case"keypress":return i.which!==32?null:(Bd=!0,ou);case"textInput":return a=i.data,a===ou&&Bd?null:a;default:return null}}function Vi(a,i){if(xo)return a==="compositionend"||!Vl&&ni(a,i)?(a=or(),ir=Qe=Ee=null,xo=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return wo&&i.locale!=="ko"?null:i.data;default:return null}}var Co={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 Yl(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!Co[a.type]:i==="textarea"}function Hd(a,i,p,P){zn(P),i=rc(i,"onChange"),0<i.length&&(p=new Ui("onChange","change",null,p,P),a.push({event:p,listeners:i}))}var So=null,Vs=null;function Zl(a){Qd(a,0)}function Vr(a){var i=Jn(a);if(gt(i))return a}function Kl(a,i){if(a==="change")return i}var Jo=!1;if(d){var Na;if(d){var $l="oninput"in document;if(!$l){var ts=document.createElement("div");ts.setAttribute("oninput","return;"),$l=typeof ts.oninput=="function"}Na=$l}else Na=!1;Jo=Na&&(!document.documentMode||9<document.documentMode)}function zd(){So&&(So.detachEvent("onpropertychange",su),Vs=So=null)}function su(a){if(a.propertyName==="value"&&Vr(Vs)){var i=[];Hd(i,Vs,a,La(a)),ea(Zl,i)}}function Dn(a,i,p){a==="focusin"?(zd(),So=i,Vs=p,So.attachEvent("onpropertychange",su)):a==="focusout"&&zd()}function lu(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Vr(Vs)}function Gd(a,i){if(a==="click")return Vr(i)}function Ud(a,i){if(a==="input"||a==="change")return Vr(i)}function cu(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var ya=typeof Object.is=="function"?Object.is:cu;function ri(a,i){if(ya(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var p=Object.keys(a),P=Object.keys(i);if(p.length!==P.length)return!1;for(P=0;P<p.length;P++){var j=p[P];if(!f.call(i,j)||!ya(a[j],i[j]))return!1}return!0}function An(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Qn(a,i){var p=An(a);a=0;for(var P;p;){if(p.nodeType===3){if(P=a+p.textContent.length,a<=i&&P>=i)return{node:p,offset:i-a};a=P}t:{for(;p;){if(p.nextSibling){p=p.nextSibling;break t}p=p.parentNode}p=void 0}p=An(p)}}function lr(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?lr(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Xl(){for(var a=window,i=Dt();i instanceof a.HTMLIFrameElement;){try{var p=typeof i.contentWindow.location.href=="string"}catch{p=!1}if(p)a=i.contentWindow;else break;i=Dt(a.document)}return i}function es(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function ql(a){var i=Xl(),p=a.focusedElem,P=a.selectionRange;if(i!==p&&p&&p.ownerDocument&&lr(p.ownerDocument.documentElement,p)){if(P!==null&&es(p)){if(i=P.start,a=P.end,a===void 0&&(a=i),"selectionStart"in p)p.selectionStart=i,p.selectionEnd=Math.min(a,p.value.length);else if(a=(i=p.ownerDocument||document)&&i.defaultView||window,a.getSelection){a=a.getSelection();var j=p.textContent.length,U=Math.min(P.start,j);P=P.end===void 0?U:Math.min(P.end,j),!a.extend&&U>P&&(j=P,P=U,U=j),j=Qn(p,U);var nt=Qn(p,P);j&&nt&&(a.rangeCount!==1||a.anchorNode!==j.node||a.anchorOffset!==j.offset||a.focusNode!==nt.node||a.focusOffset!==nt.offset)&&(i=i.createRange(),i.setStart(j.node,j.offset),a.removeAllRanges(),U>P?(a.addRange(i),a.extend(nt.node,nt.offset)):(i.setEnd(nt.node,nt.offset),a.addRange(i)))}}for(i=[],a=p;a=a.parentNode;)a.nodeType===1&&i.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<i.length;p++)a=i[p],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var n2=d&&"documentMode"in document&&11>=document.documentMode,Wn=null,Ql=null,ns=null,Jl=!1;function ai(a,i,p){var P=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Jl||Wn==null||Wn!==Dt(P)||(P=Wn,"selectionStart"in P&&es(P)?P={start:P.selectionStart,end:P.selectionEnd}:(P=(P.ownerDocument&&P.ownerDocument.defaultView||window).getSelection(),P={anchorNode:P.anchorNode,anchorOffset:P.anchorOffset,focusNode:P.focusNode,focusOffset:P.focusOffset}),ns&&ri(ns,P)||(ns=P,P=rc(Ql,"onSelect"),0<P.length&&(i=new Ui("onSelect","select",null,i,p),a.push({event:i,listeners:P}),i.target=Wn)))}function Yr(a,i){var p={};return p[a.toLowerCase()]=i.toLowerCase(),p["Webkit"+a]="webkit"+i,p["Moz"+a]="moz"+i,p}var Ci={animationend:Yr("Animation","AnimationEnd"),animationiteration:Yr("Animation","AnimationIteration"),animationstart:Yr("Animation","AnimationStart"),transitionend:Yr("Transition","TransitionEnd")},tc={},uu={};d&&(uu=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function ec(a){if(tc[a])return tc[a];if(!Ci[a])return a;var i=Ci[a],p;for(p in i)if(i.hasOwnProperty(p)&&p in uu)return tc[a]=i[p];return a}var Wd=ec("animationend"),Vd=ec("animationiteration"),Yd=ec("animationstart"),Zd=ec("transitionend"),Kd=new Map,$d="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yi(a,i){Kd.set(a,i),o(i,[a])}for(var rs=0;rs<$d.length;rs++){var du=$d[rs],hu=du.toLowerCase(),fu=du[0].toUpperCase()+du.slice(1);Yi(hu,"on"+fu)}Yi(Wd,"onAnimationEnd"),Yi(Vd,"onAnimationIteration"),Yi(Yd,"onAnimationStart"),Yi("dblclick","onDoubleClick"),Yi("focusin","onFocus"),Yi("focusout","onBlur"),Yi(Zd,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ys="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(" "),Xd=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ys));function qd(a,i,p){var P=a.type||"unknown-event";a.currentTarget=p,Md(P,i,void 0,a),a.currentTarget=null}function Qd(a,i){i=(i&4)!==0;for(var p=0;p<a.length;p++){var P=a[p],j=P.event;P=P.listeners;t:{var U=void 0;if(i)for(var nt=P.length-1;0<=nt;nt--){var ht=P[nt],vt=ht.instance,Mt=ht.currentTarget;if(ht=ht.listener,vt!==U&&j.isPropagationStopped())break t;qd(j,ht,Mt),U=vt}else for(nt=0;nt<P.length;nt++){if(ht=P[nt],vt=ht.instance,Mt=ht.currentTarget,ht=ht.listener,vt!==U&&j.isPropagationStopped())break t;qd(j,ht,Mt),U=vt}}}if(Hi)throw a=Rl,Hi=!1,Rl=null,a}function wn(a,i){var p=i[bu];p===void 0&&(p=i[bu]=new Set);var P=a+"__bubble";p.has(P)||(Jd(i,a,2,!1),p.add(P))}function pu(a,i,p){var P=0;i&&(P|=4),Jd(p,a,P,i)}var Zs="_reactListening"+Math.random().toString(36).slice(2);function Ks(a){if(!a[Zs]){a[Zs]=!0,r.forEach(function(p){p!=="selectionchange"&&(Xd.has(p)||pu(p,!1,a),pu(p,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Zs]||(i[Zs]=!0,pu("selectionchange",!1,i))}}function Jd(a,i,p,P){switch(Ve(i)){case 1:var j=xt;break;case 4:j=Pt;break;default:j=le}p=j.bind(null,i,p,a),j=void 0,!Qa||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(j=!0),P?j!==void 0?a.addEventListener(i,p,{capture:!0,passive:j}):a.addEventListener(i,p,!0):j!==void 0?a.addEventListener(i,p,{passive:j}):a.addEventListener(i,p,!1)}function gu(a,i,p,P,j){var U=P;if((i&1)===0&&(i&2)===0&&P!==null)t:for(;;){if(P===null)return;var nt=P.tag;if(nt===3||nt===4){var ht=P.stateNode.containerInfo;if(ht===j||ht.nodeType===8&&ht.parentNode===j)break;if(nt===4)for(nt=P.return;nt!==null;){var vt=nt.tag;if((vt===3||vt===4)&&(vt=nt.stateNode.containerInfo,vt===j||vt.nodeType===8&&vt.parentNode===j))return;nt=nt.return}for(;ht!==null;){if(nt=is(ht),nt===null)return;if(vt=nt.tag,vt===5||vt===6){P=U=nt;continue t}ht=ht.parentNode}}P=P.return}ea(function(){var Mt=U,Gt=La(p),Ut=[];t:{var zt=Kd.get(a);if(zt!==void 0){var ie=Ui,he=a;switch(a){case"keypress":if(Un(p)===0)break t;case"keydown":case"keyup":ie=D1;break;case"focusin":he="focus",ie=Ul;break;case"focusout":he="blur",ie=Ul;break;case"beforeblur":case"afterblur":ie=Ul;break;case"click":if(p.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=Hs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=A1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=iu;break;case Wd:case Vd:case Yd:ie=N1;break;case Zd:ie=Fd;break;case"scroll":ie=Id;break;case"wheel":ie=j1;break;case"copy":case"cut":case"paste":ie=R1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=Rd}var fe=(i&4)!==0,cr=!fe&&a==="scroll",St=fe?zt!==null?zt+"Capture":null:zt;fe=[];for(var wt=Mt,Ot;wt!==null;){Ot=wt;var Zt=Ot.stateNode;if(Ot.tag===5&&Zt!==null&&(Ot=Zt,St!==null&&(Zt=ji(wt,St),Zt!=null&&fe.push(nc(wt,Zt,Ot)))),cr)break;wt=wt.return}0<fe.length&&(zt=new ie(zt,he,null,p,Gt),Ut.push({event:zt,listeners:fe}))}}if((i&7)===0){t:{if(zt=a==="mouseover"||a==="pointerover",ie=a==="mouseout"||a==="pointerout",zt&&p!==Ma&&(he=p.relatedTarget||p.fromElement)&&(is(he)||he[_i]))break t;if((ie||zt)&&(zt=Gt.window===Gt?Gt:(zt=Gt.ownerDocument)?zt.defaultView||zt.parentWindow:window,ie?(he=p.relatedTarget||p.toElement,ie=Mt,he=he?is(he):null,he!==null&&(cr=ra(he),he!==cr||he.tag!==5&&he.tag!==6)&&(he=null)):(ie=null,he=Mt),ie!==he)){if(fe=Hs,Zt="onMouseLeave",St="onMouseEnter",wt="mouse",(a==="pointerout"||a==="pointerover")&&(fe=Rd,Zt="onPointerLeave",St="onPointerEnter",wt="pointer"),cr=ie==null?zt:Jn(ie),Ot=he==null?zt:Jn(he),zt=new fe(Zt,wt+"leave",ie,p,Gt),zt.target=cr,zt.relatedTarget=Ot,Zt=null,is(Gt)===Mt&&(fe=new fe(St,wt+"enter",he,p,Gt),fe.target=Ot,fe.relatedTarget=cr,Zt=fe),cr=Zt,ie&&he)e:{for(fe=ie,St=he,wt=0,Ot=fe;Ot;Ot=$s(Ot))wt++;for(Ot=0,Zt=St;Zt;Zt=$s(Zt))Ot++;for(;0<wt-Ot;)fe=$s(fe),wt--;for(;0<Ot-wt;)St=$s(St),Ot--;for(;wt--;){if(fe===St||St!==null&&fe===St.alternate)break e;fe=$s(fe),St=$s(St)}fe=null}else fe=null;ie!==null&&H1(Ut,zt,ie,fe,!1),he!==null&&cr!==null&&H1(Ut,cr,he,fe,!0)}}t:{if(zt=Mt?Jn(Mt):window,ie=zt.nodeName&&zt.nodeName.toLowerCase(),ie==="select"||ie==="input"&&zt.type==="file")var pe=Kl;else if(Yl(zt))if(Jo)pe=Ud;else{pe=lu;var ye=Dn}else(ie=zt.nodeName)&&ie.toLowerCase()==="input"&&(zt.type==="checkbox"||zt.type==="radio")&&(pe=Gd);if(pe&&(pe=pe(a,Mt))){Hd(Ut,pe,p,Gt);break t}ye&&ye(a,zt,Mt),a==="focusout"&&(ye=zt._wrapperState)&&ye.controlled&&zt.type==="number"&&Kt(zt,"number",zt.value)}switch(ye=Mt?Jn(Mt):window,a){case"focusin":(Yl(ye)||ye.contentEditable==="true")&&(Wn=ye,Ql=Mt,ns=null);break;case"focusout":ns=Ql=Wn=null;break;case"mousedown":Jl=!0;break;case"contextmenu":case"mouseup":case"dragend":Jl=!1,ai(Ut,p,Gt);break;case"selectionchange":if(n2)break;case"keydown":case"keyup":ai(Ut,p,Gt)}var be;if(Vl)t:{switch(a){case"compositionstart":var Oe="onCompositionStart";break t;case"compositionend":Oe="onCompositionEnd";break t;case"compositionupdate":Oe="onCompositionUpdate";break t}Oe=void 0}else xo?ni(a,p)&&(Oe="onCompositionEnd"):a==="keydown"&&p.keyCode===229&&(Oe="onCompositionStart");Oe&&(wo&&p.locale!=="ko"&&(xo||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&xo&&(be=or()):(Ee=Gt,Qe="value"in Ee?Ee.value:Ee.textContent,xo=!0)),ye=rc(Mt,Oe),0<ye.length&&(Oe=new nu(Oe,a,null,p,Gt),Ut.push({event:Oe,listeners:ye}),be?Oe.data=be:(be=Wi(p),be!==null&&(Oe.data=be)))),(be=Ia?B1(a,p):Vi(a,p))&&(Mt=rc(Mt,"onBeforeInput"),0<Mt.length&&(Gt=new nu("onBeforeInput","beforeinput",null,p,Gt),Ut.push({event:Gt,listeners:Mt}),Gt.data=be))}Qd(Ut,i)})}function nc(a,i,p){return{instance:a,listener:i,currentTarget:p}}function rc(a,i){for(var p=i+"Capture",P=[];a!==null;){var j=a,U=j.stateNode;j.tag===5&&U!==null&&(j=U,U=ji(a,p),U!=null&&P.unshift(nc(a,U,j)),U=ji(a,i),U!=null&&P.push(nc(a,U,j))),a=a.return}return P}function $s(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function H1(a,i,p,P,j){for(var U=i._reactName,nt=[];p!==null&&p!==P;){var ht=p,vt=ht.alternate,Mt=ht.stateNode;if(vt!==null&&vt===P)break;ht.tag===5&&Mt!==null&&(ht=Mt,j?(vt=ji(p,U),vt!=null&&nt.unshift(nc(p,vt,ht))):j||(vt=ji(p,U),vt!=null&&nt.push(nc(p,vt,ht)))),p=p.return}nt.length!==0&&a.push({event:i,listeners:nt})}var z1=/\r\n?/g,G1=/\u0000|\uFFFD/g;function th(a){return(typeof a=="string"?a:""+a).replace(z1,`
6`).replace(G1,"")}function as(a,i,p){if(i=th(i),th(a)!==i&&p)throw Error(n(425))}function mu(){}var eh=null,nh=null;function ba(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var ac=typeof setTimeout=="function"?setTimeout:void 0,vu=typeof clearTimeout=="function"?clearTimeout:void 0,rh=typeof Promise=="function"?Promise:void 0,U1=typeof queueMicrotask=="function"?queueMicrotask:typeof rh<"u"?function(a){return rh.resolve(null).then(a).catch(W1)}:ac;function W1(a){setTimeout(function(){throw a})}function ic(a,i){var p=i,P=0;do{var j=p.nextSibling;if(a.removeChild(p),j&&j.nodeType===8)if(p=j.data,p==="/$"){if(P===0){a.removeChild(j),yo(i);return}P--}else p!=="$"&&p!=="$?"&&p!=="$!"||P++;p=j}while(p);yo(i)}function wa(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return a}function yu(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var p=a.data;if(p==="$"||p==="$!"||p==="$?"){if(i===0)return a;i--}else p==="/$"&&i++}a=a.previousSibling}return null}var _o=Math.random().toString(36).slice(2),Si="__reactFiber$"+_o,Xs="__reactProps$"+_o,_i="__reactContainer$"+_o,bu="__reactEvents$"+_o,V1="__reactListeners$"+_o,Y1="__reactHandles$"+_o;function is(a){var i=a[Si];if(i)return i;for(var p=a.parentNode;p;){if(i=p[_i]||p[Si]){if(p=i.alternate,i.child!==null||p!==null&&p.child!==null)for(a=yu(a);a!==null;){if(p=a[Si])return p;a=yu(a)}return i}a=p,p=a.parentNode}return null}function fr(a){return a=a[Si]||a[_i],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function Jn(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(n(33))}function oc(a){return a[Xs]||null}var wu=[],os=-1;function Zi(a){return{current:a}}function xn(a){0>os||(a.current=wu[os],wu[os]=null,os--)}function cn(a,i){os++,wu[os]=a.current,a.current=i}var Ki={},pr=Zi(Ki),Zr=Zi(!1),Eo=Ki;function Oo(a,i){var p=a.type.contextTypes;if(!p)return Ki;var P=a.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===i)return P.__reactInternalMemoizedMaskedChildContext;var j={},U;for(U in p)j[U]=i[U];return P&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=i,a.__reactInternalMemoizedMaskedChildContext=j),j}function Rr(a){return a=a.childContextTypes,a!=null}function sc(){xn(Zr),xn(pr)}function xu(a,i,p){if(pr.current!==Ki)throw Error(n(168));cn(pr,i),cn(Zr,p)}function lc(a,i,p){var P=a.stateNode;if(i=i.childContextTypes,typeof P.getChildContext!="function")return p;P=P.getChildContext();for(var j in P)if(!(j in i))throw Error(n(108,Y(a)||"Unknown",j));return at({},p,P)}function Cu(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Ki,Eo=pr.current,cn(pr,a),cn(Zr,Zr.current),!0}function ah(a,i,p){var P=a.stateNode;if(!P)throw Error(n(169));p?(a=lc(a,i,Eo),P.__reactInternalMemoizedMergedChildContext=a,xn(Zr),xn(pr),cn(pr,a)):xn(Zr),cn(Zr,p)}var ii=null,cc=!1,qs=!1;function Ei(a){ii===null?ii=[a]:ii.push(a)}function r2(a){cc=!0,Ei(a)}function _r(){if(!qs&&ii!==null){qs=!0;var a=0,i=Ke;try{var p=ii;for(Ke=1;a<p.length;a++){var P=p[a];do P=P(!0);while(P!==null)}ii=null,cc=!1}catch(j){throw ii!==null&&(ii=ii.slice(a+1)),Jc(vi,_r),j}finally{Ke=i,qs=!1}}return null}var ss=[],Oi=0,ko=null,ls=0,Kr=[],xa=0,oi=null,In=1,$i="";function cs(a,i){ss[Oi++]=ls,ss[Oi++]=ko,ko=a,ls=i}function uc(a,i,p){Kr[xa++]=In,Kr[xa++]=$i,Kr[xa++]=oi,oi=a;var P=In;a=$i;var j=32-qn(P)-1;P&=~(1<<j),p+=1;var U=32-qn(i)+j;if(30<U){var nt=j-j%5;U=(P&(1<<nt)-1).toString(32),P>>=nt,j-=nt,In=1<<32-qn(i)+j|p<<j|P,$i=U+a}else In=1<<U|p<<j|P,$i=a}function gr(a){a.return!==null&&(cs(a,1),uc(a,1,0))}function ih(a){for(;a===ko;)ko=ss[--Oi],ss[Oi]=null,ls=ss[--Oi],ss[Oi]=null;for(;a===oi;)oi=Kr[--xa],Kr[xa]=null,$i=Kr[--xa],Kr[xa]=null,In=Kr[--xa],Kr[xa]=null}var te=null,mr=null,_n=!1,Ra=null;function Z1(a,i){var p=Ai(5,null,null,0);
vendor: 3,282 bytes, line 6
6p.elementType="DELETED",p.stateNode=i,p.return=a,i=a.deletions,i===null?(a.deletions=[p],a.flags|=16):i.push(p)}function Qs(a,i){switch(a.tag){case 5:var p=a.type;return i=i.nodeType!==1||p.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(a.stateNode=i,te=a,mr=wa(i.firstChild),!0):!1;case 6:return i=a.pendingProps===""||i.nodeType!==3?null:i,i!==null?(a.stateNode=i,te=a,mr=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(p=oi!==null?{id:In,overflow:$i}:null,a.memoizedState={dehydrated:i,treeContext:p,retryLane:1073741824},p=Ai(18,null,null,0),p.stateNode=i,p.return=a,a.child=p,te=a,mr=null,!0):!1;default:return!1}}function Js(a){return(a.mode&1)!==0&&(a.flags&128)===0}function dc(a){if(_n){var i=mr;if(i){var p=i;if(!Qs(a,i)){if(Js(a))throw Error(n(418));i=wa(p.nextSibling);var P=te;i&&Qs(a,i)?Z1(P,p):(a.flags=a.flags&-4097|2,_n=!1,te=a)}}else{if(Js(a))throw Error(n(418));a.flags=a.flags&-4097|2,_n=!1,te=a}}}function oh(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;te=a}function hc(a){if(a!==te)return!1;if(!_n)return oh(a),_n=!0,!1;var i;if((i=a.tag!==3)&&!(i=a.tag!==5)&&(i=a.type,i=i!=="head"&&i!=="body"&&!ba(a.type,a.memoizedProps)),i&&(i=mr)){if(Js(a))throw sh(),Error(n(418));for(;i;)Z1(a,i),i=wa(i.nextSibling)}if(oh(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));t:{for(a=a.nextSibling,i=0;a;){if(a.nodeType===8){var p=a.data;if(p==="/$"){if(i===0){mr=wa(a.nextSibling);break t}i--}else p!=="$"&&p!=="$!"&&p!=="$?"||i++}a=a.nextSibling}mr=null}}else mr=te?wa(a.stateNode.nextSibling):null;return!0}function sh(){for(var a=mr;a;)a=wa(a.nextSibling)}function Po(){mr=te=null,_n=!1}function fc(a){Ra===null?Ra=[a]:Ra.push(a)}var Er=_.ReactCurrentBatchConfig;function $r(a,i,p){if(a=p.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var P=p.stateNode}if(!P)throw Error(n(147,a));var j=P,U=""+a;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===U?i.ref:(i=function(nt){var ht=j.refs;nt===null?delete ht[U]:ht[U]=nt},i._stringRef=U,i)}if(typeof a!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,a))}return a}function Ca(a,i){throw a=Object.prototype.toString.call(i),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a))}function Su(a){var i=a._init;return i(a._payload)}function lh(a){function i(St,wt){if(a){var Ot=St.deletions;Ot===null?(St.deletions=[wt],St.flags|=16):Ot.push(wt)}}function p(St,wt){if(!a)return null;for(;wt!==null;)i(St,wt),wt=wt.sibling;return null}function P(St,wt){for(St=new Map;wt!==null;)wt.key!==null?St.set(wt.key,wt):St.set(wt.index,wt),wt=wt.sibling;return St}function j(St,wt){return St=gl(St,wt),St.index=0,St.sibling=null,St}function U(St,wt,Ot){return St.index=Ot,a?(Ot=St.alternate,Ot!==null?(Ot=Ot.index,Ot<wt?(St.flags|=2,wt):Ot):(St.flags|=2,wt)):(St.flags|=1048576,wt)}function nt(St){return a&&St.alternate===null&&(St.flags|=2),St}function ht(St,wt,Ot,Zt){return wt===null||wt.tag!==6?(wt=x2(Ot,St.mode,Zt),wt.return=St,wt):(wt=j(wt,Ot),wt.return=St,wt)}function vt(St,wt,Ot,Zt){var pe=Ot.type;return pe===G?Gt(St,wt,Ot.props.children,Zt,Ot.key):wt!==null&&(wt.elementType===pe||typeof pe
vendor: 17,252 bytes, line 6
6=="object"&&pe!==null&&pe.$$typeof===z&&Su(pe)===wt.type)?(Zt=j(wt,Ot.props),Zt.ref=$r(St,wt,Ot),Zt.return=St,Zt):(Zt=pf(Ot.type,Ot.key,Ot.props,null,St.mode,Zt),Zt.ref=$r(St,wt,Ot),Zt.return=St,Zt)}function Mt(St,wt,Ot,Zt){return wt===null||wt.tag!==4||wt.stateNode.containerInfo!==Ot.containerInfo||wt.stateNode.implementation!==Ot.implementation?(wt=C2(Ot,St.mode,Zt),wt.return=St,wt):(wt=j(wt,Ot.children||[]),wt.return=St,wt)}function Gt(St,wt,Ot,Zt,pe){return wt===null||wt.tag!==7?(wt=Sc(Ot,St.mode,Zt,pe),wt.return=St,wt):(wt=j(wt,Ot),wt.return=St,wt)}function Ut(St,wt,Ot){if(typeof wt=="string"&&wt!==""||typeof wt=="number")return wt=x2(""+wt,St.mode,Ot),wt.return=St,wt;if(typeof wt=="object"&&wt!==null){switch(wt.$$typeof){case k:return Ot=pf(wt.type,wt.key,wt.props,null,St.mode,Ot),Ot.ref=$r(St,null,wt),Ot.return=St,Ot;case R:return wt=C2(wt,St.mode,Ot),wt.return=St,wt;case z:var Zt=wt._init;return Ut(St,Zt(wt._payload),Ot)}if(Yt(wt)||tt(wt))return wt=Sc(wt,St.mode,Ot,null),wt.return=St,wt;Ca(St,wt)}return null}function zt(St,wt,Ot,Zt){var pe=wt!==null?wt.key:null;if(typeof Ot=="string"&&Ot!==""||typeof Ot=="number")return pe!==null?null:ht(St,wt,""+Ot,Zt);if(typeof Ot=="object"&&Ot!==null){switch(Ot.$$typeof){case k:return Ot.key===pe?vt(St,wt,Ot,Zt):null;case R:return Ot.key===pe?Mt(St,wt,Ot,Zt):null;case z:return pe=Ot._init,zt(St,wt,pe(Ot._payload),Zt)}if(Yt(Ot)||tt(Ot))return pe!==null?null:Gt(St,wt,Ot,Zt,null);Ca(St,Ot)}return null}function ie(St,wt,Ot,Zt,pe){if(typeof Zt=="string"&&Zt!==""||typeof Zt=="number")return St=St.get(Ot)||null,ht(wt,St,""+Zt,pe);if(typeof Zt=="object"&&Zt!==null){switch(Zt.$$typeof){case k:return St=St.get(Zt.key===null?Ot:Zt.key)||null,vt(wt,St,Zt,pe);case R:return St=St.get(Zt.key===null?Ot:Zt.key)||null,Mt(wt,St,Zt,pe);case z:var ye=Zt._init;return ie(St,wt,Ot,ye(Zt._payload),pe)}if(Yt(Zt)||tt(Zt))return St=St.get(Ot)||null,Gt(wt,St,Zt,pe,null);Ca(wt,Zt)}return null}function he(St,wt,Ot,Zt){for(var pe=null,ye=null,be=wt,Oe=wt=0,Hr=null;be!==null&&Oe<Ot.length;Oe++){be.index>Oe?(Hr=be,be=null):Hr=be.sibling;var rn=zt(St,be,Ot[Oe],Zt);if(rn===null){be===null&&(be=Hr);break}a&&be&&rn.alternate===null&&i(St,be),wt=U(rn,wt,Oe),ye===null?pe=rn:ye.sibling=rn,ye=rn,be=Hr}if(Oe===Ot.length)return p(St,be),_n&&cs(St,Oe),pe;if(be===null){for(;Oe<Ot.length;Oe++)be=Ut(St,Ot[Oe],Zt),be!==null&&(wt=U(be,wt,Oe),ye===null?pe=be:ye.sibling=be,ye=be);return _n&&cs(St,Oe),pe}for(be=P(St,be);Oe<Ot.length;Oe++)Hr=ie(be,St,Oe,Ot[Oe],Zt),Hr!==null&&(a&&Hr.alternate!==null&&be.delete(Hr.key===null?Oe:Hr.key),wt=U(Hr,wt,Oe),ye===null?pe=Hr:ye.sibling=Hr,ye=Hr);return a&&be.forEach(function(ml){return i(St,ml)}),_n&&cs(St,Oe),pe}function fe(St,wt,Ot,Zt){var pe=tt(Ot);if(typeof pe!="function")throw Error(n(150));if(Ot=pe.call(Ot),Ot==null)throw Error(n(151));for(var ye=pe=null,be=wt,Oe=wt=0,Hr=null,rn=Ot.next();be!==null&&!rn.done;Oe++,rn=Ot.next()){be.index>Oe?(Hr=be,be=null):Hr=be.sibling;var ml=zt(St,be,rn.value,Zt);if(ml===null){be===null&&(be=Hr);break}a&&be&&ml.alternate===null&&i(St,be),wt=U(ml,wt,Oe),ye===null?pe=ml:ye.sibling=ml,ye=ml,be=Hr}if(rn.done)return p(St,be),_n&&cs(St,Oe),pe;if(be===null){for(;!rn.done;Oe++,rn=Ot.next())rn=Ut(St,rn.value,Zt),rn!==null&&(wt=U(rn,wt,Oe),ye===null?pe=rn:ye.sibling=rn,ye=rn);return _n&&cs(St,Oe),pe}for(be=P(St,be);!rn.done;Oe++,rn=Ot.next())rn=ie(be,St,Oe,rn.value,Zt),rn!==null&&(a&&rn.alternate!==null&&be.delete(rn.key===null?Oe:rn.key),wt=U(rn,wt,Oe),ye===null?pe=rn:ye.sibling=rn,ye=rn);return a&&be.forEach(function(Qx){return i(St,Qx)}),_n&&cs(St,Oe),pe}function cr(St,wt,Ot,Zt){if(typeof Ot=="object"&&Ot!==null&&Ot.type===G&&Ot.key===null&&(Ot=Ot.props.children),typeof Ot=="object"&&Ot!==null){switch(Ot.$$typeof){case k:t:{for(var pe=Ot.key,ye=wt;ye!==null;){if(ye.key===pe){if(pe=Ot.type,pe===G){if(ye.tag===7){p(St,ye.sibling),wt=j(ye,Ot.props.children),wt.return=St,St=wt;break t}}else if(ye.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===z&&Su(pe)===ye.type){p(St,ye.sibling),wt=j(ye,Ot.props),wt.ref=$r(St,ye,Ot),wt.return=St,St=wt;break t}p(St,ye);break}else i(St,ye);ye=ye.sibling}Ot.type===G?(wt=Sc(Ot.props.children,St.mode,Zt,Ot.key),wt.return=St,St=wt):(Zt=pf(Ot.type,Ot.key,Ot.props,null,St.mode,Zt),Zt.ref=$r(St,wt,Ot),Zt.return=St,St=Zt)}return nt(St);case R:t:{for(ye=Ot.key;wt!==null;){if(wt.key===ye)if(wt.tag===4&&wt.stateNode.containerInfo===Ot.containerInfo&&wt.stateNode.implementation===Ot.implementation){p(St,wt.sibling),wt=j(wt,Ot.children||[]),wt.return=St,St=wt;break t}else{p(St,wt);break}else i(St,wt);wt=wt.sibling}wt=C2(Ot,St.mode,Zt),wt.return=St,St=wt}return nt(St);case z:return ye=Ot._init,cr(St,wt,ye(Ot._payload),Zt)}if(Yt(Ot))return he(St,wt,Ot,Zt);if(tt(Ot))return fe(St,wt,Ot,Zt);Ca(St,Ot)}return typeof Ot=="string"&&Ot!==""||typeof Ot=="number"?(Ot=""+Ot,wt!==null&&wt.tag===6?(p(St,wt.sibling),wt=j(wt,Ot),wt.return=St,St=wt):(p(St,wt),wt=x2(Ot,St.mode,Zt),wt.return=St,St=wt),nt(St)):p(St,wt)}return cr}var Fr=lh(!0),ch=lh(!1),Sa=Zi(null),_u=null,us=null,Eu=null;function Ou(){Eu=us=_u=null}function ku(a){var i=Sa.current;xn(Sa),a._currentValue=i}function tl(a,i,p){for(;a!==null;){var P=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,P!==null&&(P.childLanes|=i)):P!==null&&(P.childLanes&i)!==i&&(P.childLanes|=i),a===p)break;a=a.return}}function Xi(a,i){_u=a,Eu=us=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&i)!==0&&(st=!0),a.firstContext=null)}function Xr(a){var i=a._currentValue;if(Eu!==a)if(a={context:a,memoizedValue:i,next:null},us===null){if(_u===null)throw Error(n(308));us=a,_u.dependencies={lanes:0,firstContext:a}}else us=us.next=a;return i}var ki=null;function el(a){ki===null?ki=[a]:ki.push(a)}function nl(a,i,p,P){var j=i.interleaved;return j===null?(p.next=p,el(i)):(p.next=j.next,j.next=p),i.interleaved=p,si(a,P)}function si(a,i){a.lanes|=i;var p=a.alternate;for(p!==null&&(p.lanes|=i),p=a,a=a.return;a!==null;)a.childLanes|=i,p=a.alternate,p!==null&&(p.childLanes|=i),p=a,a=a.return;return p.tag===3?p.stateNode:null}var Pi=!1;function pc(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uh(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function li(a,i){return{eventTime:a,lane:i,tag:0,payload:null,callback:null,next:null}}function Mo(a,i,p){var P=a.updateQueue;if(P===null)return null;if(P=P.shared,(en&2)!==0){var j=P.pending;return j===null?i.next=i:(i.next=j.next,j.next=i),P.pending=i,si(a,p)}return j=P.interleaved,j===null?(i.next=i,el(P)):(i.next=j.next,j.next=i),P.interleaved=i,si(a,p)}function ds(a,i,p){if(i=i.updateQueue,i!==null&&(i=i.shared,(p&4194240)!==0)){var P=i.lanes;P&=a.pendingLanes,p|=P,i.lanes=p,po(a,p)}}function Pu(a,i){var p=a.updateQueue,P=a.alternate;if(P!==null&&(P=P.updateQueue,p===P)){var j=null,U=null;if(p=p.firstBaseUpdate,p!==null){do{var nt={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};U===null?j=U=nt:U=U.next=nt,p=p.next}while(p!==null);U===null?j=U=i:U=U.next=i}else j=U=i;p={baseState:P.baseState,firstBaseUpdate:j,lastBaseUpdate:U,shared:P.shared,effects:P.effects},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=i:a.next=i,p.lastBaseUpdate=i}function Nn(a,i,p,P){var j=a.updateQueue;Pi=!1;var U=j.firstBaseUpdate,nt=j.lastBaseUpdate,ht=j.shared.pending;if(ht!==null){j.shared.pending=null;var vt=ht,Mt=vt.next;vt.next=null,nt===null?U=Mt:nt.next=Mt,nt=vt;var Gt=a.alternate;Gt!==null&&(Gt=Gt.updateQueue,ht=Gt.lastBaseUpdate,ht!==nt&&(ht===null?Gt.firstBaseUpdate=Mt:ht.next=Mt,Gt.lastBaseUpdate=vt))}if(U!==null){var Ut=j.baseState;nt=0,Gt=Mt=vt=null,ht=U;do{var zt=ht.lane,ie=ht.eventTime;if((P&zt)===zt){Gt!==null&&(Gt=Gt.next={eventTime:ie,lane:0,tag:ht.tag,payload:ht.payload,callback:ht.callback,next:null});t:{var he=a,fe=ht;switch(zt=i,ie=p,fe.tag){case 1:if(he=fe.payload,typeof he=="function"){Ut=he.call(ie,Ut,zt);break t}Ut=he;break t;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,zt=typeof he=="function"?he.call(ie,Ut,zt):he,zt==null)break t;Ut=at({},Ut,zt);break t;case 2:Pi=!0}}ht.callback!==null&&ht.lane!==0&&(a.flags|=64,zt=j.effects,zt===null?j.effects=[ht]:zt.push(ht))}else ie={eventTime:ie,lane:zt,tag:ht.tag,payload:ht.payload,callback:ht.callback,next:null},Gt===null?(Mt=Gt=ie,vt=Ut):Gt=Gt.next=ie,nt|=zt;if(ht=ht.next,ht===null){if(ht=j.shared.pending,ht===null)break;zt=ht,ht=zt.next,zt.next=null,j.lastBaseUpdate=zt,j.shared.pending=null}}while(!0);if(Gt===null&&(vt=Ut),j.baseState=vt,j.firstBaseUpdate=Mt,j.lastBaseUpdate=Gt,i=j.shared.interleaved,i!==null){j=i;do nt|=j.lane,j=j.next;while(j!==i)}else U===null&&(j.shared.lanes=0);bc|=nt,a.lanes=nt,a.memoizedState=Ut}}function De(a,i,p){if(a=i.effects,i.effects=null,a!==null)for(i=0;i<a.length;i++){var P=a[i],j=P.callback;if(j!==null){if(P.callback=null,P=p,typeof j!="function")throw Error(n(191,j));j.call(P)}}}var Gn={},on=Zi(Gn),Vn=Zi(Gn),Or=Zi(Gn);function Fa(a){if(a===Gn)throw Error(n(174));return a}function Yn(a,i){switch(cn(Or,i),cn(Vn,a),cn(on,Gn),a=i.nodeType,a){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Fe(null,"");break;default:a=a===8?i.parentNode:i,i=a.namespaceURI||null,a=a.tagName,i=Fe(i,a)}xn(on),cn(on,i)}function Mi(){xn(on),xn(Vn),xn(Or)}function Lo(a){Fa(Or.current);var i=Fa(on.current),p=Fe(i,a.type);i!==p&&(cn(Vn,a),cn(on,p))}function rl(a){Vn.current===a&&(xn(on),xn(Vn))}var En=Zi(0);function To(a){for(var i=a;i!==null;){if(i.tag===13){var p=i.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Dr=[];function gc(){for(var a=0;a<Dr.length;a++)Dr[a]._workInProgressVersionPrimary=null;Dr.length=0}var al=_.ReactCurrentDispatcher,ci=_.ReactCurrentBatchConfig,Da=0,Cn=null,Zn=null,On=null,hs=!1,ja=!1,Ao=0,mc=0;function vr(){throw Error(n(321))}function il(a,i){if(i===null)return!1;for(var p=0;p<i.length&&p<a.length;p++)if(!ya(a[p],i[p]))return!1;return!0}function ol(a,i,p,P,j,U){if(Da=U,Cn=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,al.current=a===null||a.memoizedState===null?Fo:ju,a=p(P,j),ja){U=0;do{if(ja=!1,Ao=0,25<=U)throw Error(n(301));U+=1,On=Zn=null,i.updateQueue=null,al.current=ps,a=p(P,j)}while(ja)}if(al.current=Du,i=Zn!==null&&Zn.next!==null,Da=0,On=Zn=Cn=null,hs=!1,i)throw Error(n(300));return a}function yr(){var a=Ao!==0;return Ao=0,a}function kr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return On===null?Cn.memoizedState=On=a:On=On.next=a,On}function jn(){if(Zn===null){var a=Cn.alternate;a=a!==null?a.memoizedState:null}else a=Zn.next;var i=On===null?Cn.memoizedState:On.next;if(i!==null)On=i,Zn=a;else{if(a===null)throw Error(n(310));Zn=a,a={memoizedState:Zn.memoizedState,baseState:Zn.baseState,baseQueue:Zn.baseQueue,queue:Zn.queue,next:null},On===null?Cn.memoizedState=On=a:On=On.next=a}return On}function br(a,i){return typeof i=="function"?i(a):i}function Mu(a){var i=jn(),p=i.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=a;var P=Zn,j=P.baseQueue,U=p.pending;if(U!==null){if(j!==null){var nt=j.next;j.next=U.next,U.next=nt}P.baseQueue=j=U,p.pending=null}if(j!==null){U=j.next,P=P.baseState;var ht=nt=null,vt=null,Mt=U;do{var Gt=Mt.lane;if((Da&Gt)===Gt)vt!==null&&(vt=vt.next={lane:0,action:Mt.action,hasEagerState:Mt.hasEagerState,eagerState:Mt.eagerState,next:null}),P=Mt.hasEagerState?Mt.eagerState:a(P,Mt.action);else{var Ut={lane:Gt,action:Mt.action,hasEagerState:Mt.hasEagerState,eagerState:Mt.eagerState,next:null};vt===null?(ht=vt=Ut,nt=P):vt=vt.next=Ut,Cn.lanes|=Gt,bc|=Gt}Mt=Mt.next}while(Mt!==null&&Mt!==U);vt===null?nt=P:vt.next=ht,ya(P,i.memoizedState)||(st=!0),i.memoizedState=P,i.baseState=nt,i.baseQueue=vt,p.lastRenderedState=P}if(a=p.interleaved,a!==null){j=a;do U=j.lane,Cn.lanes|=U,bc|=U,j=j.next;while(j!==a)}else j===null&&(p.lanes=0);return[i.memoizedState,p.dispatch]}function vc(a){var i=jn(),p=i.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=a;var P=p.dispatch,j=p.pending,U=i.memoizedState;if(j!==null){p.pending=null;var nt=j=j.next;do U=a(U,nt.action),nt=nt.next;while(nt!==j);ya(U,i.memoizedState)||(st=!0),i.memoizedState=U,i.baseQueue===null&&(i.baseState=U),p.lastRenderedState=U}return[U,P]}function Lu(){}function K1(a,i){var p=Cn,P=jn(),j=i(),U=!ya(P.memoizedState,j);if(U&&(P.memoizedState=j,st=!0),P=P.queue,Nu(hh.bind(null,p,P,a),[a]),P.getSnapshot!==i||U||On!==null&&On.memoizedState.tag&1){if(p.flags|=2048,sl(9,dh.bind(null,p,P,j,i),void 0,null),Br===null)throw Error(n(349));(Da&30)!==0||qi(p,i,j)}return j}function qi(a,i,p){a.flags|=16384,a={getSnapshot:i,value:p},i=Cn.updateQueue,i===null?(i={lastEffect:null,stores:null},Cn.updateQueue=i,i.stores=[a]):(p=i.stores,p===null?i.stores=[a]:p.push(a))}function dh(a,i,p,P){i.value=p,i.getSnapshot=P,Tu(i)&&Io(a)}function hh(a,i,p){return p(function(){Tu(i)&&Io(a)})}function Tu(a){var i=a.getSnapshot;a=a.value;try{var p=i();return!ya(a,p)}catch{return!0}}function Io(a){var i=si(a,1);i!==null&&eo(i,a,1,-1)}function fh(a){var i=kr();return typeof a=="function"&&(a=a()),i.memoizedState=i.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:a},i.queue=a,a=a.dispatch=tf.bind(null,Cn,a),[i.memoizedState,a]}function sl(a,i,p,P){return a={tag:a,create:i,destroy:p,deps:P,next:null},i=Cn.updateQueue,i===null?(i={lastEffect:null,stores:null},Cn.updateQueue=i,i.lastEffect=a.next=a):(p=i.lastEffect,p===null?i.lastEffect=a.next=a:(P=p.next,p.next=a,a.next=P,i.lastEffect=a)),a}function Au(){return jn().memoizedState}function fs(a,i,p,P){var j=kr();Cn.flags|=a,j.memoizedState=sl(1|i,p,void 0,P===void 0?null:P)}function Iu(a,i,p,P){var j=jn();P=P===void 0?null:P;var U=void 0;if(Zn!==null){var nt=Zn.memoizedState;if(U=nt.destroy,P!==null&&il(P,nt.deps)){j.memoizedState=sl(i,p,U,P);return}}Cn.flags|=a,j.memoizedState=sl(1|i,p,U,P)}function $1(a,i){return fs(8390656,8,a,i)}function Nu(a,i){return Iu(2048,8,a,i)}function ph(a,i){return Iu(4,2,a,i)}function No(a,i){return Iu(4,4,a,i)}function X1(a,i){if(typeof i=="function")return a=a(),i(a),function(){i(null)};if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function Ro(a,i,p){return p=p!=null?p.concat([a]):null,Iu(4,4,X1.bind(null,i,a),p)}function Ru(){}function kn(a,i){var p=jn();i=i===void 0?null:i;var P=p.memoizedState;return P!==null&&i!==null&&il(i,P[1])?P[0]:(p.memoizedState=[a,i],a)}function q1(a,i){var p=jn();i=i===void 0?null:i;var P=p.memoizedState;return P!==null&&i!==null&&il(i,P[1])?P[0]:(a=a(),p.memoizedState=[a,i],a)}function gh(a,i,p){return(Da&21)===0?(a.baseState&&(a.baseState=!1,st=!0),a.memoizedState=p):(ya(p,i)||(p=ia(),Cn.lanes|=p,bc|=p,a.baseState=!0),i)}function a2(a,i){var p=Ke;Ke=p!==0&&4>p?p:4,a(!0);var P=ci.transition;ci.transition={};try{a(!1),i()}finally{Ke=p,ci.transition=P}}function Q1(){return jn().memoizedState}function J1(a,i,p){var P=fl(a);if(p={lane:P,action:p,hasEagerState:!1,eagerState:null,next:null},ef(a))_a(i,p);else if(p=nl(a,i,p,P),p!==null){var j=Ea();eo(p,a,P,j),Fu(p,i,P)}}function tf(a,i,p){var P=fl(a),j={lane:P,action:p,hasEagerState:!1,eagerState:null,next:null};if(ef(a))_a(i,j);else{var U=a.alternate;if(a.lanes===0&&(U===null||U.lanes===0)&&(U=i.lastRenderedReducer,U!==null))try{var nt=i.lastRenderedState,ht=U(nt,p);if(j.hasEagerState=!0,j.eagerState=ht,ya(ht,nt)){var vt=i.interleaved;vt===null?(j.next=j,el(i)):(j.next=vt.next,vt.next=j),i.interleaved=j;return}}catch{}p=nl(a,i,j,P),p!==null&&(j=Ea(),eo(p,a,P,j),Fu(p,i,P))}}function ef(a){var i=a.alternate;return a===Cn||i!==null&&i===Cn}function _a(a,i){ja=hs=!0;var p=a.pending;p===null?i.next=i:(i.next=p.next,p.next=i),a.pending=i}function Fu(a,i,p){if((p&4194240)!==0){var P=i.lanes;P&=a.pendingLanes,p|=P,i.lanes=p,po(a,p)}}var Du={readContext:Xr,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useInsertionEffect:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useSyncExternalStore:vr,useId:vr,unstable_isNewReconciler:!1},Fo={readContext:Xr,useCallback:function(a,i){return kr().memoizedState=[a,i===void 0?null:i],a},useContext:Xr,useEffect:$1,useImperativeHandle:function(a,i,p){return p=p!=null?p.concat([a]):null,fs(4194308,4,X1.bind(null,i,a),p)},useLayoutEffect:function(a,i){return fs(4194308,4,a,i)},useInsertionEffect:function(a,i){return fs(4,2,a,i)},useMemo:function(a,i){var p=kr();return i=i===void 0?null:i,a=a(),p.memoizedState=[a,i],a},useReducer:function(a,i,p){var P=kr();return i=p!==void 0?p(i):i,P.memoizedState=P.baseState=i,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:i},P.queue=a,a=a.dispatch=J1.bind(null,Cn,a),[P.memoizedState,a]}
vendor: 4,552 bytes, lines 6-8
6,useRef:function(a){var i=kr();return a={current:a},i.memoizedState=a},useState:fh,useDebugValue:Ru,useDeferredValue:function(a){return kr().memoizedState=a},useTransition:function(){var a=fh(!1),i=a[0];return a=a2.bind(null,a[1]),kr().memoizedState=a,[i,a]},useMutableSource:function(){},useSyncExternalStore:function(a,i,p){var P=Cn,j=kr();if(_n){if(p===void 0)throw Error(n(407));p=p()}else{if(p=i(),Br===null)throw Error(n(349));(Da&30)!==0||qi(P,i,p)}j.memoizedState=p;var U={value:p,getSnapshot:i};return j.queue=U,$1(hh.bind(null,P,U,a),[a]),P.flags|=2048,sl(9,dh.bind(null,P,U,p,i),void 0,null),p},useId:function(){var a=kr(),i=Br.identifierPrefix;if(_n){var p=$i,P=In;p=(P&~(1<<32-qn(P)-1)).toString(32)+p,i=":"+i+"R"+p,p=Ao++,0<p&&(i+="H"+p.toString(32)),i+=":"}else p=mc++,i=":"+i+"r"+p.toString(32)+":";return a.memoizedState=i},unstable_isNewReconciler:!1},ju={readContext:Xr,useCallback:kn,useContext:Xr,useEffect:Nu,useImperativeHandle:Ro,useInsertionEffect:ph,useLayoutEffect:No,useMemo:q1,useReducer:Mu,useRef:Au,useState:function(){return Mu(br)},useDebugValue:Ru,useDeferredValue:function(a){var i=jn();return gh(i,Zn.memoizedState,a)},useTransition:function(){var a=Mu(br)[0],i=jn().memoizedState;return[a,i]},useMutableSource:Lu,useSyncExternalStore:K1,useId:Q1,unstable_isNewReconciler:!1},ps={readContext:Xr,useCallback:kn,useContext:Xr,useEffect:Nu,useImperativeHandle:Ro,useInsertionEffect:ph,useLayoutEffect:No,useMemo:q1,useReducer:vc,useRef:Au,useState:function(){return vc(br)},useDebugValue:Ru,useDeferredValue:function(a){var i=jn();return Zn===null?i.memoizedState=a:gh(i,Zn.memoizedState,a)},useTransition:function(){var a=vc(br)[0],i=jn().memoizedState;return[a,i]},useMutableSource:Lu,useSyncExternalStore:K1,useId:Q1,unstable_isNewReconciler:!1};function la(a,i){if(a&&a.defaultProps){i=at({},i),a=a.defaultProps;for(var p in a)i[p]===void 0&&(i[p]=a[p]);return i}return i}function yc(a,i,p,P){i=a.memoizedState,p=p(P,i),p=p==null?i:at({},i,p),a.memoizedState=p,a.lanes===0&&(a.updateQueue.baseState=p)}var ll={isMounted:function(a){return(a=a._reactInternals)?ra(a)===a:!1},enqueueSetState:function(a,i,p){a=a._reactInternals;var P=Ea(),j=fl(a),U=li(P,j);U.payload=i,p!=null&&(U.callback=p),i=Mo(a,U,j),i!==null&&(eo(i,a,j,P),ds(i,a,j))},enqueueReplaceState:function(a,i,p){a=a._reactInternals;var P=Ea(),j=fl(a),U=li(P,j);U.tag=1,U.payload=i,p!=null&&(U.callback=p),i=Mo(a,U,j),i!==null&&(eo(i,a,j,P),ds(i,a,j))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var p=Ea(),P=fl(a),j=li(p,P);j.tag=2,i!=null&&(j.callback=i),i=Mo(a,j,P),i!==null&&(eo(i,a,P,p),ds(i,a,P))}};function nf(a,i,p,P,j,U,nt){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(P,U,nt):i.prototype&&i.prototype.isPureReactComponent?!ri(p,P)||!ri(j,U):!0}function mh(a,i,p){var P=!1,j=Ki,U=i.contextType;return typeof U=="object"&&U!==null?U=Xr(U):(j=Rr(i)?Eo:pr.current,P=i.contextTypes,U=(P=P!=null)?Oo(a,j):Ki),i=new i(p,U),a.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ll,a.stateNode=i,i._reactInternals=a,P&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=j,a.__reactInternalMemoizedMaskedChildContext=U),i}function vh(a,i,p,P){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(p,P),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(p,P),i.state!==a&&ll.enqueueReplaceState(i,i.state,null)}function Bu(a,i,p,P){var j=a.stateNode;j.props=p,j.state=a.memoizedState,j.refs={},pc(a);var U=i.contextType;typeof U=="object"&&U!==null?j.context=Xr(U):(U=Rr(i)?Eo:pr.current,j.context=Oo(a,U)),j.state=a.memoizedState,U=i.getDerivedStateFromProps,typeof U=="function"&&(yc(a,i,U,p),j.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(i=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),i!==j.state&&ll.enqueueReplaceState(j,j.state,null),Nn(a,p,j,P),j.state=a.memoizedState),typeof j.componentDidMount=="function"&&(a.flags|=4194308)}function gs(a,i){try{var p="",P=i;do p+=ft(P),P=P.return;while(P);var j=p}catch(U){j=`
7Error generating stack: `+U.message+`
8`+U.stack}return{value:a,source:i,stack:j,digest:null}}function cl(a,i,p){return{value:a,source:null,stack:p??null,digest:i??null}}function yh(a,i){try{console.error(i.value)}
vendor: 54,626 bytes, line 8
8catch(p){setTimeout(function(){throw p})}}var i2=typeof WeakMap=="function"?WeakMap:Map;function l(a,i,p){p=li(-1,p),p.tag=3,p.payload={element:null};var P=i.value;return p.callback=function(){lf||(lf=!0,f2=P),yh(a,i)},p}function u(a,i,p){p=li(-1,p),p.tag=3;var P=a.type.getDerivedStateFromError;if(typeof P=="function"){var j=i.value;p.payload=function(){return P(j)},p.callback=function(){yh(a,i)}}var U=a.stateNode;return U!==null&&typeof U.componentDidCatch=="function"&&(p.callback=function(){yh(a,i),typeof P!="function"&&(dl===null?dl=new Set([this]):dl.add(this));var nt=i.stack;this.componentDidCatch(i.value,{componentStack:nt!==null?nt:""})}),p}function O(a,i,p){var P=a.pingCache;if(P===null){P=a.pingCache=new i2;var j=new Set;P.set(i,j)}else j=P.get(i),j===void 0&&(j=new Set,P.set(i,j));j.has(p)||(j.add(p),a=zx.bind(null,a,i,p),i.then(a,a))}function F(a){do{var i;if((i=a.tag===13)&&(i=a.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return a;a=a.return}while(a!==null);return null}function H(a,i,p,P,j){return(a.mode&1)===0?(a===i?a.flags|=65536:(a.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(i=li(-1,1),i.tag=2,Mo(p,i,1))),p.lanes|=1),a):(a.flags|=65536,a.lanes=j,a)}var K=_.ReactCurrentOwner,st=!1;function bt(a,i,p,P){i.child=a===null?ch(i,null,p,P):Fr(i,a.child,p,P)}function Lt(a,i,p,P,j){p=p.render;var U=i.ref;return Xi(i,j),P=ol(a,i,p,P,U,j),p=yr(),a!==null&&!st?(i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~j,Qi(a,i,j)):(_n&&p&&gr(i),i.flags|=1,bt(a,i,P,j),i.child)}function Wt(a,i,p,P,j){if(a===null){var U=p.type;return typeof U=="function"&&!w2(U)&&U.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(i.tag=15,i.type=U,ce(a,i,U,P,j)):(a=pf(p.type,null,P,i,i.mode,j),a.ref=i.ref,a.return=i,i.child=a)}if(U=a.child,(a.lanes&j)===0){var nt=U.memoizedProps;if(p=p.compare,p=p!==null?p:ri,p(nt,P)&&a.ref===i.ref)return Qi(a,i,j)}return i.flags|=1,a=gl(U,P),a.ref=i.ref,a.return=i,i.child=a}function ce(a,i,p,P,j){if(a!==null){var U=a.memoizedProps;if(ri(U,P)&&a.ref===i.ref)if(st=!1,i.pendingProps=P=U,(a.lanes&j)!==0)(a.flags&131072)!==0&&(st=!0);else return i.lanes=a.lanes,Qi(a,i,j)}return yn(a,i,p,P,j)}function Pe(a,i,p){var P=i.pendingProps,j=P.children,U=a!==null?a.memoizedState:null;if(P.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},cn(zu,di),di|=p;else{if((p&1073741824)===0)return a=U!==null?U.baseLanes|p:p,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:a,cachePool:null,transitions:null},i.updateQueue=null,cn(zu,di),di|=a,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},P=U!==null?U.baseLanes:p,cn(zu,di),di|=P}else U!==null?(P=U.baseLanes|p,i.memoizedState=null):P=p,cn(zu,di),di|=P;return bt(a,i,j,p),i.child}function re(a,i){var p=i.ref;(a===null&&p!==null||a!==null&&a.ref!==p)&&(i.flags|=512,i.flags|=2097152)}function yn(a,i,p,P,j){var U=Rr(p)?Eo:pr.current;return U=Oo(i,U),Xi(i,j),p=ol(a,i,p,P,U,j),P=yr(),a!==null&&!st?(i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~j,Qi(a,i,j)):(_n&&P&&gr(i),i.flags|=1,bt(a,i,p,j),i.child)}function un(a,i,p,P,j){if(Rr(p)){var U=!0;Cu(i)}else U=!1;if(Xi(i,j),i.stateNode===null)ui(a,i),mh(i,p,P),Bu(i,p,P,j),P=!0;else if(a===null){var nt=i.stateNode,ht=i.memoizedProps;nt.props=ht;var vt=nt.context,Mt=p.contextType;typeof Mt=="object"&&Mt!==null?Mt=Xr(Mt):(Mt=Rr(p)?Eo:pr.current,Mt=Oo(i,Mt));var Gt=p.getDerivedStateFromProps,Ut=typeof Gt=="function"||typeof nt.getSnapshotBeforeUpdate=="function";Ut||typeof nt.UNSAFE_componentWillReceiveProps!="function"&&typeof nt.componentWillReceiveProps!="function"||(ht!==P||vt!==Mt)&&vh(i,nt,P,Mt),Pi=!1;var zt=i.memoizedState;nt.state=zt,Nn(i,P,nt,j),vt=i.memoizedState,ht!==P||zt!==vt||Zr.current||Pi?(typeof Gt=="function"&&(yc(i,p,Gt,P),vt=i.memoizedState),(ht=Pi||nf(i,p,ht,P,zt,vt,Mt))?(Ut||typeof nt.UNSAFE_componentWillMount!="function"&&typeof nt.componentWillMount!="function"||(typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount()),typeof nt.componentDidMount=="function"&&(i.flags|=4194308)):(typeof nt.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=P,i.memoizedState=vt),nt.props=P,nt.state=vt,nt.context=Mt,P=ht):(typeof nt.componentDidMount=="function"&&(i.flags|=4194308),P=!1)}else{nt=i.stateNode,uh(a,i),ht=i.memoizedProps,Mt=i.type===i.elementType?ht:la(i.type,ht),nt.props=Mt,Ut=i.pendingProps,zt=nt.context,vt=p.contextType,typeof vt=="object"&&vt!==null?vt=Xr(vt):(vt=Rr(p)?Eo:pr.current,vt=Oo(i,vt));var ie=p.getDerivedStateFromProps;(Gt=typeof ie=="function"||typeof nt.getSnapshotBeforeUpdate=="function")||typeof nt.UNSAFE_componentWillReceiveProps!="function"&&typeof nt.componentWillReceiveProps!="function"||(ht!==Ut||zt!==vt)&&vh(i,nt,P,vt),Pi=!1,zt=i.memoizedState,nt.state=zt,Nn(i,P,nt,j);var he=i.memoizedState;ht!==Ut||zt!==he||Zr.current||Pi?(typeof ie=="function"&&(yc(i,p,ie,P),he=i.memoizedState),(Mt=Pi||nf(i,p,Mt,P,zt,he,vt)||!1)?(Gt||typeof nt.UNSAFE_componentWillUpdate!="function"&&typeof nt.componentWillUpdate!="function"||(typeof nt.componentWillUpdate=="function"&&nt.componentWillUpdate(P,he,vt),typeof nt.UNSAFE_componentWillUpdate=="function"&&nt.UNSAFE_componentWillUpdate(P,he,vt)),typeof nt.componentDidUpdate=="function"&&(i.flags|=4),typeof nt.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof nt.componentDidUpdate!="function"||ht===a.memoizedProps&&zt===a.memoizedState||(i.flags|=4),typeof nt.getSnapshotBeforeUpdate!="function"||ht===a.memoizedProps&&zt===a.memoizedState||(i.flags|=1024),i.memoizedProps=P,i.memoizedState=he),nt.props=P,nt.state=he,nt.context=vt,P=Mt):(typeof nt.componentDidUpdate!="function"||ht===a.memoizedProps&&zt===a.memoizedState||(i.flags|=4),typeof nt.getSnapshotBeforeUpdate!="function"||ht===a.memoizedProps&&zt===a.memoizedState||(i.flags|=1024),P=!1)}return jr(a,i,p,P,U,j)}function jr(a,i,p,P,j,U){re(a,i);var nt=(i.flags&128)!==0;if(!P&&!nt)return j&&ah(i,p,!1),Qi(a,i,U);P=i.stateNode,K.current=i;var ht=nt&&typeof p.getDerivedStateFromError!="function"?null:P.render();return i.flags|=1,a!==null&&nt?(i.child=Fr(i,a.child,null,U),i.child=Fr(i,null,ht,U)):bt(a,i,ht,U),i.memoizedState=P.state,j&&ah(i,p,!0),i.child}function Li(a){var i=a.stateNode;i.pendingContext?xu(a,i.pendingContext,i.pendingContext!==i.context):i.context&&xu(a,i.context,!1),Yn(a,i.containerInfo)}function kt(a,i,p,P,j){return Po(),fc(j),i.flags|=256,bt(a,i,p,P),i.child}var Ct={dehydrated:null,treeContext:null,retryLane:0};function At(a){return{baseLanes:a,cachePool:null,transitions:null}}function ae(a,i,p){var P=i.pendingProps,j=En.current,U=!1,nt=(i.flags&128)!==0,ht;if((ht=nt)||(ht=a!==null&&a.memoizedState===null?!1:(j&2)!==0),ht?(U=!0,i.flags&=-129):(a===null||a.memoizedState!==null)&&(j|=1),cn(En,j&1),a===null)return dc(i),a=i.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((i.mode&1)===0?i.lanes=1:a.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(nt=P.children,a=P.fallback,U?(P=i.mode,U=i.child,nt={mode:"hidden",children:nt},(P&1)===0&&U!==null?(U.childLanes=0,U.pendingProps=nt):U=gf(nt,P,0,null),a=Sc(a,P,p,null),U.return=i,a.return=i,U.sibling=a,i.child=U,i.child.memoizedState=At(p),i.memoizedState=Ct,a):me(i,nt));if(j=a.memoizedState,j!==null&&(ht=j.dehydrated,ht!==null))return Te(a,i,nt,P,ht,j,p);if(U){U=P.fallback,nt=i.mode,j=a.child,ht=j.sibling;var vt={mode:"hidden",children:P.children};return(nt&1)===0&&i.child!==j?(P=i.child,P.childLanes=0,P.pendingProps=vt,i.deletions=null):(P=gl(j,vt),P.subtreeFlags=j.subtreeFlags&14680064),ht!==null?U=gl(ht,U):(U=Sc(U,nt,p,null),U.flags|=2),U.return=i,P.return=i,P.sibling=U,i.child=P,P=U,U=i.child,nt=a.child.memoizedState,nt=nt===null?At(p):{baseLanes:nt.baseLanes|p,cachePool:null,transitions:nt.transitions},U.memoizedState=nt,U.childLanes=a.childLanes&~p,i.memoizedState=Ct,P}return U=a.child,a=U.sibling,P=gl(U,{mode:"visible",children:P.children}),(i.mode&1)===0&&(P.lanes=p),P.return=i,P.sibling=null,a!==null&&(p=i.deletions,p===null?(i.deletions=[a],i.flags|=16):p.push(a)),i.child=P,i.memoizedState=null,P}function me(a,i){return i=gf({mode:"visible",children:i},a.mode,0,null),i.return=a,a.child=i}function Le(a,i,p,P){return P!==null&&fc(P),Fr(i,a.child,null,p),a=me(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function Te(a,i,p,P,j,U,nt){if(p)return i.flags&256?(i.flags&=-257,P=cl(Error(n(422))),Le(a,i,nt,P)):i.memoizedState!==null?(i.child=a.child,i.flags|=128,null):(U=P.fallback,j=i.mode,P=gf({mode:"visible",children:P.children},j,0,null),U=Sc(U,j,nt,null),U.flags|=2,P.return=i,U.return=i,P.sibling=U,i.child=P,(i.mode&1)!==0&&Fr(i,a.child,null,nt),i.child.memoizedState=At(nt),i.memoizedState=Ct,U);if((i.mode&1)===0)return Le(a,i,nt,null);if(j.data==="$!"){if(P=j.nextSibling&&j.nextSibling.dataset,P)var ht=P.dgst;return P=ht,U=Error(n(419)),P=cl(U,P,void 0),Le(a,i,nt,P)}if(ht=(nt&a.childLanes)!==0,st||ht){if(P=Br,P!==null){switch(nt&-nt){case 4:j=2;break;case 16:j=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:j=32;break;case 536870912:j=268435456;break;default:j=0}j=(j&(P.suspendedLanes|nt))!==0?0:j,j!==0&&j!==U.retryLane&&(U.retryLane=j,si(a,j),eo(P,a,j,-1))}return b2(),P=cl(Error(n(421))),Le(a,i,nt,P)}return j.data==="$?"?(i.flags|=128,i.child=a.child,i=Gx.bind(null,a),j._reactRetry=i,null):(a=U.treeContext,mr=wa(j.nextSibling),te=i,_n=!0,Ra=null,a!==null&&(Kr[xa++]=In,Kr[xa++]=$i,Kr[xa++]=oi,In=a.id,$i=a.overflow,oi=i),i=me(i,P.children),i.flags|=4096,i)}function Je(a,i,p){a.lanes|=i;var P=a.alternate;P!==null&&(P.lanes|=i),tl(a.return,i,p)}function tr(a,i,p,P,j){var U=a.memoizedState;U===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:P,tail:p,tailMode:j}:(U.isBackwards=i,U.rendering=null,U.renderingStartTime=0,U.last=P,U.tail=p,U.tailMode=j)}function tn(a,i,p){var P=i.pendingProps,j=P.revealOrder,U=P.tail;if(bt(a,i,P.children,p),P=En.current,(P&2)!==0)P=P&1|2,i.flags|=128;else{if(a!==null&&(a.flags&128)!==0)t:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Je(a,p,i);else if(a.tag===19)Je(a,p,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break t;for(;a.sibling===null;){if(a.return===null||a.return===i)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}P&=1}if(cn(En,P),(i.mode&1)===0)i.memoizedState=null;else switch(j){case"forwards":for(p=i.child,j=null;p!==null;)a=p.alternate,a!==null&&To(a)===null&&(j=p),p=p.sibling;p=j,p===null?(j=i.child,i.child=null):(j=p.sibling,p.sibling=null),tr(i,!1,j,p,U);break;case"backwards":for(p=null,j=i.child,i.child=null;j!==null;){if(a=j.alternate,a!==null&&To(a)===null){i.child=j;break}a=j.sibling,j.sibling=p,p=j,j=a}tr(i,!0,p,null,U);break;case"together":tr(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ui(a,i){(i.mode&1)===0&&a!==null&&(a.alternate=null,i.alternate=null,i.flags|=2)}function Qi(a,i,p){if(a!==null&&(i.dependencies=a.dependencies),bc|=i.lanes,(p&i.childLanes)===0)return null;if(a!==null&&i.child!==a.child)throw Error(n(153));if(i.child!==null){for(a=i.child,p=gl(a,a.pendingProps),i.child=p,p.return=i;a.sibling!==null;)a=a.sibling,p=p.sibling=gl(a,a.pendingProps),p.return=i;p.sibling=null}return i.child}function Lx(a,i,p){switch(i.tag){case 3:Li(i),Po();break;case 5:Lo(i);break;case 1:Rr(i.type)&&Cu(i);break;case 4:Yn(i,i.stateNode.containerInfo);break;case 10:var P=i.type._context,j=i.memoizedProps.value;cn(Sa,P._currentValue),P._currentValue=j;break;case 13:if(P=i.memoizedState,P!==null)return P.dehydrated!==null?(cn(En,En.current&1),i.flags|=128,null):(p&i.child.childLanes)!==0?ae(a,i,p):(cn(En,En.current&1),a=Qi(a,i,p),a!==null?a.sibling:null);cn(En,En.current&1);break;case 19:if(P=(p&i.childLanes)!==0,(a.flags&128)!==0){if(P)return tn(a,i,p);i.flags|=128}if(j=i.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),cn(En,En.current),P)break;return null;case 22:case 23:return i.lanes=0,Pe(a,i,p)}return Qi(a,i,p)}var W3,o2,V3,Y3;W3=function(a,i){for(var p=i.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===i)break;for(;p.sibling===null;){if(p.return===null||p.return===i)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},o2=function(){},V3=function(a,i,p,P){var j=a.memoizedProps;if(j!==P){a=i.stateNode,Fa(on.current);var U=null;switch(p){case"input":j=Ht(a,j),P=Ht(a,P),U=[];break;case"select":j=at({},j,{value:void 0}),P=at({},P,{value:void 0}),U=[];break;case"textarea":j=ne(a,j),P=ne(a,P),U=[];break;default:typeof j.onClick!="function"&&typeof P.onClick=="function"&&(a.onclick=mu)}bn(p,P);var nt;p=null;for(Mt in j)if(!P.hasOwnProperty(Mt)&&j.hasOwnProperty(Mt)&&j[Mt]!=null)if(Mt==="style"){var ht=j[Mt];for(nt in ht)ht.hasOwnProperty(nt)&&(p||(p={}),p[nt]="")}else Mt!=="dangerouslySetInnerHTML"&&Mt!=="children"&&Mt!=="suppressContentEditableWarning"&&Mt!=="suppressHydrationWarning"&&Mt!=="autoFocus"&&(s.hasOwnProperty(Mt)?U||(U=[]):(U=U||[]).push(Mt,null));for(Mt in P){var vt=P[Mt];if(ht=j?.[Mt],P.hasOwnProperty(Mt)&&vt!==ht&&(vt!=null||ht!=null))if(Mt==="style")if(ht){for(nt in ht)!ht.hasOwnProperty(nt)||vt&&vt.hasOwnProperty(nt)||(p||(p={}),p[nt]="");for(nt in vt)vt.hasOwnProperty(nt)&&ht[nt]!==vt[nt]&&(p||(p={}),p[nt]=vt[nt])}else p||(U||(U=[]),U.push(Mt,p)),p=vt;else Mt==="dangerouslySetInnerHTML"?(vt=vt?vt.__html:void 0,ht=ht?ht.__html:void 0,vt!=null&&ht!==vt&&(U=U||[]).push(Mt,vt)):Mt==="children"?typeof vt!="string"&&typeof vt!="number"||(U=U||[]).push(Mt,""+vt):Mt!=="suppressContentEditableWarning"&&Mt!=="suppressHydrationWarning"&&(s.hasOwnProperty(Mt)?(vt!=null&&Mt==="onScroll"&&wn("scroll",a),U||ht===vt||(U=[])):(U=U||[]).push(Mt,vt))}p&&(U=U||[]).push("style",p);var Mt=U;(i.updateQueue=Mt)&&(i.flags|=4)}},Y3=function(a,i,p,P){p!==P&&(i.flags|=4)};function bh(a,i){if(!_n)switch(a.tailMode){case"hidden":i=a.tail;for(var p=null;i!==null;)i.alternate!==null&&(p=i),i=i.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var P=null;p!==null;)p.alternate!==null&&(P=p),p=p.sibling;P===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:P.sibling=null}}function ca(a){var i=a.alternate!==null&&a.alternate.child===a.child,p=0,P=0;if(i)for(var j=a.child;j!==null;)p|=j.lanes|j.childLanes,P|=j.subtreeFlags&14680064,P|=j.flags&14680064,j.return=a,j=j.sibling;else for(j=a.child;j!==null;)p|=j.lanes|j.childLanes,P|=j.subtreeFlags,P|=j.flags,j.return=a,j=j.sibling;return a.subtreeFlags|=P,a.childLanes=p,i}function Tx(a,i,p){var P=i.pendingProps;switch(ih(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ca(i),null;case 1:return Rr(i.type)&&sc(),ca(i),null;case 3:return P=i.stateNode,Mi(),xn(Zr),xn(pr),gc(),P.pendingContext&&(P.context=P.pendingContext,P.pendingContext=null),(a===null||a.child===null)&&(hc(i)?i.flags|=4:a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Ra!==null&&(m2(Ra),Ra=null))),o2(a,i),ca(i),null;case 5:rl(i);var j=Fa(Or.current);if(p=i.type,a!==null&&i.stateNode!=null)V3(a,i,p,P,j),a.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!P){if(i.stateNode===null)throw Error(n(166));return ca(i),null}if(a=Fa(on.current),hc(i)){P=i.stateNode,p=i.type;var U=i.memoizedProps;switch(P[Si]=i,P[Xs]=U,a=(i.mode&1)!==0,p){case"dialog":wn("cancel",P),wn("close",P);break;case"iframe":case"object":case"embed":wn("load",P);break;case"video":case"audio":for(j=0;j<Ys.length;j++)wn(Ys[j],P);break;case"source":wn("error",P);break;case"img":case"image":case"link":wn("error",P),wn("load",P);break;case"details":wn("toggle",P);break;case"input":It(P,U),wn("invalid",P);break;case"select":P._wrapperState={wasMultiple:!!U.multiple},wn("invalid",P);break;case"textarea":ue(P,U),wn("invalid",P)}bn(p,U),j=null;for(var nt in U)if(U.hasOwnProperty(nt)){var ht=U[nt];nt==="children"?typeof ht=="string"?P.textContent!==ht&&(U.suppressHydrationWarning!==!0&&as(P.textContent,ht,a),j=["children",ht]):typeof ht=="number"&&P.textContent!==""+ht&&(U.suppressHydrationWarning!==!0&&as(P.textContent,ht,a),j=["children",""+ht]):s.hasOwnProperty(nt)&&ht!=null&&nt==="onScroll"&&wn("scroll",P)}switch(p){case"input":yt(P),ee(P,U,!0);break;case"textarea":yt(P),$t(P);break;case"select":case"option":break;default:typeof U.onClick=="function"&&(P.onclick=mu)}P=j,i.updateQueue=P,P!==null&&(i.flags|=4)}else{nt=j.nodeType===9?j:j.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=we(p)),a==="http://www.w3.org/1999/xhtml"?p==="script"?(a=nt.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof P.is=="string"?a=nt.createElement(p,{is:P.is}):(a=nt.createElement(p),p==="select"&&(nt=a,P.multiple?nt.multiple=!0:P.size&&(nt.size=P.size))):a=nt.createElementNS(a,p),a[Si]=i,a[Xs]=P,W3(a,i,!1,!1),i.stateNode=a;t:{switch(nt=Ur(p,P),p){case"dialog":wn("cancel",a),wn("close",a),j=P;break;case"iframe":case"object":case"embed":wn("load",a),j=P;break;case"video":case"audio":for(j=0;j<Ys.length;j++)wn(Ys[j],a);j=P;break;case"source":wn("error",a),j=P;break;case"img":case"image":case"link":wn("error",a),wn("load",a),j=P;break;case"details":wn("toggle",a),j=P;break;case"input":It(a,P),j=Ht(a,P),wn("invalid",a);break;case"option":j=P;break;case"select":a._wrapperState={wasMultiple:!!P.multiple},j=at({},P,{value:void 0}),wn("invalid",a);break;case"textarea":ue(a,P),j=ne(a,P),wn("invalid",a);break;default:j=P}bn(p,j),ht=j;for(U in ht)if(ht.hasOwnProperty(U)){var vt=ht[U];U==="style"?Ge(a,vt):U==="dangerouslySetInnerHTML"?(vt=vt?vt.__html:void 0,vt!=null&&pn(a,vt)):U==="children"?typeof vt=="string"?(p!=="textarea"||vt!=="")&&jt(a,vt):typeof vt=="number"&&jt(a,""+vt):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(s.hasOwnProperty(U)?vt!=null&&U==="onScroll"&&wn("scroll",a):vt!=null&&m(a,U,vt,nt))}switch(p){case"input":yt(a),ee(a,P,!1);break;case"textarea":yt(a),$t(a);break;case"option":P.value!=null&&a.setAttribute("value",""+J(P.value));break;case"select":a.multiple=!!P.multiple,U=P.value,U!=null?oe(a,!!P.multiple,U,!1):P.defaultValue!=null&&oe(a,!!P.multiple,P.defaultValue,!0);break;default:typeof j.onClick=="function"&&(a.onclick=mu)}switch(p){case"button":case"input":case"select":case"textarea":P=!!P.autoFocus;break t;case"img":P=!0;break t;default:P=!1}}P&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return ca(i),null;case 6:if(a&&i.stateNode!=null)Y3(a,i,a.memoizedProps,P);else{if(typeof P!="string"&&i.stateNode===null)throw Error(n(166));if(p=Fa(Or.current),Fa(on.current),hc(i)){if(P=i.stateNode,p=i.memoizedProps,P[Si]=i,(U=P.nodeValue!==p)&&(a=te,a!==null))switch(a.tag){case 3:as(P.nodeValue,p,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&as(P.nodeValue,p,(a.mode&1)!==0)}U&&(i.flags|=4)}else P=(p.nodeType===9?p:p.ownerDocument).createTextNode(P),P[Si]=i,i.stateNode=P}return ca(i),null;case 13:if(xn(En),P=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(_n&&mr!==null&&(i.mode&1)!==0&&(i.flags&128)===0)sh(),Po(),i.flags|=98560,U=!1;else if(U=hc(i),P!==null&&P.dehydrated!==null){if(a===null){if(!U)throw Error(n(318));if(U=i.memoizedState,U=U!==null?U.dehydrated:null,!U)throw Error(n(317));U[Si]=i}else Po(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ca(i),U=!1}else Ra!==null&&(m2(Ra),Ra=null),U=!0;if(!U)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=p,i):(P=P!==null,P!==(a!==null&&a.memoizedState!==null)&&P&&(i.child.flags|=8192,(i.mode&1)!==0&&(a===null||(En.current&1)!==0?Pr===0&&(Pr=3):b2())),i.updateQueue!==null&&(i.flags|=4),ca(i),null);case 4:return Mi(),o2(a,i),a===null&&Ks(i.stateNode.containerInfo),ca(i),null;case 10:return ku(i.type._context),ca(i),null;case 17:return Rr(i.type)&&sc(),ca(i),null;case 19:if(xn(En),U=i.memoizedState,U===null)return ca(i),null;if(P=(i.flags&128)!==0,nt=U.rendering,nt===null)if(P)bh(U,!1);else{if(Pr!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(nt=To(a),nt!==null){for(i.flags|=128,bh(U,!1),P=nt.updateQueue,P!==null&&(i.updateQueue=P,i.flags|=4),i.subtreeFlags=0,P=p,p=i.child;p!==null;)U=p,a=P,U.flags&=14680066,nt=U.alternate,nt===null?(U.childLanes=0,U.lanes=a,U.child=null,U.subtreeFlags=0,U.memoizedProps=null,U.memoizedState=null,U.updateQueue=null,U.dependencies=null,U.stateNode=null):(U.childLanes=nt.childLanes,U.lanes=nt.lanes,U.child=nt.child,U.subtreeFlags=0,U.deletions=null,U.memoizedProps=nt.memoizedProps,U.memoizedState=nt.memoizedState,U.updateQueue=nt.updateQueue,U.type=nt.type,a=nt.dependencies,U.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),p=p.sibling;return cn(En,En.current&1|2),i.child}a=a.sibling}U.tail!==null&&mn()>Gu&&(i.flags|=128,P=!0,bh(U,!1),i.lanes=4194304)}else{if(!P)if(a=To(nt),a!==null){if(i.flags|=128,P=!0,p=a.updateQueue,p!==null&&(i.updateQueue=p,i.flags|=4),bh(U,!0),U.tail===null&&U.tailMode==="hidden"&&!nt.alternate&&!_n)return ca(i),null}else 2*mn()-U.renderingStartTime>Gu&&p!==1073741824&&(i.flags|=128,P=!0,bh(U,!1),i.lanes=4194304);U.isBackwards?(nt.sibling=i.child,i.child=nt):(p=U.last,p!==null?p.sibling=nt:i.child=nt,U.last=nt)}return U.tail!==null?(i=U.tail,U.rendering=i,U.tail=i.sibling,U.renderingStartTime=mn(),i.sibling=null,p=En.current,cn(En,P?p&1|2:p&1),i):(ca(i),null);case 22:case 23:return y2(),P=i.memoizedState!==null,a!==null&&a.memoizedState!==null!==P&&(i.flags|=8192),P&&(i.mode&1)!==0?(di&1073741824)!==0&&(ca(i),i.subtreeFlags&6&&(i.flags|=8192)):ca(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function Ax(a,i){switch(ih(i),i.tag){case 1:return Rr(i.type)&&sc(),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Mi(),xn(Zr),xn(pr),gc(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 5:return rl(i),null;case 13:if(xn(En),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Po()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return xn(En),null;case 4:return Mi(),null;case 10:return ku(i.type._context),null;case 22:case 23:return y2(),null;case 24:return null;default:return null}}var rf=!1,ua=!1,Ix=typeof WeakSet=="function"?WeakSet:Set,de=null;function Hu(a,i){var p=a.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(P){er(a,i,P)}else p.current=null}function Z3(a,i,p){try{p()}catch(P){er(a,i,P)}}var K3=!1;function Nx(a,i){if(eh=ut,a=Xl(),es(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else t:{p=(p=a.ownerDocument)&&p.defaultView||window;var P=p.getSelection&&p.getSelection();if(P&&P.rangeCount!==0){p=P.anchorNode;var j=P.anchorOffset,U=P.focusNode;P=P.focusOffset;try{p.nodeType,U.nodeType}catch{p=null;break t}var nt=0,ht=-1,vt=-1,Mt=0,Gt=0,Ut=a,zt=null;e:for(;;){for(var ie;Ut!==p||j!==0&&Ut.nodeType!==3||(ht=nt+j),Ut!==U||P!==0&&Ut.nodeType!==3||(vt=nt+P),Ut.nodeType===3&&(nt+=Ut.nodeValue.length),(ie=Ut.firstChild)!==null;)zt=Ut,Ut=ie;for(;;){if(Ut===a)break e;if(zt===p&&++Mt===j&&(ht=nt),zt===U&&++Gt===P&&(vt=nt),(ie=Ut.nextSibling)!==null)break;Ut=zt,zt=Ut.parentNode}Ut=ie}p=ht===-1||vt===-1?null:{start:ht,end:vt}}else p=null}p=p||{start:0,end:0}}else p=null;for(nh={focusedElem:a,selectionRange:p},ut=!1,de=i;de!==null;)if(i=de,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,de=a;else for(;de!==null;){i=de;try{var he=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var fe=he.memoizedProps,cr=he.memoizedState,St=i.stateNode,wt=St.getSnapshotBeforeUpdate(i.elementType===i.type?fe:la(i.type,fe),cr);St.__reactInternalSnapshotBeforeUpdate=wt}break;case 3:var Ot=i.stateNode.containerInfo;Ot.nodeType===1?Ot.textContent="":Ot.nodeType===9&&Ot.documentElement&&Ot.removeChild(Ot.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Zt){er(i,i.return,Zt)}if(a=i.sibling,a!==null){a.return=i.return,de=a;break}de=i.return}return he=K3,K3=!1,he}function wh(a,i,p){var P=i.updateQueue;if(P=P!==null?P.lastEffect:null,P!==null){var j=P=P.next;do{if((j.tag&a)===a){var U=j.destroy;j.destroy=void 0,U!==void 0&&Z3(i,p,U)}j=j.next}while(j!==P)}}function af(a,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var p=i=i.next;do{if((p.tag&a)===a){var P=p.create;p.destroy=P()}p=p.next}while(p!==i)}}function s2(a){var i=a.ref;if(i!==null){var p=a.stateNode;a.tag,a=p,typeof i=="function"?i(a):i.current=a}}function $3(a){var i=a.alternate;i!==null&&(a.alternate=null,$3(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&(delete i[Si],delete i[Xs],delete i[bu],delete i[V1],delete i[Y1])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function X3(a){return a.tag===5||a.tag===3||a.tag===4}function q3(a){t:for(;;){for(;a.sibling===null;){if(a.return===null||X3(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function l2(a,i,p){var P=a.tag;if(P===5||P===6)a=a.stateNode,i?p.nodeType===8?p.parentNode.insertBefore(a,i):p.insertBefore(a,i):(p.nodeType===8?(i=p.parentNode,i.insertBefore(a,p)):(i=p,i.appendChild(a)),p=p._reactRootContainer,p!=null||i.onclick!==null||(i.onclick=mu));else if(P!==4&&(a=a.child,a!==null))for(l2(a,i,p),a=a.sibling;a!==null;)l2(a,i,p),a=a.sibling}function c2(a,i,p){var P=a.tag;if(P===5||P===6)a=a.stateNode,i?p.insertBefore(a,i):p.appendChild(a);else if(P!==4&&(a=a.child,a!==null))for(c2(a,i,p),a=a.sibling;a!==null;)c2(a,i,p),a=a.sibling}var qr=null,Ji=!1;function ul(a,i,p){for(p=p.child;p!==null;)Q3(a,i,p),p=p.sibling}function Q3(a,i,p){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(aa,p)}catch{}switch(p.tag){case 5:ua||Hu(p,i);case 6:var P=qr,j=Ji;qr=null,ul(a,i,p),qr=P,Ji=j,qr!==null&&(Ji?(a=qr,p=p.stateNode,a.nodeType===8?a.parentNode.removeChild(p):a.removeChild(p)):qr.removeChild(p.stateNode));break;case 18:qr!==null&&(Ji?(a=qr,p=p.stateNode,a.nodeType===8?ic(a.parentNode,p):a.nodeType===1&&ic(a,p),yo(a)):ic(qr,p.stateNode));break;case 4:P=qr,j=Ji,qr=p.stateNode.containerInfo,Ji=!0,ul(a,i,p),qr=P,Ji=j;break;case 0:case 11:case 14:case 15:if(!ua&&(P=p.updateQueue,P!==null&&(P=P.lastEffect,P!==null))){j=P=P.next;do{var U=j,nt=U.destroy;U=U.tag,nt!==void 0&&((U&2)!==0||(U&4)!==0)&&Z3(p,i,nt),j=j.next}while(j!==P)}ul(a,i,p);break;case 1:if(!ua&&(Hu(p,i),P=p.stateNode,typeof P.componentWillUnmount=="function"))try{P.props=p.memoizedProps,P.state=p.memoizedState,P.componentWillUnmount()}catch(ht){er(p,i,ht)}ul(a,i,p);break;case 21:ul(a,i,p);break;case 22:p.mode&1?(ua=(P=ua)||p.memoizedState!==null,ul(a,i,p),ua=P):ul(a,i,p);break;default:ul(a,i,p)}}function J3(a){var i=a.updateQueue;if(i!==null){a.updateQueue=null;var p=a.stateNode;p===null&&(p=a.stateNode=new Ix),i.forEach(function(P){var j=Ux.bind(null,a,P);p.has(P)||(p.add(P),P.then(j,j))})}}function to(a,i){var p=i.deletions;if(p!==null)for(var P=0;P<p.length;P++){var j=p[P];try{var U=a,nt=i,ht=nt;t:for(;ht!==null;){switch(ht.tag){case 5:qr=ht.stateNode,Ji=!1;break t;case 3:qr=ht.stateNode.containerInfo,Ji=!0;break t;case 4:qr=ht.stateNode.containerInfo,Ji=!0;break t}ht=ht.return}if(qr===null)throw Error(n(160));Q3(U,nt,j),qr=null,Ji=!1;var vt=j.alternate;vt!==null&&(vt.return=null),j.return=null}catch(Mt){er(j,i,Mt)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)t5(i,a),i=i.sibling}function t5(a,i){var p=a.alternate,P=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(to(i,a),Do(a),P&4){try{wh(3,a,a.return),af(3,a)}catch(fe){er(a,a.return,fe)}try{wh(5,a,a.return)}catch(fe){er(a,a.return,fe)}}break;case 1:to(i,a),Do(a),P&512&&p!==null&&Hu(p,p.return);break;case 5:if(to(i,a),Do(a),P&512&&p!==null&&Hu(p,p.return),a.flags&32){var j=a.stateNode;try{jt(j,"")}catch(fe){er(a,a.return,fe)}}if(P&4&&(j=a.stateNode,j!=null)){var U=a.memoizedProps,nt=p!==null?p.memoizedProps:U,ht=a.type,vt=a.updateQueue;if(a.updateQueue=null,vt!==null)try{ht==="input"&&U.type==="radio"&&U.name!=null&&qt(j,U),Ur(ht,nt);var Mt=Ur(ht,U);for(nt=0;nt<vt.length;nt+=2){var Gt=vt[nt],Ut=vt[nt+1];Gt==="style"?Ge(j,Ut):Gt==="dangerouslySetInnerHTML"?pn(j,Ut):Gt==="children"?jt(j,Ut):m(j,Gt,Ut,Mt)}switch(ht){case"input":Bt(j,U);break;case"textarea":Qt(j,U);break;case"select":var zt=j._wrapperState.wasMultiple;j._wrapperState.wasMultiple=!!U.multiple;var ie=U.value;ie!=null?oe(j,!!U.multiple,ie,!1):zt!==!!U.multiple&&(U.defaultValue!=null?oe(j,!!U.multiple,U.defaultValue,!0):oe(j,!!U.multiple,U.multiple?[]:"",!1))}j[Xs]=U}catch(fe){er(a,a.return,fe)}}break;case 6:if(to(i,a),Do(a),P&4){if(a.stateNode===null)throw Error(n(162));j=a.stateNode,U=a.memoizedProps;try{j.nodeValue=U}catch(fe){er(a,a.return,fe)}}break;case 3:if(to(i,a),Do(a),P&4&&p!==null&&p.memoizedState.isDehydrated)try{yo(i.containerInfo)}catch(fe){er(a,a.return,fe)}break;case 4:to(i,a),Do(a);break;case 13:to(i,a),Do(a),j=a.child,j.flags&8192&&(U=j.memoizedState!==null,j.stateNode.isHidden=U,!U||j.alternate!==null&&j.alternate.memoizedState!==null||(h2=mn())),P&4&&J3(a);break;case 22:if(Gt=p!==null&&p.memoizedState!==null,a.mode&1?(ua=(Mt=ua)||Gt,to(i,a),ua=Mt):to(i,a),Do(a),P&8192){if(Mt=a.memoizedState!==null,(a.stateNode.isHidden=Mt)&&!Gt&&(a.mode&1)!==0)for(de=a,Gt=a.child;Gt!==null;){for(Ut=de=Gt;de!==null;){switch(zt=de,ie=zt.child,zt.tag){case 0:case 11:case 14:case 15:wh(4,zt,zt.return);break;case 1:Hu(zt,zt.return);var he=zt.stateNode;if(typeof he.componentWillUnmount=="function"){P=zt,p=zt.return;try{i=P,he.props=i.memoizedProps,he.state=i.memoizedState,he.componentWillUnmount()}catch(fe){er(P,p,fe)}}break;case 5:Hu(zt,zt.return);break;case 22:if(zt.memoizedState!==null){r5(Ut);continue}}ie!==null?(ie.return=zt,de=ie):r5(Ut)}Gt=Gt.sibling}t:for(Gt=null,Ut=a;;){if(Ut.tag===5){if(Gt===null){Gt=Ut;try{j=Ut.stateNode,Mt?(U=j.style,typeof U.setProperty=="function"?U.setProperty("display","none","important"):U.display="none"):(ht=Ut.stateNode,vt=Ut.memoizedProps.style,nt=vt!=null&&vt.hasOwnProperty("display")?vt.display:null,ht.style.display=xe("display",nt))}catch(fe){er(a,a.return,fe)}}}else if(Ut.tag===6){if(Gt===null)try{Ut.stateNode.nodeValue=Mt?"":Ut.memoizedProps}catch(fe){er(a,a.return,fe)}}else if((Ut.tag!==22&&Ut.tag!==23||Ut.memoizedState===null||Ut===a)&&Ut.child!==null){Ut.child.return=Ut,Ut=Ut.child;continue}if(Ut===a)break t;for(;Ut.sibling===null;){if(Ut.return===null||Ut.return===a)break t;Gt===Ut&&(Gt=null),Ut=Ut.return}Gt===Ut&&(Gt=null),Ut.sibling.return=Ut.return,Ut=Ut.sibling}}break;case 19:to(i,a),Do(a),P&4&&J3(a);break;case 21:break;default:to(i,a),Do(a)}}function Do(a){var i=a.flags;if(i&2){try{t:{for(var p=a.return;p!==null;){if(X3(p)){var P=p;break t}p=p.return}throw Error(n(160))}switch(P.tag){case 5:var j=P.stateNode;P.flags&32&&(jt(j,""),P.flags&=-33);var U=q3(a);c2(a,U,j);break;case 3:case 4:var nt=P.stateNode.containerInfo,ht=q3(a);l2(a,ht,nt);break;default:throw Error(n(161))}}catch(vt){er(a,a.return,vt)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function Rx(a,i,p){de=a,e5(a)}function e5(a,i,p){for(var P=(a.mode&1)!==0;de!==null;){var j=de,U=j.child;if(j.tag===22&&P){var nt=j.memoizedState!==null||rf;if(!nt){var ht=j.alternate,vt=ht!==null&&ht.memoizedState!==null||ua;ht=rf;var Mt=ua;if(rf=nt,(ua=vt)&&!Mt)for(de=j;de!==null;)nt=de,vt=nt.child,nt.tag===22&&nt.memoizedState!==null?a5(j):vt!==null?(vt.return=nt,de=vt):a5(j);for(;U!==null;)de=U,e5(U),U=U.sibling;de=j,rf=ht,ua=Mt}n5(a)}else(j.subtreeFlags&8772)!==0&&U!==null?(U.return=j,de=U):n5(a)}}function n5(a){for(;de!==null;){var i=de;if((i.flags&8772)!==0){var p=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:ua||af(5,i);break;case 1:var P=i.stateNode;if(i.flags&4&&!ua)if(p===null)P.componentDidMount();else{var j=i.elementType===i.type?p.memoizedProps:la(i.type,p.memoizedProps);P.componentDidUpdate(j,p.memoizedState,P.__reactInternalSnapshotBeforeUpdate)}var U=i.updateQueue;U!==null&&De(i,U,P);break;case 3:var nt=i.updateQueue;if(nt!==null){if(p=null,i.child!==null)switch(i.child.tag){case 5:p=i.child.stateNode;break;case 1:p=i.child.stateNode}De(i,nt,p)}break;case 5:var ht=i.stateNode;if(p===null&&i.flags&4){p=ht;var vt=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":vt.autoFocus&&p.focus();break;case"img":vt.src&&(p.src=vt.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var Mt=i.alternate;if(Mt!==null){var Gt=Mt.memoizedState;if(Gt!==null){var Ut=Gt.dehydrated;Ut!==null&&yo(Ut)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}ua||i.flags&512&&s2(i)}catch(zt){er(i,i.return,zt)}}if(i===a){de=null;break}if(p=i.sibling,p!==null){p.return=i.return,de=p;break}de=i.return}}function r5(a){for(;de!==null;){var i=de;if(i===a){de=null;break}var p=i.sibling;if(p!==null){p.return=i.return,de=p;break}de=i.return}}function a5(a){for(;de!==null;){var i=de;try{switch(i.tag){case 0:case 11:case 15:var p=i.return;try{af(4,i)}catch(vt){er(i,p,vt)}break;case 1:var P=i.stateNode;if(typeof P.componentDidMount=="function"){var j=i.return;try{P.componentDidMount()}catch(vt){er(i,j,vt)}}var U=i.return;try{s2(i)}catch(vt){er(i,U,vt)}break;case 5:var nt=i.return;try{s2(i)}catch(vt){er(i,nt,vt)}}}catch(vt){er(i,i.return,vt)}if(i===a){de=null;break}var ht=i.sibling;if(ht!==null){ht.return=i.return,de=ht;break}de=i.return}}var Fx=Math.ceil,of=_.ReactCurrentDispatcher,u2=_.ReactCurrentOwner,Ti=_.ReactCurrentBatchConfig,en=0,Br=null,wr=null,Qr=0,di=0,zu=Zi(0),Pr=0,xh=null,bc=0,sf=0,d2=0,Ch=null,Ba=null,h2=0,Gu=1/0,ms=null,lf=!1,f2=null,dl=null,cf=!1,hl=null,uf=0,Sh=0,p2=null,df=-1,hf=0;function Ea(){return(en&6)!==0?mn():df!==-1?df:df=mn()}function fl(a){return(a.mode&1)===0?1:(en&2)!==0&&Qr!==0?Qr&-Qr:Er.transition!==null?(hf===0&&(hf=ia()),hf):(a=Ke,a!==0||(a=window.event,a=a===void 0?16:Ve(a.type)),a)}function eo(a,i,p,P){if(50<Sh)throw Sh=0,p2=null,Error(n(185));Xo(a,p,P),((en&2)===0||a!==Br)&&(a===Br&&((en&2)===0&&(sf|=p),Pr===4&&pl(a,Qr)),Ha(a,P),p===1&&en===0&&(i.mode&1)===0&&(Gu=mn()+500,cc&&_r()))}function Ha(a,i){var p=a.callbackNode;fo(a,i);var P=Ko(a,a===Br?Qr:0);if(P===0)p!==null&&Ts(p),a.callbackNode=null,a.callbackPriority=0;else if(i=P&-P,a.callbackPriority!==i){if(p!=null&&Ts(p),i===1)a.tag===0?r2(o5.bind(null,a)):Ei(o5.bind(null,a)),U1(function(){(en&6)===0&&_r()}),p=null;else{switch(go(P)){case 1:p=vi;break;case 4:p=Zo;break;case 16:p=Is;break;case 536870912:p=zi;break;default:p=Is}p=p5(p,i5.bind(null,a))}a.callbackPriority=i,a.callbackNode=p}}function i5(a,i){if(df=-1,hf=0,(en&6)!==0)throw Error(n(327));var p=a.callbackNode;if(Uu()&&a.callbackNode!==p)return null;var P=Ko(a,a===Br?Qr:0);if(P===0)return null;if((P&30)!==0||(P&a.expiredLanes)!==0||i)i=ff(a,P);else{i=P;var j=en;en|=2;var U=l5();(Br!==a||Qr!==i)&&(ms=null,Gu=mn()+500,xc(a,i));do try{Bx();break}catch(ht){s5(a,ht)}while(!0);Ou(),of.current=U,en=j,wr!==null?i=0:(Br=null,Qr=0,i=Pr)}if(i!==0){if(i===2&&(j=Ns(a),j!==0&&(P=j,i=g2(a,j))),i===1)throw p=xh,xc(a,0),pl(a,P),Ha(a,mn()),p;if(i===6)pl(a,P);else{if(j=a.current.alternate,(P&30)===0&&!Dx(j)&&(i=ff(a,P),i===2&&(U=Ns(a),U!==0&&(P=U,i=g2(a,U))),i===1))throw p=xh,xc(a,0),pl(a,P),Ha(a,mn()),p;switch(a.finishedWork=j,a.finishedLanes=P,i){case 0:case 1:throw Error(n(345));case 2:Cc(a,Ba,ms);break;case 3:if(pl(a,P),(P&130023424)===P&&(i=h2+500-mn(),10<i)){if(Ko(a,0)!==0)break;if(j=a.suspendedLanes,(j&P)!==P){Ea(),a.pingedLanes|=a.suspendedLanes&j;break}a.timeoutHandle=ac(Cc.bind(null,a,Ba,ms),i);break}Cc(a,Ba,ms);break;case 4:if(pl(a,P),(P&4194240)===P)break;for(i=a.eventTimes,j=-1;0<P;){var nt=31-qn(P);U=1<<nt,nt=i[nt],nt>j&&(j=nt),P&=~U}if(P=j,P=mn()-P,P=(120>P?120:480>P?480:1080>P?1080:1920>P?1920:3e3>P?3e3:4320>P?4320:1960*Fx(P/1960))-P,10<P){a.timeoutHandle=ac(Cc.bind(null,a,Ba,ms),P);break}Cc(a,Ba,ms);break;case 5:Cc(a,Ba,ms);break;default:throw Error(n(329))}}}return Ha(a,mn()),a.callbackNode===p?i5.bind(null,a):null}function g2(a,i){var p=Ch;return a.current.memoizedState.isDehydrated&&(xc(a,i).flags|=256),a=ff(a,i),a!==2&&(i=Ba,Ba=p,i!==null&&m2(i)),a}function m2(a){Ba===null?Ba=a:Ba.push.apply(Ba,a)}function Dx(a){for(var i=a;;){if(i.flags&16384){var p=i.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var P=0;P<p.length;P++){var j=p[P],U=j.getSnapshot;j=j.value;try{if(!ya(U(),j))return!1}catch{return!1}}}if(p=i.child,i.subtreeFlags&16384&&p!==null)p.return=i,i=p;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function pl(a,i){for(i&=~d2,i&=~sf,a.suspendedLanes|=i,a.pingedLanes&=~i,a=a.expirationTimes;0<i;){var p=31-qn(i),P=1<<p;a[p]=-1,i&=~P}}function o5(a){if((en&6)!==0)throw Error(n(327));Uu();var i=Ko(a,0);if((i&1)===0)return Ha(a,mn()),null;var p=ff(a,i);if(a.tag!==0&&p===2){var P=Ns(a);P!==0&&(i=P,p=g2(a,P))}if(p===1)throw p=xh,xc(a,0),pl(a,i),Ha(a,mn()),p;if(p===6)throw Error(n(345));return a.finishedWork=a.current.alternate,a.finishedLanes=i,Cc(a,Ba,ms),Ha(a,mn()),null}function v2(a,i){var p=en;en|=1;try{return a(i)}finally{en=p,en===0&&(Gu=mn()+500,cc&&_r())}}function wc(a){hl!==null&&hl.tag===0&&(en&6)===0&&Uu();var i=en;en|=1;var p=Ti.transition,P=Ke;try{if(Ti.transition=null,Ke=1,a)return a()}finally{Ke=P,Ti.transition=p,en=i,(en&6)===0&&_r()}}function y2(){di=zu.current,xn(zu)}function xc(a,i){a.finishedWork=null,a.finishedLanes=0;var p=a.timeoutHandle;if(p!==-1&&(a.timeoutHandle=-1,vu(p)),wr!==null)for(p=wr.return;p!==null;){var P=p;switch(ih(P),P.tag){case 1:P=P.type.childContextTypes,P!=null&&sc();break;case 3:Mi(),xn(Zr),xn(pr),gc();break;case 5:rl(P);break;case 4:Mi();break;case 13:xn(En);break;case 19:xn(En);break;case 10:ku(P.type._context);break;case 22:case 23:y2()}p=p.return}if(Br=a,wr=a=gl(a.current,null),Qr=di=i,Pr=0,xh=null,d2=sf=bc=0,Ba=Ch=null,ki!==null){for(i=0;i<ki.length;i++)if(p=ki[i],P=p.interleaved,P!==null){p.interleaved=null;var j=P.next,U=p.pending;if(U!==null){var nt=U.next;U.next=j,P.next=nt}p.pending=P}ki=null}return a}function s5(a,i){do{var p=wr;try{if(Ou(),al.current=Du,hs){for(var P=Cn.memoizedState;P!==null;){var j=P.queue;j!==null&&(j.pending=null),P=P.next}hs=!1}if(Da=0,On=Zn=Cn=null,ja=!1,Ao=0,u2.current=null,p===null||p.return===null){Pr=1,xh=i,wr=null;break}t:{var U=a,nt=p.return,ht=p,vt=i;if(i=Qr,ht.flags|=32768,vt!==null&&typeof vt=="object"&&typeof vt.then=="function"){var Mt=vt,Gt=ht,Ut=Gt.tag;if((Gt.mode&1)===0&&(Ut===0||Ut===11||Ut===15)){var zt=Gt.alternate;zt?(Gt.updateQueue=zt.updateQueue,Gt.memoizedState=zt.memoizedState,Gt.lanes=zt.lanes):(Gt.updateQueue=null,Gt.memoizedState=null)}var ie=F(nt);if(ie!==null){ie.flags&=-257,H(ie,nt,ht,U,i),ie.mode&1&&O(U,Mt,i),i=ie,vt=Mt;var he=i.updateQueue;if(he===null){var fe=new Set;fe.add(vt),i.updateQueue=fe}else he.add(vt);break t}else{if((i&1)===0){O(U,Mt,i),b2();break t}vt=Error(n(426))}}else if(_n&&ht.mode&1){var cr=F(nt);if(cr!==null){(cr.flags&65536)===0&&(cr.flags|=256),H(cr,nt,ht,U,i),fc(gs(vt,ht));break t}}U=vt=gs(vt,ht),Pr!==4&&(Pr=2),Ch===null?Ch=[U]:Ch.push(U),U=nt;do{switch(U.tag){case 3:U.flags|=65536,i&=-i,U.lanes|=i;var St=l(U,vt,i);Pu(U,St);break t;case 1:ht=vt;var wt=U.type,Ot=U.stateNode;if((U.flags&128)===0&&(typeof wt.getDerivedStateFromError=="function"||Ot!==null&&typeof Ot.componentDidCatch=="function"&&(dl===null||!dl.has(Ot)))){U.flags|=65536,i&=-i,U.lanes|=i;var Zt=u(U,ht,i);Pu(U,Zt);break t}}U=U.return}while(U!==null)}u5(p)}catch(pe){i=pe,wr===p&&p!==null&&(wr=p=p.return);continue}break}while(!0)}function l5(){var a=of.current;return of.current=Du,a===null?Du:a}function b2(){(Pr===0||Pr===3||Pr===2)&&(Pr=4),Br===null||(bc&268435455)===0&&(sf&268435455)===0||pl(Br,Qr)}function ff(a,i){var p=en;en|=2;var P=l5();(Br!==a||Qr!==i)&&(ms=null,xc(a,i));do try{jx();break}catch(j){s5(a,j)}while(!0);if(Ou(),en=p,of.current=P,wr!==null)throw Error(n(261));return Br=null,Qr=0,Pr}function jx(){for(;wr!==null;)c5(wr)}function Bx(){for(;wr!==null&&!Td();)c5(wr)}function c5(a){var i=f5(a.alternate,a,di);a.memoizedProps=a.pendingProps,i===null?u5(a):wr=i,u2.current=null}function u5(a){var i=a;do{var p=i.alternate;if(a=i.return,(i.flags&32768)===0){if(p=Tx(p,i,di),p!==null){wr=p;return}}else{if(p=Ax(p,i),p!==null){p.flags&=32767,wr=p;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Pr=6,wr=null;return}}if(i=i.sibling,i!==null){wr=i;return}wr=i=a}while(i!==null);Pr===0&&(Pr=5)}function Cc(a,i,p){var P=Ke,j=Ti.transition;try{Ti.transition=null,Ke=1,Hx(a,i,p,P)}finally{Ti.transition=j,Ke=P}return null}function Hx(a,i,p,P){do Uu();while(hl!==null);if((en&6)!==0)throw Error(n(327));p=a.finishedWork;var j=a.finishedLanes;if(p===null)return null;if(a.finishedWork=null,a.finishedLanes=0,p===a.current)throw Error(n(177));a.callbackNode=null,a.callbackPriority=0;var U=p.lanes|p.childLanes;if(Ad(a,U),a===Br&&(wr=Br=null,Qr=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||cf||(cf=!0,p5(Is,function(){return Uu(),null})),U=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||U){U=Ti.transition,Ti.transition=null;var nt=Ke;Ke=1;var ht=en;en|=4,u2.current=null,Nx(a,p),t5(p,a),ql(nh),ut=!!eh,nh=eh=null,a.current=p,Rx(p),As(),en=ht,Ke=nt,Ti.transition=U}else a.current=p;if(cf&&(cf=!1,hl=a,uf=j),U=a.pendingLanes,U===0&&(dl=null),sn(p.stateNode),Ha(a,mn()),i!==null)for(P=a.onRecoverableError,p=0;p<i.length;p++)j=i[p],P(j.value,{componentStack:j.stack,digest:j.digest});if(lf)throw lf=!1,a=f2,f2=null,a;return(uf&1)!==0&&a.tag!==0&&Uu(),U=a.pendingLanes,(U&1)!==0?a===p2?Sh++:(Sh=0,p2=a):Sh=0,_r(),null}function Uu(){if(hl!==null){var a=go(uf),i=Ti.transition,p=Ke;try{if(Ti.transition=null,Ke=16>a?16:a,hl===null)var P=!1;else{if(a=hl,hl=null,uf=0,(en&6)!==0)throw Error(n(331));var j=en;for(en|=4,de=a.current;de!==null;){var U=de,nt=U.child;if((de.flags&16)!==0){var ht=U.deletions;if(ht!==null){for(var vt=0;vt<ht.length;vt++){var Mt=ht[vt];for(de=Mt;de!==null;){var Gt=de;switch(Gt.tag){case 0:case 11:case 15:wh(8,Gt,U)}var Ut=Gt.child;if(Ut!==null)Ut.return=Gt,de=Ut;else for(;de!==null;){Gt=de;var zt=Gt.sibling,ie=Gt.return;if($3(Gt),Gt===Mt){de=null;break}if(zt!==null){zt.return=ie,de=zt;break}de=ie}}}var he=U.alternate;if(he!==null){var fe=he.child;if(fe!==null){he.child=null;do{var cr=fe.sibling;fe.sibling=null,fe=cr}while(fe!==null)}}de=U}}if((U.subtreeFlags&2064)!==0&&nt!==null)nt.return=U,de=nt;else t:for(;de!==null;){if(U=de,(U.flags&2048)!==0)switch(U.tag){case 0:case 11:case 15:wh(9,U,U.return)}var St=U.sibling;if(St!==null){St.return=U.return,de=St;break t}de=U.return}}var wt=a.current;for(de=wt;de!==null;){nt=de;var Ot=nt.child;if((nt.subtreeFlags&2064)!==0&&Ot!==null)Ot.return=nt,de=Ot;else t:for(nt=wt;de!==null;){if(ht=de,(ht.flags&2048)!==0)try{switch(ht.tag){case 0:case 11:case 15:af(9,ht)}}catch(pe){er(ht,ht.return,pe)}if(ht===nt){de=null;break t}var Zt=ht.sibling;if(Zt!==null){Zt.return=ht.return,de=Zt;break t}de=ht.return}}if(en=j,_r(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(aa,a)}catch{}P=!0}return P}finally{Ke=p,Ti.transition=i}}return!1}function d5(a,i,p){i=gs(p,i),i=l(a,i,1),a=Mo(a,i,1),i=Ea(),a!==null&&(Xo(a,1,i),Ha(a,i))}function er(a,i,p){if(a.tag===3)d5(a,a,p);else for(;i!==null;){if(i.tag===3){d5(i,a,p);break}else if(i.tag===1){var P=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof P.componentDidCatch=="function"&&(dl===null||!dl.has(P))){a=gs(p,a),a=u(i,a,1),i=Mo(i,a,1),a=Ea(),i!==null&&(Xo(i,1,a),Ha(i,a));break}}i=i.return}}function zx(a,i,p){var P=a.pingCache;P!==null&&P.delete(i),i=Ea(),a.pingedLanes|=a.suspendedLanes&p,Br===a&&(Qr&p)===p&&(Pr===4||Pr===3&&(Qr&130023424)===Qr&&500>mn()-h2?xc(a,0):d2|=p),Ha(a,i)}function h5(a,i){i===0&&((a.mode&1)===0?i=1:(i=ar,ar<<=1,(ar&130023424)===0&&(ar=4194304)));var p=Ea();a=si(a,i),a!==null&&(Xo(a,i,p),Ha(a,p))}function Gx(a){var i=a.memoizedState,p=0;i!==null&&(p=i.retryLane),h5(a,p)}function Ux(a,i){var p=0;switch(a.tag){case 13:var P=a.stateNode,j=a.memoizedState;j!==null&&(p=j.retryLane);break;case 19:P=a.stateNode;break;default:throw Error(n(314))}P!==null&&P.delete(i),h5(a,p)}var f5;f5=function(a,i,p){if(a!==null)if(a.memoizedProps!==i.pendingProps||Zr.current)st=!0;else{if((a.lanes&p)===0&&(i.flags&128)===0)return st=!1,Lx(a,i,p);st=(a.flags&131072)!==0}else st=!1,_n&&(i.flags&1048576)!==0&&uc(i,ls,i.index);switch(i.lanes=0,i.tag){case 2:var P=i.type;ui(a,i),a=i.pendingProps;var j=Oo(i,pr.current);Xi(i,p),j=ol(null,i,P,a,j,p);var U=yr();return i.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Rr(P)?(U=!0,Cu(i)):U=!1,i.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,pc(i),j.updater=ll,i.stateNode=j,j._reactInternals=i,Bu(i,P,a,p),i=jr(null,i,P,!0,U,p)):(i.tag=0,_n&&U&&gr(i),bt(null,i,j,p),i=i.child),i;case 16:P=i.elementType;t:{switch(ui(a,i),a=i.pendingProps,j=P._init,P=j(P._payload),i.type=P,j=i.tag=Vx(P),a=la(P,a),j){case 0:i=yn(null,i,P,a,p);break t;case 1:i=un(null,i,P,a,p);break t;case 11:i=Lt(null,i,P,a,p);break t;case 14:i=Wt(null,i,P,la(P.type,a),p);break t}throw Error(n(306,P,""))}return i;case 0:return P=i.type,j=i.pendingProps,j=i.elementType===P?j:la(P,j),yn(a,i,P,j,p);case 1:return P=i.type,j=i.pendingProps,j=i.elementType===P?j:la(P,j),un(a,i,P,j,p);case 3:t:{if(Li(i),a===null)throw Error(n(387));P=i.pendingProps,U=i.memoizedState,j=U.element,uh(a,i),Nn(i,P,null,p);var nt=i.memoizedState;if(P=nt.element,U.isDehydrated)if(U={element:P,isDehydrated:!1,cache:nt.cache,pendingSuspenseBoundaries:nt.pendingSuspenseBoundaries,transitions:nt.transitions},i.updateQueue.baseState=U,i.memoizedState=U,i.flags&256){j=gs(Error(n(423)),i),i=kt(a,i,P,p,j);break t}else if(P!==j){j=gs(Error(n(424)),i),i=kt(a,i,P,p,j);break t}else for(mr=wa(i.stateNode.containerInfo.firstChild),te=i,_n=!0,Ra=null,p=ch(i,null,P,p),i.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Po(),P===j){i=Qi(a,i,p);break t}bt(a,i,P,p)}i=i.child}return i;case 5:return Lo(i),a===null&&dc(i),P=i.type,j=i.pendingProps,U=a!==null?a.memoizedProps:null,nt=j.children,ba(P,j)?nt=null:U!==null&&ba(P,U)&&(i.flags|=32),re(a,i),bt(a,i,nt,p),i.child;case 6:return a===null&&dc(i),null;case 13:return ae(a,i,p);case 4:return Yn(i,i.stateNode.containerInfo),P=i.pendingProps,a===null?i.child=Fr(i,null,P,p):bt(a,i,P,p),i.child;case 11:return P=i.type,j=i.pendingProps,j=i.elementType===P?j:la(P,j),Lt(a,i,P,j,p);case 7:return bt(a,i,i.pendingProps,p),i.child;case 8:return bt(a,i,i.pendingProps.children,p),i.child;case 12:return bt(a,i,i.pendingProps.children,p),i.child;case 10:t:{if(P=i.type._context,j=i.pendingProps,U=i.memoizedProps,nt=j.value,cn(Sa,P._currentValue),P._currentValue=nt,U!==null)if(ya(U.value,nt)){if(U.children===j.children&&!Zr.current){i=Qi(a,i,p);break t}}else for(U=i.child,U!==null&&(U.return=i);U!==null;){var ht=U.dependencies;if(ht!==null){nt=U.child;for(var vt=ht.firstContext;vt!==null;){if(vt.context===P){if(U.tag===1){vt=li(-1,p&-p),vt.tag=2;var Mt=U.updateQueue;if(Mt!==null){Mt=Mt.shared;var Gt=Mt.pending;Gt===null?vt.next=vt:(vt.next=Gt.next,Gt.next=vt),Mt.pending=vt}}U.lanes|=p,vt=U.alternate,vt!==null&&(vt.lanes|=p),tl(U.return,p,i),ht.lanes|=p;break}vt=vt.next}}else if(U.tag===10)nt=U.type===i.type?null:U.child;else if(U.tag===18){if(nt=U.return,nt===null)throw Error(n(341));nt.lanes|=p,ht=nt.alternate,ht!==null&&(ht.lanes|=p),tl(nt,p,i),nt=U.sibling}else nt=U.child;if(nt!==null)nt.return=U;else for(nt=U;nt!==null;){if(nt===i){nt=null;break}if(U=nt.sibling,U!==null){U.return=nt.return,nt=U;break}nt=nt.return}U=nt}bt(a,i,j.children,p),i=i.child}return i;case 9:return j=i.type,P=i.pendingProps.children,Xi(i,p),j=Xr(j),P=P(j),i.flags|=1,bt(a,i,P,p),i.child;case 14:return P=i.type,j=la(P,i.pendingProps),j=la(P.type,j),Wt(a,i,P,j,p);case 15:return ce(a,i,i.type,i.pendingProps,p);case 17:return P=i.type,j=i.pendingProps,j=i.elementType===P?j:la(P,j),ui(a,i),i.tag=1,Rr(P)?(a=!0,Cu(i)):a=!1,Xi(i,p),mh(i,P,j),Bu(i,P,j,p),jr(null,i,P,!0,a,p);case 19:return tn(a,i,p);case 22:return Pe(a,i,p)}throw Error(n(156,i.tag))};function p5(a,i){return Jc(a,i)}function Wx(a,i,p,P){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=P,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ai(a,i,p,P){return new Wx(a,i,p,P)}function w2(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Vx(a){if(typeof a=="function")return w2(a)?1:0;if(a!=null){if(a=a.$$typeof,a===Z)return 11;if(a===N)return 14}return 2}function gl(a,i){var p=a.alternate;return p===null?(p=Ai(a.tag,i,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p.alternate=a,a.alternate=p):(p.pendingProps=i,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=a.flags&14680064,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,i=a.dependencies,p.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p}function pf(a,i,p,P,j,U){var nt=2;if(P=a,typeof a=="function")w2(a)&&(nt=1);else if(typeof a=="string")nt=5;else t:switch(a){case G:return Sc(p.children,j,U,i);case T:nt=8,j|=8;break;case D:return a=Ai(12,p,i,j|2),a.elementType=D,a.lanes=U,a;case S:return a=Ai(13,p,i,j),a.elementType=S,a.lanes=U,a;case I:return a=Ai(19,p,i,j),a.elementType=I,a.lanes=U,a;case W:return gf(p,j,U,i);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case A:nt=10;break t;case B:nt=9;break t;case Z:nt=11;break t;case N:nt=14;break t;case z:nt=16,P=null;break t}throw Error(n(130,a==null?a:typeof a,""))}return i=Ai(nt,p,i,j),i.elementType=a,i.type=P,i.lanes=U,i}function Sc(a,i,p,P){return a=Ai(7,a,P,i),a.lanes=p,a}function gf(a,i,p,P){return a=Ai(22,a,P,i),a.elementType=W,a.lanes=p,a.stateNode={isHidden:!1},a}function x2(a,i,p){return a=Ai(6,a,null,i),a.lanes=p,a}function C2(a,i,p){return i=Ai(4,a.children!==null?a.children:[],a.key,i),i.lanes=p,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function Yx(a,i,p,P,j){this.tag=i,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rs(0),this.expirationTimes=Rs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rs(0),this.identifierPrefix=P,this.onRecoverableError=j,this.mutableSourceEagerHydrationData=null}function S2(a,i,p,P,j,U,nt,ht,vt){return a=new Yx(a,i,p,ht,vt),i===1?(i=1,U===!0&&(i|=8)):i=0,U=Ai(3,null,null,i),a.current=U,U.stateNode=a,U.memoizedState={element:P,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},pc(U),a}function Zx(a,i,p){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:P==null?null:""+P,children:a,containerInfo:i,implementation:p}}function g5(a){if(!a)return Ki;a=a._reactInternals;t:{if(ra(a)!==a||a.tag!==1)throw Error(n(170));var i=a;do{switch(i.tag){case 3:i=i.stateNode.context;break t;case 1:if(Rr(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break t}}i=i.return}while(i!==null);throw Error(n(171))}if(a.tag===1){var p=a.type;if(Rr(p))return lc(a,p,i)}return i}function m5(a,i,p,P,j,U,nt,ht,vt){return a=S2(p,P,!0,a,j,U,nt,ht,vt),a.context=g5(null),p=a.current,P=Ea(),j=fl(p),U=li(P,j),U.callback=i??null,Mo(p,U,j),a.current.lanes=j,Xo(a,j,P),Ha(a,P),a}function mf(a,i,p,P){var j=i.current,U=Ea(),nt=fl(j);return p=g5(p),i.context===null?i.context=p:i.pendingContext=p,i=li(U,nt),i.payload={element:a},P=P===void 0?null:P,P!==null&&(i.callback=P),a=Mo(j,i,nt),a!==null&&(eo(a,j,nt,U),ds(a,j,nt)),nt}function vf(a){return a=a.current,a.child?(a.child.tag===5,a.child.stateNode):null}function v5(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<i?p:i}}function _2(a,i){v5(a,i),(a=a.alternate)&&v5(a,i)}function Kx(){return null}var y5=typeof reportError=="function"?reportError:function(a){console.error(a)};function E2(a){this._internalRoot=a}yf.prototype.render=E2.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(n(409));mf(a,i,null,null)},yf.prototype.unmount=E2.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;wc(function(){mf(null,a,null,null)}),i[_i]=null}};function yf(a){this._internalRoot=a}yf.prototype.unstable_scheduleHydration=function(a){if(a){var i=Ds();a={blockedOn:null,target:a,priority:i};for(var p=0;p<va.length&&i!==0&&i<va[p].priority;p++);va.splice(p,0,a),p===0&&Hl(a)}};function O2(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function bf(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function b5(){}function $x(a,i,p,P,j){if(j){if(typeof P=="function"){var U=P;P=function(){var Mt=vf(nt);U.call(Mt)}}var nt=m5(i,P,a,0,null,!1,!1,"",b5);return a._reactRootContainer=nt,a[_i]=nt.current,Ks(a.nodeType===8?a.parentNode:a),wc(),nt}for(;j=a.lastChild;)a.removeChild(j);if(typeof P=="function"){var ht=P;P=function(){var Mt=vf(vt);ht.call(Mt)}}var vt=S2(a,0,!1,null,null,!1,!1,"",b5);return a._reactRootContainer=vt,a[_i]=vt.current,Ks(a.nodeType===8?a.parentNode:a),wc(function(){mf(i,vt,p,P)}),vt}function wf(a,i,p,P,j){var U=p._reactRootContainer;if(U){var nt=U;if(typeof j=="function"){var ht=j;j=function(){var vt=vf(nt);ht.call(vt)}}mf(i,nt,a,j)}else nt=$x(p,i,a,j,P);return vf(nt)}qo=function(a){switch(a.tag){case 3:var i=a.stateNode;if(i.current.memoizedState.isDehydrated){var p=yi(i.pendingLanes);p!==0&&(po(i,p|1),Ha(i,mn()),(en&6)===0&&(Gu=mn()+500,_r()))}break;
8case 13:wc(function(){var P=si(a,1);if(P!==null){var j=Ea();eo(P,a,1,j)}}),_2(a,1)}},Dl=function(a){if(a.tag===13){var i=si(a,134217728);if(i!==null){var p=Ea();eo(i,a,134217728,p)}_2(a,134217728)}},Fs=function(a){if(a.tag===13){var i=fl(a),p=si(a,i);if(p!==null){var P=Ea();eo(p,a,i,P)}_2(a,i)}},Ds=function(){return Ke},jl=function(a,i){var p=Ke;try{return Ke=a,i()}finally{Ke=p}},ve=function(a,i,p){switch(i){case"input":if(Bt(a,p),i=p.name,p.type==="radio"&&i!=null){for(p=a;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<p.length;i++){var P=p[i];if(P!==a&&P.form===a.form){var j=oc(P);if(!j)throw Error(n(90));gt(P),Bt(P,j)}}}break;case"textarea":Qt(a,p);break;case"select":i=p.value,i!=null&&oe(a,!!p.multiple,i,!1)}},ta=v2,Vo=wc;var Xx={usingClientEntryPoint:!1,Events:[fr,Jn,oc,zn,ga,v2]},_h={findFiberByHostInstance:is,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qx={bundleType:_h.bundleType,version:_h.version,rendererPackageName:_h.rendererPackageName,rendererConfig:_h.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=qc(a),a===null?null:a.stateNode},findFiberByHostInstance:_h.findFiberByHostInstance||Kx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xf.isDisabled&&xf.supportsFiber)try{aa=xf.inject(qx),We=xf}catch{}}return za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xx,za.createPortal=function(a,i){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!O2(i))throw Error(n(200));return Zx(a,i,null,p)},za.createRoot=function(a,i){if(!O2(a))throw Error(n(299));var p=!1,P="",j=y5;return i!=null&&(i.unstable_strictMode===!0&&(p=!0),i.identifierPrefix!==void 0&&(P=i.identifierPrefix),i.onRecoverableError!==void 0&&(j=i.onRecoverableError)),i=S2(a,1,!1,null,null,p,!1,P,j),a[_i]=i.current,Ks(a.nodeType===8?a.parentNode:a),new E2(i)},za.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=qc(i),a=a===null?null:a.stateNode,a},za.flushSync=function(a){return wc(a)},za.hydrate=function(a,i,p){if(!bf(i))throw Error(n(200));return wf(null,a,i,!0,p)},za.hydrateRoot=function(a,i,p){if(!O2(a))throw Error(n(405));var P=p!=null&&p.hydratedSources||null,j=!1,U="",nt=y5;if(p!=null&&(p.unstable_strictMode===!0&&(j=!0),p.identifierPrefix!==void 0&&(U=p.identifierPrefix),p.onRecoverableError!==void 0&&(nt=p.onRecoverableError)),i=m5(i,null,a,1,p??null,j,!1,U,nt),a[_i]=i.current,Ks(a),P)for(a=0;a<P.length;a++)p=P[a],j=p._getVersion,j=j(p._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[p,j]:i.mutableSourceEagerHydrationData.push(p,j);return new yf(i)},za.render=function(a,i,p){if(!bf(i))throw Error(n(200));return wf(null,a,i,!1,p)},za.unmountComponentAtNode=function(a){if(!bf(a))throw Error(n(40));return a._reactRootContainer?(wc(function(){wf(null,null,a,!1,function(){a._reactRootContainer=null,a[_i]=null})}),!0):!1},za.unstable_batchedUpdates=v2,za.unstable_renderSubtreeIntoContainer=function(a,i,p,P){if(!bf(p))throw Error(n(200));if(a==null||a._reactInternals===void 0)throw Error(n(38));return wf(a,i,p,!1,P)},za.version="18.3.1-next-f1338f8080-20240426",za}var P5;function l9(){if(P5)return k2.exports;P5=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),k2.exports=iC(),k2.exports}var M5;function oC(){if(M5)return Cf;M5=1;var t=l9();return Cf.createRoot=t.createRoot,Cf.hydrateRoot=t.hydrateRoot,Cf}var L5=oC();function sC(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Tt(t,e){if(t==null)return{};var n,r,s=sC(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}var T5={exports:{}},P2,A5;function lC(){if(A5)return P2;A5=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return P2=t,P2}var M2,I5;function cC(){if(I5)return M2;I5=1;var t=lC();function e(){}function n(){}return n.resetWarningCache=e,M2=function(){function r(c,d,f,g,v,x){if(x!==t){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}r.isRequired=r;function s(){return r}var o={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},M2}var N5;function uC(){return N5||(N5=1,T5.exports=cC()()),T5.exports}var dC=uC();const et=Vc(dC);var R5={exports:{}},Sn={},F5;function hC(){if(F5)return Sn;F5=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function h(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case t:switch(w=w.type,w){case n:case s:case r:case f:case g:case C:return w;default:switch(w=w&&w.$$typeof,w){case c:case d:case x:case v:return w;case o:return w;default:return E}}case e:return E}}}return Sn.ContextConsumer=o,Sn.ContextProvider=c,Sn.Element=t,Sn.ForwardRef=d,Sn.Fragment=n,Sn.Lazy=x,Sn.Memo=v,Sn.Portal=e,Sn.Profiler=s,Sn.StrictMode=r,Sn.Suspense=f,Sn.SuspenseList=g,Sn.isContextConsumer=function(w){return h(w)===o},Sn.isContextProvider=function(w){return h(w)===c},Sn.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Sn.isForwardRef=function(w){return h(w)===d},Sn.isFragment=function(w){return h(w)===n},Sn.isLazy=function(w){return h(w)===x},Sn.isMemo=function(w){return h(w)===v},Sn.isPortal=function(w){return h(w)===e},Sn.isProfiler=function(w){return h(w)===s},Sn.isStrictMode=function(w){return h(w)===r},Sn.isSuspense=function(w){return h(w)===f},Sn.isSuspenseList=function(w){return h(w)===g},Sn.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===s||w===r||w===f||w===g||typeof w=="object"&&w!==null&&(w.$$typeof===x||w.$$typeof===v||w.$$typeof===c||w.$$typeof===o||w.$$typeof===d||w.$$typeof===y||w.getModuleId!==void 0)},Sn.typeOf=h,Sn}var D5;function fC(){return D5||(D5=1,R5.exports=hC()),R5.exports}var c9=fC();function pC(t){function e(q,rt,ot,ft,it){for(var Y=0,J=0,lt=0,dt=0,yt,gt,Dt=0,Ht=0,It,qt=It=yt=0,Bt=0,ee=0,Kt=0,Yt=0,oe=ot.length,ne=oe-1,ue,Qt="",$t="",we="",Fe="",_e;Bt<oe;){if(gt=ot.charCodeAt(Bt),Bt===ne&&J+dt+lt+Y!==0&&(J!==0&&(gt=J===47?10:47),dt=lt=Y=0,oe++,ne++),J+dt+lt+Y===0){if(Bt===ne&&(0<ee&&(Qt=Qt.replace(C,"")),0<Qt.trim().length)){switch(gt){case 32:case 9:case 59:case 13:case 10:break;default:Qt+=ot.charAt(Bt)}gt=59}switch(gt){case 123:for(Qt=Qt.trim(),yt=Qt.charCodeAt(0),It=1,Yt=++Bt;Bt<oe;){switch(gt=ot.charCodeAt(Bt)){case 123:It++;break;case 125:It--;break;case 47:switch(gt=ot.charCodeAt(Bt+1)){case 42:case 47:t:{for(qt=Bt+1;qt<ne;++qt)switch(ot.charCodeAt(qt)){case 47:if(gt===42&&ot.charCodeAt(qt-1)===42&&Bt+2!==qt){Bt=qt+1;break t}break;case 10:if(gt===47){Bt=qt+1;break t}}Bt=qt}}break;case 91:gt++;case 40:gt++;case 34:case 39:for(;Bt++<ne&&ot.charCodeAt(Bt)!==gt;);}if(It===0)break;Bt++}switch(It=ot.substring(Yt,Bt),yt===0&&(yt=(Qt=Qt.replace(x,"").trim()).charCo
8deAt(0)),yt){case 64:switch(0<ee&&(Qt=Qt.replace(C,"")),gt=Qt.charCodeAt(1),gt){case 100:case 109:case 115:case 45:ee=rt;break;default:ee=z}if(It=e(rt,ee,It,gt,it+1),Yt=It.length,0<Q&&(ee=n(z,Qt,Kt),_e=d(3,It,ee,rt,S,Z,Yt,gt,it,ft),Qt=ee.join(""),_e!==void 0&&(Yt=(It=_e.trim()).length)===0&&(gt=0,It="")),0<Yt)switch(gt){case 115:Qt=Qt.replace(R,c);case 100:case 109:case 45:It=Qt+"{"+It+"}";break;case 107:Qt=Qt.replace(b,"$1 $2"),It=Qt+"{"+It+"}",It=N===1||N===2&&o("@"+It,3)?"@-webkit-"+It+"@"+It:"@"+It;break;default:It=Qt+It,ft===112&&(It=($t+=It,""))}else It="";break;default:It=e(rt,n(rt,Qt,Kt),It,ft,it+1)}we+=It,It=Kt=ee=qt=yt=0,Qt="",gt=ot.charCodeAt(++Bt);break;case 125:case 59:if(Qt=(0<ee?Qt.replace(C,""):Qt).trim(),1<(Yt=Qt.length))switch(qt===0&&(yt=Qt.charCodeAt(0),yt===45||96<yt&&123>yt)&&(Yt=(Qt=Qt.replace(" ",":")).length),0<Q&&(_e=d(1,Qt,rt,q,S,Z,$t.length,ft,it,ft))!==void 0&&(Yt=(Qt=_e.trim()).length)===0&&(Qt="\0\0"),yt=Qt.charCodeAt(0),gt=Qt.charCodeAt(1),yt){case 0:break;case 64:if(gt===105||gt===99){Fe+=Qt+ot.charAt(Bt);break}default:Qt.charCodeAt(Yt-1)!==58&&($t+=s(Qt,yt,gt,Qt.charCodeAt(2)))}Kt=ee=qt=yt=0,Qt="",gt=ot.charCodeAt(++Bt)}}switch(gt){case 13:case 10:J===47?J=0:1+yt===0&&ft!==107&&0<Qt.length&&(ee=1,Qt+="\0"),0<Q*at&&d(0,Qt,rt,q,S,Z,$t.length,ft,it,ft),Z=1,S++;break;case 59:case 125:if(J+dt+lt+Y===0){Z++;break}default:switch(Z++,ue=ot.charAt(Bt),gt){case 9:case 32:if(dt+Y+J===0)switch(Dt){case 44:case 58:case 9:case 32:ue="";break;default:gt!==32&&(ue=" ")}break;case 0:ue="\\0";break;case 12:ue="\\f";break;case 11:ue="\\v";break;case 38:dt+J+Y===0&&(ee=Kt=1,ue="\f"+ue);break;case 108:if(dt+J+Y+I===0&&0<qt)switch(Bt-qt){case 2:Dt===112&&ot.charCodeAt(Bt-3)===58&&(I=Dt);case 8:Ht===111&&(I=Ht)}break;case 58:dt+J+Y===0&&(qt=Bt);break;case 44:J+lt+dt+Y===0&&(ee=1,ue+="\r");break;case 34:case 39:J===0&&(dt=dt===gt?0:dt===0?gt:dt);break;case 91:dt+J+lt===0&&Y++;break;case 93:dt+J+lt===0&&Y--;break;case 41:dt+J+Y===0&&lt--;break;case 40:dt+J+Y===0&&(yt===0&&(2*Dt+3*Ht===533||(yt=1)),lt++);break;case 64:J+lt+dt+Y+qt+It===0&&(It=1);break;case 42:case 47:if(!(0<dt+Y+lt))switch(J){case 0:switch(2*gt+3*ot.charCodeAt(Bt+1)){case 235:J=47;break;case 220:Yt=Bt,J=42}break;case 42:gt===47&&Dt===42&&Yt+2!==Bt&&(ot.charCodeAt(Yt+2)===33&&($t+=ot.substring(Yt,Bt+1)),ue="",J=0)}}J===0&&(Qt+=ue)}Ht=Dt,Dt=gt,Bt++}if(Yt=$t.length,0<Yt){if(ee=rt,0<Q&&(_e=d(2,$t,ee,q,S,Z,Yt,ft,it,ft),_e!==void 0&&($t=_e).length===0))return Fe+$t+we;if($t=ee.join(",")+"{"+$t+"}",N*I!==0){switch(N!==2||o($t,2)||(I=0),I){case 111:$t=$t.replace(_,":-moz-$1")+$t;break;case 112:$t=$t.replace(m,"::-webkit-input-$1")+$t.replace(m,"::-moz-$1")+$t.replace(m,":-ms-input-$1")+$t}I=0}}return Fe+$t+we}function n(q,rt,ot){var ft=rt.trim().split(E);rt=ft;var it=ft.length,Y=q.length;switch(Y){case 0:case 1:var J=0;for(q=Y===0?"":q[0]+" ";J<it;++J)rt[J]=r(q,rt[J],ot).trim();break;default:var lt=J=0;for(rt=[];J<it;++J)for(var dt=0;dt<Y;++dt)rt[lt++]=r(q[dt]+" ",ft[J],ot).trim()}return rt}function r(q,rt,ot){var ft=rt.charCodeAt(0);switch(33>ft&&(ft=(rt=rt.trim()).charCodeAt(0)),ft){case 38:return rt.replace(M,"$1"+q.trim());case 58:return q.trim()+rt.replace(M,"$1"+q.trim());default:if(0<1*ot&&0<rt.indexOf("\f"))return rt.replace(M,(q.charCodeAt(0)===58?"":"$1")+q.trim())}return q+rt}function s(q,rt,ot,ft){var it=q+";",Y=2*rt+3*ot+4*ft;if(Y===944){q=it.indexOf(":",9)+1;var J=it.substring(q,it.length-1).trim();return J=it.substring(0,q).trim()+J+";",N===1||N===2&&o(J,1)?"-webkit-"+J+J:J}if(N===0||N===2&&!o(it,1))return it;switch(Y){case 1015:return it.charCodeAt(10)===97?"-webkit-"+it+it:it;case 951:return it.charCodeAt(3)===116?"-webkit-"+it+it:it;case 963:return it.charCodeAt(5)===110?"-webkit-"+it+it:it;case 1009:if(it.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+it+it;case 978:return"-webkit-"+it+"-moz-"+it+it;case 1019:case 983:return"-webkit-"+it+"-moz-"+it+"-ms-"+it+it;case 883:if(it.charCodeAt(8)===45)return"-webkit-"+it+it;if(0<it.indexOf("image-set(",11))return it.replace(B,"$1-webkit-$2")+it;break;case 932:if(it.charCodeAt(4)===45)switch(it.charCodeAt(5)){case 103:return"-webkit-box-"+it.replace("-grow","")+"-webkit-"+it+"-ms-"+it.replace("grow","positive")+it;case 115:return"-webkit-"+it+"-ms-"+it.replace("shrink","negative")+it;case 98:return"-webkit-"+it+"-ms-"+it.replace("basis","preferred-size")+it}return"-webkit-"+it+"-ms-"+it+it;case 964:return"-webkit-"+it+"-ms-flex-"+it+it;case 1023:if(it.charCodeAt(8)!==99)break;return J=it.substring(it.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+J+"-webkit-"+it+"-ms-flex-pack"+J+it;case 1005:return h.test(it)?it.replace(y,":-webkit-")+it.replace(y,":-moz-")+it:it;case 1e3:switch(J=it.substring(13).trim(),rt=J.indexOf("-")+1,J.charCodeAt(0)+J.charCodeAt(rt)){case 226:J=it.replace(k,"tb");break;case 232:J=it.replace(k,"tb-rl");break;case 220:J=it.replace(k,"lr");break;default:return it}return"-webkit-"+it+"-ms-"+J+it;
8case 1017:if(it.indexOf("sticky",9)===-1)break;case 975:switch(rt=(it=q).length-10,J=(it.charCodeAt(rt)===33?it.substring(0,rt):it).substring(q.indexOf(":",7)+1).trim(),Y=J.charCodeAt(0)+(J.charCodeAt(7)|0)){case 203:if(111>J.charCodeAt(8))break;case 115:it=it.replace(J,"-webkit-"+J)+";"+it;break;case 207:case 102:it=it.replace(J,"-webkit-"+(102<Y?"inline-":"")+"box")+";"+it.replace(J,"-webkit-"+J)+";"+it.replace(J,"-ms-"+J+"box")+";"+it}return it+";";case 938:if(it.charCodeAt(5)===45)switch(it.charCodeAt(6)){case 105:return J=it.replace("-items",""),"-webkit-"+it+"-webkit-box-"+J+"-ms-flex-"+J+it;case 115:return"-webkit-"+it+"-ms-flex-item-"+it.replace(T,"")+it;default:return"-webkit-"+it+"-ms-flex-line-pack"+it.replace("align-content","").replace(T,"")+it}break;case 973:case 989:if(it.charCodeAt(3)!==45||it.charCodeAt(4)===122)break;case 931:case 953:if(A.test(q)===!0)return(J=q.substring(q.indexOf(":")+1)).charCodeAt(0)===115?s(q.replace("stretch","fill-available"),rt,ot,ft).replace(":fill-available",":stretch"):it.replace(J,"-webkit-"+J)+it.replace(J,"-moz-"+J.replace("fill-",""))+it;break;case 962:if(it="-webkit-"+it+(it.charCodeAt(5)===102?"-ms-"+it:"")+it,ot+ft===211&&it.charCodeAt(13)===105&&0<it.indexOf("transform",10))return it.substring(0,it.indexOf(";",27)+1).replace(w,"$1-webkit-$2")+it}return it}function o(q,rt){var ot=q.indexOf(rt===1?":":"{"),ft=q.substring(0,rt!==3?ot:10);return ot=q.substring(ot+1,q.length-1),tt(rt!==2?ft:ft.replace(D,"$1"),ot,rt)}function c(q,rt){var ot=s(rt,rt.charCodeAt(0),rt.charCodeAt(1),rt.charCodeAt(2));return ot!==rt+";"?ot.replace(G," or ($1)").substring(4):"("+rt+")"}function d(q,rt,ot,ft,it,Y,J,lt,dt,yt){for(var gt=0,Dt=rt,Ht;gt<Q;++gt)switch(Ht=W[gt].call(v,q,Dt,ot,ft,it,Y,J,lt,dt,yt)){case void 0:case!1:case!0:case null:break;default:Dt=Ht}if(Dt!==rt)return Dt}function f(q){switch(q){case void 0:case null:Q=W.length=0;break;default:if(typeof q=="function")W[Q++]=q;else if(typeof q=="object")for(var rt=0,ot=q.length;rt<ot;++rt)f(q[rt]);else at=!!q|0}return f}function g(q){return q=q.prefix,q!==void 0&&(tt=null,q?typeof q!="function"?N=1:(N=2,tt=q):N=0),g}function v(q,rt){var ot=q;if(33>ot.charCodeAt(0)&&(ot=ot.trim()),X=ot,ot=[X],0<Q){var ft=d(-1,rt,ot,ot,S,Z,0,0,0,0);ft!==void 0&&typeof ft=="string"&&(rt=ft)}var it=e(z,ot,rt,0,0);return 0<Q&&(ft=d(-2,it,ot,ot,S,Z,it.length,0,0,0),ft!==void 0&&(it=ft)),X="",I=0,Z=S=1,it}var x=/^\0+/g,C=/[\0\r\f]/g,y=/: */g,h=/zoo|gra/,w=/([,: ])(transform)/g,E=/,\r+?/g,M=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,_=/:(read-only)/g,k=/[svh]\w+-[tblr]{2}/,R=/\(\s*(.*)\s*\)/g,G=/([\s\S]*?);/g,T=/-self|flex-/g,D=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,B=/([^-])(image-set\()/,Z=1,S=1,I=0,N=1,z=[],W=[],Q=0,tt=null,at=0,X="";return v.use=f,v.set=g,t!==void 0&&g(t),v}var gC={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mC(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var vC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
8ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,j5=mC(function(t){return vC.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),B5={exports:{}},dn={},H5;function yC(){if(H5)return dn;H5=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,d=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,g=t?Symbol.for("react.concurrent_mode"):60111,v=t?Symbol.for("react.forward_ref"):60112,x=t?Symbol.for("react.suspense"):60113,C=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,E=t?Symbol.for("react.fundamental"):60117,M=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function m(k){if(typeof k=="object"&&k!==null){var R=k.$$typeof;switch(R){case e:switch(k=k.type,k){case f:case g:case r:case o:case s:case x:return k;default:switch(k=k&&k.$$typeof,k){case d:case v:case h:case y:case c:return k;default:return R}}case n:return R}}}function _(k){return m(k)===g}return dn.AsyncMode=f,dn.ConcurrentMode=g,dn.ContextConsumer=d,dn.ContextProvider=c,dn.Element=e,dn.ForwardRef=v,dn.Fragment=r,dn.Lazy=h,dn.Memo=y,dn.Portal=n,dn.Profiler=o,dn.StrictMode=s,dn.Suspense=x,dn.isAsyncMode=function(k){return _(k)||m(k)===f},dn.isConcurrentMode=_,dn.isContextConsumer=function(k){return m(k)===d},dn.isContextProvider=function(k){return m(k)===c},dn.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},dn.isForwardRef=function(k){return m(k)===v},dn.isFragment=function(k){return m(k)===r},dn.isLazy=function(k){return m(k)===h},dn.isMemo=function(k){return m(k)===y},dn.isPortal=function(k){return m(k)===n},dn.isProfiler=function(k){return m(k)===o},dn.isStrictMode=function(k){return m(k)===s},dn.isSuspense=function(k){return m(k)===x},dn.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===g||k===o||k===s||k===x||k===C||typeof k=="object"&&k!==null&&(k.$$typeof===h||k.$$typeof===y||k.$$typeof===c||k.$$typeof===d||k.$$typeof===v||k.$$typeof===E||k.$$typeof===M||k.$$typeof===b||k.$$typeof===w)},dn.typeOf=m,dn}var z5;function bC(){return z5||(z5=1,B5.exports=yC()),B5.exports}var L2,G5;function wC(){if(G5)return L2;G5=1;var t=bC(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=r,o[t.Memo]=s;function c(h){return t.isMemo(h)?s:o[h.$$typeof]||e}var d=Object.defineProperty,f=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,C=Object.prototype;
8function y(h,w,E){if(typeof w!="string"){if(C){var M=x(w);M&&M!==C&&y(h,M,E)}var b=f(w);g&&(b=b.concat(g(w)));for(var m=c(h),_=c(w),k=0;k<b.length;++k){var R=b[k];if(!n[R]&&!(E&&E[R])&&!(_&&_[R])&&!(m&&m[R])){var G=v(w,R);try{d(h,R,G)}catch{}}}}return h}return L2=y,L2}var xC=wC();const CC=Vc(xC);var Ii={};function ao(){return(ao=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var U5=function(t,e){for(var n=[t[0]],r=0,s=e.length;r<s;r+=1)n.push(e[r],t[r+1]);return n},vg=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!c9.typeOf(t)},dp=Object.freeze([]),Sl=Object.freeze({});function hd(t){return typeof t=="function"}function W5(t){return t.displayName||t.name||"Component"}function nm(t){return t&&typeof t.styledComponentId=="string"}var fd=typeof o9<"u"&&Ii!==void 0&&(Ii.REACT_APP_SC_ATTR||Ii.SC_ATTR)||"data-styled",rm=typeof window<"u"&&"HTMLElement"in window,SC=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof o9<"u"&&Ii!==void 0&&(Ii.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ii.REACT_APP_SC_DISABLE_SPEEDY!==""?Ii.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ii.REACT_APP_SC_DISABLE_SPEEDY:Ii.SC_DISABLE_SPEEDY!==void 0&&Ii.SC_DISABLE_SPEEDY!==""&&Ii.SC_DISABLE_SPEEDY!=="false"&&Ii.SC_DISABLE_SPEEDY)),_C={};function zc(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var EC=(function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var r=0,s=0;s<n;s++)r+=this.groupSizes[s];return r},e.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var s=this.groupSizes,o=s.length,c=o;n>=c;)(c<<=1)<0&&zc(16,""+n);this.groupSizes=new Uint32Array(c),this.groupSizes.set(s),this.length=c;for(var d=o;d<c;d++)this.groupSizes[d]=0}for(var f=this.indexOfGroup(n+1),g=0,v=r.length;g<v;g++)this.tag.insertRule(f,r[g])&&(this.groupSizes[n]++,f++)},e.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],s=this.indexOfGroup(n),o=s+r;this.groupSizes[n]=0;for(var c=s;c<o;c++)this.tag.deleteRule(s)}},e.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var s=this.groupSizes[n],o=this.indexOfGroup(n),c=o+s,d=o;d<c;d++)r+=this.tag.getRule(d)+`/*!sc*/
9`;return r},t})(),qf=new Map,hp=new Map,d1=1,Sf=function(t){if(qf.has(t))return qf.get(t);for(;hp.has(d1);)d1++;var e=d1++;return qf.set(t,e),hp.set(e,t),e},OC=function(t){return hp.get(t)},kC=function(t,e){e>=d1&&(d1=e+1),qf.set(t,e),hp.set(e,t)},PC="style["+fd+'][data-styled-version="5.3.11"]',MC=new RegExp("^"+fd+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),LC=function(t,e,n){for(var r,s=n.split(","),o=0,c=s.length;o<c;o++)(r=s[o])&&t.registerName(e,r)},TC=function(t,e){for(var n=(e.textContent||"").split(`/*!sc*/
10`),r=[],s=0,o=n.length;s<o;s++){var c=n[s].trim();if(c){var d=c.match(MC);if(d){var f=0|parseInt(d[1],10),g=d[2];f!==0&&(kC(g,f),LC(t,g,d[3]),t.getTag().insertRules(f,r)),r.length=0}else r.push(c)}}},AC=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},u9=function(t){var e=document.head,n=t||e,r=document.createElement("style"),s=(function(d){for(var f=d.childNodes,g=f.length;g>=0;g--){var v=f[g];if(v&&v.nodeType===1&&v.hasAttribute(fd))return v}})(n),o=s!==void 0?s.nextSibling:null;r.setAttribute(fd,"active"),r.setAttribute("data-styled-version","5.3.11");var c=AC();return c&&r.setAttribute("nonce",c),n.insertBefore(r,o),r},IC=(function(){function t(n){var r=this.element=u9(n);r.appendChild(document.createTextNode("")),this.sheet=(function(s){if(s.sheet)return s.sheet;for(var o=document.styleSheets,c=0,d=o.length;c<d;c++){var f=o[c];if(f.ownerNode===s)return f}zc(17)})(r),this.length=0}var e=t.prototype;return e.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},e.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},t})(),NC=(function(){function t(n){var r=this.element=u9(n);this.nodes=r.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(n,r){if(n<=this.length&&n>=0){var s=document.createTextNode(r),o=this.nodes[n];return this.element.insertBefore(s,o||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},t})(),RC=(function(){function t(n){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},e.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.getRule=function(n){return n<this.length?this.rules[n]:""},t})(),V5=rm,FC={isServer:!rm,useCSSOMInjection:!SC},fp=(function(){function t(n,r,s){n===void 0&&(n=Sl),r===void 0&&(r={}),this.options=ao({},FC,{},n),this.gs=r,this.names=new Map(s),this.server=!!n.isServer,!this.server&&rm&&V5&&(V5=!1,(function(o){for(var c=document.querySelectorAll(PC
10),d=0,f=c.length;d<f;d++){var g=c[d];g&&g.getAttribute(fd)!=="active"&&(TC(o,g),g.parentNode&&g.parentNode.removeChild(g))}})(this))}t.registerId=function(n){return Sf(n)};var e=t.prototype;return e.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new t(ao({},this.options,{},n),this.gs,r&&this.names||void 0)},e.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.getTag=function(){return this.tag||(this.tag=(s=(r=this.options).isServer,o=r.useCSSOMInjection,c=r.target,n=s?new RC(c):o?new IC(c):new NC(c),new EC(n)));var n,r,s,o,c},e.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},e.registerName=function(n,r){if(Sf(n),this.names.has(n))this.names.get(n).add(r);else{var s=new Set;s.add(r),this.names.set(n,s)}},e.insertRules=function(n,r,s){this.registerName(n,r),this.getTag().insertRules(Sf(n),s)},e.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.clearRules=function(n){this.getTag().clearGroup(Sf(n)),this.clearNames(n)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return(function(n){for(var r=n.getTag(),s=r.length,o="",c=0;c<s;c++){var d=OC(c);if(d!==void 0){var f=n.names.get(d),g=r.getGroup(c);if(f&&g&&f.size){var v=fd+".g"+c+'[id="'+d+'"]',x="";f!==void 0&&f.forEach(function(C){C.length>0&&(x+=C+",")}),o+=""+g+v+'{content:"'+x+`"}/*!sc*/
11`}}}return o})(this)},t})(),DC=/(a)(d)/gi,Y5=function(t){return String.fromCharCode(t+(t>25?39:97))};function yg(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=Y5(e%52)+n;return(Y5(e%52)+n).replace(DC,"$1-$2")}var id=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},d9=function(t){return id(5381,t)};function h9(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(hd(n)&&!nm(n))return!1}return!0}var jC=d9("5.3.11"),BC=(function(){function t(e,n,r){this.rules=e,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&h9(e),this.componentId=n,this.baseHash=id(jC,n),this.baseStyle=r,fp.registerId(n)}return t.prototype.generateAndInjectStyles=function(e,n,r){var s=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(s,this.staticRulesId))o.push(this.staticRulesId);else{var c=Gc(this.rules,e,n,r).join(""),d=yg(id(this.baseHash,c)>>>0);if(!n.hasNameForId(s,d)){var f=r(c,"."+d,void 0,s);n.insertRules(s,d,f)}o.push(d),this.staticRulesId=d}else{for(var g=this.rules.length,v=id(this.baseHash,r.hash),x="",C=0;C<g;C++){var y=this.rules[C];if(typeof y=="string")x+=y;else if(y){var h=Gc(y,e,n,r),w=Array.isArray(h)?h.join(""):h;v=id(v,w+C),x+=w}}if(x){var E=yg(v>>>0);if(!n.hasNameForId(s,E)){var M=r(x,"."+E,void 0,s);n.insertRules(s,E,M)}o.push(E)}}return o.join(" ")},t})(),HC=/^\s*\/\/.*$/gm,zC=[":","[",".","#"];function GC(t){var e,n,r,s,o=Sl,c=o.options,d=c===void 0?Sl:c,f=o.plugins,g=f===void 0?dp:f,v=new pC(d),x=[],C=(function(w){function E(M){if(M)try{w(M+"}")}catch{}}return function(M,b,m,_,k,R,G,T,D,A){switch(M){case 1:if(D===0&&b.charCodeAt(0)===64)return w(b+";"),"";break;case 2:if(T===0)return b+"/*|*/";break;case 3:switch(T){case 102:case 112:return w(m[0]+b),"";default:return b+(A===0?"/*|*/":"")}case-2:b.split("/*|*/}").forEach(E)}}})(function(w){x.push(w)}),y=function(w,E,M){return E===0&&zC.indexOf(M[n.length])!==-1||M.match(s)?w:"."+e};function h(w,E,M,b){b===void 0&&(b="&");var m=w.replace(HC,""),_=E&&M?M+" "+E+" { "+m+" }":m;return e=b,n=E,r=new RegExp("\\"+n+"\\b","g"),s=new RegExp("(\\"+n+"\\b){2,}"),v(M||!E?"":E,_)}return v.use([].concat(g,[function(w,E,M){w===2&&M.length&&M[0].lastIndexOf(n)>0&&(M[0]=M[0].replace(r,y))},C,function(w){if(w===-2){var E=x;return x=[],E}}])),h.hash=g.length?g.reduce(function(w,E){return E.name||zc(15),id(w,E.name)},5381).toString():"",h}var f9=L.createContext();f9.Consumer;var p9=L.createContext(),UC=(p9.Consumer,new fp),bg=GC();function g9(){return ct.useContext(f9)||UC}function m9(){return ct.useContext(p9)||bg}var v9=(function(){function t(e,n){var r=this;this.inject=function(s,o){o===void 0&&(o=bg);var c=r.name+o.hash;
11s.hasNameForId(r.id,c)||s.insertRules(r.id,c,o(r.rules,c,"@keyframes"))},this.toString=function(){return zc(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=bg),this.name+e.hash},t})(),WC=/([A-Z])/,VC=/([A-Z])/g,YC=/^ms-/,ZC=function(t){return"-"+t.toLowerCase()};function Z5(t){return WC.test(t)?t.replace(VC,ZC).replace(YC,"-ms-"):t}var K5=function(t){return t==null||t===!1||t===""};function Gc(t,e,n,r){if(Array.isArray(t)){for(var s,o=[],c=0,d=t.length;c<d;c+=1)(s=Gc(t[c],e,n,r))!==""&&(Array.isArray(s)?o.push.apply(o,s):o.push(s));return o}if(K5(t))return"";if(nm(t))return"."+t.styledComponentId;if(hd(t)){if(typeof(g=t)!="function"||g.prototype&&g.prototype.isReactComponent||!e)return t;var f=t(e);return Gc(f,e,n,r)}var g;return t instanceof v9?n?(t.inject(n,r),t.getName(r)):t:vg(t)?(function v(x,C){var y,h,w=[];for(var E in x)x.hasOwnProperty(E)&&!K5(x[E])&&(Array.isArray(x[E])&&x[E].isCss||hd(x[E])?w.push(Z5(E)+":",x[E],";"):vg(x[E])?w.push.apply(w,v(x[E],E)):w.push(Z5(E)+": "+(y=E,(h=x[E])==null||typeof h=="boolean"||h===""?"":typeof h!="number"||h===0||y in gC||y.startsWith("--")?String(h).trim():h+"px")+";"));return C?[C+" {"].concat(w,["}"]):w})(t):t.toString()}var $5=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function pt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return hd(t)||vg(t)?$5(Gc(U5(dp,[t].concat(n)))):n.length===0&&t.length===1&&typeof t[0]=="string"?t:$5(Gc(U5(t,n)))}var y9=function(t,e,n){return n===void 0&&(n=Sl),t.theme!==n.theme&&t.theme||e||n.theme},KC=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$C=/(^-|-$)/g;function T2(t){return t.replace(KC,"-").replace($C,"")}var am=function(t){return yg(d9(t)>>>0)};function _f(t){return typeof t=="string"&&!0}var wg=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},XC=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function qC(t,e,n){var r=t[n];wg(e)&&wg(r)?b9(r,e):t[n]=e}function b9(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var s=0,o=n;s<o.length;s++){var c=o[s];if(wg(c))for(var d in c)XC(d)&&qC(t,c[d],d)}return t}var pd=L.createContext();pd.Consumer;function QC(t){var e=ct.useContext(pd),n=ct.useMemo(function(){return(function(r,s){if(!r)return zc(14);if(hd(r)){var o=r(s);return o}return Array.isArray(r)||typeof r!="object"?zc(8):s?ao({},s,{},r):r})(t.theme,e)},[t.theme,e]);return t.children?L.createElement(pd.Provider,{value:n},t.children):null}var A2={};function w9(t,e,n){var r=nm(t),s=!_f(t),o=e.attrs,c=o===void 0?dp:o,d=e.componentId,f=d===void 0?(function(b,m){var _=typeof b!="string"?"sc":T2(b);A2[_]=(A2[_]||0)+1;var k=_+"-"+am("5.3.11"+_+A2[_]);return m?m+"-"+k:k})(e.displayName,e.parentComponentId):d,g=e.displayName,v=g===void 0?(function(b){return _f(b)?"styled."+b:"Styled("+W5(b)+")"})(t):g,x=e.displayName&&e.componentId?T2(e.displayName)+"-"+e.componentId:e.componentId||f,C=r&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,y=e.shouldForwardProp;r&&t.shouldForwardProp&&(y=e.shouldForwardProp?function(b,m,_){return t.shouldForwardProp(b,m,_)&&e.shouldForwardProp(b,m,_)}:t.shouldForwardProp);var h,w=new BC(n,x,r?t.componentStyle:void 0),E=w.isStatic&&c.length===0,M=function(b,m){return(function(_,k,R,G){var T=_.attrs,D=_.componentStyle,A=_.defaultProps,B=_.foldedComponentIds,Z=_.shouldForwardProp,S=_.styledComponentId,I=_.target,N=(function(ft,it,Y){ft===void 0&&(ft=Sl);var J=ao({},it,{theme:ft}),lt={};return Y.forEach(function(dt){var yt,gt,Dt,Ht=dt;for(yt in hd(Ht)&&(Ht=Ht(J)),Ht)J[yt]=lt[yt]=yt==="className"?(gt=lt[yt],Dt=Ht[yt],gt&&Dt?gt+" "+Dt:gt||Dt):Ht[yt]}),[J,lt]})(y9(k,ct.useContext(pd),A)||Sl,k,T),z=N[0],W=N[1],Q=(function(ft,it,Y,J){var lt=g9(),dt=m9(),yt=it?ft.generateAndInjectStyles(Sl,lt,dt):ft.generateAndInjectStyles(Y,lt,dt);return yt})(D,G,z),tt=R,at=W.$as||k.$as||W.as||k.as||I,X=_f(at),q=W!==k?ao({},k,{},W):k,rt={};for(var ot in q)ot[0]!=="$"&&ot!=="as"&&(ot==="forwardedAs"?rt.as=q[ot]:(Z?Z(ot,j5,at):!X||j5(ot))&&(rt[ot]=q[ot]));return k.style&&W.style!==k.style&&(rt.style=ao({},k.style,{},W.style)),rt.className=Array.prototype.concat(B,S,Q!==S?Q:null,k.className,W.className).filter(
11Boolean).join(" "),rt.ref=tt,ct.createElement(at,rt)})(h,b,m,E)};return M.displayName=v,(h=L.forwardRef(M)).attrs=C,h.componentStyle=w,h.displayName=v,h.shouldForwardProp=y,h.foldedComponentIds=r?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):dp,h.styledComponentId=x,h.target=r?t.target:t,h.withComponent=function(b){var m=e.componentId,_=(function(R,G){if(R==null)return{};var T,D,A={},B=Object.keys(R);for(D=0;D<B.length;D++)T=B[D],G.indexOf(T)>=0||(A[T]=R[T]);return A})(e,["componentId"]),k=m&&m+"-"+(_f(b)?b:T2(W5(b)));return w9(b,ao({},_,{attrs:C,componentId:k}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?b9({},t.defaultProps,b):b}}),Object.defineProperty(h,"toString",{value:function(){return"."+h.styledComponentId}}),s&&CC(h,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var mt=function(t){return(function e(n,r,s){if(s===void 0&&(s=Sl),!c9.isValidElementType(r))return zc(1,String(r));var o=function(){return n(r,s,pt.apply(void 0,arguments))};return o.withConfig=function(c){return e(n,r,ao({},s,{},c))},o.attrs=function(c){return e(n,r,ao({},s,{attrs:Array.prototype.concat(s.attrs,c).filter(Boolean)}))},o})(w9,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){mt[t]=mt(t)});var JC=(function(){function t(n,r){this.rules=n,this.componentId=r,this.isStatic=h9(n),fp.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(n,r,s,o){var c=o(Gc(this.rules,r,s,o).join(""),""),d=this.componentId+n;s.insertRules(d,d,c)},e.removeStyles=function(n,r){r.clearRules(this.componentId+n)},e.renderStyles=function(n,r,s,o){n>2&&fp.registerId(this.componentId+n),this.removeStyles(n,s),this.createStyles(n,r,s,o)},t})();function Mp(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var s=pt.apply(void 0,[t].concat(n)),o="sc-global-"+am(JSON.stringify(s)),c=new JC(s,o);function d(g){var v=g9(),x=m9(),C=ct.useContext(pd),y=ct.useRef(v.allocateGSInstance(o)).current;return v.server&&f(y,g,v,C,x),ct.useLayoutEffect(function(){if(!v.server)return f(y,g,v,C,x),function(){return c.removeStyles(y,v)}},[y,g,v,C,x]),null}function f(g,v,x,C,y){if(c.isStatic)c.renderStyles(g,_C,x,y);else{var h=ao({},v,{theme:y9(v,C,d.defaultProps)});c.renderStyles(g,h,x,y)}}return L.memo(d)}function im(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var s=pt.apply(void 0,[t].concat(n)).join(""),o=am(s);return new v9(o,s)}var tS=function(){return ct.useContext(pd)},Qf={exports:{}};Qf.exports;var X5;function eS(){return X5||(X5=1,(function(t,e){var n=200,r="__lodash_hash_undefined__",s=800,o=16,c=9007199254740991,d="[object Arguments]",f="[object Array]",g="[object AsyncFunction]",v="[object Boolean]",x="[object Date]",C="[object Error]",y="[object Function]",h="[object GeneratorFunction]",w="[object Map]",E="[object Number]",M="[object Null]",b="[object Object]",m="[object Proxy]",_="[object RegExp]",k="[object Set]",R="[object String]",G="[object Undef
11ined]",T="[object WeakMap]",D="[object ArrayBuffer]",A="[object DataView]",B="[object Float32Array]",Z="[object Float64Array]",S="[object Int8Array]",I="[object Int16Array]",N="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",Q="[object Uint16Array]",tt="[object Uint32Array]",at=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,rt={};rt[B]=rt[Z]=rt[S]=rt[I]=rt[N]=rt[z]=rt[W]=rt[Q]=rt[tt]=!0,rt[d]=rt[f]=rt[D]=rt[v]=rt[A]=rt[x]=rt[C]=rt[y]=rt[w]=rt[E]=rt[b]=rt[_]=rt[k]=rt[R]=rt[T]=!1;var ot=typeof Cl=="object"&&Cl&&Cl.Object===Object&&Cl,ft=typeof self=="object"&&self&&self.Object===Object&&self,it=ot||ft||Function("return this")(),Y=e&&!e.nodeType&&e,J=Y&&!0&&t&&!t.nodeType&&t,lt=J&&J.exports===Y,dt=lt&&ot.process,yt=(function(){try{var ut=J&&J.require&&J.require("util").types;return ut||dt&&dt.binding&&dt.binding("util")}catch{}})(),gt=yt&&yt.isTypedArray;function Dt(ut,xt,Pt){switch(Pt.length){case 0:return ut.call(xt);case 1:return ut.call(xt,Pt[0]);case 2:return ut.call(xt,Pt[0],Pt[1]);case 3:return ut.call(xt,Pt[0],Pt[1],Pt[2])}return ut.apply(xt,Pt)}function Ht(ut,xt){for(var Pt=-1,le=Array(ut);++Pt<ut;)le[Pt]=xt(Pt);return le}function It(ut){return function(xt){return ut(xt)}}function qt(ut,xt){return ut?.[xt]}function Bt(ut,xt){return function(Pt){return ut(xt(Pt))}}var ee=Array.prototype,Kt=Function.prototype,Yt=Object.prototype,oe=it["__core-js_shared__"],ne=Kt.toString,ue=Yt.hasOwnProperty,Qt=(function(){var ut=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return ut?"Symbol(src)_1."+ut:""})(),$t=Yt.toString,we=ne.call(Object),Fe=RegExp("^"+ne.call(ue).replace(at,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=lt?it.Buffer:void 0,pn=it.Symbol,jt=it.Uint8Array;_e&&_e.allocUnsafe;var se=Bt(Object.getPrototypeOf,Object),Se=Object.create,xe=Yt.propertyIsEnumerable,Ge=ee.splice,an=pn?pn.toStringTag:void 0,bn=(function(){try{var ut=fo(Object,"defineProperty");return ut({},"",{}),ut}catch{}})(),Ur=_e?_e.isBuffer:void 0,Ma=Math.max,La=Date.now,ve=fo(it,"Map"),Ce=fo(Object,"create"),Ue=(function(){function ut(){}return function(xt){if(!wi(xt))return{};if(Se)return Se(xt);ut.prototype=xt;var Pt=new ut;return ut.prototype=void 0,Pt}})();function gn(ut){var xt=-1,Pt=ut==null?0:ut.length;for(this.clear();++xt<Pt;){var le=ut[xt];this.set(le[0],le[1])}}function zn(){this.__data__=Ce?Ce(null):{},this.size=0}function ga(ut){var xt=this.has(ut)&&delete this.__data__[ut];return this.size-=xt?1:0,xt}function ta(ut){var xt=this.__data__;if(Ce){var Pt=xt[ut];return Pt===r?void 0:Pt}return ue.call(xt,ut)?xt[ut]:void 0}function Vo(ut){var xt=this.__data__;return Ce?xt[ut]!==void 0:ue.call(xt,ut)}function ho(ut,xt){var Pt=this.__data__;return this.size+=this.has(ut)?0:1,Pt[ut]=Ce&&xt===void 0?r:xt,this}gn.prototype.clear=zn,gn.prototype.delete=ga,gn.prototype.get=ta,gn.prototype.has=Vo,gn.prototype.set=ho;function ea(ut){var xt=-1,Pt=ut==null?0:ut.length;for(this.clear();++xt<Pt;){var le=ut[xt];this.set(le[0],le[1])}}function ji(){this.__data__=[],this.size=0}function Qa(ut){var xt=this.__data__,Pt=As(xt,ut);if(Pt<0)return!1;var le=xt.length-1;return Pt==le?xt.pop():Ge.call(xt,Pt,1),--this.size,!0}function Fn(ut){var xt=this.__data__,Pt=As(xt,ut);return Pt<0?void 0:xt[Pt][1]}function na(ut){return As(this.__data__,ut)>-1}function Bi(ut,xt){var Pt=this.__data__,le=As(Pt,ut);return le<0?(++this.size,Pt.push([ut,xt])):Pt[le][1]=xt,this}ea.prototype.clear=ji,ea.prototype.delete=Qa,ea.prototype.get=Fn,ea.prototype.has=na,ea.prototype.set=Bi;function Ja(ut){var xt=-1,Pt=ut==null?0:ut.length;for(this.clear();++xt<Pt;){var le=ut[xt];this.set(le[0],le[1])}}function Hi(){this.size=0,this.__data__={hash:new gn,map:new(ve||ea),string:new gn}}function Rl(ut){var xt=$o(this,ut).delete(ut);return this.size-=xt?1:0,xt}function kd(ut){return $o(this,ut).get(ut)}function Pd(ut){return $o(this,ut).has(ut)}function Md(ut,xt){var Pt=$o(this,ut),le=Pt.size;return Pt.set(ut,xt),this.size+=Pt.size==le?0:1,this}Ja.prototype.clear=Hi,Ja.prototype.delete=Rl,Ja.prototype.get=kd,Ja.prototype.has=Pd,Ja.prototype.set=Md;function ra(ut){var xt=this.__data__=new ea(ut);this.size=xt.size}function $c(){this.__data__=new ea,this.size=0}function Xc(ut){var xt=this.__data__,Pt=xt.delete(ut);return this.size=xt.size,Pt}function Ld(ut){return this.__data__.get(ut)}function qc(ut){return this.__data__.has(ut)}function Qc(ut,xt){var Pt=this.__data__;if(Pt instanceof ea){var le=Pt.__data__;if(!ve||le.length<n-1)return le.push([ut,xt]),this.size=++Pt.size,this;Pt=this.__data__=new Ja(le)}return Pt.set(ut,xt),this.size=Pt.size,this}ra.prototype.clear=$c,ra.prototype.delete=Xc,ra.prototype.get=Ld,ra.prototype.has=qc,ra.prototype.set=Qc;
11function Jc(ut,xt){var Pt=oa(ut),le=!Pt&&Ta(ut),Ne=!Pt&&!le&&bi(ut),nn=!Pt&&!le&&!Ne&&Hl(ut),Ve=Pt||le||Ne||nn,Ee=Ve?Ht(ut.length,String):[],Qe=Ee.length;for(var ir in ut)Ve&&(ir=="length"||Ne&&(ir=="offset"||ir=="parent")||nn&&(ir=="buffer"||ir=="byteLength"||ir=="byteOffset")||Rs(ir,Qe))||Ee.push(ir);return Ee}function Ts(ut,xt,Pt){(Pt!==void 0&&!ma(ut[xt],Pt)||Pt===void 0&&!(xt in ut))&&mn(ut,xt,Pt)}function Td(ut,xt,Pt){var le=ut[xt];(!(ue.call(ut,xt)&&ma(le,Pt))||Pt===void 0&&!(xt in ut))&&mn(ut,xt,Pt)}function As(ut,xt){for(var Pt=ut.length;Pt--;)if(ma(ut[Pt][0],xt))return Pt;return-1}function mn(ut,xt,Pt){xt=="__proto__"&&bn?bn(ut,xt,{configurable:!0,enumerable:!0,value:Pt,writable:!0}):ut[xt]=Pt}var Yo=Ko();function vi(ut){return ut==null?ut===void 0?G:M:an&&an in Object(ut)?Ns(ut):qo(ut)}function Zo(ut){return ln(ut)&&vi(ut)==d}function Is(ut){if(!wi(ut)||po(ut))return!1;var xt=va(ut)?Fe:X;return xt.test(Qo(ut))}function Fl(ut){return ln(ut)&&tu(ut.length)&&!!rt[vi(ut)]}function zi(ut){if(!wi(ut))return go(ut);var xt=Ke(ut),Pt=[];for(var le in ut)le=="constructor"&&(xt||!ue.call(ut,le))||Pt.push(le);return Pt}function aa(ut,xt,Pt,le,Ne){ut!==xt&&Yo(xt,function(nn,Ve){if(Ne||(Ne=new ra),wi(nn))We(ut,xt,Ve,Pt,aa,le,Ne);else{var Ee=le?le(Fs(ut,Ve),nn,Ve+"",ut,xt,Ne):void 0;Ee===void 0&&(Ee=nn),Ts(ut,Ve,Ee)}},zl)}function We(ut,xt,Pt,le,Ne,nn,Ve){var Ee=Fs(ut,Pt),Qe=Fs(xt,Pt),ir=Ve.get(Qe);if(ir){Ts(ut,Pt,ir);return}var or=nn?nn(Ee,Qe,Pt+"",ut,xt,Ve):void 0,Un=or===void 0;if(Un){var sr=oa(Qe),Aa=!sr&&bi(Qe),Tn=!sr&&!Aa&&Hl(Qe);or=Qe,sr||Aa||Tn?oa(Ee)?or=Ee:mo(Ee)?or=ti(Ee):Aa?(Un=!1,or=hr(Qe)):Tn?(Un=!1,or=Gi(Qe)):or=[]:Bl(Qe)||Ta(Qe)?(or=Ee,Ta(Ee)?or=vo(Ee):(!wi(Ee)||va(Ee))&&(or=ia(Qe))):Un=!1}Un&&(Ve.set(Qe,or),Ne(or,Qe,le,nn,Ve),Ve.delete(Qe)),Ts(ut,Pt,or)}function sn(ut,xt){return Ds(Dl(ut,xt,yo),ut+"")}var qn=bn?function(ut,xt){return bn(ut,"toString",{configurable:!0,enumerable:!1,value:Ir(xt),writable:!0})}:yo;function hr(ut,xt){return ut.slice()}function Ar(ut){var xt=new ut.constructor(ut.byteLength);return new jt(xt).set(new jt(ut)),xt}function Gi(ut,xt){var Pt=Ar(ut.buffer);return new ut.constructor(Pt,ut.byteOffset,ut.length)}function ti(ut,xt){var Pt=-1,le=ut.length;for(xt||(xt=Array(le));++Pt<le;)xt[Pt]=ut[Pt];return xt}function ar(ut,xt,Pt,le){var Ne=!Pt;Pt||(Pt={});for(var nn=-1,Ve=xt.length;++nn<Ve;){var Ee=xt[nn],Qe=void 0;Qe===void 0&&(Qe=ut[Ee]),Ne?mn(Pt,Ee,Qe):Td(Pt,Ee,Qe)}return Pt}function yi(ut){return sn(function(xt,Pt){var le=-1,Ne=Pt.length,nn=Ne>1?Pt[Ne-1]:void 0,Ve=Ne>2?Pt[2]:void 0;for(nn=ut.length>3&&typeof nn=="function"?(Ne--,nn):void 0,Ve&&Xo(Pt[0],Pt[1],Ve)&&(nn=Ne<3?void 0:nn,Ne=1),xt=Object(xt);++le<Ne;){var Ee=Pt[le];Ee&&ut(xt,Ee,le,nn)}return xt})}function Ko(ut){return function(xt,Pt,le){for(var Ne=-1,nn=Object(xt),Ve=le(xt),Ee=Ve.length;Ee--;){var Qe=Ve[++Ne];if(Pt(nn[Qe],Qe,nn)===!1)break}return xt}}function $o(ut,xt){var Pt=ut.__data__;return Ad(xt)?Pt[typeof xt=="string"?"string":"hash"]:Pt.map}function fo(ut,xt){var Pt=qt(ut,xt);return Is(Pt)?Pt:void 0}function Ns(ut){var xt=ue.call(ut,an),Pt=ut[an];try{ut[an]=void 0;var le=!0}catch{}var Ne=$t.call(ut);return le&&(xt?ut[an]=Pt:delete ut[an]),Ne}function ia(ut){return typeof ut.constructor=="function"&&!Ke(ut)?Ue(se(ut)):{}}function Rs(ut,xt){var Pt=typeof ut;return xt=xt??c,!!xt&&(Pt=="number"||Pt!="symbol"&&q.test(ut))&&ut>-1&&ut%1==0&&ut<xt}function Xo(ut,xt,Pt){if(!wi(Pt))return!1;var le=typeof xt;return(le=="number"?Me(Pt)&&Rs(xt,Pt.length):le=="string"&&xt in Pt)?ma(Pt[xt],ut):!1}function Ad(ut){var xt=typeof ut;return xt=="string"||xt=="number"||xt=="symbol"||xt=="boolean"?ut!=="__proto__":ut===null}function po(ut){return!!Qt&&Qt in ut}function Ke(ut){var xt=ut&&ut.constructor,Pt=typeof xt=="function"&&xt.prototype||Yt;return ut===Pt}function go(ut){var xt=[];if(ut!=null)for(var Pt in Object(ut))xt.push(Pt);return xt}function qo(ut){return $t.call(ut)}function Dl(ut,xt,Pt){return xt=Ma(xt===void 0?ut.length-1:xt,0),function(){for(var le=arguments,Ne=-1,nn=Ma(le.length-xt,0),Ve=Array(nn);++Ne<nn;)Ve[Ne]=le[xt+Ne];Ne=-1;for(var Ee=Array(xt+1);++Ne<xt;)Ee[Ne]=le[Ne];return Ee[xt]=Pt(Ve),Dt(ut,this,Ee)}}function Fs(ut,xt){if(!(xt==="constructor"&&typeof ut[xt]=="function")&&xt!="__proto__")return ut[xt]}var Ds=jl(qn);function jl(ut){var xt=0,Pt=0;return function(){var le=La(),Ne=o-(le-Pt);if(Pt=le,Ne>0){if(++xt>=s)return arguments[0]}else xt=0;return ut.apply(void 0,arguments)}}function Qo(ut){if(ut!=null){try{return ne.call(ut)}catch{}try{return ut+""}catch{}}return""}function ma(ut,xt){return ut===xt||ut!==ut&&xt!==xt}var Ta=Zo((function(){return arguments})())?Zo:function(ut){return ln(ut)&&ue.call(ut,"callee")&&!xe.call(ut,"callee")},oa=Array.isArray;function Me(ut){return ut!=null&&tu(ut.length)&&!va(ut)}function mo(ut){return ln(ut)&&Me(ut)}var bi=Ur||bo;function va(ut){if(!wi(ut))return!1;var xt=vi(ut);return xt==y||xt==h||xt==g||xt==m}function tu(ut){return typeof ut=="number"&&ut>-1&&ut%1==0&&ut<=c}function wi(ut){var xt=typeof ut;return ut!=null&&(xt=="object"||xt=="function")}function ln(ut){return ut!=null&&typeof ut=="object"}function Bl(ut){if(!ln(ut)||vi(ut)!=b)return!1;var xt=se(ut);if(xt===null)return!0;var Pt=ue.call(xt,"constructor")&&xt.constructor;return typeof Pt=="function"&&Pt instanceof Pt&&ne.call(Pt)==we}var Hl=gt?It(gt):Fl;function vo(ut){return ar(ut,zl(ut))}function zl(ut){return Me(ut)?Jc(ut):zi(ut)}var js=yi(function(ut,xt,Pt){aa(ut,xt,Pt)});function Ir(ut){return function(){return ut}}function yo(ut){return ut}function bo(){return!1}t.exports=js})(Qf,Qf.exports)),Qf.exports}var nS=eS();const rS=Vc(nS);var _c=function(t,e){return t.reduce(function(n,r){return Object.assign(n,V({},r,e))},{})};function xg(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function aS(t){if(Array.isArray(t))return xg(t)}function x9(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function om(t,e){if(t){if(typeof t=="string")return xg(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xg(t,e):void 0}}function iS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hn(t){return aS(t)||x9(t)||om(t)||iS()}function Rt(t,e){var n=function(s){return"Sfx".concat(t).concat(s?"-".concat(s):"")},r=[];return e&&(Array.isArray(e)?r.push.apply(r,Hn(e.filter(function(s){return typeof s=="string"}).map(function(s){return n(s)}))):typeof e=="string"&&r.push(n(e))),r.length===0&&r.push(n()),r.join(" ")}function Be(t,e){var n=ct.forwardRef(t);return n.displayName=t.name,n}function oS(t){return Object.keys(t)}function je(t){return Object.values(t)}function sS(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return typeof t=="function"?t.apply(void 0,n):t}function fn(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return r.displayName="".concat(n),Object.assign(e,V({},n,r))},{})}function q5(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function sm(t,e){return ct.useMemo(function(){return t==null&&e==null?null:function(n){q5(t,n),q5(e,n)}},[t,e])}function Wu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=n||1e6,s=+t;return Math.min(Math.max(e,s),r)}function I2(t,e,n,r,s){return(t-e)*(s-r)/(n-e)+r}var lm=function(t){return t.replaceAll(/[^\d,]/gi,"").split(",").map(function(e){return+e})},Jf=function(t){return t?[Number.parseInt(t.slice(1,3),16),Number.parseInt(t.slice(3,5),16),Number.parseInt(t.slice(5,7),16)]:[0,0,0]},C9=function(t){return t.toString(16).padStart(2,"0")},S9=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return"#".concat(e.map(C9).join(""))},lS=function(t,e,n){var r=n/100,s=e*Math.min(r,1-r)/100,o=function(c){var d=(c+t/30)%12,f
12=r-s*Math.max(Math.min(d-3,9-d,1),-1);return C9(Math.round(255*f))};return"#".concat(o(0)).concat(o(8)).concat(o(4))},Q5=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],s=e[1],o=e[2];r/=255,s/=255,o/=255;var c=Math.min(r,s,o),d=Math.max(r,s,o),f,g,v=(d+c)/2;if(d===c)f=0,g=0;else{var x=d-c;switch(g=v>.5?x/(2-d-c):x/(d+c),d){case r:f=(s-o)/x+(s<o?6:0);break;case s:f=(o-r)/x+2;break;case o:f=(r-s)/x+4;break;default:f=0}f/=6}return[Math.round(f*360),Math.round(g*100),Math.round(v*100)]},N2=function(t){if(t.startsWith("#")){var e=t;return t.length===4&&(e="#".concat(t[1]).concat(t[1]).concat(t[2]).concat(t[2]).concat(t[3]).concat(t[3])),Q5.apply(void 0,Hn(Jf(e)))}if(t.startsWith("rgb")){var n=lm(t);return Q5.apply(void 0,Hn(n))}return typeof t=="string"?[0,0,0]:t},J5=function(t){return t.startsWith("#")?t.length===7?t:"#".concat(t[0]).concat(t[0]).concat(t[1]).concat(t[1]).concat(t[2]).concat(t[2]):t.startsWith("rgb")?S9.apply(void 0,Hn(lm(t))):typeof t=="string"?"#000000":t},_9=function(t,e){return e===0&&(t===0||t===1)},E9=function(t,e){return t===0&&e===1},cS=function(t,e,n){var r=e,s=(2-e)*n/2;s!==0&&(s===1?r=0:s<.5?r=r*n/(s*2):r=r*n/(2-s*2));var o=_9(r,s);return[o||E9(r,s)?0:t,o?0:Math.round(r*100),Math.round(s*100)]},uS=function(t,e,n){var r=e,s=n*2;r*=s<=1?s:2-s;var o=(s+r)/2;r=2*r/(s+r);var c=_9(r,n);return[c||E9(r,n)?0:t,c?0:Math.round(r*100),Math.round(o*100)]},t4=function(t){return/^#[\da-f]{6}$/i.test(t)};function Ec(t){if(!t)return null;var e=t.getBoundingClientRect(),n=document,r=n.body,s=document.documentElement,o=window.pageYOffset||s.scrollTop||r.scrollTop,c=window.pageXOffset||s.scrollLeft||r.scrollLeft,d=s.clientTop||r.clientTop||0,f=s.clientLeft||r.clientLeft||0,g=e.top+o-d,v=e.left+c-f;return{top:Math.round(g),left:Math.round(v),width:e.width,height:e.height}}function O9(t,e){return t-e}function R2(t,e,n){return(t-e)*100/(n-e)}function dS(t,e,n){return(n-e)*t+e}function hS(t){if(Math.abs(t)<1){var e=t.toExponential().split("e-"),n=e[0].split(".")[1];return(n?n.length:0)+Number.parseInt(e[1],10)}var r=t.toString().split(".")[1];return r?r.length:0}function fS(t,e,n){var r=Math.round((t-n)/e)*e+n;return Number(r.toFixed(hS(e)))}function e4(t){var e=t.values,n=t.newValue,r=t.index,s=e.slice();return s[r]=n,s.sort(O9)}function pS(t,e){var n=t.reduce(function(s,o,c){var d=Math.abs(e-o);return s===null||d<s.distance||d===s.distance?{distance:d,index:c}:s},null),r=n.index;return r}function tp(t){return t&&t.ownerDocument||document}function F2(t,e,n){return t==null?e:Math.min(Math.max(e,t),n)}function Ef(t,e){if(e.current!==void 0&&t.changedTouches){for(var n=0;n<t.changedTouches.length;n+=1){var r=t.changedTouches[n];if(r.identifier===e.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:t.clientX,y:t.clientY}}var D2={horizontal:{offset:function(t){return{left:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},"horizontal-reverse":{offset:function(t){return{right:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},vertical:{offset:function(t){return{bottom:"".concat(t,"%")}},leap:function(t){return{height:"".concat(t,"%")}}}};function Of(t){var e=t.sliderRef,n=t.activeIndex,r=t.setActive,s=tp(e.current);if(!e.current.contains(s.activeElement)||Number(s.activeElement.getAttribute("data-index"))!==n){var o;(o=e.current.querySelector('[type="range"][data-index="'.concat(n,'"]')))===null||o===void 0||o.focus()}r&&r(n)}var $={TextPrimary:"txt-primary",TextSecondary:"txt-secondary",TextSecondaryInvert:"txt-secondary-invert",TextPlaceholder:"txt-placeholder",TextWarning:"txt-warning",TextError:"txt-error",TextInfo:"txt-info",AccentPrimary:"accent-primary",AccentPrimaryHover:"accent-primary-hover",AccentPrimaryActive:"accent-primary-active",AccentPrimaryDisabled:"accent-primary-disabled",AccentSecondaryDisabled:"accent-secondary-disabled",AccentStateless:"accent-stateless",AccentStateless_0_4_Opacity:"accent-stateless_0_4_opacity",Accent_0_5_Opacity:"accent_0_5_opacity",Accent_1_2_Opacity:"accent_1_2_opacity",Accent_1_8_Opacity:"accent_1_8_opacity",Accent_2_8_Opacity:"accent_2_8_opacity",Accent_4_0_Opacity:"accent_4_0_opacity",Backgroun
12dGrey:"bg-grey",BackgroundStateless:"bg-stateless",BackgroundActive:"bg-active",BackgroundBaseLight:"bg-base-light",BackgroundBaseMedium:"bg-base-medium",BackgroundPrimary:"bg-primary",BackgroundPrimaryLight:"bg-primary-light",BackgroundPrimaryHover:"bg-primary-hover",BackgroundPrimaryActive:"bg-primary-active",BackgroundPrimaryStateless:"bg-primary-stateless",BackgroundPrimary_0_5_Opacity:"bg-primary-0-5-opacity",BackgroundSecondary:"bg-secondary",BackgroundHover:"bg-hover",BackgroundGreen:"bg-green",BackgroundGreenMedium:"bg-green-medium",BackgroundBlue:"bg-blue",BackgroundRed:"bg-red",BackgroundRedLight:"bg-red-light",BackgroundRedMedium:"background-red-medium",BackgroundOrange:"bg-orange",BackgroundTooltip:"bg-tooltip",IconsPrimary:"icon-primary",IconsPrimaryOpacity_0_6:"icons-primary-opacity-0-6",IconsSecondary:"icons-secondary",IconsPlaceholder:"icons-placeholder",IconsInvert:"icons-invert",IconsMuted:"icons-muted",IconsPrimaryHover:"icons-primary-hover",IconsSecondaryHover:"icons-secondary-hover",ButtonPrimaryText:"btn-primary-text",ButtonPrimaryText_0_6:"btn-primary-text-0-6",ButtonPrimaryText_0_4:"btn-primary-text-0-4",ButtonDisabledText:"btn-disabled-text",ButtonSecondaryText:"btn-secondary-text",LinkPrimary:"link-primary",LinkStateless:"link-stateless",LinkHover:"link-hover",LinkActive:"link-active",LinkMuted:"link-muted",LinkPressed:"link-pressed",BordersPrimary:"borders-primary",BordersPrimaryHover:"borders-primary-hover",BordersSecondary:"borders-secondary",BordersStrong:"borders-strong",BordersInvert:"borders-invert",BorderHoverBottom:"border-hover-bottom",BorderActiveBottom:"border-active-bottom",BorderPrimaryStateless:"border-primary-stateless",BordersDisabled:"borders-disabled",BordersButton:"borders-button",BordersItem:"borders-item",BordersBaseLight:"borders-base-light",BordersBaseMedium:"borders-base-medium",BordersGreen:"borders-green",BordersGreenMedium:"borders-green-medium",BordersRed:"borders-red",ActiveSecondary:"active-secondary",ActiveSecondaryHover:"active-secondary-hover",Tag:"tag",StatesErrorDisabledText:"states-error-disabled-text",Error:"error",Error_0_28_Opacity:"error-0-28-opacity",Error_0_12_Opacity:"error-0-12-opacity",ErrorHover:"error-hover",ErrorActive:"error-active",Success:"success",SuccessHover:"success-hover",SuccessActive:"success-Active",Warning:"warning",WarningHover:"warning-hover",WarningActive:"warning-active",Info:"info",Modified:"modified",Red:"red",Orange:"orange",Salad:"salad",Green:"green",Blue:"blue",Indigo:"indigo",Violet:"violet",Pink:"pink",GradientRight:"gradient-right",Extra_0_3_Overlay:"extra-0-3-overlay",GradientRightActive:"gradient-right-active",GradientRightHover:"gradient-right-hover",Extra_0_5_Overlay:"extra-0-5-overlay",Extra_0_7_Overlay:"extra-0-7-overlay",Extra_0_9_Overlay:"extra-0-9-overlay",Red_0_1_Overlay:"red-0-1-overlay",Orange_0_1_Overlay:"orange-0-1-overlay",Accent_0_8_Overlay:"accent-0-8-overlay",Link:"link",Camera:"camera",GoogleDrive:"google-drive",Dropbox:"dropbox",OneDrive:"one-drive",Device:"device",Instagram:"instagram",FreeImages:"free-images",FreeIcons:"free-icons",Canvas:"canvas",Box:"box",ScreenCast:"screen-cast",Unsplash:"unsplash",LightShadow:"light-shadow",MediumShadow:"medium-shadow",LargeShadow:"large-shadow",XLargeShadow:"x-large-shadow"},k9=function(t){var e=t.theme.palette;return pt(["scrollbar-color:"," ",";scrollbar-width:thin;::-webkit-scrollbar{width:12px;}::-webkit-scrollbar-track{margin-block:6px;}::-webkit-scrollbar-thumb{background:",";border:4px solid ",";border-radius:99px;padding:4px 6px;background-clip:padding-box;}"],e[$.IconsMuted],e[$.ActiveSecondary],e[$.Extra_0_3_Overlay],e[$.ActiveSecondary])},fa={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg",Xl:"xl",Xxl:"xxl",Xxxl:"xxxl"},Ya={ShadowSm:"shadow-sm",ShadowMd:"shadow-md",ShadowLg:"shadow-lg",ShadowXl:"shadow-xl",Label:"label",Header:"header",HeaderPopup:"header-popup",FooterPopup:"footer-popup",LeftPanelMd:"left-panel-md",RightPanelMd:"right-panel-md",LeftPanelSm:"left-panel-sm",RightPanelSm:"right-panel-sm"},Rn={Regular:400,Medium:500},Vt={TextExtraSmall:"text-extra-small",TextSmall:"text-small",TextSmallUp:"text-small-up",TextMedium:"text-medium",TextLarge:"text-large",TextExtraLarge:"text-extra-large",TextXExtraLarge:"text-x-extra-large",TitleH6:"title-h6",TitleH5:"title-h5",TitleH4:"title-h4",TitleH3:"title-h3",TitleH2:"title-h2",TitleH1:"title-h1",LabelExtraSmall:"label-extra-small",LabelExtraSmallEmphasis:"label-extra-small-emphasis",LabelExtraSmallUp:"label-extra-small-up",LabelSmall:"label-small",LabelSmallEmphasis:"label-small-emphasis",LabelSmallUp:"label-small-up",LabelSmallUpEmphasis:"label-small-up-emphasis",LabelMedium:"label-medium",LabelMediumEmphasis:"label-medium-emphasis",LabelLarge:"label-large",LabelLargeEmphasis:"label-large-emphasis",LabelLargeUp:"label-large-up",LabelExtraLargeEmphasis:"label-extra-large-emphasis",LabelExtraLarge:"label-extra-large",LabelXExtraLargeEmphasis:"label-x-extra-large-emphasis",LabelXExtraLarge:"label-x-extra-large",LabelXXExtraLargeEmphasis:"label-x-x-extra-large-emphasis",LabelXXExtraLarge:"label-x-x-extra-large",LabelXXXExtraLarge:"label-x-x-x-extra-large",ButtonSmEmphasis:"btn-sm-emphasis",ButtonSm:"btn-sm",ButtonSmUpEmphasis:"btn-sm-up-emphasis",ButtonSmUp:"btn-sm-up",ButtonMdEmphasis:"btn-md-emphasis",ButtonMd:"bt
12n-md",ButtonLgEmphasis:"btn-lg-emphasis",ButtonLg:"btn-lg",ButtonLgUpEmphasis:"btn-lg-up-emphasis",ButtonLgUp:"btn-lg-up",LinkSmall:"link-small",LinkSmallEmphasis:"link-small-emphasis",LinkSmallUp:"link-small-up",LinkSmallUpEmphasis:"link-small-up-emphasis",LinkMedium:"link-medium",LinkMediumEmphasis:"link-medium-emphasis",LinkLarge:"link-large",LinkLargeEmphasis:"link-large-emphasis",LinkLargeUp:"link-large-up",LinkLargeUpEmphasis:"link-large-up-emphasis",InputSm:"input-sm",InputSmUp:"input-sm-up",InputMd:"input-md",InputLg:"input-lg"},io={Sm:"sm",Md:"md",Lg:"lg"},gS=Mp(["",";"],function(t){var e=t.theme,n=e.typography.baseLineHeight;return pt(["h1,h2,h3,h4,h5,h6,p,small{line-height:",";}"],n)});function n4(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ft(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?n4(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):n4(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ge={fontFamily:'"Roboto"',fontStyle:"normal",fontWeight:Rn.Regular},P9=function(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t={},V(V(V(V(V(V(V(V(V(V(t,Vt.LabelExtraSmall,Ft(Ft({},ge),{},{fontSize:"10px",lineHeight:"12px"},e)),Vt.LabelExtraSmallEmphasis,Ft(Ft({},ge),{},{fontWeight:"Bold",fontSize:"10px",lineHeight:"12px"},e)),Vt.LabelExtraSmallUp,Ft(Ft({},ge),{},{fontSize:"11px",lineHeight:"12px"},e)),Vt.LabelSmall,Ft(Ft({},ge),{},{fontSize:"12px",lineHeight:"14px"},e)),Vt.LabelSmallEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"12px",lineHeight:"14px"},e)),Vt.LabelSmallUp,Ft(Ft({fontSize:"13px",lineHeight:"16px"},ge),e)),Vt.LabelSmallUpEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"13px",lineHeight:"16px"},e)),Vt.LabelMedium,Ft(Ft({fontSize:"14px",lineHeight:"16px"},ge),e)),Vt.LabelMediumEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"14px",lineHeight:"16px"},e)),Vt.LabelLarge,Ft(Ft({},ge),{},{fontSize:"16px",lineHeight:"18px"},e)),V(V(V(V(V(V(V(V(V(t,Vt.LabelLargeEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"16px",lineHeight:"18px"},e)),Vt.LabelLargeUp,Ft(Ft({},ge),{},{fontWeight:Rn.Regular,fontSize:"18px",lineHeight:"20px"},e)),Vt.LabelExtraLargeEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"24px",lineHeight:"28px"},e)),Vt.LabelExtraLarge,Ft(Ft({},ge),{},{fontWeight:Rn.Regular,fontSize:"24px",lineHeight:"28px"},e)),Vt.LabelXExtraLargeEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"32px",lineHeight:"36px"},e)),Vt.LabelXExtraLarge,Ft(Ft({},ge),{},{fontSize:"32px",lineHeight:"36px"},e)),Vt.LabelXXExtraLargeEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"48px",lineHeight:"54px"},e)),Vt.LabelXXExtraLarge,Ft(Ft({},ge),{},{fontSize:"48px",lineHeight:"54px"},e)),Vt.LabelXXXExtraLarge,Ft(Ft({},ge),{},{fontSize:"60px",lineHeight:"68px"},e))},mS=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V(V(V(V(V(V(V({},Vt.TextExtraSmall,Ft(Ft({},P9()[Vt.LabelExtraSmallUp]),{},{lineHeight:"14px"},t)),Vt.TextSmall,Ft(Ft({},ge),{},{fontSize:"12px",lineHeight:"18px"},t)),Vt.TextSmallUp,Ft(Ft({},ge),{},{fontSize:"13px",lineHeight:"18px"},t)),Vt.TextMedium,Ft(Ft({},ge),{},{fontSize:"14px",lineHeight:"20px"},t)),Vt.TextLarge,Ft(Ft({},ge),{},{fontSize:"16px",lineHeight:"22px"},t)),Vt.TextExtraLarge,Ft(Ft({},ge),{},{fontSize:"18px",lineHeight:"26px"},t)),Vt.TextXExtraLarge,Ft(Ft({},ge),{},{fontSize:"28px",lineHeight:"40px"},t))},vS=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V(V(V(V(V(V(V(V(V(V({},Vt.ButtonSmEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"12px",lineHeight:"14px"},t)),Vt.ButtonSm,Ft(Ft({},ge),{},{fontSize:"12px",lineHeight:"14px"},t)),Vt.ButtonSmUpEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"13px",lineHeight:"16px"},t)),Vt.ButtonSmUp,Ft(Ft({},ge),{},{fontSize:"13px",lineHeight:"16px"},t)),Vt.ButtonMdEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"14px",lineHeight:"16px"},t)),Vt.ButtonMd,Ft(Ft({},ge),{},{fontSize:"14px",lineHeight:"16px"},t)),Vt.ButtonLgEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"16px",lineHeight:"18px"},t)),Vt.ButtonLg,Ft(Ft({},ge),{},{fontSize:"16px",lineHeight:"18px"},t)),Vt.ButtonLgUpEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"18px",lineHeight:"20px"},t)),Vt.ButtonLgUp,Ft(Ft({},ge),{},{fontSize:"18px",lineHeight:"20px"},t))},yS=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V(V(V(V(V(V(V(V(V(V({},Vt.LinkSmall,Ft(Ft({},ge),{},{fontSize:"12px",lineHeight:"14px"},t)),Vt.LinkSmallEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"12px",lineHeight:"14px"},t)),Vt.LinkSmallUp,Ft(Ft({},ge),{},{fontSize:"13px",lineHeight:"16px"},t)),Vt.LinkSmallUpEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"13px",lineHeight:"16px"},t)),Vt.LinkMedium,Ft(Ft({},ge),{},{fontSize:"14px",lineHeight:"16px"},t)),Vt.LinkMediumEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"14px",lineHeight:"16px"},t)),Vt.LinkLarge,Ft(Ft({},ge),{},{fontSize:"16px",lineHeight:"18px"},t)),Vt.LinkLargeEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"16px",lineHeight:"18px"},t)),Vt.LinkLargeUp,Ft(Ft({},ge),{},{fontSize:"18px",lineHeight:"20px"},t)),Vt.LinkLargeUpEmphasis,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"18px",lineHeight:"20px"},t))},bS=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V(V(V(V({},Vt.InputSm,Ft(Ft({},ge),{},{fontSize:"12px",lineHeight:"14px"},t)),Vt.InputSmUp,Ft(Ft({},ge),{},{fontSize:"13px",lineHeight:"16px"},t)),Vt.InputMd,Ft(Ft({},ge),{},{fontSize:"14px",lineHeight:"16px"},t)),Vt.InputLg,Ft(Ft({},ge),{},{fontSize:"16px",lineHeight:"18px"},t))},wS=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V(V(V(V(V(V({},Vt.TitleH6,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"12px",lineHeight:"18px"},t)),Vt.TitleH5,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"14px",lineHeight:"21px"},t)),Vt.TitleH4,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"16px",lineHeight:"24px"},t)),Vt.TitleH3,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"18px",lineHeight:"27px"},t)),Vt.TitleH2,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"20px",lineHeight:"30px"},t)),Vt.TitleH1,Ft(Ft({},ge),{},{fontWeight:Rn.Medium,fontSize:"28px",lineHeight:"42px"},t))},M9=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ft(Ft({fontFamily:ge.fontFamily,baseLineHeight:1.375},t),{},{font:Ft(Ft(Ft(Ft(Ft(Ft({},P9(t)),mS(t)),vS(t)),yS(t)),bS(t)),wS(t))})},xS=Mp(["@keyframes spinner{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}.Menu-open{overflow:hidden;}
12.Modal-open{overflow:hidden;}"]),Ga,pa=(Ga={},V(V(V(V(V(V(V(V(V(V(Ga,$.TextPrimary,"rgba(55, 65, 75, 1)"),$.TextSecondary,"rgba(118, 138, 159, 1)"),$.TextSecondaryInvert,"rgba(213, 216, 220, 1)"),$.TextPlaceholder,"rgba(169, 182, 194, 1)"),$.TextWarning,"rgba(196, 110, 0, 1)"),$.TextError,"rgba(185, 33, 46, 1)"),$.TextInfo,"rgba(35, 117, 171, 1)"),$.AccentPrimary,"rgba(104, 121, 235, 1)"),$.AccentPrimaryHover,"rgba(96, 111, 209, 1)"),$.AccentPrimaryActive,"rgba(73, 88, 188, 1)"),V(V(V(V(V(V(V(V(V(V(Ga,$.AccentPrimaryDisabled,"rgba(233, 238, 242, 1)"),$.AccentSecondaryDisabled,"#F9FBFC"),$.AccentStateless,"rgba(104, 121, 235, 1)"),$.AccentStateless_0_4_Opacity,"rgba(104, 121, 235, 0.4)"),$.Accent_0_5_Opacity,"rgba(104, 121, 235, 0.05)"),$.Accent_1_2_Opacity,"rgba(104, 121, 235, 0.12)"),$.Accent_1_8_Opacity,"rgba(104, 121, 235, 0.18)"),$.Accent_2_8_Opacity,"rgba(104, 121, 235, 0.28)"),$.Accent_4_0_Opacity,"rgba(104, 121, 235, 0.4)"),$.BackgroundGrey,"rgba(216, 224, 232, 1)"),V(V(V(V(V(V(V(V(V(V(Ga,$.BackgroundStateless,"rgba(255, 255, 255, 1)"),$.BackgroundActive,"rgba(243, 247, 250, 1)"),$.BackgroundBaseLight,"rgba(235, 239, 252, 1)"),$.BackgroundBaseMedium,"rgba(227, 231, 251, 1)"),$.BackgroundPrimary,"rgba(248, 250, 251, 1)"),$.BackgroundPrimaryLight,"rgba(243, 245, 247, 1)"),$.BackgroundPrimaryHover,"rgba(239, 243, 246, 1)"),$.BackgroundPrimaryActive,"rgba(93, 109, 126, 1)"),$.BackgroundPrimary_0_5_Opacity,"rgba(255, 255, 255, 0.500)"),$.BackgroundPrimaryStateless,"#CCD6DE"),V(V(V(V(V(V(V(V(V(V(Ga,$.BackgroundSecondary,"rgba(255, 255, 255, 1)"),$.BackgroundHover,"rgba(249, 251, 252, 1)"),$.BackgroundGreen,"rgba(237, 250, 244, 1)"),$.BackgroundGreenMedium,"rgba(227, 250, 239, 1)"),$.BackgroundBlue,"rgba(244, 249, 255, 1)"),$.BackgroundRed,"rgba(253, 244, 242, 1)"),$.BackgroundRedLight,"rgba(255, 245, 245, 1)"),$.BackgroundRedMedium,"rgba(247, 228, 230, 1)"),$.BackgroundOrange,"rgba(255, 249, 242, 1)"),$.BackgroundTooltip,"rgba(79, 98, 118, 1)"),V(V(V(V(V(V(V(V(V(V(Ga,$.IconsPrimary,"rgba(118, 138, 159, 1)"),$.IconsPrimaryOpacity_0_6,"rgba(93, 109, 126, 0.600)"),$.IconsSecondary,"rgba(151, 166, 182, 1)"),$.IconsPlaceholder,"rgba(223, 231, 237, 1)"),$.IconsInvert,"rgba(255, 255, 255, 1)"),$.IconsMuted,"rgba(169, 182, 194, 1)"),$.IconsPrimaryHover,"rgba(79, 98, 118, 1)"),$.IconsSecondaryHover,"rgba(118, 138, 159, 1)"),$.ButtonPrimaryText,"rgba(255, 255, 255, 1)"),$.ButtonPrimaryText_0_6,"rgba(255, 255, 255, 0.6)"),V(V(V(V(V(V(V(V(V(V(Ga,$.ButtonPrimaryText_0_4,"rgba(255, 255, 255, 0.4)"),$.ButtonDisabledText,"rgba(169, 182, 194, 1)"),$.ButtonSecondaryText,"rgba(0, 0, 0, 1)"),$.LinkPrimary,"rgba(118, 138, 159, 1)"),$.LinkStateless,"rgba(118, 138, 159, 1)"),$.LinkHover,"rgba(79, 98, 118, 1)"),$.LinkActive,"rgba(55, 65, 75, 1)"),$.LinkPressed,"rgba(104, 121, 235, 1)"),$.LinkMuted,"rgba(169, 182, 194, 1)"),$.BordersPrimary,"rgba(204, 214, 222, 1)"),V(V(V(V(V(V(V(V(V(V(Ga,$.BordersPrimaryHover,"rgba(104, 118, 134, 1)"),$.BordersSecondary,"rgba(236, 240, 243, 1)"),$.BordersStrong,"rgba(204, 214, 222, 1)"),$.BordersInvert,"rgba(85, 99, 115, 1)"),$.BorderHoverBottom,"rgba(104, 121, 235, 0.18)"),$.BorderActiveBottom,"#4958BC"),$.BorderPrimaryStateless,"rgba(204, 214, 222, 1)"),$.BordersDisabled,"rgba(73, 88, 188, 0.4)"),$.BordersButton,"rgba(151, 166, 182, 1)"),$.BordersItem,"rgba(226, 232, 236, 1)"),V(V(V(V(V(V(V(V(V(V(Ga,$.BordersBaseLight,"rgba(211, 219, 250, 1)"),$.BordersBaseMedium,"rgba(164, 175, 227, 1)"),$.BordersGreen,"rgba(27, 161, 99, 0.22)"),$.BordersGreenMedium,"rgba(27, 161, 99, 0.4)"),$.BordersRed,"rgba(185, 33, 46, 0.4)"),$.ActiveSecondary,"#FFFFFF"),$.ActiveSecondaryHover,"rgba(104, 121, 235, 0.05)"),$.Error,"rgba(246, 61, 61, 1)"),$.Error_0_28_Opacity,"rgba(185, 33, 46, 0.28)"),$.Error_0_12_Opacity,"rgba(255, 86, 78, 0.1)"),V(V(V(V(V(V(V(V(V(V(Ga,$.ErrorHover,"rgba(216, 46, 46, 1)"),$.ErrorActive,"rgba(185, 33, 46, 1
12)"),$.Success,"rgba(38, 193, 122, 1)"),$.SuccessHover,"rgba(30, 154, 98, 1)"),$.SuccessActive,"rgba(23, 116, 73, 1)"),$.Warning,"rgba(255, 172, 74, 1)"),$.WarningHover,"rgba(237, 145, 7, 1)"),$.WarningActive,"rgba(224, 135, 0, 1)"),$.Info,"rgba(41, 127, 184, 1)"),$.Modified,"rgba(165, 166, 246, 1)"),V(V(V(V(V(V(V(V(V(V(Ga,$.Red,"rgba(219, 46, 50, 1)"),$.Orange,"rgba(255, 168, 0, 1)"),$.Salad,"rgba(143, 176, 33, 1)"),$.Green,"rgba(22, 160, 134, 1)"),$.Blue,"rgba(41, 127, 184, 1)"),$.Indigo,"rgba(91, 72, 162, 1)"),$.Violet,"rgba(141, 68, 173, 1)"),$.Pink,"rgba(211, 92, 158, 1)"),$.GradientRight,"linear-gradient(270deg, #FFFFFF 1.56%, rgba(255, 255, 255, 0.89) 52.4%, rgba(255, 255, 255, 0.532165) 76.04%, rgba(255, 255, 255, 0) 100%)"),$.Extra_0_3_Overlay,"rgba(79, 98, 118, 0.3)"),V(V(V(V(V(V(V(V(V(V(Ga,$.GradientRightActive,"linear-gradient(270deg, #F3F7FA 1.56%, #F3F7FA 52.4%, rgba(243, 247, 250, 0.53) 76.04%, rgba(243, 247, 250, 0) 100%)"),$.GradientRightHover,"linear-gradient(270deg, #F9FBFC 1.56%, #F9FBFC 52.4%, rgba(249, 251, 252, 0.53) 76.04%, rgba(249, 251, 252, 0) 100%)"),$.Extra_0_5_Overlay,"rgba(79, 98, 118, 0.5)"),$.Extra_0_7_Overlay,"rgba(79, 98, 118, 0.7)"),$.Extra_0_9_Overlay,"rgba(79, 98, 118, 0.9)"),$.Red_0_1_Overlay,"rgba(232, 91, 70, 0.1)"),$.Orange_0_1_Overlay,"rgba(250, 157, 47, 0.1)"),$.Accent_0_8_Overlay,"rgba(104, 121, 235, 0.08)"),$.Link,"rgba(250, 166, 68, 1)"),$.Camera,"rgba(73, 186, 224, 1)"),V(V(V(V(V(V(V(V(V(V(Ga,$.GoogleDrive,"rgba(81, 136, 238, 1)"),$.Dropbox,"rgba(17, 40, 124, 1)"),$.OneDrive,"rgba(40, 100, 186, 1)"),$.Device,"rgba(102, 73, 209, 1)"),$.Instagram,"rgba(244, 70, 154, 1)"),$.Unsplash,"rgba(173, 38, 220, 1)"),$.FreeImages,"rgba(16, 163, 135, 1)"),$.FreeIcons,"rgba(62, 207, 139, 1)"),$.Canvas,"rgba(36, 190, 202, 1)"),$.Box,"rgba(0, 97, 213, 1)"),V(V(V(V(V(V(V(Ga,$.ScreenCast,"rgba(48, 61, 78, 1)"),$.Tag,"#889AAC"),$.StatesErrorDisabledText,"rgba(185, 33, 46, 0.3)"),$.LightShadow,"rgba(146, 166, 188, 0.2)"),$.MediumShadow,"rgba(146, 166, 188, 0.24)"),$.LargeShadow,"rgba(146, 166, 188, 0.32)"),$.XLargeShadow,"rgba(146, 166, 188, 0.5)")),CS=pa,j2,SS=(j2={},V(V(V(V(V(V(V(V(V(V(j2,Ya.ShadowSm,"0px 1px 2px 0px rgba(146, 166, 188, 0.2)"),Ya.ShadowMd," 0px 1px 4px 0px rgba(146, 166, 188, 0.24)"),Ya.ShadowLg," 0px 2px 6px 0px rgba(146, 166, 188, 0.32)"),Ya.ShadowXl," 0px 2px 6px 0px rgba(146, 166, 188, 0.5)"),Ya.Label," 0px 1px 3px 0px rgba(77, 78, 78, 0.15)"),Ya.Header," 0px 6px 10px 0px rgba(146, 166, 188, 0.2)"),Ya.HeaderPopup," 0px 3px 7px 0px rgba(146, 166, 188, 0.16)"),Ya.FooterPopup," 0px -4px 8px 0px rgba(208, 215, 220, 0.22)"),Ya.LeftPanelMd," 6px 8px 12px 0px rgba(146, 166, 188, 0.14)"),Ya.RightPanelMd,"-6px 8px 12px 0px rgba(146, 166, 188, 0.14)"),V(V(j2,Ya.LeftPanelSm,"6px -4px 12px 0px rgba(146, 166, 188, 0.14)"),Ya.RightPanelSm,"-6px -4px 12px 0px rgba(146, 166, 188, 0.14)")),_S=SS,r4={values:V(V(V(V(V(V(V({},fa.Xs,0),fa.Sm,576),fa.Md,768),fa.Lg,1084),fa.Xl,1342),fa.Xxl,1600),fa.Xxxl,1920),classes:V(V(V(V(V(V(V({},fa.Xs,".sfx-breakpoint-xs"),fa.Sm,".sfx-breakpoint-sm"),fa.Md,".sfx-breakpoint-md"),fa.Lg,".sfx-breakpoint-lg"),fa.Xl,".sfx-breakpoint-xl"),fa.Xxl,".sfx-breakpoint-xxl"),fa.Xxxl,".sfx-breakpoint-xxxl")},ES=function(t){var e=t.values,n=e===void 0?r4.values:e,r=t.classes,s=r===void 0?r4.classes:r,o="px",c=Object.keys(n),d=function(C){var y=typeof n[C]=="number"?n[C]:C;return"@media (min-width:".concat(y).concat(o,")")},f=function(C){var y=n[C];return"@media (max-width:".concat(y).concat(o,")")},g=function(C,y){var h=c.indexOf(y);return"@media (min-width:".concat(n[C]).concat(o,") and (max-width:").concat(n[c[h]]).concat(o,")")},v=function(C){return c.indexOf(C)+1<c.length?g(C,c[c.indexOf(C)+1]):d(C)},x=function(C,y){var h=function(w){return w.slice(1)};return C>=n.xs&&C<n.sm?y?h(s.xs):s.xs:C>=n.sm&&C<n.md?y?h(s.sm):s.sm:C>=n.md&&C<n.lg?y?h(s.md):s.md:C>=n.lg&&C<n.xl?y?h(s.lg):s.lg:C>=n.xl&&C<n.xxl?y?h(s.xl):s.xl:C>=n.xxl&&C<n.xxxl?y?h(s.xxl):s.xxl:C>=n.xxxl?y?h(s.xxxl):s.xxxl:y?h(s.md):s.md};return{keys:c,values:n,classes:s,getBreakpointClass:x,up:d,down:f,between:g,only:v}};function a4(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function bl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
12e%2?a4(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a4(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var OS={borderRadius:V(V(V({},io.Sm,"2px"),io.Md,"4px"),io.Lg,"8px")},L9=function(t){var e=t.children,n=t.theme,r=n===void 0?{}:n,s=r.palette,o=s===void 0?{}:s,c=r.breakpoints,d=c===void 0?{}:c,f=r.typography,g=f===void 0?{}:f,v=r.shape,x=v===void 0?{}:v,C=r.shadows,y=C===void 0?{}:C,h=ct.useMemo(function(){var w=bl(bl({},CS),o),E=ES(d),M=bl(bl({},_S),y);return{palette:w,breakpoints:E,typography:M9(g),shape:bl({},rS(bl({},OS),bl({},x))),shadows:M}},[JSON.stringify(r)]);return L.createElement(QC,{theme:h},L.createElement(L.Fragment,null,sS(e,h),L.createElement(xS,null),L.createElement(gS,null)))},Cg=M9();Cg.baseLineHeight,Cg.font;var kS=Tt(Cg,["baseLineHeight","font"]);L9.propTypes={children:et.oneOfType([et.node,et.func,et.arrayOf(et.node)]).isRequired,theme:et.exact({breakpoints:et.exact({keys:et.arrayOf(et.string),values:et.exact(_c(je(fa),et.number)),classes:et.exact(_c(je(fa),et.string)),getBreakpointClass:et.func,up:et.func,down:et.func,between:et.func,only:et.func}),palette:et.exact(_c(je($),et.string)),shadows:et.exact(_c(je(Ya),et.string)),shape:et.exact({borderRadius:et.exact(_c(je(io),et.string))}),typography:et.exact(bl({baseLineHeight:et.oneOfType([et.string,et.number]),font:et.exact(_c(je(Vt),et.object))},_c(oS(kS),et.string)))})};function T9(t){if(Array.isArray(t))return t}function PS(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,o,c,d=[],f=!0,g=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(d.push(r.value),d.length!==e);f=!0);}catch(v){g=!0,s=v}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(g)throw s}}return d}}function A9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xt(t,e){return T9(t)||PS(t,e)||om(t,e)||A9()}function Et(){return Et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Et.apply(null,arguments)}var ep={exports:{}},Eh={},i4={},o4={},s4;function He(){return s4||(s4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const e=Math.PI/180;function n(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}t.glob=typeof Cl<"u"?Cl:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},t.Konva={_global:t.glob,version:"9.3.20",isBrowser:n(),isUnminified:/param/.test(function(s){}.toString()),dblClickWindow:400,getAngle(s){return t.Konva.angleDeg?s*e:s},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,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return t.Konva.DD.isDragging},isTransforming(){var s;return(s=t.Konva.Transformer)===null||s===void 0?void 0:s.isTransforming()},isDragReady(){return!!t.Konva.DD.node},releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(s){t.glob.Konva=s}};const r=s=>{t.Konva[s.prototype.getClassName()]=s};t._registerNode=r,t.Konva._injectGlobal(t.Konva)})(o4)),o4}var l4={},c4;function nr(){return c4||(c4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const e=He();class n{constructor(_=[1,0,0,1,0,0]){this.dirty=!1,this.m=_&&_.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 n(this.m)}copyInto(_){_.m[0]=this.m[0],_.m[1]=this.m[1],_.m[2]=this.m[2],_.m[3]=this.m[3],_.m[4]=this.m[4],_.m[5]=this.m[5]}point(_){const k=this.m;return{x:k[0]*_.x+k[2]*_.y+k[4],y:k[1]*_.x+k[3]*_.y+k[5]}}translate(_,k){return this.m[4]+=this.m[0]*_+this.m[2]*k,this.m[5]+=this.m[1]*_+this.m[3]*k,this}scale(_,k){return this.m[0]*=_,this.m[1]*=_,this.m[2]*=k,this.m[3]*=k,this}rotate(_){const k=Math.cos(_),R=Math.sin(_),G=this.m[0]*k+this.m[2]*R,T=this.m[1]*k+this.m[3]*R,D=this.m[0]*-R+this.m[2]*k,A=this.m[1]*-R+this.m[3]*k;return this.m[0]=G,this.m[1]=T,this.m[2]=D,this.m[3]=A,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(_,k){const R=this.m[0]+this.m[2]*k,G=this.m[1]+this.m[3]*k,T=this.m[2]+this.m[0]*_,D=this.m[3]+this.m[1]*_;return this.m[0]=R,this.m[1]=G,this.m[2]=T,this.m[3]=D,this}multiply(_){const k=this.m[0]*_.m[0]+this.m[2]*_.m[1],R=this.m[1]*_.m[0]+this.m[3]*_.m[1],G=this.m[0]*_.m[2]+this.m[2]*_.m[3],T=this.m[1]*_.m[2]+this.m[3]*_.m[3],D=this.m[0]*_.m[4]+this.m[2]*_.m[5]+this.m[4],A=this.m[1]*_.m[4]+this.m[3]*_.m[5]+this.m[5];return this.m[0]=k,this.m[1]=R,this.m[2]=G,this.m[3]=T,this.m[4]=D,this.m[5]=A,this}invert(){const _=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),k=this.m[3]*_,R=-this.m[1]*_,G
13=-this.m[2]*_,T=this.m[0]*_,D=_*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),A=_*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=k,this.m[1]=R,this.m[2]=G,this.m[3]=T,this.m[4]=D,this.m[5]=A,this}getMatrix(){return this.m}decompose(){const _=this.m[0],k=this.m[1],R=this.m[2],G=this.m[3],T=this.m[4],D=this.m[5],A=_*G-k*R,B={x:T,y:D,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(_!=0||k!=0){const Z=Math.sqrt(_*_+k*k);B.rotation=k>0?Math.acos(_/Z):-Math.acos(_/Z),B.scaleX=Z,B.scaleY=A/Z,B.skewX=(_*R+k*G)/A,B.skewY=0}else if(R!=0||G!=0){const Z=Math.sqrt(R*R+G*G);B.rotation=Math.PI/2-(G>0?Math.acos(-R/Z):-Math.acos(R/Z)),B.scaleX=A/Z,B.scaleY=Z,B.skewX=0,B.skewY=(_*R+k*G)/A}return B.rotation=t.Util._getRotation(B.rotation),B}}t.Transform=n;const r="[object Array]",s="[object Number]",o="[object String]",c="[object Boolean]",d=Math.PI/180,f=180/Math.PI,g="#",v="",x="0",C="Konva warning: ",y="Konva error: ",h="rgb(",w={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]},E=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let M=[];const b=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(m){setTimeout(m,60)};t.Util={_isElement(m){return!!(m&&m.nodeType==1)},_isFunction(m){return!!(m&&m.constructor&&m.call&&m.apply)},_isPlainObject(m){return!!m&&m.constructor===Object},_isArray(m){return Object.prototype.toString.call(m)===r},_isNumber(m){return Object.prototype.toString.call(m)===s&&!isNaN(m)&&isFinite(m)},_isString(m){return Object.prototype.toString.call(m)===o},_isBoolean(m){return Object.prototype.toString.call(m)===c},isObject(m){return m instanceof Object},isValidSelector(m){if(typeof m!="string")return!1;const _=m[0];return _==="#"||_==="."||_===_.toUpperCase()},_sign(m){return m===0||m>0?1:-1}
13,requestAnimFrame(m){M.push(m),M.length===1&&b(function(){const _=M;M=[],_.forEach(function(k){k()})})},createCanvasElement(){const m=document.createElement("canvas");try{m.style=m.style||{}}catch{}return m},createImageElement(){return document.createElement("img")},_isInDocument(m){for(;m=m.parentNode;)if(m==document)return!0;return!1},_urlToImage(m,_){const k=t.Util.createImageElement();k.onload=function(){_(k)},k.src=m},_rgbToHex(m,_,k){return((1<<24)+(m<<16)+(_<<8)+k).toString(16).slice(1)},_hexToRgb(m){m=m.replace(g,v);const _=parseInt(m,16);return{r:_>>16&255,g:_>>8&255,b:_&255}},getRandomColor(){let m=(Math.random()*16777215<<0).toString(16);for(;m.length<6;)m=x+m;return g+m},getRGB(m){let _;return m in w?(_=w[m],{r:_[0],g:_[1],b:_[2]}):m[0]===g?this._hexToRgb(m.substring(1)):m.substr(0,4)===h?(_=E.exec(m.replace(/ /g,"")),{r:parseInt(_[1],10),g:parseInt(_[2],10),b:parseInt(_[3],10)}):{r:0,g:0,b:0}},colorToRGBA(m){return m=m||"black",t.Util._namedColorToRBA(m)||t.Util._hex3ColorToRGBA(m)||t.Util._hex4ColorToRGBA(m)||t.Util._hex6ColorToRGBA(m)||t.Util._hex8ColorToRGBA(m)||t.Util._rgbColorToRGBA(m)||t.Util._rgbaColorToRGBA(m)||t.Util._hslColorToRGBA(m)},_namedColorToRBA(m){const _=w[m.toLowerCase()];return _?{r:_[0],g:_[1],b:_[2],a:1}:null},_rgbColorToRGBA(m){if(m.indexOf("rgb(")===0){m=m.match(/rgb\(([^)]+)\)/)[1];const _=m.split(/ *, */).map(Number);return{r:_[0],g:_[1],b:_[2],a:1}}},_rgbaColorToRGBA(m){if(m.indexOf("rgba(")===0){m=m.match(/rgba\(([^)]+)\)/)[1];const _=m.split(/ *, */).map((k,R)=>k.slice(-1)==="%"?R===3?parseInt(k)/100:parseInt(k)/100*255:Number(k));return{r:_[0],g:_[1],b:_[2],a:_[3]}}},_hex8ColorToRGBA(m){if(m[0]==="#"&&m.length===9)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:parseInt(m.slice(7,9),16)/255}},_hex6ColorToRGBA(m){if(m[0]==="#"&&m.length===7)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:1}},_hex4ColorToRGBA(m){if(m[0]==="#"&&m.length===5)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:parseInt(m[4]+m[4],16)/255}},_hex3ColorToRGBA(m){if(m[0]==="#"&&m.length===4)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:1}},_hslColorToRGBA(m){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(m)){const[_,...k]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(m),R=Number(k[0])/360,G=Number(k[1])/100,T=Number(k[2])/100;let D,A,B;if(G===0)return B=T*255,{r:Math.round(B),g:Math.round(B),b:Math.round(B),a:1};T<.5?D=T*(1+G):D=T+G-T*G;const Z=2*T-D,S=[0,0,0];for(let I=0;I<3;I++)A=R+1/3*-(I-1),A<0&&A++,A>1&&A--,6*A<1?B=Z+(D-Z)*6*A:2*A<1?B=D:3*A<2?B=Z+(D-Z)*(2/3-A)*6:B=Z,S[I]=B*255;return{r:Math.round(S[0]),g:Math.round(S[1]),b:Math.round(S[2]),a:1}}},haveIntersection(m,_){return!(_.x>m.x+m.width||_.x+_.width<m.x||_.y>m.y+m.height||_.y+_.height<m.y)},cloneObject(m){const _={};for(const k in m)this._isPlainObject(m[k])?_[k]=this.cloneObject(m[k]):this._isArray(m[k])?_[k]=this.cloneArray(m[k]):_[k]=m[k];return _},cloneArray(m){return m.slice(0)},degToRad(m){return m*d},radToDeg(m){return m*f},_degToRad(m){return t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(m)},_radToDeg(m){return t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(m)},_getRotation(m){return e.Konva.angleDeg?t.Util.radToDeg(m):m},_capitalize(m){return m.charAt(0).toUpperCase()+m.slice(1)},throw(m){throw new Error(y+m)},error(m){console.error(y+m)},warn(m){e.Konva.showWarnings&&console.warn(C+m)},each(m,_){for(const k in m)_(k,m[k])},_inRange(m,_,k){return _<=m&&m<k},_getProjectionToSegment(m,_,k,R,G,T){let D,A,B;const Z=(m-k)*(m-k)+(_-R)*(_-R);if(Z==0)D=m,A=_,B=(G-k)*(G-k)+(T-R)*(T-R);else{const S=((G-m)*(k-m)+(T-_)*(R-_))/Z;S<0?(D=m,A=_,B=(m-G)*(m-G)+(_-T)*(_-T)):S>1?(D=k,A=R,B=(k-G)*(k-G)+(R-T)*(R-T)):(D=m+S*(k-m),A=_+S*(R-_),B=(D-G)*(D-G)+(A-T)*(A-T))}return[D,A,B]},_getProjectionToLine(m,_,k){const R=t.Util.cloneObject(m);let G=Number.MAX_VALUE;return _.forEach(function(T,D){if(!k&&D===_.length-1)return;const A=_[(D+1)%_.length],B=t.Util._getProjectionToSegment(T.x,T.y,A.x,A.y,m.x,m.y),Z=B[0],S=B[1],I=B[2];I<G&&(R.x=Z,R.y=S,G=I)}),R},_prepareArrayForTween(m,_,k){const R=[],G=[];if(m.length>_.length){const D=_;_=m,m=D}for(let D=0;D<m.length;D+=2)R.push({x:m[D],y:m[D+1]});for(let D=0;D<_.length;D+=2)G.push({x:_[D],y:_[D+1]});const T=[];return G.forEach(function(D){const A=t.Util._getProjectionToLine(D,R,k);T.push(A.x),T.push(A.y)}),T},_prepareToStringify(m){let _;m.visitedByCircularReferenceRemoval=!0;for(const k in m)if(m.hasOwnProperty(k)&&m[k]&&typeof m[k]=="object"){if(_=Object.getOwnPropertyDescriptor(m,k),m[k].visitedByCircularReferenceRemoval||t.Util._isElement(m[k]))if(_.configurable)delete m[k];else return null;else if(t.Util._prepareToStringify(m[k])===null)if(_.configurable)delete m[k];else return null}return delete m.visitedByCircularReferenceRemoval,m},_assign(m,_){for(const k in _)m[k]=_[k];return m},_getFirstPointerId(m){return m.touches?m.changedTouches[0].identifier:m.pointerId||999},releaseCanvas(...m){e.Konva.releaseCanvasOnDestroy&&m.forEach(_=>{_.width=0,_.height=0})},drawRoundedRectPath(m,_,k,R){let G=0,T=0,D=0,A=0;typeof R=="number"?G=T=D=A=Math.min(R,_/2,k/2):(G=Math.min(R[0]||0,_/2,k/2),T=Math.min(R[1]||0,_/2,k/2),A=Math.min(R[2]||0,_/2,k/2),D=Math.min(R[3]||0,_/2,k/2)),m.moveTo(G,0),m.lineTo(_-T,0),m.arc(_-T,T,T,Math.PI*3/2,0,!1),m.lineTo(_,k-A),m.arc(_-A,k-A,A,0,Math.PI/2,!1),m.lineTo(D,k),m.arc(D,k-D,D,Math.PI/2,Math.PI,!1),m.lineTo(0,G),m.arc(G,G,G,Math.PI,Math.PI*3/2,!1)}}})(l4)),l4}var Oh={},u4={},Ua={},d4;function qe(){if(d4)return Ua;d4=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.RGBComponent=r,Ua.alphaComponent=s,Ua.getNumberValidator=o,Ua.getNumberOrArrayOfNumbersValidator=c,Ua.getNumberOrAutoValidator=d,Ua.getStringValidator=f,Ua.getStringOrGradientValidator=g,Ua.getFunctionValidator=v,Ua.getNumberArrayValidator=x,Ua.getBooleanValidator=C,Ua.getComponentValidator=y;const t=He(),e=nr();function n(h){return e.Util._isString(h)?'"'+h+'"':Object.prototype.toString.call(h)==="[object Number]"||e.Util._isBoolean(h)?h:Object.prototype.toString.call(h)}function r(h){return h>255?255:h<0?0:Math.round(h)}function s(h){return h>1?1:h<1e-4?1e-4:h}function o(){if(t.Konva.isUnminified)return function(h,w){return e.Util._isNumber(h)||e.Util.warn(n(h)+' is a not val
13id value for "'+w+'" attribute. The value should be a number.'),h}}function c(h){if(t.Konva.isUnminified)return function(w,E){let M=e.Util._isNumber(w),b=e.Util._isArray(w)&&w.length==h;return!M&&!b&&e.Util.warn(n(w)+' is a not valid value for "'+E+'" attribute. The value should be a number or Array<number>('+h+")"),w}}function d(){if(t.Konva.isUnminified)return function(h,w){var E=e.Util._isNumber(h),M=h==="auto";return E||M||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a number or "auto".'),h}}function f(){if(t.Konva.isUnminified)return function(h,w){return e.Util._isString(h)||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a string.'),h}}function g(){if(t.Konva.isUnminified)return function(h,w){const E=e.Util._isString(h),M=Object.prototype.toString.call(h)==="[object CanvasGradient]"||h&&h.addColorStop;return E||M||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a string or a native gradient.'),h}}function v(){if(t.Konva.isUnminified)return function(h,w){return e.Util._isFunction(h)||e.Util.warn(n(h)+' is a not val
13id value for "'+w+'" attribute. The value should be a function.'),h}}function x(){if(t.Konva.isUnminified)return function(h,w){const E=Int8Array?Object.getPrototypeOf(Int8Array):null;return E&&h instanceof E||(e.Util._isArray(h)?h.forEach(function(M){e.Util._isNumber(M)||e.Util.warn('"'+w+'" attribute has non numeric element '+M+". Make sure that all elements are numbers.")}):e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a array of numbers.')),h}}function C(){if(t.Konva.isUnminified)return function(h,w){var E=h===!0||h===!1;return E||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a boolean.'),h}}function y(h){if(t.Konva.isUnminified)return function(w,E){return w==null||e.Util.isObject(w)||e.Util.warn(n(w)+' is a not valid value for "'+E+'" attribute. The value should be an object with properties '+h),w}}return Ua}var h4;function Xe(){return h4||(h4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const e=nr(),n=qe(),r="get",s="set";t.Factory={addGetterSetter(o,c,d,f,g){t.Factory.addGetter(o,c,d),t.Factory.addSetter(o,c,f,g),t.Factory.addOverloadedGetterSetter(o,c)},addGetter(o,c,d){var f=r+e.Util._capitalize(c);o.prototype[f]=o.prototype[f]||function(){const g=this.attrs[c];return g===void 0?d:g}},addSetter(o,c,d,f){var g=s+e.Util._capitalize(c);o.prototype[g]||t.Factory.overWriteSetter(o,c,d,f)},overWriteSetter(o,c,d,f){var g=s+e.Util._capitalize(c);o.prototype[g]=function(v){return d&&v!==void 0&&v!==null&&(v=d.call(this,v,c)),this._setAttr(c,v),f&&f.call(this),this}},addComponentsGetterSetter(o,c,d,f,g){const v=d.length,x=e.Util._capitalize,C=r+x(c),y=s+x(c);o.prototype[C]=function(){const w={};for(let E=0;E<v;E++){const M=d[E];w[M]=this.getAttr(c+x(M))}return w};const h=(0,n.getComponentValidator)(d);o.prototype[y]=function(w){const E=this.attrs[c];f&&(w=f.call(this,w,c)),h&&h.call(this,w,c);for(const M in w)w.hasOwnProperty(M)&&this._setAttr(c+x(M),w[M]);return w||d.forEach(M=>{this._setAttr(c+x(M),void 0)}),this._fireChangeEvent(c,E,w),g&&g.call(this),this},t.Factory.addOverloadedGetterSetter(o,c)},addOverloadedGetterSetter(o,c){var d=e.Util._capitalize(c),f=s+d,g=r+d;o.prototype[c]=function(){return arguments.length?(this[f](arguments[0]),this):this[g]()}},addDeprecatedGetterSetter(o,c,d,f){e.Util.error("Adding deprecated "+c);const g=r+e.Util._capitalize(c),v=c+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[g]=function(){e.Util.error(v);const x=this.attrs[c];return x===void 0?d:x},t.Factory.addSetter(o,c,f,function(){e.Util.error(v)}),t.Factory.addOverloadedGetterSetter(o,c)},backCompat(o,c){e.Util.each(c,function(d,f){const g=o.prototype[f],v=r+e.Util._capitalize(d),x=s+e.Util._capitalize(d);function C(){g.apply(this,arguments),e.Util.error('"'+d+'" method is deprecated and will be removed soon. Use ""'+f+'" instead.')}o.prototype[d]=C,o.prototype[v]=C,o.prototype[x]=C})},afterSetFilter(){this._filterUpToDate=!1}}})(u4)),u4}var vs={},ys={},f4;function I9(){if(f4)return ys;f4=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.HitContext=ys.SceneContext=ys.Context=void 0;const t=nr(),e=He();function n(M){const b=[],m=M.length,_=t.Util;for(let k=0;k<m;k++){let R=M[k];_._isNumber(R)?R=Math.round(R*1e3)/1e3:_._isString(R)||(R=R+""),b.push(R)}return b}const r=",",s="(",o=")",c="([",d="])",f=";",g="()",v="=",x=["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"],C=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"],y=100;class h{constructor(b){this.canvas=b,e.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(b){b.fillEnabled()&&this._fill(b)}_fill(b){}strokeShape(b){b.hasStroke()&&this._stroke(b)}
13_stroke(b){}fillStrokeShape(b){b.attrs.fillAfterStrokeEnabled?(this.strokeShape(b),this.fillShape(b)):(this.fillShape(b),this.strokeShape(b))}getTrace(b,m){let _=this.traceArr,k=_.length,R="",G,T,D,A;for(G=0;G<k;G++)T=_[G],D=T.method,D?(A=T.args,R+=D,b?R+=g:t.Util._isArray(A[0])?R+=c+A.join(r)+d:(m&&(A=A.map(B=>typeof B=="number"?Math.floor(B):B)),R+=s+A.join(r)+o)):(R+=T.property,b||(R+=v+T.val)),R+=f;return R}clearTrace(){this.traceArr=[]}_trace(b){let m=this.traceArr,_;m.push(b),_=m.length,_>=y&&m.shift()}reset(){const b=this.getCanvas().getPixelRatio();this.setTransform(1*b,0,0,1*b,0,0)}getCanvas(){return this.canvas}clear(b){const m=this.getCanvas();b?this.clearRect(b.x||0,b.y||0,b.width||0,b.height||0):this.clearRect(0,0,m.getWidth()/m.pixelRatio,m.getHeight()/m.pixelRatio)}_applyLineCap(b){const m=b.attrs.lineCap;m&&this.setAttr("lineCap",m)}_applyOpacity(b){const m=b.getAbsoluteOpacity();m!==1&&this.setAttr("globalAlpha",m)}_applyLineJoin(b){const m=b.attrs.lineJoin;m&&this.setAttr("lineJoin",m)}setAttr(b,m){this._context[b]=m}arc(b,m,_,k,R,G){this._context.arc(b,m,_,k,R,G)}arcTo(b,m,_,k,R){this._context.arcTo(b,m,_,k,R)}beginPath(){this._context.beginPath()}bezierCurveTo(b,m,_,k,R,G){this._context.bezierCurveTo(b,m,_,k,R,G)}clearRect(b,m,_,k){this._context.clearRect(b,m,_,k)}clip(...b){this._context.clip.apply(this._context,b)}closePath(){this._context.closePath()}createImageData(b,m){const _=arguments;if(_.length===2)return this._context.createImageData(b,m);if(_.length===1)return this._context.createImageData(b)}createLinearGradient(b,m,_,k){return this._context.createLinearGradient(b,m,_,k)}createPattern(b,m){return this._context.createPattern(b,m)}createRadialGradient(b,m,_,k,R,G){return this._context.createRadialGradient(b,m,_,k,R,G)}drawImage(b,m,_,k,R,G,T,D,A){const B=arguments,Z=this._context;B.length===3?Z.drawImage(b,m,_):B.length===5?Z.drawImage(b,m,_,k,R):B.length===9&&Z.drawImage(b,m,_,k,R,G,T,D,A)}ellipse(b,m,_,k,R,G,T,D){this._context.ellipse(b,m,_,k,R,G,T,D)}isPointInPath(b,m,_,k){return _?this._context.isPointInPath(_,b,m,k):this._context.isPointInPath(b,m,k)}fill(...b){this._context.fill.apply(this._context,b)}fillRect(b,m,_,k){this._context.fillRect(b,m,_,k)}strokeRect(b,m,_,k){this._context.strokeRect(b,m,_,k)}fillText(b,m,_,k){k?this._context.fillText(b,m,_,k):this._context.fillText(b,m,_)}measureText(b){return this._context.measureText(b)}getImageData(b,m,_,k){return this._context.getImageData(b,m,_,k)}lineTo(b,m){this._context.lineTo(b,m)}moveTo(b,m){this._context.moveTo(b,m)}rect(b,m,_,k){this._context.rect(b,m,_,k)}roundRect(b,m,_,k,R){this._context.roundRect(b,m,_,k,R)}putImageData(b,m,_){this._context.putImageData(b,m,_)}quadraticCurveTo(b,m,_,k){this._context.quadraticCurveTo(b,m,_,k)}restore(){this._context.restore()}rotate(b){this._context.rotate(b)}save(){this._context.save()}scale(b,m){this._context.scale(b,m)}setLineDash(b){this._context.setLineDash?this._context.setLineDash(b):"mozDash"in this._context?this._context.mozDash=b:"webkitLineDash"in this._context&&(this._context.webkitLineDash=b)}getLineDash(){return this._context.getLineDash()}setTransform(b,m,_,k,R,G){this._context.setTransform(b,m,_,k,R,G)}stroke(b){b?this._context.stroke(b):this._context.stroke()}strokeText(b,m,_,k){this._context.strokeText(b,m,_,k)}transform(b,m,_,k,R,G){this._context.transform(b,m,_,k,R,G)}translate(b,m){this._context.translate(b,m)}_enableTrace(){let b=this,m=x.length,_=this.setAttr,k,R;const G=function(T){let D=b[T],A;b[T]=function(){return R=n(Array.prototype.slice.call(arguments,0)),A=D.apply(b,arguments),b._trace({method:T,args:R}),A}};for(k=0;k<m;k++)G(x[k]);b.setAttr=function(){_.apply(b,arguments);const T=arguments[0];let D=arguments[1];(T==="shadowOffsetX"||T==="shadowOffsetY"||T==="shadowBlur")&&(D=D/this.canvas.getPixelRatio()),b._trace({property:T,val:D})}}_applyGlobalCompositeOperation(b){const m=b.attrs.globalCompositeOperation;!m||m==="source-over"||this.setAttr("globalCompositeOperation",m)}}ys.Context=h,C.forEach(function(M){Object.defineProperty(h.prototype,M,{get(){return this._context[M]},set(b){this._context[M]=b}})});class w extends h{constructor(b,{willReadFrequently:m=!1}={}){super(b),this._context=b._canvas.getContext("2d",{willReadFrequently:m})}_fillColor(b){const m=b.fill();this.setAttr("fillStyle",m),b._fillFunc(this)}
13_fillPattern(b){this.setAttr("fillStyle",b._getFillPattern()),b._fillFunc(this)}_fillLinearGradient(b){const m=b._getLinearGradient();m&&(this.setAttr("fillStyle",m),b._fillFunc(this))}_fillRadialGradient(b){const m=b._getRadialGradient();m&&(this.setAttr("fillStyle",m),b._fillFunc(this))}_fill(b){const m=b.fill(),_=b.getFillPriority();if(m&&_==="color"){this._fillColor(b);return}const k=b.getFillPatternImage();if(k&&_==="pattern"){this._fillPattern(b);return}const R=b.getFillLinearGradientColorStops();if(R&&_==="linear-gradient"){this._fillLinearGradient(b);return}const G=b.getFillRadialGradientColorStops();if(G&&_==="radial-gradient"){this._fillRadialGradient(b);return}m?this._fillColor(b):k?this._fillPattern(b):R?this._fillLinearGradient(b):G&&this._fillRadialGradient(b)}_strokeLinearGradient(b){const m=b.getStrokeLinearGradientStartPoint(),_=b.getStrokeLinearGradientEndPoint(),k=b.getStrokeLinearGradientColorStops(),R=this.createLinearGradient(m.x,m.y,_.x,_.y);if(k){for(let G=0;G<k.length;G+=2)R.addColorStop(k[G],k[G+1]);this.setAttr("strokeStyle",R)}}_stroke(b){const m=b.dash(),_=b.getStrokeScaleEnabled();if(b.hasStroke()){if(!_){this.save();const k=this.getCanvas().getPixelRatio();this.setTransform(k,0,0,k,0,0)}this._applyLineCap(b),m&&b.dashEnabled()&&(this.setLineDash(m),this.setAttr("lineDashOffset",b.dashOffset())),this.setAttr("lineWidth",b.strokeWidth()),b.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),b.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(b):this.setAttr("strokeStyle",b.stroke()),b._strokeFunc(this),_||this.restore()}}_applyShadow(b){var m,_,k;const R=(m=b.getShadowRGBA())!==null&&m!==void 0?m:"black",G=(_=b.getShadowBlur())!==null&&_!==void 0?_:5,T=(k=b.getShadowOffset())!==null&&k!==void 0?k:{x:0,y:0},D=b.getAbsoluteScale(),A=this.canvas.getPixelRatio(),B=D.x*A,Z=D.y*A;this.setAttr("shadowColor",R),this.setAttr("shadowBlur",G*Math.min(Math.abs(B),Math.abs(Z))),this.setAttr("shadowOffsetX",T.x*B),this.setAttr("shadowOffsetY",T.y*Z)}}ys.SceneContext=w;class E extends h{constructor(b){super(b),this._context=b._canvas.getContext("2d",{willReadFrequently:!0})}_fill(b){this.save(),this.setAttr("fillStyle",b.colorKey),b._fillFuncHit(this),this.restore()}strokeShape(b){b.hasHitStroke()&&this._stroke(b)}_stroke(b){if(b.hasHitStroke()){const m=b.getStrokeScaleEnabled();if(!m){this.save();const R=this.getCanvas().getPixelRatio();this.setTransform(R,0,0,R,0,0)}this._applyLineCap(b);const _=b.hitStrokeWidth(),k=_==="auto"?b.strokeWidth():_;this.setAttr("lineWidth",k),this.setAttr("strokeStyle",b.colorKey),b._strokeFuncHit(this),m||this.restore()}}}return ys.HitContext=E,ys}var p4;function Lp(){if(p4)return vs;p4=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.HitCanvas=vs.SceneCanvas=vs.Canvas=void 0;const t=nr(),e=I9(),n=He();let r;function s(){if(r)return r;const f=t.Util.createCanvasElement(),g=f.getContext("2d");return r=(function(){const v=n.Konva._global.devicePixelRatio||1,x=g.webkitBackingStorePixelRatio||g.mozBackingStorePixelRatio||g.msBackingStorePixelRatio||g.oBackingStorePixelRatio||g.backingStorePixelRatio||1;return v/x})(),t.Util.releaseCanvas(f),r}class o{constructor(g){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const v=(g||{}).pixelRatio||n.Konva.pixelRatio||s();this.pixelRatio=v,this._canvas=t.Util.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(g){const v=this.pixelRatio;this.pixelRatio=g,this.setSize(this.getWidth()/v,this.getHeight()/v)}setWidth(g){this.width=this._canvas.width=g*this.pixelRatio,this._canvas.style.width=g+"px";const v=this.pixelRatio;this.getContext()._context.scale(v,v)}setHeight(g){this.height=this._canvas.height=g*this.pixelRatio,this._canvas.style.height=g+"px";const v=this.pixelRatio;this.getContext()._context.scale(v,v)}getWidth(){return this.width}
13getHeight(){return this.height}setSize(g,v){this.setWidth(g||0),this.setHeight(v||0)}toDataURL(g,v){try{return this._canvas.toDataURL(g,v)}catch{try{return this._canvas.toDataURL()}catch(x){return t.Util.error("Unable to get data URL. "+x.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}vs.Canvas=o;class c extends o{constructor(g={width:0,height:0,willReadFrequently:!1}){super(g),this.context=new e.SceneContext(this,{willReadFrequently:g.willReadFrequently}),this.setSize(g.width,g.height)}}vs.SceneCanvas=c;class d extends o{constructor(g={width:0,height:0}){super(g),this.hitCanvas=!0,this.context=new e.HitContext(this),this.setSize(g.width,g.height)}}return vs.HitCanvas=d,vs}var g4={},m4;function cm(){return m4||(m4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DD=void 0;const e=He(),n=nr();t.DD={get isDragging(){let r=!1;return t.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(r=!0)}),r},justDragged:!1,get node(){let r;return t.DD._dragElements.forEach(s=>{r=s.node}),r},_dragElements:new Map,_drag(r){const s=[];t.DD._dragElements.forEach((o,c)=>{const{node:d}=o,f=d.getStage();f.setPointersPositions(r),o.pointerId===void 0&&(o.pointerId=n.Util._getFirstPointerId(r));const g=f._changedPointerPositions.find(v=>v.id===o.pointerId);if(g){if(o.dragStatus!=="dragging"){const v=d.dragDistance();if(Math.max(Math.abs(g.x-o.startPointerPos.x),Math.abs(g.y-o.startPointerPos.y))<v||(d.startDrag({evt:r}),!d.isDragging()))return}d._setDragPosition(r,o),s.push(d)}}),s.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:r},!0)})},_endDragBefore(r){const s=[];t.DD._dragElements.forEach(o=>{const{node:c}=o,d=c.getStage();if(r&&d.setPointersPositions(r),!d._changedPointerPositions.find(g=>g.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(t.DD.justDragged=!0,e.Konva._mouseListenClick=!1,e.Konva._touchListenClick=!1,e.Konva._pointerListenClick=!1,o.dragStatus="stopped");const f=o.node.getLayer()||o.node instanceof e.Konva.Stage&&o.node;f&&s.indexOf(f)===-1&&s.push(f)}),s.forEach(o=>{o.draw()})},_endDragAfter(r){t.DD._dragElements.forEach((s,o)=>{s.dragStatus==="stopped"&&s.node.fire("dragend",{type:"dragend",target:s.node,evt:r},!0),s.dragStatus!=="dragging"&&t.DD._dragElements.delete(o)})}},e.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("touchcancel",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1),window.addEventListener("touchcancel",t.DD._endDragAfter,!1))})(g4)),g4}var v4;function ur(){if(v4)return Oh;v4=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.Node=void 0;const t=nr(),e=Xe(),n=Lp(),r=He(),s=cm(),o=qe(),c="absoluteOpacity",d="allEventListeners",f="absoluteTransform",g="absoluteScale",v="canvas",x="Change",C="children",y="konva",h="listening",w="mouseenter",E="mouseleave",M="set",b="Shape",m=" ",_="stage",k="transform",R="Stage",G="visible",T=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(m);let D=1;class A{constructor(S){this._id=D++,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(S),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(S){(S===k||S===f)&&this._cache.get(S)?this._cache.get(S).dirty=!0:S?this._cache.delete(S):this._cache.clear()}_getCache(S,I){let N=this._cache.get(S);return(N===void 0||(S===k||S===f)&&N.dirty===!0)&&(N=I.call(this),this._cache.set(S,N)),N}_calculate(S,I,N){if(!this._attachedDepsListeners.get(S)){const z=I.map(W=>W+"Change.konva").join(m);this.on(z,()=>{this._clearCache(S)}),this._attachedDepsListeners.set(S,!0)}return this._getCache(S,N)}_getCanvasCache(){return this._cache.get(v)}_clearSelfAndDescendantCache(S){this._clearCache(S),S===f&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(v)){const{scene:S,filter:I,hit:N}=this._cache.get(v);t.Util.releaseCanvas(S,I,N),this._cache.delete(v)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(S){const I=S||{};let N={};(I.x===void 0||I.y===void 0||I.width===void 0||I.height===void 0)&&(N=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let z=Math.ceil(I.width||N.width),W=Math.ceil(I.height||N.height),Q=I.pixelRatio,tt=I.x===void 0?Math.floor(N.x):I.x,at=I.y===void 0?Math.floor(N.y):I.y,X=I.offset||0,q=I.drawBorder||!1,rt=I.hitCanvasPixelRatio||1;if(!z||!W){t.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const ot=Math.abs(Math.round(N.x)-tt)>
13.5?1:0,ft=Math.abs(Math.round(N.y)-at)>.5?1:0;z+=X*2+ot,W+=X*2+ft,tt-=X,at-=X;const it=new n.SceneCanvas({pixelRatio:Q,width:z,height:W}),Y=new n.SceneCanvas({pixelRatio:Q,width:0,height:0,willReadFrequently:!0}),J=new n.HitCanvas({pixelRatio:rt,width:z,height:W}),lt=it.getContext(),dt=J.getContext();return J.isCache=!0,it.isCache=!0,this._cache.delete(v),this._filterUpToDate=!1,I.imageSmoothingEnabled===!1&&(it.getContext()._context.imageSmoothingEnabled=!1,Y.getContext()._context.imageSmoothingEnabled=!1),lt.save(),dt.save(),lt.translate(-tt,-at),dt.translate(-tt,-at),this._isUnderCache=!0,this._clearSelfAndDescendantCache(c),this._clearSelfAndDescendantCache(g),this.drawScene(it,this),this.drawHit(J,this),this._isUnderCache=!1,lt.restore(),dt.restore(),q&&(lt.save(),lt.beginPath(),lt.rect(0,0,z,W),lt.closePath(),lt.setAttr("strokeStyle","red"),lt.setAttr("lineWidth",5),lt.stroke(),lt.restore()),this._cache.set(v,{scene:it,filter:Y,hit:J,x:tt,y:at}),this._requestDraw(),this}isCached(){return this._cache.has(v)}getClientRect(S){throw new Error('abstract "getClientRect" method call')}_transformedRect(S,I){const N=[{x:S.x,y:S.y},{x:S.x+S.width,y:S.y},{x:S.x+S.width,y:S.y+S.height},{x:S.x,y:S.y+S.height}];let z=1/0,W=1/0,Q=-1/0,tt=-1/0;const at=this.getAbsoluteTransform(I);return N.forEach(function(X){const q=at.point(X);z===void 0&&(z=Q=q.x,W=tt=q.y),z=Math.min(z,q.x),W=Math.min(W,q.y),Q=Math.max(Q,q.x),tt=Math.max(tt,q.y)}),{x:z,y:W,width:Q-z,height:tt-W}}_drawCachedSceneCanvas(S){S.save(),S._applyOpacity(this),S._applyGlobalCompositeOperation(this);const I=this._getCanvasCache();S.translate(I.x,I.y);const N=this._getCachedSceneCanvas(),z=N.pixelRatio;S.drawImage(N._canvas,0,0,N.width/z,N.height/z),S.restore()}_drawCachedHitCanvas(S){const I=this._getCanvasCache(),N=I.hit;S.save(),S.translate(I.x,I.y),S.drawImage(N._canvas,0,0,N.width/N.pixelRatio,N.height/N.pixelRatio),S.restore()}_getCachedSceneCanvas(){let S=this.filters(),I=this._getCanvasCache(),N=I.scene,z=I.filter,W=z.getContext(),Q,tt,at,X;if(S){if(!this._filterUpToDate){const q=N.pixelRatio;z.setSize(N.width/N.pixelRatio,N.height/N.pixelRatio);try{for(Q=S.length,W.clear(),W.drawImage(N._canvas,0,0,N.getWidth()/q,N.getHeight()/q),tt=W.getImageData(0,0,z.getWidth(),z.getHeight()),at=0;at<Q;at++){if(X=S[at],typeof X!="function"){t.Util.error("Filter should be type of function, but got "+typeof X+" instead. Please check correct filters");continue}X.call(this,tt),W.putImageData(tt,0,0)}}catch(rt){t.Util.error("Unable to apply filter. "+rt.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return z}return N}on(S,I){if(this._cache&&this._cache.delete(d),arguments.length===3)return this._delegate.apply(this,arguments);let N=S.split(m),z=N.length,W,Q,tt,at,X;for(W=0;W<z;W++)Q=N[W],tt=Q.split("."),at=tt[0],X=tt[1]||"",this.eventListeners[at]||(this.eventListeners[at]=[]),this.eventListeners[at].push({name:X,handler:I});return this}off(S,I){let N=(S||"").split(m),z=N.length,W,Q,tt,at,X,q;if(this._cache&&this._cache.delete(d),!S)for(Q in this.eventListeners)this._off(Q);for(W=0;W<z;W++)if(tt=N[W],at=tt.split("."),X=at[0],q=at[1],X)this.eventListeners[X]&&this._off(X,q,I);else for(Q in this.eventListeners)this._off(Q,q,I);return this}dispatchEvent(S){const I={target:this,type:S.type,evt:S};return this.fire(S.type,I),this}addEventListener(S,I){return this.on(S,function(N){I.call(this,N.evt)}),this}removeEventListener(S){return this.off(S),this}_delegate(S,I,N){const z=this;this.on(S,function(W){const Q=W.target.findAncestors(I,!0,z);for(let tt=0;tt<Q.length;tt++)W=t.Util.cloneObject(W),W.currentTarget=Q[tt],N.call(Q[tt],W)})}
13remove(){return this.isDragging()&&this.stopDrag(),s.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(f),this._clearSelfAndDescendantCache(c),this._clearSelfAndDescendantCache(g),this._clearSelfAndDescendantCache(_),this._clearSelfAndDescendantCache(G),this._clearSelfAndDescendantCache(h)}_remove(){this._clearCaches();const S=this.getParent();S&&S.children&&(S.children.splice(this.index,1),S._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(S){const I="get"+t.Util._capitalize(S);return t.Util._isFunction(this[I])?this[I]():this.attrs[S]}getAncestors(){let S=this.getParent(),I=[];for(;S;)I.push(S),S=S.getParent();return I}getAttrs(){return this.attrs||{}}setAttrs(S){return this._batchTransformChanges(()=>{let I,N;if(!S)return this;for(I in S)I!==C&&(N=M+t.Util._capitalize(I),t.Util._isFunction(this[N])?this[N](S[I]):this._setAttr(I,S[I]))}),this}isListening(){return this._getCache(h,this._isListening)}_isListening(S){if(!this.listening())return!1;const I=this.getParent();return I&&I!==S&&this!==S?I._isListening(S):!0}isVisible(){return this._getCache(G,this._isVisible)}_isVisible(S){if(!this.visible())return!1;const I=this.getParent();return I&&I!==S&&this!==S?I._isVisible(S):!0}shouldDrawHit(S,I=!1){if(S)return this._isVisible(S)&&this._isListening(S);const N=this.getLayer();let z=!1;s.DD._dragElements.forEach(Q=>{Q.dragStatus==="dragging"&&(Q.node.nodeType==="Stage"||Q.node.getLayer()===N)&&(z=!0)});const W=!I&&!r.Konva.hitOnDragEnabled&&(z||r.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!W}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let S=this.getDepth(),I=this,N=0,z,W,Q,tt;function at(q){for(z=[],W=q.length,Q=0;Q<W;Q++)tt=q[Q],N++,tt.nodeType!==b&&(z=z.concat(tt.getChildren().slice())),tt._id===I._id&&(Q=W);z.length>0&&z[0].getDepth()<=S&&at(z)}const X=this.getStage();return I.nodeType!==R&&X&&at(X.getChildren()),N}getDepth(){let S=0,I=this.parent;for(;I;)S++,I=I.parent;return S}_batchTransformChanges(S){this._batchingTransformChange=!0,S(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(k),this._clearSelfAndDescendantCache(f)),this._needClearTransformCache=!1}setPosition(S){return this._batchTransformChanges(()=>{this.x(S.x),this.y(S.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const S=this.getStage();if(!S)return null;const I=S.getPointerPosition();if(!I)return null;const N=this.getAbsoluteTransform().copy();return N.invert(),N.point(I)}getAbsolutePosition(S){let I=!1,N=this.parent;for(;N;){if(N.isCached()){I=!0;break}N=N.parent}I&&!S&&(S=!0);const z=this.getAbsoluteTransform(S).getMatrix(),W=new t.Transform,Q=this.offset();return W.m=z.slice(),W.translate(Q.x,Q.y),W.getTranslation()}setAbsolutePosition(S){const{x:I,y:N,...z}=this._clearTransform();this.attrs.x=I,this.attrs.y=N,this._clearCache(k);const W=this._getAbsoluteTransform().copy();return W.invert(),W.translate(S.x,S.y),S={x:this.attrs.x+W.getTranslation().x,y:this.attrs.y+W.getTranslation().y},this._setTransform(z),this.setPosition({x:S.x,y:S.y}),this._clearCache(k),this._clearSelfAndDescendantCache(f),this}_setTransform(S){let I;for(I in S)this.attrs[I]=S[I]}_clearTransform(){const S={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,S}move(S){let I=S.x,N=S.y,z=this.x(),W=this.y();return I!==void 0&&(z+=I),N!==void 0&&(W+=N),this.setPosition({x:z,y:W}),this}_eachAncestorReverse(S,I){let N=[],z=this.getParent(),W,Q;if(!(I&&I._id===this._id)){for(N.unshift(this);z&&(!I||z._id!==I._id);)N.unshift(z),z=z.parent;for(W=N.length,Q=0;Q<W;Q++)S(N[Q])}}rotate(S){return this.rotation(this.rotation()+S),this}moveToTop(){if(!this.parent)return t.Util.warn("Node has no parent. moveToTop function is ignored."),!1;const S=this.index,I=this.parent.getChildren().length;return S<I-1?(this.parent.children.splice(S,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return t.Util.warn("Node has no parent. moveUp function is ignored."),!1;const S=this.index,I=this.parent.getChildren().length;return S<I-1?(this.parent.children.splice(S,1),this.parent.children.splice(S+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return t.Util.warn("Node has no parent. moveDown function is ignored."),!1;const S=this.index;return S>0?(this.parent.children.splice(S,1),this.parent.children.splice(S-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return t.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const S=this.index;return S>0?(this.parent.children.splice(S,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(S){if(!this.parent)return t.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(S<0||S>=this.parent.children.length)&&t.Util.warn("Unexpected value "+S+" 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)+".");const I=this.index;return this.parent.children.splice(I,1),this.parent.children.splice(S,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(c,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let S=this.opacity();const I=this.getParent();return I&&!I._isUnderCache&&(S*=I.getAbsoluteOpacity()),S}moveTo(S){return this.getParent()!==S&&(this._remove(),S.add(this)),this}toObject(){let S=this.getAttrs(),I,N,z,W,Q;const tt={attrs:{},className:this.getClassName()};for(I in S)N=S[I],Q=t.Util.isObject(N)&&!t.Util._isPlainObject(N)&&!t.Util._isArray(N),!Q&&(z=typeof this[I]=="function"&&this[I],delete S[I],W=z?z.call(this):null,S[I]=N,W!==N&&(tt.attrs[I]=N));return t.Util._prepareToStringify(tt)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(S,I,N){const z=[];I&&this._isMatch(S)&&z.push(this);let W=this.parent;for(;W;){if(W===N)return z;W._isMatch(S)&&z.push(W),W=W.parent}return z}isAncestorOf(S){return!1}
13findAncestor(S,I,N){return this.findAncestors(S,I,N)[0]}_isMatch(S){if(!S)return!1;if(typeof S=="function")return S(this);let I=S.replace(/ /g,"").split(","),N=I.length,z,W;for(z=0;z<N;z++)if(W=I[z],t.Util.isValidSelector(W)||(t.Util.warn('Selector "'+W+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),t.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),t.Util.warn("Konva is awesome, right?")),W.charAt(0)==="#"){if(this.id()===W.slice(1))return!0}else if(W.charAt(0)==="."){if(this.hasName(W.slice(1)))return!0}else if(this.className===W||this.nodeType===W)return!0;return!1}getLayer(){const S=this.getParent();return S?S.getLayer():null}getStage(){return this._getCache(_,this._getStage)}_getStage(){const S=this.getParent();return S?S.getStage():null}fire(S,I={},N){return I.target=I.target||this,N?this._fireAndBubble(S,I):this._fire(S,I),this}getAbsoluteTransform(S){return S?this._getAbsoluteTransform(S):this._getCache(f,this._getAbsoluteTransform)}_getAbsoluteTransform(S){let I;if(S)return I=new t.Transform,this._eachAncestorReverse(function(N){const z=N.transformsEnabled();z==="all"?I.multiply(N.getTransform()):z==="position"&&I.translate(N.x()-N.offsetX(),N.y()-N.offsetY())},S),I;{I=this._cache.get(f)||new t.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(I):I.reset();const N=this.transformsEnabled();if(N==="all")I.multiply(this.getTransform());else if(N==="position"){const z=this.attrs.x||0,W=this.attrs.y||0,Q=this.attrs.offsetX||0,tt=this.attrs.offsetY||0;I.translate(z-Q,W-tt)}return I.dirty=!1,I}}getAbsoluteScale(S){let I=this;for(;I;)I._isUnderCache&&(S=I),I=I.getParent();const N=this.getAbsoluteTransform(S).decompose();return{x:N.scaleX,y:N.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(k,this._getTransform)}_getTransform(){var S,I;const N=this._cache.get(k)||new t.Transform;N.reset();const z=this.x(),W=this.y(),Q=r.Konva.getAngle(this.rotation()),tt=(S=this.attrs.scaleX)!==null&&S!==void 0?S:1,at=(I=this.attrs.scaleY)!==null&&I!==void 0?I:1,X=this.attrs.skewX||0,q=this.attrs.skewY||0,rt=this.attrs.offsetX||0,ot=this.attrs.offsetY||0;return(z!==0||W!==0)&&N.translate(z,W),Q!==0&&N.rotate(Q),(X!==0||q!==0)&&N.skew(X,q),(tt!==1||at!==1)&&N.scale(tt,at),(rt!==0||ot!==0)&&N.translate(-1*rt,-1*ot),N.dirty=!1,N}clone(S){let I=t.Util.cloneObject(this.attrs),N,z,W,Q,tt;for(N in S)I[N]=S[N];const at=new this.constructor(I);for(N in this.eventListeners)for(z=this.eventListeners[N],W=z.length,Q=0;Q<W;Q++)tt=z[Q],tt.name.indexOf(y)<0&&(at.eventListeners[N]||(at.eventListeners[N]=[]),at.eventListeners[N].push(tt));return at}_toKonvaCanvas(S){S=S||{};const I=this.getClientRect(),N=this.getStage(),z=S.x!==void 0?S.x:Math.floor(I.x),W=S.y!==void 0?S.y:Math.floor(I.y),Q=S.pixelRatio||1,tt=new n.SceneCanvas({width:S.width||Math.ceil(I.width)||(N?N.width():0),height:S.height||Math.ceil(I.height)||(N?N.height():0),pixelRatio:Q}),at=tt.getContext(),X=new n.SceneCanvas({width:tt.width/tt.pixelRatio+Math.abs(z),height:tt.height/tt.pixelRatio+Math.abs(W),pixelRatio:tt.pixelRatio});return S.imageSmoothingEnabled===!1&&(at._context.imageSmoothingEnabled=!1),at.save(),(z||W)&&at.translate(-1*z,-1*W),this.drawScene(tt,void 0,X),at.restore(),tt}toCanvas(S){return this._toKonvaCanvas(S)._canvas}toDataURL(S){S=S||{};const I=S.mimeType||null,N=S.quality||null,z=this._toKonvaCanvas(S).toDataURL(I,N);return S.callback&&S.callback(z),z}toImage(S){return new Promise((I,N)=>{try{const z=S?.callback;z&&delete S.callback,t.Util._urlToImage(this.toDataURL(S),function(W){I(W),z?.(W)})}catch(z){N(z)}})}toBlob(S){return new Promise((I,N)=>{try{const z=S?.callback;z&&delete S.callback,this.toCanvas(S).toBlob(W=>{I(W),z?.(W)},S?.mimeType,S?.quality)}catch(z){N(z)}})}setSize(S){return this.width(S.width),this.height(S.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():r.Konva.dragDistance}_off(S,I,N){let z=this.eventListeners[S],W,Q,tt;for(W=0;W<z.length;W++)if(Q=z[W].name,tt=z[W].handler,(Q!=="konva"||I==="konva")&&(!I||Q===I)&&(!N||N===tt)){if(z.splice(W,1),z.length===0){delete this.eventListeners[S];break}W--}}_fireChangeEvent(S,I,N){this._fire(S+x,{oldVal:I,newVal:N})}addName(S){if(!this.hasName(S)){const I=this.name(),N=I?I+" "+S:S;this.name(N)}return this}hasName(S){if(!S)return!1;const I=this.name();return I?(I||"").split(/\s/g).indexOf(S)!==-1:!1}removeName(S){const I=(this.name()||"").split(/\s/g),N=I.indexOf(S);return N!==-1&&(I.splice(N,1),this.name(I.join(" "))),this}
13setAttr(S,I){const N=this[M+t.Util._capitalize(S)];return t.Util._isFunction(N)?N.call(this,I):this._setAttr(S,I),this}_requestDraw(){r.Konva.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(S,I){const N=this.attrs[S];N===I&&!t.Util.isObject(I)||(I==null?delete this.attrs[S]:this.attrs[S]=I,this._shouldFireChangeEvents&&this._fireChangeEvent(S,N,I),this._requestDraw())}_setComponentAttr(S,I,N){let z;N!==void 0&&(z=this.attrs[S],z||(this.attrs[S]=this.getAttr(S)),this.attrs[S][I]=N,this._fireChangeEvent(S,z,N))}_fireAndBubble(S,I,N){if(I&&this.nodeType===b&&(I.target=this),!((S===w||S===E)&&(N&&(this===N||this.isAncestorOf&&this.isAncestorOf(N))||this.nodeType==="Stage"&&!N))){this._fire(S,I);const z=(S===w||S===E)&&N&&N.isAncestorOf&&N.isAncestorOf(this)&&!N.isAncestorOf(this.parent);(I&&!I.cancelBubble||!I)&&this.parent&&this.parent.isListening()&&!z&&(N&&N.parent?this._fireAndBubble.call(this.parent,S,I,N):this._fireAndBubble.call(this.parent,S,I))}}_getProtoListeners(S){var I,N,z;const W=(I=this._cache.get(d))!==null&&I!==void 0?I:{};let Q=W?.[S];if(Q===void 0){Q=[];let tt=Object.getPrototypeOf(this);for(;tt;){const at=(z=(N=tt.eventListeners)===null||N===void 0?void 0:N[S])!==null&&z!==void 0?z:[];Q.push(...at),tt=Object.getPrototypeOf(tt)}W[S]=Q,this._cache.set(d,W)}return Q}_fire(S,I){I=I||{},I.currentTarget=this,I.type=S;const N=this._getProtoListeners(S);if(N)for(var z=0;z<N.length;z++)N[z].handler.call(this,I);const W=this.eventListeners[S];if(W)for(var z=0;z<W.length;z++)W[z].handler.call(this,I)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(S){const I=S?S.pointerId:void 0,N=this.getStage(),z=this.getAbsolutePosition();if(!N)return;const W=N._getPointerById(I)||N._changedPointerPositions[0]||z;s.DD._dragElements.set(this._id,{node:this,startPointerPos:W,offset:{x:W.x-z.x,y:W.y-z.y},dragStatus:"ready",pointerId:I})}startDrag(S,I=!0){s.DD._dragElements.has(this._id)||this._createDragElement(S);const N=s.DD._dragElements.get(this._id);N.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:S&&S.evt},I)}_setDragPosition(S,I){const N=this.getStage()._getPointerById(I.pointerId);if(!N)return;let z={x:N.x-I.offset.x,y:N.y-I.offset.y};const W=this.dragBoundFunc();if(W!==void 0){const Q=W.call(this,z,S);Q?z=Q:t.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==z.x||this._lastPos.y!==z.y)&&(this.setAbsolutePosition(z),this._requestDraw()),this._lastPos=z}stopDrag(S){const I=s.DD._dragElements.get(this._id);I&&(I.dragStatus="stopped"),s.DD._endDragBefore(S),s.DD._endDragAfter(S)}setDraggable(S){this._setAttr("draggable",S),this._dragChange()}isDragging(){const S=s.DD._dragElements.get(this._id);return S?S.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(S){if(!(S.evt.button===void 0||r.Konva.dragButtons.indexOf(S.evt.button)>=0)||this.isDragging())return;let I=!1;s.DD._dragElements.forEach(N=>{this.isAncestorOf(N.node)&&(I=!0)}),I||this._createDragElement(S)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const S=s.DD._dragElements.get(this._id),I=S&&S.dragStatus==="dragging",N=S&&S.dragStatus==="ready";
13I?this.stopDrag():N&&s.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(S={x:0,y:0}){const I=this.getStage();if(!I)return!1;const N={x:-S.x,y:-S.y,width:I.width()+2*S.x,height:I.height()+2*S.y};return t.Util.haveIntersection(N,this.getClientRect())}static create(S,I){return t.Util._isString(S)&&(S=JSON.parse(S)),this._createNode(S,I)}static _createNode(S,I){let N=A.prototype.getClassName.call(S),z=S.children,W,Q,tt;I&&(S.attrs.container=I),r.Konva[N]||(t.Util.warn('Can not find a node with class name "'+N+'". Fallback to "Shape".'),N="Shape");const at=r.Konva[N];if(W=new at(S.attrs),z)for(Q=z.length,tt=0;tt<Q;tt++)W.add(A._createNode(z[tt]));return W}}Oh.Node=A,A.prototype.nodeType="Node",A.prototype._attrsAffectingSize=[],A.prototype.eventListeners={},A.prototype.on.call(A.prototype,T,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(k),this._clearSelfAndDescendantCache(f)}),A.prototype.on.call(A.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(G)}),A.prototype.on.call(A.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(h)}),A.prototype.on.call(A.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(c)});const B=e.Factory.addGetterSetter;return B(A,"zIndex"),B(A,"absolutePosition"),B(A,"position"),B(A,"x",0,(0,o.getNumberValidator)()),B(A,"y",0,(0,o.getNumberValidator)()),B(A,"globalCompositeOperation","source-over",(0,o.getStringValidator)()),B(A,"opacity",1,(0,o.getNumberValidator)()),B(A,"name","",(0,o.getStringValidator)()),B(A,"id","",(0,o.getStringValidator)()),B(A,"rotation",0,(0,o.getNumberValidator)()),e.Factory.addComponentsGetterSetter(A,"scale",["x","y"]),B(A,"scaleX",1,(0,o.getNumberValidator)()),B(A,"scaleY",1,(0,o.getNumberValidator)()),e.Factory.addComponentsGetterSetter(A,"skew",["x","y"]),B(A,"skewX",0,(0,o.getNumberValidator)()),B(A,"skewY",0,(0,o.getNumberValidator)()),e.Factory.addComponentsGetterSetter(A,"offset",["x","y"]),B(A,"offsetX",0,(0,o.getNumberValidator)()),B(A,"offsetY",0,(0,o.getNumberValidator)()),B(A,"dragDistance",void 0,(0,o.getNumberValidator)()),B(A,"width",0,(0,o.getNumberValidator)()),B(A,"height",0,(0,o.getNumberValidator)()),B(A,"listening",!0,(0,o.getBooleanValidator)()),B(A,"preventDefault",!0,(0,o.getBooleanValidator)()),B(A,"filters",void 0,function(Z){return this._filterUpToDate=!1,Z}),B(A,"visible",!0,(0,o.getBooleanValidator)()),B(A,"transformsEnabled","all",(0,o.getStringValidator)()),B(A,"size"),B(A,"dragBoundFunc"),B(A,"draggable",!1,(0,o.getBooleanValidator)()),e.Factory.backCompat(A,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),Oh}var kh={},y4;function Tp(){if(y4)return kh;y4=1,Object.defineProperty(kh,"__esModule",{value:!0}),kh.Container=void 0;const t=Xe(),e=ur(),n=qe();class r extends e.Node{constructor(){super(...arguments),this.children=[]}getChildren(o){if(!o)return this.children||[];const c=this.children||[],d=[];return c.forEach(function(f){o(f)&&d.push(f)}),d}hasChildren(){return this.getChildren().length>0}
13removeChildren(){return this.getChildren().forEach(o=>{o.parent=null,o.index=0,o.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(o=>{o.parent=null,o.index=0,o.destroy()}),this.children=[],this._requestDraw(),this}add(...o){if(o.length===0)return this;if(o.length>1){for(let d=0;d<o.length;d++)this.add(o[d]);return this}const c=o[0];return c.getParent()?(c.moveTo(this),this):(this._validateAdd(c),c.index=this.getChildren().length,c.parent=this,c._clearCaches(),this.getChildren().push(c),this._fire("add",{child:c}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(o){return this._generalFind(o,!1)}findOne(o){const c=this._generalFind(o,!0);return c.length>0?c[0]:void 0}_generalFind(o,c){const d=[];return this._descendants(f=>{const g=f._isMatch(o);return g&&d.push(f),!!(g&&c)}),d}_descendants(o){let c=!1;const d=this.getChildren();for(const f of d)if(c=o(f),c||f.hasChildren()&&(c=f._descendants(o),c))return!0;return!1}toObject(){const o=e.Node.prototype.toObject.call(this);
13return o.children=[],this.getChildren().forEach(c=>{o.children.push(c.toObject())}),o}isAncestorOf(o){let c=o.getParent();for(;c;){if(c._id===this._id)return!0;c=c.getParent()}return!1}clone(o){const c=e.Node.prototype.clone.call(this,o);return this.getChildren().forEach(function(d){c.add(d.clone())}),c}getAllIntersections(o){const c=[];return this.find("Shape").forEach(d=>{d.isVisible()&&d.intersects(o)&&c.push(d)}),c}_clearSelfAndDescendantCache(o){var c;super._clearSelfAndDescendantCache(o),!this.isCached()&&((c=this.children)===null||c===void 0||c.forEach(function(d){d._clearSelfAndDescendantCache(o)}))}_setChildrenIndices(){var o;(o=this.children)===null||o===void 0||o.forEach(function(c,d){c.index=d}),this._requestDraw()}drawScene(o,c,d){const f=this.getLayer(),g=o||f&&f.getCanvas(),v=g&&g.getContext(),x=this._getCanvasCache(),C=x&&x.scene,y=g&&g.isCache;if(!this.isVisible()&&!y)return this;if(C){v.save();const h=this.getAbsoluteTransform(c).getMatrix();v.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this._drawCachedSceneCanvas(v),v.restore()}else this._drawChildren("drawScene",g,c,d);return this}drawHit(o,c){if(!this.shouldDrawHit(c))return this;const d=this.getLayer(),f=o||d&&d.hitCanvas,g=f&&f.getContext(),v=this._getCanvasCache();if(v&&v.hit){g.save();const x=this.getAbsoluteTransform(c).getMatrix();g.transform(x[0],x[1],x[2],x[3],x[4],x[5]),this._drawCachedHitCanvas(g),g.restore()}else this._drawChildren("drawHit",f,c);return this}_drawChildren(o,c,d,f){var g;const v=c&&c.getContext(),x=this.clipWidth(),C=this.clipHeight(),y=this.clipFunc(),h=typeof x=="number"&&typeof C=="number"||y,w=d===this;if(h){v.save();const M=this.getAbsoluteTransform(d);let b=M.getMatrix();v.transform(b[0],b[1],b[2],b[3],b[4],b[5]),v.beginPath();let m;if(y)m=y.call(this,v,this);else{const _=this.clipX(),k=this.clipY();v.rect(_||0,k||0,x,C)}v.clip.apply(v,m),b=M.copy().invert().getMatrix(),v.transform(b[0],b[1],b[2],b[3],b[4],b[5])}const E=!w&&this.globalCompositeOperation()!=="source-over"&&o==="drawScene";E&&(v.save(),v._applyGlobalCompositeOperation(this)),(g=this.children)===null||g===void 0||g.forEach(function(M){M[o](c,d,f)}),E&&v.restore(),h&&v.restore()}getClientRect(o={}){var c;const d=o.skipTransform,f=o.relativeTo;let g,v,x,C,y={x:1/0,y:1/0,width:0,height:0};const h=this;(c=this.children)===null||c===void 0||c.forEach(function(M){if(!M.visible())return;const b=M.getClientRect({relativeTo:h,skipShadow:o.skipShadow,skipStroke:o.skipStroke});b.width===0&&b.height===0||(g===void 0?(g=b.x,v=b.y,x=b.x+b.width,C=b.y+b.height):(g=Math.min(g,b.x),v=Math.min(v,b.y),x=Math.max(x,b.x+b.width),C=Math.max(C,b.y+b.height)))});const w=this.find("Shape");let E=!1;for(let M=0;M<w.length;M++)if(w[M]._isVisible(this)){E=!0;break}return E&&g!==void 0?y={x:g,y:v,width:x-g,height:C-v}:y={x:0,y:0,width:0,height:0},d?y:this._transformedRect(y,f)}}return kh.Container=r,t.Factory.addComponentsGetterSetter(r,"clip",["x","y","width","height"]),t.Factory.addGetterSetter(r,"clipX",void 0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(r,"clipY",void 0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(r,"clipWidth",void 0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(r,"clipHeight",void 0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(r,"clipFunc"),kh}var b4={},vl={},w4;function N9(){if(w4)return vl;
13w4=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.getCapturedShape=r,vl.createEvent=s,vl.hasPointerCapture=o,vl.setPointerCapture=c,vl.releaseCapture=d;const t=He(),e=new Map,n=t.Konva._global.PointerEvent!==void 0;function r(f){return e.get(f)}function s(f){return{evt:f,pointerId:f.pointerId}}function o(f,g){return e.get(f)===g}function c(f,g){d(f),g.getStage()&&(e.set(f,g),n&&g._fire("gotpointercapture",s(new PointerEvent("gotpointercapture"))))}function d(f,g){const v=e.get(f);if(!v)return;const x=v.getStage();x&&x.content,e.delete(f),n&&v._fire("lostpointercapture",s(new PointerEvent("lostpointercapture")))}return vl}var x4;function MS(){return x4||(x4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Stage=t.stages=void 0;const e=nr(),n=Xe(),r=Tp(),s=He(),o=Lp(),c=cm(),d=He(),f=N9(),g="Stage",v="string",x="px",C="mouseout",y="mouseleave",h="mouseover",w="mouseenter",E="mousemove",M="mousedown",b="mouseup",m="pointermove",_="pointerdown",k="pointerup",R="pointercancel",G="lostpointercapture",T="pointerout",D="pointerleave",A="pointerover",B="pointerenter",Z="contextmenu",S="touchstart",I="touchend",N="touchmove",z="touchcancel",W="wheel",Q=5,tt=[[w,"_pointerenter"],[M,"_pointerdown"],[E,"_pointermove"],[b,"_pointerup"],[y,"_pointerleave"],[S,"_pointerdown"],[N,"_pointermove"],[I,"_pointerup"],[z,"_pointercancel"],[h,"_pointerover"],[W,"_wheel"],[Z,"_contextmenu"],[_,"_pointerdown"],[m,"_pointermove"],[k,"_pointerup"],[R,"_pointercancel"],[G,"_lostpointercapture"]],at={mouse:{[T]:C,[D]:y,[A]:h,[B]:w,[m]:E,[_]:M,[k]:b,[R]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[T]:"touchout",[D]:"touchleave",[A]:"touchover",[B]:"touchenter",[m]:N,[_]:S,[k]:I,[R]:z,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[T]:T,[D]:D,[A]:A,[B]:B,[m]:m,[_]:_,[k]:k,[R]:R,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},X=it=>it.indexOf("pointer")>=0?"pointer":it.indexOf("touch")>=0?"touch":"mouse",q=it=>{const Y=X(it);if(Y==="pointer")return s.Konva.pointerEventsEnabled&&at.pointer;if(Y==="touch")return at.touch;if(Y==="mouse")return at.mouse};function rt(it={}){return(it.clipFunc||it.clipWidth||it.clipHeight)&&e.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),it}const ot="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);";t.stages=[];class ft extends r.Container{constructor(Y){super(rt(Y)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{rt(this.attrs)}),this._checkVisibility()}_validateAdd(Y){const J=Y.getType()==="Layer",lt=Y.getType()==="FastLayer";J||lt||e.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const Y=this.visible()?"":"none";this.content.style.display=Y}setContainer(Y){if(typeof Y===v){if(Y.charAt(0)==="."){const lt=Y.slice(1);Y=document.getElementsByClassName(lt)[0]}else{var J;Y.charAt(0)!=="#"?J=Y:J=Y.slice(1),Y=document.getElementById(J)}if(!Y)throw"Can not find container in document with id "+J}return this._setAttr("container",Y),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),Y.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const Y=this.children,J=Y.length;for(let lt=0;lt<J;lt++)Y[lt].clear();return this}clone(Y){return Y||(Y={}),Y.container=typeof document<"u"&&document.createElement("div"),r.Container.prototype.clone.call(this,Y)}destroy(){super.destroy();const Y=this.content;Y&&e.Util._isInDocument(Y)&&this.container().removeChild(Y);const J=t.stages.indexOf(this);return J>-1&&t.stages.splice(J,1),e.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const Y=this._pointerPositions[0]||this._changedPointerPositions[0];return Y?{x:Y.x,y:Y.y}:(e.Util.warn(ot),null)}_getPointerById(Y){return this._pointerPositions.find(J=>J.id===Y)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(Y){Y=Y||{},Y.x=Y.x||0,Y.y=Y.y||0,Y.width=Y.width||this.width(),Y.height=Y.height||this.height();const J=new o.SceneCanvas({width:Y.width,height:Y.height,pixelRatio:Y.pixelRatio||1}),lt=J.getContext()._context,dt=this.children;return(Y.x||Y.y)&&lt.translate(-1*Y.x,-1*Y.y),dt.forEach(function(yt){if(!yt.isVisible())return;const gt=yt._toKonvaCanvas(Y);lt.drawImage(gt._canvas,Y.x,Y.y,gt.getWidth()/gt.getPixelRatio(),gt.getHeight()/gt.getPixelRatio())}),J}getIntersection(Y){if(!Y)return null;const J=this.children,lt=J.length,dt=lt-1;for(let yt=dt;yt>=0;yt--){const gt=J[yt].getIntersection(Y);if(gt)return gt}return null}_resizeDOM(){const Y=this.width(),J=this.height();this.content&&(this.content.style.width=Y+x,this.content.style.height=J+x),this.bufferCanvas.setSize(Y,J),this.bufferHitCanvas.setSize(Y,J),this.children.forEac
13h(lt=>{lt.setSize({width:Y,height:J}),lt.draw()})}add(Y,...J){if(arguments.length>1){for(let dt=0;dt<arguments.length;dt++)this.add(arguments[dt]);return this}super.add(Y);const lt=this.children.length;return lt>Q&&e.Util.warn("The stage has "+lt+" 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."),Y.setSize({width:this.width(),height:this.height()}),Y.draw(),s.Konva.isBrowser&&this.content.appendChild(Y.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(Y){return f.hasPointerCapture(Y,this)}setPointerCapture(Y){f.setPointerCapture(Y,this)}releaseCapture(Y){f.releaseCapture(Y,this)}getLayers(){return this.children}_bindContentEvents(){s.Konva.isBrowser&&tt.forEach(([Y,J])=>{this.content.addEventListener(Y,lt=>{this[J](lt)},{passive:!1})})}_pointerenter(Y){this.setPointersPositions(Y);const J=q(Y.type);J&&this._fire(J.pointerenter,{evt:Y,target:this,currentTarget:this})}_pointerover(Y){this.setPointersPositions(Y);const J=q(Y.type);J&&this._fire(J.pointerover,{evt:Y,target:this,currentTarget:this})}_getTargetShape(Y){let J=this[Y+"targetShape"];return J&&!J.getStage()&&(J=null),J}_pointerleave(Y){const J=q(Y.type),lt=X(Y.type);if(!J)return;this.setPointersPositions(Y);const dt=this._getTargetShape(lt),yt=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;dt&&yt?(dt._fireAndBubble(J.pointerout,{evt:Y}),dt._fireAndBubble(J.pointerleave,{evt:Y}),this._fire(J.pointerleave,{evt:Y,target:this,currentTarget:this}),this[lt+"targetShape"]=null):yt&&(this._fire(J.pointerleave,{evt:Y,target:this,currentTarget:this}),this._fire(J.pointerout,{evt:Y,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(Y){const J=q(Y.type),lt=X(Y.type);if(!J)return;this.setPointersPositions(Y);let dt=!1;this._changedPointerPositions.forEach(yt=>{const gt=this.getIntersection(yt);if(c.DD.justDragged=!1,s.Konva["_"+lt+"ListenClick"]=!0,!gt||!gt.isListening()){this[lt+"ClickStartShape"]=void 0;return}s.Konva.capturePointerEventsEnabled&&gt.setPointerCapture(yt.id),this[lt+"ClickStartShape"]=gt,gt._fireAndBubble(J.pointerdown,{evt:Y,pointerId:yt.id}),dt=!0;const Dt=Y.type.indexOf("touch")>=0;gt.preventDefault()&&Y.cancelable&&Dt&&Y.preventDefault()}),dt||this._fire(J.pointerdown,{evt:Y,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(Y){const J=q(Y.type),lt=X(Y.type);if(!J||(s.Konva.isDragging()&&c.DD.node.preventDefault()&&Y.cancelable&&Y.preventDefault(),this.setPointersPositions(Y),!(!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled)))return;const dt={};let yt=!1;const gt=this._getTargetShape(lt);this._changedPointerPositions.forEach(Dt=>{const Ht=f.getCapturedShape(Dt.id)||this.getIntersection(Dt),It=Dt.id,qt={evt:Y,pointerId:It},Bt=gt!==Ht;if(Bt&&gt&&(gt._fireAndBubble(J.pointerout,{...qt},Ht),gt._fireAndBubble(J.pointerleave,{...qt},Ht)),Ht){if(dt[Ht._id])return;dt[Ht._id]=!0}Ht&&Ht.isListening()?(yt=!0,Bt&&(Ht._fireAndBubble(J.pointerover,{...qt},gt),Ht._fireAndBubble(J.pointerenter,{...qt},gt),this[lt+"targetShape"]=Ht),Ht._fireAndBubble(J.pointermove,{...qt})):gt&&(this._fire(J.pointerover,{evt:Y,target:this,currentTarget:this,pointerId:It}),this[lt+"targetShape"]=null)}),yt||this._fire(J.pointermove,{evt:Y,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(Y){const J=q(Y.type),lt=X(Y.type);if(!J)return;this.setPointersPositions(Y);const dt=this[lt+"ClickStartShape"],yt=this[lt+"ClickEndShape"],gt={};let Dt=!1;this._changedPointerPositions.forEach(Ht=>{const It=f.getCapturedShape(Ht.id)||this.getIntersection(Ht);if(It){if(It.releaseCapture(Ht.id),gt[It._id])return;gt[It._id]=!0}const qt=Ht.id,Bt={evt:Y,pointerId:qt};let ee=!1;s.Konva["_"+lt+"InDblClickWindow"]?(ee=!0,clearTimeout(this[lt+"DblTimeout"])):c.DD.justDragged||(s.Konva["_"+lt+"InDblClickWindow"]=!0,clearTimeout(this[lt+"DblTimeout"])),this[lt+"DblTimeout"]=setTimeout(function(){s.Konva["_"+lt+"InDblClickWindow"]=!1}
13,s.Konva.dblClickWindow),It&&It.isListening()?(Dt=!0,this[lt+"ClickEndShape"]=It,It._fireAndBubble(J.pointerup,{...Bt}),s.Konva["_"+lt+"ListenClick"]&&dt&&dt===It&&(It._fireAndBubble(J.pointerclick,{...Bt}),ee&&yt&&yt===It&&It._fireAndBubble(J.pointerdblclick,{...Bt}))):(this[lt+"ClickEndShape"]=null,s.Konva["_"+lt+"ListenClick"]&&this._fire(J.pointerclick,{evt:Y,target:this,currentTarget:this,pointerId:qt}),ee&&this._fire(J.pointerdblclick,{evt:Y,target:this,currentTarget:this,pointerId:qt}))}),Dt||this._fire(J.pointerup,{evt:Y,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),s.Konva["_"+lt+"ListenClick"]=!1,Y.cancelable&&lt!=="touch"&&lt!=="pointer"&&Y.preventDefault()}_contextmenu(Y){this.setPointersPositions(Y);const J=this.getIntersection(this.getPointerPosition());J&&J.isListening()?J._fireAndBubble(Z,{evt:Y}):this._fire(Z,{evt:Y,target:this,currentTarget:this})}_wheel(Y){this.setPointersPositions(Y);const J=this.getIntersection(this.getPointerPosition());J&&J.isListening()?J._fireAndBubble(W,{evt:Y}):this._fire(W,{evt:Y,target:this,currentTarget:this})}_pointercancel(Y){this.setPointersPositions(Y);const J=f.getCapturedShape(Y.pointerId)||this.getIntersection(this.getPointerPosition());J&&J._fireAndBubble(k,f.createEvent(Y)),f.releaseCapture(Y.pointerId)}_lostpointercapture(Y){f.releaseCapture(Y.pointerId)}setPointersPositions(Y){const J=this._getContentPosition();let lt=null,dt=null;Y=Y||window.event,Y.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(Y.touches,yt=>{this._pointerPositions.push({id:yt.identifier,x:(yt.clientX-J.left)/J.scaleX,y:(yt.clientY-J.top)/J.scaleY})}),Array.prototype.forEach.call(Y.changedTouches||Y.touches,yt=>{this._changedPointerPositions.push({id:yt.identifier,x:(yt.clientX-J.left)/J.scaleX,y:(yt.clientY-J.top)/J.scaleY})})):(lt=(Y.clientX-J.left)/J.scaleX,dt=(Y.clientY-J.top)/J.scaleY,this.pointerPos={x:lt,y:dt},this._pointerPositions=[{x:lt,y:dt,id:e.Util._getFirstPointerId(Y)}],this._changedPointerPositions=[{x:lt,y:dt,id:e.Util._getFirstPointerId(Y)}])}_setPointerPosition(Y){e.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(Y)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const Y=this.content.getBoundingClientRect();return{top:Y.top,left:Y.left,scaleX:Y.width/this.content.clientWidth||1,scaleY:Y.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!s.Konva.isBrowser)return;const Y=this.container();if(!Y)throw"Stage has no container. A container is required.";Y.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"),Y.appendChild(this.content),this._resizeDOM()}cache(){return e.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}
13batchDraw(){return this.getChildren().forEach(function(Y){Y.batchDraw()}),this}}t.Stage=ft,ft.prototype.nodeType=g,(0,d._registerNode)(ft),n.Factory.addGetterSetter(ft,"container"),s.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{t.stages.forEach(it=>{it.batchDraw()})})})(b4)),b4}var Ph={},C4={},S4;function zr(){return S4||(S4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const e=He(),n=nr(),r=Xe(),s=ur(),o=qe(),c=He(),d=N9(),f="hasShadow",g="shadowRGBA",v="patternImage",x="linearGradient",C="radialGradient";let y;function h(){return y||(y=n.Util.createCanvasElement().getContext("2d"),y)}t.shapes={};function w(D){const A=this.attrs.fillRule;A?D.fill(A):D.fill()}function E(D){D.stroke()}function M(D){const A=this.attrs.fillRule;A?D.fill(A):D.fill()}function b(D){D.stroke()}function m(){this._clearCache(f)}function _(){this._clearCache(g)}function k(){this._clearCache(v)}function R(){this._clearCache(x)}function G(){this._clearCache(C)}class T extends s.Node{constructor(A){super(A);let B;for(;B=n.Util.getRandomColor(),!(B&&!(B in t.shapes)););this.colorKey=B,t.shapes[B]=this}getContext(){return n.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return n.Util.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(f,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=h().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const B=new n.Transform;B.translate(this.fillPatternX(),this.fillPatternY()),B.rotate(e.Konva.getAngle(this.fillPatternRotation())),B.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),B.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const Z=B.getMatrix(),S=typeof DOMMatrix>"u"?{a:Z[0],b:Z[1],c:Z[2],d:Z[3],e:Z[4],f:Z[5]}:new DOMMatrix(Z);
13A.setTransform(S)}return A}}_getLinearGradient(){return this._getCache(x,this.__getLinearGradient)}__getLinearGradient(){const A=this.fillLinearGradientColorStops();if(A){const B=h(),Z=this.fillLinearGradientStartPoint(),S=this.fillLinearGradientEndPoint(),I=B.createLinearGradient(Z.x,Z.y,S.x,S.y);for(let N=0;N<A.length;N+=2)I.addColorStop(A[N],A[N+1]);return I}}_getRadialGradient(){return this._getCache(C,this.__getRadialGradient)}__getRadialGradient(){const A=this.fillRadialGradientColorStops();if(A){const B=h(),Z=this.fillRadialGradientStartPoint(),S=this.fillRadialGradientEndPoint(),I=B.createRadialGradient(Z.x,Z.y,this.fillRadialGradientStartRadius(),S.x,S.y,this.fillRadialGradientEndRadius());for(let N=0;N<A.length;N+=2)I.addColorStop(A[N],A[N+1]);return I}}getShadowRGBA(){return this._getCache(g,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const A=n.Util.colorToRGBA(this.shadowColor());if(A)return"rgba("+A.r+","+A.g+","+A.b+","+A.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(){const A=this.hitStrokeWidth();return A==="auto"?this.hasStroke():this.strokeEnabled()&&!!A}intersects(A){const B=this.getStage();if(!B)return!1;const Z=B.bufferHitCanvas;return Z.getContext().clear(),this.drawHit(Z,void 0,!0),Z.context.getImageData(Math.round(A.x),Math.round(A.y),1,1).data[3]>0}destroy(){return s.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(A){var B;if(!(!((B=this.attrs.perfectDrawEnabled)!==null&&B!==void 0)||B))return!1;const Z=A||this.hasFill(),S=this.hasStroke(),I=this.getAbsoluteOpacity()!==1;if(Z&&S&&I)return!0;const N=this.hasShadow(),z=this.shadowForStrokeEnabled();return!!(Z&&S&&N&&z)}setStrokeHitEnabled(A){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),A?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const A=this.size();return{x:this._centroid?-A.width/2:0,y:this._centroid?-A.height/2:0,width:A.width,height:A.height}}getClientRect(A={}){let B=!1,Z=this.getParent();for(;Z;){if(Z.isCached()){B=!0;break}Z=Z.getParent()}const S=A.skipTransform,I=A.relativeTo||B&&this.getStage()||void 0,N=this.getSelfRect(),z=!A.ski
13pStroke&&this.hasStroke()&&this.strokeWidth()||0,W=N.width+z,Q=N.height+z,tt=!A.skipShadow&&this.hasShadow(),at=tt?this.shadowOffsetX():0,X=tt?this.shadowOffsetY():0,q=W+Math.abs(at),rt=Q+Math.abs(X),ot=tt&&this.shadowBlur()||0,ft=q+ot*2,it=rt+ot*2,Y={width:ft,height:it,x:-(z/2+ot)+Math.min(at,0)+N.x,y:-(z/2+ot)+Math.min(X,0)+N.y};return S?Y:this._transformedRect(Y,I)}drawScene(A,B,Z){const S=this.getLayer();let I=A||S.getCanvas(),N=I.getContext(),z=this._getCanvasCache(),W=this.getSceneFunc(),Q=this.hasShadow(),tt,at;const X=I.isCache,q=B===this;if(!this.isVisible()&&!q)return this;if(z){N.save();const ot=this.getAbsoluteTransform(B).getMatrix();return N.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5]),this._drawCachedSceneCanvas(N),N.restore(),this}if(!W)return this;if(N.save(),this._useBufferCanvas()&&!X){tt=this.getStage();const ot=Z||tt.bufferCanvas;at=ot.getContext(),at.clear(),at.save(),at._applyLineJoin(this);var rt=this.getAbsoluteTransform(B).getMatrix();at.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5]),W.call(this,at,this),at.restore();const ft=ot.pixelRatio;Q&&N._applyShadow(this),N._applyOpacity(this),N._applyGlobalCompositeOperation(this),N.drawImage(ot._canvas,0,0,ot.width/ft,ot.height/ft)}else{if(N._applyLineJoin(this),!q){var rt=this.getAbsoluteTransform(B).getMatrix();N.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5]),N._applyOpacity(this),N._applyGlobalCompositeOperation(this)}Q&&N._applyShadow(this),W.call(this,N,this)}return N.restore(),this}drawHit(A,B,Z=!1){if(!this.shouldDrawHit(B,Z))return this;const S=this.getLayer(),I=A||S.hitCanvas,N=I&&I.getContext(),z=this.hitFunc()||this.sceneFunc(),W=this._getCanvasCache(),Q=W&&W.hit;if(this.colorKey||n.Util.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()"),Q){N.save();const tt=this.getAbsoluteTransform(B).getMatrix();return N.transform(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5]),this._drawCachedHitCanvas(N),N.restore(),this}if(!z)return this;if(N.save(),N._applyLineJoin(this),this!==B){const tt=this.getAbsoluteTransform(B).getMatrix();N.transform(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5])}return z.call(this,N,this),N.restore(),this}drawHitFromCache(A=0){const B=this._getCanvasCache(),Z=this._getCachedSceneCanvas(),S=B.hit,I=S.getContext(),N=S.getWidth(),z=S.getHeight();I.clear(),I.drawImage(Z._canvas,0,0,N,z);try{const W=I.getImageData(0,0,N,z),Q=W.data,tt=Q.length,at=n.Util._hexToRgb(this.colorKey);for(let X=0;X<tt;X+=4)Q[X+3]>A?(Q[X]=at.r,Q[X+1]=at.g,Q[X+2]=at.b,Q[X+3]=255):Q[X+3]=0;I.putImageData(W,0,0)}catch(W){n.Util.error("Unable to draw hit graph from cached scene canvas. "+W.message)}return this}hasPointerCapture(A){return d.hasPointerCapture(A,this)}setPointerCapture(A){d.setPointerCapture(A,this)}releaseCapture(A){d.releaseCapture(A,this)}}t.Shape=T,T.prototype._fillFunc=w,T.prototype._strokeFunc=E,T.prototype._fillFuncHit=M,T.prototype._strokeFuncHit=b,T.prototype._centroid=!1,T.prototype.nodeType="Shape",(0,c._registerNode)(T),T.prototype.eventListeners={},T.prototype.on.call(T.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",m),T.prototype.on.call(T.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",_),T.prototype.on.call(T.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",k),T.prototype.on.call(T.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",R),T.prototype.on.call(T.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",G),r.Factory.addGetterSetter(T,"stroke",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(T,"strokeWidth",2,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(T,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(T,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(T,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(T,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(T,"lineJoin"),r.Factory.addGetterSetter(T,"lineCap"),r.Factory.addGetterSetter(T,"sceneFunc"),r.Factory.addGetterSetter(T,"hitFunc"),r.Factory.addGetterSetter(T,"dash"),r.Factory.addGetterSetter(T,"dashOffset",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"shadowColor",void 0,(0,o.getStringValidator)()),r.Factory.addGetterSetter(T,"shadowBlur",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"shadowOpacity",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(T,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(T,"shadowOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"shadowOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillPatternImage"),r.Factory.addGetterSetter(T,"fill",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(T,"fillPatternX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillPatternY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(T,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(T,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(T,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(T,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(T,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(T,"fillEnabled",!0),r.Factory.addGetterSetter(T,"strokeEnabled",!0),r.Factory.addGetterSetter(T,"shadowEnabled",!0),r.Factory.addGetterSetter(T,"dashEnabled",!0),r.Factory.addGetterSetter(T,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(T,"fillPriority","color"),r.Factory.addComponentsGetterSetter(T,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(T,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(T,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(T,"fillPatternScaleX",1,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillPatternScaleY",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(T,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(T,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(T,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(T,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(T,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(T,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(T,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(T,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(T,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(T,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(T,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(T,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(T,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(T,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(T,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(T,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(T,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(T,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(T,"fillPatternRotation",0),r.Factory.addGetterSetter(T,"fillRule",void 0,(0,o.getStringValidator)()),r.Factory.backCompat(T,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(C4)),C4}var _4;function R9(){if(_4)return Ph;_4=1,Object.defineProperty(Ph,"__esModule",{value:!0}),Ph.Layer=void 0;const t=nr(),e=Tp(),n=ur(),r=Xe(),s=Lp(),o=qe(),c=zr(),d=He(),f="#",g="beforeDraw",v="draw",x=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],C=x.length;
13class y extends e.Container{constructor(w){super(w),this.canvas=new s.SceneCanvas,this.hitCanvas=new s.HitCanvas({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(w){return this.getContext().clear(w),this.getHitCanvas().getContext().clear(w),this}setZIndex(w){super.setZIndex(w);const E=this.getStage();return E&&E.content&&(E.content.removeChild(this.getNativeCanvasElement()),w<E.children.length-1?E.content.insertBefore(this.getNativeCanvasElement(),E.children[w+1].getCanvas()._canvas):E.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){n.Node.prototype.moveToTop.call(this);const w=this.getStage();return w&&w.content&&(w.content.removeChild(this.getNativeCanvasElement()),w.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!n.Node.prototype.moveUp.call(this))return!1;const w=this.getStage();return!w||!w.content?!1:(w.content.removeChild(this.getNativeCanvasElement()),this.index<w.children.length-1?w.content.insertBefore(this.getNativeCanvasElement(),w.children[this.index+1].getCanvas()._canvas):w.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(n.Node.prototype.moveDown.call(this)){const w=this.getStage();if(w){const E=w.children;w.content&&(w.content.removeChild(this.getNativeCanvasElement()),w.content.insertBefore(this.getNativeCanvasElement(),E[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(n.Node.prototype.moveToBottom.call(this)){const w=this.getStage();if(w){const E=w.children;w.content&&(w.content.removeChild(this.getNativeCanvasElement()),w.content.insertBefore(this.getNativeCanvasElement(),E[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const w=this.getNativeCanvasElement();return n.Node.prototype.remove.call(this),w&&w.parentNode&&t.Util._isInDocument(w)&&w.parentNode.removeChild(w),this}getStage(){return this.parent}setSize({width:w,height:E}){return this.canvas.setSize(w,E),this.hitCanvas.setSize(w,E),this._setSmoothEnabled(),this}_validateAdd(w){const E=w.getType();E!=="Group"&&E!=="Shape"&&t.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(w){return w=w||{},w.width=w.width||this.getWidth(),w.height=w.height||this.getHeight(),w.x=w.x!==void 0?w.x:this.x(),w.y=w.y!==void 0?w.y:this.y(),n.Node.prototype._toKonvaCanvas.call(this,w)}_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(){t.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){t.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,t.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(w){if(!this.isListening()||!this.isVisible())return null;let E=1,M=!1;for(;;){for(let b=0;b<C;b++){const m=x[b],_=this._getIntersection({x:w.x+m.x*E,y:w.y+m.y*E}),k=_.shape;if(k)return k;if(M=!!_.antialiased,!_.antialiased)break}if(M)E+=1;else return null}}_getIntersection(w){const E=this.hitCanvas.pixelRatio,M=this.hitCanvas.context.getImageData(Math.round(w.x*E),Math.round(w.y*E),1,1).data,b=M[3];if(b===255){const m=t.Util._rgbToHex(M[0],M[1],M[2]),_=c.shapes[f+m];return _?{shape:_}:{antialiased:!0}}else if(b>0)return{antialiased:!0};return{}}drawScene(w,E){const M=this.getLayer(),b=w||M&&M.getCanvas();return this._fire(g,{node:this}),this.clearBeforeDraw()&&b.getContext().clear(),e.Container.prototype.drawScene.call(this,b,E),this._fire(v,{node:this}),this}drawHit(w,E){const M=this.getLayer(),b=w||M&&M.hitCanvas;return M&&M.clearBeforeDraw()&&M.getHitCanvas().getContext().clear(),e.Container.prototype.drawHit.call(this,b,E),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(w){t.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(w)}getHitGraphEnabled(w){return t.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const w=this.parent;this.hitCanvas._canvas.parentNode?w.content.removeChild(this.hitCanvas._canvas):w.content.appendChild(this.hitCanvas._canvas)}destroy(){return t.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}return Ph.Layer=y,y.prototype.nodeType="Layer",(0,d._registerNode)(y),r.Factory.addGetterSetter(y,"imageSmoothingEnabled",!0),r.Factory.addGetterSetter(y,"clearBeforeDraw",!0),r.Factory.addGetterSetter(y,"hitGraphEnabled",!0,(0,o.getBooleanValidator)()),Ph}var Mh={},E4;function LS(){if(E4)return Mh;E4=1,Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.FastLayer=void 0;const t=nr(),e=R9(),n=He();class r extends e.Layer{constructor(o){super(o),this.listening(!1),t.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}return Mh.FastLayer=r,r.prototype.nodeType="FastLayer",(0,n._registerNode)(r),Mh}var Lh={},O4;function um(){if(O4)return Lh;O4=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.Group=void 0;const t=nr(),e=Tp(),n=He();class r extends e.Container{_validateAdd(o){const c=o.getType();c!=="Group"&&c!=="Shape"&&t.Util.throw("You may only add groups and shapes to groups.")}}return Lh.Group=r,r.prototype.nodeType="Group",(0,n._registerNode)(r),Lh}var Th={},k4;function dm(){if(k4)return Th;k4=1,Object.defineProperty(Th,"__esModule",{value:!0}),Th.Animation=void 0;const t=He(),e=nr(),n=(function(){return t.glob.performance&&t.glob.performance.now?function(){return t.glob.performance.now()}:function(){return new Date().getTime()}})();
13class r{constructor(o,c){this.id=r.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:n(),frameRate:0},this.func=o,this.setLayers(c)}setLayers(o){let c=[];return o&&(c=Array.isArray(o)?o:[o]),this.layers=c,this}getLayers(){return this.layers}addLayer(o){const c=this.layers,d=c.length;for(let f=0;f<d;f++)if(c[f]._id===o._id)return!1;return this.layers.push(o),!0}isRunning(){const o=r.animations,c=o.length;for(let d=0;d<c;d++)if(o[d].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=n(),r._addAnimation(this),this}stop(){return r._removeAnimation(this),this}_updateFrameObject(o){this.frame.timeDiff=o-this.frame.lastTime,this.frame.lastTime=o,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(o){this.animations.push(o),this._handleAnimation()}static _removeAnimation(o){const c=o.id,d=this.animations,f=d.length;for(let g=0;g<f;g++)if(d[g].id===c){this.animations.splice(g,1);break}}static _runFrames(){const o={},c=this.animations;for(let d=0;d<c.length;d++){const f=c[d],g=f.layers,v=f.func;f._updateFrameObject(n());const x=g.length;let C;if(v?C=v.call(f,f.frame)!==!1:C=!0,!!C)for(let y=0;y<x;y++){const h=g[y];h._id!==void 0&&(o[h._id]=h)}}for(const d in o)o.hasOwnProperty(d)&&o[d].batchDraw()}static _animationLoop(){const o=r;o.animations.length?(o._runFrames(),e.Util.requestAnimFrame(o._animationLoop)):o.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,e.Util.requestAnimFrame(this._animationLoop))}}return Th.Animation=r,r.animations=[],r.animIdCounter=0,r.animRunning=!1,Th}var P4={},M4;function TS(){return M4||(M4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Easings=t.Tween=void 0;const e=nr(),n=dm(),r=ur(),s=He(),o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},c=1,d=2,f=3,g=["fill","stroke","shadowColor"];let v=0;class x{constructor(h,w,E,M,b,m,_){this.prop=h,this.propFunc=w,this.begin=M,this._pos=M,this.duration=m,this._change=0,this.prevPos=0,this.yoyo=_,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=E,this._change=b-this.begin,this.pause()}fire(h){const w=this[h];w&&w()}setTime(h){h>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():h<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=h,this.update())}getTime(){return this._time}setPosition(h){this.prevPos=this._pos,this.propFunc(h),this._pos=h}getPosition(h){return h===void 0&&(h=this._time),this.func(h,this.begin,this._change,this.duration)}play(){this.state=d,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=f,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(h){this.pause(),this._time=h,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(){const h=this.getTimer()-this._startTime;this.state===d?this.setTime(h):this.state===f&&this.setTime(this.duration-h)}pause(){this.state=c,this.fire("onPause")}getTimer(){return new Date().getTime()}}class C{constructor(h){const w=this,E=h.node,M=E._id,b=h.easing||t.Easings.Linear,m=!!h.yoyo;let _,k;typeof h.duration>"u"?_=.3:h.duration===0?_=.001:_=h.duration,this.node=E,this._id=v++;const R=E.getLayer()||(E instanceof s.Konva.Stage?E.getLayers():null);R||e.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){w.tween.onEnterFrame()},R),this.tween=new x(k,function(G){w._tweenFunc(G)},b,0,1,_*1e3,m),this._addListeners(),C.attrs[M]||(C.attrs[M]={}),C.attrs[M][this._id]||(C.attrs[M][this._id]={}),C.tweens[M]||(C.tweens[M]={});for(k in h)o[k]===void 0&&this._addAttr(k,h[k]);this.reset(),this.onFinish=h.onFinish,this.onReset=h.onReset,this.onUpdate=h.onUpdate}_addAttr(h,w){const E=this.node,M=E._id;let b,m,_,k,R;const G=C.tweens[M][h];G&&delete C.attrs[M][G][h];let T=E.getAttr(h);if(e.Util._isArray(w))if(b=[],m=Math.max(w.length,T.length),h==="points"&&w.length!==T.length&&(w.length>T.length?(k=T,T=e.Util._prepareArrayForTween(T,w,E.closed())):(_=w,w=e.Util._prepareArrayForTween(w,T,E.closed()))),h.indexOf("fill")===0)for(let D=0;D<m;D++)if(D%2===0)b.push(w[D]-T[D]);else{const A=e.Util.colorToRGBA(T[D]);R=e.Util.colorToRGBA(w[D]),T[D]=A,b.push({r:R.r-A.r,g:R.g-A.g,b:R.b-A.b,a:R.a-A.a})}else for(let D=0;D<m;D++)b.push(w[D]-T[D]);else g.indexOf(h)!==-1?(T=e.Util.colorToRGBA(T),R=e.Util.colorToRGBA(w),b={r:R.r-T.r,g:R.g-T.g,b:R.b-T.b,a:R.a-T.a}):b=w-T;C.attrs[M][this._id][h]={start:T,diff:b,end:w,trueEnd:_,trueStart:k},C.tweens[M][h]=this._id}_tweenFunc(h){const w=this.node,E=C.attrs[w._id][this._id];let M,b,m,_,k,R,G,T;for(M in E){if(b=E[M],m=b.start,_=b.diff,T=b.end,e.Util._isArray(m))if(k=[],G=Math.max(m.length,T.length),M.indexOf("fill")===0)for(R=0;R<G;R++)R%2===0?k.push((m[R]||0)+_[R]*h):k.push("rgba("+Math.round(m[R].r+_[R].r*h)+","+Math.round(m[R].g+_[R].g*h)+","+Math.round(m[R].b+_[R].b*h)+","+(m[R].a+_[R].a*h)+")");else for(R=0;R<G;R++)k.push((m[R]||0)+_[R]*h);else g.indexOf(M)!==-1?k="rgba("+Math.round(m.r+_.r*h)+","+Math.round(m.g+_.g*h)+","+Math.round(m.b+_.b*h)+","+(m.a+_.a*h)+")":k=m+_*h;w.setAttr(M,k)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const h=this.node,w=C.attrs[h._id][this._id];w.points&&w.points.trueEnd&&h.setAttr("points",w.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const h=this.node,w=C.attrs[h._id][this._id];w.points&&w.points.trueStart&&h.points(w.points.trueStart),this.onReset&&this.onReset()}
13,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(h){return this.tween.seek(h*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const h=this.node._id,w=this._id,E=C.tweens[h];this.pause();for(const M in E)delete C.tweens[h][M];delete C.attrs[h][w]}}t.Tween=C,C.attrs={},C.tweens={},r.Node.prototype.to=function(y){const h=y.onFinish;y.node=this,y.onFinish=function(){this.destroy(),h&&h()},new C(y).play()},t.Easings={BackEaseIn(y,h,w,E){return w*(y/=E)*y*((1.70158+1)*y-1.70158)+h},BackEaseOut(y,h,w,E){return w*((y=y/E-1)*y*((1.70158+1)*y+1.70158)+1)+h},BackEaseInOut(y,h,w,E){let M=1.70158;return(y/=E/2)<1?w/2*(y*y*(((M*=1.525)+1)*y-M))+h:w/2*((y-=2)*y*(((M*=1.525)+1)*y+M)+2)+h},ElasticEaseIn(y,h,w,E,M,b){let m=0;return y===0?h:(y/=E)===1?h+w:(b||(b=E*.3),!M||M<Math.abs(w)?(M=w,m=b/4):m=b/(2*Math.PI)*Math.asin(w/M),-(M*Math.pow(2,10*(y-=1))*Math.sin((y*E-m)*(2*Math.PI)/b))+h)},ElasticEaseOut(y,h,w,E,M,b){let m=0;return y===0?h:(y/=E)===1?h+w:(b||(b=E*.3),!M||M<Math.abs(w)?(M=w,m=b/4):m=b/(2*Math.PI)*Math.asin(w/M),M*Math.pow(2,-10*y)*Math.sin((y*E-m)*(2*Math.PI)/b)+w+h)},ElasticEaseInOut(y,h,w,E,M,b){let m=0;return y===0?h:(y/=E/2)===2?h+w:(b||(b=E*(.3*1.5)),!M||M<Math.abs(w)?(M=w,m=b/4):m=b/(2*Math.PI)*Math.asin(w/M),y<1?-.5*(M*Math.pow(2,10*(y-=1))*Math.sin((y*E-m)*(2*Math.PI)/b))+h:M*Math.pow(2,-10*(y-=1))*Math.sin((y*E-m)*(2*Math.PI)/b)*.5+w+h)},BounceEaseOut(y,h,w,E){return(y/=E)<1/2.75?w*(7.5625*y*y)+h:y<2/2.75?w*(7.5625*(y-=1.5/2.75)*y+.75)+h:y<2.5/2.75?w*(7.5625*(y-=2.25/2.75)*y+.9375)+h:w*(7.5625*(y-=2.625/2.75)*y+.984375)+h},BounceEaseIn(y,h,w,E){return w-t.Easings.BounceEaseOut(E-y,0,w,E)+h},BounceEaseInOut(y,h,w,E){return y<E/2?t.Easings.BounceEaseIn(y*2,0,w,E)*.5+h:t.Easings.BounceEaseOut(y*2-E,0,w,E)*.5+w*.5+h},EaseIn(y,h,w,E){return w*(y/=E)*y+h},EaseOut(y,h,w,E){return-w*(y/=E)*(y-2)+h},EaseInOut(y,h,w,E){return(y/=E/2)<1?w/2*y*y+h:-w/2*(--y*(y-2)-1)+h},StrongEaseIn(y,h,w,E){return w*(y/=E)*y*y*y*y+h},StrongEaseOut(y,h,w,E){return w*((y=y/E-1)*y*y*y*y+1)+h},StrongEaseInOut(y,h,w,E){return(y/=E/2)<1?w/2*y*y*y*y*y+h:w/2*((y-=2)*y*y*y*y+2)+h},Linear(y,h,w,E){return w*y/E+h}}})(P4)),P4}var L4;function Sg(){return L4||(L4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const e=He(),n=nr(),r=ur(),s=Tp(),o=MS(),c=R9(),d=LS(),f=um(),g=cm(),v=zr(),x=dm(),C=TS(),y=I9(),h=Lp();t.Konva=n.Util._assign(e.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:s.Container,Stage:o.Stage,stages:o.stages,Layer:c.Layer,FastLayer:d.FastLayer,Group:f.Group,DD:g.DD,Shape:v.Shape,shapes:v.shapes,Animation:x.Animation,Tween:C.Tween,Easings:C.Easings,Context:y.Context,Canvas:h.Canvas}),t.default=t.Konva})(i4)),i4}var Ah={},T4;function AS(){if(T4)return Ah;T4=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.Arc=void 0;const t=Xe(),e=zr(),n=He(),r=qe(),s=He();class o extends e.Shape{_sceneFunc(d){const f=n.Konva.getAngle(this.angle()),g=this.clockwise();d.beginPath(),d.arc(0,0,this.outerRadius(),0,f,g),d.arc(0,0,this.innerRadius(),f,0,!g),d.closePath(),d.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(d){this.outerRadius(d/2)}setHeight(d){this.outerRadius(d/2)}getSelfRect(){const d=this.innerRadius(),f=this.outerRadius(),g=this.clockwise(),v=n.Konva.getAngle(g?360-this.angle():this.angle()),x=Math.cos(Math.min(v,Math.PI)),C=1,y=Math.sin(Math.min(Math.max(Math.PI,v),3*Math.PI/2)),h=Math.sin(Math.min(v,Math.PI/2)),w=x*(x>0?d:f),E=C*f,M=y*(y>0?d:f),b=h*(h>0?f:d);return{x:w,y:g?-1*b:M,width:E-w,height:b-M}}}return Ah.Arc=o,o.prototype._centroid=!0,o.prototype.className="Arc",o.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"],(0,s._registerNode)(o),t.Factory.addGetterSetter(o,"innerRadius",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"outerRadius",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"angle",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"clockwise",!1,(0,r.getBooleanValidator)()),Ah}var Ih={},Nh={},A4;
13function F9(){if(A4)return Nh;A4=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.Line=void 0;const t=Xe(),e=He(),n=zr(),r=qe();function s(d,f,g,v,x,C,y){const h=Math.sqrt(Math.pow(g-d,2)+Math.pow(v-f,2)),w=Math.sqrt(Math.pow(x-g,2)+Math.pow(C-v,2)),E=y*h/(h+w),M=y*w/(h+w),b=g-E*(x-d),m=v-E*(C-f),_=g+M*(x-d),k=v+M*(C-f);return[b,m,_,k]}function o(d,f){const g=d.length,v=[];for(let x=2;x<g-2;x+=2){const C=s(d[x-2],d[x-1],d[x],d[x+1],d[x+2],d[x+3],f);isNaN(C[0])||(v.push(C[0]),v.push(C[1]),v.push(d[x]),v.push(d[x+1]),v.push(C[2]),v.push(C[3]))}return v}class c extends n.Shape{constructor(f){super(f),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(f){let g=this.points(),v=g.length,x=this.tension(),C=this.closed(),y=this.bezier(),h,w,E;if(v){if(f.beginPath(),f.moveTo(g[0],g[1]),x!==0&&v>4){for(h=this.getTensionPoints(),w=h.length,E=C?0:4,C||f.quadraticCurveTo(h[0],h[1],h[2],h[3]);E<w-2;)f.bezierCurveTo(h[E++],h[E++],h[E++],h[E++],h[E++],h[E++]);C||f.quadraticCurveTo(h[w-2],h[w-1],g[v-2],g[v-1])}else if(y)for(E=2;E<v;)f.bezierCurveTo(g[E++],g[E++],g[E++],g[E++],g[E++],g[E++]);else for(E=2;E<v;E+=2)f.lineTo(g[E],g[E+1]);C?(f.closePath(),f.fillStrokeShape(this)):f.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():o(this.points(),this.tension())}_getTensionPointsClosed(){const f=this.points(),g=f.length,v=this.tension(),x=s(f[g-2],f[g-1],f[0],f[1],f[2],f[3],v),C=s(f[g-4],f[g-3],f[g-2],f[g-1],f[0],f[1],v),y=o(f,v);return[x[2],x[3]].concat(y).concat([C[0],C[1],f[g-2],f[g-1],C[2],C[3],x[0],x[1],f[0],f[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let f=this.points();if(f.length<4)return{x:f[0]||0,y:f[1]||0,width:0,height:0};this.tension()!==0?f=[f[0],f[1],...this._getTensionPoints(),f[f.length-2],f[f.length-1]]:f=this.points();let g=f[0],v=f[0],x=f[1],C=f[1],y,h;for(let w=0;w<f.length/2;w++)y=f[w*2],h=f[w*2+1],g=Math.min(g,y),v=Math.max(v,y),x=Math.min(x,h),C=Math.max(C,h);return{x:g,y:x,width:v-g,height:C-x}}}return Nh.Line=c,c.prototype.className="Line",c.prototype._attrsAffectingSize=["points","bezier","tension"],(0,e._registerNode)(c),t.Factory.addGetterSetter(c,"closed",!1),t.Factory.addGetterSetter(c,"bezier",!1),t.Factory.addGetterSetter(c,"tension",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(c,"points",[],(0,r.getNumberArrayValidator)()),Nh}var Rh={},I4={},N4;function IS(){return N4||(N4=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.t2length=t.getQuadraticArcLength=t.getCubicArcLength=t.binomialCoefficients=t.cValues=t.tValues=void 0,t.tValues=[[],[],[-.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,.90411
1372563704749,-.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]],t.cValues=[[],[],[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,.092121499837
1372845,.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]],t.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const e=(c,d,f)=>{let g,v;const x=f/2;g=0;for(let C=0;C<20;C++)v=x*t.tValues[20][C]+x,g+=t.cValues[20][C]*r(c,d,v);return x*g};t.getCubicArcLength=e;const n=(c,d,f)=>{f===void 0&&(f=1);const g=c[0]-2*c[1]+c[2],v=d[0]-2*d[1]+d[2],x=2*c[1]-2*c[0],C=2*d[1]-2*d[0],y=4*(g*g+v*v),h=4*(g*x+v*C),w=x*x+C*C;if(y===0)return f*Math.sqrt(Math.pow(c[2]-c[0],2)+Math.pow(d[2]-d[0],2));const E=h/(2*y),M=w/y,b=f+E,m=M-E*E,_=b*b+m>0?Math.sqrt(b*b+m):0,k=E*E+m>0?Math.sqrt(E*E+m):0,R=E+Math.sqrt(E*E+m)!==0?m*Math.log(Math.abs((b+_)/(E+k))):0;return Math.sqrt(y)/2*(b*_-E*k+R)};t.getQuadraticArcLength=n;function r(c,d,f){const g=s(1,f,c),v=s(1,f,d),x=g*g+v*v;return Math.sqrt(x)}const s=(c,d,f)=>{const g=f.length-1;let v,x;if(g===0)return 0;if(c===0){x=0;for(let C=0;C<=g;
13C++)x+=t.binomialCoefficients[g][C]*Math.pow(1-d,g-C)*Math.pow(d,C)*f[C];return x}else{v=new Array(g);for(let C=0;C<g;C++)v[C]=g*(f[C+1]-f[C]);return s(c-1,d,v)}},o=(c,d,f)=>{let g=1,v=c/d,x=(c-f(v))/d,C=0;for(;g>.001;){const y=f(v+x),h=Math.abs(c-y)/d;if(h<g)g=h,v+=x;else{const w=f(v-x),E=Math.abs(c-w)/d;E<g?(g=E,v-=x):x/=2}if(C++,C>500)break}return v};t.t2length=o})(I4)),I4}var R4;function hm(){if(R4)return Rh;R4=1,Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.Path=void 0;const t=Xe(),e=zr(),n=He(),r=IS();class s extends e.Shape{constructor(c){super(c),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=s.parsePathData(this.data()),this.pathLength=s.getPathLength(this.dataArray)}_sceneFunc(c){const d=this.dataArray;c.beginPath();let f=!1;for(let _=0;_<d.length;_++){const k=d[_].command,R=d[_].points;switch(k){case"L":c.lineTo(R[0],R[1]);break;case"M":c.moveTo(R[0],R[1]);break;case"C":c.bezierCurveTo(R[0],R[1],R[2],R[3],R[4],R[5]);break;case"Q":c.quadraticCurveTo(R[0],R[1],R[2],R[3]);break;case"A":var g=R[0],v=R[1],x=R[2],C=R[3],y=R[4],h=R[5],w=R[6],E=R[7],M=x>C?x:C,b=x>C?1:x/C,m=x>C?C/x:1;c.translate(g,v),c.rotate(w),c.scale(b,m),c.arc(0,0,M,y,y+h,1-E),c.scale(1/b,1/m),c.rotate(-w),c.translate(-g,-v);break;case"z":f=!0,c.closePath();break}}!f&&!this.hasFill()?c.strokeShape(this):c.fillStrokeShape(this)}getSelfRect(){let c=[];this.dataArray.forEach(function(y){if(y.command==="A"){const h=y.points[4],w=y.points[5],E=y.points[4]+w;let M=Math.PI/180;if(Math.abs(h-E)<M&&(M=Math.abs(h-E)),w<0)for(let b=h-M;b>E;b-=M){const m=s.getPointOnEllipticalArc(y.points[0],y.points[1],y.points[2],y.points[3],b,0);c.push(m.x,m.y)}else for(let b=h+M;b<E;b+=M){const m=s.getPointOnEllipticalArc(y.points[0],y.points[1],y.points[2],y.points[3],b,0);c.push(m.x,m.y)}}else if(y.command==="C")for(let h=0;h<=1;h+=.01){const w=s.getPointOnCubicBezier(h,y.start.x,y.start.y,y.points[0],y.points[1],y.points[2],y.points[3],y.points[4],y.points[5]);c.push(w.x,w.y)}else c=c.concat(y.points)});let d=c[0],f=c[0],g=c[1],v=c[1],x,C;for(let y=0;y<c.length/2;y++)x=c[y*2],C=c[y*2+1],isNaN(x)||(d=Math.min(d,x),f=Math.max(f,x)),isNaN(C)||(g=Math.min(g,C),v=Math.max(v,C));return{x:d,y:g,width:f-d,height:v-g}}getLength(){return this.pathLength}getPointAtLength(c){return s.getPointAtLengthOfDataArray(c,this.dataArray)}static getLineLength(c,d,f,g){return Math.sqrt((f-c)*(f-c)+(g-d)*(g-d))}static getPathLength(c){let d=0;for(let f=0;f<c.length;++f)d+=c[f].pathLength;return d}static getPointAtLengthOfDataArray(c,d){let f,g=0,v=d.length;if(!v)return null;for(;g<v&&c>d[g].pathLength;)c-=d[g].pathLength,++g;if(g===v)return f=d[g-1].points.slice(-2),{x:f[0],y:f[1]};if(c<.01)return f=d[g].points.slice(0,2),{x:f[0],y:f[1]};const x=d[g],C=x.points;switch(x.command){case"L":return s.getPointOnLine(c,x.start.x,x.start.y,C[0],C[1]);case"C":return s.getPointOnCubicBezier((0,r.t2length)(c,s.getPathLength(d),_=>(0,r.getCubicArcLength)([x.start.x,C[0],C[2],C[4]],[x.start.y,C[1],C[3],C[5]],_)),x.start.x,x.start.y,C[0],C[1],C[2],C[3],C[4],C[5]);case"Q":return s.getPointOnQuadraticBezier((0,r.t2length)(c,s.getPathLength(d),_=>(0,r.getQuadraticArcLength)([x.start.x,C[0],C[2]],[x.start.y,C[1],C[3]],_)),x.start.x,x.start.y,C[0],C[1],C[2],C[3]);case"A":var y=C[0],h=C[1],w=C[2],E=C[3],M=C[4],b=C[5],m=C[6];return M+=b*c/x.pathLength,s.getPointOnEllipticalArc(y,h,w,E,M,m)}return null}static getPointOnLine(c,d,f,g,v,x,C){x=x??d,C=C??f;
13const y=this.getLineLength(d,f,g,v);if(y<1e-10)return{x:d,y:f};if(g===d)return{x,y:C+(v>f?c:-c)};const h=(v-f)/(g-d),w=Math.sqrt(c*c/(1+h*h))*(g<d?-1:1),E=h*w;if(Math.abs(C-f-h*(x-d))<1e-10)return{x:x+w,y:C+E};const M=((x-d)*(g-d)+(C-f)*(v-f))/(y*y),b=d+M*(g-d),m=f+M*(v-f),_=this.getLineLength(x,C,b,m),k=Math.sqrt(c*c-_*_),R=Math.sqrt(k*k/(1+h*h))*(g<d?-1:1),G=h*R;return{x:b+R,y:m+G}}static getPointOnCubicBezier(c,d,f,g,v,x,C,y,h){function w(k){return k*k*k}function E(k){return 3*k*k*(1-k)}function M(k){return 3*k*(1-k)*(1-k)}function b(k){return(1-k)*(1-k)*(1-k)}const m=y*w(c)+x*E(c)+g*M(c)+d*b(c),_=h*w(c)+C*E(c)+v*M(c)+f*b(c);return{x:m,y:_}}static getPointOnQuadraticBezier(c,d,f,g,v,x,C){function y(b){return b*b}function h(b){return 2*b*(1-b)}function w(b){return(1-b)*(1-b)}const E=x*y(c)+g*h(c)+d*w(c),M=C*y(c)+v*h(c)+f*w(c);return{x:E,y:M}}static getPointOnEllipticalArc(c,d,f,g,v,x){const C=Math.cos(x),y=Math.sin(x),h={x:f*Math.cos(v),y:g*Math.sin(v)};return{x:c+(h.x*C-h.y*y),y:d+(h.x*y+h.y*C)}}static parsePathData(c){if(!c)return[];let d=c;const f=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];d=d.replace(new RegExp(" ","g"),",");for(var g=0;g<f.length;g++)d=d.replace(new RegExp(f[g],"g"),"|"+f[g]);const v=d.split("|"),x=[],C=[];let y=0,h=0;const w=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let E;for(g=1;g<v.length;g++){let S=v[g],I=S.charAt(0);for(S=S.slice(1),C.length=0;E=w.exec(S);)C.push(E[0]);const N=[];for(let z=0,W=C.length;z<W;z++){if(C[z]==="00"){N.push(0,0);continue}const Q=parseFloat(C[z]);isNaN(Q)?N.push(0):N.push(Q)}for(;N.length>0&&!isNaN(N[0]);){let z="",W=[];const Q=y,tt=h;var M,b,m,_,k,R,G,T,D,A;switch(I){case"l":y+=N.shift(),h+=N.shift(),z="L",W.push(y,h);break;case"L":y=N.shift(),h=N.shift(),W.push(y,h);break;case"m":var B=N.shift(),Z=N.shift();if(y+=B,h+=Z,z="M",x.length>2&&x[x.length-1].command==="z"){for(let at=x.length-2;at>=0;at--)if(x[at].command==="M"){y=x[at].points[0]+B,h=x[at].points[1]+Z;break}}W.push(y,h),I="l";break;case"M":y=N.shift(),h=N.shift(),z="M",W.push(y,h),I="L";break;case"h":y+=N.shift(),z="L",W.push(y,h);break;case"H":y=N.shift(),z="L",W.push(y,h);break;case"v":h+=N.shift(),z="L",W.push(y,h);break;case"V":h=N.shift(),z="L",W.push(y,h);break;case"C":W.push(N.shift(),N.shift(),N.shift(),N.shift()),y=N.shift(),h=N.shift(),W.push(y,h);break;case"c":W.push(y+N.shift(),h+N.shift(),y+N.shift(),h+N.shift()),y+=N.shift(),h+=N.shift(),z="C",W.push(y,h);break;case"S":b=y,m=h,M=x[x.length-1],M.command==="C"&&(b=y+(y-M.points[2]),m=h+(h-M.points[3])),W.push(b,m,N.shift(),N.shift()),y=N.shift(),h=N.shift(),z="C",W.push(y,h);break;case"s":b=y,m=h,M=x[x.length-1],M.command==="C"&&(b=y+(y-M.points[2]),m=h+(h-M.points[3])),W.push(b,m,y+N.shift(),h+N.shift()),y+=N.shift(),h+=N.shift(),z="C",W.push(y,h);break;case"Q":W.push(N.shift(),N.shift()),y=N.shift(),h=N.shift(),W.push(y,h);break;case"q":W.push(y+N.shift(),h+N.shift()),y+=N.shift(),h+=N.shift(),z="Q",W.push(y,h);break;case"T":b=y,m=h,M=x[x.length-1],M.command==="Q"&&(b=y+(y-M.points[0]),m=h+(h-M.points[1])),y=N.shift(),h=N.shift(),z="Q",W.push(b,m,y,h);break;case"t":b=y,m=h,M=x[x.length-1],M.command==="Q"&&(b=y+(y-M.points[0]),m=h+(h-M.points[1])),y+=N.shift(),h+=N.shift(),z="Q",W.push(b,m,y,h);break;case"A":_=N.shift(),k=N.shift(),R=N.shift(),G=N.shift(),T=N.shift(),D=y,A=h,y=N.shift(),h=N.shift(),z="A",W=this.convertEndpointToCenterParameterization(D,A,y,h,G,T,_,k,R);break;case"a":_=N.shift(),k=N.shift(),R=N.shift(),G=N.shift(),T=N.shift(),D=y,A=h,y+=N.shift(),h+=N.shift(),z="A",W=this.convertEndpointToCenterParameterization(D,A,y,h,G,T,_,k,R);break}x.push({command:z||I,points:W,start:{x:Q,y:tt},pathLength:this.calcLength(Q,tt,z||I,W)})}(I==="z"||I==="Z")&&x.push({command:"z",points:[],start:void 0,pathLength:0})}return x}static calcLength(c,d,f,g){let v,x,C,y;const h=s;switch(f){case"L":return h.getLineLength(c,d,g[0],g[1]);case"C":return(0,r.getCubicArcLength)([c,g[0],g[2],g[4]],[d,g[1],g[3],g[5]],1);case"Q":return(0,r.getQuadraticArcLength)([c,g[0],g[2]],[d,g[1],g[3]],1);case"A":v=0;var w=g[4],E=g[5],M=g[4]+E,b=Math.PI/180;
13if(Math.abs(w-M)<b&&(b=Math.abs(w-M)),x=h.getPointOnEllipticalArc(g[0],g[1],g[2],g[3],w,0),E<0)for(y=w-b;y>M;y-=b)C=h.getPointOnEllipticalArc(g[0],g[1],g[2],g[3],y,0),v+=h.getLineLength(x.x,x.y,C.x,C.y),x=C;else for(y=w+b;y<M;y+=b)C=h.getPointOnEllipticalArc(g[0],g[1],g[2],g[3],y,0),v+=h.getLineLength(x.x,x.y,C.x,C.y),x=C;return C=h.getPointOnEllipticalArc(g[0],g[1],g[2],g[3],M,0),v+=h.getLineLength(x.x,x.y,C.x,C.y),v}return 0}static convertEndpointToCenterParameterization(c,d,f,g,v,x,C,y,h){const w=h*(Math.PI/180),E=Math.cos(w)*(c-f)/2+Math.sin(w)*(d-g)/2,M=-1*Math.sin(w)*(c-f)/2+Math.cos(w)*(d-g)/2,b=E*E/(C*C)+M*M/(y*y);b>1&&(C*=Math.sqrt(b),y*=Math.sqrt(b));let m=Math.sqrt((C*C*(y*y)-C*C*(M*M)-y*y*(E*E))/(C*C*(M*M)+y*y*(E*E)));v===x&&(m*=-1),isNaN(m)&&(m=0);const _=m*C*M/y,k=m*-y*E/C,R=(c+f)/2+Math.cos(w)*_-Math.sin(w)*k,G=(d+g)/2+Math.sin(w)*_+Math.cos(w)*k,T=function(N){return Math.sqrt(N[0]*N[0]+N[1]*N[1])},D=function(N,z){return(N[0]*z[0]+N[1]*z[1])/(T(N)*T(z))},A=function(N,z){return(N[0]*z[1]<N[1]*z[0]?-1:1)*Math.acos(D(N,z))},B=A([1,0],[(E-_)/C,(M-k)/y]),Z=[(E-_)/C,(M-k)/y],S=[(-1*E-_)/C,(-1*M-k)/y];let I=A(Z,S);return D(Z,S)<=-1&&(I=Math.PI),D(Z,S)>=1&&(I=0),x===0&&I>0&&(I=I-2*Math.PI),x===1&&I<0&&(I=I+2*Math.PI),[R,G,C,y,B,I,w,x]}}return Rh.Path=s,s.prototype.className="Path",s.prototype._attrsAffectingSize=["data"],(0,n._registerNode)(s),t.Factory.addGetterSetter(s,"data"),Rh}var F4;function NS(){if(F4)return Ih;F4=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.Arrow=void 0;const t=Xe(),e=F9(),n=qe(),r=He(),s=hm();class o extends e.Line{_sceneFunc(d){super._sceneFunc(d);const f=Math.PI*2,g=this.points();let v=g;const x=this.tension()!==0&&g.length>4;x&&(v=this.getTensionPoints());const C=this.pointerLength(),y=g.length;let h,w;if(x){const b=[v[v.length-4],v[v.length-3],v[v.length-2],v[v.length-1],g[y-2],g[y-1]],m=s.Path.calcLength(v[v.length-4],v[v.length-3],"C",b),_=s.Path.getPointOnQuadraticBezier(Math.min(1,1-C/m),b[0],b[1],b[2],b[3],b[4],b[5]);h=g[y-2]-_.x,w=g[y-1]-_.y}else h=g[y-2]-g[y-4],w=g[y-1]-g[y-3];const E=(Math.atan2(w,h)+f)%f,M=this.pointerWidth();this.pointerAtEnding()&&(d.save(),d.beginPath(),d.translate(g[y-2],g[y-1]),d.rotate(E),d.moveTo(0,0),d.lineTo(-C,M/2),d.lineTo(-C,-M/2),d.closePath(),d.restore(),this.__fillStroke(d)),this.pointerAtBeginning()&&(d.save(),d.beginPath(),d.translate(g[0],g[1]),x?(h=(v[0]+v[2])/2-g[0],w=(v[1]+v[3])/2-g[1]):(h=g[2]-g[0],w=g[3]-g[1]),d.rotate((Math.atan2(-w,-h)+f)%f),d.moveTo(0,0),d.lineTo(-C,M/2),d.lineTo(-C,-M/2),d.closePath(),d.restore(),this.__fillStroke(d))}__fillStroke(d){const f=this.dashEnabled();f&&(this.attrs.dashEnabled=!1,d.setLineDash([])),d.fillStrokeShape(this),f&&(this.attrs.dashEnabled=!0)}getSelfRect(){const d=super.getSelfRect(),f=this.pointerWidth()/2;return{x:d.x,y:d.y-f,width:d.width,height:d.height+f*2}}}return Ih.Arrow=o,o.prototype.className="Arrow",(0,r._registerNode)(o),t.Factory.addGetterSetter(o,"pointerLength",10,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(o,"pointerWidth",10,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(o,"pointerAtBeginning",!1),t.Factory.addGetterSetter(o,"pointerAtEnding",!0),Ih}var Fh={},D4;function RS(){if(D4)return Fh;D4=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.Circle=void 0;const t=Xe(),e=zr(),n=qe(),r=He();class s extends e.Shape{_sceneFunc(c){c.beginPath(),c.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),c.closePath(),c.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(c){this.radius()!==c/2&&this.radius(c/2)}setHeight(c){this.radius()!==c/2&&this.radius(c/2)}}return Fh.Circle=s,s.prototype._centroid=!0,s.prototype.className="Circle",s.prototype._attrsAffectingSize=["radius"],(0,r._registerNode)(s),t.Factory.addGetterSetter(s,"radius",0,(0,n.getNumberValidator)()),Fh}var Dh={},j4;function FS(){if(j4)return Dh;j4=1,Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.Ellipse=void 0;const t=Xe(),e=zr(),n=qe(),r=He();class s extends e.Shape{_sceneFunc(c){const d=this.radiusX(),f=this.radiusY();c.beginPath(),c.save(),d!==f&&c.scale(1,f/d),c.arc(0,0,d,0,Math.PI*2,!1),c.restore(
13),c.closePath(),c.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(c){this.radiusX(c/2)}setHeight(c){this.radiusY(c/2)}}return Dh.Ellipse=s,s.prototype.className="Ellipse",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,r._registerNode)(s),t.Factory.addComponentsGetterSetter(s,"radius",["x","y"]),t.Factory.addGetterSetter(s,"radiusX",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(s,"radiusY",0,(0,n.getNumberValidator)()),Dh}var jh={},B4;function DS(){if(B4)return jh;B4=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.Image=void 0;const t=nr(),e=Xe(),n=zr(),r=He(),s=qe();class o extends n.Shape{constructor(d){super(d),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",f=>{this._removeImageLoad(f.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const d=this.image();d&&d.complete||d&&d.readyState===4||d&&d.addEventListener&&d.addEventListener("load",this._loadListener)}_removeImageLoad(d){d&&d.removeEventListener&&d.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const d=!!this.cornerRadius(),f=this.hasShadow();return d&&f?!0:super._useBufferCanvas(!0)}_sceneFunc(d){const f=this.getWidth(),g=this.getHeight(),v=this.cornerRadius(),x=this.attrs.image;let C;if(x){const y=this.attrs.cropWidth,h=this.attrs.cropHeight;y&&h?C=[x,this.cropX(),this.cropY(),y,h,0,0,f,g]:C=[x,0,0,f,g]}(this.hasFill()||this.hasStroke()||v)&&(d.beginPath(),v?t.Util.drawRoundedRectPath(d,f,g,v):d.rect(0,0,f,g),d.closePath(),d.fillStrokeShape(this)),x&&(v&&d.clip(),d.drawImage.apply(d,C))}_hitFunc(d){const f=this.width(),g=this.height(),v=this.cornerRadius();d.beginPath(),v?t.Util.drawRoundedRectPath(d,f,g,v):d.rect(0,0,f,g),d.closePath(),d.fillStrokeShape(this)}getWidth(){var d,f;return(d=this.attrs.width)!==null&&d!==void 0?d:(f=this.image())===null||f===void 0?void 0:f.width}getHeight(){var d,f;return(d=this.attrs.height)!==null&&d!==void 0?d:(f=this.image())===null||f===void 0?void 0:f.height}static fromURL(d,f,g=null){const v=t.Util.createImageElement();v.onload=function(){const x=new o({image:v});f(x)},v.onerror=g,v.crossOrigin="Anonymous",v.src=d}}return jh.Image=o,o.prototype.className="Image",(0,r._registerNode)(o),e.Factory.addGetterSetter(o,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4)),e.Factory.addGetterSetter(o,"image"),e.Factory.addComponentsGetterSetter(o,"crop",["x","y","width","height"]),e.Factory.addGetterSetter(o,"cropX",0,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(o,"cropY",0,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(o,"cropWidth",0,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(o,"cropHeight",0,(0,s.getNumberValidator)()),jh}var Oc={},H4;function jS(){if(H4)return Oc;H4=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.Tag=Oc.Label=void 0;const t=Xe(),e=zr(),n=um(),r=qe(),s=He(),o=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],c="Change.konva",d="none",f="up",g="r
13ight",v="down",x="left",C=o.length;class y extends n.Group{constructor(E){super(E),this.on("add.konva",function(M){this._addListeners(M.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(E){let M=this,b;const m=function(){M._sync()};for(b=0;b<C;b++)E.on(o[b]+c,m)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let E=this.getText(),M=this.getTag(),b,m,_,k,R,G,T;if(E&&M){switch(b=E.width(),m=E.height(),_=M.pointerDirection(),k=M.pointerWidth(),T=M.pointerHeight(),R=0,G=0,_){case f:R=b/2,G=-1*T;break;case g:R=b+k,G=m/2;break;case v:R=b/2,G=m+T;break;case x:R=-1*k,G=m/2;break}M.setAttrs({x:-1*R,y:-1*G,width:b,height:m}),E.setAttrs({x:-1*R,y:-1*G})}}}Oc.Label=y,y.prototype.className="Label",(0,s._registerNode)(y);class h extends e.Shape{_sceneFunc(E){const M=this.width(),b=this.height(),m=this.pointerDirection(),_=this.pointerWidth(),k=this.pointerHeight(),R=this.cornerRadius();let G=0,T=0,D=0,A=0;typeof R=="number"?G=T=D=A=Math.min(R,M/2,b/2):(G=Math.min(R[0]||0,M/2,b/2),T=Math.min(R[1]||0,M/2,b/2),A=Math.min(R[2]||0,M/2,b/2),D=Math.min(R[3]||0,M/2,b/2)),E.beginPath(),E.moveTo(G,0),m===f&&(E.lineTo((M-_)/2,0),E.lineTo(M/2,-1*k),E.lineTo((M+_)/2,0)),E.lineTo(M-T,0),E.arc(M-T,T,T,Math.PI*3/2,0,!1),m===g&&(E.lineTo(M,(b-k)/2),E.lineTo(M+_,b/2),E.lineTo(M,(b+k)/2)),E.lineTo(M,b-A),E.arc(M-A,b-A,A,0,Math.PI/2,!1),m===v&&(E.lineTo((M+_)/2,b),E.lineTo(M/2,b+k),E.lineTo((M-_)/2,b)),E.lineTo(D,b),E.arc(D,b-D,D,Math.PI/2,Math.PI,!1),m===x&&(E.lineTo(0,(b+k)/2),E.lineTo(-1*_,b/2),E.lineTo(0,(b-k)/2)),E.lineTo(0,G),E.arc(G,G,G,Math.PI,Math.PI*3/2,!1),E.closePath(),E.fillStrokeShape(this)}getSelfRect(){let E=0,M=0,b=this.pointerWidth(),m=this.pointerHeight(),_=this.pointerDirection(),k=this.width(),R=this.height();return _===f?(M-=m,R+=m):_===v?R+=m:_===x?(E-=b*1.5,k+=b):_===g&&(k+=b*1.5),{x:E,y:M,width:k,height:R}}}return Oc.Tag=h,h.prototype.className="Tag",(0,s._registerNode)(h),t.Factory.addGetterSetter(h,"pointerDirection",d),t.Factory.addGetterSetter(h,"pointerWidth",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(h,"pointerHeight",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(h,"cornerRadius",0,(0,r.getNumberOrArrayOfNumbersValidator)(4)),Oc}var Bh={},z4;function D9(){if(z4)return Bh;z4=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.Rect=void 0;const t=Xe(),e=zr(),n=He(),r=nr(),s=qe();class o extends e.Shape{_sceneFunc(d){const f=this.cornerRadius(),g=this.width(),v=this.height();d.beginPath(),f?r.Util.drawRoundedRectPath(d,g,v,f):d.rect(0,0,g,v),d.closePath(),d.fillStrokeShape(this)}}return Bh.Rect=o,o.prototype.className="Rect",(0,n._registerNode)(o),t.Factory.addGetterSetter(o,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4)),Bh}var Hh={},G4;function BS(){if(G4)return Hh;G4=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.RegularPolygon=void 0;const t=Xe(),e=zr(),n=qe(),r=He();class s extends e.Shape{_sceneFunc(c){const d=this._getPoints();c.beginPath(),c.moveTo(d[0].x,d[0].y);for(let f=1;f<d.length;f++)c.lineTo(d[f].x,d[f].y);c.closePath(),c.fillStrokeShape(this)}_getPoints(){const c=this.attrs.sides,d=this.attrs.radius||0,f=[];for(let g=0;g<c;g++)f.push({x:d*Math.sin(g*2*Math.PI/c),y:-1*d*Math.cos(g*2*Math.PI/c)});return f}getSelfRect(){const c=this._getPoints();let d=c[0].x,f=c[0].y,g=c[0].x,v=c[0].y;return c.forEach(x=>{d=Math.min(d,x.x),f=Math.max(f,x.x),g=Math.min(g,x.y),v=Math.max(v,x.y)}),{x:d,y:g,width:f-d,height:v-g}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(c){this.radius(c/2)}setHeight(c){this.radius(c/2)}}return Hh.RegularPolygon=s,s.prototype.className="RegularPolygon",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radius"],(0,r._registerNode)(s),t.Factory.addGetterSetter(s,"radius",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(s,"sides",0,(0,n.getNumberValidator)()),Hh}var zh={},U4;function HS(){if(U4)return zh;U4=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.Ring=void 0;const t=Xe(),e=zr(),n=qe(),r=He(),s=Math.PI*2;class o extends e.Shape{_sceneFunc(d){d.beginPath(),d.arc(0,0,this.innerRadius(),0,s,!1),d.moveTo(this.outerRadius(),0
13),d.arc(0,0,this.outerRadius(),s,0,!0),d.closePath(),d.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(d){this.outerRadius(d/2)}setHeight(d){this.outerRadius(d/2)}}return zh.Ring=o,o.prototype.className="Ring",o.prototype._centroid=!0,o.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,r._registerNode)(o),t.Factory.addGetterSetter(o,"innerRadius",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(o,"outerRadius",0,(0,n.getNumberValidator)()),zh}var Gh={},W4;function zS(){if(W4)return Gh;W4=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.Sprite=void 0;const t=Xe(),e=zr(),n=dm(),r=qe(),s=He();class o extends e.Shape{constructor(d){super(d),this._updated=!0,this.anim=new n.Animation(()=>{const f=this._updated;return this._updated=!1,f}),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(d){const f=this.animation(),g=this.frameIndex(),v=g*4,x=this.animations()[f],C=this.frameOffsets(),y=x[v+0],h=x[v+1],w=x[v+2],E=x[v+3],M=this.image();if((this.hasFill()||this.hasStroke())&&(d.beginPath(),d.rect(0,0,w,E),d.closePath(),d.fillStrokeShape(this)),M)if(C){const b=C[f],m=g*2;d.drawImage(M,y,h,w,E,b[m+0],b[m+1],w,E)}else d.drawImage(M,y,h,w,E,0,0,w,E)}_hitFunc(d){const f=this.animation(),g=this.frameIndex(),v=g*4,x=this.animations()[f],C=this.frameOffsets(),y=x[v+2],h=x[v+3];if(d.beginPath(),C){const w=C[f],E=g*2;d.rect(w[E+0],w[E+1],y,h)}else d.rect(0,0,y,h);d.closePath(),d.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const d=this;this.interval=setInterval(function(){d._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const d=this.getLayer();this.anim.setLayers(d),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const d=this.frameIndex(),f=this.animation(),g=this.animations(),v=g[f],x=v.length/4;d<x-1?this.frameIndex(d+1):this.frameIndex(0)}}return Gh.Sprite=o,o.prototype.className="Sprite",(0,s._registerNode)(o),t.Factory.addGetterSetter(o,"animation"),t.Factory.addGetterSetter(o,"animations"),t.Factory.addGetterSetter(o,"frameOffsets"),t.Factory.addGetterSetter(o,"image"),t.Factory.addGetterSetter(o,"frameIndex",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"frameRate",17,(0,r.getNumberValidator)()),t.Factory.backCompat(o,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),Gh}var Uh={},V4;function GS(){if(V4)return Uh;V4=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.Star=void 0;const t=Xe(),e=zr(),n=qe(),r=He();class s extends e.Shape{_sceneFunc(c){const d=this.innerRadius(),f=this.outerRadius(),g=this.numPoints();c.beginPath(),c.moveTo(0,0-f);for(let v=1;v<g*2;v++){const x=v%2===0?f:d,C=x*Math.sin(v*Math.PI/g),y=-1*x*Math.cos(v*Math.PI/g);c.lineTo(C,y)}c.closePath(),c.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(c){this.outerRadius(c/2)}setHeight(c){this.outerRadius(c/2)}}return Uh.Star=s,s.prototype.className="Star",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,r._registerNode)(s),t.Factory.addGetterSetter(s,"numPoints",5,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(s,"innerRadius",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(s,"outerRadius",0,(0,n.getNumberValidator)()),Uh}var Vu={},Y4;function j9(){if(Y4)return Vu;Y4=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.Text=void 0,Vu.stringToArray=c;const t=nr(),e=Xe(),n=zr(),r=He(),s=qe(),o=He();function c(q){return[...q].reduce((rt,ot,ft,it)=>{if(new RegExp("\\p{Emoji}","u").test(ot)){const Y=it[ft+1];Y&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(Y)?(rt.push(ot+Y),it[ft+1]=""):rt.push(ot)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(ot+(it[ft+1]||""))?rt.push(ot+it[ft+1]):ft>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(ot)?rt[rt.length-1]+=ot:ot&&rt.push(ot);return rt},[])}const d="auto",f="center",g="inherit",v="justify",x="Change.konva",C="2d",y="-",h="left",w="text",E="Text",M="top",b="bottom",m="middle",_="normal",k="px ",R=" ",G="r
13ight",T="rtl",D="word",A="char",B="none",Z="…",S=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],I=S.length;function N(q){return q.split(",").map(rt=>{rt=rt.trim();const ot=rt.indexOf(" ")>=0,ft=rt.indexOf('"')>=0||rt.indexOf("'")>=0;return ot&&!ft&&(rt=`"${rt}"`),rt}).join(", ")}let z;function W(){return z||(z=t.Util.createCanvasElement().getContext(C),z)}function Q(q){q.fillText(this._partialText,this._partialTextX,this._partialTextY)}function tt(q){q.setAttr("miterLimit",2),q.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function at(q){return q=q||{},!q.fillLinearGradientColorStops&&!q.fillRadialGradientColorStops&&!q.fillPatternImage&&(q.fill=q.fill||"black"),q}class X extends n.Shape{constructor(rt){super(at(rt)),this._partialTextX=0,this._partialTextY=0;for(let ot=0;ot<I;ot++)this.on(S[ot]+x,this._setTextData);this._setTextData()}_sceneFunc(rt){const ot=this.textArr,ft=ot.length;if(!this.text())return;let it=this.padding(),Y=this.fontSize(),J=this.lineHeight()*Y,lt=this.verticalAlign(),dt=this.direction(),yt=0,gt=this.align(),Dt=this.getWidth(),Ht=this.letterSpacing(),It=this.fill(),qt=this.textDecoration(),Bt=qt.indexOf("underline")!==-1,ee=qt.indexOf("line-through")!==-1,Kt;dt=dt===g?rt.direction:dt;let Yt=J/2,oe=m;if(r.Konva._fixTextRendering){const jt=this.measureSize("M");oe="alphabetic",Yt=(jt.fontBoundingBoxAscent-jt.fontBoundingBoxDescent)/2+J/2}var ne=0,ue=0;for(dt===T&&rt.setAttr("direction",dt),rt.setAttr("font",this._getContextFont()),rt.setAttr("textBaseline",oe),rt.setAttr("textAlign",h),lt===m?yt=(this.getHeight()-ft*J-it*2)/2:lt===b&&(yt=this.getHeight()-ft*J-it*2),rt.translate(it,yt+it),Kt=0;Kt<ft;Kt++){var ne=0,ue=0,Qt=ot[Kt],$t=Qt.text,we=Qt.width,Fe=Qt.lastInParagraph,_e,pn;if(rt.save(),gt===G?ne+=Dt-we-it*2:gt===f&&(ne+=(Dt-we-it*2)/2),Bt){rt.save(),rt.beginPath();const Se=r.Konva._fixTextRendering?Math.round(Y/4):Math.round(Y/2),xe=ne,Ge=Yt+ue+Se;rt.moveTo(xe,Ge),_e=$t.split(" ").length-1,pn=gt===v&&!Fe?Dt-it*2:we,rt.lineTo(xe+Math.round(pn),Ge),rt.lineWidth=Y/15;const an=this._getLinearGradient();rt.strokeStyle=an||It,rt.stroke(),rt.restore()}if(ee){rt.save(),rt.beginPath();const Se=r.Konva._fixTextRendering?-Math.round(Y/4):0;rt.moveTo(ne,Yt+ue+Se),_e=$t.split(" ").length-1,pn=gt===v&&!Fe?Dt-it*2:we,rt.lineTo(ne+Math.round(pn),Yt+ue+Se),rt.lineWidth=Y/15;const xe=this._getLinearGradient();rt.strokeStyle=xe||It,rt.stroke(),rt.restore()}if(dt!==T&&(Ht!==0||gt===v)){_e=$t.split(" ").length-1;const Se=c($t);for(let xe=0;xe<Se.length;xe++){const Ge=Se[xe];Ge===" "&&!Fe&&gt===v&&(ne+=(Dt-it*2-we)/_e),this._partialTextX=ne,this._partialTextY=Yt+ue,this._partialText=Ge,rt.fillStrokeShape(this),ne+=this.measureSize(Ge).width+Ht}}else Ht!==0&&rt.setAttr("letterSpacing",`${Ht}px`),this._partialTextX=ne,this._partialTextY=Yt+ue,this._partialText=$t,rt.fillStrokeShape(this);rt.restore(),ft>1&&(Yt+=J)}}_hitFunc(rt){const ot=this.getWidth(),ft=this.getHeight();rt.beginPath(),rt.rect(0,0,ot,ft),rt.closePath(),rt.fillStrokeShape(this)}setText(rt){const ot=t.Util._isString(rt)?rt:rt==null?"":rt+"";return this._setAttr(w,ot),this}getWidth(){return this.attrs.width===d||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===d||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return t.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(rt){var ot,ft,it,Y,J,lt,dt,yt,gt,Dt,Ht;let It=W(),qt=this.fontSize(),Bt;It.save(),It.font=this._getContextFont(),Bt=It.measureText(rt),It.restore();const ee=qt/100;return{actualBoundingBoxAscent:(ot=Bt.actualBoundingBoxAscent)!==null&&ot!==void 0?ot:71.58203125*ee,actualBoundingBoxDescent:(ft=Bt.actualBoundingBoxDescent)!==null&&ft!==void 0?ft:0,actualBoundingBoxLeft:(it=Bt.actualBoundingBoxLeft)!==null&&it!==void 0?it:-7.421875*ee,actualBoundingBoxRight:(Y=Bt.actualBoundingBoxRight)!==null&&Y!==void 0?Y:75.732421875*ee,alphabeticBaseline:(J=Bt.alphabeticBaseline)!==null&&J!==void 0?J:0,emHeightAscent:(lt=Bt.emHeightAscent)!==null&&lt!==void 0?lt:100*ee,emHeightDescent:(dt=Bt.emHeightDescent)!==null&&dt!==void 0?dt:-20*ee,fontBoundingBoxAscent:(yt=Bt.fontBoundingBoxAscent)!==null&&yt!==void 0?yt:91*ee,fontBoundingBoxDescent:(gt=Bt.fontBoundingBoxDescent)!==null&&gt!==void 0?gt:21*ee,hangingBaseline:(Dt=Bt.hangingBaseline)!==null&&Dt!==void 0?Dt:72.80000305175781*ee,ideographicBaseline:(Ht=Bt.ideographicBaseline)!==null&&Ht!==void 0?Ht:-21*ee,width:Bt.width,height:qt}}_getContextFont(){return this.fontStyle()+R+this.fontVariant()+R+(this.fontSize()+k)+N(this.fontFamily())}_addTextLine(rt){this.align()===v&&(rt=rt.trim());const ot=this._getTextWidth(rt);return this.textArr.push({text:rt,width:ot,lastInParagraph:!1})}_getTextWidth(rt){const ot=this.letterSpacing(),ft=rt.length;return W().measureText(rt).width+ot*ft}_setTextData(){let rt=this.text().split(`
14`),ot=+this.fontSize(),ft=0,it=this.lineHeight()*ot,Y=this.attrs.width,J=this.attrs.height,lt=Y!==d&&Y!==void 0,dt=J!==d&&J!==void 0,yt=this.padding(),gt=Y-yt*2,Dt=J-yt*2,Ht=0,It=this.wrap(),qt=It!==B,Bt=It!==A&&qt,ee=this.ellipsis();this.textArr=[],W().font=this._getContextFont();const Kt=ee?this._getTextWidth(Z):0;for(let Yt=0,oe=rt.length;Yt<oe;++Yt){let ne=rt[Yt],ue=this._getTextWidth(ne);if(lt&&ue>gt)for(;ne.length>0;){let Qt=0,$t=c(ne).length,we="",Fe=0;for(;Qt<$t;){const _e=Qt+$t>>>1,pn=c(ne),jt=pn.slice(0,_e+1).join(""),se=this._getTextWidth(jt);(ee&&dt&&Ht+it>Dt?se+Kt:se)<=gt?(Qt=_e+1,we=jt,Fe=se):$t=_e}if(we){if(Bt){const _e=c(ne),pn=c(we),jt=_e[pn.length],se=jt===R||jt===y;let Se;if(se&&Fe<=gt)Se=pn.length;else{const xe=pn.lastIndexOf(R),Ge=pn.lastIndexOf(y);Se=Math.max(xe,Ge)+1}Se>0&&(Qt=Se,we=_e.slice(0,Qt).join(""),Fe=this._getTextWidth(we))}if(we=we.trimRight(),this._addTextLine(we),ft=Math.max(ft,Fe),Ht+=it,this._shouldHandleEllipsis(Ht)){this._tryToAddEllipsisToLastLine();break}if(ne=c(ne).slice(Qt).join("").trimLeft(),ne.length>0&&(ue=this._getTextWidth(ne),ue<=gt)){this._addTextLine(ne),Ht+=it,ft=Math.max(ft,ue);break}}else break}else this._addTextLine(ne),Ht+=it,ft=Math.max(ft,ue),this._shouldHandleEllipsis(Ht)&&Yt<oe-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),dt&&Ht+it>Dt)break}this.textHeight=ot,this.textWidth=ft}_shouldHandleEllipsis(rt){const ot=+this.fontSize(),ft=this.lineHeight()*ot,it=this.attrs.height,Y=it!==d&&it!==void 0,J=this.padding(),lt=it-J*2;return this.wrap()===B||Y&&rt+ft>lt}_tryToAddEllipsisToLastLine(){const rt=this.attrs.width,ot=rt!==d&&rt!==void 0,ft=this.padding(),it=rt-ft*2,Y=this.ellipsis(),J=this.textArr[this.textArr.length-1];!J||!Y||(ot&&(this._getTextWidth(J.text+Z)<it||(J.text=J.text.slice(0,J.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(J.text+Z))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const rt=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,ot=this.hasShadow();return rt&&ot?!0:super._useBufferCanvas()}}return Vu.Text=X,X.prototype._fillFunc=Q,X.prototype._strokeFunc=tt,X.prototype.className=E,X.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,o._registerNode)(X),e.Factory.overWriteSetter(X,"width",(0,s.getNumberOrAutoValidator)()),e.Factory.overWriteSetter(X,"height",(0,s.getNumberOrAutoValidator)()),e.Factory.addGetterSetter(X,"direction",g),e.Factory.addGetterSetter(X,"fontFamily","Arial"),e.Factory.addGetterSetter(X,"fontSize",12,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(X,"fontStyle",_),e.Factory.addGetterSetter(X,"fontVariant",_),e.Factory.addGetterSetter(X,"padding",0,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(X,"align",h),e.Factory.addGetterSetter(X,"verticalAlign",M),e.Factory.addGetterSetter(X,"lineHeight",1,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(X,"wrap",D),e.Factory.addGetterSetter(X,"ellipsis",!1,(0,s.getBooleanValidator)()),e.Factory.addGetterSetter(X,"letterSpacing",0,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(X,"text","",(0,s.getStringValidator)()),e.Factory.addGetterSetter(X,"textDecoration",""),Vu}var Wh={},Z4;function US(){if(Z4)return Wh;Z4=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.TextPath=void 0;const t=nr(),e=Xe(),n=zr(),r=hm(),s=j9(),o=qe(),c=He(),d="",f="normal";function g(C){C.fillText(this.partialText,0,0)}function v(C){C.strokeText(this.partialText,0,0)}class x extends n.Shape{constructor(y){super(y),this.dummyCanvas=t.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncCh
14ange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return r.Path.getPathLength(this.dataArray)}_getPointAtLength(y){if(!this.attrs.data)return null;const h=this.pathLength;return y-1>h?null:r.Path.getPointAtLengthOfDataArray(y,this.dataArray)}_readDataAttribute(){this.dataArray=r.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(y){y.setAttr("font",this._getContextFont()),y.setAttr("textBaseline",this.textBaseline()),y.setAttr("textAlign","left"),y.save();const h=this.textDecoration(),w=this.fill(),E=this.fontSize(),M=this.glyphInfo;h==="underline"&&y.beginPath();for(let b=0;b<M.length;b++){y.save();const m=M[b].p0;y.translate(m.x,m.y),y.rotate(M[b].rotation),this.partialText=M[b].text,y.fillStrokeShape(this),h==="underline"&&(b===0&&y.moveTo(0,E/2+1),y.lineTo(E,E/2+1)),y.restore()}h==="underline"&&(y.strokeStyle=w,y.lineWidth=E/20,y.stroke()),y.restore()}_hitFunc(y){y.beginPath();const h=this.glyphInfo;if(h.length>=1){const w=h[0].p0;y.moveTo(w.x,w.y)}for(let w=0;w<h.length;w++){const E=h[w].p1;y.lineTo(E.x,E.y)}y.setAttr("lineWidth",this.fontSize()),y.setAttr("strokeStyle",this.colorKey),y.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return t.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(y){return s.Text.prototype.setText.call(this,y)}_getContextFont(){return s.Text.prototype._getContextFont.call(this)}_getTextSize(y){const h=this.dummyCanvas.getContext("2d");h.save(),h.font=this._getContextFont();const w=h.measureText(y);return h.restore(),{width:w.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:y,height:h}=this._getTextSize(this.attrs.text);if(this.textWidth=y,this.textHeight=h,this.glyphInfo=[],!this.attrs.data)return null;const w=this.letterSpacing(),E=this.align(),M=this.kerningFunc(),b=Math.max(this.textWidth+((this.attrs.text||"").length-1)*w,0);let m=0;E==="center"&&(m=Math.max(0,this.pathLength/2-b/2)),E==="right"&&(m=Math.max(0,this.pathLength-b));const _=(0,s.stringToArray)(this.text());let k=m;for(let R=0;R<_.length;R++){const G=this._getPointAtLength(k);if(!G)return;let T=this._getTextSize(_[R]).width+w;if(_[R]===" "&&E==="justify"){const I=this.text().split(" ").length-1;T+=(this.pathLength-b)/I}const D=this._getPointAtLength(k+T);if(!D)return;const A=r.Path.getLineLength(G.x,G.y,D.x,D.y);let B=0;if(M)try{B=M(_[R-1],_[R])*this.fontSize()}catch{B=0}G.x+=B,D.x+=B,this.textWidth+=B;const Z=r.Path.getPointOnLine(B+A/2,G.x,G.y,D.x,D.y),S=Math.atan2(D.y-G.y,D.x-G.x);this.glyphInfo.push({transposeX:Z.x,transposeY:Z.y,text:_[R],rotation:S,p0:G,p1:D}),k+=T}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const y=[];this.glyphInfo.forEach(function(k){y.push(k.p0.x),y.push(k.p0.y),y.push(k.p1.x),y.push(k.p1.y)});let h=y[0]||0,w=y[0]||0,E=y[1]||0,M=y[1]||0,b,m;for(let k=0;k<y.length/2;k++)b=y[k*2],m=y[k*2+1],h=Math.min(h,b),w=Math.max(w,b),E=Math.min(E,m),M=Math.max(M,m);const _=this.fontSize();return{x:h-_/2,y:E-_/2,width:w-h+_,height:M-E+_}}destroy(){return t.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}return Wh.TextPath=x,x.prototype._fillFunc=g,x.prototype._strokeFunc=v,x.prototype._fillFuncHit=g,x.prototype._strokeFuncHit=v,x.prototype.className="TextPath",x.prototype._attrsAffectingSize=["text","fontSize","data"],(0,c._registerNode)(x),e.Factory.addGetterSetter(x,"data"),e.Factory.addGetterSetter(x,"fontFamily","Arial"),e.Factory.addGetterSetter(x,"fontSize",12,(0,o.getNumberValidator)()),e.Factory.addGetterSetter(x,"fontStyle",f),e.Factory.addGetterSetter(x,"align","left"),e.Factory.addGetterSetter(x,"letterSpacing",0,(0,o.getNumberValidator)()),e.Factory.addGetterSetter(x,"textBaseline","middle"),e.Factory.addGetterSetter(x,"fontVariant",f),e.Factory.addGetterSetter(x,"text",d),e.Factory.addGetterSetter(x,"textDecoration",""),e.Factory.addGetterSetter(x,"kerningFunc",void 0),Wh}var Vh={},K4;function WS(){if(K4)return Vh;K4=1,Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.Transformer=void 0;const t=nr(),e=Xe(),n=ur(),r=zr(),s=D9(),o=um(),c=He(),d=qe(),f=He(),g="tr-konva",v=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(T=>T+`.${g}`).join(" "),x="nodesRect",C=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],y={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},h="ontouchstart"in c.Konva._global;function w(T,D,A){if(T==="rotater")return A;
14D+=t.Util.degToRad(y[T]||0);const B=(t.Util.radToDeg(D)%360+360)%360;return t.Util._inRange(B,315+22.5,360)||t.Util._inRange(B,0,22.5)?"ns-resize":t.Util._inRange(B,45-22.5,45+22.5)?"nesw-resize":t.Util._inRange(B,90-22.5,90+22.5)?"ew-resize":t.Util._inRange(B,135-22.5,135+22.5)?"nwse-resize":t.Util._inRange(B,180-22.5,180+22.5)?"ns-resize":t.Util._inRange(B,225-22.5,225+22.5)?"nesw-resize":t.Util._inRange(B,270-22.5,270+22.5)?"ew-resize":t.Util._inRange(B,315-22.5,315+22.5)?"nwse-resize":(t.Util.error("Transformer has unknown angle for cursor detection: "+B),"pointer")}const E=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function M(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 b(T,D,A){const B=A.x+(T.x-A.x)*Math.cos(D)-(T.y-A.y)*Math.sin(D),Z=A.y+(T.x-A.x)*Math.sin(D)+(T.y-A.y)*Math.cos(D);return{...T,rotation:T.rotation+D,x:B,y:Z}}function m(T,D){const A=M(T);return b(T,D,A)}function _(T,D,A){let B=D;for(let Z=0;Z<T.length;Z++){const S=c.Konva.getAngle(T[Z]),I=Math.abs(S-D)%(Math.PI*2);Math.min(I,Math.PI*2-I)<A&&(B=S)}return B}let k=0;class R extends o.Group{constructor(D){super(D),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(v,this.update),this.getNode()&&this.update()}attachTo(D){return this.setNode(D),this}setNode(D){return t.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([D])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return g+this._id}setNodes(D=[]){this._nodes&&this._nodes.length&&this.detach();const A=D.filter(B=>B.isAncestorOf(this)?(t.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=D=A,D.length===1&&this.useSingleNodeRotation()?this.rotation(D[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(B=>{const Z=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(B._attrsAffectingSize.length){const S=B._attrsAffectingSize.map(I=>I+"Change."+this._getEventNamespace()).join(" ");B.on(S,Z)}B.on(C.map(S=>S+`.${this._getEventNamespace()}`).join(" "),Z),B.on(`absoluteTransformChange.${this._getEventNamespace()}`,Z),this._proxyDrag(B)}),this._resetTransformCache(),this.findOne(".top-left")&&this.update(),this}_proxyDrag(D){let A;D.on(`dragstart.${this._getEventNamespace()}`,B=>{A=D.getAbsolutePosition(),!this.isDragging()&&D!==this.findOne(".back")&&this.startDrag(B,!1)}),D.on(`dragmove.${this._getEventNamespace()}`,B=>{if(!A)return;const Z=D.getAbsolutePosition(),S=Z.x-A.x,I=Z.y-A.y;this.nodes().forEach(N=>{if(N===D||N.isDragging())return;const z=N.getAbsolutePosition();N.setAbsolutePosition({x:z.x+S,y:z.y+I}),N.startDrag(B)}),A=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(D=>{D.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(x),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(x,this.__getNodeRect)}__getNodeShape(D,A=this.rotation(),B){const Z=D.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),S=D.getAbsoluteScale(B),I=D.getAbsolutePosition(B),N=Z.x*S.x-D.offsetX()*S.x,z=Z.y*S.y-D.offsetY()*S.y,W=(c.Konva.getAngle(D.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),Q={x:I.x+N*Math.cos(W)+z*Math.sin(-W),y:I.y+z*Math.cos(W)+N*Math.sin(W),width:Z.width*S.x,height:Z.height*S.y,rotation:W};return b(Q,-c.Konva.getAngle(A),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const D=[];this.nodes().map(z=>{const W=z.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),Q=[{x:W.x,y:W.y},{x:W.x+W.width,y:W.y},{x:W.x+W.width,y:W.y+W.height},{x:W.x,y:W.y+W.height}],tt=z.getAbsoluteTransform();Q.forEach(function(at){const X=tt.point(at);D.push(X)})});const A=new t.Transform;A.rotate(-c.Konva.getAngle(this.rotation()));let B=1/0,Z=1/0,S=-1/0,I=-1/0;D.forEach(function(z){const W=A.point(z);B===void 0&&(B=S=W.x,Z=I=W.y),B=Math.min(B,W.x),Z=Math.min(Z,W.y),S=Math.max(S,W.x),I=Math.max(I,W.y)}),A.invert();const N=A.point({x:B,y:Z});return{x:N.x,y:N.y,width:S-B,height:I-Z,rotation:c.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}
14getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),E.forEach(D=>{this._createAnchor(D)}),this._createAnchor("rotater")}_createAnchor(D){const A=new s.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:D+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:h?10:"auto"}),B=this;A.on("mousedown touchstart",function(Z){B._handleMouseDown(Z)}),A.on("dragstart",Z=>{A.stopDrag(),Z.cancelBubble=!0}),A.on("dragend",Z=>{Z.cancelBubble=!0}),A.on("mouseenter",()=>{const Z=c.Konva.getAngle(this.rotation()),S=this.rotateAnchorCursor(),I=w(D,Z,S);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(){const D=new r.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(A,B){const Z=B.getParent(),S=Z.padding();A.beginPath(),A.rect(-S,-S,B.width()+S*2,B.height()+S*2),A.moveTo(B.width()/2,-S),Z.rotateEnabled()&&Z.rotateLineVisible()&&A.lineTo(B.width()/2,-Z.rotateAnchorOffset()*t.Util._sign(B.height())-S),A.fillStrokeShape(B)},hitFunc:(A,B)=>{if(!this.shouldOverdrawWholeArea())return;const Z=this.padding();A.beginPath(),A.rect(-Z,-Z,B.width()+Z*2,B.height()+Z*2),A.fillStrokeShape(B)}});this.add(D),this._proxyDrag(D),D.on("dragstart",A=>{A.cancelBubble=!0}),D.on("dragmove",A=>{A.cancelBubble=!0}),D.on("dragend",A=>{A.cancelBubble=!0}),this.on("dragmove",A=>{this.update()})}_handleMouseDown(D){if(this._transforming)return;this._movingAnchorName=D.target.name().split(" ")[0];const A=this._getNodeRect(),B=A.width,Z=A.height,S=Math.sqrt(Math.pow(B,2)+Math.pow(Z,2));this.sin=Math.abs(Z/S),this.cos=Math.abs(B/S),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;const I=D.target.getAbsolutePosition(),N=D.target.getStage().getPointerPosition();this._anchorDragOffset={x:N.x-I.x,y:N.y-I.y},k++,this._fire("transformstart",{evt:D.evt,target:this.getNode()}),this._nodes.forEach(z=>{z._fire("transformstart",{evt:D.evt,target:z})})}_handleMouseMove(D){let A,B,Z;const S=this.findOne("."+this._movingAnchorName),I=S.getStage();I.setPointersPositions(D);const N=I.getPointerPosition();let z={x:N.x-this._anchorDragOffset.x,y:N.y-this._anchorDragOffset.y};const W=S.getAbsolutePosition();this.anchorDragBoundFunc()&&(z=this.anchorDragBoundFunc()(W,z,D)),S.setAbsolutePosition(z);const Q=S.getAbsolutePosition();if(W.x===Q.x&&W.y===Q.y)return;if(this._movingAnchorName==="rotater"){const lt=this._getNodeRect();A=S.x()-lt.width/2,B=-S.y()+lt.height/2;let dt=Math.atan2(-B,A)+Math.PI/2;lt.height<0&&(dt-=Math.PI);const yt=c.Konva.getAngle(this.rotation())+dt,gt=c.Konva.getAngle(this.rotationSnapTolerance()),Dt=_(this.rotationSnaps(),yt,gt)-lt.rotation,Ht=m(lt,Dt);this._fitNodesInto(Ht,D);return}const tt=this.shiftBehavior();let at;tt==="inverted"?at=this.keepRatio()&&!D.shiftKey:tt==="none"?at=this.keepRatio():at=this.keepRatio()||D.shiftKey;var ft=this.centeredScaling()||D.altKey;if(this._movingAnchorName==="top-left"){if(at){var X=ft?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};Z=Math.sqrt(Math.pow(X.x-S.x(),2)+Math.pow(X.y-S.y(),2));var q=this.findOne(".top-left").x()>X.x?-1:1,rt=this.findOne(".top-left").y()>X.y?-1:1;A=Z*this.cos*q,B=Z*this.sin*rt,this.findOne(".top-left").x(X.x-A),this.findOne(".top-left").y(X.y-B)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(S.y());else if(this._movingAnchorName==="top-right"){if(at){var X=ft?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};Z=Math.sqrt(Math.pow(S.x()-X.x,2)+Math.pow(X.y-S.y(),2));var q=this.findOne(".top-right").x()<X.x?-1:1,rt=this.findOne(".top-right").y()>X.y?-1:1;A=Z*this.cos*q,B=Z*this.sin*rt,this.findOne(".top-right").x(X.x+A),this.findOne(".top-right").y(X.y-B)}var ot=S.position();this.findOne(".top-left").y(ot.y),this.findOne(".bottom-right").x(ot.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(S.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(S.x());else if(this._movingAnchorName==="bottom-left"){if(at){var X=ft?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};Z=Math.sqrt(Math.pow(X.x-S.x(),2)+Math.pow(S.y()-X.y,2));var q=X.x<S.x()?-1:1,rt=S.y()<X.y?-1:1;A=Z*this.cos*q,B=Z*this.sin*rt,S.x(X.x-A),S.y(X.y+B)}ot=S.position(),this.findOne(".top-left").x(ot.x),this.findOne(".bottom-right").y(ot.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(S.y());else if(this._movingAnchorName==="bottom-right"){if(at){var X=ft?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};Z=Math.sqrt(Math.pow(S.x()-X.x,2)+Math.pow(S.y()-X.y,2));var q=this.findOne(".bottom-right").x()<X.x?-1:1,rt=this.findOne(".bottom-right").y()<X.y?-1:1;A=Z*this.cos*q,B=Z*this.sin*rt,this.findOne(".bottom-right").x(X.x+A),this.findOne(".bottom-right").y(X.y+B)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var ft=this.centeredScaling()||D.altKey;if(ft){const lt=this.findOne(".top-left"),dt=this.findOne(".bottom-right"),yt=lt.x(),gt=lt.
14y(),Dt=this.getWidth()-dt.x(),Ht=this.getHeight()-dt.y();dt.move({x:-yt,y:-gt}),lt.move({x:Dt,y:Ht})}const it=this.findOne(".top-left").getAbsolutePosition();A=it.x,B=it.y;const Y=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),J=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:A,y:B,width:Y,height:J,rotation:c.Konva.getAngle(this.rotation())},D)}_handleMouseUp(D){this._removeEvents(D)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(D){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));const B=this.getNode();k--,this._fire("transformend",{evt:D,target:B}),(A=this.getLayer())===null||A===void 0||A.batchDraw(),B&&this._nodes.forEach(Z=>{var S;Z._fire("transformend",{evt:D,target:Z}),(S=Z.getLayer())===null||S===void 0||S.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(D,A){const B=this._getNodeRect(),Z=1;if(t.Util._inRange(D.width,-this.padding()*2-Z,Z)){this.update();return}if(t.Util._inRange(D.height,-this.padding()*2-Z,Z)){this.update();return}const S=new t.Transform;if(S.rotate(c.Konva.getAngle(this.rotation())),this._movingAnchorName&&D.width<0&&this._movingAnchorName.indexOf("left")>=0){const at=S.point({x:-this.padding()*2,y:0});D.x+=at.x,D.y+=at.y,D.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=at.x,this._anchorDragOffset.y-=at.y}else if(this._movingAnchorName&&D.width<0&&this._movingAnchorName.indexOf("right")>=0){const at=S.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=at.x,this._anchorDragOffset.y-=at.y,D.width+=this.padding()*2}if(this._movingAnchorName&&D.height<0&&this._movingAnchorName.indexOf("top")>=0){const at=S.point({x:0,y:-this.padding()*2});D.x+=at.x,D.y+=at.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=at.x,this._anchorDragOffset.y-=at.y,D.height+=this.padding()*2}else if(this._movingAnchorName&&D.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const at=S.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=at.x,this._anchorDragOffset.y-=at.y,D.height+=this.padding()*2}if(this.boundBoxFunc()){const at=this.boundBoxFunc()(B,D);at?D=at:t.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const I=1e7,N=new t.Transform;N.translate(B.x,B.y),N.rotate(B.rotation),N.scale(B.width/I,B.height/I);const z=new t.Transform,W=D.width/I,Q=D.height/I;this.flipEnabled()===!1?(z.translate(D.x,D.y),z.rotate(D.rotation),z.translate(D.width<0?D.width:0,D.height<0?D.height:0),z.scale(Math.abs(W),Math.abs(Q))):(z.translate(D.x,D.y),z.rotate(D.rotation),z.scale(W,Q));const tt=z.multiply(N.invert());this._nodes.forEach(at=>{var X;const q=at.getParent().getAbsoluteTransform(),rt=at.getTransform().copy();rt.translate(at.offsetX(),at.offsetY());const ot=new t.Transform;ot.multiply(q.copy().invert()).multiply(tt).multiply(q).multiply(rt);const ft=ot.decompose();at.setAttrs(ft),(X=at.getLayer())===null||X===void 0||X.batchDraw()}),this.rotation(t.Util._getRotation(D.rotation)),this._nodes.forEach(at=>{this._fire("transform",{evt:A,target:at}),at._fire("transform",{evt:A,target:at})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(D,A){this.findOne(D).setAttrs(A)}update(){var D;const A=this._getNodeRect();this.rotation(t.Util._getRotation(A.rotation));const B=A.width,Z=A.height,S=this.enabledAnchors(),I=this.resizeEnabled(),N=this.padding(),z=this.anchorSize(),W=this.find("._anchor");W.forEach(tt=>{tt.setAttrs({width:z,height:z,offsetX:z/2,offsetY:z/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:z/2+N,offsetY:z/2+N,visible:I&&S.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:B/2,y:0,offsetY:z/2+N,visible:I&&S.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:B,y:0,offsetX:z/2-N,offsetY:z/2+N,visible:I&&S.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:Z/2,offsetX:z/2+N,visible:I&&S.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:B,y:Z/2,offsetX:z/2-N,visible:I&&S.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:Z,offsetX:z/2+N,offsetY:z/2-N,visible:I&&S.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:B/2,y:Z,offsetY:z/2-N,visible:I&&S.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:B,y:Z,offsetX:z/2-N,offsetY:z/2-N,visible:I&&S.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:B/2,y:-this.rotateAnchorOffset()*t.Util._sign(Z)-N,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:B,height:Z,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const Q=this.anchorStyleFunc();Q&&W.forEach(tt=>{Q(tt)}),(D=this.getLayer())===null||D===void 0||D.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const D=this.findOne("."+this._movingAnchorName);
14D&&D.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),o.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return n.Node.prototype.toObject.call(this)}clone(D){return n.Node.prototype.clone.call(this,D)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}Vh.Transformer=R,R.isTransforming=()=>k>0;function G(T){return T instanceof Array||t.Util.warn("enabledAnchors value should be an array"),T instanceof Array&&T.forEach(function(D){E.indexOf(D)===-1&&t.Util.warn("Unknown anchor name: "+D+". Available names are: "+E.join(", "))}),T||[]}return R.prototype.className="Transformer",(0,f._registerNode)(R),e.Factory.addGetterSetter(R,"enabledAnchors",E,G),e.Factory.addGetterSetter(R,"flipEnabled",!0,(0,d.getBooleanValidator)()),e.Factory.addGetterSetter(R,"resizeEnabled",!0),e.Factory.addGetterSetter(R,"anchorSize",10,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"rotateEnabled",!0),e.Factory.addGetterSetter(R,"rotateLineVisible",!0),e.Factory.addGetterSetter(R,"rotationSnaps",[]),e.Factory.addGetterSetter(R,"rotateAnchorOffset",50,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"rotateAnchorCursor","crosshair"),e.Factory.addGetterSetter(R,"rotationSnapTolerance",5,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"borderEnabled",!0),e.Factory.addGetterSetter(R,"anchorStroke","rgb(0, 161, 255)"),e.Factory.addGetterSetter(R,"anchorStrokeWidth",1,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"anchorFill","white"),e.Factory.addGetterSetter(R,"anchorCornerRadius",0,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"borderStroke","rgb(0, 161, 255)"),e.Factory.addGetterSetter(R,"borderStrokeWidth",1,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"borderDash"),e.Factory.addGetterSetter(R,"keepRatio",!0),e.Factory.addGetterSetter(R,"shiftBehavior","default"),e.Factory.addGetterSetter(R,"centeredScaling",!1),e.Factory.addGetterSetter(R,"ignoreStroke",!1),e.Factory.addGetterSetter(R,"padding",0,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"nodes"),e.Factory.addGetterSetter(R,"node"),e.Factory.addGetterSetter(R,"boundBoxFunc"),e.Factory.addGetterSetter(R,"anchorDragBoundFunc"),e.Factory.addGetterSetter(R,"anchorStyleFunc"),e.Factory.addGetterSetter(R,"shouldOverdrawWholeArea",!1),e.Factory.addGetterSetter(R,"useSingleNodeRotation",!0),e.Factory.backCompat(R,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledH
14andlers:"enabledAnchors"}),Vh}var Yh={},$4;function VS(){if($4)return Yh;$4=1,Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.Wedge=void 0;const t=Xe(),e=zr(),n=He(),r=qe(),s=He();class o extends e.Shape{_sceneFunc(d){d.beginPath(),d.arc(0,0,this.radius(),0,n.Konva.getAngle(this.angle()),this.clockwise()),d.lineTo(0,0),d.closePath(),d.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(d){this.radius(d/2)}setHeight(d){this.radius(d/2)}}return Yh.Wedge=o,o.prototype.className="Wedge",o.prototype._centroid=!0,o.prototype._attrsAffectingSize=["radius"],(0,s._registerNode)(o),t.Factory.addGetterSetter(o,"radius",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"angle",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"clockwise",!1),t.Factory.backCompat(o,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),Yh}var Zh={},X4;function YS(){if(X4)return Zh;X4=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.Blur=void 0;const t=Xe(),e=ur(),n=qe();function r(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const s=[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,39
146,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],o=[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 c(f,g){const v=f.data,x=f.width,C=f.height;let y,h,w,E,M,b,m,_,k,R,G,T,D,A,B,Z,S,I,N,z,W,Q,tt,at;const X=g+g+1,q=x-1,rt=C-1,ot=g+1,ft=ot*(ot+1)/2,it=new r,Y=s[g],J=o[g];let lt=null,dt=it,yt=null,gt=null;for(w=1;w<X;w++)dt=dt.next=new r,w===ot&&(lt=dt);for(dt.next=it,m=b=0,h=0;h<C;h++){for(Z=S=I=N=_=k=R=G=0,T=ot*(z=v[b]),D=ot*(W=v[b+1]),A=ot*(Q=v[b+2]),B=ot*(tt=v[b+3]),_+=ft*z,k+=ft*W,R+=ft*Q,G+=ft*tt,dt=it,w=0;w<ot;w++)dt.r=z,dt.g=W,dt.b=Q,dt.a=tt,dt=dt.next;for(w=1;w<ot;w++)E=b+((q<w?q:w)<<2),_+=(dt.r=z=v[E])*(at=ot-w),k+=(dt.g=W=v[E+1])*at,R+=(dt.b=Q=v[E+2])*at,G+=(dt.a=tt=v[E+3])*at,Z+=z,S+=W,I+=Q,N+=tt,dt=dt.next;for(yt=it,gt=lt,y=0;y<x;y++)v[b+3]=tt=G*Y>>J,tt!==0?(tt=255/tt,v[b]=(_*Y>>J)*tt,v[b+1]=(k*Y>>J)*tt,v[b+2]=(R*Y>>J)*tt):v[b]=v[b+1]=v[b+2]=0,_-=T,k-=D,R-=A,G-=B,T-=yt.r,D-=yt.g,A-=yt.b,B-=yt.a,E=m+((E=y+g+1)<q?E:q)<<2,Z+=yt.r=v[E],S+=yt.g=v[E+1],I+=yt.b=v[E+2],N+=yt.a=v[E+3],_+=Z,k+=S,R+=I,G+=N,yt=yt.next,T+=z=gt.r,D+=W=gt.g,A+=Q=gt.b,B+=tt=gt.a,Z-=z,S-=W,I-=Q,N-=tt,gt=gt.next,b+=4;m+=x}for(y=0;y<x;y++){for(S=I=N=Z=k=R=G=_=0,b=y<<2,T=ot*(z=v[b]),D=ot*(W=v[b+1]),A=ot*(Q=v[b+2]),B=ot*(tt=v[b+3]),_+=ft*z,k+=ft*W,R+=ft*Q,G+=ft*tt,dt=it,w=0;w<ot;w++)dt.r=z,dt.g=W,dt.b=Q,dt.a=tt,dt=dt.next;for(M=x,w=1;w<=g;w++)b=M+y<<2,_+=(dt.r=z=v[b])*(at=ot-w),k+=(dt.g=W=v[b+1])*at,R+=(dt.b=Q=v[b+2])*at,G+=(dt.a=tt=v[b+3])*at,Z+=z,S+=W,I+=Q,N+=tt,dt=dt.next,w<rt&&(M+=x);for(b=y,yt=it,gt=lt,h=0;h<C;h++)E=b<<2,v[E+3]=tt=G*Y>>J,tt>0?(tt=255/tt,v[E]=(_*Y>>J)*tt,v[E+1]=(k*Y>>J)*tt,v[E+2]=(R*Y>>J)*tt):v[E]=v[E+1]=v[E+2]=0,_-=T,k-=D,R-=A,G-=B,T-=yt.r,D-=yt.g,A-=yt.b,B-=yt.a,E=y+((E=h+ot)<rt?E:rt)*x<<2,_+=Z+=yt.r=v[E],k+=S+=yt.g=v[E+1],R+=I+=yt.b=v[E+2],G+=N+=yt.a=v[E+3],yt=yt.next,T+=z=gt.r,D+=W=gt.g,A+=Q=gt.b,B+=tt=gt.a,Z-=z,S-=W,I-=Q,N-=tt,gt=gt.next,b+=x}}const d=function(f){const g=Math.round(this.blurRadius());g>0&&c(f,g)};return Zh.Blur=d,t.Factory.addGetterSetter(e.Node,"blurRadius",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),Zh}var Kh={},q4;function ZS(){if(q4)return Kh;q4=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.Brighten=void 0;const t=Xe(),e=ur(),n=qe(),r=function(s){const o=this.brightness()*255,c=s.data,d=c.length;for(let f=0;f<d;f+=4)c[f]+=o,c[f+1]+=o,c[f+2]+=o};return Kh.Brighten=r,t.Factory.addGetterSetter(e.Node,"brightness",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),Kh}var $h={},Q4;function KS(){if(Q4)return $h;Q4=1,Object.defineProperty($h,"__esModule",{value:!0}),$h.Contrast=void 0;const t=Xe(),e=ur(),n=qe(),r=function(s){const o=Math.pow((this.contrast()+100)/100,2),c=s.data,d=c.length;let f=150,g=150,v=150;for(let x=0;x<d;x+=4)f=c[x],g=c[x+1],v=c[x+2],f/=255,f-=.5,f*=o,f+=.5,f*=255,g/=255,g-=.5,g*=o,g+=.5,g*=255,v/=255,v-=.5,v*=o,v+=.5,v*=255,f=f<0?0:f>255?255:f,g=g<0?0:g>255?255:g,v=v<0?0:v>255?255:v,c[x]=f,c[x+1]=g,c[x+2]=v};return $h.Contrast=r,t.Factory.addGetterSetter(e.Node,"contrast",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),$h}var Xh={},J4;function $S(){if(J4)return Xh;J4=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.Emboss=void 0;const t=Xe(),e=ur(),n=nr(),r=qe(),s=function(o){const c=this.embossStrength()*10,d=this.embossWhiteLevel()*255,f=this.embossDirection(),g=this.embossBlend(),v=o.data,x=o.width,C=o.height,y=x*4;let h=0,w=0,E=C;switch(f){case"top-left":h=-1,w=-1;break;case"top":h=-1,w=0;break;case"top-right":h=-1,w=1;break;case"right":h=0,w=1;break;case"bottom-right":h=1,w=1;break;case"bottom":h=1,w=0;break;case"bottom-left":h=1,w=-1;break;case"left":h=0,w=-1;break;default:n.Util.error("Unknown emboss direction: "+f)}do{const M=(E-1)*y;let b=h;E+b<1&&(b=0),E+b>C&&(b=0);const m=(E-1+b)*x*4;let _=x;do{const k=M+(_-1)*4;let R=w;_+R<1&&(R=0),_+R>x&&(R=0);const G=m+(_-1+R)*4,T=v[k]-v[G],D=v[k+1]-v[G+1],A=v[k+2]-v[G+2];let B=T;const Z=B>0?B:-B,S=D>0?D:-D,I=A>0?A:-A;if(S>Z&&(B=D),I>Z&&(B=A),B*=c,g){const N=v[k]+B,z=v[k+1]+B,W=v[k+2]+B;v[k]=N>255?255:N<0?0:N,v[k+1]=z>255?255:z<0?0:z,v[k+2]=W>255?255:W<0?0:W}else{let N=d-B;N<0?N=0:N>255&&(N=255),v[k]=v[k+1]=v[k+2]=N}}while(--_)}while(--E)};return Xh.Emboss=s,t.Factory.addGetterSetter(e.Node,"embossStrength",.5,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"embossWhiteLevel",.5,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"embossDirection","top-left",void 0,t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"embossBlend",!1,void 0,t.Factory.afterSetFilter),Xh}var qh={},tv;function XS(){if(tv)return qh;tv=1,Object.defineProperty(qh,"__esModule",{value:!0}),qh.Enhance=void 0;const t=Xe(),e=ur(),n=qe();function r(o,c,d,f,g){const v=d-c,x=g-f;if(v===0)return f+x/2;if(x===0)return f;let C=(o-c)/v;return C=x*C+f,C}const s=function(o){const c=o.data,d=c.length;let f=c[0],g=f,v,x=c[1],C=x,y,h=c[2],w=h,E;const M=this.enhance();if(M===0)return;for(let B=0;B<d;B+=4)v=c[B+0],v<f?f=v:v>g&&(g=v),y=c[B+1],y<x?x=y:y>C&&(C=y),E=c[B+2],E<h?h=E:E>w&&(w=E);g===f&&(g=255,f=0),C===x&&(C=255,x=0),w===h&&(w=255,h=0);let b,m,_,k,R,G,T,D,A;M>0?(m=g+M*(255-g),_=f-M*(f-0),R=C+M*(255-C),G=x-M*(x-0),D=w+M*(255-w),A=h-M*(
14h-0)):(b=(g+f)*.5,m=g+M*(g-b),_=f+M*(f-b),k=(C+x)*.5,R=C+M*(C-k),G=x+M*(x-k),T=(w+h)*.5,D=w+M*(w-T),A=h+M*(h-T));for(let B=0;B<d;B+=4)c[B+0]=r(c[B+0],f,g,_,m),c[B+1]=r(c[B+1],x,C,G,R),c[B+2]=r(c[B+2],h,w,A,D)};return qh.Enhance=s,t.Factory.addGetterSetter(e.Node,"enhance",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),qh}var Qh={},ev;function qS(){if(ev)return Qh;ev=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.Grayscale=void 0;const t=function(e){const n=e.data,r=n.length;for(let s=0;s<r;s+=4){const o=.34*n[s]+.5*n[s+1]+.16*n[s+2];n[s]=o,n[s+1]=o,n[s+2]=o}};return Qh.Grayscale=t,Qh}var Jh={},nv;function QS(){if(nv)return Jh;nv=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.HSL=void 0;const t=Xe(),e=ur(),n=qe();t.Factory.addGetterSetter(e.Node,"hue",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"saturation",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"luminance",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter);const r=function(s){const o=s.data,c=o.length,d=1,f=Math.pow(2,this.saturation()),g=Math.abs(this.hue()+360)%360,v=this.luminance()*127,x=d*f*Math.cos(g*Math.PI/180),C=d*f*Math.sin(g*Math.PI/180),y=.299*d+.701*x+.167*C,h=.587*d-.587*x+.33*C,w=.114*d-.114*x-.497*C,E=.299*d-.299*x-.328*C,M=.587*d+.413*x+.035*C,b=.114*d-.114*x+.293*C,m=.299*d-.3*x+1.25*C,_=.587*d-.586*x-1.05*C,k=.114*d+.886*x-.2*C;let R,G,T,D;for(let A=0;A<c;A+=4)R=o[A+0],G=o[A+1],T=o[A+2],D=o[A+3],o[A+0]=y*R+h*G+w*T+v,o[A+1]=E*R+M*G+b*T+v,o[A+2]=m*R+_*G+k*T+v,o[A+3]=D};return Jh.HSL=r,Jh}var t0={},rv;function JS(){if(rv)return t0;rv=1,Object.defineProperty(t0,"__esModule",{value:!0}),t0.HSV=void 0;const t=Xe(),e=ur(),n=qe(),r=function(s){const o=s.data,c=o.length,d=Math.pow(2,this.value()),f=Math.pow(2,this.saturation()),g=Math.abs(this.hue()+360)%360,v=d*f*Math.cos(g*Math.PI/180),x=d*f*Math.sin(g*Math.PI/180),C=.299*d+.701*v+.167*x,y=.587*d-.587*v+.33*x,h=.114*d-.114*v-.497*x,w=.299*d-.299*v-.328*x,E=.587*d+.413*v+.035*x,M=.114*d-.114*v+.293*x,b=.299*d-.3*v+1.25*x,m=.587*d-.586*v-1.05*x,_=.114*d+.886*v-.2*x;let k,R,G,T;for(let D=0;D<c;D+=4)k=o[D+0],R=o[D+1],G=o[D+2],T=o[D+3],o[D+0]=C*k+y*R+h*G,o[D+1]=w*k+E*R+M*G,o[D+2]=b*k+m*R+_*G,o[D+3]=T};return t0.HSV=r,t.Factory.addGetterSetter(e.Node,"hue",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"saturation",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"value",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t0}var e0={},av;function t_(){if(av)return e0;av=1,Object.defineProperty(e0,"__esModule",{value:!0}),e0.Invert=void 0;const t=function(e){const n=e.data,r=n.length;for(let s=0;s<r;s+=4)n[s]=255-n[s],n[s+1]=255-n[s+1],n[s+2]=255-n[s+2]};return e0.Invert=t,e0}var n0={},iv;function e_(){if(iv)return n0;iv=1,Object.defineProperty(n0,"__esModule",{value:!0}),n0.Kaleidoscope=void 0;const t=Xe(),e=ur(),n=nr(),r=qe(),s=function(d,f,g){const v=d.data,x=f.data,C=d.width,y=d.height,h=g.polarCenterX||C/2,w=g.polarCenterY||y/2;let E=Math.sqrt(h*h+w*w),M=C-h,b=y-w;const m=Math.sqrt(M*M+b*b);E=m>E?m:E;const _=y,k=C,R=360/k*Math.PI/180;for(let G=0;G<k;G+=1){const T=Math.sin(G*R),D=Math.cos(G*R);for(let A=0;A<_;A+=1){M=Math.floor(h+E*A/_*D),b=Math.floor(w+E*A/_*T);let B=(b*C+M)*4;const Z=v[B+0],S=v[B+1],I=v[B+2],N=v[B+3];B=(G+A*C)*4,x[B+0]=Z,x[B+1]=S,x[B+2]=I,x[B+3]=N}}},o=function(d,f,g){const v=d.data,x=f.data,C=d.width,y=d.height,h=g.polarCenterX||C/2,w=g.polarCenterY||y/2;let E=Math.sqrt(h*h+w*w),M=C-h,b=y-w;const m=Math.sqrt(M*M+b*b);E=m>E?m:E;const _=y,k=C,R=0;let G,T;for(M=0;M<C;M+=1)for(b=0;b<y;b+=1){const D=M-h,A=b-w,B=Math.sqrt(D*D+A*A)*_/E;let Z=(Math.atan2(A,D)*180/Math.PI+360+R)%360;Z=Z*k/360,G=Math.floor(Z),T=Math.floor(B);let S=(T*C+G)*4;const I=v[S+0],N=v[S+1],z=v[S+2],W=v[S+3];S=(b*C+M)*4,x[S+0]=I,x[S+1]=N,x[S+2]=z,x[S+3]=W}},c=function(d){const f=d.width,g=d.height;let v,x,C,y,h,w,E,M,b,m,_=Math.round(this.kaleidoscopePower());const k=Math.round(this.kaleidoscopeAngle()),R=Math.floor(f*(k%360)/360);if(_<1)return;const G=n.Util.createCanvasElement();G.width=f,G.height=g;const T=G.getContext("2d").getImageData(0,0,f,g);n.Util.releaseCanvas(G),s(d,T,{polarCenterX:f/2,polarCenterY:g/2});let D=f/Math.pow(2,_);for(;D<=8;)D=D*2,_-=1;D=Math.ceil(D);let A=D,B=0,Z=A,S=1;for(R+D>f&&(B=A,Z=0,S=-1),x=0;x<g;x+=1)for(v=B;v!==Z;v+=S)C=Math.round(v+R)%f,b=(f*x+C)*4,h=T.data[b+0],w=T.data[b+1],E=T.data[b+2],M=T.data[b+3],m=(f*x+v)*4,T.data[m+0]=h,T.data[m+1]=w,T.data[m+2]=E,T.data[m+3]=M;for(x=0;x<g;x+=1)for(A=Math.floor(D),y=0;y<_;y+=1){for(v=0;v<A+1;v+=1)b=(f*x+v)*4,h=T.data[b+0],w=T.data[b+1],E=T.data[b+2],M=T.data[b+3],m=(f*x+A*2-v-1)*4,T.data[m+0]=h,T.data[m+1]=w,T.data[m+2]=E,T.data[m+3]=M;A*=2}o(T,d,{})};return n0.Kaleidoscope=c,t.Factory.addGetterSetter(e.Node,"kaleidoscopePower",2,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"kaleidoscopeAngle",0,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),n0}var r0={},ov;function n_(){if(ov)return r0;ov=1,Object.defineProperty(r0,"__esModule",{value:!0}),r0.Mask=void 0;const t=Xe(),e=ur(),n=qe();function r(C,y,h){let w=(h*C.width+y)*4;const E=[];return E.push(C.data[w++],C.data[w++],C.data[w++],C.data[w++]),E}function s(C,y){return Math.sqrt(Math.pow(C[0]-y[0],2)+Math.pow(C[1]-y[1],2)+Math.pow(C[2]-y[2],2))}function o(C){const y=[0,0,0];for(let h=0;h<C.length;
14h++)y[0]+=C[h][0],y[1]+=C[h][1],y[2]+=C[h][2];return y[0]/=C.length,y[1]/=C.length,y[2]/=C.length,y}function c(C,y){const h=r(C,0,0),w=r(C,C.width-1,0),E=r(C,0,C.height-1),M=r(C,C.width-1,C.height-1),b=y||10;if(s(h,w)<b&&s(w,M)<b&&s(M,E)<b&&s(E,h)<b){const m=o([w,h,M,E]),_=[];for(let k=0;k<C.width*C.height;k++){const R=s(m,[C.data[k*4],C.data[k*4+1],C.data[k*4+2]]);_[k]=R<b?0:255}return _}}function d(C,y){for(let h=0;h<C.width*C.height;h++)C.data[4*h+3]=y[h]}function f(C,y,h){const w=[1,1,1,1,0,1,1,1,1],E=Math.round(Math.sqrt(w.length)),M=Math.floor(E/2),b=[];for(let m=0;m<h;m++)for(let _=0;_<y;_++){const k=m*y+_;let R=0;for(let G=0;G<E;G++)for(let T=0;T<E;T++){const D=m+G-M,A=_+T-M;if(D>=0&&D<h&&A>=0&&A<y){const B=D*y+A,Z=w[G*E+T];R+=C[B]*Z}}b[k]=R===2040?255:0}return b}function g(C,y,h){const w=[1,1,1,1,1,1,1,1,1],E=Math.round(Math.sqrt(w.length)),M=Math.floor(E/2),b=[];for(let m=0;m<h;m++)for(let _=0;_<y;_++){const k=m*y+_;let R=0;for(let G=0;G<E;G++)for(let T=0;T<E;T++){const D=m+G-M,A=_+T-M;if(D>=0&&D<h&&A>=0&&A<y){const B=D*y+A,Z=w[G*E+T];R+=C[B]*Z}}b[k]=R>=1020?255:0}return b}function v(C,y,h){const w=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],E=Math.round(Math.sqrt(w.length)),M=Math.floor(E/2),b=[];for(let m=0;m<h;m++)for(let _=0;_<y;_++){const k=m*y+_;let R=0;for(let G=0;G<E;G++)for(let T=0;T<E;T++){const D=m+G-M,A=_+T-M;if(D>=0&&D<h&&A>=0&&A<y){const B=D*y+A,Z=w[G*E+T];R+=C[B]*Z}}b[k]=R}return b}const x=function(C){const y=this.threshold();let h=c(C,y);return h&&(h=f(h,C.width,C.height),h=g(h,C.width,C.height),h=v(h,C.width,C.height),d(C,h)),C};return r0.Mask=x,t.Factory.addGetterSetter(e.Node,"threshold",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),r0}var a0={},sv;function r_(){if(sv)return a0;sv=1,Object.defineProperty(a0,"__esModule",{value:!0}),a0.Noise=void 0;const t=Xe(),e=ur(),n=qe(),r=function(s){const o=this.noise()*255,c=s.data,d=c.length,f=o/2;for(let g=0;g<d;g+=4)c[g+0]+=f-2*f*Math.random(),c[g+1]+=f-2*f*Math.random(),c[g+2]+=f-2*f*Math.random()};return a0.Noise=r,t.Factory.addGetterSetter(e.Node,"noise",.2,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),a0}var i0={},lv;function a_(){if(lv)return i0;lv=1,Object.defineProperty(i0,"__esModule",{value:!0}),i0.Pixelate=void 0;const t=Xe(),e=nr(),n=ur(),r=qe(),s=function(o){let c=Math.ceil(this.pixelSize()),d=o.width,f=o.height,g,v,x,C,y,h,w,E=Math.ceil(d/c),M=Math.ceil(f/c),b,m,_,k,R,G,T,D=o.data;if(c<=0){e.Util.error("pixelSize value can not be <= 0");return}for(R=0;R<E;R+=1)for(G=0;G<M;G+=1){for(C=0,y=0,h=0,w=0,b=R*c,m=b+c,_=G*c,k=_+c,T=0,g=b;g<m;g+=1)if(!(g>=d))for(v=_;v<k;v+=1)v>=f||(x=(d*v+g)*4,C+=D[x+0],y+=D[x+1],h+=D[x+2],w+=D[x+3],T+=1);for(C=C/T,y=y/T,h=h/T,w=w/T,g=b;g<m;g+=1)if(!(g>=d))for(v=_;v<k;v+=1)v>=f||(x=(d*v+g)*4,D[x+0]=C,D[x+1]=y,D[x+2]=h,D[x+3]=w)}};return i0.Pixelate=s,t.Factory.addGetterSetter(n.Node,"pixelSize",8,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),i0}var o0={},cv;function i_(){if(cv)return o0;cv=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.Posterize=void 0;const t=Xe(),e=ur(),n=qe(),r=function(s){const o=Math.round(this.levels()*254)+1,c=s.data,d=c.length,f=255/o;for(let g=0;g<d;g+=1)c[g]=Math.floor(c[g]/f)*f};return o0.Posterize=r,t.Factory.addGetterSetter(e.Node,"levels",.5,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),o0}var s0={},uv;function o_(){if(uv)return s0;uv=1,Object.defineProperty(s0,"__esModule",{value:!0}),s0.RGB=void 0;const t=Xe(),e=ur(),n=qe(),r=function(s){const o=s.data,c=o.length,d=this.red(),f=this.green(),g=this.blue();for(let v=0;v<c;v+=4){const x=(.34*o[v]+.5*o[v+1]+.16*o[v+2])/255;o[v]=x*d,o[v+1]=x*f,o[v+2]=x*g,o[v+3]=o[v+3]}};return s0.RGB=r,t.Factory.addGetterSetter(e.Node,"red",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)}),t.Factory.addGetterSetter(e.Node,"green",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)}),t.Factory.addGetterSetter(e.Node,"blue",0,n.RGBComponent,t.Factory.afterSetFilter),s0}var l0={},dv;function s_(){if(dv)return l0;dv=1,Object.defineProperty(l0,"__esModule",{value:!0}),l0.RGBA=void 0;const t=Xe(),e=ur(),n=qe(),r=function(s){const o=s.data,c=o.length,d=this.red(),f=this.green(),g=this.blue(),v=this.alpha();for(let x=0;x<c;x+=4){const C=1-v;o[x]=d*v+o[x]*C,o[x+1]=f*v+o[x+1]*C,o[x+2]=g*v+o[x+2]*C}};return l0.RGBA=r,t.Factory.addGetterSetter(e.Node,"red",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)}),t.Factory.addGetterSetter(e.Node,"green",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)}),t.Factory.addGetterSetter(e.Node,"blue",0,n.RGBComponent,t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"alpha",1,function(s){return this._filterUpToDate=!1,s>1?1:s<0?0:s}),l0}var c0={},hv;function l_(){if(hv)return c0;hv=1,Object.defineProperty(c0,"__esModule",{value:!0}),c0.Sepia=void 0;const t=function(e){const n=e.data,r=n.length;for(let s=0;s<r;s+=4){const o=n[s+0],c=n[s+1],d=n[s+2];n[s+0]=Math.min(255,o*.393+c*.769+d*.189),n[s+1]=Math.min(255,o*.349+c*.686+d*.168),n[s+2]=Math.min(255,o*.272+c*.534+d*.131)}};return c0.Sepia=t,c0}var u0={},fv;
14function c_(){if(fv)return u0;fv=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.Solarize=void 0;const t=function(e){const n=e.data,r=e.width,s=e.height,o=r*4;let c=s;do{const d=(c-1)*o;let f=r;do{const g=d+(f-1)*4;let v=n[g],x=n[g+1],C=n[g+2];v>127&&(v=255-v),x>127&&(x=255-x),C>127&&(C=255-C),n[g]=v,n[g+1]=x,n[g+2]=C}while(--f)}while(--c)};return u0.Solarize=t,u0}var d0={},pv;function u_(){if(pv)return d0;pv=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.Threshold=void 0;const t=Xe(),e=ur(),n=qe(),r=function(s){const o=this.threshold()*255,c=s.data,d=c.length;for(let f=0;f<d;f+=1)c[f]=c[f]<o?0:255};return d0.Threshold=r,t.Factory.addGetterSetter(e.Node,"threshold",.5,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),d0}var gv;function d_(){if(gv)return Eh;gv=1,Object.defineProperty(Eh,"__esModule",{value:!0}),Eh.Konva=void 0;const t=Sg(),e=AS(),n=NS(),r=RS(),s=FS(),o=DS(),c=jS(),d=F9(),f=hm(),g=D9(),v=BS(),x=HS(),C=zS(),y=GS(),h=j9(),w=US(),E=WS(),M=VS(),b=YS(),m=ZS(),_=KS(),k=$S(),R=XS(),G=qS(),T=QS(),D=JS(),A=t_(),B=e_(),Z=n_(),S=r_(),I=a_(),N=i_(),z=o_(),W=s_(),Q=l_(),tt=c_(),at=u_();return Eh.Konva=t.Konva.Util._assign(t.Konva,{Arc:e.Arc,Arrow:n.Arrow,Circle:r.Circle,Ellipse:s.Ellipse,Image:o.Image,Label:c.Label,Tag:c.Tag,Line:d.Line,Path:f.Path,Rect:g.Rect,RegularPolygon:v.RegularPolygon,Ring:x.Ring,Sprite:C.Sprite,Star:y.Star,Text:h.Text,TextPath:w.TextPath,Transformer:E.Transformer,Wedge:M.Wedge,Filters:{Blur:b.Blur,Brighten:m.Brighten,Contrast:_.Contrast,Emboss:k.Emboss,Enhance:R.Enhance,Grayscale:G.Grayscale,HSL:T.HSL,HSV:D.HSV,Invert:A.Invert,Kaleidoscope:B.Kaleidoscope,Mask:Z.Mask,Noise:S.Noise,Pixelate:I.Pixelate,Posterize:N.Posterize,RGB:z.RGB,RGBA:W.RGBA,Sepia:Q.Sepia,Solarize:tt.Solarize,Threshold:at.Threshold}}),Eh}var h_=ep.exports,mv;function f_(){if(mv)return ep.exports;mv=1,Object.defineProperty(h_,"__esModule",{value:!0});const t=d_();return ep.exports=t.Konva,ep.exports}f_();var B2={exports:{}},vv;function p_(){return vv||(vv=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;var n=Sg();Object.defineProperty(e,"Konva",{enumerable:!0,get:function(){return n.Konva}});const r=Sg();t.exports=r.Konva})(B2,B2.exports)),B2.exports}var g_=p_();const b1=Vc(g_);var yv={exports:{}},bv,wv;function m_(){return wv||(wv=1,bv=function(t){var e={},n=tm(),r=em(),s=Object.assign;function o(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,O=1;O<arguments.length;O++)u+="&args[]="+encodeURIComponent(arguments[O]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,d=Symbol.for("react.element"),f=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),y=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),_=Symbol.iterator;function k(l){return l===null||typeof l!="object"?null:(l=_&&l[_]||l["@@iterator"],typeof l=="function"?l:null)}function R(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case g:return"Fragment";case f:return"Portal";case x:return"Profiler";case v:return"StrictMode";case w:return"Suspense";case E:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case y:return(l.displayName||"Context")+".Consumer";case C:return(l._context.displayName||"Context")+".Provider";case h:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case M:return u=l.displayName||null,u!==null?u:R(l.type)||"Memo";case b:u=l._payload,l=l._init;try{return R(l(u))}catch{}}return null}function G(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return R(u);case 8:return u===v?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function T(l){var u=l,O=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(O=u.return),l=u.return;while(l)}return u.tag===3?O:null}function D(l){if(T(l)!==l)throw Error(o(188))}function A(l){var u=l.alternate;if(!u){if(u=T(l),u===null)throw Error(o(188));return u!==l?null:l}for(var O=l,F=u;;){var H=O.return;if(H===null)break;var K=H.alternate;if(K===null){if(F=H.return,F!==null){O=F;continue}break}if(H.child===K.child){for(K=H.child;K;){if(K===O)return D(H),l;if(K===F)return D(H),u;K=K.sibling}throw Error(o(188))}if(O.return!==F.return)O=H,F=K;else{for(var st=!1,bt=H.child;bt;){if(bt===O){st=!0,O=H,F=K;break}if(bt===F){st=!0,F=H,O=K;break}bt=bt.sibling}if(!st){for(bt=K.child;bt;){if(bt===O){st=!0,O=K,F=H;break}if(bt===F){st=!0,F=K,O=H;break}bt=bt.sibling}if(!st)throw Error(o(189))}}if(O.alternate!==F)throw Error(o(190))}if(O.tag!==3)throw Error(o(188));return O.stateNode.current===O?l:u}function B(l){return l=A(l),l!==null?Z(l):null}function Z(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=Z(l);if(u!==null)return u;l=l.sibling}return null}function S(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){if(l.tag!==4){var u=S(l);if(u!==null)return u}l=l.sibling}return null}var I=Array.isArray,N=t.getPublicInstance,z=t.getRootHostContext,W=t.getChildHostContext,Q=t.prepareForCommit,tt=t.resetAfterCommit,at=t.createInstance,X=t.appendInitialChild,q=t.finalizeInitialChildren,rt=t.prepareUpdate,ot=t.shouldSetTextContent,ft=t.createTextInstance,it=t.scheduleTimeout,Y=t.cancelTimeout,J=t.noTimeout,lt=t.isPrimaryRenderer,dt=t.supportsMutation,yt=t.supportsPersistence,gt=t.supp
vendor: 5,965 bytes, lines 14-18
14ortsHydration,Dt=t.getInstanceFromNode,Ht=t.preparePortalMount,It=t.getCurrentEventPriority,qt=t.detachDeletedInstance,Bt=t.supportsMicrotasks,ee=t.scheduleMicrotask,Kt=t.supportsTestSelectors,Yt=t.findFiberRoot,oe=t.getBoundingRect,ne=t.getTextContent,ue=t.isHiddenSubtree,Qt=t.matchAccessibilityRole,$t=t.setFocusIfFocusable,we=t.setupIntersectionObserver,Fe=t.appendChild,_e=t.appendChildToContainer,pn=t.commitTextUpdate,jt=t.commitMount,se=t.commitUpdate,Se=t.insertBefore,xe=t.insertInContainerBefore,Ge=t.removeChild,an=t.removeChildFromContainer,bn=t.resetTextContent,Ur=t.hideInstance,Ma=t.hideTextInstance,La=t.unhideInstance,ve=t.unhideTextInstance,Ce=t.clearContainer,Ue=t.cloneInstance,gn=t.createContainerChildSet,zn=t.appendChildToContainerChildSet,ga=t.finalizeContainerChildren,ta=t.replaceContainerChildren,Vo=t.cloneHiddenInstance,ho=t.cloneHiddenTextInstance,ea=t.canHydrateInstance,ji=t.canHydrateTextInstance,Qa=t.canHydrateSuspenseInstance,Fn=t.isSuspenseInstancePending,na=t.isSuspenseInstanceFallback,Bi=t.getSuspenseInstanceFallbackErrorDetails,Ja=t.registerSuspenseInstanceRetry,Hi=t.getNextHydratableSibling,Rl=t.getFirstHydratableChild,kd=t.getFirstHydratableChildWithinContainer,Pd=t.getFirstHydratableChildWithinSuspenseInstance,Md=t.hydrateInstance,ra=t.hydrateTextInstance,$c=t.hydrateSuspenseInstance,Xc=t.getNextHydratableInstanceAfterSuspenseInstance,Ld=t.commitHydratedContainer,qc=t.commitHydratedSuspenseInstance,Qc=t.clearSuspenseBoundary,Jc=t.clearSuspenseBoundaryFromContainer,Ts=t.shouldDeleteUnhydratedTailInstances,Td=t.didNotMatchHydratedContainerTextInstance,As=t.didNotMatchHydratedTextInstance,mn;function Yo(l){if(mn===void 0)try{throw Error()}catch(O){var u=O.stack.trim().match(/\n( *(at )?)/);mn=u&&u[1]||""}return`
15`+mn+l}var vi=!1;function Zo(l,u){if(!l||vi)return"";vi=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(Wt){var F=Wt}Reflect.construct(l,[],u)}else{try{u.call()}catch(Wt){F=Wt}l.call(u.prototype)}else{try{throw Error()}catch(Wt){F=Wt}l()}}catch(Wt){if(Wt&&F&&typeof Wt.stack=="string"){for(var H=Wt.stack.split(`
16`),K=F.stack.split(`
17`),st=H.length-1,bt=K.length-1;1<=st&&0<=bt&&H[st]!==K[bt];)bt--;for(;1<=st&&0<=bt;st--,bt--)if(H[st]!==K[bt]){if(st!==1||bt!==1)do if(st--,bt--,0>bt||H[st]!==K[bt]){var Lt=`
18`+H[st].replace(" at new "," at ");return l.displayName&&Lt.includes("<anonymous>")&&(Lt=Lt.replace("<anonymous>",l.displayName)),Lt}while(1<=st&&0<=bt);break}}}finally{vi=!1,Error.prepareStackTrace=O}return(l=l?l.displayName||l.name:"")?Yo(l):""}var Is=Object.prototype.hasOwnProperty,Fl=[],zi=-1;function aa(l){return{current:l}}function We(l){0>zi||(l.current=Fl[zi],Fl[zi]=null,zi--)}function sn(l,u){zi++,Fl[zi]=l.current,l.current=u}var qn={},hr=aa(qn),Ar=aa(!1),Gi=qn;function ti(l,u){var O=l.type.contextTypes;if(!O)return qn;var F=l.stateNode;if(F&&F.__reactInternalMemoizedUnmaskedChildContext===u)return F.__reactInternalMemoizedMaskedChildContext;var H={},K;for(K in O)H[K]=u[K];return F&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=H),H}function ar(l){return l=l.childContextTypes,l!=null}function yi(){We(Ar),We(hr)}function Ko(l,u,O){if(hr.current!==qn)throw Error(o(168));sn(hr,u),sn(Ar,O)}function $o(l,u,O){var F=l.stateNode;if(u=u.childContextTypes,typeof F.getChildContext!="function")return O;F=F.getChildContext();for(var H in F)if(!(H in u))throw Error(o(108,G(l)||"Unknown",H));return s({},O,F)}function fo(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||qn,Gi=hr.current,sn(hr,l),sn(Ar,Ar.current),!0}function Ns(l,u,O){var F=l.stateNode;if(!F)throw Error(o(169));O?(l=$o(l,u,Gi),F.__reactInternalMemoizedMergedChildContext=l,We(Ar),We(hr),sn(hr,l)):We(Ar),sn(Ar,O)}var ia=Math.clz32?Math.clz32:Ad,Rs=Math.log,Xo=Math.LN2;function Ad(l){return l>>>=0,l===0?32:31-(Rs(l)/Xo|0)|0}var po=64,Ke=4194304;function go(l){switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function qo(l,u){var O=l.pendingLanes;if(O===0)return 0;var F=0,H=l.suspendedLanes,K=l.pingedLanes,st=O&268435455;if(st!==0){var bt=st&~H;bt!==0?F=go(bt):(K&=st,K!==0&&(F=go(K)))}else st=O&~H,st!==0?F=go(st):K!==0&&(F=go(K));if(F===0)return 0;if(u!==0&&u!==F&&(u&H)===0&&(H=F&-F,K=u&-u,H>=K||H===16&&(K&4194240)!==0))return u;if((F&4)!==0&&(F|=O&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=F;0<u;)O=31-ia(u),H=1<<O,F|=l[O],u&=~H;return F}function Dl(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fs(l,u){for(var O=l.suspendedLanes,F=l.pingedLanes,H=l.expirationTimes,K=l.pendingLanes;0<K;){var st=31-ia(K),bt=1<<st,Lt=H[st];Lt===-1?((bt&O)===0||(bt&F)!==0)&&(H[st]=Dl(bt,u)):Lt<=u&&(l.expiredLanes|=bt),K&=~bt}}function Ds(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function jl(){var l=po;return po<<=1,(po&4194240)===0&&(po=64),l}function Qo(l){for(var u=[],O=0;31>O;O++)u.push(l);return u}
vendor: 21,017 bytes, line 18
18function ma(l,u,O){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-ia(u),l[u]=O}function Ta(l,u){var O=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var F=l.eventTimes;for(l=l.expirationTimes;0<O;){var H=31-ia(O),K=1<<H;u[H]=0,F[H]=-1,l[H]=-1,O&=~K}}function oa(l,u){var O=l.entangledLanes|=u;for(l=l.entanglements;O;){var F=31-ia(O),H=1<<F;H&u|l[F]&u&&(l[F]|=u),O&=~H}}var Me=0;function mo(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var bi=r.unstable_scheduleCallback,va=r.unstable_cancelCallback,tu=r.unstable_shouldYield,wi=r.unstable_requestPaint,ln=r.unstable_now,Bl=r.unstable_ImmediatePriority,Hl=r.unstable_UserBlockingPriority,vo=r.unstable_NormalPriority,zl=r.unstable_IdlePriority,js=null,Ir=null;function yo(l){if(Ir&&typeof Ir.onCommitFiberRoot=="function")try{Ir.onCommitFiberRoot(js,l,void 0,(l.current.flags&128)===128)}catch{}}function bo(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var ut=typeof Object.is=="function"?Object.is:bo,xt=null,Pt=!1,le=!1;function Ne(l){xt===null?xt=[l]:xt.push(l)}function nn(l){Pt=!0,Ne(l)}function Ve(){if(!le&&xt!==null){le=!0;var l=0,u=Me;try{var O=xt;for(Me=1;l<O.length;l++){var F=O[l];do F=F(!0);while(F!==null)}xt=null,Pt=!1}catch(H){throw xt!==null&&(xt=xt.slice(l+1)),bi(Bl,Ve),H}finally{Me=u,le=!1}}return null}var Ee=[],Qe=0,ir=null,or=0,Un=[],sr=0,Aa=null,Tn=1,sa="";function Ui(l,u){Ee[Qe++]=or,Ee[Qe++]=ir,ir=l,or=u}function Bs(l,u,O){Un[sr++]=Tn,Un[sr++]=sa,Un[sr++]=Aa,Aa=l;var F=Tn;l=sa;var H=32-ia(F)-1;F&=~(1<<H),O+=1;var K=32-ia(u)+H;if(30<K){var st=H-H%5;K=(F&(1<<st)-1).toString(32),F>>=st,H-=st,Tn=1<<32-ia(u)+H|O<<H|F,sa=K+l}else Tn=1<<K|O<<H|F,sa=l}function Id(l){l.return!==null&&(Ui(l,1),Bs(l,1,0))}function Gl(l){for(;l===ir;)ir=Ee[--Qe],Ee[Qe]=null,or=Ee[--Qe],Ee[Qe]=null;for(;l===Aa;)Aa=Un[--sr],Un[sr]=null,sa=Un[--sr],Un[sr]=null,Tn=Un[--sr],Un[sr]=null}var Wr=null,Nr=null,vn=!1,Hs=!1,ei=null;function A1(l,u){var O=_a(5,null,null,0);O.elementType="DELETED",O.stateNode=u,O.return=l,u=l.deletions,u===null?(l.deletions=[O],l.flags|=16):u.push(O)}function I1(l,u){switch(l.tag){case 5:return u=ea(u,l.type,l.pendingProps),u!==null?(l.stateNode=u,Wr=l,Nr=Rl(u),!0):!1;case 6:return u=ji(u,l.pendingProps),u!==null?(l.stateNode=u,Wr=l,Nr=null,!0):!1;case 13:if(u=Qa(u),u!==null){var O=Aa!==null?{id:Tn,overflow:sa}:null;return l.memoizedState={dehydrated:u,treeContext:O,retryLane:1073741824},O=_a(18,null,null,0),O.stateNode=u,O.return=l,l.child=O,Wr=l,Nr=null,!0}return!1;default:return!1}}function Ul(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Nd(l){if(vn){var u=Nr;if(u){var O=u;if(!I1(l,u)){if(Ul(l))throw Error(o(418));u=Hi(O);var F=Wr;u&&I1(l,u)?A1(F,O):(l.flags=l.flags&-4097|2,vn=!1,Wr=l)}}else{if(Ul(l))throw Error(o(418));l.flags=l.flags&-4097|2,vn=!1,Wr=l}}}function N1(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;Wr=l}function eu(l){if(!gt||l!==Wr)return!1;if(!vn)return N1(l),vn=!0,!1;if(l.tag!==3&&(l.tag!==5||Ts(l.type)&&!ot(l.type,l.memoizedProps))){var u=Nr;if(u){if(Ul(l))throw R1(),Error(o(418));for(;u;)A1(l,u),u=Hi(u)}}if(N1(l),l.tag===13){if(!gt)throw Error(o(316));if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));Nr=Xc(l)}else Nr=Wr?Hi(l.stateNode):null;return!0}function R1(){for(var l=Nr;l;)l=Hi(l)}function zs(){gt&&(Nr=Wr=null,Hs=vn=!1)}function nu(l){ei===null?ei=[l]:ei.push(l)}var t2=c.ReactCurrentBatchConfig;function ru(l,u){if(ut(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var O=Object.keys(l),F=Object.keys(u);if(O.length!==F.length)return!1;for(F=0;F<O.length;F++){var H=O[F];if(!Is.call(u,H)||!ut(l[H],u[H]))return!1}return!0}function e2(l){switch(l.tag){case 5:return Yo(l.type);case 16:return Yo("Lazy");case 13:return Yo("Suspense");case 19:return Yo("SuspenseList");case 0:case 2:case 15:return l=Zo(l.type,!1),l;case 11:return l=Zo(l.type.render,!1),l;case 1:return l=Zo(l.type,!0),l;default:return""}}function Wl(l,u,O){if(l=O.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(O._owner){if(O=O._owner,O){if(O.tag!==1)throw Error(o(309));var F=O.stateNode}if(!F)throw Error(o(147,l));var H=F,K=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===K?u.ref:(u=function(st){var bt=H.refs;st===null?delete bt[K]:bt[K]=st},u._stringRef=K,u)}if(typeof l!="string")throw Error(o(284));if(!O._owner)throw Error(o(290,l))}return l}function Gs(l,u){throw l=Object.prototype.toString.call(u),Error(o(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function F1(l){var u=l._init;return u(l._payload)}function D1(l){function u(kt,Ct){if(l){var At=kt.deletions;At===null?(kt.deletions=[Ct],kt.flags|=16):At.push(Ct)}}function O(kt,Ct){if(!l)return null;for(;Ct!==null;)u(kt,Ct),Ct=Ct.sibling;return null}function F(kt,Ct){for(kt=new Map;Ct!==null;)Ct.key!==null?kt.set(Ct.key,Ct):kt.set(Ct.index,Ct),Ct=Ct.sibling;return kt}function H(kt,Ct){return kt=Fo(kt,Ct),kt.index=0,kt.sibling=null,kt}function K(kt,Ct,At){return kt.index=At,l?(At=kt.alternate,At!==null?(At=At.index,At<Ct?(kt.flags|=2,Ct):At):(kt.flags|=2,Ct)):(kt.flags|=1048576,Ct)}function st(kt){return l&&kt.alternate===null&&(kt.flags|=2),kt}function bt(kt,Ct,At,ae){return Ct===null||Ct.tag!==6?(Ct=yc(At,kt.mode,ae),Ct.return=kt,Ct):(Ct=H(Ct,At),Ct.return=kt,Ct)}function Lt(kt,Ct,At,ae){var me=At.type;return me===g?ce(kt,Ct,At.props.children,ae,At.key):Ct!==null&&(Ct.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===b&&F1(me)===Ct.type)?(ae=H(Ct,At.props),ae.ref=Wl(kt,Ct,At),ae.return=kt,ae):(ae=ju(At.type,At.key,At.props,null,kt.mode,ae),ae.ref=Wl(kt,Ct,At),ae.return=kt,ae)}function Wt(kt,Ct,At,ae){return Ct===null||Ct.tag!==4||Ct.stateNode.containerInfo!==At.containerInfo||Ct.stateNode.implementation!==At.implementation?(Ct=ll(At,kt.mode,ae),Ct.return=kt,Ct):(Ct=H(Ct,At.children||[]),Ct.return=kt,Ct)}function ce(kt,Ct,At,ae,me){return Ct===null||Ct.tag!==7?(Ct=ps(At,kt.mode,ae,me),Ct.return=kt,Ct):(Ct=H(Ct,At),Ct.return=kt,Ct)}function Pe(kt,Ct,At){if(typeof Ct=="string"&&Ct!==""||typeof Ct=="number")return Ct=yc(""+Ct,kt.mode,At),Ct.return=kt,Ct;if(typeof Ct=="object"&&Ct!==null){switch(Ct.$$typeof){case d:return At=ju(Ct.type,Ct.key,Ct.props,null,kt.mode,At),At.ref=Wl(kt,null,Ct),At.return=kt,At;case f:return Ct=ll(Ct,kt.mode,At),Ct.return=kt,Ct;case b:var ae=Ct._init;return Pe(kt,ae(Ct._payload),At)}if(I(Ct)||k(Ct))return Ct=ps(Ct,kt.mode,At,null),Ct.return=kt,Ct;Gs(kt,Ct)}return null}function re(kt,Ct,At,ae){var me=Ct!==null?Ct.key:null;if(typeof At=="string"&&At!==""||typeof At=="number")return me!==null?null:bt(kt,Ct,""+At,ae);if(typeof At=="object"&&At!==null){switch(At.$$typeof){case d:return At.key===me?Lt(kt,Ct,At,ae):null;case f:return At.key===me?Wt(kt,Ct,At,ae):null;case b:return me=At._init,re(kt,Ct,me(At._payload),ae)}if(I(At)||k(At))return me!==null?null:ce(kt,Ct,At,ae,null);Gs(kt,At)}return null}function yn(kt,Ct,At,ae,me){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return kt=kt.get(At)||null,bt(Ct,kt,""+ae,me);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case d:return kt=kt.get(ae.key===null?At:ae.key)||null,Lt(Ct,kt,ae,me);case f:return kt=kt.get(ae.key===null?At:ae.key)||null,Wt(Ct,kt,ae,me);case b:var Le=ae._init;return yn(kt,Ct,At,Le(ae._payload),me)}if(I(ae)||k(ae))return kt=kt.get(At)||null,ce(Ct,kt,ae,me,null);Gs(Ct,ae)}return null}function un(kt,Ct,At,ae){for(var me=null,Le=null,Te=Ct,Je=Ct=0,tr=null;Te!==null&&Je<At.length;Je++){Te.index>Je?(tr=Te,Te=null):tr=Te.sibling;var tn=re(kt,Te,At[Je],ae);if(tn===null){Te===null&&(Te=tr);break}l&&Te&&tn.alternate===null&&u(kt,Te),Ct=K(tn,Ct,Je),Le===null?me=tn:Le.sibling=tn,Le=tn,Te=tr}if(Je===At.length)return O(kt,Te),vn&&Ui(kt,Je),me;if(Te===null){for(;Je<At.length;Je++)Te=Pe(kt,At[Je],ae),Te!==null&&(Ct=K(Te,Ct,Je),Le===null?me=Te:Le.sibling=Te,Le=Te);return vn&&Ui(kt,Je),me}for(Te=F(kt,Te);Je<At.length;Je++)tr=yn(Te,kt,Je,At[Je],ae),tr!==null&&(l&&tr.alternate!==null&&Te.delete(tr.key===null?Je:tr.key),Ct=K(tr,Ct,Je),Le===null?me=tr:Le.sibling=tr,Le=tr);return l&&Te.forEach(function(ui){return u(kt,ui)}),vn&&Ui(kt,Je),me}function jr(kt,Ct,At,ae){var me=k(At);if(typeof me!="function")throw Error(o(150));if(At=me.call(At),At==null)throw Error(o(151));for(var Le=me=null,Te=Ct,Je=Ct=0,tr=null,tn=At.next();Te!==null&&!tn.done;Je++,tn=At.next()){Te.index>Je?(tr=Te,Te=null):tr=Te.sibling;var ui=re(kt,Te,tn.value,ae);if(ui===null){Te===null&&(Te=tr);break}l&&Te&&ui.alternate===null&&u(kt,Te),Ct=K(ui,Ct,Je),Le===null?me=ui:Le.sibling=ui,Le=ui,Te=tr}if(tn.done)return O(kt,Te),vn&&Ui(kt,Je),me;if(Te===null){for(;!tn.done;Je++,tn=At.next())tn=Pe(kt,tn.value,ae),tn!==null&&(Ct=K(tn,Ct,Je),Le===null?me=tn:Le.sibling=tn,Le=tn);return vn&&Ui(kt,Je),me}for(Te=F(kt,Te);!tn.done;Je++,tn=At.next())tn=yn(Te,kt,Je,tn.value,ae),tn!==null&&(l&&tn.alternate!==null&&Te.delete(tn.key===null?Je:tn.key),Ct=K(tn,Ct,Je),Le===null?me=tn:Le.sibling=tn,Le=tn);return l&&Te.forEach(function(Qi){return u(kt,Qi)}),vn&&Ui(kt,Je),me}function Li(kt,Ct,At,ae){if(typeof At=="object"&&At!==null&&At.type===g&&At.key===null&&(At=At.props.children),typeof At=="object"&&At!==null){switch(At.$$typeof){case d:t:{for(var me=At.key,Le=Ct;Le!==null;){if(Le.key===me){if(me=At.type,me===g){if(Le.tag===7){O(kt,Le.sibling),Ct=H(Le,At.props.children),Ct.return=kt,kt=Ct;break t}}else if(Le.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===b&&F1(me)===Le.type){O(kt,Le.sibling),Ct=H(Le,At.props),Ct.ref=Wl(kt,Le,At),Ct.return=kt,kt=Ct;break t}O(kt,Le);break}else u(kt,Le);Le=Le.sibling}At.type===g?(Ct=ps(At.props.children,kt.mode,ae,At.key),Ct.return=kt,kt=Ct):(ae=ju(At.type,At.key,At.props,null,kt.mode,ae),ae.ref=Wl(kt,Ct,At),ae.return=kt,kt=ae)}return st(kt);case f:t:{for(Le=At.key;Ct!==null;){if(Ct.key===Le)if(Ct.tag===4&&Ct.stateNode.containerInfo===At.containerInfo&&Ct.stateNode.implementation===At.implementation){O(kt,Ct.sibling),Ct=H(Ct,At.children||[]),Ct.return=kt,kt=Ct;break t}else{O(kt,Ct);break}else u(kt,Ct);Ct=Ct.sibling}Ct=ll(At,kt.mode,ae),Ct.return=kt,kt=Ct}return st(kt);case b:return Le=At._init,Li(kt,Ct,Le(At._payload),ae)}if(I(At))return un(kt,Ct,At,ae);if(k(At))return jr(kt,Ct,At,ae);Gs(kt,At)}return typeof At=="string"&&At!==""||typeof At=="number"?(At=""+At,Ct!==null&&Ct.tag===6?(O(kt,Ct.sibling),Ct=H(Ct,At),Ct.return=kt,kt=Ct):(O(kt,Ct),Ct=yc(At,kt.mode,ae),Ct.return=kt,kt=Ct),st(kt)):O(kt,Ct)}return Li}var Us=D1(!0),Rd=D1(!1),au=aa(null),iu=null,Ws=null,Fd=null;function Dd(){Fd=Ws=iu=null}function j1(l,u,O){lt?(sn(au,u._currentValue),u._currentValue=O):(sn(au,u._currentValue2),u._currentValue2=O)}function jd(l){var u=au.current;We(au),lt?l._currentValue=u:l._currentValue2=u}function Vl(l,u,O){for(;l!==null;){var F=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,F!==null&&(F.childLanes|=u)):F!==null&&(F.childLanes&u)!==u&&(F.childLanes|=u),l===O)break;l=l.return}}function xi(l,u){iu=l,Fd=Ws=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(fr=!0),l.firstContext=null)}function Ia(l){var u=lt?l._currentValue:l._currentValue2;if(Fd!==l)if(l={context:l,memoizedValue:u,next:null},Ws===null){if(iu===null)throw Error(o(308));Ws=l,iu.dependencies={lanes:0,firstContext:l}}else Ws=Ws.next=l;return u}var wo=null;function ou(l){wo===null?wo=[l]:wo.push(l)}function Bd(l,u,O,F){var H=u.interleaved;return H===null?(O.next=O,ou(u)):(O.next=H.next,H.next=O),u.interleaved=O,ni(l,F)}function ni(l,u){l.lanes|=u;var O=l.alternate;for(O!==null&&(O.lanes|=u),O=l,l=l.return;l!==null;)l.childLanes|=u,O=l.alternate,O!==null&&(O.childLanes|=u),O=l,l=l.return;return O.tag===3?O.stateNode:null}var Wi=!1;function xo(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B1(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Vi(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function Co(l,u,O){var F=l.updateQueue;if(F===null)return null;if(F=F.shared,(De&2)!==0){var H=F.pending;return H===null?u.next=u:(u.next=H.next,H.next=u),F.pending=u,ni(l,O)}return H=F.interleaved,H===null?(u.next=u,ou(F)):(u.next=H.next,H.next=u),F.interleaved=u,ni(l,O)}function Yl(l,u,O){if(u=u.updateQueue,u!==null&&(u=u.shared,(O&4194240)!==0)){var F=u.lanes;F&=l.pendingLanes,O|=F,u.lanes=O,oa(l,O)}}function Hd(l,u){var O=l.updateQueue,F=l.alternate;if(F!==null&&(F=F.updateQueue,O===F)){var H=null,K=null;if(O=O.firstBaseUpdate,O!==null){do{var st={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};K===null?H=K=st:K=K.next=st,O=O.next}while(O!==null);K===null?H=K=u:K=K.next=u}else H=K=u;O={baseState:F.baseState,firstBaseUpdate:H,lastBaseUpdate:K,shared:F.shared,effects:F.effects},l.updateQueue=O;return}l=O.lastBaseUpdate,l===null?O.firstBaseUpdate=u:l.next=u,O.lastBaseUpdate=u}function So(l,u,O,F){var H=l.updateQueue;Wi=!1;var K=H.firstBaseUpdate,st=H.lastBaseUpdate,bt=H.shared.pending;if(bt!==null){H.shared.pending=null;var Lt=bt,Wt=Lt.next;Lt.next=null,st===null?K=Wt:st.next=Wt,st=Lt;var ce=l.alternate;ce!==null&&(ce=ce.updateQueue,bt=ce.lastBaseUpdate,bt!==st&&(bt===null?ce.firstBaseUpdate=Wt:bt.next=Wt,ce.lastBaseUpdate=Lt))}if(K!==null){var Pe=H.baseState;st=0,ce=Wt=Lt=null,bt=K;do{var re=bt.lane,yn=bt.eventTime;if((F&re)===re){ce!==null&&(ce=ce.next={eventTime:yn,lane:0,tag:bt.tag,payload:bt.payload,callback:bt.callback,next:null});t:{var un=l,jr=bt;switch(re=u,yn=O,jr.tag){case 1:if(un=jr.payload,typeof un=="function"){Pe=un.call(yn,Pe,re);break t}Pe=un;break t;case 3:un.flags=un.flags&-65537|128;case 0:if(un=jr.payload,re=typeof un=="function"?un.call(yn,Pe,re):un,re==null)break t;Pe=s({},Pe,re);break t;case 2:Wi=!0}}bt.callback!==null&&bt.lane!==0&&(l.flags|=64,re=H.effects,re===null?H.effects=[bt]:re.push(bt))}else yn={eventTime:yn,lane:re,tag:bt.tag,payload:bt.payload,callback:bt.callback,next:null},ce===null?(Wt=ce=yn,Lt=Pe):ce=ce.next=yn,st|=re;if(bt=bt.next,bt===null){if(bt=H.shared.pending,bt===null)break;re=bt,bt=re.next,re.next=null,H.lastBaseUpdate=re,H.shared.pending=null}}while(!0);if(ce===null&&(Lt=Pe),H.baseState=Lt,H.firstBaseUpdate=Wt,H.lastBaseUpdate=ce,u=H.shared.interleaved,u!==null){H=u;do st|=H.lane,H=H.next;while(H!==u)}else K===null&&(H.shared.lanes=0);Lo|=st,l.lanes=st,l.memoizedState=Pe}}function Vs(l,u,O){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var F=l[u],H=F.callback;if(H!==null){if(F.callback=null,F=O,typeof H!="function")throw Error(o(191,H));H.call(F)}}}var Zl={},Vr=aa(Zl),Kl=aa(Zl),Jo=aa(Zl);function Na(l){if(l===Zl)throw Error(o(174));return l}function $l(l,u){sn(Jo,u),sn(Kl,l),sn(Vr,Zl),l=z(u),We(Vr),sn(Vr,l)}function ts(){We(Vr),We(Kl),We(Jo)}function zd(l){var u=Na(Jo.current),O=Na(Vr.current);u=W(O,l.type,u),O!==u&&(sn(Kl,l),sn(Vr,u))}function su(l){Kl.current===l&&(We(Vr),We(Kl))}var Dn=aa(0);function lu(l){for(var u=l;u!==null;){if(u.tag===13){var O=u.memoizedState;if(O!==null&&(O=O.dehydrated,O===null||Fn(O)||na(O)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Gd=[];function Ud(){for(var l=0;l<Gd.length;l++){var u=Gd[l];lt?u._workInProgressVersionPrimary=null:u._workInProgressVersionSecondary=null}Gd.length=0}var cu=c.ReactCurrentDispatcher,ya=c.ReactCurrentBatchConfig,ri=0,An=null,Qn=null,lr=null,Xl=!1,es=!1,ql=0,n2=0;function Wn(){throw Error(o(321))}function Ql(l,u){if(u===null)return!1;for(var O=0;O<u.length&&O<l.length;O++)if(!ut(l[O],u[O]))return!1;return!0}function ns(l,u,O,F,H,K){if(ri=K,An=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,cu.current=l===null||l.memoizedState===null?mu:eh,l=O(F,H),es){K=0;do{if(es=!1,ql=0,25<=K)throw Error(o(301));K+=1,lr=Qn=null,u.updateQueue=null,cu.current=nh,l=O(F,H)}while(es)}if(cu.current=as,u=Qn!==null&&Qn.next!==null,ri=0,lr=Qn=An=null,Xl=!1,u)throw Error(o(300));return l}function Jl(){var l=ql!==0;return ql=0,l}function ai(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lr===null?An.memoizedState=lr=l:lr=lr.next=l,lr}function Yr(){if(Qn===null){var l=An.alternate;l=l!==null?l.memoizedState:null}else l=Qn.next;var u=lr===null?An.memoizedState:lr.next;if(u!==null)lr=u,Qn=l;else{if(l===null)throw Error(o(310));Qn=l,l={memoizedState:Qn.memoizedState,baseState:Qn.baseState,baseQueue:Qn.baseQueue,queue:Qn.queue,next:null},lr===null?An.memoizedState=lr=l:lr=lr.next=l}return lr}function Ci(l,u){return typeof u=="function"?u(l):u}function tc(l){var u=Yr(),O=u.queue;if(O===null)throw Error(o(311));O.lastRenderedReducer=l;var F=Qn,H=F.baseQueue,K=O.pending;if(K!==null){if(H!==null){var st=H.next;H.next=K.next,K.next=st}F.baseQueue=H=K,O.pending=null}if(H!==null){K=H.next,F=F.baseState;var bt=st=null,Lt=null,Wt=K;do{var ce=Wt.lane;if((ri&ce)===ce)Lt!==null&&(Lt=Lt.next={lane:0,action:Wt.action,hasEagerState:Wt.hasEagerState,eagerState:Wt.eagerState,next:null}),F=Wt.hasEagerState?Wt.eagerState:l(F,Wt.action);else{var Pe={lane:ce,action:Wt.action,hasEagerState:Wt.hasEagerState,eagerState:Wt.eagerState,next:null};Lt===null?(bt=Lt=Pe,st=F):Lt=Lt.next=Pe,An.lanes|=ce,Lo|=ce}Wt=Wt.next}while(Wt!==null&&Wt!==K);Lt===null?st=F:Lt.next=bt,ut(F,u.memoizedState)||(fr=!0),u.memoizedState=F,u.baseState=st,u.baseQueue=Lt,O.lastRenderedState=F}if(l=O.interleaved,l!==null){H=l;do K=H.lane,An.lanes|=K,Lo|=K,H=H.next;while(H!==l)}else H===null&&(O.lanes=0);return[u.memoizedState,O.dispatch]}function uu(l){var u=Yr(),O=u.queue;if(O===null)throw Error(o(311));O.lastRenderedReducer=l;var F=O.dispatch,H=O.pending,K=u.memoizedState;if(H!==null){O.pending=null;var st=H=H.next;do K=l(K,st.action),st=st.next;while(st!==H);ut(K,u.memoizedState)||(fr=!0),u.memoizedState=K,u.baseQueue===null&&(u.baseState=K),O.lastRenderedState=K}return[K,F]}function ec(){}function Wd(l,u){var O=An,F=Yr(),H=u(),K=!ut(F.memoizedState,H);if(K&&(F.memoizedState=H,fr=!0),F=F.queue,Xd(Zd.bind(null,O,F,l),[l]),F.getSnapshot!==u||K||lr!==null&&lr.memoizedState.tag&1){if(O.flags|=2048,rs(9,Yd.bind(null,O,F,H,u),void 0,null),Gn===null)throw Error(o(349));(ri&30)!==0||Vd(O,u,H)}return H}function Vd(l,u,O){l.flags|=16384,l={getSnapshot:u,value:O},u=An.updateQueue,u===null?(u={lastEffect:null,stores:null},An.updateQueue=u,u.stores=[l]):(O=u.stores,O===null?u.stores=[l]:O.push(l))}function Yd(l,u,O,F){u.value=O,u.getSnapshot=F,Kd(u)&&$d(l)}function Zd(l,u,O){return O(function(){Kd(u)&&$d(l)})}function Kd(l){var u=l.getSnapshot;l=l.value;try{var O=u();return!ut(l,O)}catch{return!0}}function $d(l){var u=ni(l,1);u!==null&&jn(u,l,1,-1)}function Yi(l){var u=ai();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:l},u.queue=l,l=l.dispatch=H1.bind(null,An,l),[u.memoizedState,l]}function rs(l,u,O,F){return l={tag:l,create:u,destroy:O,deps:F,next:null},u=An.updateQueue,u===null?(u={lastEffect:null,stores:null},An.updateQueue=u,u.lastEffect=l.next=l):(O=u.lastEffect,O===null?u.lastEffect=l.next=l:(F=O.next,O.next=l,l.next=F,u.lastEffect=l)),l}function du(){return Yr().memoizedState}function hu(l,u,O,F){var H=ai();An.flags|=l,H.memoizedState=rs(1|u,O,void 0,F===void 0?null:F)}function fu(l,u,O,F){var H=Yr();F=F===void 0?null:F;var K=void 0;if(Qn!==null){var st=Qn.memoizedState;if(K=st.destroy,F!==null&&Ql(F,st.deps)){H.memoizedState=rs(u,O,K,F);return}}An.flags|=l,H.memoizedState=rs(1|u,O,K,F)}function Ys(l,u){return hu(8390656,8,l,u)}function Xd(l,u){return fu(2048,8,l,u)}function qd(l,u){return fu(4,2,l,u)}function Qd(l,u){return fu(4,4,l,u)}function wn(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function pu(l,u,O){return O=O!=null?O.concat([l]):null,fu(4,4,wn.bind(null,u,l),O)}function Zs(){}function Ks(l,u){var O=Yr();u=u===void 0?null:u;var F=O.memoizedState;return F!==null&&u!==null&&Ql(u,F[1])?F[0]:(O.memoizedState=[l,u],l)}function Jd(l,u){var O=Yr();u=u===void 0?null:u;var F=O.memoizedState;return F!==null&&u!==null&&Ql(u,F[1])?F[0]:(l=l(),O.memoizedState=[l,u],l)}function gu(l,u,O){return(ri&21)===0?(l.baseState&&(l.baseState=!1,fr=!0),l.memoizedState=O):(ut(O,u)||(O=jl(),An.lanes|=O,Lo|=O,l.baseState=!0),u)}function nc(l,u){var O=Me;Me=O!==0&&4>O?O:4,l(!0);var F=ya.transition;ya.transition={};try{l(!1),u()}finally{Me=O,ya.transition=F}}function rc(){return Yr().memoizedState}function $s(l,u,O){var F=kr(l);
vendor: 18,635 bytes, lines 18-20
18if(O={lane:F,action:O,hasEagerState:!1,eagerState:null,next:null},z1(l))G1(u,O);else if(O=Bd(l,u,O,F),O!==null){var H=yr();jn(O,l,F,H),th(O,u,F)}}function H1(l,u,O){var F=kr(l),H={lane:F,action:O,hasEagerState:!1,eagerState:null,next:null};if(z1(l))G1(u,H);else{var K=l.alternate;if(l.lanes===0&&(K===null||K.lanes===0)&&(K=u.lastRenderedReducer,K!==null))try{var st=u.lastRenderedState,bt=K(st,O);if(H.hasEagerState=!0,H.eagerState=bt,ut(bt,st)){var Lt=u.interleaved;Lt===null?(H.next=H,ou(u)):(H.next=Lt.next,Lt.next=H),u.interleaved=H;return}}catch{}O=Bd(l,u,H,F),O!==null&&(H=yr(),jn(O,l,F,H),th(O,u,F))}}function z1(l){var u=l.alternate;return l===An||u!==null&&u===An}function G1(l,u){es=Xl=!0;var O=l.pending;O===null?u.next=u:(u.next=O.next,O.next=u),l.pending=u}function th(l,u,O){if((O&4194240)!==0){var F=u.lanes;F&=l.pendingLanes,O|=F,u.lanes=O,oa(l,O)}}var as={readContext:Ia,useCallback:Wn,useContext:Wn,useEffect:Wn,useImperativeHandle:Wn,useInsertionEffect:Wn,useLayoutEffect:Wn,useMemo:Wn,useReducer:Wn,useRef:Wn,useState:Wn,useDebugValue:Wn,useDeferredValue:Wn,useTransition:Wn,useMutableSource:Wn,useSyncExternalStore:Wn,useId:Wn,unstable_isNewReconciler:!1},mu={readContext:Ia,useCallback:function(l,u){return ai().memoizedState=[l,u===void 0?null:u],l},useContext:Ia,useEffect:Ys,useImperativeHandle:function(l,u,O){return O=O!=null?O.concat([l]):null,hu(4194308,4,wn.bind(null,u,l),O)},useLayoutEffect:function(l,u){return hu(4194308,4,l,u)},useInsertionEffect:function(l,u){return hu(4,2,l,u)},useMemo:function(l,u){var O=ai();return u=u===void 0?null:u,l=l(),O.memoizedState=[l,u],l},useReducer:function(l,u,O){var F=ai();return u=O!==void 0?O(u):u,F.memoizedState=F.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},F.queue=l,l=l.dispatch=$s.bind(null,An,l),[F.memoizedState,l]},useRef:function(l){var u=ai();return l={current:l},u.memoizedState=l},useState:Yi,useDebugValue:Zs,useDeferredValue:function(l){return ai().memoizedState=l},useTransition:function(){var l=Yi(!1),u=l[0];return l=nc.bind(null,l[1]),ai().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,O){var F=An,H=ai();if(vn){if(O===void 0)throw Error(o(407));O=O()}else{if(O=u(),Gn===null)throw Error(o(349));(ri&30)!==0||Vd(F,u,O)}H.memoizedState=O;var K={value:O,getSnapshot:u};return H.queue=K,Ys(Zd.bind(null,F,K,l),[l]),F.flags|=2048,rs(9,Yd.bind(null,F,K,O,u),void 0,null),O},useId:function(){var l=ai(),u=Gn.identifierPrefix;if(vn){var O=sa,F=Tn;O=(F&~(1<<32-ia(F)-1)).toString(32)+O,u=":"+u+"R"+O,O=ql++,0<O&&(u+="H"+O.toString(32)),u+=":"}else O=n2++,u=":"+u+"r"+O.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},eh={readContext:Ia,useCallback:Ks,useContext:Ia,useEffect:Xd,useImperativeHandle:pu,useInsertionEffect:qd,useLayoutEffect:Qd,useMemo:Jd,useReducer:tc,useRef:du,useState:function(){return tc(Ci)},useDebugValue:Zs,useDeferredValue:function(l){var u=Yr();return gu(u,Qn.memoizedState,l)},useTransition:function(){var l=tc(Ci)[0],u=Yr().memoizedState;return[l,u]},useMutableSource:ec,useSyncExternalStore:Wd,useId:rc,unstable_isNewReconciler:!1},nh={readContext:Ia,useCallback:Ks,useContext:Ia,useEffect:Xd,useImperativeHandle:pu,useInsertionEffect:qd,useLayoutEffect:Qd,useMemo:Jd,useReducer:uu,useRef:du,useState:function(){return uu(Ci)},useDebugValue:Zs,useDeferredValue:function(l){var u=Yr();return Qn===null?u.memoizedState=l:gu(u,Qn.memoizedState,l)},useTransition:function(){var l=uu(Ci)[0],u=Yr().memoizedState;return[l,u]},useMutableSource:ec,useSyncExternalStore:Wd,useId:rc,unstable_isNewReconciler:!1};function ba(l,u){if(l&&l.defaultProps){u=s({},u),l=l.defaultProps;for(var O in l)u[O]===void 0&&(u[O]=l[O]);return u}return u}function ac(l,u,O,F){u=l.memoizedState,O=O(F,u),O=O==null?u:s({},u,O),l.memoizedState=O,l.lanes===0&&(l.updateQueue.baseState=O)}var vu={isMounted:function(l){return(l=l._reactInternals)?T(l)===l:!1},enqueueSetState:function(l,u,O){l=l._reactInternals;var F=yr(),H=kr(l),K=Vi(F,H);K.payload=u,O!=null&&(K.callback=O),u=Co(l,K,H),u!==null&&(jn(u,l,H,F),Yl(u,l,H))},enqueueReplaceState:function(l,u,O){l=l._reactInternals;var F=yr(),H=kr(l),K=Vi(F,H);K.tag=1,K.payload=u,O!=null&&(K.callback=O),u=Co(l,K,H),u!==null&&(jn(u,l,H,F),Yl(u,l,H))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var O=yr(),F=kr(l),H=Vi(O,F);H.tag=2,u!=null&&(H.callback=u),u=Co(l,H,F),u!==null&&(jn(u,l,F,O),Yl(u,l,F))}};function rh(l,u,O,F,H,K,st){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(F,K,st):u.prototype&&u.prototype.isPureReactComponent?!ru(O,F)||!ru(H,K):!0}function U1(l,u,O){var F=!1,H=qn,K=u.contextType;return typeof K=="object"&&K!==null?K=Ia(K):(H=ar(u)?Gi:hr.current,F=u.contextTypes,K=(F=F!=null)?ti(l,H):qn),u=new u(O,K),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=vu,l.stateNode=u,u._reactInternals=l,F&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=H,l.__reactInternalMemoizedMaskedChildContext=K),u}function W1(l,u,O,F){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(O,F),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(O,F),u.state!==l&&vu.enqueueReplaceState(u,u.state,null)}function ic(l,u,O,F){var H=l.stateNode;H.props=O,H.state=l.memoizedState,H.refs={},xo(l);var K=u.contextType;typeof K=="object"&&K!==null?H.context=Ia(K):(K=ar(u)?Gi:hr.current,H.context=ti(l,K)),H.state=l.memoizedState,K=u.getDerivedStateFromProps,typeof K=="function"&&(ac(l,u,K,O),H.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(u=H.state,typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount(),u!==H.state&&vu.enqueueReplaceState(H,H.state,null),So(l,O,H,F),H.state=l.memoizedState),typeof H.componentDidMount=="function"&&(l.flags|=4194308)}function wa(l,u){try{var O="",F=u;do O+=e2(F),F=F.return;while(F);var H=O}catch(K){H=`
19Error generating stack: `+K.message+`
20`+K.stack}return{value:l,source:u,stack:H,digest:null}}function yu(l,u,O){return{value:l,source:null,stack:O??null,digest:u??null}}function _o(l,u){try{console.error(u.value)}catch(O){setTimeout(function(){throw O})}}var Si=typeof WeakMap=="function"?WeakMap:Map;function Xs(l,u,O){O=Vi(-1,O),O.tag=3,O.payload={element:null};var F=u.value;return O.callback=function(){Cn||(Cn=!0,Zn=F),_o(l,u)},O}function _i(l,u,O){O=Vi(-1,O),O.tag=3;var F=l.type.getDerivedStateFromError;if(typeof F=="function"){var H=u.value;O.payload=function(){return F(H)},O.callback=function(){_o(l,u)}}var K=l.stateNode;return K!==null&&typeof K.componentDidCatch=="function"&&(O.callback=function(){_o(l,u),typeof F!="function"&&(On===null?On=new Set([this]):On.add(this));var st=u.stack;this.componentDidCatch(u.value,{componentStack:st!==null?st:""})}),O}function bu(l,u,O){var F=l.pingCache;if(F===null){F=l.pingCache=new Si;var H=new Set;F.set(u,H)}else H=F.get(u),H===void 0&&(H=new Set,F.set(u,H));H.has(O)||(H.add(O),l=q1.bind(null,l,u,O),u.then(l,l))}function V1(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function Y1(l,u,O,F,H){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,O.flags|=131072,O.flags&=-52805,O.tag===1&&(O.alternate===null?O.tag=17:(u=Vi(-1,1),u.tag=2,Co(O,u,1))),O.lanes|=1),l):(l.flags|=65536,l.lanes=H,l)}var is=c.ReactCurrentOwner,fr=!1;function Jn(l,u,O,F){u.child=l===null?Rd(u,null,O,F):Us(u,l.child,O,F)}function oc(l,u,O,F,H){O=O.render;var K=u.ref;return xi(u,H),F=ns(l,u,O,F,K,H),O=Jl(),l!==null&&!fr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~H,Ei(l,u,H)):(vn&&O&&Id(u),u.flags|=1,Jn(l,u,F,H),u.child)}function wu(l,u,O,F,H){if(l===null){var K=O.type;return typeof K=="function"&&!Fu(K)&&K.defaultProps===void 0&&O.compare===null&&O.defaultProps===void 0?(u.tag=15,u.type=K,os(l,u,K,F,H)):(l=ju(O.type,null,F,u,u.mode,H),l.ref=u.ref,l.return=u,u.child=l)}if(K=l.child,(l.lanes&H)===0){var st=K.memoizedProps;if(O=O.compare,O=O!==null?O:ru,O(st,F)&&l.ref===u.ref)return Ei(l,u,H)}return u.flags|=1,l=Fo(K,F),l.ref=u.ref,l.return=u,u.child=l}function os(l,u,O,F,H){if(l!==null){var K=l.memoizedProps;if(ru(K,F)&&l.ref===u.ref)if(fr=!1,u.pendingProps=F=K,(l.lanes&H)!==0)(l.flags&131072)!==0&&(fr=!0);else return u.lanes=l.lanes,Ei(l,u,H)}return cn(l,u,O,F,H)}function Zi(l,u,O){var F=u.pendingProps,H=F.children,K=l!==null?l.memoizedState:null;if(F.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},sn(Fa,Or),Or|=O;else{if((O&1073741824)===0)return l=K!==null?K.baseLanes|O:O,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,sn(Fa,Or),Or|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},F=K!==null?K.baseLanes:O,sn(Fa,Or),Or|=F}else K!==null?(F=K.baseLanes|O,u.memoizedState=null):F=O,sn(Fa,Or),Or|=F;return Jn(l,u,H,O),u.child}function xn(l,u){var O=u.ref;(l===null&&O!==null||l!==null&&l.ref!==O)&&(u.flags|=512,u.flags|=2097152)}function cn(l,u,O,F,H){var K=ar(O)?Gi:hr.current;return K=ti(u,K),xi(u,H),O=ns(l,u,O,F,K,H),F=Jl(),l!==null&&!fr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~H,Ei(l,u,H)):(vn&&F&&Id(u),u.flags|=1,Jn(l,u,O,H),u.child)}function Ki(l,u,O,F,H){if(ar(O)){var K=!0;fo(u)}else K=!1;if(xi(u,H),u.stateNode===null)qs(l,u),U1(u,O,F),ic(u,O,F,H),F=!0;else if(l===null){var st=u.stateNode,bt=u.memoizedProps;st.props=bt;var Lt=st.context,Wt=O.contextType;typeof Wt=="object"&&Wt!==null?Wt=Ia(Wt):(Wt=ar(O)?Gi:hr.current,Wt=ti(u,Wt));var ce=O.getDerivedStateFromProps,Pe=typeof ce=="function"||typeof st.getSnapshotBeforeUpdate=="function";Pe||typeof st.UNSAFE_componentWillReceiveProps!="function"&&typeof st.componentWillReceiveProps!="function"||(bt!==F||Lt!==Wt)&&W1(u,st,F,Wt),Wi=!1;var re=u.memoizedState;st.state=re,So(u,F,st,H),Lt=u.memoizedState,bt!==F||re!==Lt||Ar.current||Wi?(typeof ce=="function"&&(ac(u,O,ce,F),Lt=u.memoizedState),(bt=Wi||rh(u,O,bt,F,re,Lt,Wt))?(Pe||typeof st.UNSAFE_componentWillMount!="function"&&typeof st.componentWillMount!="function"||(typeof st.componentWillMount=="function"&&st.componentWillMount(),typeof st.UNSAFE_componentWillMount=="function"&&st.UNSAFE_componentWillMount()),typeof st.componentDidMount=="function"&&(u.flags|=4194308)):(typeof st.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=F,u.memoizedState=Lt),st.props=F,st.state=Lt,st.context=Wt,F=bt):(typeof st.componentDidMount=="function"&&(u.flags|=4194308),F=!1)}else{st=u.stateNode,B1(l,u),bt=u.memoizedProps,Wt=u.type===u.elementType?bt:ba(u.type,bt),st.props=Wt,Pe=u.pendingProps,re=st.context,Lt=O.contextType,typeof Lt=="object"&&Lt!==null?Lt=Ia(Lt):(Lt=ar(O)?Gi:hr.current,Lt=ti(u,Lt));var yn=O.getDerivedStateFromProps;(ce=typeof yn=="function"||typeof st.getSnapshotBeforeUpdate=="function")||typeof st.UNSAFE_componentWillReceiveProps!="function"&&typeof st.componentWillReceiveProps!="function"||(bt!==Pe||re!==Lt)&&W1(u,st,F,Lt),Wi=!1,re=u.memoizedState,st.state=re,So(u,F,st,H);var un=u.memoizedState;bt!==Pe||re!==un||Ar.current||Wi?(typeof yn=="function"&&(ac(u,O,yn,F),un=u.memoizedState),(Wt=Wi||rh(u,O,Wt,F,re,un,Lt)||!1)?(ce||typeof st.UNSAFE_componentWillUpdate!="function"&&typeof st.componentWillUpdate!="function"||(typeof st.componentWillUpdate=="function"&&st.componentWillUpdate(F,un,Lt),typeof st.UNSAFE_componentWillUpdate=="function"&&st.UNSAFE_componentWillUpdate(F,un,Lt)),typeof st.componentDidUpdate=="function"&&(u.flags|=4),typeof st.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof st.componentDidUpdate!="function"||bt===l.memoizedProps&&re===l.memoizedState||(u.flags|=4),typeof st.getSnapshotBeforeUpdate!="function"||bt===l.memoizedProps&&re===l.memoizedState||(u.flags|=1024),u.memoizedProps=F,u.memoizedState=un),st.props=F,st.state=un,st.context=Lt,F=Wt):(typeof st.componentDidUpdate!="function"||bt===l.memoizedProps&&re===l.memoizedState||(u.flags|=4),typeof st.getSnapshotBeforeUpdate!="function"||bt===l.memoizedProps&&re===l.memoizedState||(u.flags|=1024),F=!1)}return pr(l,u,O,F,K,H)}function pr(l,u,O,F,H,K){xn(l,u);var st=(u.flags&128)!==0;if(!F&&!st)return H&&Ns(u,O,!1),Ei(l,u,K);F=u.stateNode,is.current=u;var bt=st&&typeof O.getDerivedStateFromError!="function"?null:F.render();return u.flags|=1,l!==null&&st?(u.child=Us(u,l.child,null,K),u.child=Us(u,null,bt,K)):Jn(l,u,bt,K),u.memoizedState=F.state,H&&Ns(u,O,!0),u.child}function Zr(l){var u=l.stateNode;u.pendingContext?Ko(l,u.pendingContext,u.pendingContext!==u.context):u.context&&Ko(l,u.context,!1),$l(l,u.containerInfo)}function Eo(l,u,O,F,H){return zs(),nu(H),u.flags|=256,Jn(l,u,O,F),u.child}var Oo={dehydrated:null,treeContext:null,retryLane:0};function Rr(l){return{baseLanes:l,cachePool:null,transitions:null}}function sc(l,u,O){var F=u.pendingProps,H=Dn.current,K=!1,st=(u.flags&128)!==0,bt;if((bt=st)||(bt=l!==null&&l.memoizedState===null?!1:(H&2)!==0),bt?(K=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(H|=1),sn(Dn,H&1),l===null)return Nd(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((u.mode&1)===0?u.lanes=1:na(l)?u.lanes=8:u.lanes=1073741824,null):(st=F.children,l=F.fallback,K?(F=u.mode,K=u.child,st={mode:"hidden",children:st},(F&1)===0&&K!==null?(K.childLanes=0,K.pendingProps=st):K=la(st,F,0,null),l=ps(l,F,O,null),K.return=u,l.return=u,K.sibling=l,u.child=K,u.child.memoizedState=Rr(O),u.memoizedState=Oo,l):xu(u,st));if(H=l.memoizedState,H!==null&&(bt=H.dehydrated,bt!==null))return Cu(l,u,st,F,bt,H,O);if(K){K=F.fallback,st=u.mode,H=l.child,bt=H.sibling;var Lt={mode:"hidden",children:F.children};return(st&1)===0&&u.child!==H?(F=u.child,F.childLanes=0,F.pendingProps=Lt,u.deletions=null):(F=Fo(H,Lt),F.subtreeFlags=H.subtreeFlags&14680064),bt!==null?K=Fo(bt,K):(K=ps(K,st,O,null),K.flags|=2),K.return=u,F.return=u,F.sibling=K,u.child=F,F=K,K=u.child,st=l.child.memoizedState,st=st===null?Rr(O):{baseLanes:st.baseLanes|O,cachePool:null,transitions:st.transitions},K.memoizedState=st,K.childLanes=l.childLanes&~O,u.memoizedState=Oo,F}return K=l.child,l=K.sibling,F=Fo(K,{mode:"visible",children:F.children}),(u.mode&1)===0&&(F.lanes=O),F.return=u,F.sibling=null,l!==null&&(O=u.deletions,O===null?(u.deletions=[l],u.flags|=16):O.push(l)),u.child=F,u.memoizedState=null,F}function xu(l,u){return u=la({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function lc(l,u,O,F){return F!==null&&nu(F),Us(u,l.child,null,O),l=xu(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function Cu(l,u,O,F,H,K,st){if(O)return u.flags&256?(u.flags&=-257,F=yu(Error(o(422))),lc(l,u,st,F)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(K=F.fallback,H=u.mode,F=la({mode:"visible",children:F.children},H,0,null),K=ps(K,H,st,null),K.flags|=2,F.return=u,K.return=u,F.sibling=K,u.child=F,(u.mode&1)!==0&&Us(u,l.child,null,st),u.child.memoizedState=Rr(st),u.memoizedState=Oo,K);if((u.mode&1)===0)return lc(l,u,st,null);if(na(H))return F=Bi(H).digest,K=Error(o(419)),F=yu(K,F,void 0),lc(l,u,st,F);if(O=(st&l.childLanes)!==0,fr||O){if(F=Gn,F!==null){switch(st&-st){case 4:H=2;break;case 16:H=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:H=32;break;case 536870912:H=268435456;break;default:H=0}H=(H&(F.suspendedLanes|st))!==0?0:H,H!==0&&H!==K.retryLane&&(K.retryLane=H,ni(l,H),jn(F,l,H,-1))}return Au(),F=yu(Error(o(421))),lc(l,u,st,F)}return Fn(H)?(u.flags|=128,u.child=l.child,u=a2.bind(null,l),Ja(H,u),null):(l=K.treeContext,gt&&(Nr=Pd(H),Wr=u,vn=!0,ei=null,Hs=!1,l!==null&&(Un[sr++]=Tn,Un[sr++]=sa,Un[sr++]=Aa,Tn=l.id,sa=l.overflow,Aa=u)),u=xu(u,F.children),u.flags|=4096,u)}function ah(l,u,O){l.lanes|=u;var F=l.alternate;F!==null&&(F.lanes|=u),Vl(l.return,u,O)}function ii(l,u,O,F,H){var K=l.memoizedState;K===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:F,tail:O,tailMode:H}:(K.isBackwards=u,K.rendering=null,K.renderingStartTime=0,K.last=F,K.tail=O,K.tailMode=H)}function cc(l,u,O){var F=u.pendingProps,H=F.revealOrder,K=F.tail;if(Jn(l,u,F.children,O),F=Dn.current,(F&2)!==0)F=F&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)t:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&ah(l,O,u);else if(l.tag===19)ah(l,O,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break t;for(;l.sibling===null;){if(l.return===null||l.return===u)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}F&=1}if(sn(Dn,F),(u.mode&1)===0)u.memoizedState=null;else switch(H){case"forwards":for(O=u.child,H=null;O!==null;)l=O.alternate,l!==null&&lu(l)===null&&(H=O),O=O.sibling;O=H,O===null?(H=u.child,u.child=null):(H=O.sibling,O.sibling=null),ii(u,!1,H,O,K);break;case"backwards":for(O=null,H=u.child,u.child=null;H!==null;){if(l=H.alternate,l!==null&&lu(l)===null){u.child=H;break}l=H.sibling,H.sibling=O,O=H,H=l}ii(u,!0,O,null,K);break;case"together":ii(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function qs(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Ei(l,u,O){if(l!==null&&(u.dependencies=l.dependencies),Lo|=u.lanes,(O&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(o(153));if(u.child!==null){for(l=u.child,O=Fo(l,l.pendingProps),u.child=O,O.return=u;l.sibling!==null;)l=l.sibling,O=O.sibling=Fo(l,l.pendingProps),O.return=u;O.sibling=null}return u.child}function r2(l,u,O){switch(u.tag){case 3:Zr(u),zs();break;case 5:zd(u);break;case 1:ar(u.type)&&fo(u);break;case 4:$l(u,u.stateNode.containerInfo);break;case 10:j1(u,u.type._context,u.memoizedProps.value);break;case 13:var F=u.memoizedState;if(F!==null)return F.dehydrated!==null?(sn(Dn,Dn.current&1),u.flags|=128,null):(O&u.child.childLanes)!==0?sc(l,u,O):(sn(Dn,Dn.current&1),l=Ei(l,u,O),l!==null?l.sibling:null);sn(Dn,Dn.current&1);break;case 19:if(F=(O&u.childLanes)!==0,(l.flags&128)!==0){if(F)return cc(l,u,O);u.flags|=128}var H=u.memoizedState;if(H!==null&&(H.rendering=null,H.tail=null,H.lastEffect=null),sn(Dn,Dn.current),F)break;return null;case 22:case 23:return u.lanes=0,Zi(l,u,O)}return Ei(l,u,O)}function _r(l){l.flags|=4}function ss(l,u){if(l!==null&&l.child===u.child)return!0;
vendor: 5,096 bytes, line 20
20if((u.flags&16)!==0)return!1;for(l=u.child;l!==null;){if((l.flags&12854)!==0||(l.subtreeFlags&12854)!==0)return!1;l=l.sibling}return!0}var Oi,ko,ls,Kr;if(dt)Oi=function(l,u){for(var O=u.child;O!==null;){if(O.tag===5||O.tag===6)X(l,O.stateNode);else if(O.tag!==4&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===u)break;for(;O.sibling===null;){if(O.return===null||O.return===u)return;O=O.return}O.sibling.return=O.return,O=O.sibling}},ko=function(){},ls=function(l,u,O,F,H){if(l=l.memoizedProps,l!==F){var K=u.stateNode,st=Na(Vr.current);O=rt(K,O,l,F,H,st),(u.updateQueue=O)&&_r(u)}},Kr=function(l,u,O,F){O!==F&&_r(u)};else if(yt){Oi=function(l,u,O,F){for(var H=u.child;H!==null;){if(H.tag===5){var K=H.stateNode;O&&F&&(K=Vo(K,H.type,H.memoizedProps,H)),X(l,K)}else if(H.tag===6)K=H.stateNode,O&&F&&(K=ho(K,H.memoizedProps,H)),X(l,K);else if(H.tag!==4){if(H.tag===22&&H.memoizedState!==null)K=H.child,K!==null&&(K.return=H),Oi(l,H,!0,!0);else if(H.child!==null){H.child.return=H,H=H.child;continue}}if(H===u)break;for(;H.sibling===null;){if(H.return===null||H.return===u)return;H=H.return}H.sibling.return=H.return,H=H.sibling}};var xa=function(l,u,O,F){for(var H=u.child;H!==null;){if(H.tag===5){var K=H.stateNode;O&&F&&(K=Vo(K,H.type,H.memoizedProps,H)),zn(l,K)}else if(H.tag===6)K=H.stateNode,O&&F&&(K=ho(K,H.memoizedProps,H)),zn(l,K);else if(H.tag!==4){if(H.tag===22&&H.memoizedState!==null)K=H.child,K!==null&&(K.return=H),xa(l,H,!0,!0);else if(H.child!==null){H.child.return=H,H=H.child;continue}}if(H===u)break;for(;H.sibling===null;){if(H.return===null||H.return===u)return;H=H.return}H.sibling.return=H.return,H=H.sibling}};ko=function(l,u){var O=u.stateNode;if(!ss(l,u)){l=O.containerInfo;var F=gn(l);xa(F,u,!1,!1),O.pendingChildren=F,_r(u),ga(l,F)}},ls=function(l,u,O,F,H){var K=l.stateNode,st=l.memoizedProps;if((l=ss(l,u))&&st===F)u.stateNode=K;else{var bt=u.stateNode,Lt=Na(Vr.current),Wt=null;st!==F&&(Wt=rt(bt,O,st,F,H,Lt)),l&&Wt===null?u.stateNode=K:(K=Ue(K,Wt,O,st,F,u,l,bt),q(K,O,F,H,Lt)&&_r(u),u.stateNode=K,l?_r(u):Oi(K,u,!1,!1))}},Kr=function(l,u,O,F){O!==F?(l=Na(Jo.current),O=Na(Vr.current),u.stateNode=ft(F,l,O,u),_r(u)):u.stateNode=l.stateNode}}else ko=function(){},ls=function(){},Kr=function(){};function oi(l,u){if(!vn)switch(l.tailMode){case"hidden":u=l.tail;for(var O=null;u!==null;)u.alternate!==null&&(O=u),u=u.sibling;O===null?l.tail=null:O.sibling=null;break;case"collapsed":O=l.tail;for(var F=null;O!==null;)O.alternate!==null&&(F=O),O=O.sibling;F===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:F.sibling=null}}function In(l){var u=l.alternate!==null&&l.alternate.child===l.child,O=0,F=0;if(u)for(var H=l.child;H!==null;)O|=H.lanes|H.childLanes,F|=H.subtreeFlags&14680064,F|=H.flags&14680064,H.return=l,H=H.sibling;else for(H=l.child;H!==null;)O|=H.lanes|H.childLanes,F|=H.subtreeFlags,F|=H.flags,H.return=l,H=H.sibling;return l.subtreeFlags|=F,l.childLanes=O,u}function $i(l,u,O){var F=u.pendingProps;switch(Gl(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return In(u),null;case 1:return ar(u.type)&&yi(),In(u),null;case 3:return O=u.stateNode,ts(),We(Ar),We(hr),Ud(),O.pendingContext&&(O.context=O.pendingContext,O.pendingContext=null),(l===null||l.child===null)&&(eu(u)?_r(u):l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,ei!==null&&(Lu(ei),ei=null))),ko(l,u),In(u),null;case 5:su(u),O=Na(Jo.current);var H=u.type;if(l!==null&&u.stateNode!=null)ls(l,u,H,F,O),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!F){if(u.stateNode===null)throw Error(o(166));return In(u),null}if(l=Na(Vr.current),eu(u)){if(!gt)throw Error(o(175));l=Md(u.stateNode,u.type,u.memoizedProps,O,l,u,!Hs),u.updateQueue=l,l!==null&&_r(u)}else{var K=at(H,F,O,l,u);Oi(K,u,!1,!1),u.stateNode=K,q(K,H,F,O,l)&&_r(u)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return In(u),null;case 6:if(l&&u.stateNode!=null)Kr(l,u,l.memoizedProps,F);else{if(typeof F!="string"&&u.stateNode===null)throw Error(o(166));if(l=Na(Jo.current),O=Na(Vr.current),eu(u)){if(!gt)throw Error(o(176));if(l=u.stateNode,O=u.memoizedProps,(F=ra(l,O,u,!Hs))&&(H=Wr,H!==null))switch(H.tag){case 3:Td(H.stateNode.containerInfo,l,O,(H.mode&1)!==0);break;case 5:As(H.type,H.memoizedProps,H.stateNode,l,O,(H.mode&1)!==0)}F&&_r(u)}else u.stateNode=ft(F,l,O,u)}return In(u),null;case 13:if(We(Dn),F=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(vn&&Nr!==null&&(u.mode&1)!==0&&(u.flags&128)===0)R1(),zs(),u.flags|=98560,H=!1;else if(H=eu(u),F!==null&&F.dehydrated!==null){if(l===null){if(!H)throw Error(o(318));if(!gt)throw Error(o(344));if(H=u.memoizedState,H=H!==null?H.dehydrated:null,!H)throw Error(o(317));$c(H,u)}else zs(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;In(u),H=!1}else ei!==null&&(Lu(ei),ei=null),H=!0;if(!H)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=O,u):(O=F!==null,O!==(l!==null&&l.memoizedState!==null)&&O&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||(Dn.current&1)!==0?Yn===0&&(Yn=3):Au())),u.updateQueue!==null&&(u.flags|=4),In(u),null);
vendor: 11,688 bytes, line 20
20case 4:return ts(),ko(l,u),l===null&&Ht(u.stateNode.containerInfo),In(u),null;case 10:return jd(u.type._context),In(u),null;case 17:return ar(u.type)&&yi(),In(u),null;case 19:if(We(Dn),H=u.memoizedState,H===null)return In(u),null;if(F=(u.flags&128)!==0,K=H.rendering,K===null)if(F)oi(H,!1);else{if(Yn!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if(K=lu(l),K!==null){for(u.flags|=128,oi(H,!1),l=K.updateQueue,l!==null&&(u.updateQueue=l,u.flags|=4),u.subtreeFlags=0,l=O,O=u.child;O!==null;)F=O,H=l,F.flags&=14680066,K=F.alternate,K===null?(F.childLanes=0,F.lanes=H,F.child=null,F.subtreeFlags=0,F.memoizedProps=null,F.memoizedState=null,F.updateQueue=null,F.dependencies=null,F.stateNode=null):(F.childLanes=K.childLanes,F.lanes=K.lanes,F.child=K.child,F.subtreeFlags=0,F.deletions=null,F.memoizedProps=K.memoizedProps,F.memoizedState=K.memoizedState,F.updateQueue=K.updateQueue,F.type=K.type,H=K.dependencies,F.dependencies=H===null?null:{lanes:H.lanes,firstContext:H.firstContext}),O=O.sibling;return sn(Dn,Dn.current&1|2),u.child}l=l.sibling}H.tail!==null&&ln()>al&&(u.flags|=128,F=!0,oi(H,!1),u.lanes=4194304)}else{if(!F)if(l=lu(K),l!==null){if(u.flags|=128,F=!0,l=l.updateQueue,l!==null&&(u.updateQueue=l,u.flags|=4),oi(H,!0),H.tail===null&&H.tailMode==="hidden"&&!K.alternate&&!vn)return In(u),null}else 2*ln()-H.renderingStartTime>al&&O!==1073741824&&(u.flags|=128,F=!0,oi(H,!1),u.lanes=4194304);H.isBackwards?(K.sibling=u.child,u.child=K):(l=H.last,l!==null?l.sibling=K:u.child=K,H.last=K)}return H.tail!==null?(u=H.tail,H.rendering=u,H.tail=u.sibling,H.renderingStartTime=ln(),u.sibling=null,l=Dn.current,sn(Dn,F?l&1|2:l&1),u):(In(u),null);case 22:case 23:return Tu(),O=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==O&&(u.flags|=8192),O&&(u.mode&1)!==0?(Or&1073741824)!==0&&(In(u),dt&&u.subtreeFlags&6&&(u.flags|=8192)):In(u),null;case 24:return null;case 25:return null}throw Error(o(156,u.tag))}function cs(l,u){switch(Gl(u),u.tag){case 1:return ar(u.type)&&yi(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return ts(),We(Ar),We(hr),Ud(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return su(u),null;case 13:if(We(Dn),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(o(340));zs()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return We(Dn),null;case 4:return ts(),null;case 10:return jd(u.type._context),null;case 22:case 23:return Tu(),null;case 24:return null;default:return null}}var uc=!1,gr=!1,ih=typeof WeakSet=="function"?WeakSet:Set,te=null;function mr(l,u){var O=l.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(F){kn(l,u,F)}else O.current=null}function _n(l,u,O){try{O()}catch(F){kn(l,u,F)}}var Ra=!1;function Z1(l,u){for(Q(l.containerInfo),te=u;te!==null;)if(l=te,u=l.child,(l.subtreeFlags&1028)!==0&&u!==null)u.return=l,te=u;else for(;te!==null;){l=te;try{var O=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var F=O.memoizedProps,H=O.memoizedState,K=l.stateNode,st=K.getSnapshotBeforeUpdate(l.elementType===l.type?F:ba(l.type,F),H);K.__reactInternalSnapshotBeforeUpdate=st}break;case 3:dt&&Ce(l.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(bt){kn(l,l.return,bt)}if(u=l.sibling,u!==null){u.return=l.return,te=u;break}te=l.return}return O=Ra,Ra=!1,O}function Qs(l,u,O){var F=u.updateQueue;if(F=F!==null?F.lastEffect:null,F!==null){var H=F=F.next;do{if((H.tag&l)===l){var K=H.destroy;H.destroy=void 0,K!==void 0&&_n(u,O,K)}H=H.next}while(H!==F)}}function Js(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var O=u=u.next;do{if((O.tag&l)===l){var F=O.create;O.destroy=F()}O=O.next}while(O!==u)}}function dc(l){var u=l.ref;if(u!==null){var O=l.stateNode;l.tag===5?l=N(O):l=O,typeof u=="function"?u(l):u.current=l}}function oh(l){var u=l.alternate;u!==null&&(l.alternate=null,oh(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&qt(u)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function hc(l){return l.tag===5||l.tag===3||l.tag===4}function sh(l){t:for(;;){for(;l.sibling===null;){if(l.return===null||hc(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue t;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Po(l,u,O){var F=l.tag;if(F===5||F===6)l=l.stateNode,u?xe(O,l,u):_e(O,l);else if(F!==4&&(l=l.child,l!==null))for(Po(l,u,O),l=l.sibling;l!==null;)Po(l,u,O),l=l.sibling}function fc(l,u,O){var F=l.tag;if(F===5||F===6)l=l.stateNode,u?Se(O,l,u):Fe(O,l);else if(F!==4&&(l=l.child,l!==null))for(fc(l,u,O),l=l.sibling;l!==null;)fc(l,u,O),l=l.sibling}var Er=null,$r=!1;function Ca(l,u,O){for(O=O.child;O!==null;)Su(l,u,O),O=O.sibling}function Su(l,u,O){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(js,O)}catch{}switch(O.tag){case 5:gr||mr(O,u);case 6:if(dt){var F=Er,H=$r;Er=null,Ca(l,u,O),Er=F,$r=H,Er!==null&&($r?an(Er,O.stateNode):Ge(Er,O.stateNode))}else Ca(l,u,O);break;case 18:dt&&Er!==null&&($r?Jc(Er,O.stateNode):Qc(Er,O.stateNode));break;case 4:dt?(F=Er,H=$r,Er=O.stateNode.containerInfo,$r=!0,Ca(l,u,O),Er=F,$r=H):(yt&&(F=O.stateNode.containerInfo,H=gn(F),ta(F,H)),Ca(l,u,O));break;case 0:case 11:case 14:case 15:if(!gr&&(F=O.updateQueue,F!==null&&(F=F.lastEffect,F!==null))){H=F=F.next;do{var K=H,st=K.destroy;K=K.tag,st!==void 0&&((K&2)!==0||(K&4)!==0)&&_n(O,u,st),H=H.next}while(H!==F)}Ca(l,u,O);break;case 1:if(!gr&&(mr(O,u),F=O.stateNode,typeof F.componentWillUnmount=="function"))try{F.props=O.memoizedProps,F.state=O.memoizedState,F.componentWillUnmount()}catch(bt){kn(O,u,bt)}Ca(l,u,O);break;case 21:Ca(l,u,O);break;case 22:O.mode&1?(gr=(F=gr)||O.memoizedState!==null,Ca(l,u,O),gr=F):Ca(l,u,O);break;default:Ca(l,u,O)}}function lh(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var O=l.stateNode;O===null&&(O=l.stateNode=new ih),u.forEach(function(F){var H=Q1.bind(null,l,F);O.has(F)||(O.add(F),F.then(H,H))})}}function Fr(l,u){var O=u.deletions;if(O!==null)for(var F=0;F<O.length;F++){var H=O[F];try{var K=l,st=u;if(dt){var bt=st;t:for(;bt!==null;){switch(bt.tag){case 5:Er=bt.stateNode,$r=!1;break t;case 3:Er=bt.stateNode.containerInfo,$r=!0;break t;case 4:Er=bt.stateNode.containerInfo,$r=!0;break t}bt=bt.return}if(Er===null)throw Error(o(160));Su(K,st,H),Er=null,$r=!1}else Su(K,st,H);var Lt=H.alternate;Lt!==null&&(Lt.return=null),H.return=null}catch(Wt){kn(H,u,Wt)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)ch(u,l),u=u.sibling}function ch(l,u){var O=l.alternate,F=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(Fr(u,l),Sa(l),F&4){try{Qs(3,l,l.return),Js(3,l)}catch(re){kn(l,l.return,re)}try{Qs(5,l,l.return)}catch(re){kn(l,l.return,re)}}break;case 1:Fr(u,l),Sa(l),F&512&&O!==null&&mr(O,O.return);break;case 5:if(Fr(u,l),Sa(l),F&512&&O!==null&&mr(O,O.return),dt){if(l.flags&32){var H=l.stateNode;try{bn(H)}catch(re){kn(l,l.return,re)}}if(F&4&&(H=l.stateNode,H!=null)){var K=l.memoizedProps;if(O=O!==null?O.memoizedProps:K,F=l.type,u=l.updateQueue,l.updateQueue=null,u!==null)try{se(H,u,F,O,K,l)}catch(re){kn(l,l.return,re)}}}break;case 6:if(Fr(u,l),Sa(l),F&4&&dt){if(l.stateNode===null)throw Error(o(162));H=l.stateNode,K=l.memoizedProps,O=O!==null?O.memoizedProps:K;try{pn(H,O,K)}catch(re){kn(l,l.return,re)}}break;case 3:if(Fr(u,l),Sa(l),F&4){if(dt&&gt&&O!==null&&O.memoizedState.isDehydrated)try{Ld(u.containerInfo)}catch(re){kn(l,l.return,re)}if(yt){H=u.containerInfo,K=u.pendingChildren;try{ta(H,K)}catch(re){kn(l,l.return,re)}}}break;case 4:if(Fr(u,l),Sa(l),F&4&&yt){K=l.stateNode,H=K.containerInfo,K=K.pendingChildren;try{ta(H,K)}catch(re){kn(l,l.return,re)}}break;case 13:Fr(u,l),Sa(l),H=l.child,H.flags&8192&&(K=H.memoizedState!==null,H.stateNode.isHidden=K,!K||H.alternate!==null&&H.alternate.memoizedState!==null||(gc=ln())),F&4&&lh(l);break;case 22:var st=O!==null&&O.memoizedState!==null;if(l.mode&1?(gr=(O=gr)||st,Fr(u,l),gr=O):Fr(u,l),Sa(l),F&8192){if(O=l.memoizedState!==null,(l.stateNode.isHidden=O)&&!st&&(l.mode&1)!==0)for(te=l,F=l.child;F!==null;){for(u=te=F;te!==null;){st=te;var bt=st.child;switch(st.tag){case 0:case 11:case 14:case 15:Qs(4,st,st.return);break;case 1:mr(st,st.return);var Lt=st.stateNode;if(typeof Lt.componentWillUnmount=="function"){var Wt=st,ce=st.return;try{var Pe=Wt;Lt.props=Pe.memoizedProps,Lt.state=Pe.memoizedState,Lt.componentWillUnmount()}catch(re){kn(Wt,ce,re)}}break;case 5:mr(st,st.return);break;case 22:if(st.memoizedState!==null){Ou(u);continue}}bt!==null?(bt.return=st,te=bt):Ou(u)}F=F.sibling}if(dt){t:if(F=null,dt)for(u=l;;){if(u.tag===5){if(F===null){F=u;try{H=u.stateNode,O?Ur(H):La(u.stateNode,u.memoizedProps)}catch(re){kn(l,l.return,re)}}}else if(u.tag===6){if(F===null)try{K=u.stateNode,O?Ma(K):ve(K,u.memoizedProps)}catch(re){kn(l,l.return,re)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===l)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break t;for(;u.sibling===null;){if(u.return===null||u.return===l)break t;F===u&&(F=null),u=u.return}F===u&&(F=null),u.sibling.return=u.return,u=u.sibling}}}break;case 19:Fr(u,l),Sa(l),F&4&&lh(l);break;case 21:break;default:Fr(u,l),Sa(l)}}function Sa(l){var u=l.flags;if(u&2){try{if(dt){t:{for(var O=l.return;O!==null;){if(hc(O)){var F=O;break t}O=O.return}throw Error(o(160))}switch(F.tag){case 5:var H=F.stateNode;F.flags&32&&(bn(H),F.flags&=-33);var K=sh(l);fc(l,K,H);break;case 3:case 4:var st=F.stateNode.containerInfo,bt=sh(l);Po(l,bt,st);break;default:throw Error(o(161))}}}catch(Lt){kn(l,l.return,Lt)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function _u(l,u,O){te=l,us(l)}function us(l,u,O){for(var F=(l.mode&1)!==0;te!==null;){var H=te,K=H.child;if(H.tag===22&&F){var st=H.memoizedState!==null||uc;if(!st){var bt=H.alternate,Lt=bt!==null&&bt.memoizedState!==null||gr;bt=uc;var Wt=gr;if(uc=st,(gr=Lt)&&!Wt)for(te=H;te!==null;)st=te,Lt=st.child,st.tag===22&&st.memoizedState!==null?ku(H):Lt!==null?(Lt.return=st,te=Lt):ku(H);for(;K!==null;)te=K,us(K),K=K.sibling;te=H,uc=bt,gr=Wt}Eu(l)}else(H.subtreeFlags&8772)!==0&&K!==null?(K.return=H,te=K):Eu(l)}}function Eu(l){for(;te!==null;){var u=te;if((u.flags&8772)!==0){var O=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:gr||Js(5,u);break;case 1:var F=u.stateNode;if(u.flags&4&&!gr)if(O===null)F.componentDidMount();else{var H=u.elementType===u.type?O.memoizedProps:ba(u.type,O.memoizedProps);F.componentDidUpdate(H,O.memoizedState,F.__reactInternalSnapshotBeforeUpdate)}var K=u.updateQueue;K!==null&&Vs(u,K,F);break;case 3:var st=u.updateQueue;if(st!==null){if(O=null,u.child!==null)switch(u.child.tag){case 5:O=N(u.child.stateNode);break;case 1:O=u.child.stateNode}Vs(u,st,O)}break;case 5:var bt=u.stateNode;O===null&&u.flags&4&&jt(bt,u.type,u.memoizedProps,u);break;case 6:break;case 4:break;case 12:break;case 13:if(gt&&u.memoizedState===null){var Lt=u.alternate;if(Lt!==null){var Wt=Lt.memoizedState;if(Wt!==null){var ce=Wt.dehydrated;ce!==null&&qc(ce)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}gr||u.flags&512&&dc(u)}catch(Pe){kn(u,u.return,Pe)}}if(u===l){te=null;break}if(O=u.sibling,O!==null){O.return=u.return,te=O;break}te=u.return}}function Ou(l){for(;te!==null;){var u=te;if(u===l){te=null;break}var O=u.sibling;if(O!==null){O.return=u.return,te=O;break}te=u.return}}function ku(l){for(;te!==null;){var u=te;try{switch(u.tag){case 0:case 11:case 15:var O=u.return;try{Js(4,u)}catch(Lt){kn(u,O,Lt)}
vendor: 6,519 bytes, line 20
20break;case 1:var F=u.stateNode;if(typeof F.componentDidMount=="function"){var H=u.return;try{F.componentDidMount()}catch(Lt){kn(u,H,Lt)}}var K=u.return;try{dc(u)}catch(Lt){kn(u,K,Lt)}break;case 5:var st=u.return;try{dc(u)}catch(Lt){kn(u,st,Lt)}}}catch(Lt){kn(u,u.return,Lt)}if(u===l){te=null;break}var bt=u.sibling;if(bt!==null){bt.return=u.return,te=bt;break}te=u.return}}var tl=0,Xi=1,Xr=2,ki=3,el=4;if(typeof Symbol=="function"&&Symbol.for){var nl=Symbol.for;tl=nl("selector.component"),Xi=nl("selector.has_pseudo_class"),Xr=nl("selector.role"),ki=nl("selector.test_id"),el=nl("selector.text")}function si(l){var u=Dt(l);if(u!=null){if(typeof u.memoizedProps["data-testname"]!="string")throw Error(o(364));return u}if(l=Yt(l),l===null)throw Error(o(362));return l.stateNode.current}function Pi(l,u){switch(u.$$typeof){case tl:if(l.type===u.value)return!0;break;case Xi:t:{u=u.value,l=[l,0];for(var O=0;O<l.length;){var F=l[O++],H=l[O++],K=u[H];if(F.tag!==5||!ue(F)){for(;K!=null&&Pi(F,K);)H++,K=u[H];if(H===u.length){u=!0;break t}else for(F=F.child;F!==null;)l.push(F,H),F=F.sibling}}u=!1}return u;case Xr:if(l.tag===5&&Qt(l.stateNode,u.value))return!0;break;case el:if((l.tag===5||l.tag===6)&&(l=ne(l),l!==null&&0<=l.indexOf(u.value)))return!0;break;case ki:if(l.tag===5&&(l=l.memoizedProps["data-testname"],typeof l=="string"&&l.toLowerCase()===u.value.toLowerCase()))return!0;break;default:throw Error(o(365))}return!1}function pc(l){switch(l.$$typeof){case tl:return"<"+(R(l.value)||"Unknown")+">";case Xi:return":has("+(pc(l)||"")+")";case Xr:return'[role="'+l.value+'"]';case el:return'"'+l.value+'"';case ki:return'[data-testname="'+l.value+'"]';default:throw Error(o(365))}}function uh(l,u){var O=[];l=[l,0];for(var F=0;F<l.length;){var H=l[F++],K=l[F++],st=u[K];if(H.tag!==5||!ue(H)){for(;st!=null&&Pi(H,st);)K++,st=u[K];if(K===u.length)O.push(H);else for(H=H.child;H!==null;)l.push(H,K),H=H.sibling}}return O}function li(l,u){if(!Kt)throw Error(o(363));l=si(l),l=uh(l,u),u=[],l=Array.from(l);for(var O=0;O<l.length;){var F=l[O++];if(F.tag===5)ue(F)||u.push(F.stateNode);else for(F=F.child;F!==null;)l.push(F),F=F.sibling}return u}var Mo=Math.ceil,ds=c.ReactCurrentDispatcher,Pu=c.ReactCurrentOwner,Nn=c.ReactCurrentBatchConfig,De=0,Gn=null,on=null,Vn=0,Or=0,Fa=aa(0),Yn=0,Mi=null,Lo=0,rl=0,En=0,To=null,Dr=null,gc=0,al=1/0,ci=null;function Da(){al=ln()+500}var Cn=!1,Zn=null,On=null,hs=!1,ja=null,Ao=0,mc=0,vr=null,il=-1,ol=0;function yr(){return(De&6)!==0?ln():il!==-1?il:il=ln()}function kr(l){return(l.mode&1)===0?1:(De&2)!==0&&Vn!==0?Vn&-Vn:t2.transition!==null?(ol===0&&(ol=jl()),ol):(l=Me,l!==0?l:It())}function jn(l,u,O,F){if(50<mc)throw mc=0,vr=null,Error(o(185));ma(l,O,F),((De&2)===0||l!==Gn)&&(l===Gn&&((De&2)===0&&(rl|=O),Yn===4&&qi(l,Vn)),br(l,F),O===1&&De===0&&(u.mode&1)===0&&(Da(),Pt&&Ve()))}function br(l,u){var O=l.callbackNode;Fs(l,u);var F=qo(l,l===Gn?Vn:0);if(F===0)O!==null&&va(O),l.callbackNode=null,l.callbackPriority=0;else if(u=F&-F,l.callbackPriority!==u){if(O!=null&&va(O),u===1)l.tag===0?nn(dh.bind(null,l)):Ne(dh.bind(null,l)),Bt?ee(function(){(De&6)===0&&Ve()}):bi(Bl,Ve),O=null;else{switch(mo(F)){case 1:O=Bl;break;case 4:O=Hl;break;case 16:O=vo;break;case 536870912:O=zl;break;default:O=vo}O=tf(O,Mu.bind(null,l))}l.callbackPriority=u,l.callbackNode=O}}function Mu(l,u){if(il=-1,ol=0,(De&6)!==0)throw Error(o(327));var O=l.callbackNode;if(Ro()&&l.callbackNode!==O)return null;var F=qo(l,l===Gn?Vn:0);if(F===0)return null;if((F&30)!==0||(F&l.expiredLanes)!==0||u)u=fs(l,F);else{u=F;var H=De;De|=2;var K=sl();(Gn!==l||Vn!==u)&&(ci=null,Da(),Io(l,u));do try{$1();break}catch(bt){fh(l,bt)}while(!0);Dd(),ds.current=K,De=H,on!==null?u=0:(Gn=null,Vn=0,u=Yn)}if(u!==0){if(u===2&&(H=Ds(l),H!==0&&(F=H,u=vc(l,H))),u===1)throw O=Mi,Io(l,0),qi(l,F),br(l,ln()),O;if(u===6)qi(l,F);else{if(H=l.current.alternate,(F&30)===0&&!K1(H)&&(u=fs(l,F),u===2&&(K=Ds(l),K!==0&&(F=K,u=vc(l,K))),u===1))throw O=Mi,Io(l,0),qi(l,F),br(l,ln()),O;switch(l.finishedWork=H,l.finishedLanes=F,u){case 0:case 1:throw Error(o(345));case 2:No(l,Dr,ci);break;case 3:if(qi(l,F),(F&130023424)===F&&(u=gc+500-ln(),10<u)){if(qo(l,0)!==0)break;if(H=l.suspendedLanes,(H&F)!==F){yr(),l.pingedLanes|=l.suspendedLanes&H;break}l.timeoutHandle=it(No.bind(null,l,Dr,ci),u);break}No(l,Dr,ci);break;case 4:if(qi(l,F),(F&4194240)===F)break;for(u=l.eventTimes,H=-1;0<F;){var st=31-ia(F);K=1<<st,st=u[st],st>H&&(H=st),F&=~K}if(F=H,F=ln()-F,F=(120>F?120:480>F?480:1080>F?1080:1920>F?1920:3e3>F?3e3:4320>F?4320:1960*Mo(F/1960))-F,10<F){l.timeoutHandle=it(No.bind(null,l,Dr,ci),F);break}No(l,Dr,ci);break;case 5:No(l,Dr,ci);break;default:throw Error(o(329))}}}return br(l,ln()),l.callbackNode===O?Mu.bind(null,l):null}function vc(l,u){var O=To;return l.current.memoizedState.isDehydrated&&(Io(l,u).flags|=256),l=fs(l,u),l!==2&&(u=Dr,Dr=O,u!==null&&Lu(u)),l}function Lu(l){Dr===null?Dr=l:Dr.push.apply(Dr,l)}function K1(l){for(var u=l;;){if(u.flags&16384){var O=u.updateQueue;if(O!==null&&(O=O.stores,O!==null))for(var F=0;F<O.length;F++){var H=O[F],K=H.getSnapshot;H=H.value;try{if(!ut(K(),H))return!1}catch{return!1}}}if(O=u.child,u.subtreeFlags&16384&&O!==null)O.return=u,u=O;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function qi(l,u){for(u&=~En,u&=~rl,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var O=31-ia(u),F=1<<O;l[O]=-1,u&=~F}}function dh(l){if((De&6)!==0)throw Error(o(327));Ro();var u=qo(l,0);if((u&1)===0)return br(l,ln()),null;var O=fs(l,u);if(l.tag!==0&&O===2){var F=Ds(l);F!==0&&(u=F,O=vc(l,F))}if(O===1)throw O=Mi,Io(l,0),qi(l,u),br(l,ln()),O;if(O===6)throw Error(o(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,No(l,Dr,ci),br(l,ln()),null}function hh(l){ja!==null&&ja.tag===0&&(De&6)===0&&Ro();var u=De;De|=1;var O=Nn.transition,F=Me;try{if(Nn.transition=null,Me=1,l)return l()}finally{Me=F,Nn.transition=O,De=u,(De&6)===0&&Ve()}}function Tu(){Or=Fa.current,We(Fa)}function Io(l,u){l.finishedWork=null,l.finishedLanes=0;var O=l.timeoutHandle;if(O!==J&&(l.timeoutHandle=J,Y(O)),on!==null)for(O=on.return;O!==null;){var F=O;switch(Gl(F),F.tag){case 1:F=F.type.childContextTypes,F!=null&&yi();break;case 3:ts(),We(Ar),We(hr),Ud();break;case 5:su(F);break;case 4:ts();break;case 13:We(Dn);break;case 19:We(Dn);break;case 10:jd(F.type._context);break;case 22:case 23:Tu()}O=O.return}if(Gn=l,on=l=Fo(l.current,null),Vn=Or=u,Yn=0,Mi=null,En=rl=Lo=0,Dr=To=null,wo!==null){for(u=0;
vendor: 10,347 bytes, line 20
20u<wo.length;u++)if(O=wo[u],F=O.interleaved,F!==null){O.interleaved=null;var H=F.next,K=O.pending;if(K!==null){var st=K.next;K.next=H,F.next=st}O.pending=F}wo=null}return l}function fh(l,u){do{var O=on;try{if(Dd(),cu.current=as,Xl){for(var F=An.memoizedState;F!==null;){var H=F.queue;H!==null&&(H.pending=null),F=F.next}Xl=!1}if(ri=0,lr=Qn=An=null,es=!1,ql=0,Pu.current=null,O===null||O.return===null){Yn=1,Mi=u,on=null;break}t:{var K=l,st=O.return,bt=O,Lt=u;if(u=Vn,bt.flags|=32768,Lt!==null&&typeof Lt=="object"&&typeof Lt.then=="function"){var Wt=Lt,ce=bt,Pe=ce.tag;if((ce.mode&1)===0&&(Pe===0||Pe===11||Pe===15)){var re=ce.alternate;re?(ce.updateQueue=re.updateQueue,ce.memoizedState=re.memoizedState,ce.lanes=re.lanes):(ce.updateQueue=null,ce.memoizedState=null)}var yn=V1(st);if(yn!==null){yn.flags&=-257,Y1(yn,st,bt,K,u),yn.mode&1&&bu(K,Wt,u),u=yn,Lt=Wt;var un=u.updateQueue;if(un===null){var jr=new Set;jr.add(Lt),u.updateQueue=jr}else un.add(Lt);break t}else{if((u&1)===0){bu(K,Wt,u),Au();break t}Lt=Error(o(426))}}else if(vn&&bt.mode&1){var Li=V1(st);if(Li!==null){(Li.flags&65536)===0&&(Li.flags|=256),Y1(Li,st,bt,K,u),nu(wa(Lt,bt));break t}}K=Lt=wa(Lt,bt),Yn!==4&&(Yn=2),To===null?To=[K]:To.push(K),K=st;do{switch(K.tag){case 3:K.flags|=65536,u&=-u,K.lanes|=u;var kt=Xs(K,Lt,u);Hd(K,kt);break t;case 1:bt=Lt;var Ct=K.type,At=K.stateNode;if((K.flags&128)===0&&(typeof Ct.getDerivedStateFromError=="function"||At!==null&&typeof At.componentDidCatch=="function"&&(On===null||!On.has(At)))){K.flags|=65536,u&=-u,K.lanes|=u;var ae=_i(K,bt,u);Hd(K,ae);break t}}K=K.return}while(K!==null)}ph(O)}catch(me){u=me,on===O&&O!==null&&(on=O=O.return);continue}break}while(!0)}function sl(){var l=ds.current;return ds.current=as,l===null?as:l}function Au(){(Yn===0||Yn===3||Yn===2)&&(Yn=4),Gn===null||(Lo&268435455)===0&&(rl&268435455)===0||qi(Gn,Vn)}function fs(l,u){var O=De;De|=2;var F=sl();(Gn!==l||Vn!==u)&&(ci=null,Io(l,u));do try{Iu();break}catch(H){fh(l,H)}while(!0);if(Dd(),De=O,ds.current=F,on!==null)throw Error(o(261));return Gn=null,Vn=0,Yn}function Iu(){for(;on!==null;)Nu(on)}function $1(){for(;on!==null&&!tu();)Nu(on)}function Nu(l){var u=J1(l.alternate,l,Or);l.memoizedProps=l.pendingProps,u===null?ph(l):on=u,Pu.current=null}function ph(l){var u=l;do{var O=u.alternate;if(l=u.return,(u.flags&32768)===0){if(O=$i(O,u,Or),O!==null){on=O;return}}else{if(O=cs(O,u),O!==null){O.flags&=32767,on=O;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Yn=6,on=null;return}}if(u=u.sibling,u!==null){on=u;return}on=u=l}while(u!==null);Yn===0&&(Yn=5)}function No(l,u,O){var F=Me,H=Nn.transition;try{Nn.transition=null,Me=1,X1(l,u,O,F)}finally{Nn.transition=H,Me=F}return null}function X1(l,u,O,F){do Ro();while(ja!==null);if((De&6)!==0)throw Error(o(327));O=l.finishedWork;var H=l.finishedLanes;if(O===null)return null;if(l.finishedWork=null,l.finishedLanes=0,O===l.current)throw Error(o(177));l.callbackNode=null,l.callbackPriority=0;var K=O.lanes|O.childLanes;if(Ta(l,K),l===Gn&&(on=Gn=null,Vn=0),(O.subtreeFlags&2064)===0&&(O.flags&2064)===0||hs||(hs=!0,tf(vo,function(){return Ro(),null})),K=(O.flags&15990)!==0,(O.subtreeFlags&15990)!==0||K){K=Nn.transition,Nn.transition=null;var st=Me;Me=1;var bt=De;De|=4,Pu.current=null,Z1(l,O),ch(O,l),tt(l.containerInfo),l.current=O,_u(O),wi(),De=bt,Me=st,Nn.transition=K}else l.current=O;if(hs&&(hs=!1,ja=l,Ao=H),K=l.pendingLanes,K===0&&(On=null),yo(O.stateNode),br(l,ln()),u!==null)for(F=l.onRecoverableError,O=0;O<u.length;O++)H=u[O],F(H.value,{componentStack:H.stack,digest:H.digest});if(Cn)throw Cn=!1,l=Zn,Zn=null,l;return(Ao&1)!==0&&l.tag!==0&&Ro(),K=l.pendingLanes,(K&1)!==0?l===vr?mc++:(mc=0,vr=l):mc=0,Ve(),null}function Ro(){if(ja!==null){var l=mo(Ao),u=Nn.transition,O=Me;try{if(Nn.transition=null,Me=16>l?16:l,ja===null)var F=!1;else{if(l=ja,ja=null,Ao=0,(De&6)!==0)throw Error(o(331));var H=De;for(De|=4,te=l.current;te!==null;){var K=te,st=K.child;if((te.flags&16)!==0){var bt=K.deletions;if(bt!==null){for(var Lt=0;Lt<bt.length;Lt++){var Wt=bt[Lt];for(te=Wt;te!==null;){var ce=te;switch(ce.tag){case 0:case 11:case 15:Qs(8,ce,K)}var Pe=ce.child;if(Pe!==null)Pe.return=ce,te=Pe;else for(;te!==null;){ce=te;var re=ce.sibling,yn=ce.return;if(oh(ce),ce===Wt){te=null;break}if(re!==null){re.return=yn,te=re;break}te=yn}}}var un=K.alternate;if(un!==null){var jr=un.child;if(jr!==null){un.child=null;do{var Li=jr.sibling;jr.sibling=null,jr=Li}while(jr!==null)}}te=K}}if((K.subtreeFlags&2064)!==0&&st!==null)st.return=K,te=st;else t:for(;te!==null;){if(K=te,(K.flags&2048)!==0)switch(K.tag){case 0:case 11:case 15:Qs(9,K,K.return)}var kt=K.sibling;if(kt!==null){kt.return=K.return,te=kt;break t}te=K.return}}var Ct=l.current;for(te=Ct;te!==null;){st=te;var At=st.child;if((st.subtreeFlags&2064)!==0&&At!==null)At.return=st,te=At;else t:for(st=Ct;te!==null;){if(bt=te,(bt.flags&2048)!==0)try{switch(bt.tag){case 0:case 11:case 15:Js(9,bt)}}catch(me){kn(bt,bt.return,me)}if(bt===st){te=null;break t}var ae=bt.sibling;if(ae!==null){ae.return=bt.return,te=ae;break t}te=bt.return}}if(De=H,Ve(),Ir&&typeof Ir.onPostCommitFiberRoot=="function")try{Ir.onPostCommitFiberRoot(js,l)}catch{}F=!0}return F}finally{Me=O,Nn.transition=u}}return!1}function Ru(l,u,O){u=wa(O,u),u=Xs(l,u,1),l=Co(l,u,1),u=yr(),l!==null&&(ma(l,1,u),br(l,u))}function kn(l,u,O){if(l.tag===3)Ru(l,l,O);else for(;u!==null;){if(u.tag===3){Ru(u,l,O);break}else if(u.tag===1){var F=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof F.componentDidCatch=="function"&&(On===null||!On.has(F))){l=wa(O,l),l=_i(u,l,1),u=Co(u,l,1),l=yr(),u!==null&&(ma(u,1,l),br(u,l));break}}u=u.return}}function q1(l,u,O){var F=l.pingCache;F!==null&&F.delete(u),u=yr(),l.pingedLanes|=l.suspendedLanes&O,Gn===l&&(Vn&O)===O&&(Yn===4||Yn===3&&(Vn&130023424)===Vn&&500>ln()-gc?Io(l,0):En|=O),br(l,u)}function gh(l,u){u===0&&((l.mode&1)===0?u=1:(u=Ke,Ke<<=1,(Ke&130023424)===0&&(Ke=4194304)));var O=yr();l=ni(l,u),l!==null&&(ma(l,u,O),br(l,O))}function a2(l){var u=l.memoizedState,O=0;u!==null&&(O=u.retryLane),gh(l,O)}function Q1(l,u){var O=0;switch(l.tag){case 13:var F=l.stateNode,H=l.memoizedState;H!==null&&(O=H.retryLane);break;case 19:F=l.stateNode;break;default:throw Error(o(314))}F!==null&&F.delete(u),gh(l,O)}var J1;J1=function(l,u,O){if(l!==null)if(l.memoizedProps!==u.pendingProps||Ar.current)fr=!0;else{if((l.lanes&O)===0&&(u.flags&128)===0)return fr=!1,r2(l,u,O);fr=(l.flags&131072)!==0}else fr=!1,vn&&(u.flags&1048576)!==0&&Bs(u,or,u.index);switch(u.lanes=0,u.tag){case 2:var F=u.type;qs(l,u),l=u.pendingProps;var H=ti(u,hr.current);xi(u,O),H=ns(null,u,F,l,H,O);var K=Jl();return u.flags|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,ar(F)?(K=!0,fo(u)):K=!1,u.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,xo(u),H.updater=vu,u.stateNode=H,H._reactInternals=u,ic(u,F,l,O),u=pr(null,u,F,!0,K,O)):(u.tag=0,vn&&K&&Id(u),Jn(null,u,H,O),u=u.child),u;case 16:F=u.elementType;t:{switch(qs(l,u),l=u.pendingProps,H=F._init,F=H(F._payload),u.type=F,H=u.tag=Du(F),l=ba(F,l),H){case 0:u=cn(null,u,F,l,O);break t;case 1:u=Ki(null,u,F,l,O);break t;case 11:u=oc(null,u,F,l,O);break t;case 14:u=wu(null,u,F,ba(F.type,l),O);break t}throw Error(o(306,F,""))}return u;case 0:return F=u.type,H=u.pendingProps,H=u.elementType===F?H:ba(F,H),cn(l,u,F,H,O);case 1:return F=u.type,H=u.pendingProps,H=u.elementType===F?H:ba(F,H),Ki(l,u,F,H,O);case 3:t:{if(Zr(u),l===null)throw Error(o(387));F=u.pendingProps,K=u.memoizedState,H=K.element,B1(l,u),So(u,F,null,O);var st=u.memoizedState;if(F=st.element,gt&&K.isDehydrated)if(K={element:F,isDehydrated:!1,cache:st.cache,pendingSuspenseBoundaries:st.pendingSuspenseBoundaries,transitions:st.transitions},u.updateQueue.baseState=K,u.memoizedState=K,u.flags&256){H=wa(Error(o(423)),u),u=Eo(l,u,F,O,H);break t}else if(F!==H){H=wa(Error(o(424)),u),u=Eo(l,u,F,O,H);break t}else for(gt&&(Nr=kd(u.stateNode.containerInfo),Wr=u,vn=!0,ei=null,Hs=!1),O=Rd(u,null,F,O),u.child=O;O;)O.flags=O.flags&-3|4096,O=O.sibling;else{if(zs(),F===H){u=Ei(l,u,O);break t}Jn(l,u,F,O)}u=u.child}return u;case 5:return zd(u),l===null&&Nd(u),F=u.type,H=u.pendingProps,K=l!==null?l.memoizedProps:null,st=H.children,ot(F,H)?st=null:K!==null&&ot(F,K)&&(u.flags|=32),xn(l,u),Jn(l,u,st,O),u.child;case 6:return l===null&&Nd(u),null;case 13:return sc(l,u,O);case 4:return $l(u,u.stateNode.containerInfo),F=u.pendingProps,l===null?u.child=Us(u,null,F,O):Jn(l,u,F,O),u.child;case 11:return F=u.type,H=u.pendingProps,H=u.elementType===F?H:ba(F,H),oc(l,u,F,H,O);case 7:return Jn(l,u,u.pendingProps,O),u.child;case 8:return Jn(l,u,u.pendingProps.children,O),u.child;case 12:return Jn(l,u,u.pendingProps.children,O),u.child;case 10:t:{if(F=u.type._context,H=u.pendingProps,K=u.memoizedProps,st=H.value,j1(u,F,st),K!==null)if(ut(K.value,st)){if(K.children===H.children&&!Ar.current){u=Ei(l,u,O);break t}}else for(K=u.child,K!==null&&(K.return=u);K!==null;){var bt=K.dependencies;if(bt!==null){st=K.child;for(var Lt=bt.firstContext;Lt!==null;){if(Lt.context===F){if(K.tag===1){Lt=Vi(-1,O&-O),Lt.tag=2;var Wt=K.updateQueue;if(Wt!==null){Wt=Wt.shared;var ce=Wt.pending;ce===null?Lt.next=Lt:(Lt.next=ce.next,ce.next=Lt),Wt.pending=Lt}}K.lanes|=O,Lt=K.alternate,Lt!==null&&(Lt.lanes|=O),Vl(K.return,O,u),bt.lanes|=O;break}Lt=Lt.next}}else if(K.tag===10)st=K.type===u.type?null:K.child;else if(K.tag===18){if(st=K.return,st===null)throw Error(o(341));st.lanes|=O,bt=st.alternate,bt!==null&&(bt.lanes|=O),Vl(st,O,u),st=K.sibling}else st=K.child;if(st!==null)st.return=K;else for(st=K;st!==null;){if(st===u){st=null;break}if(K=st.sibling,K!==null){K.return=st.return,st=K;break}st=st.return}K=st}Jn(l,u,H.children,O),u=u.child}return u;case 9:return H=u.type,F=u.pendingProps.children,xi(u,O),H=Ia(H),F=F(H),u.flags|=1,Jn(l,u,F,O),u.child;case 14:return F=u.type,H=ba(F,u.pendingProps),H=ba(F.type,H),wu(l,u,F,H,O);case 15:return os(l,u,u.type,u.pendingProps,O);case 17:return F=u.type,H=u.pendingProps,H=u.elementType===F?H:ba(F,H),qs(l,u),u.tag=1,ar(F)?(l=!0,fo(u)):l=!1,xi(u,O),U1(u,F,H),ic(u,F,H,O),pr(null,u,F,!0,l,O);case 19:return cc(l,u,O);case 22:return Zi(l,u,O)}throw Error(o(156,u.tag))};function tf(l,u){return bi(l,u)}function ef(l,u,O,F){this.tag=l,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 7,053 bytes, line 20
20ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,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 _a(l,u,O,F){return new ef(l,u,O,F)}function Fu(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Du(l){if(typeof l=="function")return Fu(l)?1:0;if(l!=null){if(l=l.$$typeof,l===h)return 11;if(l===M)return 14}return 2}function Fo(l,u){var O=l.alternate;return O===null?(O=_a(l.tag,u,l.key,l.mode),O.elementType=l.elementType,O.type=l.type,O.stateNode=l.stateNode,O.alternate=l,l.alternate=O):(O.pendingProps=u,O.type=l.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=l.flags&14680064,O.childLanes=l.childLanes,O.lanes=l.lanes,O.child=l.child,O.memoizedProps=l.memoizedProps,O.memoizedState=l.memoizedState,O.updateQueue=l.updateQueue,u=l.dependencies,O.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},O.sibling=l.sibling,O.index=l.index,O.ref=l.ref,O}function ju(l,u,O,F,H,K){var st=2;if(F=l,typeof l=="function")Fu(l)&&(st=1);else if(typeof l=="string")st=5;else t:switch(l){case g:return ps(O.children,H,K,u);case v:st=8,H|=8;break;case x:return l=_a(12,O,u,H|2),l.elementType=x,l.lanes=K,l;case w:return l=_a(13,O,u,H),l.elementType=w,l.lanes=K,l;case E:return l=_a(19,O,u,H),l.elementType=E,l.lanes=K,l;case m:return la(O,H,K,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case C:st=10;break t;case y:st=9;break t;case h:st=11;break t;case M:st=14;break t;case b:st=16,F=null;break t}throw Error(o(130,l==null?l:typeof l,""))}return u=_a(st,O,u,H),u.elementType=l,u.type=F,u.lanes=K,u}function ps(l,u,O,F){return l=_a(7,l,F,u),l.lanes=O,l}function la(l,u,O,F){return l=_a(22,l,F,u),l.elementType=m,l.lanes=O,l.stateNode={isHidden:!1},l}function yc(l,u,O){return l=_a(6,l,null,u),l.lanes=O,l}function ll(l,u,O){return u=_a(4,l.children!==null?l.children:[],l.key,u),u.lanes=O,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function nf(l,u,O,F,H){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=J,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qo(0),this.expirationTimes=Qo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qo(0),this.identifierPrefix=F,this.onRecoverableError=H,gt&&(this.mutableSourceEagerHydrationData=null)}function mh(l,u,O,F,H,K,st,bt,Lt){return l=new nf(l,u,O,bt,Lt),u===1?(u=1,K===!0&&(u|=8)):u=0,K=_a(3,null,null,u),l.current=K,K.stateNode=l,K.memoizedState={element:F,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},xo(K),l}function vh(l){if(!l)return qn;l=l._reactInternals;t:{if(T(l)!==l||l.tag!==1)throw Error(o(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(ar(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(u!==null);throw Error(o(171))}if(l.tag===1){var O=l.type;if(ar(O))return $o(l,O,u)}return u}function Bu(l){var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(o(188)):(l=Object.keys(l).join(","),Error(o(268,l)));return l=B(u),l===null?null:l.stateNode}function gs(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var O=l.retryLane;l.retryLane=O!==0&&O<u?O:u}}function cl(l,u){gs(l,u),(l=l.alternate)&&gs(l,u)}function yh(l){return l=B(l),l===null?null:l.stateNode}function i2(){return null}return e.attemptContinuousHydration=function(l){if(l.tag===13){var u=ni(l,134217728);if(u!==null){var O=yr();jn(u,l,134217728,O)}cl(l,134217728)}},e.attemptDiscreteHydration=function(l){if(l.tag===13){var u=ni(l,1);if(u!==null){var O=yr();jn(u,l,1,O)}cl(l,1)}},e.attemptHydrationAtCurrentPriority=function(l){if(l.tag===13){var u=kr(l),O=ni(l,u);if(O!==null){var F=yr();jn(O,l,u,F)}cl(l,u)}},e.attemptSynchronousHydration=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var O=go(u.pendingLanes);O!==0&&(oa(u,O|1),br(u,ln()),(De&6)===0&&(Da(),Ve()))}break;case 13:hh(function(){var F=ni(l,1);if(F!==null){var H=yr();jn(F,l,1,H)}}),cl(l,1)}},e.batchedUpdates=function(l,u){var O=De;De|=1;try{return l(u)}finally{De=O,De===0&&(Da(),Pt&&Ve())}},e.createComponentSelector=function(l){return{$$typeof:tl,value:l}},e.createContainer=function(l,u,O,F,H,K,st){return mh(l,u,!1,null,O,F,H,K,st)},e.createHasPseudoClassSelector=function(l){return{$$typeof:Xi,value:l}},e.createHydrationContainer=function(l,u,O,F,H,K,st,bt,Lt){return l=mh(O,F,!0,l,H,K,st,bt,Lt),l.context=vh(null),O=l.current,F=yr(),H=kr(O),K=Vi(F,H),K.callback=u??null,Co(O,K,H),l.current.lanes=H,ma(l,H,F),br(l,F),l},e.createPortal=function(l,u,O){var F=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:F==null?null:""+F,children:l,containerInfo:u,implementation:O}},e.createRoleSelector=function(l){return{$$typeof:Xr,value:l}},e.createTestNameSelector=function(l){return{$$typeof:ki,value:l}},e.createTextSelector=function(l){return{$$typeof:el,value:l}},e.deferredUpdates=function(l){var u=Me,O=Nn.transition;try{return Nn.transition=null,Me=16,l()}finally{Me=u,Nn.transition=O}},e.discreteUpdates=function(l,u,O,F,H){var K=Me,st=Nn.transition;try{return Nn.transition=null,Me=1,l(u,O,F,H)}finally{Me=K,Nn.transition=st,De===0&&Da()}},e.findAllNodes=li,e.findBoundingRects=function(l,u){if(!Kt)throw Error(o(363));u=li(l,u),l=[];for(var O=0;O<u.length;O++)l.push(oe(u[O]));for(u=l.length-1;0<u;u--){O=l[u];for(var F=O.x,H=F+O.width,K=O.y,st=K+O.height,bt=u-1;0<=bt;bt--)if(u!==bt){var Lt=l[bt],Wt=Lt.x,ce=Wt+Lt.width,Pe=Lt.y,re=Pe+Lt.height;if(F>=Wt&&K>=Pe&&H<=ce&&st<=re){l.splice(u,1);break}else if(F!==Wt||O.width!==Lt.width||re<K||Pe>st){if(!(K!==Pe||O.height!==Lt.height||ce<F||Wt>H)){Wt>F&&(Lt.width+=Wt-F,Lt.x=F),ce<H&&(Lt.width=H-Wt),l.splice(u,1);break}}else{Pe>K&&(Lt.height+=Pe-K,Lt.y=K),re<st&&(Lt.height=st-Pe),l.splice(u,1);break}}}return l},e.findHostInstance=Bu,e.findHostInstanceWithNoPortals=function(l){return l=A(l),l=l!==null?S(l):null,l===null?null:l.stateNode},e.findHostInstanceWithWarning=function(l){return Bu(l)},e.flushControlled=function(l){var u=De;De|=1;var O=Nn.transition,F=Me;try{Nn.transition=null,Me=1,l()}finally{Me=F,Nn.transition=O,De=u,De===0&&(Da(),Ve())}},e.flushPassiveEffects=Ro,e.flushSync=hh,e.focusWithin=function(l,u){if(!Kt)throw Error(o(363));for(l=si(l),u=uh(l,u),u=Array.from(u),l=0;l<u.length;){var O=u[l++];if(!ue(O)){if(O.tag===5&&$t(O.stateNode))return!0;for(O=O.child;O!==null;)u.push(O),O=O.sibling}}return!1},e.getCurrentUpdatePriority=function(){return Me},e.getFindAllNodesFailureDescription=function(l,u){if(!Kt)throw Error(o(363));var O=0,F=[];l=[si(l),0];for(var H=0;H<l.length;){var K=l[H++],st=l[H++],bt=u[st];if((K.tag!==5||!ue(K))&&(Pi(K,bt)&&(F.push(pc(bt)),st++,st>
20O&&(O=st)),st<u.length))for(K=K.child;K!==null;)l.push(K,st),K=K.sibling}if(O<u.length){for(l=[];O<u.length;O++)l.push(pc(u[O]));return`findAllNodes was able to match part of the selector:
21  `+(F.join(" > ")+`
22
23No matching component was found for:
24  `)+l.join(" > ")}return null},e.getPublicRootInstance=function(l){return l=l.current,l.child?l.child.tag===5?N(l.child.stateNode):l.child.stateNode:null},e.injectIntoDevTools=function(l){if(l={bundleType:l.bundleType,version:l.version,rendererPackageName:l.rendererPackageName,rendererConfig:l.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:c.ReactCurrentDispatcher,findHostInstanceByFiber:yh,findFiberByHostInstance:l.findFiberByHostInstance||i2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled||!u.supportsFiber)l=!0;else{try{js=u.inject(l),Ir=u}catch{}l=!!u.checkDCE}}return l},e.isAlreadyRendering=function(){return!1},e.observeVisibleRects=function(l,u,O,F){if(!Kt)throw Error(o(363));l=li(l,u);var H=we(l,O,F).disconnect;return{disconnect:function(){H()}}},e.registerMutableSourceForHydration=function(l,u){var O=u._getVersion;O=O(u._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[u,O]:l.mutableSourceEagerHydrationData.push(u,O)},e.runWithPriority=function(l,u){var O=Me;try{return Me=l,u()}finally{Me=O}},e.shouldError=function(){return null},e.shouldSuspend=function(){return!1},e.updateContainer=function(l,u,O,F){var H=u.current,K=yr(),st=kr(H);return O=vh(O),u.context===null?u.context=O:u.pendingContext=O,u=Vi(K,st),u.payload={element:l},F=F===void 0?null:F,F!==null&&(u.callback=F),l=Co(H,u,st),l!==null&&(jn(l,H,st,K),Yl(l,H,st)),st},e}),bv}var xv;function v_(){return xv||(xv=1,yv.exports=m_()),yv.exports}var y_=v_();const b_=Vc(y_);var Cv={exports:{}},kc={},Sv;function w_(){return Sv||(Sv=1,kc.ConcurrentRoot=1,kc.ContinuousEventPriority=4,kc.DefaultEventPriority=16,kc.DiscreteEventPriority=1,kc.IdleEventPriority=536870912,kc.LegacyRoot=0),kc}var _v;function x_(){return _v||(_v=1,Cv.exports=w_()),Cv.exports}var B9=x_(),C_=He();const Ev={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let Ov=!1,kv=!1;const fm=".react-konva-event";let H9=!1;function S_(t){H9=t}const __=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
25Position of a node will be changed during drag&drop, so you should update state of the react app as well.
26Consider to add onDragMove or onDragEnd events.
27For more info see: https://github.com/konvajs/react-konva/issues/256
28`,E_=`ReactKonva: You are using "zIndex" attribute for a Konva node.
29react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
30For more info see: https://github.com/konvajs/react-konva/issues/194
31`,O_={};function Ap(t,e,n=O_){if(!Ov&&"zIndex"in e&&(console.warn(E_),Ov=!0),!kv&&e.draggable){var r=e.x!==void 0||e.y!==void 0,s=e.onDragEnd||e.onDragMove;r&&!s&&(console.warn(__),kv=!0)}for(var o in n)if(!Ev[o]){var c=o.slice(0,2)==="on",d=n[o]!==e[o];if(c&&d){var f=o.substr(2).toLowerCase();f.substr(0,7)==="content"&&(f="content"+f.substr(7,1).toUpperCase()+f.substr(8)),t.off(f,n[o])}var g=!e.hasOwnProperty(o);g&&t.setAttr(o,void 0)}var v=H9||e._useStrictMode,x={},C=!1;const y={};for(var o in e)if(!Ev[o]){var c=o.slice(0,2)==="on",h=n[o]!==e[o];if(c&&h){var f=o.substr(2).toLowerCase();f.substr(0,7)==="content"&&(f="content"+f.substr(7,1).toUpperCase()+f.substr(8)),e[o]&&(y[f]=e[o])}!c&&(e[o]!==n[o]||v&&e[o]!==t.getAttr(o))&&(C=!0,x[o]=e[o])}C&&(t.setAttrs(x),kl(t));for(var f in y)t.on(f+fm,y[f])}function kl(t){if(!C_.Konva.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}var H2=em();const z9={},k_={};b1.Node.prototype._applyProps=Ap;function P_(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),kl(t)}function M_(t,e,n){let r=b1[t];r||(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`),r=b1.Group);const s={},o={};for(var c in e){var d=c.slice(0,2)==="on";d?o[c]=e[c]:s[c]=e[c]}const f=new r(s);return Ap(f,o),f}function L_(t,e,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${t}"`)}function T_(t,e,n){return!1}function A_(t){return t}function I_(){return null}function N_(){return null}function R_(t,e,n,r){return k_}function F_(){}function D_(t){}function j_(t,e){return!1}function B_(){return z9}function H_(){return z9}const z_=setTimeout,G_=clearTimeout,U_=-1;function W_(t,e){return!1}const V_=!1,Y_=!0,Z_=!0;function K_(t,e){e.parent===t?e.moveToTop():t.add(e),kl(t)}function $_(t,e){e.parent===t?e.moveToTop():t.add(e),kl(t)}function G9(t,e,n){e._remove(),t.add(e),e.setZIndex(n.getZIndex()),kl(t)}function X_(t,e,n){G9(t,e,n)}function q_(t,e){e.destroy(),e.off(fm),kl(t)}function Q_(t,e){e.destroy(),e.off(fm),kl(t)}function J_(t,e,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function tE(t,e,n){}function eE(t,e,n,r,s){Ap(t,s,r)}function nE(t){t.hide(),kl(t)}function rE(t){}function aE(t,e){(e.visible==null||e.visible)&&t.show()}function iE(t,e){}function oE(t){}function sE(){}const lE=()=>B9.DefaultEventPriority,cE=Object.freeze(Object.defineProperty({__proto__:null,appendChild:K_,appendChildToContainer:$_,appendInitialChild:P_,cancelTimeout:G_,clearContainer:oE,commitMount:tE,commitTextUpdate:J_,commitUpdate:eE,createInstance:M_,createTextInstance:L_,detachDeletedInstance:sE,finalizeInitialChildren:T_,getChildHostContext:H_,getCurrentEventPriority:lE,getPublicInstance:A_,getRootHostContext:B_,hideInstance:nE,hideTextInstance:rE,idlePriority:H2.unstable_IdlePriority,insertBefore:G9,insertInContainerBefore:X_,isPrimaryRenderer:V_,noTimeout:U_,now:H2.unstable_now,prepareForCommit:I_,preparePortalMount:N_,prepareUpdate:R_,removeChild:q_,removeChildFromContainer:Q_,resetAfterCommit:F_,resetTextContent:D_,run:H2.unstable_runWithPriority,scheduleTimeout:z_,shouldDeprioritizeSubtree:j_,shouldSetTextContent:W_,supportsMutation:Z_,unhideInstance:aE,unhideTextInstance:iE,warnsIfNotActing:Y_},Symbol.toStringTag,{value:"Module"}));var uE=Object.defineProperty,dE=Object.defineProperties,hE=Object.getOwnPropertyDescriptors,Pv=Object.getOwnPropertySymbols,fE=Object.prototype.hasOwnProperty,pE=Object.prototype.propertyIsEnumerable,Mv=(t,e,n)=>e in t?uE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lv=(t,e)=>{for(var n in e||(e={}))fE.call(e,n)&&Mv(t,n,e[n]);if(Pv)for(var n of Pv(e))pE.call(e,n)&&Mv(t,n,e[n]);return t},gE=(t,e)=>dE(t,hE(e)),Tv,Av;typeof window<"u"&&((Tv=window.document)!=null&&Tv.createElement||((Av=window.navigator)==null?void 0:Av.product)==="ReactNative")?ct.useLayoutEffect:ct.useEffect;function U9(t,e,n){if(!t)return;if(n(t)===!0)return t;let r=t.child;for(;r;){const s=U9(r,e,n);if(s)return s;r=r.sibling}}function W9(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const Iv=console.error;console.error=function(){const t=[...arguments].join("");if(t?.startsWith("Warning:")&&t.includes("useContext")){console.error=Iv;return}return Iv.apply(this,arguments)};const pm=W9(ct.createContext(null));class V9 extends ct.Component{render(){return ct.createElement(pm.Provider,{value:this._reactInternals},this.props.children)}}function mE(){const t=ct.useContext(pm);
31if(t===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const e=ct.useId();return ct.useMemo(()=>{for(const n of[t,t?.alternate]){if(!n)continue;const r=U9(n,!1,s=>{let o=s.memoizedState;for(;o;){if(o.memoizedState===e)return!0;o=o.next}});if(r)return r}},[t,e])}function vE(){const t=mE(),[e]=ct.useState(()=>new Map);e.clear();let n=t;for(;n;){if(n.type&&typeof n.type=="object"){const r=n.type._context===void 0&&n.type.Provider===n.type?n.type:n.type._context;r&&r!==pm&&!e.has(r)&&e.set(r,ct.useContext(W9(r)))}n=n.return}return e}function yE(){const t=vE();return ct.useMemo(()=>Array.from(t.keys()).reduce((e,n)=>r=>ct.createElement(e,null,ct.createElement(n.Provider,gE(Lv({},r),{value:t.get(n)}))),e=>ct.createElement(V9,Lv({},e))),[t])}function bE(t){const e=L.useRef({});return L.useLayoutEffect(()=>{e.current=t}),L.useLayoutEffect(()=>()=>{e.current={}},[]),e.current}const wE=t=>{const e=L.useRef(),n=L.useRef(),r=L.useRef(),s=bE(t),o=yE(),c=d=>{const{forwardedRef:f}=t;f&&(typeof f=="function"?f(d):f.current=d)};return L.useLayoutEffect(()=>(n.current=new b1.Stage({width:t.width,height:t.height,container:e.current}),c(n.current),r.current=l1.createContainer(n.current,B9.LegacyRoot,!1,null),l1.updateContainer(L.createElement(o,{},t.children),r.current),()=>{b1.isBrowser&&(c(null),l1.updateContainer(null,r.current,null),n.current.destroy())}),[]),L.useLayoutEffect(()=>{c(n.current),Ap(n.current,t,s),l1.updateContainer(L.createElement(o,{},t.children),r.current,null)}),L.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})},gm="Layer",xE="Group",Y9="Rect",Z9="Ellipse",CE="Line",Ip="Image",SE="Text",_E="RegularPolygon",EE="Arrow",K9="Transformer",l1=b_(cE);l1.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:L.version,rendererPackageName:"react-konva"});const $9=L.forwardRef((t,e)=>L.createElement(V9,{},L.createElement(wE,{...t,forwardedRef:e}))),OE=S_;var _g=function(t,e,n,r){return Math.min(t/n,e/r)||1},pp="FIE_root",kE="FIE_design-layer",X9="FIE_transformers-layer",q9="FIE_original-image",Q9="FIE_nodes-transformer",El="watermark",Eg="353297d2-40b4-4684-a875-45a2178a8157",J9=.92,Mn={FINETUNE:"Finetune",FILTERS:"Filters",ADJUST:"Adjust",WATERMARK:"Watermark",ANNOTATE:"Annotate",RESIZE:"Resize"},_t={CROP:"Crop",ROTATE:"Rotate",FLIP_X:"Flip_X",FLIP_Y:"Flip_Y",BRIGHTNESS:"Brightness",CONTRAST:"Contrast",HSV:"HueSaturationValue",WARMTH:"Warmth",BLUR:"Blur",THRESHOLD:"Threshold",POSTERIZE:"Posterize",PIXELATE:"Pixelate",NOISE:"Noise",FILTERS:"Filters",RECT:"Rect",ELLIPSE:"Ellipse",POLYGON:"Polygon",TEXT:"Text",LINE:"Line",IMAGE:"Image",ARROW:"Arrow",WATERMARK:"Watermark",PEN:"Pen",RESIZE:"Resize"},mm={X:"X",Y:"Y"},oo=1,gd=["png","jpeg","jpg","webp"],PE=[].concat(gd,["svg","gif","avif","apng"]),Nv=gd[0],Os={DEFAULT:"default",DRAW:"crosshair",SELECT:"pointer",MOVE:"move",DRAG:"GRAB"},vm="Crop",tb="custom",Yc="ellipse",Cr={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},Rv={WIDTH:14,HEIGHT:14},eb={AFTER_SAVE:"after-saving",CLOSE_BUTTON:"close-button-clicked"},md={WARNING:"warning",ERROR:"error"},Fv={top:"north",bottom:"south",left:"west",center:"center",right:"east"},ME={northwest:"top-left",northcenter:"top-center",northeast:"top-right",centerwest:"center-left",centercenter:"center-center",centereast:"center-right",southwest:"bottom-left",southcenter:"bottom-center",southeast:"bottom-right"},LE=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0&&arguments[2];e.ratio!==Yc||n?t.rect(e.x,e.y,e.width,e.height):t.ellipse(e.x+e.width/2,e.y+e.height/2,e.width/2,e.height/2,0,0,2*Math.PI)};function Dv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function jv(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}
31:arguments[n],n%2?Dv(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Dv(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var nb="ADD_FILTER",TE=function(t,e){return jv(jv({},t),{},{isDesignState:!e.dismissHistory,filter:e.filter||null})};function Bv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Hv(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Bv(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Bv(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Np="HIDE_LOADER",AE=function(t){return Hv(Hv({},t),{},{isLoadingGlobally:!1})};
31function rb(t){return T9(t)||x9(t)||om(t)||A9()}var Yu;const ab=(Yu={theme:{palette:{"bg-primary-active":"#ECF3FF"},typography:{fontFamily:"Roboto, Arial"}},annotationsCommon:{fill:"#000000",stroke:"#000000",strokeWidth:0,shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:"#000000",shadowOpacity:1,opacity:1}},V(V(V(V(V(V(V(V(V(V(Yu,_t.TEXT,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",fontFamily:"Arial",fonts:[{label:"Arial",value:"Arial"},"Tahoma","Sans-serif",{label:"Comic Sans",value:"Comic-sans"}],fontSize:14,letterSpacing:0,lineHeight:1,align:"left",fontStyle:"normal",onFontChange:void 0}),_t.IMAGE,{fill:void 0,disableUpload:!1,gallery:[]}),_t.RECT,{cornerRadius:0}),_t.ELLIPSE,{}),_t.POLYGON,{sides:3}),_t.PEN,{strokeWidth:1,tension:.5,lineCap:"round",selectAnnotationAfterDrawing:!0}),_t.LINE,{lineCap:"butt",strokeWidth:1}),_t.ARROW,{strokeWidth:6,lineCap:"butt",pointerLength:void 0,pointerWidth:void 0}),_t.WATERMARK,{gallery:[],textScalingRatio:.5,imageScalingRatio:.5,hideTextWatermark:!1,onUploadWatermarkImgClick:void 0}),_t.CROP,{minWidth:Rv.WIDTH,minHeight:Rv.HEIGHT,width:null,height:null,maxWidth:null,maxHeight:null,ratio:null,ratioTitleKey:void 0,noPresets:!1,autoResize:!1,presetsItems:[],presetsFolders:[],lockCropAreaAt:null}),V(V(V(V(V(V(V(V(V(V(Yu,_t.ROTATE,{angle:60,componentType:"slider"}),"tabsIds",[]),"defaultTabId",Mn.ADJUST),"defaultToolId",_t.CROP),"onClose",void 0),"onSave",void 0),"onBeforeSave",void 0),"closeAfterSave",!1),"defaultSavedImageName",void 0),"defaultSavedImageType",null),V(V(V(V(V(V(V(V(V(V(Yu,"defaultSavedImageQuality",.92),"forceToPngInEllipticalCrop",!1),"useBackendTranslations",!0),"translations",null),"language","en"),"avoidChangesNotSavedAlertOnLeave",!1),"loadableDesignState",null),"moreSaveOptions",[]),"savingPixelRatio",4),"previewPixelRatio",window&&window.devicePixelRatio||1),V(V(V(V(V(V(V(V(V(V(Yu,"showBackButton",!1),"useCloudimage",!1),"cloudimage",{token:"",dontPrefixUrl:!1,domain:"cloudimg.io",version:"",loadableQuery:"",secureProtocol:!0,imageSealing:{enable:!1,salt:"",charCount:10,includeParams:[]}}),"observePluginContainerSize",!1),"showCanvasOnly",!1),"getCurrentImgDataFnRef",void 0),"onModify",void 0),"useZoomPresetsMenu",!0),"disableZooming",!1),"noCrossOrigin",!1),V(V(V(Yu,"disableSaveIfNoChanges",!1),"removeSaveButton",!1),"resetOnImageSourceChange",!1));var np={exports:{}},h0={},zv={},Gv={},Uv;function $e(){return Uv||(Uv=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const e=Math.PI/180;function n(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}t.glob=typeof Cl<"u"?Cl:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},t.Konva={_global:t.glob,version:"9.3.6",isBrowser:n(),isUnminified:/param/.test(function(s){}.toString()),dblClickWindow:400,getAngle(s){return t.Konva.angleDeg?s*e:s},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,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return t.Konva.DD.isDragging},isTransforming(){var s;return(s=t.Konva.Transformer)===null||s===void 0?void 0:s.isTransforming()},isDragReady(){return!!t.Konva.DD.node},releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(s){t.glob.Konva=s}};const r=s=>{t.Konva[s.prototype.getClassName()]=s};t._registerNode=r,t.Konva._injectGlobal(t.Konva)})(Gv)),Gv}var Wv={},Vv;function rr(){return Vv||(Vv=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const e=$e();class n{constructor(_=[1,0,0,1,0,0]){this.dirty=!1,this.m=_&&_.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 n(this.m)}copyInto(_){_.m[0]=this.m[0],_.m[1]=this.m[1],_.m[2]=this.m[2],_.m[3]=this.m[3],_.m[4]=this.m[4],_.m[5]=this.m[5]}point(_){var k=this.m;return{x:k[0]*_.x+k[2]*_.y+k[4],y:k[1]*_.x+k[3]*_.y+k[5]}}translate(_,k){return this.m[4]+=this.m[0]*_+this.m[2]*k,this.m[5]+=this.m[1]*_+this.m[3]*k,this}scale(_,k){return this.m[0]*=_,this.m[1]*=_,this.m[2]*=k,this.m[3]*=k,this}rotate(_){var k=Math.cos(_),R=Math.sin(_),G=this.m[0]*k+this.m[2]*R,T=this.m[1]*k+this.m[3]*R,D=this.m[0]*-R+this.m[2]*k,A=this.m[1]*-R+this.m[3]*k;return this.m[0]=G,this.m[1]=T,this.m[2]=D,this.m[3]=A,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(_,k){var R=this.m[0]+this.m[2]*k,G=this.m[1]+this.m[3]*k,T=this.m[2]+this.m[0]*_,D=this.m[3]+this.m[1]*_;return this.m[0]=R,this.m[1]=G,this.m[2]=T,this.m[3]=D,this}multiply(_){var k=this.m[0]*_.m[0]+this.m[2]*_.m[1],R=this.m[1]*_.m[0]+this.m[3]*_.m[1],G=this.m[0]*_.m[2]+this.m[2]*_.m[3],T=this.m[1]*_.m[2]+this.m[3]*_.m[3],D=this.m[0]*_.m[4]+this.m[2]*_.m[5]+this.m[4],A=this.m[1]*_.m[4]+this.m[3]*_.m[5]+this.m[5];return this.m[0]=k,this.m[1]=R,this.m[2]=G,this.m[3]=T,this.m[4]=D,this.m[5]=A,this}invert(){var _=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),k=this.m[3]*_,R=-this.m[1]*_,G
31=-this.m[2]*_,T=this.m[0]*_,D=_*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),A=_*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=k,this.m[1]=R,this.m[2]=G,this.m[3]=T,this.m[4]=D,this.m[5]=A,this}getMatrix(){return this.m}decompose(){var _=this.m[0],k=this.m[1],R=this.m[2],G=this.m[3],T=this.m[4],D=this.m[5],A=_*G-k*R;let B={x:T,y:D,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(_!=0||k!=0){var Z=Math.sqrt(_*_+k*k);B.rotation=k>0?Math.acos(_/Z):-Math.acos(_/Z),B.scaleX=Z,B.scaleY=A/Z,B.skewX=(_*R+k*G)/A,B.skewY=0}else if(R!=0||G!=0){var S=Math.sqrt(R*R+G*G);B.rotation=Math.PI/2-(G>0?Math.acos(-R/S):-Math.acos(R/S)),B.scaleX=A/S,B.scaleY=S,B.skewX=0,B.skewY=(_*R+k*G)/A}return B.rotation=t.Util._getRotation(B.rotation),B}}t.Transform=n;var r="[object Array]",s="[object Number]",o="[object String]",c="[object Boolean]",d=Math.PI/180,f=180/Math.PI,g="#",v="",x="0",C="Konva warning: ",y="Konva error: ",h="rgb(",w={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]},E=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,M=[];const b=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(m){setTimeout(m,60)};t.Util={_isElement(m){return!!(m&&m.nodeType==1)},_isFunction(m){return!!(m&&m.constructor&&m.call&&m.apply)},_isPlainObject(m){return!!m&&m.constructor===Object},_isArray(m){return Object.prototype.toString.call(m)===r},_isNumber(m){return Object.prototype.toString.call(m)===s&&!isNaN(m)&&isFinite(m)},_isString(m){return Object.prototype.toString.call(m)===o},_isBoolean(m){return Object.prototype.toString.call(m)===c},isObject(m){return m instanceof Object},isValidSelector(m){if(typeof m!="string")return!1;var _=m[0];return _==="#"||_==="."||_===_.toUpperCase()},_sign(m){return m===0||m>0?1:-1}
31,requestAnimFrame(m){M.push(m),M.length===1&&b(function(){const _=M;M=[],_.forEach(function(k){k()})})},createCanvasElement(){var m=document.createElement("canvas");try{m.style=m.style||{}}catch{}return m},createImageElement(){return document.createElement("img")},_isInDocument(m){for(;m=m.parentNode;)if(m==document)return!0;return!1},_urlToImage(m,_){var k=t.Util.createImageElement();k.onload=function(){_(k)},k.src=m},_rgbToHex(m,_,k){return((1<<24)+(m<<16)+(_<<8)+k).toString(16).slice(1)},_hexToRgb(m){m=m.replace(g,v);var _=parseInt(m,16);return{r:_>>16&255,g:_>>8&255,b:_&255}},getRandomColor(){for(var m=(Math.random()*16777215<<0).toString(16);m.length<6;)m=x+m;return g+m},getRGB(m){var _;return m in w?(_=w[m],{r:_[0],g:_[1],b:_[2]}):m[0]===g?this._hexToRgb(m.substring(1)):m.substr(0,4)===h?(_=E.exec(m.replace(/ /g,"")),{r:parseInt(_[1],10),g:parseInt(_[2],10),b:parseInt(_[3],10)}):{r:0,g:0,b:0}},colorToRGBA(m){return m=m||"black",t.Util._namedColorToRBA(m)||t.Util._hex3ColorToRGBA(m)||t.Util._hex4ColorToRGBA(m)||t.Util._hex6ColorToRGBA(m)||t.Util._hex8ColorToRGBA(m)||t.Util._rgbColorToRGBA(m)||t.Util._rgbaColorToRGBA(m)||t.Util._hslColorToRGBA(m)},_namedColorToRBA(m){var _=w[m.toLowerCase()];return _?{r:_[0],g:_[1],b:_[2],a:1}:null},_rgbColorToRGBA(m){if(m.indexOf("rgb(")===0){m=m.match(/rgb\(([^)]+)\)/)[1];var _=m.split(/ *, */).map(Number);return{r:_[0],g:_[1],b:_[2],a:1}}},_rgbaColorToRGBA(m){if(m.indexOf("rgba(")===0){m=m.match(/rgba\(([^)]+)\)/)[1];var _=m.split(/ *, */).map((k,R)=>k.slice(-1)==="%"?R===3?parseInt(k)/100:parseInt(k)/100*255:Number(k));return{r:_[0],g:_[1],b:_[2],a:_[3]}}},_hex8ColorToRGBA(m){if(m[0]==="#"&&m.length===9)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:parseInt(m.slice(7,9),16)/255}},_hex6ColorToRGBA(m){if(m[0]==="#"&&m.length===7)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:1}},_hex4ColorToRGBA(m){if(m[0]==="#"&&m.length===5)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:parseInt(m[4]+m[4],16)/255}},_hex3ColorToRGBA(m){if(m[0]==="#"&&m.length===4)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:1}},_hslColorToRGBA(m){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(m)){const[_,...k]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(m),R=Number(k[0])/360,G=Number(k[1])/100,T=Number(k[2])/100;let D,A,B;if(G===0)return B=T*255,{r:Math.round(B),g:Math.round(B),b:Math.round(B),a:1};T<.5?D=T*(1+G):D=T+G-T*G;const Z=2*T-D,S=[0,0,0];for(let I=0;I<3;I++)A=R+1/3*-(I-1),A<0&&A++,A>1&&A--,6*A<1?B=Z+(D-Z)*6*A:2*A<1?B=D:3*A<2?B=Z+(D-Z)*(2/3-A)*6:B=Z,S[I]=B*255;return{r:Math.round(S[0]),g:Math.round(S[1]),b:Math.round(S[2]),a:1}}},haveIntersection(m,_){return!(_.x>m.x+m.width||_.x+_.width<m.x||_.y>m.y+m.height||_.y+_.height<m.y)},cloneObject(m){var _={};for(var k in m)this._isPlainObject(m[k])?_[k]=this.cloneObject(m[k]):this._isArray(m[k])?_[k]=this.cloneArray(m[k]):_[k]=m[k];return _},cloneArray(m){return m.slice(0)},degToRad(m){return m*d},radToDeg(m){return m*f},_degToRad(m){return t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(m)},_radToDeg(m){return t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(m)},_getRotation(m){return e.Konva.angleDeg?t.Util.radToDeg(m):m},_capitalize(m){return m.charAt(0).toUpperCase()+m.slice(1)},throw(m){throw new Error(y+m)},error(m){console.error(y+m)},warn(m){e.Konva.showWarnings&&console.warn(C+m)},each(m,_){for(var k in m)_(k,m[k])},_inRange(m,_,k){return _<=m&&m<k},_getProjectionToSegment(m,_,k,R,G,T){var D,A,B,Z=(m-k)*(m-k)+(_-R)*(_-R);if(Z==0)D=m,A=_,B=(G-k)*(G-k)+(T-R)*(T-R);else{var S=((G-m)*(k-m)+(T-_)*(R-_))/Z;S<0?(D=m,A=_,B=(m-G)*(m-G)+(_-T)*(_-T)):S>1?(D=k,A=R,B=(k-G)*(k-G)+(R-T)*(R-T)):(D=m+S*(k-m),A=_+S*(R-_),B=(D-G)*(D-G)+(A-T)*(A-T))}return[D,A,B]},_getProjectionToLine(m,_,k){var R=t.Util.cloneObject(m),G=Number.MAX_VALUE;return _.forEach(function(T,D){if(!(!k&&D===_.length-1)){var A=_[(D+1)%_.length],B=t.Util._getProjectionToSegment(T.x,T.y,A.x,A.y,m.x,m.y),Z=B[0],S=B[1],I=B[2];I<G&&(R.x=Z,R.y=S,G=I)}}),R},_prepareArrayForTween(m,_,k){var R,G=[],T=[];
31if(m.length>_.length){var D=_;_=m,m=D}for(R=0;R<m.length;R+=2)G.push({x:m[R],y:m[R+1]});for(R=0;R<_.length;R+=2)T.push({x:_[R],y:_[R+1]});var A=[];return T.forEach(function(B){var Z=t.Util._getProjectionToLine(B,G,k);A.push(Z.x),A.push(Z.y)}),A},_prepareToStringify(m){var _;m.visitedByCircularReferenceRemoval=!0;for(var k in m)if(m.hasOwnProperty(k)&&m[k]&&typeof m[k]=="object"){if(_=Object.getOwnPropertyDescriptor(m,k),m[k].visitedByCircularReferenceRemoval||t.Util._isElement(m[k]))if(_.configurable)delete m[k];else return null;else if(t.Util._prepareToStringify(m[k])===null)if(_.configurable)delete m[k];else return null}return delete m.visitedByCircularReferenceRemoval,m},_assign(m,_){for(var k in _)m[k]=_[k];return m},_getFirstPointerId(m){return m.touches?m.changedTouches[0].identifier:m.pointerId||999},releaseCanvas(...m){e.Konva.releaseCanvasOnDestroy&&m.forEach(_=>{_.width=0,_.height=0})},drawRoundedRectPath(m,_,k,R){let G=0,T=0,D=0,A=0;typeof R=="number"?G=T=D=A=Math.min(R,_/2,k/2):(G=Math.min(R[0]||0,_/2,k/2),T=Math.min(R[1]||0,_/2,k/2),A=Math.min(R[2]||0,_/2,k/2),D=Math.min(R[3]||0,_/2,k/2)),m.moveTo(G,0),m.lineTo(_-T,0),m.arc(_-T,T,T,Math.PI*3/2,0,!1),m.lineTo(_,k-A),m.arc(_-A,k-A,A,0,Math.PI/2,!1),m.lineTo(D,k),m.arc(D,k-D,D,Math.PI/2,Math.PI,!1),m.lineTo(0,G),m.arc(G,G,G,Math.PI,Math.PI*3/2,!1)}}})(Wv)),Wv}var f0={},Yv={},Bn={},Zv;function Ze(){if(Zv)return Bn;Zv=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.getComponentValidator=Bn.getBooleanValidator=Bn.getNumberArrayValidator=Bn.getFunctionValidator=Bn.getStringOrGradientValidator=Bn.getStringValidator=Bn.getNumberOrAutoValidator=Bn.getNumberOrArrayOfNumbersValidator=Bn.getNumberValidator=Bn.alphaComponent=Bn.RGBComponent=void 0;
31const t=$e(),e=rr();function n(h){return e.Util._isString(h)?'"'+h+'"':Object.prototype.toString.call(h)==="[object Number]"||e.Util._isBoolean(h)?h:Object.prototype.toString.call(h)}function r(h){return h>255?255:h<0?0:Math.round(h)}Bn.RGBComponent=r;function s(h){return h>1?1:h<1e-4?1e-4:h}Bn.alphaComponent=s;function o(){if(t.Konva.isUnminified)return function(h,w){return e.Util._isNumber(h)||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a number.'),h}}Bn.getNumberValidator=o;function c(h){if(t.Konva.isUnminified)return function(w,E){let M=e.Util._isNumber(w),b=e.Util._isArray(w)&&w.length==h;return!M&&!b&&e.Util.warn(n(w)+' is a not valid value for "'+E+'" attribute. The value should be a number or Array<number>('+h+")"),w}}Bn.getNumberOrArrayOfNumbersValidator=c;function d(){if(t.Konva.isUnminified)return function(h,w){var E=e.Util._isNumber(h),M=h==="auto";return E||M||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a number or "auto".'),h}}Bn.getNumberOrAutoValidator=d;function f(){if(t.Konva.isUnminified)return function(h,w){return e.Util._isString(h)||e.Util.warn(n(h)+' is a not val
31id value for "'+w+'" attribute. The value should be a string.'),h}}Bn.getStringValidator=f;function g(){if(t.Konva.isUnminified)return function(h,w){const E=e.Util._isString(h),M=Object.prototype.toString.call(h)==="[object CanvasGradient]"||h&&h.addColorStop;return E||M||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a string or a native gradient.'),h}}Bn.getStringOrGradientValidator=g;function v(){if(t.Konva.isUnminified)return function(h,w){return e.Util._isFunction(h)||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a function.'),h}}Bn.getFunctionValidator=v;function x(){if(t.Konva.isUnminified)return function(h,w){const E=Int8Array?Object.getPrototypeOf(Int8Array):null;return E&&h instanceof E||(e.Util._isArray(h)?h.forEach(function(M){e.Util._isNumber(M)||e.Util.warn('"'+w+'" attribute has non numeric element '+M+". Make sure that all elements are numbers.")}):e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a array of numbers.')),h}}Bn.getNumberArrayValidator=x;function C(){if(t.Konva.isUnminified)return function(h,w){var E=h===!0||h===!1;
31return E||e.Util.warn(n(h)+' is a not valid value for "'+w+'" attribute. The value should be a boolean.'),h}}Bn.getBooleanValidator=C;function y(h){if(t.Konva.isUnminified)return function(w,E){return w==null||e.Util.isObject(w)||e.Util.warn(n(w)+' is a not valid value for "'+E+'" attribute. The value should be an object with properties '+h),w}}return Bn.getComponentValidator=y,Bn}var Kv;function ze(){return Kv||(Kv=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const e=rr(),n=Ze();var r="get",s="set";t.Factory={addGetterSetter(o,c,d,f,g){t.Factory.addGetter(o,c,d),t.Factory.addSetter(o,c,f,g),t.Factory.addOverloadedGetterSetter(o,c)},addGetter(o,c,d){var f=r+e.Util._capitalize(c);o.prototype[f]=o.prototype[f]||function(){var g=this.attrs[c];return g===void 0?d:g}},addSetter(o,c,d,f){var g=s+e.Util._capitalize(c);o.prototype[g]||t.Factory.overWriteSetter(o,c,d,f)},overWriteSetter(o,c,d,f){var g=s+e.Util._capitalize(c);o.prototype[g]=function(v){return d&&v!==void 0&&v!==null&&(v=d.call(this,v,c)),this._setAttr(c,v),f&&f.call(this),this}},addComponentsGetterSetter(o,c,d,f,g){var v=d.length,x=e.Util._capitalize,C=r+x(c),y=s+x(c),h,w;o.prototype[C]=function(){var M={};for(h=0;h<v;h++)w=d[h],M[w]=this.getAttr(c+x(w));return M};var E=(0,n.getComponentValidator)(d);o.prototype[y]=function(M){var b=this.attrs[c],m;f&&(M=f.call(this,M)),E&&E.call(this,M,c);for(m in M)M.hasOwnProperty(m)&&this._setAttr(c+x(m),M[m]);return M||d.forEach(_=>{this._setAttr(c+x(_),void 0)}),this._fireChangeEvent(c,b,M),g&&g.call(this),this},t.Factory.addOverloadedGetterSetter(o,c)},addOverloadedGetterSetter(o,c){var d=e.Util._capitalize(c),f=s+d,g=r+d;o.prototype[c]=function(){return arguments.length?(this[f](arguments[0]),this):this[g]()}},addDeprecatedGetterSetter(o,c,d,f){e.Util.error("Adding deprecated "+c);var g=r+e.Util._capitalize(c),v=c+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[g]=function(){e.Util.error(v);var x=this.attrs[c];return x===void 0?d:x},t.Factory.addSetter(o,c,f,function(){e.Util.error(v)}),t.Factory.addOverloadedGetterSetter(o,c)},backCompat(o,c){e.Util.each(c,function(d,f){var g=o.prototype[f],v=r+e.Util._capitalize(d),x=s+e.Util._capitalize(d);function C(){g.apply(this,arguments),e.Util.error('"'+d+'" method is deprecated and will be removed soon. Use ""'+f+'" instead.')}o.prototype[d]=C,o.prototype[v]=C,o.prototype[x]=C})},afterSetFilter(){this._filterUpToDate=!1}}})(Yv)),Yv}var bs={},ws={},$v;function ib(){if($v)return ws;$v=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.HitContext=ws.SceneContext=ws.Context=void 0;const t=rr(),e=$e();function n(M){var b=[],m=M.length,_=t.Util,k,R;for(k=0;k<m;k++)R=M[k],_._isNumber(R)?R=Math.round(R*1e3)/1e3:_._isString(R)||(R=R+""),b.push(R);return b}var r=",",s="(",o=")",c="([",d="])",f=";",g="()",v="=",x=["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"],C=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const y=100;let h=class{constructor(M){this.canvas=M,e.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(M){M.fillEnabled()&&this._fill(M)}_fill(M){}strokeShape(M){M.hasStroke()&&this._stroke(M)}_stroke(M){}fillStrokeShape(M){M.attrs.fillAfterStrokeEnabled?(this.strokeShape(M),this.fillShape(M)):(this.fillShape(M),this.strokeShape(M))}getTrace(M,b){var m=this.traceArr,_=m.length,k="",R,G,T,D;for(R=0;R<_;R++)G=m[R],T=G.method,T?(D=G.args,k+=T,M?k+=g:t.Util._isArray(D[0])?k+=c+D.join(r)+d:(b&&(D=D.map(A=>
31typeof A=="number"?Math.floor(A):A)),k+=s+D.join(r)+o)):(k+=G.property,M||(k+=v+G.val)),k+=f;return k}clearTrace(){this.traceArr=[]}_trace(M){var b=this.traceArr,m;b.push(M),m=b.length,m>=y&&b.shift()}reset(){var M=this.getCanvas().getPixelRatio();this.setTransform(1*M,0,0,1*M,0,0)}getCanvas(){return this.canvas}clear(M){var b=this.getCanvas();M?this.clearRect(M.x||0,M.y||0,M.width||0,M.height||0):this.clearRect(0,0,b.getWidth()/b.pixelRatio,b.getHeight()/b.pixelRatio)}_applyLineCap(M){const b=M.attrs.lineCap;b&&this.setAttr("lineCap",b)}_applyOpacity(M){var b=M.getAbsoluteOpacity();b!==1&&this.setAttr("globalAlpha",b)}_applyLineJoin(M){const b=M.attrs.lineJoin;b&&this.setAttr("lineJoin",b)}setAttr(M,b){this._context[M]=b}arc(M,b,m,_,k,R){this._context.arc(M,b,m,_,k,R)}arcTo(M,b,m,_,k){this._context.arcTo(M,b,m,_,k)}beginPath(){this._context.beginPath()}bezierCurveTo(M,b,m,_,k,R){this._context.bezierCurveTo(M,b,m,_,k,R)}clearRect(M,b,m,_){this._context.clearRect(M,b,m,_)}clip(...M){this._context.clip.apply(this._context,M)}closePath(){this._context.closePath()}createImageData(M,b){var m=arguments;if(m.length===2)return this._context.createImageData(M,b);if(m.length===1)return this._context.createImageData(M)}createLinearGradient(M,b,m,_){return this._context.createLinearGradient(M,b,m,_)}createPattern(M,b){return this._context.createPattern(M,b)}createRadialGradient(M,b,m,_,k,R){return this._context.createRadialGradient(M,b,m,_,k,R)}drawImage(M,b,m,_,k,R,G,T,D){var A=arguments,B=this._context;A.length===3?B.drawImage(M,b,m):A.length===5?B.drawImage(M,b,m,_,k):A.length===9&&B.drawImage(M,b,m,_,k,R,G,T,D)}ellipse(M,b,m,_,k,R,G,T){this._context.ellipse(M,b,m,_,k,R,G,T)}isPointInPath(M,b,m,_){return m?this._context.isPointInPath(m,M,b,_):this._context.isPointInPath(M,b,_)}fill(...M){this._context.fill.apply(this._context,M)}fillRect(M,b,m,_){this._context.fillRect(M,b,m,_)}strokeRect(M,b,m,_){this._context.strokeRect(M,b,m,_)}fillText(M,b,m,_){_?this._context.fillText(M,b,m,_):this._context.fillText(M,b,m)}measureText(M){return this._context.measureText(M)}getImageData(M,b,m,_){return this._context.getImageData(M,b,m,_)}lineTo(M,b){this._context.lineTo(M,b)}moveTo(M,b){this._context.moveTo(M,b)}rect(M,b,m,_){this._context.rect(M,b,m,_)}roundRect(M,b,m,_,k){this._context.roundRect(M,b,m,_,k)}putImageData(M,b,m){this._context.putImageData(M,b,m)}quadraticCurveTo(M,b,m,_){this._context.quadraticCurveTo(M,b,m,_)}restore(){this._context.restore()}rotate(M){this._context.rotate(M)}save(){this._context.save()}scale(M,b){this._context.scale(M,b)}setLineDash(M){this._context.setLineDash?this._context.setLineDash(M):"mozDash"in this._context?this._context.mozDash=M:"webkitLineDash"in this._context&&(this._context.webkitLineDash=M)}getLineDash(){return this._context.getLineDash()}setTransform(M,b,m,_,k,R){this._context.setTransform(M,b,m,_,k,R)}stroke(M){M?this._context.stroke(M):this._context.stroke()}strokeText(M,b,m,_){this._context.strokeText(M,b,m,_)}transform(M,b,m,_,k,R){this._context.transform(M,b,m,_,k,R)}translate(M,b){this._context.translate(M,b)}_enableTrace(){var M=this,b=x.length,m=this.setAttr,_,k,R=function(G){var T=M[G],D;M[G]=function(){return k=n(Array.prototype.slice.call(arguments,0)),D=T.apply(M,arguments),M._trace({method:G,args:k}),D}};for(_=0;_<b;_++)R(x[_]);M.setAttr=function(){m.apply(M,arguments);var G=arguments[0],T=arguments[1];(G==="shadowOffsetX"||G==="shadowOffsetY"||G==="shadowBlur")&&(T=T/this.canvas.getPixelRatio()),M._trace({property:G,val:T})}}_applyGlobalCompositeOperation(M){const b=M.attrs.globalCompositeOperation;var m=!b||b==="source-over";m||this.setAttr("globalCompositeOperation",b)}};ws.Context=h,C.forEach(function(M){Object.defineProperty(h.prototype,M,{get(){return this._context[M]},set(b){this._context[M]=b}})});class w extends h{constructor(b,{willReadFrequently:m=!1}={}){super(b),this._context=b._canvas.getContext("2d",{willReadFrequently:m})}_fillColor(b){var m=b.fill();this.setAttr("fillStyle",m),b._fillFunc(this)}_fillPattern(b){this.setAttr("fillStyle",b._getFillPattern()),b._fillFunc(this)}
31_fillLinearGradient(b){var m=b._getLinearGradient();m&&(this.setAttr("fillStyle",m),b._fillFunc(this))}_fillRadialGradient(b){const m=b._getRadialGradient();m&&(this.setAttr("fillStyle",m),b._fillFunc(this))}_fill(b){const m=b.fill(),_=b.getFillPriority();if(m&&_==="color"){this._fillColor(b);return}const k=b.getFillPatternImage();if(k&&_==="pattern"){this._fillPattern(b);return}const R=b.getFillLinearGradientColorStops();if(R&&_==="linear-gradient"){this._fillLinearGradient(b);return}const G=b.getFillRadialGradientColorStops();if(G&&_==="radial-gradient"){this._fillRadialGradient(b);return}m?this._fillColor(b):k?this._fillPattern(b):R?this._fillLinearGradient(b):G&&this._fillRadialGradient(b)}_strokeLinearGradient(b){const m=b.getStrokeLinearGradientStartPoint(),_=b.getStrokeLinearGradientEndPoint(),k=b.getStrokeLinearGradientColorStops(),R=this.createLinearGradient(m.x,m.y,_.x,_.y);if(k){for(var G=0;G<k.length;G+=2)R.addColorStop(k[G],k[G+1]);this.setAttr("strokeStyle",R)}}_stroke(b){var m=b.dash(),_=b.getStrokeScaleEnabled();if(b.hasStroke()){if(!_){this.save();var k=this.getCanvas().getPixelRatio();this.setTransform(k,0,0,k,0,0)}this._applyLineCap(b),m&&b.dashEnabled()&&(this.setLineDash(m),this.setAttr("lineDashOffset",b.dashOffset())),this.setAttr("lineWidth",b.strokeWidth()),b.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var R=b.getStrokeLinearGradientColorStops();R?this._strokeLinearGradient(b):this.setAttr("strokeStyle",b.stroke()),b._strokeFunc(this),_||this.restore()}}_applyShadow(b){var m,_,k,R=(m=b.getShadowRGBA())!==null&&m!==void 0?m:"black",G=(_=b.getShadowBlur())!==null&&_!==void 0?_:5,T=(k=b.getShadowOffset())!==null&&k!==void 0?k:{x:0,y:0},D=b.getAbsoluteScale(),A=this.canvas.getPixelRatio(),B=D.x*A,Z=D.y*A;this.setAttr("shadowColor",R),this.setAttr("shadowBlur",G*Math.min(Math.abs(B),Math.abs(Z))),this.setAttr("shadowOffsetX",T.x*B),this.setAttr("shadowOffsetY",T.y*Z)}}ws.SceneContext=w;class E extends h{constructor(b){super(b),this._context=b._canvas.getContext("2d",{willReadFrequently:!0})}_fill(b){this.save(),this.setAttr("fillStyle",b.colorKey),b._fillFuncHit(this),this.restore()}strokeShape(b){b.hasHitStroke()&&this._stroke(b)}_stroke(b){if(b.hasHitStroke()){const R=b.getStrokeScaleEnabled();if(!R){this.save();var m=this.getCanvas().getPixelRatio();this.setTransform(m,0,0,m,0,0)}this._applyLineCap(b);var _=b.hitStrokeWidth(),k=_==="auto"?b.strokeWidth():_;this.setAttr("lineWidth",k),this.setAttr("strokeStyle",b.colorKey),b._strokeFuncHit(this),R||this.restore()}}}return ws.HitContext=E,ws}var Xv;function Rp(){if(Xv)return bs;Xv=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.HitCanvas=bs.SceneCanvas=bs.Canvas=void 0;const t=rr(),e=ib(),n=$e(),r=ze(),s=Ze();var o;function c(){if(o)return o;var v=t.Util.createCanvasElement(),x=v.getContext("2d");return o=(function(){var C=n.Konva._global.devicePixelRatio||1,y=x.webkitBackingStorePixelRatio||x.mozBackingStorePixelRatio||x.msBackingStorePixelRatio||x.oBackingStorePixelRatio||x.backingStorePixelRatio||1;return C/y})(),t.Util.releaseCanvas(v),o}let d=class{constructor(v){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var x=v||{},C=x.pixelRatio||n.Konva.pixelRatio||c();this.pixelRatio=C,this._canvas=t.Util.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(v){var x=this.pixelRatio;this.pixelRatio=v,this.setSize(this.getWidth()/x,this.getHeight()/x)}setWidth(v){this.width=this._canvas.width=v*this.pixelRatio,this._canvas.style.width=v+"px";var x=this.pixelRatio,C=this.getContext()._context;C.scale(x,x)}setHeight(v){this.height=this._canvas.height=v*this.pixelRatio,this._canvas.style.height=v+"px";var x=this.pixelRatio,C=this.getContext()._context;C.scale(x,x)}getWidth(){return this.width}getHeight(){return this.height}setSize(v,x){this.setWidth(v||0),this.setHeight(x||0)}toDataURL(v,x){try{return this._canvas.toDataURL(v,x)}catch{try{return this._canvas.toDataURL()}catch(C){return t.Util.error("Unable to get data URL. "+C.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}};bs.Canvas=d,r.Factory.addGetterSetter(d,"pixelRatio",void 0,(0,s.getNumberValidator)());class f extends d{constructor(x={width:0,height:0,willReadFrequently:!1}){super(x),this.context=new e.SceneContext(this,{willReadFrequently:x.willReadFrequently}),this.setSize(x.width,x.height)}}bs.SceneCanvas=f;class g extends d{constructor(x={width:0,height:0}){super(x),this.hitCanvas=!0,this.context=new e.HitContext(this),this.setSize(x.width,x.height)}}
31return bs.HitCanvas=g,bs}var qv={},Qv;function ym(){return Qv||(Qv=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DD=void 0;const e=$e(),n=rr();t.DD={get isDragging(){var r=!1;return t.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(r=!0)}),r},justDragged:!1,get node(){var r;return t.DD._dragElements.forEach(s=>{r=s.node}),r},_dragElements:new Map,_drag(r){const s=[];t.DD._dragElements.forEach((o,c)=>{const{node:d}=o,f=d.getStage();f.setPointersPositions(r),o.pointerId===void 0&&(o.pointerId=n.Util._getFirstPointerId(r));const g=f._changedPointerPositions.find(C=>C.id===o.pointerId);if(g){if(o.dragStatus!=="dragging"){var v=d.dragDistance(),x=Math.max(Math.abs(g.x-o.startPointerPos.x),Math.abs(g.y-o.startPointerPos.y));if(x<v||(d.startDrag({evt:r}),!d.isDragging()))return}d._setDragPosition(r,o),s.push(d)}}),s.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:r},!0)})},_endDragBefore(r){const s=[];t.DD._dragElements.forEach(o=>{const{node:c}=o,d=c.getStage();if(r&&d.setPointersPositions(r),!d._changedPointerPositions.find(g=>g.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(t.DD.justDragged=!0,e.Konva._mouseListenClick=!1,e.Konva._touchListenClick=!1,e.Konva._pointerListenClick=!1,o.dragStatus="stopped");const f=o.node.getLayer()||o.node instanceof e.Konva.Stage&&o.node;f&&s.indexOf(f)===-1&&s.push(f)}),s.forEach(o=>{o.draw()})},_endDragAfter(r){t.DD._dragElements.forEach((s,o)=>{s.dragStatus==="stopped"&&s.node.fire("dragend",{type:"dragend",target:s.node,evt:r},!0),s.dragStatus!=="dragging"&&t.DD._dragElements.delete(o)})}},e.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1))})(qv)),qv}var Jv;function dr(){if(Jv)return f0;Jv=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.Node=void 0;const t=rr(),e=ze(),n=Rp(),r=$e(),s=ym(),o=Ze();var c="absoluteOpacity",d="allEventListeners",f="absoluteTransform",g="absoluteScale",v="canvas",x="Change",C="children",y="konva",h="listening",w="mouseenter",E="mouseleave",M="set",b="Shape",m=" ",_="stage",k="transform",R="Stage",G="visible",T=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(m);let D=1,A=class Og{constructor(S){this._id=D++,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(S),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(S){(S===k||S===f)&&this._cache.get(S)?this._cache.get(S).dirty=!0:S?this._cache.delete(S):this._cache.clear()}_getCache(S,I){var N=this._cache.get(S),z=S===k||S===f,W=N===void 0||z&&N.dirty===!0;return W&&(N=I.call(this),this._cache.set(S,N)),N}_calculate(S,I,N){if(!this._attachedDepsListeners.get(S)){const z=I.map(W=>W+"Change.konva").join(m);this.on(z,()=>{this._clearCache(S)}),this._attachedDepsListeners.set(S,!0)}return this._getCache(S,N)}_getCanvasCache(){return this._cache.get(v)}_clearSelfAndDescendantCache(S){this._clearCache(S),S===f&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(v)){const{scene:S,filter:I,hit:N}=this._cache.get(v);t.Util.releaseCanvas(S,I,N),this._cache.delete(v)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(S){var I=S||{},N={};(I.x===void 0||I.y===void 0||I.width===void 0||I.height===void 0)&&(N=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var z=Math.ceil(I.width||N.width),W=Math.ceil(I.height||N.height),Q=I.pixelRatio,tt=I.x===void 0?Math.floor(N.x):I.x,at=I.y===void 0?Math.floor(N.y):I.y,X=I.offset||0,q=I.drawBorder||!1,rt=I.hitCanvasPixelRatio||1;if(!z||!W){t.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const ot=Math.abs(Math.round(N.x)-tt)>
31.5?1:0,ft=Math.abs(Math.round(N.y)-at)>.5?1:0;z+=X*2+ot,W+=X*2+ft,tt-=X,at-=X;var it=new n.SceneCanvas({pixelRatio:Q,width:z,height:W}),Y=new n.SceneCanvas({pixelRatio:Q,width:0,height:0,willReadFrequently:!0}),J=new n.HitCanvas({pixelRatio:rt,width:z,height:W}),lt=it.getContext(),dt=J.getContext();return J.isCache=!0,it.isCache=!0,this._cache.delete(v),this._filterUpToDate=!1,I.imageSmoothingEnabled===!1&&(it.getContext()._context.imageSmoothingEnabled=!1,Y.getContext()._context.imageSmoothingEnabled=!1),lt.save(),dt.save(),lt.translate(-tt,-at),dt.translate(-tt,-at),this._isUnderCache=!0,this._clearSelfAndDescendantCache(c),this._clearSelfAndDescendantCache(g),this.drawScene(it,this),this.drawHit(J,this),this._isUnderCache=!1,lt.restore(),dt.restore(),q&&(lt.save(),lt.beginPath(),lt.rect(0,0,z,W),lt.closePath(),lt.setAttr("strokeStyle","red"),lt.setAttr("lineWidth",5),lt.stroke(),lt.restore()),this._cache.set(v,{scene:it,filter:Y,hit:J,x:tt,y:at}),this._requestDraw(),this}isCached(){return this._cache.has(v)}getClientRect(S){throw new Error('abstract "getClientRect" method call')}_transformedRect(S,I){var N=[{x:S.x,y:S.y},{x:S.x+S.width,y:S.y},{x:S.x+S.width,y:S.y+S.height},{x:S.x,y:S.y+S.height}],z=1/0,W=1/0,Q=-1/0,tt=-1/0,at=this.getAbsoluteTransform(I);return N.forEach(function(X){var q=at.point(X);z===void 0&&(z=Q=q.x,W=tt=q.y),z=Math.min(z,q.x),W=Math.min(W,q.y),Q=Math.max(Q,q.x),tt=Math.max(tt,q.y)}),{x:z,y:W,width:Q-z,height:tt-W}}_drawCachedSceneCanvas(S){S.save(),S._applyOpacity(this),S._applyGlobalCompositeOperation(this);const I=this._getCanvasCache();S.translate(I.x,I.y);var N=this._getCachedSceneCanvas(),z=N.pixelRatio;S.drawImage(N._canvas,0,0,N.width/z,N.height/z),S.restore()}_drawCachedHitCanvas(S){var I=this._getCanvasCache(),N=I.hit;S.save(),S.translate(I.x,I.y),S.drawImage(N._canvas,0,0,N.width/N.pixelRatio,N.height/N.pixelRatio),S.restore()}_getCachedSceneCanvas(){var S=this.filters(),I=this._getCanvasCache(),N=I.scene,z=I.filter,W=z.getContext(),Q,tt,at,X;if(S){if(!this._filterUpToDate){var q=N.pixelRatio;z.setSize(N.width/N.pixelRatio,N.height/N.pixelRatio);try{for(Q=S.length,W.clear(),W.drawImage(N._canvas,0,0,N.getWidth()/q,N.getHeight()/q),tt=W.getImageData(0,0,z.getWidth(),z.getHeight()),at=0;at<Q;at++){if(X=S[at],typeof X!="function"){t.Util.error("Filter should be type of function, but got "+typeof X+" instead. Please check correct filters");continue}X.call(this,tt),W.putImageData(tt,0,0)}}catch(rt){t.Util.error("Unable to apply filter. "+rt.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return z}return N}on(S,I){if(this._cache&&this._cache.delete(d),arguments.length===3)return this._delegate.apply(this,arguments);var N=S.split(m),z=N.length,W,Q,tt,at,X;for(W=0;W<z;W++)Q=N[W],tt=Q.split("."),at=tt[0],X=tt[1]||"",this.eventListeners[at]||(this.eventListeners[at]=[]),this.eventListeners[at].push({name:X,handler:I});return this}off(S,I){var N=(S||"").split(m),z=N.length,W,Q,tt,at,X,q;if(this._cache&&this._cache.delete(d),!S)for(Q in this.eventListeners)this._off(Q);for(W=0;W<z;W++)if(tt=N[W],at=tt.split("."),X=at[0],q=at[1],X)this.eventListeners[X]&&this._off(X,q,I);else for(Q in this.eventListeners)this._off(Q,q,I);return this}dispatchEvent(S){var I={target:this,type:S.type,evt:S};return this.fire(S.type,I),this}addEventListener(S,I){return this.on(S,function(N){I.call(this,N.evt)}),this}removeEventListener(S){return this.off(S),this}_delegate(S,I,N){var z=this;this.on(S,function(W){for(var Q=W.target.findAncestors(I,!0,z),tt=0;tt<Q.length;tt++)W=t.Util.cloneObject(W),W.currentTarget=Q[tt],N.call(Q[tt],W)})}
31remove(){return this.isDragging()&&this.stopDrag(),s.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(f),this._clearSelfAndDescendantCache(c),this._clearSelfAndDescendantCache(g),this._clearSelfAndDescendantCache(_),this._clearSelfAndDescendantCache(G),this._clearSelfAndDescendantCache(h)}_remove(){this._clearCaches();var S=this.getParent();S&&S.children&&(S.children.splice(this.index,1),S._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(S){var I="get"+t.Util._capitalize(S);return t.Util._isFunction(this[I])?this[I]():this.attrs[S]}getAncestors(){for(var S=this.getParent(),I=[];S;)I.push(S),S=S.getParent();return I}getAttrs(){return this.attrs||{}}setAttrs(S){return this._batchTransformChanges(()=>{var I,N;if(!S)return this;for(I in S)I!==C&&(N=M+t.Util._capitalize(I),t.Util._isFunction(this[N])?this[N](S[I]):this._setAttr(I,S[I]))}),this}isListening(){return this._getCache(h,this._isListening)}_isListening(S){if(!this.listening())return!1;const I=this.getParent();return I&&I!==S&&this!==S?I._isListening(S):!0}isVisible(){return this._getCache(G,this._isVisible)}_isVisible(S){if(!this.visible())return!1;const I=this.getParent();return I&&I!==S&&this!==S?I._isVisible(S):!0}shouldDrawHit(S,I=!1){if(S)return this._isVisible(S)&&this._isListening(S);var N=this.getLayer(),z=!1;s.DD._dragElements.forEach(Q=>{Q.dragStatus==="dragging"&&(Q.node.nodeType==="Stage"||Q.node.getLayer()===N)&&(z=!0)});var W=!I&&!r.Konva.hitOnDragEnabled&&(z||r.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!W}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var S=this.getDepth(),I=this,N=0,z,W,Q,tt;function at(q){for(z=[],W=q.length,Q=0;Q<W;Q++)tt=q[Q],N++,tt.nodeType!==b&&(z=z.concat(tt.getChildren().slice())),tt._id===I._id&&(Q=W);z.length>0&&z[0].getDepth()<=S&&at(z)}const X=this.getStage();return I.nodeType!==R&&X&&at(X.getChildren()),N}getDepth(){for(var S=0,I=this.parent;I;)S++,I=I.parent;return S}_batchTransformChanges(S){this._batchingTransformChange=!0,S(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(k),this._clearSelfAndDescendantCache(f)),this._needClearTransformCache=!1}setPosition(S){return this._batchTransformChanges(()=>{this.x(S.x),this.y(S.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const S=this.getStage();if(!S)return null;var I=S.getPointerPosition();if(!I)return null;var N=this.getAbsoluteTransform().copy();return N.invert(),N.point(I)}getAbsolutePosition(S){let I=!1,N=this.parent;for(;N;){if(N.isCached()){I=!0;break}N=N.parent}I&&!S&&(S=!0);var z=this.getAbsoluteTransform(S).getMatrix(),W=new t.Transform,Q=this.offset();return W.m=z.slice(),W.translate(Q.x,Q.y),W.getTranslation()}setAbsolutePosition(S){const{x:I,y:N,...z}=this._clearTransform();this.attrs.x=I,this.attrs.y=N,this._clearCache(k);var W=this._getAbsoluteTransform().copy();return W.invert(),W.translate(S.x,S.y),S={x:this.attrs.x+W.getTranslation().x,y:this.attrs.y+W.getTranslation().y},this._setTransform(z),this.setPosition({x:S.x,y:S.y}),this._clearCache(k),this._clearSelfAndDescendantCache(f),this}_setTransform(S){var I;for(I in S)this.attrs[I]=S[I]}_clearTransform(){var S={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,S}move(S){var I=S.x,N=S.y,z=this.x(),W=this.y();return I!==void 0&&(z+=I),N!==void 0&&(W+=N),this.setPosition({x:z,y:W}),this}_eachAncestorReverse(S,I){var N=[],z=this.getParent(),W,Q;if(!(I&&I._id===this._id)){for(N.unshift(this);z&&(!I||z._id!==I._id);)N.unshift(z),z=z.parent;for(W=N.length,Q=0;Q<W;Q++)S(N[Q])}}rotate(S){return this.rotation(this.rotation()+S),this}moveToTop(){if(!this.parent)return t.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var S=this.index,I=this.parent.getChildren().length;return S<I-1?(this.parent.children.splice(S,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return t.Util.warn("Node has no parent. moveUp function is ignored."),!1;var S=this.index,I=this.parent.getChildren().length;return S<I-1?(this.parent.children.splice(S,1),this.parent.children.splice(S+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return t.Util.warn("Node has no parent. moveDown function is ignored."),!1;var S=this.index;return S>0?(this.parent.children.splice(S,1),this.parent.children.splice(S-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return t.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var S=this.index;return S>0?(this.parent.children.splice(S,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(S){if(!this.parent)return t.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(S<0||S>=this.parent.children.length)&&t.Util.warn("Unexpected value "+S+" 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)+".");var I=this.index;return this.parent.children.splice(I,1),this.parent.children.splice(S,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(c,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var S=this.opacity(),I=this.getParent();return I&&!I._isUnderCache&&(S*=I.getAbsoluteOpacity()),S}moveTo(S){return this.getParent()!==S&&(this._remove(),S.add(this)),this}toObject(){var S=this.getAttrs(),I,N,z,W,Q;const tt={attrs:{},className:this.getClassName()};for(I in S)N=S[I],Q=t.Util.isObject(N)&&!t.Util._isPlainObject(N)&&!t.Util._isArray(N),!Q&&(z=typeof this[I]=="function"&&this[I],delete S[I],W=z?z.call(this):null,S[I]=N,W!==N&&(tt.attrs[I]=N));return t.Util._prepareToStringify(tt)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(S,I,N){var z=[];I&&this._isMatch(S)&&z.push(this);for(var W=this.parent;W;){if(W===N)return z;W._isMatch(S)&&z.push(W),W=W.parent}return z}isAncestorOf(S){return!1}
31findAncestor(S,I,N){return this.findAncestors(S,I,N)[0]}_isMatch(S){if(!S)return!1;if(typeof S=="function")return S(this);var I=S.replace(/ /g,"").split(","),N=I.length,z,W;for(z=0;z<N;z++)if(W=I[z],t.Util.isValidSelector(W)||(t.Util.warn('Selector "'+W+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),t.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),t.Util.warn("Konva is awesome, right?")),W.charAt(0)==="#"){if(this.id()===W.slice(1))return!0}else if(W.charAt(0)==="."){if(this.hasName(W.slice(1)))return!0}else if(this.className===W||this.nodeType===W)return!0;return!1}getLayer(){var S=this.getParent();return S?S.getLayer():null}getStage(){return this._getCache(_,this._getStage)}_getStage(){var S=this.getParent();return S?S.getStage():null}fire(S,I={},N){return I.target=I.target||this,N?this._fireAndBubble(S,I):this._fire(S,I),this}getAbsoluteTransform(S){return S?this._getAbsoluteTransform(S):this._getCache(f,this._getAbsoluteTransform)}_getAbsoluteTransform(S){var I;if(S)return I=new t.Transform,this._eachAncestorReverse(function(z){var W=z.transformsEnabled();W==="all"?I.multiply(z.getTransform()):W==="position"&&I.translate(z.x()-z.offsetX(),z.y()-z.offsetY())},S),I;I=this._cache.get(f)||new t.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(I):I.reset();var N=this.transformsEnabled();if(N==="all")I.multiply(this.getTransform());else if(N==="position"){const z=this.attrs.x||0,W=this.attrs.y||0,Q=this.attrs.offsetX||0,tt=this.attrs.offsetY||0;I.translate(z-Q,W-tt)}return I.dirty=!1,I}getAbsoluteScale(S){for(var I=this;I;)I._isUnderCache&&(S=I),I=I.getParent();const N=this.getAbsoluteTransform(S).decompose();return{x:N.scaleX,y:N.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(k,this._getTransform)}_getTransform(){var S,I,N=this._cache.get(k)||new t.Transform;N.reset();var z=this.x(),W=this.y(),Q=r.Konva.getAngle(this.rotation()),tt=(S=this.attrs.scaleX)!==null&&S!==void 0?S:1,at=(I=this.attrs.scaleY)!==null&&I!==void 0?I:1,X=this.attrs.skewX||0,q=this.attrs.skewY||0,rt=this.attrs.offsetX||0,ot=this.attrs.offsetY||0;return(z!==0||W!==0)&&N.translate(z,W),Q!==0&&N.rotate(Q),(X!==0||q!==0)&&N.skew(X,q),(tt!==1||at!==1)&&N.scale(tt,at),(rt!==0||ot!==0)&&N.translate(-1*rt,-1*ot),N.dirty=!1,N}clone(S){var I=t.Util.cloneObject(this.attrs),N,z,W,Q,tt;for(N in S)I[N]=S[N];var at=new this.constructor(I);for(N in this.eventListeners)for(z=this.eventListeners[N],W=z.length,Q=0;Q<W;Q++)tt=z[Q],tt.name.indexOf(y)<0&&(at.eventListeners[N]||(at.eventListeners[N]=[]),at.eventListeners[N].push(tt));return at}_toKonvaCanvas(S){S=S||{};var I=this.getClientRect(),N=this.getStage(),z=S.x!==void 0?S.x:Math.floor(I.x),W=S.y!==void 0?S.y:Math.floor(I.y),Q=S.pixelRatio||1,tt=new n.SceneCanvas({width:S.width||Math.ceil(I.width)||(N?N.width():0),height:S.height||Math.ceil(I.height)||(N?N.height():0),pixelRatio:Q}),at=tt.getContext();const X=new n.SceneCanvas({width:tt.width/tt.pixelRatio+Math.abs(z),height:tt.height/tt.pixelRatio+Math.abs(W),pixelRatio:tt.pixelRatio});return S.imageSmoothingEnabled===!1&&(at._context.imageSmoothingEnabled=!1),at.save(),(z||W)&&at.translate(-1*z,-1*W),this.drawScene(tt,void 0,X),at.restore(),tt}toCanvas(S){return this._toKonvaCanvas(S)._canvas}toDataURL(S){S=S||{};var I=S.mimeType||null,N=S.quality||null,z=this._toKonvaCanvas(S).toDataURL(I,N);return S.callback&&S.callback(z),z}toImage(S){return new Promise((I,N)=>{try{const z=S?.callback;z&&delete S.callback,t.Util._urlToImage(this.toDataURL(S),function(W){I(W),z?.(W)})}catch(z){N(z)}})}toBlob(S){return new Promise((I,N)=>{try{const z=S?.callback;z&&delete S.callback,this.toCanvas(S).toBlob(W=>{I(W),z?.(W)},S?.mimeType,S?.quality)}catch(z){N(z)}})}setSize(S){return this.width(S.width),this.height(S.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():r.Konva.dragDistance}_off(S,I,N){var z=this.eventListeners[S],W,Q,tt;for(W=0;W<z.length;W++)if(Q=z[W].name,tt=z[W].handler,(Q!=="konva"||I==="konva")&&(!I||Q===I)&&(!N||N===tt)){if(z.splice(W,1),z.length===0){delete this.eventListeners[S];break}W--}}_fireChangeEvent(S,I,N){this._fire(S+x,{oldVal:I,newVal:N})}addName(S){if(!this.hasName(S)){var I=this.name(),N=I?I+" "+S:S;this.name(N)}return this}hasName(S){if(!S)return!1;const I=this.name();if(!I)return!1;var N=(I||"").split(/\s/g);return N.indexOf(S)!==-1}removeName(S){var I=(this.name()||"").split(/\s/g),N=I.indexOf(S);return N!==-1&&(I.splice(N,1),this.name(I.join(" "))),this}
31setAttr(S,I){var N=this[M+t.Util._capitalize(S)];return t.Util._isFunction(N)?N.call(this,I):this._setAttr(S,I),this}_requestDraw(){r.Konva.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(S,I){var N=this.attrs[S];N===I&&!t.Util.isObject(I)||(I==null?delete this.attrs[S]:this.attrs[S]=I,this._shouldFireChangeEvents&&this._fireChangeEvent(S,N,I),this._requestDraw())}_setComponentAttr(S,I,N){var z;N!==void 0&&(z=this.attrs[S],z||(this.attrs[S]=this.getAttr(S)),this.attrs[S][I]=N,this._fireChangeEvent(S,z,N))}_fireAndBubble(S,I,N){I&&this.nodeType===b&&(I.target=this);var z=(S===w||S===E)&&(N&&(this===N||this.isAncestorOf&&this.isAncestorOf(N))||this.nodeType==="Stage"&&!N);if(!z){this._fire(S,I);var W=(S===w||S===E)&&N&&N.isAncestorOf&&N.isAncestorOf(this)&&!N.isAncestorOf(this.parent);(I&&!I.cancelBubble||!I)&&this.parent&&this.parent.isListening()&&!W&&(N&&N.parent?this._fireAndBubble.call(this.parent,S,I,N):this._fireAndBubble.call(this.parent,S,I))}}_getProtoListeners(S){var I,N,z;const W=(I=this._cache.get(d))!==null&&I!==void 0?I:{};let Q=W?.[S];if(Q===void 0){Q=[];let tt=Object.getPrototypeOf(this);for(;tt;){const at=(z=(N=tt.eventListeners)===null||N===void 0?void 0:N[S])!==null&&z!==void 0?z:[];Q.push(...at),tt=Object.getPrototypeOf(tt)}W[S]=Q,this._cache.set(d,W)}return Q}_fire(S,I){I=I||{},I.currentTarget=this,I.type=S;const N=this._getProtoListeners(S);if(N)for(var z=0;z<N.length;z++)N[z].handler.call(this,I);const W=this.eventListeners[S];if(W)for(var z=0;z<W.length;z++)W[z].handler.call(this,I)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(S){var I=S?S.pointerId:void 0,N=this.getStage(),z=this.getAbsolutePosition();if(N){var W=N._getPointerById(I)||N._changedPointerPositions[0]||z;s.DD._dragElements.set(this._id,{node:this,startPointerPos:W,offset:{x:W.x-z.x,y:W.y-z.y},dragStatus:"ready",pointerId:I})}}startDrag(S,I=!0){s.DD._dragElements.has(this._id)||this._createDragElement(S);const N=s.DD._dragElements.get(this._id);N.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:S&&S.evt},I)}_setDragPosition(S,I){const N=this.getStage()._getPointerById(I.pointerId);if(N){var z={x:N.x-I.offset.x,y:N.y-I.offset.y},W=this.dragBoundFunc();if(W!==void 0){const Q=W.call(this,z,S);Q?z=Q:t.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==z.x||this._lastPos.y!==z.y)&&(this.setAbsolutePosition(z),this._requestDraw()),this._lastPos=z}}stopDrag(S){const I=s.DD._dragElements.get(this._id);I&&(I.dragStatus="stopped"),s.DD._endDragBefore(S),s.DD._endDragAfter(S)}setDraggable(S){this._setAttr("draggable",S),this._dragChange()}isDragging(){const S=s.DD._dragElements.get(this._id);return S?S.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(S){var I=S.evt.button!==void 0,N=!I||r.Konva.dragButtons.indexOf(S.evt.button)>=0;if(N&&!this.isDragging()){var z=!1;s.DD._dragElements.forEach(W=>{this.isAncestorOf(W.node)&&(z=!0)}),z||this._createDragElement(S)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var S=this.getStage();if(!S)return;const I=s.DD._dragElements.get(this._id),N=I&&I.dragStatus==="dragging",z=I&&I.dragStatus==="ready";
31N?this.stopDrag():z&&s.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(S={x:0,y:0}){const I=this.getStage();if(!I)return!1;const N={x:-S.x,y:-S.y,width:I.width()+2*S.x,height:I.height()+2*S.y};return t.Util.haveIntersection(N,this.getClientRect())}static create(S,I){return t.Util._isString(S)&&(S=JSON.parse(S)),this._createNode(S,I)}static _createNode(S,I){var N=Og.prototype.getClassName.call(S),z=S.children,W,Q,tt;I&&(S.attrs.container=I),r.Konva[N]||(t.Util.warn('Can not find a node with class name "'+N+'". Fallback to "Shape".'),N="Shape");const at=r.Konva[N];if(W=new at(S.attrs),z)for(Q=z.length,tt=0;tt<Q;tt++)W.add(Og._createNode(z[tt]));return W}};f0.Node=A,A.prototype.nodeType="Node",A.prototype._attrsAffectingSize=[],A.prototype.eventListeners={},A.prototype.on.call(A.prototype,T,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(k),this._clearSelfAndDescendantCache(f)}),A.prototype.on.call(A.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(G)}),A.prototype.on.call(A.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(h)}),A.prototype.on.call(A.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(c)});const B=e.Factory.addGetterSetter;return B(A,"zIndex"),B(A,"absolutePosition"),B(A,"position"),B(A,"x",0,(0,o.getNumberValidator)()),B(A,"y",0,(0,o.getNumberValidator)()),B(A,"globalCompositeOperation","source-over",(0,o.getStringValidator)()),B(A,"opacity",1,(0,o.getNumberValidator)()),B(A,"name","",(0,o.getStringValidator)()),B(A,"id","",(0,o.getStringValidator)()),B(A,"rotation",0,(0,o.getNumberValidator)()),e.Factory.addComponentsGetterSetter(A,"scale",["x","y"]),B(A,"scaleX",1,(0,o.getNumberValidator)()),B(A,"scaleY",1,(0,o.getNumberValidator)()),e.Factory.addComponentsGetterSetter(A,"skew",["x","y"]),B(A,"skewX",0,(0,o.getNumberValidator)()),B(A,"skewY",0,(0,o.getNumberValidator)()),e.Factory.addComponentsGetterSetter(A,"offset",["x","y"]),B(A,"offsetX",0,(0,o.getNumberValidator)()),B(A,"offsetY",0,(0,o.getNumberValidator)()),B(A,"dragDistance",null,(0,o.getNumberValidator)()),B(A,"width",0,(0,o.getNumberValidator)()),B(A,"height",0,(0,o.getNumberValidator)()),B(A,"listening",!0,(0,o.getBooleanValidator)()),B(A,"preventDefault",!0,(0,o.getBooleanValidator)()),B(A,"filters",null,function(Z){return this._filterUpToDate=!1,Z}),B(A,"visible",!0,(0,o.getBooleanValidator)()),B(A,"transformsEnabled","all",(0,o.getStringValidator)()),B(A,"size"),B(A,"dragBoundFunc"),B(A,"draggable",!1,(0,o.getBooleanValidator)()),e.Factory.backCompat(A,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),f0}var p0={},t6;function Fp(){if(t6)return p0;t6=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.Container=void 0;const t=ze(),e=dr(),n=Ze();class r extends e.Node{constructor(){super(...arguments),this.children=[]}getChildren(o){if(!o)return this.children||[];const c=this.children||[];var d=[];return c.forEach(function(f){o(f)&&d.push(f)}),d}hasChildren(){return this.getChildren().length>0}
31removeChildren(){return this.getChildren().forEach(o=>{o.parent=null,o.index=0,o.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(o=>{o.parent=null,o.index=0,o.destroy()}),this.children=[],this._requestDraw(),this}add(...o){if(o.length===0)return this;if(o.length>1){for(var c=0;c<o.length;c++)this.add(o[c]);return this}const d=o[0];return d.getParent()?(d.moveTo(this),this):(this._validateAdd(d),d.index=this.getChildren().length,d.parent=this,d._clearCaches(),this.getChildren().push(d),this._fire("add",{child:d}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(o){return this._generalFind(o,!1)}findOne(o){var c=this._generalFind(o,!0);return c.length>0?c[0]:void 0}_generalFind(o,c){var d=[];return this._descendants(f=>{const g=f._isMatch(o);return g&&d.push(f),!!(g&&c)}),d}_descendants(o){let c=!1;const d=this.getChildren();for(const f of d)if(c=o(f),c||f.hasChildren()&&(c=f._descendants(o),c))return!0;return!1}toObject(){var o=e.Node.prototype.toObject.call(this);
31return o.children=[],this.getChildren().forEach(c=>{o.children.push(c.toObject())}),o}isAncestorOf(o){for(var c=o.getParent();c;){if(c._id===this._id)return!0;c=c.getParent()}return!1}clone(o){var c=e.Node.prototype.clone.call(this,o);return this.getChildren().forEach(function(d){c.add(d.clone())}),c}getAllIntersections(o){var c=[];return this.find("Shape").forEach(d=>{d.isVisible()&&d.intersects(o)&&c.push(d)}),c}_clearSelfAndDescendantCache(o){var c;super._clearSelfAndDescendantCache(o),!this.isCached()&&((c=this.children)===null||c===void 0||c.forEach(function(d){d._clearSelfAndDescendantCache(o)}))}_setChildrenIndices(){var o;(o=this.children)===null||o===void 0||o.forEach(function(c,d){c.index=d}),this._requestDraw()}drawScene(o,c,d){var f=this.getLayer(),g=o||f&&f.getCanvas(),v=g&&g.getContext(),x=this._getCanvasCache(),C=x&&x.scene,y=g&&g.isCache;if(!this.isVisible()&&!y)return this;if(C){v.save();var h=this.getAbsoluteTransform(c).getMatrix();v.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this._drawCachedSceneCanvas(v),v.restore()}else this._drawChildren("drawScene",g,c,d);return this}drawHit(o,c){if(!this.shouldDrawHit(c))return this;var d=this.getLayer(),f=o||d&&d.hitCanvas,g=f&&f.getContext(),v=this._getCanvasCache(),x=v&&v.hit;if(x){g.save();var C=this.getAbsoluteTransform(c).getMatrix();g.transform(C[0],C[1],C[2],C[3],C[4],C[5]),this._drawCachedHitCanvas(g),g.restore()}else this._drawChildren("drawHit",f,c);return this}_drawChildren(o,c,d,f){var g,v=c&&c.getContext(),x=this.clipWidth(),C=this.clipHeight(),y=this.clipFunc(),h=typeof x=="number"&&typeof C=="number"||y;const w=d===this;if(h){v.save();var E=this.getAbsoluteTransform(d),M=E.getMatrix();v.transform(M[0],M[1],M[2],M[3],M[4],M[5]),v.beginPath();let k;if(y)k=y.call(this,v,this);else{var b=this.clipX(),m=this.clipY();v.rect(b||0,m||0,x,C)}v.clip.apply(v,k),M=E.copy().invert().getMatrix(),v.transform(M[0],M[1],M[2],M[3],M[4],M[5])}var _=!w&&this.globalCompositeOperation()!=="source-over"&&o==="drawScene";_&&(v.save(),v._applyGlobalCompositeOperation(this)),(g=this.children)===null||g===void 0||g.forEach(function(k){k[o](c,d,f)}),_&&v.restore(),h&&v.restore()}getClientRect(o={}){var c,d=o.skipTransform,f=o.relativeTo,g,v,x,C,y={x:1/0,y:1/0,width:0,height:0},h=this;(c=this.children)===null||c===void 0||c.forEach(function(m){if(m.visible()){var _=m.getClientRect({relativeTo:h,skipShadow:o.skipShadow,skipStroke:o.skipStroke});_.width===0&&_.height===0||(g===void 0?(g=_.x,v=_.y,x=_.x+_.width,C=_.y+_.height):(g=Math.min(g,_.x),v=Math.min(v,_.y
31),x=Math.max(x,_.x+_.width),C=Math.max(C,_.y+_.height)))}});for(var w=this.find("Shape"),E=!1,M=0;M<w.length;M++){var b=w[M];if(b._isVisible(this)){E=!0;break}}return E&&g!==void 0?y={x:g,y:v,width:x-g,height:C-v}:y={x:0,y:0,width:0,height:0},d?y:this._transformedRect(y,f)}}return p0.Container=r,t.Factory.addComponentsGetterSetter(r,"clip",["x","y","width","height"]),t.Factory.addGetterSetter(r,"clipX",void 0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(r,"clipY",void 0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(r,"clipWidth",void 0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(r,"clipHeight",void 0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(r,"clipFunc"),p0}var e6={},hi={},n6;function ob(){if(n6)return hi;n6=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.releaseCapture=hi.setPointerCapture=hi.hasPointerCapture=hi.createEvent=hi.getCapturedShape=void 0;const t=$e(),e=new Map,n=t.Konva._global.PointerEvent!==void 0;function r(f){return e.get(f)}hi.getCapturedShape=r;function s(f){return{evt:f,pointerId:f.pointerId}}hi.createEvent=s;function o(f,g){return e.get(f)===g}hi.hasPointerCapture=o;function c(f,g){d(f),g.getStage()&&(e.set(f,g),n&&g._fire("gotpointercapture",s(new PointerEvent("gotpointercapture"))))}hi.setPointerCapture=c;function d(f,g){const v=e.get(f);if(!v)return;const x=v.getStage();x&&x.content,e.delete(f),n&&v._fire("lostpointercapture",s(new PointerEvent("lostpointercapture")))}return hi.releaseCapture=d,hi}var r6;function IE(){return r6||(r6=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Stage=t.stages=void 0;const e=rr(),n=ze(),r=Fp(),s=$e(),o=Rp(),c=ym(),d=$e(),f=ob();var g="Stage",v="string",x="px",C="mouseout",y="mouseleave",h="mouseover",w="mouseenter",E="mousemove",M="mousedown",b="mouseup",m="pointermove",_="pointerdown",k="pointerup",R="pointercancel",G="lostpointercapture",T="pointerout",D="pointerleave",A="pointerover",B="pointerenter",Z="contextmenu",S="touchstart",I="touchend",N="touchmove",z="touchcancel",W="wheel",Q=5,tt=[[w,"_pointerenter"],[M,"_pointerdown"],[E,"_pointermove"],[b,"_pointerup"],[y,"_pointerleave"],[S,"_pointerdown"],[N,"_pointermove"],[I,"_pointerup"],[z,"_pointercancel"],[h,"_pointerover"],[W,"_wheel"],[Z,"_contextmenu"],[_,"_pointerdown"],[m,"_pointermove"],[k,"_pointerup"],[R,"_pointercancel"],[G,"_lostpointercapture"]];const at={mouse:{[T]:C,[D]:y,[A]:h,[B]:w,[m]:E,[_]:M,[k]:b,[R]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[T]:"touchout",[D]:"touchleave",[A]:"touchover",[B]:"touchenter",[m]:N,[_]:S,[k]:I,[R]:z,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[T]:T,[D]:D,[A]:A,[B]:B,[m]:m,[_]:_,[k]:k,[R]:R,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},X=it=>it.indexOf("pointer")>=0?"pointer":it.indexOf("touch")>=0?"touch":"mouse",q=it=>{const Y=X(it);if(Y==="pointer")return s.Konva.pointerEventsEnabled&&at.pointer;if(Y==="touch")return at.touch;if(Y==="mouse")return at.mouse};function rt(it={}){return(it.clipFunc||it.clipWidth||it.clipHeight)&&e.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),it}const ot="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);";t.stages=[];class ft extends r.Container{constructor(Y){super(rt(Y)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{rt(this.attrs)}),this._checkVisibility()}_validateAdd(Y){const J=Y.getType()==="Layer",lt=Y.getType()==="FastLayer";J||lt||e.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const Y=this.visible()?"":"none";this.content.style.display=Y}setContainer(Y){if(typeof Y===v){if(Y.charAt(0)==="."){var J=Y.slice(1);Y=document.getElementsByClassName(J)[0]}else{var lt;Y.charAt(0)!=="#"?lt=Y:lt=Y.slice(1),Y=document.getElementById(lt)}if(!Y)throw"Can not find container in document with id "+lt}return this._setAttr("container",Y),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),Y.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var Y=this.children,J=Y.length,lt;for(lt=0;lt<J;lt++)Y[lt].clear();return this}clone(Y){return Y||(Y={}),Y.container=typeof document<"u"&&document.createElement("div"),r.Container.prototype.clone.call(this,Y)}destroy(){super.destroy();var Y=this.content;Y&&e.Util._isInDocument(Y)&&this.container().removeChild(Y);var J=t.stages.indexOf(this);return J>-1&&t.stages.splice(J,1),e.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const Y=this._pointerPositions[0]||this._changedPointerPositions[0];return Y?{x:Y.x,y:Y.y}:(e.Util.warn(ot),null)}_getPointerById(Y){return this._pointerPositions.find(J=>J.id===Y)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(Y){Y=Y||{},Y.x=Y.x||0,Y.y=Y.y||0,Y.width=Y.width||this.width(),Y.height=Y.height||this.height();var J=new o.SceneCanvas({width:Y.width,height:Y.height,pixelRatio:Y.pixelRatio||1}),lt=J.getContext()._context,dt=this.children;return(Y.x||Y.y)&&lt.translate(-1*Y.x,-1*Y.y),dt.forEach(function(yt){if(yt.isVisible()){var gt=yt._toKonvaCanvas(Y);lt.drawImage(gt._canvas,Y.x,Y.y,gt.getWidth()/gt.getPixelRatio(),gt.getHeight()/gt.getPixelRatio())}}),J}getIntersection(Y){if(!Y)return null;var J=this.children,lt=J.length,dt=lt-1,yt;for(yt=dt;yt>=0;yt--){const gt=J[yt].getIntersection(Y);if(gt)return gt}return null}_resizeDOM(){var Y=this.width(),J=this.height();this.content&&(this.content.style.width=Y+x,this.content.style.height=J+x),this.bufferCanvas.setSize(Y,J),this.bufferHitCanvas.setSize(Y,J),this.children.forEac
31h(lt=>{lt.setSize({width:Y,height:J}),lt.draw()})}add(Y,...J){if(arguments.length>1){for(var lt=0;lt<arguments.length;lt++)this.add(arguments[lt]);return this}super.add(Y);var dt=this.children.length;return dt>Q&&e.Util.warn("The stage has "+dt+" 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."),Y.setSize({width:this.width(),height:this.height()}),Y.draw(),s.Konva.isBrowser&&this.content.appendChild(Y.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(Y){return f.hasPointerCapture(Y,this)}setPointerCapture(Y){f.setPointerCapture(Y,this)}releaseCapture(Y){f.releaseCapture(Y,this)}getLayers(){return this.children}_bindContentEvents(){s.Konva.isBrowser&&tt.forEach(([Y,J])=>{this.content.addEventListener(Y,lt=>{this[J](lt)},{passive:!1})})}_pointerenter(Y){this.setPointersPositions(Y);const J=q(Y.type);J&&this._fire(J.pointerenter,{evt:Y,target:this,currentTarget:this})}_pointerover(Y){this.setPointersPositions(Y);const J=q(Y.type);J&&this._fire(J.pointerover,{evt:Y,target:this,currentTarget:this})}_getTargetShape(Y){let J=this[Y+"targetShape"];return J&&!J.getStage()&&(J=null),J}_pointerleave(Y){const J=q(Y.type),lt=X(Y.type);if(J){this.setPointersPositions(Y);var dt=this._getTargetShape(lt),yt=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;dt&&yt?(dt._fireAndBubble(J.pointerout,{evt:Y}),dt._fireAndBubble(J.pointerleave,{evt:Y}),this._fire(J.pointerleave,{evt:Y,target:this,currentTarget:this}),this[lt+"targetShape"]=null):yt&&(this._fire(J.pointerleave,{evt:Y,target:this,currentTarget:this}),this._fire(J.pointerout,{evt:Y,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(Y){const J=q(Y.type),lt=X(Y.type);if(J){this.setPointersPositions(Y);var dt=!1;this._changedPointerPositions.forEach(yt=>{var gt=this.getIntersection(yt);if(c.DD.justDragged=!1,s.Konva["_"+lt+"ListenClick"]=!0,!gt||!gt.isListening())return;s.Konva.capturePointerEventsEnabled&&gt.setPointerCapture(yt.id),this[lt+"ClickStartShape"]=gt,gt._fireAndBubble(J.pointerdown,{evt:Y,pointerId:yt.id}),dt=!0;const Dt=Y.type.indexOf("touch")>=0;gt.preventDefault()&&Y.cancelable&&Dt&&Y.preventDefault()}),dt||this._fire(J.pointerdown,{evt:Y,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(Y){const J=q(Y.type),lt=X(Y.type);if(!J)return;s.Konva.isDragging()&&c.DD.node.preventDefault()&&Y.cancelable&&Y.preventDefault(),this.setPointersPositions(Y);var dt=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;if(!dt)return;var yt={};let gt=!1;var Dt=this._getTargetShape(lt);this._changedPointerPositions.forEach(Ht=>{const It=f.getCapturedShape(Ht.id)||this.getIntersection(Ht),qt=Ht.id,Bt={evt:Y,pointerId:qt};var ee=Dt!==It;if(ee&&Dt&&(Dt._fireAndBubble(J.pointerout,{...Bt},It),Dt._fireAndBubble(J.pointerleave,{...Bt},It)),It){if(yt[It._id])return;yt[It._id]=!0}It&&It.isListening()?(gt=!0,ee&&(It._fireAndBubble(J.pointerover,{...Bt},Dt),It._fireAndBubble(J.pointerenter,{...Bt},Dt),this[lt+"targetShape"]=It),It._fireAndBubble(J.pointermove,{...Bt})):Dt&&(this._fire(J.pointerover,{evt:Y,target:this,currentTarget:this,pointerId:qt}),this[lt+"targetShape"]=null)}),gt||this._fire(J.pointermove,{evt:Y,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(Y){const J=q(Y.type),lt=X(Y.type);if(!J)return;this.setPointersPositions(Y);const dt=this[lt+"ClickStartShape"],yt=this[lt+"ClickEndShape"];var gt={};let Dt=!1;this._changedPointerPositions.forEach(Ht=>{const It=f.getCapturedShape(Ht.id)||this.getIntersection(Ht);if(It){if(It.releaseCapture(Ht.id),gt[It._id])return;gt[It._id]=!0}const qt=Ht.id,Bt={evt:Y,pointerId:qt};let ee=!1;s.Konva["_"+lt+"InDblClickWindow"]?(ee=!0,clearTimeout(this[lt+"DblTimeout"])):c.DD.justDragged||(s.Konva["_"+lt+"InDblClickWindow"]=!0,clearTimeout(this[lt+"DblTimeout"])),this[lt+"DblTimeout"]=setTimeout(function(){s.Konva["_"+lt+"InDblClickWindow"]=!1}
31,s.Konva.dblClickWindow),It&&It.isListening()?(Dt=!0,this[lt+"ClickEndShape"]=It,It._fireAndBubble(J.pointerup,{...Bt}),s.Konva["_"+lt+"ListenClick"]&&dt&&dt===It&&(It._fireAndBubble(J.pointerclick,{...Bt}),ee&&yt&&yt===It&&It._fireAndBubble(J.pointerdblclick,{...Bt}))):(this[lt+"ClickEndShape"]=null,s.Konva["_"+lt+"ListenClick"]&&this._fire(J.pointerclick,{evt:Y,target:this,currentTarget:this,pointerId:qt}),ee&&this._fire(J.pointerdblclick,{evt:Y,target:this,currentTarget:this,pointerId:qt}))}),Dt||this._fire(J.pointerup,{evt:Y,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),s.Konva["_"+lt+"ListenClick"]=!1,Y.cancelable&&lt!=="touch"&&Y.preventDefault()}_contextmenu(Y){this.setPointersPositions(Y);var J=this.getIntersection(this.getPointerPosition());J&&J.isListening()?J._fireAndBubble(Z,{evt:Y}):this._fire(Z,{evt:Y,target:this,currentTarget:this})}_wheel(Y){this.setPointersPositions(Y);var J=this.getIntersection(this.getPointerPosition());J&&J.isListening()?J._fireAndBubble(W,{evt:Y}):this._fire(W,{evt:Y,target:this,currentTarget:this})}_pointercancel(Y){this.setPointersPositions(Y);const J=f.getCapturedShape(Y.pointerId)||this.getIntersection(this.getPointerPosition());J&&J._fireAndBubble(k,f.createEvent(Y)),f.releaseCapture(Y.pointerId)}_lostpointercapture(Y){f.releaseCapture(Y.pointerId)}setPointersPositions(Y){var J=this._getContentPosition(),lt=null,dt=null;Y=Y||window.event,Y.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(Y.touches,yt=>{this._pointerPositions.push({id:yt.identifier,x:(yt.clientX-J.left)/J.scaleX,y:(yt.clientY-J.top)/J.scaleY})}),Array.prototype.forEach.call(Y.changedTouches||Y.touches,yt=>{this._changedPointerPositions.push({id:yt.identifier,x:(yt.clientX-J.left)/J.scaleX,y:(yt.clientY-J.top)/J.scaleY})})):(lt=(Y.clientX-J.left)/J.scaleX,dt=(Y.clientY-J.top)/J.scaleY,this.pointerPos={x:lt,y:dt},this._pointerPositions=[{x:lt,y:dt,id:e.Util._getFirstPointerId(Y)}],this._changedPointerPositions=[{x:lt,y:dt,id:e.Util._getFirstPointerId(Y)}])}_setPointerPosition(Y){e.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(Y)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var Y=this.content.getBoundingClientRect();return{top:Y.top,left:Y.left,scaleX:Y.width/this.content.clientWidth||1,scaleY:Y.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!s.Konva.isBrowser){var Y=this.container();if(!Y)throw"Stage has no container. A container is required.";Y.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"),Y.appendChild(this.content),this._resizeDOM()}}cache(){return e.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}
31batchDraw(){return this.getChildren().forEach(function(Y){Y.batchDraw()}),this}}t.Stage=ft,ft.prototype.nodeType=g,(0,d._registerNode)(ft),n.Factory.addGetterSetter(ft,"container")})(e6)),e6}var g0={},a6={},i6;function Gr(){return i6||(i6=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const e=$e(),n=rr(),r=ze(),s=dr(),o=Ze(),c=$e(),d=ob();var f="hasShadow",g="shadowRGBA",v="patternImage",x="linearGradient",C="radialGradient";let y;function h(){return y||(y=n.Util.createCanvasElement().getContext("2d"),y)}t.shapes={};function w(D){const A=this.attrs.fillRule;A?D.fill(A):D.fill()}function E(D){D.stroke()}function M(D){D.fill()}function b(D){D.stroke()}function m(){this._clearCache(f)}function _(){this._clearCache(g)}function k(){this._clearCache(v)}function R(){this._clearCache(x)}function G(){this._clearCache(C)}class T extends s.Node{constructor(A){super(A);let B;for(;B=n.Util.getRandomColor(),!(B&&!(B in t.shapes)););this.colorKey=B,t.shapes[B]=this}getContext(){return n.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return n.Util.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(f,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var A=h();const B=A.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(B&&B.setTransform){const Z=new n.Transform;Z.translate(this.fillPatternX(),this.fillPatternY()),Z.rotate(e.Konva.getAngle(this.fillPatternRotation())),Z.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),Z.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const S=Z.getMatrix(),I=typeof DOMMatrix>"u"?{a:S[0],b:S[1],c:S[2],d:S[3],e:S[4],f:S[5]}:new DOMMatrix(S);B.setTransform(I)}return B}}_getLinearGradient(){return this._getCache(x,this.__getLinearGradient)}__getLinearGradient(){var A=this.fillLinearGradientColorStops();if(A){for(var B=h(),Z=this.fillLinearGradientStartPoint(),S=this.fillLinearGradientEndPoint(),I=B.createLinearGradient(Z.x,Z.y,S.x,S.y),N=0;N<A.length;N+=2)I.addColorStop(A[N],A[N+1]);return I}}_getRadialGradient(){return this._getCache(C,this.__getRadialGradient)}__getRadialGradient(){var A=this.fillRadialGradientColorStops();if(A){for(var B=h(),Z=this.fillRadialGradientStartPoint(),S=this.fillRadialGradientEndPoint(),I=B.createRadialGradient(Z.x,Z.y,this.fillRadialGradientStartRadius(),S.x,S.y,this.fillRadialGradientEndRadius()),N=0;N<A.length;N+=2)I.addColorStop(A[N],A[N+1]);return I}}getShadowRGBA(){return this._getCache(g,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var A=n.Util.colorToRGBA(this.shadowColor());if(A)return"rgba("+A.r+","+A.g+","+A.b+","+A.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(){const A=this.hitStrokeWidth();return A==="auto"?this.hasStroke():this.strokeEnabled()&&!!A}intersects(A){var B=this.getStage();if(!B)return!1;const Z=B.bufferHitCanvas;return Z.getContext().clear(),this.drawHit(Z,void 0,!0),Z.context.getImageData(Math.round(A.x),Math.round(A.y),1,1).data[3]>0}destroy(){return s.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(A){var B;if(!(!((B=this.attrs.perfectDrawEnabled)!==null&&B!==void 0)||B))return!1;const Z=A||this.hasFill(),S=this.hasStroke(),I=this.getAbsoluteOpacity()!==1;if(Z&&S&&I)return!0;const N=this.hasShadow(),z=this.shadowForStrokeEnabled();return!!(Z&&S&&N&&z)}setStrokeHitEnabled(A){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),A?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var A=this.size();return{x:this._centroid?-A.width/2:0,y:this._centroid?-A.height/2:0,width:A.width,height:A.height}}getClientRect(A={}){const B=A.skipTransform,Z=A.relativeTo,S=this.getSelfRect(),I=!A.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,N=S.width+I,z=S.height+I,W=!A.ski
31pShadow&&this.hasShadow(),Q=W?this.shadowOffsetX():0,tt=W?this.shadowOffsetY():0,at=N+Math.abs(Q),X=z+Math.abs(tt),q=W&&this.shadowBlur()||0,rt=at+q*2,ot=X+q*2,ft={width:rt,height:ot,x:-(I/2+q)+Math.min(Q,0)+S.x,y:-(I/2+q)+Math.min(tt,0)+S.y};return B?ft:this._transformedRect(ft,Z)}drawScene(A,B,Z){var S=this.getLayer(),I=A||S.getCanvas(),N=I.getContext(),z=this._getCanvasCache(),W=this.getSceneFunc(),Q=this.hasShadow(),tt,at,X=I.isCache,q=B===this;if(!this.isVisible()&&!q)return this;if(z){N.save();var rt=this.getAbsoluteTransform(B).getMatrix();return N.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5]),this._drawCachedSceneCanvas(N),N.restore(),this}if(!W)return this;if(N.save(),this._useBufferCanvas()&&!X){tt=this.getStage();const it=Z||tt.bufferCanvas;at=it.getContext(),at.clear(),at.save(),at._applyLineJoin(this);var ot=this.getAbsoluteTransform(B).getMatrix();at.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5]),W.call(this,at,this),at.restore();var ft=it.pixelRatio;Q&&N._applyShadow(this),N._applyOpacity(this),N._applyGlobalCompositeOperation(this),N.drawImage(it._canvas,0,0,it.width/ft,it.height/ft)}else{if(N._applyLineJoin(this),!q){var ot=this.getAbsoluteTransform(B).getMatrix();N.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5]),N._applyOpacity(this),N._applyGlobalCompositeOperation(this)}Q&&N._applyShadow(this),W.call(this,N,this)}return N.restore(),this}drawHit(A,B,Z=!1){if(!this.shouldDrawHit(B,Z))return this;var S=this.getLayer(),I=A||S.hitCanvas,N=I&&I.getContext(),z=this.hitFunc()||this.sceneFunc(),W=this._getCanvasCache(),Q=W&&W.hit;if(this.colorKey||n.Util.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()"),Q){N.save();var tt=this.getAbsoluteTransform(B).getMatrix();return N.transform(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5]),this._drawCachedHitCanvas(N),N.restore(),this}if(!z)return this;if(N.save(),N._applyLineJoin(this),this!==B){var at=this.getAbsoluteTransform(B).getMatrix();N.transform(at[0],at[1],at[2],at[3],at[4],at[5])}return z.call(this,N,this),N.restore(),this}drawHitFromCache(A=0){var B=this._getCanvasCache(),Z=this._getCachedSceneCanvas(),S=B.hit,I=S.getContext(),N=S.getWidth(),z=S.getHeight(),W,Q,tt,at,X,q;I.clear(),I.drawImage(Z._canvas,0,0,N,z);try{for(W=I.getImageData(0,0,N,z),Q=W.data,tt=Q.length,at=n.Util._hexToRgb(this.colorKey),X=0;X<tt;X+=4)q=Q[X+3],q>A?(Q[X]=at.r,Q[X+1]=at.g,Q[X+2]=at.b,Q[X+3]=255):Q[X+3]=0;I.putImageData(W,0,0)}catch(rt){n.Util.error("Unable to draw hit graph from cached scene canvas. "+rt.message)}return this}hasPointerCapture(A){return d.hasPointerCapture(A,this)}setPointerCapture(A){d.setPointerCapture(A,this)}releaseCapture(A){d.releaseCapture(A,this)}}t.Shape=T,T.prototype._fillFunc=w,T.prototype._strokeFunc=E,T.prototype._fillFuncHit=M,T.prototype._strokeFuncHit=b,T.prototype._centroid=!1,T.prototype.nodeType="Shape",(0,c._registerNode)(T),T.prototype.eventListeners={},T.prototype.on.call(T.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",m),T.prototype.on.call(T.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",_),T.prototype.on.call(T.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",k),T.prototype.on.call(T.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",R),T.prototype.on.call(T.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",G),r.Factory.addGetterSetter(T,"stroke",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(T,"strokeWidth",2,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(T,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(T,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(T,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(T,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(T,"lineJoin"),r.Factory.addGetterSetter(T,"lineCap"),r.Factory.addGetterSetter(T,"sceneFunc"),r.Factory.addGetterSetter(T,"hitFunc"),r.Factory.addGetterSetter(T,"dash"),r.Factory.addGetterSetter(T,"dashOffset",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"shadowColor",void 0,(0,o.getStringValidator)()),r.Factory.addGetterSetter(T,"shadowBlur",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"shadowOpacity",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(T,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(T,"shadowOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"shadowOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillPatternImage"),r.Factory.addGetterSetter(T,"fill",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(T,"fillPatternX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillPatternY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(T,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(T,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(T,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(T,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(T,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(T,"fillEnabled",!0),r.Factory.addGetterSetter(T,"strokeEnabled",!0),r.Factory.addGetterSetter(T,"shadowEnabled",!0),r.Factory.addGetterSetter(T,"dashEnabled",!0),r.Factory.addGetterSetter(T,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(T,"fillPriority","color"),r.Factory.addComponentsGetterSetter(T,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(T,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(T,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(T,"fillPatternScaleX",1,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(T,"fillPatternScaleY",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(T,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(T,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(T,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(T,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(T,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(T,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(T,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(T,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(T,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(T,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(T,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(T,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(T,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(T,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(T,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(T,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(T,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(T,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(T,"fillPatternRotation",0),r.Factory.addGetterSetter(T,"fillRule",void 0,(0,o.getStringValidator)()),r.Factory.backCompat(T,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(a6)),a6}var o6;
31function sb(){if(o6)return g0;o6=1,Object.defineProperty(g0,"__esModule",{value:!0}),g0.Layer=void 0;const t=rr(),e=Fp(),n=dr(),r=ze(),s=Rp(),o=Ze(),c=Gr(),d=$e();var f="#",g="beforeDraw",v="draw",x=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],C=x.length;let y=class extends e.Container{constructor(h){super(h),this.canvas=new s.SceneCanvas,this.hitCanvas=new s.HitCanvas({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(h){return this.getContext().clear(h),this.getHitCanvas().getContext().clear(h),this}setZIndex(h){super.setZIndex(h);var w=this.getStage();return w&&w.content&&(w.content.removeChild(this.getNativeCanvasElement()),h<w.children.length-1?w.content.insertBefore(this.getNativeCanvasElement(),w.children[h+1].getCanvas()._canvas):w.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){n.Node.prototype.moveToTop.call(this);var h=this.getStage();return h&&h.content&&(h.content.removeChild(this.getNativeCanvasElement()),h.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var h=n.Node.prototype.moveUp.call(this);if(!h)return!1;var w=this.getStage();return!w||!w.content?!1:(w.content.removeChild(this.getNativeCanvasElement()),this.index<w.children.length-1?w.content.insertBefore(this.getNativeCanvasElement(),w.children[this.index+1].getCanvas()._canvas):w.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(n.Node.prototype.moveDown.call(this)){var h=this.getStage();if(h){var w=h.children;h.content&&(h.content.removeChild(this.getNativeCanvasElement()),h.content.insertBefore(this.getNativeCanvasElement(),w[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(n.Node.prototype.moveToBottom.call(this)){var h=this.getStage();if(h){var w=h.children;h.content&&(h.content.removeChild(this.getNativeCanvasElement()),h.content.insertBefore(this.getNativeCanvasElement(),w[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var h=this.getNativeCanvasElement();return n.Node.prototype.remove.call(this),h&&h.parentNode&&t.Util._isInDocument(h)&&h.parentNode.removeChild(h),this}getStage(){return this.parent}setSize({width:h,height:w}){return this.canvas.setSize(h,w),this.hitCanvas.setSize(h,w),this._setSmoothEnabled(),this}_validateAdd(h){var w=h.getType();w!=="Group"&&w!=="Shape"&&t.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(h){return h=h||{},h.width=h.width||this.getWidth(),h.height=h.height||this.getHeight(),h.x=h.x!==void 0?h.x:this.x(),h.y=h.y!==void 0?h.y:this.y(),n.Node.prototype._toKonvaCanvas.call(this,h)}_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(){t.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){t.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,t.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(h){if(!this.isListening()||!this.isVisible())return null;for(var w=1,E=!1;;){for(let M=0;M<C;M++){const b=x[M],m=this._getIntersection({x:h.x+b.x*w,y:h.y+b.y*w}),_=m.shape;if(_)return _;if(E=!!m.antialiased,!m.antialiased)break}if(E)w+=1;else return null}}_getIntersection(h){const w=this.hitCanvas.pixelRatio,E=this.hitCanvas.context.getImageData(Math.round(h.x*w),Math.round(h.y*w),1,1).data,M=E[3];if(M===255){const b=t.Util._rgbToHex(E[0],E[1],E[2]),m=c.shapes[f+b];return m?{shape:m}:{antialiased:!0}}else if(M>0)return{antialiased:!0};return{}}drawScene(h,w){var E=this.getLayer(),M=h||E&&E.getCanvas();return this._fire(g,{node:this}),this.clearBeforeDraw()&&M.getContext().clear(),e.Container.prototype.drawScene.call(this,M,w),this._fire(v,{node:this}),this}drawHit(h,w){var E=this.getLayer(),M=h||E&&E.hitCanvas;return E&&E.clearBeforeDraw()&&E.getHitCanvas().getContext().clear(),e.Container.prototype.drawHit.call(this,M,w),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(h){t.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(h)}getHitGraphEnabled(h){return t.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var h=this.parent,w=!!this.hitCanvas._canvas.parentNode;w?h.content.removeChild(this.hitCanvas._canvas):h.content.appendChild(this.hitCanvas._canvas)}}destroy(){return t.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};return g0.Layer=y,y.prototype.nodeType="Layer",(0,d._registerNode)(y),r.Factory.addGetterSetter(y,"imageSmoothingEnabled",!0),r.Factory.addGetterSetter(y,"clearBeforeDraw",!0),r.Factory.addGetterSetter(y,"hitGraphEnabled",!0,(0,o.getBooleanValidator)()),g0}var m0={},s6;function NE(){if(s6)return m0;s6=1,Object.defineProperty(m0,"__esModule",{value:!0}),m0.FastLayer=void 0;const t=rr(),e=sb(),n=$e();let r=class extends e.Layer{constructor(s){super(s),this.listening(!1),t.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}};return m0.FastLayer=r,r.prototype.nodeType="FastLayer",(0,n._registerNode)(r),m0}var v0={},l6;function bm(){if(l6)return v0;l6=1,Object.defineProperty(v0,"__esModule",{value:!0}),v0.Group=void 0;const t=rr(),e=Fp(),n=$e();let r=class extends e.Container{_validateAdd(s){var o=s.getType();o!=="Group"&&o!=="Shape"&&t.Util.throw("You may only add groups and shapes to groups.")}};return v0.Group=r,r.prototype.nodeType="Group",(0,n._registerNode)(r),v0}var y0={},c6;
31function wm(){if(c6)return y0;c6=1,Object.defineProperty(y0,"__esModule",{value:!0}),y0.Animation=void 0;const t=$e(),e=rr(),n=(function(){return t.glob.performance&&t.glob.performance.now?function(){return t.glob.performance.now()}:function(){return new Date().getTime()}})();let r=class rd{constructor(o,c){this.id=rd.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:n(),frameRate:0},this.func=o,this.setLayers(c)}setLayers(o){let c=[];return o&&(c=Array.isArray(o)?o:[o]),this.layers=c,this}getLayers(){return this.layers}addLayer(o){const c=this.layers,d=c.length;for(let f=0;f<d;f++)if(c[f]._id===o._id)return!1;return this.layers.push(o),!0}isRunning(){const o=rd.animations,c=o.length;for(let d=0;d<c;d++)if(o[d].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=n(),rd._addAnimation(this),this}stop(){return rd._removeAnimation(this),this}_updateFrameObject(o){this.frame.timeDiff=o-this.frame.lastTime,this.frame.lastTime=o,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(o){this.animations.push(o),this._handleAnimation()}static _removeAnimation(o){const c=o.id,d=this.animations,f=d.length;for(let g=0;g<f;g++)if(d[g].id===c){this.animations.splice(g,1);break}}static _runFrames(){const o={},c=this.animations;for(let d=0;d<c.length;d++){const f=c[d],g=f.layers,v=f.func;f._updateFrameObject(n());const x=g.length;let C;if(v?C=v.call(f,f.frame)!==!1:C=!0,!!C)for(let y=0;y<x;y++){const h=g[y];h._id!==void 0&&(o[h._id]=h)}}for(let d in o)o.hasOwnProperty(d)&&o[d].batchDraw()}static _animationLoop(){const o=rd;o.animations.length?(o._runFrames(),e.Util.requestAnimFrame(o._animationLoop)):o.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,e.Util.requestAnimFrame(this._animationLoop))}};return y0.Animation=r,r.animations=[],r.animIdCounter=0,r.animRunning=!1,y0}var u6={},d6;function RE(){return d6||(d6=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Easings=t.Tween=void 0;const e=rr(),n=wm(),r=dr(),s=$e();var o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},c=1,d=2,f=3,g=0,v=["fill","stroke","shadowColor"];class x{constructor(h,w,E,M,b,m,_){this.prop=h,this.propFunc=w,this.begin=M,this._pos=M,this.duration=m,this._change=0,this.prevPos=0,this.yoyo=_,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=E,this._change=b-this.begin,this.pause()}fire(h){var w=this[h];w&&w()}setTime(h){h>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():h<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=h,this.update())}getTime(){return this._time}setPosition(h){this.prevPos=this._pos,this.propFunc(h),this._pos=h}getPosition(h){return h===void 0&&(h=this._time),this.func(h,this.begin,this._change,this.duration)}play(){this.state=d,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=f,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(h){this.pause(),this._time=h,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(){var h=this.getTimer()-this._startTime;this.state===d?this.setTime(h):this.state===f&&this.setTime(this.duration-h)}pause(){this.state=c,this.fire("onPause")}getTimer(){return new Date().getTime()}}class C{constructor(h){var w=this,E=h.node,M=E._id,b,m=h.easing||t.Easings.Linear,_=!!h.yoyo,k;typeof h.duration>"u"?b=.3:h.duration===0?b=.001:b=h.duration,this.node=E,this._id=g++;var R=E.getLayer()||(E instanceof s.Konva.Stage?E.getLayers():null);R||e.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){w.tween.onEnterFrame()},R),this.tween=new x(k,function(G){w._tweenFunc(G)},m,0,1,b*1e3,_),this._addListeners(),C.attrs[M]||(C.attrs[M]={}),C.attrs[M][this._id]||(C.attrs[M][this._id]={}
31),C.tweens[M]||(C.tweens[M]={});for(k in h)o[k]===void 0&&this._addAttr(k,h[k]);this.reset(),this.onFinish=h.onFinish,this.onReset=h.onReset,this.onUpdate=h.onUpdate}_addAttr(h,w){var E=this.node,M=E._id,b,m,_,k,R,G,T,D;if(_=C.tweens[M][h],_&&delete C.attrs[M][_][h],b=E.getAttr(h),e.Util._isArray(w))if(m=[],R=Math.max(w.length,b.length),h==="points"&&w.length!==b.length&&(w.length>b.length?(T=b,b=e.Util._prepareArrayForTween(b,w,E.closed())):(G=w,w=e.Util._prepareArrayForTween(w,b,E.closed()))),h.indexOf("fill")===0)for(k=0;k<R;k++)if(k%2===0)m.push(w[k]-b[k]);else{var A=e.Util.colorToRGBA(b[k]);D=e.Util.colorToRGBA(w[k]),b[k]=A,m.push({r:D.r-A.r,g:D.g-A.g,b:D.b-A.b,a:D.a-A.a})}else for(k=0;k<R;k++)m.push(w[k]-b[k]);else v.indexOf(h)!==-1?(b=e.Util.colorToRGBA(b),D=e.Util.colorToRGBA(w),m={r:D.r-b.r,g:D.g-b.g,b:D.b-b.b,a:D.a-b.a}):m=w-b;C.attrs[M][this._id][h]={start:b,diff:m,end:w,trueEnd:G,trueStart:T},C.tweens[M][h]=this._id}_tweenFunc(h){var w=this.node,E=C.attrs[w._id][this._id],M,b,m,_,k,R,G,T;for(M in E){if(b=E[M],m=b.start,_=b.diff,T=b.end,e.Util._isArray(m))if(k=[],G=Math.max(m.length,T.length),M.indexOf("fill")===0)for(R=0;R<G;R++)R%2===0?k.push((m[R]||0)+_[R]*h):k.push("rgba("+Math.round(m[R].r+_[R].r*h)+","+Math.round(m[R].g+_[R].g*h)+","+Math.round(m[R].b+_[R].b*h)+","+(m[R].a+_[R].a*h)+")");else for(R=0;R<G;R++)k.push((m[R]||0)+_[R]*h);else v.indexOf(M)!==-1?k="rgba("+Math.round(m.r+_.r*h)+","+Math.round(m.g+_.g*h)+","+Math.round(m.b+_.b*h)+","+(m.a+_.a*h)+")":k=m+_*h;w.setAttr(M,k)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var h=this.node,w=C.attrs[h._id][this._id];w.points&&w.points.trueEnd&&h.setAttr("points",w.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var h=this.node,w=C.attrs[h._id][this._id];w.points&&w.points.trueStart&&h.points(w.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(h){return this.tween.seek(h*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var h=this.node._id,w=this._id,E=C.tweens[h],M;this.pause();for(M in E)delete C.tweens[h][M];delete C.attrs[h][w]}}t.Tween=C,C.attrs={},C.tweens={},r.Node.prototype.to=function(y){var h=y.onFinish;y.node=this,y.onFinish=function(){this.destroy(),h&&h()};var w=new C(y);w.play()},t.Easings={BackEaseIn(y,h,w,E){var M=1.70158;return w*(y/=E)*y*((M+1)*y-M)+h},BackEaseOut(y,h,w,E){var M=1.70158;return w*((y=y/E-1)*y*((M+1)*y+M)+1)+h},BackEaseInOut(y,h,w,E){var M=1.70158;return(y/=E/2)<1?w/2*(y*y*(((M*=1.525)+1)*y-M))+h:w/2*((y-=2)*y*(((M*=1.525)+1)*y+M)+2)+h},ElasticEaseIn(y,h,w,E,M,b){var m=0;return y===0?h:(y/=E)===1?h+w:(b||(b=E*.3),!M||M<Math.abs(w)?(M=w,m=b/4):m=b/(2*Math.PI)*Math.asin(w/M),-(M*Math.pow(2,10*(y-=1))*Math.sin((y*E-m)*(2*Math.PI)/b))+h)},ElasticEaseOut(y,h,w,E,M,b){var m=0;return y===0?h:(y/=E)===1?h+w:(b||(b=E*.3),!M||M<Math.abs(w)?(M=w,m=b/4):m=b/(2*Math.PI)*Math.asin(w/M),M*Math.pow(2,-10*y)*Math.sin((y*E-m)*(2*Math.PI)/b)+w+h)},ElasticEaseInOut(y,h,w,E,M,b){var m=0;return y===0?h:(y/=E/2)===2?h+w:(b||(b=E*(.3*1.5)),!M||M<Math.abs(w)?(M=w,m=b/4):m=b/(2*Math.PI)*Math.asin(w/M),y<1?-.5*(M*Math.pow(2,10*(y-=1))*Math.sin((y*E-m)*(2*Math.PI)/b))+h:M*Math.pow(2,-10*(y-=1))*Math.sin((y*E-m)*(2*Math.PI)/b)*.5+w+h)},BounceEaseOut(y,h,w,E){return(y/=E)<1/2.75?w*(7.5625*y*y)+h:y<2/2.75?w*(7.5625*(y-=1.5/2.75)*y+.75)+h:y<2.5/2.75?w*(7.5625*(y-=2.25/2.75)*y+.9375)+h:w*(7.5625*(y-=2.625/2.75)*y+.984375)+h},BounceEaseIn(y,h,w,E){return w-t.Easings.BounceEaseOut(E-y,0,w,E)+h},BounceEaseInOut(y,h,w,E){return y<E/2?t.Easings.BounceEaseIn(y*2,0,w,E)*.5+h:t.Easings.BounceEaseOut(y*2-E,0,w,E)*.5+w*.5+h},EaseIn(y,h,w,E){return w*(y/=E)*y+h},EaseOut(y,h,w,E){return-w*(y/=E)*(y-2)+h},EaseInOut(y,h,w,E){return(y/=E/2)<1?w/2*y*y+h:-w/2*(--y*(y-2)-1)+h},StrongEaseIn(y,h,w,E){return w*(y/=E)*y*y*y*y+h},StrongEaseOut(y,h,w,E){return w*((y=y/E-1)*y*y*y*y+1)+h},StrongEaseInOut(y,h,w,E){return(y/=E/2)<1?w/2*y*y*y*y*y+h:w/2*((y-=2)*y*y*y*y+2)+h},Linear(y,h,w,E){return w*y/E+h}}})(u6)),u6}var h6;function FE(){return h6||(h6=1,(function(t){Object.defineProperty(t,"__esMo
31dule",{value:!0}),t.Konva=void 0;const e=$e(),n=rr(),r=dr(),s=Fp(),o=IE(),c=sb(),d=NE(),f=bm(),g=ym(),v=Gr(),x=wm(),C=RE(),y=ib(),h=Rp();t.Konva=n.Util._assign(e.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:s.Container,Stage:o.Stage,stages:o.stages,Layer:c.Layer,FastLayer:d.FastLayer,Group:f.Group,DD:g.DD,Shape:v.Shape,shapes:v.shapes,Animation:x.Animation,Tween:C.Tween,Easings:C.Easings,Context:y.Context,Canvas:h.Canvas}),t.default=t.Konva})(zv)),zv}var b0={},f6;function DE(){if(f6)return b0;f6=1,Object.defineProperty(b0,"__esModule",{value:!0}),b0.Arc=void 0;const t=ze(),e=Gr(),n=$e(),r=Ze(),s=$e();let o=class extends e.Shape{_sceneFunc(c){var d=n.Konva.getAngle(this.angle()),f=this.clockwise();c.beginPath(),c.arc(0,0,this.outerRadius(),0,d,f),c.arc(0,0,this.innerRadius(),d,0,!f),c.closePath(),c.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(c){this.outerRadius(c/2)}setHeight(c){this.outerRadius(c/2)}getSelfRect(){const c=this.innerRadius(),d=this.outerRadius(),f=this.clockwise(),g=n.Konva.getAngle(f?360-this.angle():this.angle()),v=Math.cos(Math.min(g,Math.PI)),x=1,C=Math.sin(Math.min(Math.max(Math.PI,g),3*Math.PI/2)),y=Math.sin(Math.min(g,Math.PI/2)),h=v*(v>0?c:d),w=x*d,E=C*(C>0?c:d),M=y*(y>0?d:c);return{x:h,y:f?-1*M:E,width:w-h,height:M-E}}};return b0.Arc=o,o.prototype._centroid=!0,o.prototype.className="Arc",o.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,s._registerNode)(o),t.Factory.addGetterSetter(o,"innerRadius",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"outerRadius",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"angle",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"clockwise",!1,(0,r.getBooleanValidator)()),b0}var w0={},x0={},p6;function lb(){if(p6)return x0;p6=1,Object.defineProperty(x0,"__esModule",{value:!0}),x0.Line=void 0;const t=ze(),e=Gr(),n=Ze(),r=$e();function s(d,f,g,v,x,C,y){var h=Math.sqrt(Math.pow(g-d,2)+Math.pow(v-f,2)),w=Math.sqrt(Math.pow(x-g,2)+Math.pow(C-v,2)),E=y*h/(h+w),M=y*w/(h+w),b=g-E*(x-d),m=v-E*(C-f),_=g+M*(x-d),k=v+M*(C-f);return[b,m,_,k]}function o(d,f){var g=d.length,v=[],x,C;for(x=2;x<g-2;x+=2)C=s(d[x-2],d[x-1],d[x],d[x+1],d[x+2],d[x+3],f),!isNaN(C[0])&&(v.push(C[0]),v.push(C[1]),v.push(d[x]),v.push(d[x+1]),v.push(C[2]),v.push(C[3]));return v}class c extends e.Shape{constructor(f){super(f),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(f){var g=this.points(),v=g.length,x=this.tension(),C=this.closed(),y=this.bezier(),h,w,E;if(v){if(f.beginPath(),f.moveTo(g[0],g[1]),x!==0&&v>4){for(h=this.getTensionPoints(),w=h.length,E=C?0:4,C||f.quadraticCurveTo(h[0],h[1],h[2],h[3]);E<w-2;)f.bezierCurveTo(h[E++],h[E++],h[E++],h[E++],h[E++],h[E++]);C||f.quadraticCurveTo(h[w-2],h[w-1],g[v-2],g[v-1])}else if(y)for(E=2;E<v;)f.bezierCurveTo(g[E++],g[E++],g[E++],g[E++],g[E++],g[E++]);else for(E=2;E<v;E+=2)f.lineTo(g[E],g[E+1]);C?(f.closePath(),f.fillStrokeShape(this)):f.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():o(this.points(),this.tension())}_getTensionPointsClosed(){var f=this.points(),g=f.length,v=this.tension(),x=s(f[g-2],f[g-1],f[0],f[1],f[2],f[3],v),C=s(f[g-4],f[g-3],f[g-2],f[g-1],f[0],f[1],v),y=o(f,v),h=[x[2],x[3]].concat(y).concat([C[0],C[1],f[g-2],f[g-1],C[2],C[3],x[0],x[1],f[0],f[1]]);return h}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var f=this.points();if(f.length<4)return{x:f[0]||0,y:f[1]||0,width:0,height:0};this.tension()!==0?f=[f[0],f[1],...this._getTensionPoints(),f[f.length-2],f[f.length-1]]:f=this.points();for(var g=f[0],v=f[0],x=f[1],C=f[1],y,h,w=0;w<f.length/2;w++)y=f[w*2],h=f[w*2+1],g=Math.min(g,y),v=Math.max(v,y),x=Math.min(x,h),C=Math.max(C,h);return{x:g,y:x,width:v-g,height:C-x}}}return x0.Line=c,c.prototype.className="Line",c.prototype._attrsAffectingSize=["points","bezier","tension"],(0,r._registerNode)(c),t.Factory.addGetterSetter(c,"closed",!1),t.Factory.addGetterSetter(c,"bezier",!1),t.Factory.addGetterSetter(c,"tension",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(c,"points",[],(0,n.getNumberArrayValidator)()),x0}var C0={},g6={},m6;function jE(){return m6||(m6=1,(function(t){Object.defineProperty(t,"__esMo
31dule",{value:!0}),t.t2length=t.getQuadraticArcLength=t.getCubicArcLength=t.binomialCoefficients=t.cValues=t.tValues=void 0,t.tValues=[[],[],[-.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,
31-.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]],t.cValues=[[],[],[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,.122555206
3171147846,.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]],t.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const e=(c,d,f)=>{let g,v,x;g=f/2,v=0;for(let C=0;C<20;C++)x=g*t.tValues[20][C]+g,v+=t.cValues[20][C]*r(c,d,x);return g*v};t.getCubicArcLength=e;const n=(c,d,f)=>{f===void 0&&(f=1);const g=c[0]-2*c[1]+c[2],v=d[0]-2*d[1]+d[2],x=2*c[1]-2*c[0],C=2*d[1]-2*d[0],y=4*(g*g+v*v),h=4*(g*x+v*C),w=x*x+C*C;if(y===0)return f*Math.sqrt(Math.pow(c[2]-c[0],2)+Math.pow(d[2]-d[0],2));const E=h/(2*y),M=w/y,b=f+E,m=M-E*E,_=b*b+m>0?Math.sqrt(b*b+m):0,k=E*E+m>0?Math.sqrt(E*E+m):0,R=E+Math.sqrt(E*E+m)!==0?m*Math.log(Math.abs((b+_)/(E+k))):0;return Math.sqrt(y)/2*(b*_-E*k+R)};t.getQuadraticArcLength=n;function r(c,d,f){const g=s(1,f,c),v=s(1,f,d),x=g*g+v*v;return Math.sqrt(x)}const s=(c,d,f)=>{const g=f.length-1;let v,x;if(g===0)return 0;if(c===0){x=0;for(let C=0;C<=g;C++)x+=t.binomialCoefficients[g][C]*Math.pow(1-d,g-C)*Math.pow(d,C)*f[C];return x}else{v=new Array(g);for(let C=0;C<g;C++)v[C]=g*(f[C+1]-f[C]);return s(c-1,d,v)}},o=(c,d,f)=>{let g=1,v=c/d,x=(c-f(v))/d,C=0;for(;g>.001;){const y=f(v+x),h=Math.abs(c-y)/d;if(h<g)g=h,v+=x;else{const w=f(v-x),E=Math.abs(c-w)/d;E<g?(g=E,v-=x):x/=2}if(C++,C>500)break}return v};t.t2length=o})(g6)),g6}var v6;function xm(){if(v6)return C0;v6=1,Object.defineProperty(C0,"__esModule",{value:!0}),C0.Path=void 0;const t=ze(),e=Gr(),n=$e(),r=jE();let s=class Va extends e.Shape{constructor(c){super(c),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Va.parsePathData(this.data()),this.pathLength=Va.getPathLength(this.dataArray)}_sceneFunc(c){var d=this.dataArray;c.beginPath();for(var f=!1,g=0;g<d.length;g++){var v=d[g].command,x=d[g].points;switch(v){case"L":c.lineTo(x[0],x[1]);break;case"M":c.moveTo(x[0],x[1]);break;case"C":c.bezierCurveTo(x[0],x[1],x[2],x[3],x[4],x[5]);break;case"Q":c.quadraticCurveTo(x[0],x[1],x[2],x[3]);break;case"A":var C=x[0],y=x[1],h=x[2],w=x[3],E=x[4],M=x[5],b=x[6],m=x[7],_=h>w?h:w,k=h>w?1:h/w,R=h>
31w?w/h:1;c.translate(C,y),c.rotate(b),c.scale(k,R),c.arc(0,0,_,E,E+M,1-m),c.scale(1/k,1/R),c.rotate(-b),c.translate(-C,-y);break;case"z":f=!0,c.closePath();break}}!f&&!this.hasFill()?c.strokeShape(this):c.fillStrokeShape(this)}getSelfRect(){var c=[];this.dataArray.forEach(function(h){if(h.command==="A"){var w=h.points[4],E=h.points[5],M=h.points[4]+E,b=Math.PI/180;if(Math.abs(w-M)<b&&(b=Math.abs(w-M)),E<0)for(let m=w-b;m>M;m-=b){const _=Va.getPointOnEllipticalArc(h.points[0],h.points[1],h.points[2],h.points[3],m,0);c.push(_.x,_.y)}else for(let m=w+b;m<M;m+=b){const _=Va.getPointOnEllipticalArc(h.points[0],h.points[1],h.points[2],h.points[3],m,0);c.push(_.x,_.y)}}else if(h.command==="C")for(let m=0;m<=1;m+=.01){const _=Va.getPointOnCubicBezier(m,h.start.x,h.start.y,h.points[0],h.points[1],h.points[2],h.points[3],h.points[4],h.points[5]);c.push(_.x,_.y)}else c=c.concat(h.points)});for(var d=c[0],f=c[0],g=c[1],v=c[1],x,C,y=0;y<c.length/2;y++)x=c[y*2],C=c[y*2+1],isNaN(x)||(d=Math.min(d,x),f=Math.max(f,x)),isNaN(C)||(g=Math.min(g,C),v=Math.max(v,C));return{x:d,y:g,width:f-d,height:v-g}}getLength(){return this.pathLength}getPointAtLength(c){return Va.getPointAtLengthOfDataArray(c,this.dataArray)}static getLineLength(c,d,f,g){return Math.sqrt((f-c)*(f-c)+(g-d)*(g-d))}static getPathLength(c){let d=0;for(var f=0;f<c.length;++f)d+=c[f].pathLength;return d}static getPointAtLengthOfDataArray(c,d){var f,g=0,v=d.length;if(!v)return null;for(;g<v&&c>d[g].pathLength;)c-=d[g].pathLength,++g;if(g===v)return f=d[g-1].points.slice(-2),{x:f[0],y:f[1]};if(c<.01)return f=d[g].points.slice(0,2),{x:f[0],y:f[1]};var x=d[g],C=x.points;switch(x.command){case"L":return Va.getPointOnLine(c,x.start.x,x.start.y,C[0],C[1]);case"C":return Va.getPointOnCubicBezier((0,r.t2length)(c,Va.getPathLength(d),_=>(0,r.getCubicArcLength)([x.start.x,C[0],C[2],C[4]],[x.start.y,C[1],C[3],C[5]],_)),x.start.x,x.start.y,C[0],C[1],C[2],C[3],C[4],C[5]);case"Q":return Va.getPointOnQuadraticBezier((0,r.t2length)(c,Va.getPathLength(d),_=>(0,r.getQuadraticArcLength)([x.start.x,C[0],C[2]],[x.start.y,C[1],C[3]],_)),x.start.x,x.start.y,C[0],C[1],C[2],C[3]);case"A":var y=C[0],h=C[1],w=C[2],E=C[3],M=C[4],b=C[5],m=C[6];return M+=b*c/x.pathLength,Va.getPointOnEllipticalArc(y,h,w,E,M,m)}return null}static getPointOnLine(c,d,f,g,v,x,C){x===void 0&&(x=d),C===void 0&&(C=f);var y=(v-f)/(g-d+1e-8),h=Math.sqrt(c*c/(1+y*y));g<d&&(h*=-1);var w=y*h,E;if(g===d)E={x,y:C+w};else if((C-f)/(x-d+1e-8)===y)E={x:x+h,y:C+w};else{var M,b,m=this.getLineLength(d,f,g,v),_=(x-d)*(g-d)+(C-f)*(v-f);_=_/(m*m),M=d+_*(g-d),b=f+_*(v-f);var k=this.getLineLength(x,C,M,b),R=Math.sqrt(c*c-k*k);h=Math.sqrt(R*R/(1+y*y)),g<d&&(h*=-1),w=y*h,E={x:M+h,y:b+w}}return E}static getPointOnCubicBezier(c,d,f,g,v,x,C,y,h){function w(k){return k*k*k}function E(k){return 3*k*k*(1-k)}function M(k){return 3*k*(1-k)*(1-k)}function b(k){return(1-k)*(1-k)*(1-k)}var m=y*w(c)+x*E(c)+g*M(c)+d*b(c),_=h*w(c)+C*E(c)+v*M(c)+f*b(c);return{x:m,y:_}}static getPointOnQuadraticBezier(c,d,f,g,v,x,C){function y(b){return b*b}function h(b){return 2*b*(1-b)}function w(b){return(1-b)*(1-b)}var E=x*y(c)+g*h(c)+d*w(c),M=C*y(c)+v*h(c)+f*w(c);return{x:E,y:M}}static getPointOnEllipticalArc(c,d,f,g,v,x){var C=Math.cos(x),y=Math.sin(x),h={x:f*Math.cos(v),y:g*Math.sin(v)};return{x:c+(h.x*C-h.y*y),y:d+(h.x*y+h.y*C)}}static parsePathData(c){if(!c)return[];var d=c,f=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];d=d.replace(new RegExp(" ","g"),",");for(var g=0;g<f.length;g++)d=d.replace(new RegExp(f[g],"g"),"|"+f[g]);var v=d.split("|"),x=[],C=[],y=0,h=0,w=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,E;for(g=1;g<v.length;g++){var M=v[g],b=M.charAt(0);for(M=M.slice(1),C.length=0;E=w.exec(M);)C.push(E[0]);for(var m=[],_=0,k=C.length;_<k;_++){if(C[_]==="00"){m.push(0,0);continue}var R=parseFloat(C[_]);isNaN(R)?m.push(0):m.push(R)}for(;m.length>0&&!isNaN(m[0]);){var G="",T=[],D=y,A=h,B,Z,S,I,N,z,W,Q,tt,at;switch(b){case"l":y+=m.shift(),h+=m.shift(),G="L",T.push(y,h);break;case"L":y=m.shift(),h=m.shift(),T.push(y,h);break;case"m":var X=m.shift(),q=m.shift();if(y+=X,h+=q,G="M",x.length>2&&x[x.length-1].command==="z"){for(var rt=x.length-2;rt>=0;rt--)if(x[rt].command==="M"){y=x[rt].points[0]+X,h=x[rt].points[1]+q;break}}T.push(y,h),b="l";break;case"M":y=m.shift(),h=m.shift(),G="M",T.push(y,h),b="L";break;case"h":y+=m.shift(),G="L",T.push(y,h);break;case"H":y=m.shift(),G="L",T.push(y,h);break;case"v":h+=m.shift(),G="L",T.push(y,h);break;case"V":h=m.shift(),G="L",T.push(y,h);break;case"C":T.push(m.shift(),m.shift(),m.shift(),m.shift()),y=m.shift(),h=m.shift(),T.push(y,h);break;case"c":T.push(y+m.shift(),h+m.shift(),y+m.shift(),h+m.shift()),y+=m.shift(),h+=m.shift(),G="C",T.push(y,h);break;case"S":Z=y,S=h,B=x[x.length-1],B.command==="C"&&(Z=y+(y-B.points[2]),S=h+(h-B.points[3])),T.push(Z,S,m.shift(),m.shift()),y=m.shift(),h=m.shift(),G="C",T.push(y,h);break;case"s":Z=y,S=h,B=x[x.length-1],B.command==="C"&&(Z=y+(y-B.points[2]),S=h+(h-B.points[3])),T.push(Z,S,y+m.shift(),h+m.shift()),y+=m.shift(),h+=m.shift(),G="C",T.push(y,h);break;case"Q":T.push(m.shift(),m.shift()),y=m.shift(),h=m.shift(),T.push(y,h);break;case"q":T.push(y+m.shift(),h+m.shift()),y+=m.shift(),h+=m.shift(),G="Q",T.push(y,h);break;case"T":Z=y,S=h,B=x[x.length-1],B.command==="Q"&&(Z=y+(y-B.points[0]),S=h+(h-B.points[1])),y=m.shift(),h=m.shift(),G="Q",T.push(Z,S,y,h);break;case"t":Z=y,S=h,B=x[x.length-1],B.command==="Q"&&(Z=y+(y-B.points[0]),S=h+(h-B.points[1])),y+=m.shift(),h+=m.shift(),G="Q",T.push(Z,S,y,h);break;case"A":I=m.shift(),N=m.shift(),z=m.shift(),W=m.shift(),Q=m.shift(),tt=y,at=h,y=m.shift(),h=m.shift(),G="A",T=this.convertEndpointToCenterParameterization(tt,at,y,h,W,Q,I,N,z);break;case"a":I=m.shift(),N=m.shift(),z=m.shift(),W=m.shift(),Q=m.shift(),tt=y,at=h,y+=m.shift(),h+=m.shift(),G="A",T=this.convertEndpointToCenterParameterization(tt,at,y,h,W,Q,I,N,z);break}x.push({command:G||b,points:T,start:{x:D,y:A},pathLength:this.calcLength(D,A,G||b,T)})}(b==="z"||b==="Z")&&x.push({command:"z",points:[],start:void 0,pathLength:0})}return x}static calcLength(c,d,f,g){var v,x,C,y,h=Va;switch(f){case"L":return h.getLineLength(c,d,g[0],g[1]);case"C":return(0,r.getCubicArcLength)([c,g[0],g[2],g[4]],[d,g[1],g[3],g[5]],1);case"Q":return(0,r.getQuadraticArcLength)([c,g[0],g[2]],[d,g[1],g[3]],1);case"A":v=0;var w=g[4],E=g[5],M=g[4]+E,b=Math.PI/180;
31if(Math.abs(w-M)<b&&(b=Math.abs(w-M)),x=h.getPointOnEllipticalArc(g[0],g[1],g[2],g[3],w,0),E<0)for(y=w-b;y>M;y-=b)C=h.getPointOnEllipticalArc(g[0],g[1],g[2],g[3],y,0),v+=h.getLineLength(x.x,x.y,C.x,C.y),x=C;else for(y=w+b;y<M;y+=b)C=h.getPointOnEllipticalArc(g[0],g[1],g[2],g[3],y,0),v+=h.getLineLength(x.x,x.y,C.x,C.y),x=C;return C=h.getPointOnEllipticalArc(g[0],g[1],g[2],g[3],M,0),v+=h.getLineLength(x.x,x.y,C.x,C.y),v}return 0}static convertEndpointToCenterParameterization(c,d,f,g,v,x,C,y,h){var w=h*(Math.PI/180),E=Math.cos(w)*(c-f)/2+Math.sin(w)*(d-g)/2,M=-1*Math.sin(w)*(c-f)/2+Math.cos(w)*(d-g)/2,b=E*E/(C*C)+M*M/(y*y);b>1&&(C*=Math.sqrt(b),y*=Math.sqrt(b));var m=Math.sqrt((C*C*(y*y)-C*C*(M*M)-y*y*(E*E))/(C*C*(M*M)+y*y*(E*E)));v===x&&(m*=-1),isNaN(m)&&(m=0);var _=m*C*M/y,k=m*-y*E/C,R=(c+f)/2+Math.cos(w)*_-Math.sin(w)*k,G=(d+g)/2+Math.sin(w)*_+Math.cos(w)*k,T=function(N){return Math.sqrt(N[0]*N[0]+N[1]*N[1])},D=function(N,z){return(N[0]*z[0]+N[1]*z[1])/(T(N)*T(z))},A=function(N,z){return(N[0]*z[1]<N[1]*z[0]?-1:1)*Math.acos(D(N,z))},B=A([1,0],[(E-_)/C,(M-k)/y]),Z=[(E-_)/C,(M-k)/y],S=[(-1*E-_)/C,(-1*M-k)/y],I=A(Z,S);return D(Z,S)<=-1&&(I=Math.PI),D(Z,S)>=1&&(I=0),x===0&&I>0&&(I=I-2*Math.PI),x===1&&I<0&&(I=I+2*Math.PI),[R,G,C,y,B,I,w,x]}};return C0.Path=s,s.prototype.className="Path",s.prototype._attrsAffectingSize=["data"],(0,n._registerNode)(s),t.Factory.addGetterSetter(s,"data"),C0}var y6;function BE(){if(y6)return w0;y6=1,Object.defineProperty(w0,"__esModule",{value:!0}),w0.Arrow=void 0;const t=ze(),e=lb(),n=Ze(),r=$e(),s=xm();class o extends e.Line{_sceneFunc(d){super._sceneFunc(d);var f=Math.PI*2,g=this.points(),v=g,x=this.tension()!==0&&g.length>4;x&&(v=this.getTensionPoints());var C=this.pointerLength(),y=g.length,h,w;if(x){const b=[v[v.length-4],v[v.length-3],v[v.length-2],v[v.length-1],g[y-2],g[y-1]],m=s.Path.calcLength(v[v.length-4],v[v.length-3],"C",b),_=s.Path.getPointOnQuadraticBezier(Math.min(1,1-C/m),b[0],b[1],b[2],b[3],b[4],b[5]);h=g[y-2]-_.x,w=g[y-1]-_.y}else h=g[y-2]-g[y-4],w=g[y-1]-g[y-3];var E=(Math.atan2(w,h)+f)%f,M=this.pointerWidth();this.pointerAtEnding()&&(d.save(),d.beginPath(),d.translate(g[y-2],g[y-1]),d.rotate(E),d.moveTo(0,0),d.lineTo(-C,M/2),d.lineTo(-C,-M/2),d.closePath(),d.restore(),this.__fillStroke(d)),this.pointerAtBeginning()&&(d.save(),d.beginPath(),d.translate(g[0],g[1]),x?(h=(v[0]+v[2])/2-g[0],w=(v[1]+v[3])/2-g[1]):(h=g[2]-g[0],w=g[3]-g[1]),d.rotate((Math.atan2(-w,-h)+f)%f),d.moveTo(0,0),d.lineTo(-C,M/2),d.lineTo(-C,-M/2),d.closePath(),d.restore(),this.__fillStroke(d))}__fillStroke(d){var f=this.dashEnabled();f&&(this.attrs.dashEnabled=!1,d.setLineDash([])),d.fillStrokeShape(this),f&&(this.attrs.dashEnabled=!0)}getSelfRect(){const d=super.getSelfRect(),f=this.pointerWidth()/2;return{x:d.x-f,y:d.y-f,width:d.width+f*2,height:d.height+f*2}}}return w0.Arrow=o,o.prototype.className="Arrow",(0,r._registerNode)(o),t.Factory.addGetterSetter(o,"pointerLength",10,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(o,"pointerWidth",10,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(o,"pointerAtBeginning",!1),t.Factory.addGetterSetter(o,"pointerAtEnding",!0),w0}var S0={},b6;function HE(){if(b6)return S0;b6=1,Object.defineProperty(S0,"__esModule",{value:!0}),S0.Circle=void 0;const t=ze(),e=Gr(),n=Ze(),r=$e();let s=class extends e.Shape{_sceneFunc(o){o.beginPath(),o.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),o.closePath(),o.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(o){this.radius()!==o/2&&this.radius(o/2)}setHeight(o){this.radius()!==o/2&&this.radius(o/2)}};return S0.Circle=s,s.prototype._centroid=!0,s.prototype.className="Circle",s.prototype._attrsAffectingSize=["radius"],(0,r._registerNode)(s),t.Factory.addGetterSetter(s,"radius",0,(0,n.getNumberValidator)()),S0}var _0={},w6;function zE(){if(w6)return _0;w6=1,Object.defineProperty(_0,"__esModule",{value:!0}),_0.Ellipse=void 0;const t=ze(),e=Gr(),n=Ze(),r=$e();class s extends e.Shape{_sceneFunc(c){var d=this.radiusX(),f=this.radiusY();c.beginPath(),c.save(),d!==f&&c.scale(1,f/d),c.arc(0,0,d,0,Math.PI*2,!1),c.restore(
31),c.closePath(),c.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(c){this.radiusX(c/2)}setHeight(c){this.radiusY(c/2)}}return _0.Ellipse=s,s.prototype.className="Ellipse",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,r._registerNode)(s),t.Factory.addComponentsGetterSetter(s,"radius",["x","y"]),t.Factory.addGetterSetter(s,"radiusX",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(s,"radiusY",0,(0,n.getNumberValidator)()),_0}var E0={},x6;function GE(){if(x6)return E0;x6=1,Object.defineProperty(E0,"__esModule",{value:!0}),E0.Image=void 0;const t=rr(),e=ze(),n=Gr(),r=$e(),s=Ze();class o extends n.Shape{constructor(d){super(d),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const d=this.image();d&&d.complete||d&&d.readyState===4||d&&d.addEventListener&&d.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(d){const f=this.getWidth(),g=this.getHeight(),v=this.cornerRadius(),x=this.attrs.image;let C;if(x){const y=this.attrs.cropWidth,h=this.attrs.cropHeight;y&&h?C=[x,this.cropX(),this.cropY(),y,h,0,0,f,g]:C=[x,0,0,f,g]}(this.hasFill()||this.hasStroke()||v)&&(d.beginPath(),v?t.Util.drawRoundedRectPath(d,f,g,v):d.rect(0,0,f,g),d.closePath(),d.fillStrokeShape(this)),x&&(v&&d.clip(),d.drawImage.apply(d,C))}_hitFunc(d){var f=this.width(),g=this.height(),v=this.cornerRadius();d.beginPath(),v?t.Util.drawRoundedRectPath(d,f,g,v):d.rect(0,0,f,g),d.closePath(),d.fillStrokeShape(this)}getWidth(){var d,f;return(d=this.attrs.width)!==null&&d!==void 0?d:(f=this.image())===null||f===void 0?void 0:f.width}getHeight(){var d,f;return(d=this.attrs.height)!==null&&d!==void 0?d:(f=this.image())===null||f===void 0?void 0:f.height}static fromURL(d,f,g=null){var v=t.Util.createImageElement();v.onload=function(){var x=new o({image:v});f(x)},v.onerror=g,v.crossOrigin="Anonymous",v.src=d}}return E0.Image=o,o.prototype.className="Image",(0,r._registerNode)(o),e.Factory.addGetterSetter(o,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4)),e.Factory.addGetterSetter(o,"image"),e.Factory.addComponentsGetterSetter(o,"crop",["x","y","width","height"]),e.Factory.addGetterSetter(o,"cropX",0,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(o,"cropY",0,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(o,"cropWidth",0,(0,s.getNumberValidator)()),e.Factory.addGetterSetter(o,"cropHeight",0,(0,s.getNumberValidator)()),E0}var Pc={},C6;function UE(){if(C6)return Pc;C6=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.Tag=Pc.Label=void 0;const t=ze(),e=Gr(),n=bm(),r=Ze(),s=$e();var o=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],c="Change.konva",d="none",f="up",g="r
31ight",v="down",x="left",C=o.length;class y extends n.Group{constructor(E){super(E),this.on("add.konva",function(M){this._addListeners(M.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(E){var M=this,b,m=function(){M._sync()};for(b=0;b<C;b++)E.on(o[b]+c,m)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var E=this.getText(),M=this.getTag(),b,m,_,k,R,G,T;if(E&&M){switch(b=E.width(),m=E.height(),_=M.pointerDirection(),k=M.pointerWidth(),T=M.pointerHeight(),R=0,G=0,_){case f:R=b/2,G=-1*T;break;case g:R=b+k,G=m/2;break;case v:R=b/2,G=m+T;break;case x:R=-1*k,G=m/2;break}M.setAttrs({x:-1*R,y:-1*G,width:b,height:m}),E.setAttrs({x:-1*R,y:-1*G})}}}Pc.Label=y,y.prototype.className="Label",(0,s._registerNode)(y);class h extends e.Shape{_sceneFunc(E){var M=this.width(),b=this.height(),m=this.pointerDirection(),_=this.pointerWidth(),k=this.pointerHeight(),R=this.cornerRadius();let G=0,T=0,D=0,A=0;typeof R=="number"?G=T=D=A=Math.min(R,M/2,b/2):(G=Math.min(R[0]||0,M/2,b/2),T=Math.min(R[1]||0,M/2,b/2),A=Math.min(R[2]||0,M/2,b/2),D=Math.min(R[3]||0,M/2,b/2)),E.beginPath(),E.moveTo(G,0),m===f&&(E.lineTo((M-_)/2,0),E.lineTo(M/2,-1*k),E.lineTo((M+_)/2,0)),E.lineTo(M-T,0),E.arc(M-T,T,T,Math.PI*3/2,0,!1),m===g&&(E.lineTo(M,(b-k)/2),E.lineTo(M+_,b/2),E.lineTo(M,(b+k)/2)),E.lineTo(M,b-A),E.arc(M-A,b-A,A,0,Math.PI/2,!1),m===v&&(E.lineTo((M+_)/2,b),E.lineTo(M/2,b+k),E.lineTo((M-_)/2,b)),E.lineTo(D,b),E.arc(D,b-D,D,Math.PI/2,Math.PI,!1),m===x&&(E.lineTo(0,(b+k)/2),E.lineTo(-1*_,b/2),E.lineTo(0,(b-k)/2)),E.lineTo(0,G),E.arc(G,G,G,Math.PI,Math.PI*3/2,!1),E.closePath(),E.fillStrokeShape(this)}getSelfRect(){var E=0,M=0,b=this.pointerWidth(),m=this.pointerHeight(),_=this.pointerDirection(),k=this.width(),R=this.height();return _===f?(M-=m,R+=m):_===v?R+=m:_===x?(E-=b*1.5,k+=b):_===g&&(k+=b*1.5),{x:E,y:M,width:k,height:R}}}return Pc.Tag=h,h.prototype.className="Tag",(0,s._registerNode)(h),t.Factory.addGetterSetter(h,"pointerDirection",d),t.Factory.addGetterSetter(h,"pointerWidth",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(h,"pointerHeight",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(h,"cornerRadius",0,(0,r.getNumberOrArrayOfNumbersValidator)(4)),Pc}var O0={},S6;function cb(){if(S6)return O0;S6=1,Object.defineProperty(O0,"__esModule",{value:!0}),O0.Rect=void 0;const t=ze(),e=Gr(),n=$e(),r=rr(),s=Ze();let o=class extends e.Shape{_sceneFunc(c){var d=this.cornerRadius(),f=this.width(),g=this.height();c.beginPath(),d?r.Util.drawRoundedRectPath(c,f,g,d):c.rect(0,0,f,g),c.closePath(),c.fillStrokeShape(this)}};return O0.Rect=o,o.prototype.className="Rect",(0,n._registerNode)(o),t.Factory.addGetterSetter(o,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4)),O0}var k0={},_6;function WE(){if(_6)return k0;_6=1,Object.defineProperty(k0,"__esModule",{value:!0}),k0.RegularPolygon=void 0;const t=ze(),e=Gr(),n=Ze(),r=$e();let s=class extends e.Shape{_sceneFunc(o){const c=this._getPoints();o.beginPath(),o.moveTo(c[0].x,c[0].y);for(var d=1;d<c.length;d++)o.lineTo(c[d].x,c[d].y);o.closePath(),o.fillStrokeShape(this)}_getPoints(){const o=this.attrs.sides,c=this.attrs.radius||0,d=[];for(var f=0;f<o;f++)d.push({x:c*Math.sin(f*2*Math.PI/o),y:-1*c*Math.cos(f*2*Math.PI/o)});return d}getSelfRect(){const o=this._getPoints();var c=o[0].x,d=o[0].y,f=o[0].x,g=o[0].y;return o.forEach(v=>{c=Math.min(c,v.x),d=Math.max(d,v.x),f=Math.min(f,v.y),g=Math.max(g,v.y)}),{x:c,y:f,width:d-c,height:g-f}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(o){this.radius(o/2)}setHeight(o){this.radius(o/2)}};return k0.RegularPolygon=s,s.prototype.className="RegularPolygon",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radius"],(0,r._registerNode)(s),t.Factory.addGetterSetter(s,"radius",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(s,"sides",0,(0,n.getNumberValidator)()),k0}var P0={},E6;function VE(){if(E6)return P0;E6=1,Object.defineProperty(P0,"__esModule",{value:!0}),P0.Ring=void 0;const t=ze(),e=Gr(),n=Ze(),r=$e();var s=Math.PI*2;let o=class extends e.Shape{_sceneFunc(c){c.beginPath(),c.arc(0,0,this.innerRadius(),0,s,!1),c.moveTo(this.outerRadius(),0
31),c.arc(0,0,this.outerRadius(),s,0,!0),c.closePath(),c.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(c){this.outerRadius(c/2)}setHeight(c){this.outerRadius(c/2)}};return P0.Ring=o,o.prototype.className="Ring",o.prototype._centroid=!0,o.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,r._registerNode)(o),t.Factory.addGetterSetter(o,"innerRadius",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(o,"outerRadius",0,(0,n.getNumberValidator)()),P0}var M0={},O6;function YE(){if(O6)return M0;O6=1,Object.defineProperty(M0,"__esModule",{value:!0}),M0.Sprite=void 0;const t=ze(),e=Gr(),n=wm(),r=Ze(),s=$e();let o=class extends e.Shape{constructor(c){super(c),this._updated=!0,this.anim=new n.Animation(()=>{var d=this._updated;return this._updated=!1,d}),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(c){var d=this.animation(),f=this.frameIndex(),g=f*4,v=this.animations()[d],x=this.frameOffsets(),C=v[g+0],y=v[g+1],h=v[g+2],w=v[g+3],E=this.image();if((this.hasFill()||this.hasStroke())&&(c.beginPath(),c.rect(0,0,h,w),c.closePath(),c.fillStrokeShape(this)),E)if(x){var M=x[d],b=f*2;c.drawImage(E,C,y,h,w,M[b+0],M[b+1],h,w)}else c.drawImage(E,C,y,h,w,0,0,h,w)}_hitFunc(c){var d=this.animation(),f=this.frameIndex(),g=f*4,v=this.animations()[d],x=this.frameOffsets(),C=v[g+2],y=v[g+3];if(c.beginPath(),x){var h=x[d],w=f*2;c.rect(h[w+0],h[w+1],C,y)}else c.rect(0,0,C,y);c.closePath(),c.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var c=this;this.interval=setInterval(function(){c._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var c=this.getLayer();this.anim.setLayers(c),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var c=this.frameIndex(),d=this.animation(),f=this.animations(),g=f[d],v=g.length/4;c<v-1?this.frameIndex(c+1):this.frameIndex(0)}};return M0.Sprite=o,o.prototype.className="Sprite",(0,s._registerNode)(o),t.Factory.addGetterSetter(o,"animation"),t.Factory.addGetterSetter(o,"animations"),t.Factory.addGetterSetter(o,"frameOffsets"),t.Factory.addGetterSetter(o,"image"),t.Factory.addGetterSetter(o,"frameIndex",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"frameRate",17,(0,r.getNumberValidator)()),t.Factory.backCompat(o,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),M0}var L0={},k6;function ZE(){if(k6)return L0;k6=1,Object.defineProperty(L0,"__esModule",{value:!0}),L0.Star=void 0;const t=ze(),e=Gr(),n=Ze(),r=$e();let s=class extends e.Shape{_sceneFunc(o){var c=this.innerRadius(),d=this.outerRadius(),f=this.numPoints();o.beginPath(),o.moveTo(0,0-d);for(var g=1;g<f*2;g++){var v=g%2===0?d:c,x=v*Math.sin(g*Math.PI/f),C=-1*v*Math.cos(g*Math.PI/f);o.lineTo(x,C)}o.closePath(),o.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(o){this.outerRadius(o/2)}setHeight(o){this.outerRadius(o/2)}};return L0.Star=s,s.prototype.className="Star",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,r._registerNode)(s),t.Factory.addGetterSetter(s,"numPoints",5,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(s,"innerRadius",0,(0,n.getNumberValidator)()),t.Factory.addGetterSetter(s,"outerRadius",0,(0,n.getNumberValidator)()),L0}var Mc={},P6;function ub(){if(P6)return Mc;P6=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.Text=Mc.stringToArray=void 0;const t=rr(),e=ze(),n=Gr(),r=Ze(),s=$e();function o(X){return Array.from(X)}Mc.stringToArray=o;var c="auto",d="center",f="inherit",g="justify",v="Change.konva",x="2d",C="-",y="left",h="text",w="Text",E="top",M="bottom",b="middle",m="normal",_="px ",k=" ",R="right",G="rtl",T="word",D="char",A="none",B="…",Z=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],S=Z.length;function I(X){return X.split(",").map(q=>{q=q.trim();const rt=q.indexOf(" ")>=0,ot=q.indexOf('"')>=0||q.indexOf("'")>=0;return rt&&!ot&&(q=`"${q}"`),q}).join(", ")}var N;function z(){return N||(N=t.Util.createCanvasElement().getContext(x),N)}function W(X){X.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Q(X){X.setAttr("miterLimit",2),X.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function tt(X){return X=X||{},!X.fillLinearGradientColorStops&&!X.fillRadialGradientColorStops&&!X.fillPatternImage&&(X.fill=X.fill||"black"),X}class at extends n.Shape{constructor(q){super(tt(q)),this._partialTextX=0,this._partialTextY=0;for(var rt=0;rt<S;rt++)this.on(Z[rt]+v,this._setTextData);this._setTextData()}_sceneFunc(q){var rt=this.textArr,ot=rt.length;if(this.text()){var ft=this.padding(),it=this.fontSize(),Y=this.lineHeight()*it,J=this.verticalAlign(),lt=this.direction(),dt=0,yt=this.align(),gt=this.getWidth(),Dt=this.letterSpacing(),Ht=this.fill(),It=this.textDecoration(),qt=It.indexOf("underline")!==-1,Bt=It.indexOf("line-through")!==-1,ee;lt=lt===f?q.direction:lt;var Kt=0,Kt=Y/2,Yt=0,oe=0;for(lt===G&&q.setAttr("direction",lt),q.setAttr("font",this._getContextFont()),q.setAttr("textBaseline",b),q.setAttr("textAlign",y),J===b?dt=(this.getHeight()-ot*Y-ft*2)/2:J===M&&(dt=this.getHeight()-ot*Y-ft*2),q.translate(ft,dt+ft),ee=0;ee<ot;ee++){var Yt=0,oe=0,ne=rt[ee],ue=ne.text,Qt=ne.width,$t=ne.lastInParagraph,we,Fe,_e;if(q.save(),yt===R?Yt+=gt-Qt-ft*2:yt===d&&(Yt+=(gt-Qt-ft*2)/2),qt){q.save(),q.beginPath(),q.moveTo(Yt,Kt+oe+
31Math.round(it/2)),we=ue.split(" ").length-1,Fe=we===0,_e=yt===g&&!$t?gt-ft*2:Qt,q.lineTo(Yt+Math.round(_e),Kt+oe+Math.round(it/2)),q.lineWidth=it/15;const Ge=this._getLinearGradient();q.strokeStyle=Ge||Ht,q.stroke(),q.restore()}if(Bt){q.save(),q.beginPath(),q.moveTo(Yt,Kt+oe),we=ue.split(" ").length-1,Fe=we===0,_e=yt===g&&$t&&!Fe?gt-ft*2:Qt,q.lineTo(Yt+Math.round(_e),Kt+oe),q.lineWidth=it/15;const Ge=this._getLinearGradient();q.strokeStyle=Ge||Ht,q.stroke(),q.restore()}if(lt!==G&&(Dt!==0||yt===g)){we=ue.split(" ").length-1;for(var pn=o(ue),jt=0;jt<pn.length;jt++){var se=pn[jt];se===" "&&!$t&&yt===g&&(Yt+=(gt-ft*2-Qt)/we),this._partialTextX=Yt,this._partialTextY=Kt+oe,this._partialText=se,q.fillStrokeShape(this),Yt+=this.measureSize(se).width+Dt}}else Dt!==0&&q.setAttr("letterSpacing",`${Dt}px`),this._partialTextX=Yt,this._partialTextY=Kt+oe,this._partialText=ue,q.fillStrokeShape(this);q.restore(),ot>1&&(Kt+=Y)}}}_hitFunc(q){var rt=this.getWidth(),ot=this.getHeight();q.beginPath(),q.rect(0,0,rt,ot),q.closePath(),q.fillStrokeShape(this)}setText(q){var rt=t.Util._isString(q)?q:q==null?"":q+"";return this._setAttr(h,rt),this}getWidth(){var q=this.attrs.width===c||this.attrs.width===void 0;return q?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var q=this.attrs.height===c||this.attrs.height===void 0;return q?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return t.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(q){var rt=z(),ot=this.fontSize(),ft;return rt.save(),rt.font=this._getContextFont(),ft=rt.measureText(q),rt.restore(),{width:ft.width,height:ot}}_getContextFont(){return this.fontStyle()+k+this.fontVariant()+k+(this.fontSize()+_)+I(this.fontFamily())}_addTextLine(q){this.align()===g&&(q=q.trim());var rt=this._getTextWidth(q);return this.textArr.push({text:q,width:rt,lastInParagraph:!1})}_getTextWidth(q){var rt=this.letterSpacing(),ot=q.length;return z().measureText(q).width+(ot?rt*(ot-1):0)}_setTextData(){var q=this.text().split(`
32`),rt=+this.fontSize(),ot=0,ft=this.lineHeight()*rt,it=this.attrs.width,Y=this.attrs.height,J=it!==c&&it!==void 0,lt=Y!==c&&Y!==void 0,dt=this.padding(),yt=it-dt*2,gt=Y-dt*2,Dt=0,Ht=this.wrap(),It=Ht!==A,qt=Ht!==D&&It,Bt=this.ellipsis();this.textArr=[],z().font=this._getContextFont();for(var ee=Bt?this._getTextWidth(B):0,Kt=0,Yt=q.length;Kt<Yt;++Kt){var oe=q[Kt],ne=this._getTextWidth(oe);if(J&&ne>yt)for(;oe.length>0;){for(var ue=0,Qt=oe.length,$t="",we=0;ue<Qt;){var Fe=ue+Qt>>>1,_e=oe.slice(0,Fe+1),pn=this._getTextWidth(_e)+ee;pn<=yt?(ue=Fe+1,$t=_e,we=pn):Qt=Fe}if($t){if(qt){var jt,se=oe[$t.length],Se=se===k||se===C;Se&&we<=yt?jt=$t.length:jt=Math.max($t.lastIndexOf(k),$t.lastIndexOf(C))+1,jt>0&&(ue=jt,$t=$t.slice(0,ue),we=this._getTextWidth($t))}$t=$t.trimRight(),this._addTextLine($t),ot=Math.max(ot,we),Dt+=ft;var xe=this._shouldHandleEllipsis(Dt);if(xe){this._tryToAddEllipsisToLastLine();break}if(oe=oe.slice(ue),oe=oe.trimLeft(),oe.length>0&&(ne=this._getTextWidth(oe),ne<=yt)){this._addTextLine(oe),Dt+=ft,ot=Math.max(ot,ne);break}}else break}else this._addTextLine(oe),Dt+=ft,ot=Math.max(ot,ne),this._shouldHandleEllipsis(Dt)&&Kt<Yt-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),lt&&Dt+ft>gt)break}this.textHeight=rt,this.textWidth=ot}_shouldHandleEllipsis(q){var rt=+this.fontSize(),ot=this.lineHeight()*rt,ft=this.attrs.height,it=ft!==c&&ft!==void 0,Y=this.padding(),J=ft-Y*2,lt=this.wrap(),dt=lt!==A;return!dt||it&&q+ot>J}_tryToAddEllipsisToLastLine(){var q=this.attrs.width,rt=q!==c&&q!==void 0,ot=this.padding(),ft=q-ot*2,it=this.ellipsis(),Y=this.textArr[this.textArr.length-1];if(!(!Y||!it)){if(rt){var J=this._getTextWidth(Y.text+B)<ft;J||(Y.text=Y.text.slice(0,Y.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(Y.text+B)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const q=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,rt=this.hasShadow();return q&&rt?!0:super._useBufferCanvas()}}return Mc.Text=at,at.prototype._fillFunc=W,at.prototype._strokeFunc=Q,at.prototype.className=w,at.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,s._registerNode)(at),e.Factory.overWriteSetter(at,"width",(0,r.getNumberOrAutoValidator)()),e.Factory.overWriteSetter(at,"height",(0,r.getNumberOrAutoValidator)()),e.Factory.addGetterSetter(at,"direction",f),e.Factory.addGetterSetter(at,"fontFamily","Arial"),e.Factory.addGetterSetter(at,"fontSize",12,(0,r.getNumberValidator)()),e.Factory.addGetterSetter(at,"fontStyle",m),e.Factory.addGetterSetter(at,"fontVariant",m),e.Factory.addGetterSetter(at,"padding",0,(0,r.getNumberValidator)()),e.Factory.addGetterSetter(at,"align",y),e.Factory.addGetterSetter(at,"verticalAlign",E),e.Factory.addGetterSetter(at,"lineHeight",1,(0,r.getNumberValidator)()),e.Factory.addGetterSetter(at,"wrap",T),e.Factory.addGetterSetter(at,"ellipsis",!1,(0,r.getBooleanValidator)()),e.Factory.addGetterSetter(at,"letterSpacing",0,(0,r.getNumberValidator)()),e.Factory.addGetterSetter(at,"text","",(0,r.getStringValidator)()),e.Factory.addGetterSetter(at,"textDecoration",""),Mc}var T0={},M6;function KE(){if(M6)return T0;M6=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.TextPath=void 0;
32const t=rr(),e=ze(),n=Gr(),r=xm(),s=ub(),o=Ze(),c=$e();var d="",f="normal";function g(C){C.fillText(this.partialText,0,0)}function v(C){C.strokeText(this.partialText,0,0)}let x=class extends n.Shape{constructor(C){super(C),this.dummyCanvas=t.Util.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 r.Path.getPathLength(this.dataArray)}_getPointAtLength(C){if(!this.attrs.data)return null;const y=this.pathLength;return C-1>y?null:r.Path.getPointAtLengthOfDataArray(C,this.dataArray)}_readDataAttribute(){this.dataArray=r.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(C){C.setAttr("font",this._getContextFont()),C.setAttr("textBaseline",this.textBaseline()),C.setAttr("textAlign","left"),C.save();var y=this.textDecoration(),h=this.fill(),w=this.fontSize(),E=this.glyphInfo;y==="underline"&&C.beginPath();for(var M=0;M<E.length;M++){C.save();var b=E[M].p0;C.translate(b.x,b.y),C.rotate(E[M].rotation),this.partialText=E[M].text,C.fillStrokeShape(this),y==="underline"&&(M===0&&C.moveTo(0,w/2+1),C.lineTo(w,w/2+1)),C.restore()}y==="underline"&&(C.strokeStyle=h,C.lineWidth=w/20,C.stroke()),C.restore()}_hitFunc(C){C.beginPath();var y=this.glyphInfo;if(y.length>=1){var h=y[0].p0;C.moveTo(h.x,h.y)}for(var w=0;w<y.length;w++){var E=y[w].p1;C.lineTo(E.x,E.y)}C.setAttr("lineWidth",this.fontSize()),C.setAttr("strokeStyle",this.colorKey),C.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return t.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(C){return s.Text.prototype.setText.call(this,C)}_getContextFont(){return s.Text.prototype._getContextFont.call(this)}_getTextSize(C){var y=this.dummyCanvas,h=y.getContext("2d");h.save(),h.font=this._getContextFont();var w=h.measureText(C);return h.restore(),{width:w.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:C,height:y}=this._getTextSize(this.attrs.text);if(this.textWidth=C,this.textHeight=y,this.glyphInfo=[],!this.attrs.data)return null;const h=this.letterSpacing(),w=this.align(),E=this.kerningFunc(),M=Math.max(this.textWidth+((this.attrs.text||"").length-1)*h,0);let b=0;w==="center"&&(b=Math.max(0,this.pathLength/2-M/2)),w==="right"&&(b=Math.max(0,this.pathLength-M));const m=(0,s.stringToArray)(this.text());let _=b;for(var k=0;k<m.length;k++){const R=this._getPointAtLength(_);if(!R)return;let G=this._getTextSize(m[k]).width+h;if(m[k]===" "&&w==="justify"){const S=this.text().split(" ").length-1;G+=(this.pathLength-M)/S}const T=this._getPointAtLength(_+G);if(!T)return;const D=r.Path.getLineLength(R.x,R.y,T.x,T.y);let A=0;if(E)try{A=E(m[k-1],m[k])*this.fontSize()}catch{A=0}R.x+=A,T.x+=A,this.textWidth+=A;const B=r.Path.getPointOnLine(A+D/2,R.x,R.y,T.x,T.y),Z=Math.atan2(T.y-R.y,T.x-R.x);this.glyphInfo.push({transposeX:B.x,transposeY:B.y,text:m[k],rotation:Z,p0:R,p1:T}),_+=G}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var C=[];this.glyphInfo.forEach(function(k){C.push(k.p0.x),C.push(k.p0.y),C.push(k.p1.x),C.push(k.p1.y)});for(var y=C[0]||0,h=C[0]||0,w=C[1]||0,E=C[1]||0,M,b,m=0;m<C.length/2;m++)M=C[m*2],b=C[m*2+1],y=Math.min(y,M),h=Math.max(h,M),w=Math.min(w,b),E=Math.max(E,b);var _=this.fontSize();return{x:y-_/2,y:w-_/2,width:h-y+_,height:E-w+_}}destroy(){return t.Util.releaseCanvas(this.dummyCanvas),super.destroy()}};return T0.TextPath=x,x.prototype._fillFunc=g,x.prototype._strokeFunc=v,x.prototype._fillFuncHit=g,x.prototype._strokeFuncHit=v,x.prototype.className="TextPath",x.prototype._attrsAffectingSize=["text","fontSize","data"],(0,c._registerNode)(x),e.Factory.addGetterSetter(x,"data"),e.Factory.addGetterSetter(x,"fontFamily","Arial"),e.Factory.addGetterSetter(x,"fontSize",12,(0,o.getNumberValidator)()),e.Factory.addGetterSetter(x,"fontStyle",f),e.Factory.addGetterSetter(x,"align","left"),e.Factory.addGetterSetter(x,"letterSpacing",0,(0,o.getNumberValidator)()),e.Factory.addGetterSetter(x,"textBaseline","middle"),e.Factory.addGetterSetter(x,"fontVariant",f),e.Factory.addGetterSetter(x,"text",d),e.Factory.addGetterSetter(x,"textDecoration",null),e.Factory.addGetterSetter(x,"kerningFunc",null),T0}var A0={},L6;function $E(){if(L6)return A0;L6=1,Object.defineProperty(A0,"__esModule",{value:!0}),A0.Transformer=void 0;
32const t=rr(),e=ze(),n=dr(),r=Gr(),s=cb(),o=bm(),c=$e(),d=Ze(),f=$e();var g="tr-konva",v=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(T=>T+`.${g}`).join(" "),x="nodesRect",C=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],y={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const h="ontouchstart"in c.Konva._global;function w(T,D,A){if(T==="rotater")return A;D+=t.Util.degToRad(y[T]||0);var B=(t.Util.radToDeg(D)%360+360)%360;return t.Util._inRange(B,315+22.5,360)||t.Util._inRange(B,0,22.5)?"ns-resize":t.Util._inRange(B,45-22.5,45+22.5)?"nesw-resize":t.Util._inRange(B,90-22.5,90+22.5)?"ew-resize":t.Util._inRange(B,135-22.5,135+22.5)?"nwse-resize":t.Util._inRange(B,180-22.5,180+22.5)?"ns-resize":t.Util._inRange(B,225-22.5,225+22.5)?"nesw-resize":t.Util._inRange(B,270-22.5,270+22.5)?"ew-resize":t.Util._inRange(B,315-22.5,315+22.5)?"nwse-resize":(t.Util.error("Transformer has unknown angle for cursor detection: "+B),"pointer")}var E=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function M(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 b(T,D,A){const B=A.x+(T.x-A.x)*Math.cos(D)-(T.y-A.y)*Math.sin(D),Z=A.y+(T.x-A.x)*Math.sin(D)+(T.y-A.y)*Math.cos(D);return{...T,rotation:T.rotation+D,x:B,y:Z}}function m(T,D){const A=M(T);return b(T,D,A)}function _(T,D,A){let B=D;for(let Z=0;Z<T.length;Z++){const S=c.Konva.getAngle(T[Z]),I=Math.abs(S-D)%(Math.PI*2);Math.min(I,Math.PI*2-I)<A&&(B=S)}return B}let k=0,R=class extends o.Group{constructor(T){super(T),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(v,this.update),this.getNode()&&this.update()}attachTo(T){return this.setNode(T),this}setNode(T){return t.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([T])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return g+this._id}setNodes(T=[]){this._nodes&&this._nodes.length&&this.detach();const D=T.filter(B=>B.isAncestorOf(this)?(t.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=T=D,T.length===1&&this.useSingleNodeRotation()?this.rotation(T[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(B=>{const Z=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},S=B._attrsAffectingSize.map(I=>I+"Change."+this._getEventNamespace()).join(" ");B.on(S,Z),B.on(C.map(I=>I+`.${this._getEventNamespace()}`).join(" "),Z),B.on(`absoluteTransformChange.${this._getEventNamespace()}`,Z),this._proxyDrag(B)}),this._resetTransformCache();var A=!!this.findOne(".top-left");return A&&this.update(),this}_proxyDrag(T){let D;T.on(`dragstart.${this._getEventNamespace()}`,A=>{D=T.getAbsolutePosition(),!this.isDragging()&&T!==this.findOne(".back")&&this.startDrag(A,!1)}),T.on(`dragmove.${this._getEventNamespace()}`,A=>{if(!D)return;const B=T.getAbsolutePosition(),Z=B.x-D.x,S=B.y-D.y;this.nodes().forEach(I=>{if(I===T||I.isDragging())return;const N=I.getAbsolutePosition();I.setAbsolutePosition({x:N.x+Z,y:N.y+S}),I.startDrag(A)}),D=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}
32detach(){this._nodes&&this._nodes.forEach(T=>{T.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(x),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(x,this.__getNodeRect)}__getNodeShape(T,D=this.rotation(),A){var B=T.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),Z=T.getAbsoluteScale(A),S=T.getAbsolutePosition(A),I=B.x*Z.x-T.offsetX()*Z.x,N=B.y*Z.y-T.offsetY()*Z.y;const z=(c.Konva.getAngle(T.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),W={x:S.x+I*Math.cos(z)+N*Math.sin(-z),y:S.y+N*Math.cos(z)+I*Math.sin(z),width:B.width*Z.x,height:B.height*Z.y,rotation:z};return b(W,-c.Konva.getAngle(D),{x:0,y:0})}__getNodeRect(){var T=this.getNode();if(!T)return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const D=[];this.nodes().map(z=>{const W=z.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var Q=[{x:W.x,y:W.y},{x:W.x+W.width,y:W.y},{x:W.x+W.width,y:W.y+W.height},{x:W.x,y:W.y+W.height}],tt=z.getAbsoluteTransform();Q.forEach(function(at){var X=tt.point(at);D.push(X)})});const A=new t.Transform;A.rotate(-c.Konva.getAngle(this.rotation()));var B=1/0,Z=1/0,S=-1/0,I=-1/0;D.forEach(function(z){var W=A.point(z);B===void 0&&(B=S=W.x,Z=I=W.y),B=Math.min(B,W.x),Z=Math.min(Z,W.y),S=Math.max(S,W.x),I=Math.max(I,W.y)}),A.invert();const N=A.point({x:B,y:Z});return{x:N.x,y:N.y,width:S-B,height:I-Z,rotation:c.Konva.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(),E.forEach(T=>{this._createAnchor(T)}),this._createAnchor("rotater")}_createAnchor(T){var D=new s.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:T+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:h?10:"auto"}),A=this;D.on("mousedown touchstart",function(B){A._handleMouseDown(B)}),D.on("dragstart",B=>
32{D.stopDrag(),B.cancelBubble=!0}),D.on("dragend",B=>{B.cancelBubble=!0}),D.on("mouseenter",()=>{var B=c.Konva.getAngle(this.rotation()),Z=this.rotateAnchorCursor(),S=w(T,B,Z);D.getStage().content&&(D.getStage().content.style.cursor=S),this._cursorChange=!0}),D.on("mouseout",()=>{D.getStage().content&&(D.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(D)}_createBack(){var T=new r.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(D,A){var B=A.getParent(),Z=B.padding();D.beginPath(),D.rect(-Z,-Z,A.width()+Z*2,A.height()+Z*2),D.moveTo(A.width()/2,-Z),B.rotateEnabled()&&B.rotateLineVisible()&&D.lineTo(A.width()/2,-B.rotateAnchorOffset()*t.Util._sign(A.height())-Z),D.fillStrokeShape(A)},hitFunc:(D,A)=>{if(this.shouldOverdrawWholeArea()){var B=this.padding();D.beginPath(),D.rect(-B,-B,A.width()+B*2,A.height()+B*2),D.fillStrokeShape(A)}}});this.add(T),this._proxyDrag(T),T.on("dragstart",D=>{D.cancelBubble=!0}),T.on("dragmove",D=>{D.cancelBubble=!0}),T.on("dragend",D=>{D.cancelBubble=!0}),this.on("dragmove",D=>{this.update()})}_handleMouseDown(T){this._movingAnchorName=T.target.name().split(" ")[0];var D=this._getNodeRect(),A=D.width,B=D.height,Z=Math.sqrt(Math.pow(A,2)+Math.pow(B,2));this.sin=Math.abs(B/Z),this.cos=Math.abs(A/Z),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;var S=T.target.getAbsolutePosition(),I=T.target.getStage().getPointerPosition();this._anchorDragOffset={x:I.x-S.x,y:I.y-S.y},k++,this._fire("transformstart",{evt:T.evt,target:this.getNode()}),this._nodes.forEach(N=>{N._fire("transformstart",{evt:T.evt,target:N})})}_handleMouseMove(T){var D,A,B,Z=this.findOne("."+this._movingAnchorName),S=Z.getStage();S.setPointersPositions(T);const I=S.getPointerPosition();let N={x:I.x-this._anchorDragOffset.x,y:I.y-this._anchorDragOffset.y};const z=Z.getAbsolutePosition();this.anchorDragBoundFunc()&&(N=this.anchorDragBoundFunc()(z,N,T)),Z.setAbsolutePosition(N);const W=Z.getAbsolutePosition();if(!(z.x===W.x&&z.y===W.y)){if(this._movingAnchorName==="rotater"){var Q=this._getNodeRect();D=Z.x()-Q.width/2,A=-Z.y()+Q.height/2;let qt=Math.atan2(-A,D)+Math.PI/2;Q.height<0&&(qt-=Math.PI);var tt=c.Konva.getAngle(this.rotation());const Bt=tt+qt,ee=c.Konva.getAngle(this.rotationSnapTolerance()),Kt=_(this.rotationSnaps(),Bt,ee)-Q.rotation,Yt=m(Q,Kt);this._fitNodesInto(Yt,T);return}var at=this.shiftBehavior(),X;at==="inverted"?X=this.keepRatio()&&!T.shiftKey:at==="none"?X=this.keepRatio():X=this.keepRatio()||T.shiftKey;var it=this.centeredScaling()||T.altKey;if(this._movingAnchorName==="top-left"){if(X){var q=it?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};B=Math.sqrt(Math.pow(q.x-Z.x(),2)+Math.pow(q.y-Z.y(),2));var rt=this.findOne(".top-left").x()>q.x?-1:1,ot=this.findOne(".top-left").y()>q.y?-1:1;D=B*this.cos*rt,A=B*this.sin*ot,this.findOne(".top-left").x(q.x-D),this.findOne(".top-left").y(q.y-A)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(Z.y());else if(this._movingAnchorName==="top-right"){if(X){var q=it?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};B=Math.sqrt(Math.pow(Z.x()-q.x,2)+Math.pow(q.y-Z.y(),2));var rt=this.findOne(".top-right").x()<q.x?-1:1,ot=this.findOne(".top-right").y()>q.y?-1:1;D=B*this.cos*rt,A=B*this.sin*ot,this.findOne(".top-right").x(q.x+D),this.findOne(".top-right").y(q.y-A)}var ft=Z.position();this.findOne(".top-left").y(ft.y),this.findOne(".bottom-right").x(ft.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(Z.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(Z.x());else if(this._movingAnchorName==="bottom-left"){if(X){var q=it?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};B=Math.sqrt(Math.pow(q.x-Z.x(),2)+Math.pow(Z.y()-q.y,2));var rt=q.x<Z.x()?-1:1,ot=Z.y()<q.y?-1:1;D=B*this.cos*rt,A=B*this.sin*ot,Z.x(q.x-D),Z.y(q.y+A)}ft=Z.position(),this.findOne(".top-left").x(ft.x),this.findOne(".bottom-right").y(ft.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(Z.y());else if(this._movingAnchorName==="bottom-right"){if(X){var q=it?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};B=Math.sqrt(Math.pow(Z.x()-q.x,2)+Math.pow(Z.y()-q.y,2));var rt=this.findOne(".bottom-right").x()<q.x?-1:1,ot=this.findOne(".bottom-right").y()<q.y?-1:1;D=B*this.cos*rt,A=B*this.sin*ot,this.findOne(".bottom-right").x(q.x+D),this.findOne(".bottom-right").y(q.y+A)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var it=this.centeredScaling()||T.altKey;if(it){var Y=this.findOne(".top-left"),J=this.findOne(".bottom-right"),lt=Y.x(),dt=Y.y(),yt=this.getWidth()-J.x(),gt=this.getHeight()-J.y();J.move({x:-lt,y:-dt}),Y.move({x:yt,y:gt})}var Dt=this.findOne(".top-left").getAbsolutePosition();D=Dt.x,A=Dt.y;var Ht=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),It=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:D,y:A,width:Ht,height:It,rotation:c.Konva.getAngle(this.rotation())},T)}}_handleMouseUp(T){this._removeEvents(T)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(T){var D;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));var A=this.getNode();k--,this._fire("transformend",{evt:T,target:A}),(D=this.getLayer())===null||D===void 0||D.batchDraw(),A&&this._nodes.forEac
32h(B=>{var Z;B._fire("transformend",{evt:T,target:B}),(Z=B.getLayer())===null||Z===void 0||Z.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(T,D){var A=this._getNodeRect();const B=1;if(t.Util._inRange(T.width,-this.padding()*2-B,B)){this.update();return}if(t.Util._inRange(T.height,-this.padding()*2-B,B)){this.update();return}var Z=new t.Transform;if(Z.rotate(c.Konva.getAngle(this.rotation())),this._movingAnchorName&&T.width<0&&this._movingAnchorName.indexOf("left")>=0){const tt=Z.point({x:-this.padding()*2,y:0});T.x+=tt.x,T.y+=tt.y,T.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=tt.x,this._anchorDragOffset.y-=tt.y}else if(this._movingAnchorName&&T.width<0&&this._movingAnchorName.indexOf("right")>=0){const tt=Z.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=tt.x,this._anchorDragOffset.y-=tt.y,T.width+=this.padding()*2}if(this._movingAnchorName&&T.height<0&&this._movingAnchorName.indexOf("top")>=0){const tt=Z.point({x:0,y:-this.padding()*2});T.x+=tt.x,T.y+=tt.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=tt.x,this._anchorDragOffset.y-=tt.y,T.height+=this.padding()*2}else if(this._movingAnchorName&&T.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const tt=Z.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=tt.x,this._anchorDragOffset.y-=tt.y,T.height+=this.padding()*2}if(this.boundBoxFunc()){const tt=this.boundBoxFunc()(A,T);tt?T=tt:t.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const S=1e7,I=new t.Transform;I.translate(A.x,A.y),I.rotate(A.rotation),I.scale(A.width/S,A.height/S);const N=new t.Transform,z=T.width/S,W=T.height/S;this.flipEnabled()===!1?(N.translate(T.x,T.y),N.rotate(T.rotation),N.translate(T.width<0?T.width:0,T.height<0?T.height:0),N.scale(Math.abs(z),Math.abs(W))):(N.translate(T.x,T.y),N.rotate(T.rotation),N.scale(z,W));const Q=N.multiply(I.invert());this._nodes.forEach(tt=>{var at;const X=tt.getParent().getAbsoluteTransform(),q=tt.getTransform().copy();q.translate(tt.offsetX(),tt.offsetY());const rt=new t.Transform;rt.multiply(X.copy().invert()).multiply(Q).multiply(X).multiply(q);const ot=rt.decompose();tt.setAttrs(ot),(at=tt.getLayer())===null||at===void 0||at.batchDraw()}),this.rotation(t.Util._getRotation(T.rotation)),this._nodes.forEach(tt=>{this._fire("transform",{evt:D,target:tt}),tt._fire("transform",{evt:D,target:tt})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(T,D){this.findOne(T).setAttrs(D)}update(){var T,D=this._getNodeRect();this.rotation(t.Util._getRotation(D.rotation));var A=D.width,B=D.height,Z=this.enabledAnchors(),S=this.resizeEnabled(),I=this.padding(),N=this.anchorSize();const z=this.find("._anchor");z.forEach(Q=>{Q.setAttrs({width:N,height:N,offsetX:N/2,offsetY:N/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:N/2+I,offsetY:N/2+I,visible:S&&Z.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:A/2,y:0,offsetY:N/2+I,visible:S&&Z.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:A,y:0,offsetX:N/2-I,offsetY:N/2+I,visible:S&&Z.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:B/2,offsetX:N/2+I,visible:S&&Z.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:A,y:B/2,offsetX:N/2-I,visible:S&&Z.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:B,offsetX:N/2+I,offsetY:N/2-I,visible:S&&Z.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:A/2,y:B,offsetY:N/2-I,visible:S&&Z.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:A,y:B,offsetX:N/2-I,offsetY:N/2-I,visible:S&&Z.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:A/2,y:-this.rotateAnchorOffset()*t.Util._sign(B)-I,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:A,height:B,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const W=this.anchorStyleFunc();W&&z.forEach(Q=>{W(Q)}),(T=this.getLayer())===null||T===void 0||T.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var T=this.findOne("."+this._movingAnchorName);
32T&&T.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),o.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return n.Node.prototype.toObject.call(this)}clone(T){var D=n.Node.prototype.clone.call(this,T);return D}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};A0.Transformer=R,R.isTransforming=()=>k>0;function G(T){return T instanceof Array||t.Util.warn("enabledAnchors value should be an array"),T instanceof Array&&T.forEach(function(D){E.indexOf(D)===-1&&t.Util.warn("Unknown anchor name: "+D+". Available names are: "+E.join(", "))}),T||[]}return R.prototype.className="Transformer",(0,f._registerNode)(R),e.Factory.addGetterSetter(R,"enabledAnchors",E,G),e.Factory.addGetterSetter(R,"flipEnabled",!0,(0,d.getBooleanValidator)()),e.Factory.addGetterSetter(R,"resizeEnabled",!0),e.Factory.addGetterSetter(R,"anchorSize",10,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"rotateEnabled",!0),e.Factory.addGetterSetter(R,"rotateLineVisible",!0),e.Factory.addGetterSetter(R,"rotationSnaps",[]),e.Factory.addGetterSetter(R,"rotateAnchorOffset",50,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"rotateAnchorCursor","crosshair"),e.Factory.addGetterSetter(R,"rotationSnapTolerance",5,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"borderEnabled",!0),e.Factory.addGetterSetter(R,"anchorStroke","rgb(0, 161, 255)"),e.Factory.addGetterSetter(R,"anchorStrokeWidth",1,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"anchorFill","white"),e.Factory.addGetterSetter(R,"anchorCornerRadius",0,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"borderStroke","rgb(0, 161, 255)"),e.Factory.addGetterSetter(R,"borderStrokeWidth",1,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"borderDash"),e.Factory.addGetterSetter(R,"keepRatio",!0),e.Factory.addGetterSetter(R,"shiftBehavior","default"),e.Factory.addGetterSetter(R,"centeredScaling",!1),e.Factory.addGetterSetter(R,"ignoreStroke",!1),e.Factory.addGetterSetter(R,"padding",0,(0,d.getNumberValidator)()),e.Factory.addGetterSetter(R,"node"),e.Factory.addGetterSetter(R,"nodes"),e.Factory.addGetterSetter(R,"boundBoxFunc"),e.Factory.addGetterSetter(R,"anchorDragBoundFunc"),e.Factory.addGetterSetter(R,"anchorStyleFunc"),e.Factory.addGetterSetter(R,"shouldOverdrawWholeArea",!1),e.Factory.addGetterSetter(R,"useSingleNodeRotation",!0),e.Factory.backCompat(R,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledH
32andlers:"enabledAnchors"}),A0}var I0={},T6;function XE(){if(T6)return I0;T6=1,Object.defineProperty(I0,"__esModule",{value:!0}),I0.Wedge=void 0;const t=ze(),e=Gr(),n=$e(),r=Ze(),s=$e();let o=class extends e.Shape{_sceneFunc(c){c.beginPath(),c.arc(0,0,this.radius(),0,n.Konva.getAngle(this.angle()),this.clockwise()),c.lineTo(0,0),c.closePath(),c.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(c){this.radius(c/2)}setHeight(c){this.radius(c/2)}};return I0.Wedge=o,o.prototype.className="Wedge",o.prototype._centroid=!0,o.prototype._attrsAffectingSize=["radius"],(0,s._registerNode)(o),t.Factory.addGetterSetter(o,"radius",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"angle",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(o,"clockwise",!1),t.Factory.backCompat(o,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),I0}var N0={},A6;function qE(){if(A6)return N0;A6=1,Object.defineProperty(N0,"__esModule",{value:!0}),N0.Blur=void 0;const t=ze(),e=dr(),n=Ze();function r(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var s=[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,39
326,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],o=[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 c(f,g){var v=f.data,x=f.width,C=f.height,y,h,w,E,M,b,m,_,k,R,G,T,D,A,B,Z,S,I,N,z,W,Q,tt,at,X=g+g+1,q=x-1,rt=C-1,ot=g+1,ft=ot*(ot+1)/2,it=new r,Y=null,J=it,lt=null,dt=null,yt=s[g],gt=o[g];for(w=1;w<X;w++)J=J.next=new r,w===ot&&(Y=J);for(J.next=it,m=b=0,h=0;h<C;h++){for(Z=S=I=N=_=k=R=G=0,T=ot*(z=v[b]),D=ot*(W=v[b+1]),A=ot*(Q=v[b+2]),B=ot*(tt=v[b+3]),_+=ft*z,k+=ft*W,R+=ft*Q,G+=ft*tt,J=it,w=0;w<ot;w++)J.r=z,J.g=W,J.b=Q,J.a=tt,J=J.next;for(w=1;w<ot;w++)E=b+((q<w?q:w)<<2),_+=(J.r=z=v[E])*(at=ot-w),k+=(J.g=W=v[E+1])*at,R+=(J.b=Q=v[E+2])*at,G+=(J.a=tt=v[E+3])*at,Z+=z,S+=W,I+=Q,N+=tt,J=J.next;for(lt=it,dt=Y,y=0;y<x;y++)v[b+3]=tt=G*yt>>gt,tt!==0?(tt=255/tt,v[b]=(_*yt>>gt)*tt,v[b+1]=(k*yt>>gt)*tt,v[b+2]=(R*yt>>gt)*tt):v[b]=v[b+1]=v[b+2]=0,_-=T,k-=D,R-=A,G-=B,T-=lt.r,D-=lt.g,A-=lt.b,B-=lt.a,E=m+((E=y+g+1)<q?E:q)<<2,Z+=lt.r=v[E],S+=lt.g=v[E+1],I+=lt.b=v[E+2],N+=lt.a=v[E+3],_+=Z,k+=S,R+=I,G+=N,lt=lt.next,T+=z=dt.r,D+=W=dt.g,A+=Q=dt.b,B+=tt=dt.a,Z-=z,S-=W,I-=Q,N-=tt,dt=dt.next,b+=4;m+=x}for(y=0;y<x;y++){for(S=I=N=Z=k=R=G=_=0,b=y<<2,T=ot*(z=v[b]),D=ot*(W=v[b+1]),A=ot*(Q=v[b+2]),B=ot*(tt=v[b+3]),_+=ft*z,k+=ft*W,R+=ft*Q,G+=ft*tt,J=it,w=0;w<ot;w++)J.r=z,J.g=W,J.b=Q,J.a=tt,J=J.next;for(M=x,w=1;w<=g;w++)b=M+y<<2,_+=(J.r=z=v[b])*(at=ot-w),k+=(J.g=W=v[b+1])*at,R+=(J.b=Q=v[b+2])*at,G+=(J.a=tt=v[b+3])*at,Z+=z,S+=W,I+=Q,N+=tt,J=J.next,w<rt&&(M+=x);for(b=y,lt=it,dt=Y,h=0;h<C;h++)E=b<<2,v[E+3]=tt=G*yt>>gt,tt>0?(tt=255/tt,v[E]=(_*yt>>gt)*tt,v[E+1]=(k*yt>>gt)*tt,v[E+2]=(R*yt>>gt)*tt):v[E]=v[E+1]=v[E+2]=0,_-=T,k-=D,R-=A,G-=B,T-=lt.r,D-=lt.g,A-=lt.b,B-=lt.a,E=y+((E=h+ot)<rt?E:rt)*x<<2,_+=Z+=lt.r=v[E],k+=S+=lt.g=v[E+1],R+=I+=lt.b=v[E+2],G+=N+=lt.a=v[E+3],lt=lt.next,T+=z=dt.r,D+=W=dt.g,A+=Q=dt.b,B+=tt=dt.a,Z-=z,S-=W,I-=Q,N-=tt,dt=dt.next,b+=x}}const d=function(f){var g=Math.round(this.blurRadius());g>0&&c(f,g)};return N0.Blur=d,t.Factory.addGetterSetter(e.Node,"blurRadius",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),N0}var R0={},I6;function QE(){if(I6)return R0;I6=1,Object.defineProperty(R0,"__esModule",{value:!0}),R0.Brighten=void 0;const t=ze(),e=dr(),n=Ze(),r=function(s){var o=this.brightness()*255,c=s.data,d=c.length,f;for(f=0;f<d;f+=4)c[f]+=o,c[f+1]+=o,c[f+2]+=o};return R0.Brighten=r,t.Factory.addGetterSetter(e.Node,"brightness",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),R0}var F0={},N6;function JE(){if(N6)return F0;N6=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.Contrast=void 0;const t=ze(),e=dr(),n=Ze(),r=function(s){var o=Math.pow((this.contrast()+100)/100,2),c=s.data,d=c.length,f=150,g=150,v=150,x;for(x=0;x<d;x+=4)f=c[x],g=c[x+1],v=c[x+2],f/=255,f-=.5,f*=o,f+=.5,f*=255,g/=255,g-=.5,g*=o,g+=.5,g*=255,v/=255,v-=.5,v*=o,v+=.5,v*=255,f=f<0?0:f>255?255:f,g=g<0?0:g>255?255:g,v=v<0?0:v>255?255:v,c[x]=f,c[x+1]=g,c[x+2]=v};return F0.Contrast=r,t.Factory.addGetterSetter(e.Node,"contrast",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),F0}var D0={},R6;function tO(){if(R6)return D0;R6=1,Object.defineProperty(D0,"__esModule",{value:!0}),D0.Emboss=void 0;const t=ze(),e=dr(),n=rr(),r=Ze(),s=function(o){var c=this.embossStrength()*10,d=this.embossWhiteLevel()*255,f=this.embossDirection(),g=this.embossBlend(),v=0,x=0,C=o.data,y=o.width,h=o.height,w=y*4,E=h;switch(f){case"top-left":v=-1,x=-1;break;case"top":v=-1,x=0;break;case"top-right":v=-1,x=1;break;case"right":v=0,x=1;break;case"bottom-right":v=1,x=1;break;case"bottom":v=1,x=0;break;case"bottom-left":v=1,x=-1;break;case"left":v=0,x=-1;break;default:n.Util.error("Unknown emboss direction: "+f)}do{var M=(E-1)*w,b=v;E+b<1&&(b=0),E+b>h&&(b=0);var m=(E-1+b)*y*4,_=y;do{var k=M+(_-1)*4,R=x;_+R<1&&(R=0),_+R>
32y&&(R=0);var G=m+(_-1+R)*4,T=C[k]-C[G],D=C[k+1]-C[G+1],A=C[k+2]-C[G+2],B=T,Z=B>0?B:-B,S=D>0?D:-D,I=A>0?A:-A;if(S>Z&&(B=D),I>Z&&(B=A),B*=c,g){var N=C[k]+B,z=C[k+1]+B,W=C[k+2]+B;C[k]=N>255?255:N<0?0:N,C[k+1]=z>255?255:z<0?0:z,C[k+2]=W>255?255:W<0?0:W}else{var Q=d-B;Q<0?Q=0:Q>255&&(Q=255),C[k]=C[k+1]=C[k+2]=Q}}while(--_)}while(--E)};return D0.Emboss=s,t.Factory.addGetterSetter(e.Node,"embossStrength",.5,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"embossWhiteLevel",.5,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"embossDirection","top-left",null,t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"embossBlend",!1,null,t.Factory.afterSetFilter),D0}var j0={},F6;function eO(){if(F6)return j0;F6=1,Object.defineProperty(j0,"__esModule",{value:!0}),j0.Enhance=void 0;const t=ze(),e=dr(),n=Ze();function r(o,c,d,f,g){var v=d-c,x=g-f,C;return v===0?f+x/2:x===0?f:(C=(o-c)/v,C=x*C+f,C)}const s=function(o){var c=o.data,d=c.length,f=c[0],g=f,v,x=c[1],C=x,y,h=c[2],w=h,E,M,b=this.enhance();if(b!==0){for(M=0;M<d;M+=4)v=c[M+0],v<f?f=v:v>g&&(g=v),y=c[M+1],y<x?x=y:y>C&&(C=y),E=c[M+2],E<h?h=E:E>w&&(w=E);g===f&&(g=255,f=0),C===x&&(C=255,x=0),w===h&&(w=255,h=0);var m,_,k,R,G,T,D,A,B;for(b>0?(_=g+b*(255-g),k=f-b*(f-0),G=C+b*(255-C),T=x-b*(x-0),A=w+b*(255-w),B=h-b*(h-0)):(m=(g+f)*.5,_=g+b*(g-m),k=f+b*(f-m),R=(C+x)*.5,G=C+b*(C-R),T=x+b*(x-R),D=(w+h)*.5,A=w+b*(w-D),B=h+b*(h-D)),M=0;M<d;M+=4)c[M+0]=r(c[M+0],f,g,k,_),c[M+1]=r(c[M+1],x,C,T,G),c[M+2]=r(c[M+2],h,w,B,A)}};return j0.Enhance=s,t.Factory.addGetterSetter(e.Node,"enhance",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),j0}var B0={},D6;function nO(){if(D6)return B0;D6=1,Object.defineProperty(B0,"__esModule",{value:!0}),B0.Grayscale=void 0;const t=function(e){var n=e.data,r=n.length,s,o;for(s=0;s<r;s+=4)o=.34*n[s]+.5*n[s+1]+.16*n[s+2],n[s]=o,n[s+1]=o,n[s+2]=o};return B0.Grayscale=t,B0}var H0={},j6;function rO(){if(j6)return H0;j6=1,Object.defineProperty(H0,"__esModule",{value:!0}),H0.HSL=void 0;const t=ze(),e=dr(),n=Ze();t.Factory.addGetterSetter(e.Node,"hue",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"saturation",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"luminance",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter);const r=function(s){var o=s.data,c=o.length,d=1,f=Math.pow(2,this.saturation()),g=Math.abs(this.hue()+360)%360,v=this.luminance()*127,x,C=d*f*Math.cos(g*Math.PI/180),y=d*f*Math.sin(g*Math.PI/180),h=.299*d+.701*C+.167*y,w=.587*d-.587*C+.33*y,E=.114*d-.114*C-.497*y,M=.299*d-.299*C-.328*y,b=.587*d+.413*C+.035*y,m=.114*d-.114*C+.293*y,_=.299*d-.3*C+1.25*y,k=.587*d-.586*C-1.05*y,R=.114*d+.886*C-.2*y,G,T,D,A;for(x=0;x<c;x+=4)G=o[x+0],T=o[x+1],D=o[x+2],A=o[x+3],o[x+0]=h*G+w*T+E*D+v,o[x+1]=M*G+b*T+m*D+v,o[x+2]=_*G+k*T+R*D+v,o[x+3]=A};return H0.HSL=r,H0}var z0={},B6;function aO(){if(B6)return z0;B6=1,Object.defineProperty(z0,"__esModule",{value:!0}),z0.HSV=void 0;const t=ze(),e=dr(),n=Ze(),r=function(s){var o=s.data,c=o.length,d=Math.pow(2,this.value()),f=Math.pow(2,this.saturation()),g=Math.abs(this.hue()+360)%360,v,x=d*f*Math.cos(g*Math.PI/180),C=d*f*Math.sin(g*Math.PI/180),y=.299*d+.701*x+.167*C,h=.587*d-.587*x+.33*C,w=.114*d-.114*x-.497*C,E=.299*d-.299*x-.328*C,M=.587*d+.413*x+.035*C,b=.114*d-.114*x+.293*C,m=.299*d-.3*x+1.25*C,_=.587*d-.586*x-1.05*C,k=.114*d+.886*x-.2*C,R,G,T,D;for(v=0;v<c;v+=4)R=o[v+0],G=o[v+1],T=o[v+2],D=o[v+3],o[v+0]=y*R+h*G+w*T,o[v+1]=E*R+M*G+b*T,o[v+2]=m*R+_*G+k*T,o[v+3]=D};return z0.HSV=r,t.Factory.addGetterSetter(e.Node,"hue",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"saturation",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"value",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),z0}var G0={},H6;function iO(){if(H6)return G0;H6=1,Object.defineProperty(G0,"__esModule",{value:!0}),G0.Invert=void 0;const t=function(e){var n=e.data,r=n.length,s;for(s=0;s<r;s+=4)n[s]=255-n[s],n[s+1]=255-n[s+1],n[s+2]=255-n[s+2]};return G0.Invert=t,G0}var U0={},z6;function oO(){if(z6)return U0;z6=1,Object.defineProperty(U0,"__esModule",{value:!0}),U0.Kaleidoscope=void 0;const t=ze(),e=dr(),n=rr(),r=Ze();var s=function(d,f,g){var v=d.data,x=f.data,C=d.width,y=d.height,h=g.polarCenterX||C/2,w=g.polarCenterY||y/2,E,M,b,m=0,_=0,k=0,R=0,G,T=Math.sqrt(h*h+w*w);M=C-h,b=y-w,G=Math.sqrt(M*M+b*b),T=G>T?G:T;var D=y,A=C,B,Z,S=360/A*Math.PI/180,I,N;for(Z=0;Z<A;Z+=1)for(I=Math.sin(Z*S),N=Math.cos(Z*S),B=0;B<D;B+=1)M=Math.floor(h+T*B/D*N),b=Math.floor(w+T*B/D*I),E=(b*C+M)*4,m=v[E+0],_=v[E+1],k=v[E+2],R=v[E+3],E=(Z+B*C)*4,x[E+0]=m,x[E+1]=_,x[E+2]=k,x[E+3]=R},o=function(d,f,g){var v=d.data,x=f.data,C=d.width,y=d.height,h=g.polarCenterX||C/2,w=g.polarCenterY||y/2,E,M,b,m,_,k=0,R=0,G=0,T=0,D,A=Math.sqrt(h*h+w*w);M=C-h,b=y-w,D=Math.sqrt(M*M+b*b),A=D>A?D:A;var B=y,Z=C,S,I,N=0,z,W;for(M=0;M<C;M+=1)for(b=0;b<y;b+=1)m=M-h,_=b-w,S=Math.sqrt(m*m+_*_)*B/A,I=(Math.atan2(_,m)*180/Math.PI+360+N)%360,I=I*Z/360,z=Math.floor(I),W=Math.floor(S),E=(W*C+z)*4,k=v[E+0],R=v[E+1],G=v[E+2],T=v[E+3],E=(b*C+M)*4,x[E+0]=k,x[E+1]=R,x[E+2]=G,x[E+3]=T};const c=function(d){var f=d.width,g=d.height,v,x,C,y,h,w,E,M,b,m,_=Math.round(this.kaleidoscopePower()),k=Math.round(this.kaleidoscopeAngle()),R=Math.floor(f*(k%360)/360);if(!(_<1)){var G=n.Util.createCanvasElement();G.width=f,G.height=g;var T=G.getContext("2d").getImageData(0,0,f,g);n.Util.releaseCanvas(G),s(d,T,{polarCenterX:f/2,polarCenterY:g/2});for(var D=f/Math.pow(2,_);D<=8;)D=D*2,_-=1;D=Math.ceil(D);var A=D,B=0,Z=A,S=1;for(R+D>f&&(B=A,Z=0,S=-1),x=0;x<g;x+=1)for(v=B;v!==Z;v+=S)C=Math.round(v+R)%f,b=(f*x+C)*4,h=T.data[b+0],w=T.data[b+1],E=T.data[b+2],M=T.data[b+3],m=(f*x+v)*4,T.data[m+0]=h,T.data[m+1]=w,T.data[m+2]=E,T.data[m+3]=M;for(x=0;x<g;x+=1)for(A=Math.floor(D),y=0;y<_;y+=1){for(v=0;v<A+1;v+=1)b=(f*x+v)*4,h=T.data[b+0],w=T.data[b+1],E=T.data[b+2],M=T.data[b+3],m=(f*x+A*2-v-1)*4,T.data[m+0]=h,T.data[m+1]=w,T.data[m+2]=E,T.data[m+3]=M;A*=2}o(T,d,{})}};return U0.Kaleidoscope=c,t.Factory.addGetterSetter(e.Node,"kaleidoscopePower",2,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"kaleidoscopeAngle",0,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),U0}var W0={},G6;function sO(){if(G6)return W0;G6=1,Object.defineProperty(W0,"__esModule",{value:!0}),W0.Mask=void 0;const t=ze(),e=dr(),n=Ze();function r(C,y,h){var w=(h*C.width+y)*4,E=[];return E.push(C.data[w++],C.data[w++],C.data[w++],C.data[w++]),E}function s(C,y){return Math.sqrt(Math.pow(C[0]-y[0],2)+Math.pow(C[1]-y[1],2)+Math.pow(C[2]-y[2],2))}function o(C){for(var y=[0,0,0],h=0;h<C.length;
32h++)y[0]+=C[h][0],y[1]+=C[h][1],y[2]+=C[h][2];return y[0]/=C.length,y[1]/=C.length,y[2]/=C.length,y}function c(C,y){var h=r(C,0,0),w=r(C,C.width-1,0),E=r(C,0,C.height-1),M=r(C,C.width-1,C.height-1),b=y||10;if(s(h,w)<b&&s(w,M)<b&&s(M,E)<b&&s(E,h)<b){for(var m=o([w,h,M,E]),_=[],k=0;k<C.width*C.height;k++){var R=s(m,[C.data[k*4],C.data[k*4+1],C.data[k*4+2]]);_[k]=R<b?0:255}return _}}function d(C,y){for(var h=0;h<C.width*C.height;h++)C.data[4*h+3]=y[h]}function f(C,y,h){for(var w=[1,1,1,1,0,1,1,1,1],E=Math.round(Math.sqrt(w.length)),M=Math.floor(E/2),b=[],m=0;m<h;m++)for(var _=0;_<y;_++){for(var k=m*y+_,R=0,G=0;G<E;G++)for(var T=0;T<E;T++){var D=m+G-M,A=_+T-M;if(D>=0&&D<h&&A>=0&&A<y){var B=D*y+A,Z=w[G*E+T];R+=C[B]*Z}}b[k]=R===2040?255:0}return b}function g(C,y,h){for(var w=[1,1,1,1,1,1,1,1,1],E=Math.round(Math.sqrt(w.length)),M=Math.floor(E/2),b=[],m=0;m<h;m++)for(var _=0;_<y;_++){for(var k=m*y+_,R=0,G=0;G<E;G++)for(var T=0;T<E;T++){var D=m+G-M,A=_+T-M;if(D>=0&&D<h&&A>=0&&A<y){var B=D*y+A,Z=w[G*E+T];R+=C[B]*Z}}b[k]=R>=1020?255:0}return b}function v(C,y,h){for(var w=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],E=Math.round(Math.sqrt(w.length)),M=Math.floor(E/2),b=[],m=0;m<h;m++)for(var _=0;_<y;_++){for(var k=m*y+_,R=0,G=0;G<E;G++)for(var T=0;T<E;T++){var D=m+G-M,A=_+T-M;if(D>=0&&D<h&&A>=0&&A<y){var B=D*y+A,Z=w[G*E+T];R+=C[B]*Z}}b[k]=R}return b}const x=function(C){var y=this.threshold(),h=c(C,y);return h&&(h=f(h,C.width,C.height),h=g(h,C.width,C.height),h=v(h,C.width,C.height),d(C,h)),C};return W0.Mask=x,t.Factory.addGetterSetter(e.Node,"threshold",0,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),W0}var V0={},U6;function lO(){if(U6)return V0;U6=1,Object.defineProperty(V0,"__esModule",{value:!0}),V0.Noise=void 0;const t=ze(),e=dr(),n=Ze(),r=function(s){var o=this.noise()*255,c=s.data,d=c.length,f=o/2,g;for(g=0;g<d;g+=4)c[g+0]+=f-2*f*Math.random(),c[g+1]+=f-2*f*Math.random(),c[g+2]+=f-2*f*Math.random()};return V0.Noise=r,t.Factory.addGetterSetter(e.Node,"noise",.2,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),V0}var Y0={},W6;function cO(){if(W6)return Y0;W6=1,Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.Pixelate=void 0;const t=ze(),e=rr(),n=dr(),r=Ze(),s=function(o){var c=Math.ceil(this.pixelSize()),d=o.width,f=o.height,g,v,x,C,y,h,w,E=Math.ceil(d/c),M=Math.ceil(f/c),b,m,_,k,R,G,T,D=o.data;if(c<=0){e.Util.error("pixelSize value can not be <= 0");return}for(R=0;R<E;R+=1)for(G=0;G<M;G+=1){for(C=0,y=0,h=0,w=0,b=R*c,m=b+c,_=G*c,k=_+c,T=0,g=b;g<m;g+=1)if(!(g>=d))for(v=_;v<k;v+=1)v>=f||(x=(d*v+g)*4,C+=D[x+0],y+=D[x+1],h+=D[x+2],w+=D[x+3],T+=1);for(C=C/T,y=y/T,h=h/T,w=w/T,g=b;g<m;g+=1)if(!(g>=d))for(v=_;v<k;v+=1)v>=f||(x=(d*v+g)*4,D[x+0]=C,D[x+1]=y,D[x+2]=h,D[x+3]=w)}};return Y0.Pixelate=s,t.Factory.addGetterSetter(n.Node,"pixelSize",8,(0,r.getNumberValidator)(),t.Factory.afterSetFilter),Y0}var Z0={},V6;function uO(){if(V6)return Z0;V6=1,Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.Posterize=void 0;const t=ze(),e=dr(),n=Ze(),r=function(s){var o=Math.round(this.levels()*254)+1,c=s.data,d=c.length,f=255/o,g;for(g=0;g<d;g+=1)c[g]=Math.floor(c[g]/f)*f};return Z0.Posterize=r,t.Factory.addGetterSetter(e.Node,"levels",.5,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),Z0}var K0={},Y6;function dO(){if(Y6)return K0;Y6=1,Object.defineProperty(K0,"__esModule",{value:!0}),K0.RGB=void 0;const t=ze(),e=dr(),n=Ze(),r=function(s){var o=s.data,c=o.length,d=this.red(),f=this.green(),g=this.blue(),v,x;for(v=0;v<c;v+=4)x=(.34*o[v]+.5*o[v+1]+.16*o[v+2])/255,o[v]=x*d,o[v+1]=x*f,o[v+2]=x*g,o[v+3]=o[v+3]};return K0.RGB=r,t.Factory.addGetterSetter(e.Node,"red",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)}),t.Factory.addGetterSetter(e.Node,"green",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)}),t.Factory.addGetterSetter(e.Node,"blue",0,n.RGBComponent,t.Factory.afterSetFilter),K0}var $0={},Z6;function hO(){if(Z6)return $0;Z6=1,Object.defineProperty($0,"__esModule",{value:!0}),$0.RGBA=void 0;const t=ze(),e=dr(),n=Ze(),r=function(s){var o=s.data,c=o.length,d=this.red(),f=this.green(),g=this.blue(),v=this.alpha(),x,C;for(x=0;x<c;x+=4)C=1-v,o[x]=d*v+o[x]*C,o[x+1]=f*v+o[x+1]*C,o[x+2]=g*v+o[x+2]*C};return $0.RGBA=r,t.Factory.addGetterSetter(e.Node,"red",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)}),t.Factory.addGetterSetter(e.Node,"green",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)}),t.Factory.addGetterSetter(e.Node,"blue",0,n.RGBComponent,t.Factory.afterSetFilter),t.Factory.addGetterSetter(e.Node,"alpha",1,function(s){return this._filterUpToDate=!1,s>1?1:s<0?0:s}),$0}var X0={},K6;function fO(){if(K6)return X0;K6=1,Object.defineProperty(X0,"__esModule",{value:!0}),X0.Sepia=void 0;const t=function(e){var n=e.data,r=n.length,s,o,c,d;for(s=0;s<r;s+=4)o=n[s+0],c=n[s+1],d=n[s+2],n[s+0]=Math.min(255,o*.393+c*.769+d*.189),n[s+1]=Math.min(255,o*.349+c*.686+d*.168),n[s+2]=Math.min(255,o*.272+c*.534+d*.131)};return X0.Sepia=t,X0}var q0={},$6;function pO(){if($6)return q0;$6=1,Object.defineProperty(q0,"__esModule",{value:!0}),q0.Solarize=void 0;
32const t=function(e){var n=e.data,r=e.width,s=e.height,o=r*4,c=s;do{var d=(c-1)*o,f=r;do{var g=d+(f-1)*4,v=n[g],x=n[g+1],C=n[g+2];v>127&&(v=255-v),x>127&&(x=255-x),C>127&&(C=255-C),n[g]=v,n[g+1]=x,n[g+2]=C}while(--f)}while(--c)};return q0.Solarize=t,q0}var Q0={},X6;function gO(){if(X6)return Q0;X6=1,Object.defineProperty(Q0,"__esModule",{value:!0}),Q0.Threshold=void 0;const t=ze(),e=dr(),n=Ze(),r=function(s){var o=this.threshold()*255,c=s.data,d=c.length,f;for(f=0;f<d;f+=1)c[f]=c[f]<o?0:255};return Q0.Threshold=r,t.Factory.addGetterSetter(e.Node,"threshold",.5,(0,n.getNumberValidator)(),t.Factory.afterSetFilter),Q0}var q6;function mO(){if(q6)return h0;q6=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.Konva=void 0;const t=FE(),e=DE(),n=BE(),r=HE(),s=zE(),o=GE(),c=UE(),d=lb(),f=xm(),g=cb(),v=WE(),x=VE(),C=YE(),y=ZE(),h=ub(),w=KE(),E=$E(),M=XE(),b=qE(),m=QE(),_=JE(),k=tO(),R=eO(),G=nO(),T=rO(),D=aO(),A=iO(),B=oO(),Z=sO(),S=lO(),I=cO(),N=uO(),z=dO(),W=hO(),Q=fO(),tt=pO(),at=gO();return h0.Konva=t.Konva.Util._assign(t.Konva,{Arc:e.Arc,Arrow:n.Arrow,Circle:r.Circle,Ellipse:s.Ellipse,Image:o.Image,Label:c.Label,Tag:c.Tag,Line:d.Line,Path:f.Path,Rect:g.Rect,RegularPolygon:v.RegularPolygon,Ring:x.Ring,Sprite:C.Sprite,Star:y.Star,Text:h.Text,TextPath:w.TextPath,Transformer:E.Transformer,Wedge:M.Wedge,Filters:{Blur:b.Blur,Brighten:m.Brighten,Contrast:_.Contrast,Emboss:k.Emboss,Enhance:R.Enhance,Grayscale:G.Grayscale,HSL:T.HSL,HSV:D.HSV,Invert:A.Invert,Kaleidoscope:B.Kaleidoscope,Mask:Z.Mask,Noise:S.Noise,Pixelate:I.Pixelate,Posterize:N.Posterize,RGB:z.RGB,RGBA:W.RGBA,Sepia:Q.Sepia,Solarize:tt.Solarize,Threshold:at.Threshold}}),h0}var vO=np.exports,Q6;function yO(){if(Q6)return np.exports;Q6=1,Object.defineProperty(vO,"__esModule",{value:!0});const t=mO();return np.exports=t.Konva,np.exports}var bO=yO();const $n=Vc(bO);function wO(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=xO(t))||e){n&&(t=n);var r=0,s=function(){};return{s,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(d){throw d},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var d=n.next();return o=d.done,d},e:function(d){c=!0},f:function d(){try{o||n.return==null||n.return()}finally{if(c)throw d}}}}function xO(t,e){if(t){if(typeof t=="string")return J6(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J6(t,e):void 0}}function J6(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Nt={apply:function(t){for(var e=t.data,n=e.length,r=arguments.length,s=Array(1<r?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];for(var c=0;c<n;c+=4){var d,f=wO(s);try{for(f.s();!(d=f.n()).done;){var g=d.value,v=g([e[c],e[c+1],e[c+2]]),x=Xt(v,3);e[c]=x[0],e[c+1]=x[1],e[c+2]=x[2]}}catch(C){f.e(C)}finally{f.f()}}},brightness:function(t){return function(e){var n=t;return n=1<n?1:n,n=-1>n?-1:n,n=~~(255*n),[e[0]+n,e[1]+n,e[2]+n]}},contrast:function(t){return function(e){var n=t;n*=255;var r=259*(n+255)/(255*(259-n));return[r*(e[0]-128)+128,r*(e[1]-128)+128,r*(e[2]-128)+128]}},saturation:function(t){return function(e){var n=t;n=-1>n?-1:n;var r=e[0],s=e[1],o=e[2],c=.2989*r+.587*s+.114*o;return[-c*n+r*(1+n),-c*n+s*(1+n),-c*n+o*(1+n)]}},grayscale:function(){return function(t){var e=t[0],n=t[1],r=t[2];return[,,,].fill(.2126*e+.7152*n+.0722*r)}},sepia:function(t){return function(e){var n=e[0],r=e[1],s=e[2];return[n*(1-.607*t)+.769*r*t+.189*s*t,.349*n*t+r*(1-.314*t)+.168*s*t,.272*n*t+.534*r*t+s*(1-.869*t)]}},adjustRGB:function(t){return function(e){return[e[0]*t[0],e[1]*t[1],e[2]*t[2]]}},colorFilter:function(t){return function(e){var n=e[0],r=e[1],s=e[2],o=t[3];return[n-(n-t[0])*o,r-(r-t[1])*o,s-(s-t[2])*o]}}};function Cm(t){Nt.apply(t,function(e){var n=(e[0]+e[1]+e[2])/3>100,r=n?255:0;return[r,r,r]})}Cm.filterName="BlackAndWhite";var CO=.1,SO=.1,_O=.15;function Sm(t){Nt.apply(t,Nt.brightness(CO),Nt.contrast(SO),Nt.saturation(_O))}Sm.filterName="Clarendon";var EO=.04,OO=-.15;function _m(t){Nt.apply(t,Nt.sepia(EO),Nt.contrast(OO))}_m.filterName="Gingham";var kO=.1;function Em(t){Nt.apply(t,Nt.grayscale(),Nt.brightness(kO));var e=t.data;e.length}Em.filterName="Moon";var PO=.08,MO=[1,1.03,1.05],LO=.12;
33function Om(t){Nt.apply(t,Nt.brightness(PO),Nt.adjustRGB(MO),Nt.saturation(LO))}Om.filterName="Lark";var TO=.4,AO=.13,IO=-.05;function km(t){Nt.apply(t,Nt.sepia(TO),Nt.brightness(AO),Nt.contrast(IO))}km.filterName="Reyes";var NO=[1.01,1.04,1],RO=.3;function Pm(t){Nt.apply(t,Nt.adjustRGB(NO),Nt.saturation(RO))}Pm.filterName="Juno";var FO=.1,DO=-.5;function Mm(t){Nt.apply(t,Nt.brightness(FO),Nt.saturation(DO))}Mm.filterName="Slumber";var jO=[1.04,1,1.02],BO=-.05;function Lm(t){Nt.apply(t,Nt.adjustRGB(jO),Nt.saturation(BO))}Lm.filterName="Crema";var HO=.05,zO=-.03;function Tm(t){Nt.apply(t,Nt.brightness(HO),Nt.saturation(zO))}Tm.filterName="Ludwig";var GO=[228,130,225,.13],UO=-.2;function Am(t){Nt.apply(t,Nt.colorFilter(GO),Nt.saturation(UO))}Am.filterName="Aden";var WO=[1.05,1.1,1];function Im(t){Nt.apply(t,Nt.adjustRGB(WO))}Im.filterName="Perpetua";var VO=.3,YO=.15;function Nm(t){Nt.apply(t,Nt.saturation(VO),Nt.brightness(YO))}Nm.filterName="Amaro";var ZO=[230,115,108,.05],KO=.15;function Rm(t){Nt.apply(t,Nt.colorFilter(ZO),Nt.saturation(KO))}Rm.filterName="Mayfair";var $O=[255,170,0,.1],XO=.09,qO=.1;function Fm(t){Nt.apply(t,Nt.colorFilter($O),Nt.brightness(XO),Nt.saturation(qO))}Fm.filterName="Rise";var QO=[1,1,1.25],JO=.1,tk=.15;function Dm(t){Nt.apply(t,Nt.adjustRGB(QO),Nt.contrast(JO),Nt.brightness(tk))}Dm.filterName="Hudson";var ek=[255,225,80,.08],nk=.1,rk=.05;function jm(t){Nt.apply(t,Nt.colorFilter(ek),Nt.saturation(nk),Nt.contrast(rk))}jm.filterName="Valencia";var ak=[255,255,0,.07],ik=.2,ok=.15;function Bm(t){Nt.apply(t,Nt.colorFilter(ak),Nt.saturation(ik),Nt.contrast(ok))}Bm.filterName="XPro2";var sk=-.15,lk=.1;function Hm(t){Nt.apply(t,Nt.contrast(sk),Nt.saturation(lk))}Hm.filterName="Sierra";var ck=[100,28,210,.03],uk=.1;function zm(t){Nt.apply(t,Nt.grayscale(),Nt.colorFilter(ck),Nt.brightness(uk))}zm.filterName="Willow";var dk=.15,hk=.2;function Gm(t){Nt.apply(t,Nt.contrast(dk),Nt.saturation(hk))}Gm.filterName="LoFi";var fk=.1,pk=.15;function Um(t){Nt.apply(t,Nt.contrast(fk),Nt.saturation(pk))}Um.filterName="Hefe";var gk=[220,115,188,.12],mk=-.05;function Wm(t){Nt.apply(t,Nt.colorFilter(gk),Nt.contrast(mk))}Wm.filterName="Nashville";var vk=.1,yk=.3;function Vm(t){Nt.apply(t,Nt.brightness(vk),Nt.sepia(yk))}Vm.filterName="Stinson";var bk=[255,225,0,.05],wk=.06,xk=.06;function Ym(t){Nt.apply(t,Nt.colorFilter(bk),Nt.brightness(wk),Nt.contrast(xk))}Ym.filterName="Vesper";var Ck=[255,165,40,.2];function Zm(t){Nt.apply(t,Nt.colorFilter(Ck))}Zm.filterName="Earlybird";var Sk=.2,_k=[140,10,185,.1];function Km(t){Nt.apply(t,Nt.contrast(Sk),Nt.colorFilter(_k))}Km.filterName="Brannan";var Ek=-.1,Ok=-.1;function $m(t){Nt.apply(t,Nt.brightness(Ek),Nt.saturation(Ok))}$m.filterName="Sutro";var kk=.1,Pk=[255,145,0,.2];function Xm(t){Nt.apply(t,Nt.sepia(kk),Nt.colorFilter(Pk))}Xm.filterName="Toaster";var Mk=.1,Lk=[255,255,0,.2];function qm(t){Nt.apply(t,Nt.brightness(Mk),Nt.colorFilter(Lk))}qm.filterName="Walden";var Tk=[255,25,0,.15],Ak=.1;function Qm(t){Nt.apply(t,Nt.colorFilter(Tk),Nt.brightness(Ak))}Qm.filterName="NinteenSeventySeven";var Ik=[255,140,0,.1],Nk=[1.15,1.05,1],Rk=.35;function Jm(t){Nt.apply(t,Nt.colorFilter(Ik),Nt.adjustRGB(Nk),Nt.saturation(Rk))}Jm.filterName="Kelvin";var Fk=[225,240,0,.1],Dk=.25,jk=.05;function t3(t){Nt.apply(t,Nt.colorFilter(Fk),Nt.saturation(Dk),Nt.contrast(jk))}t3.filterName="Maven";var Bk=.06,Hk=.1;function e3(t){Nt.apply(t,Nt.sepia(Bk),Nt.brightness(Hk))}e3.filterName="Ginza";var zk=.35,Gk=.1;function n3(t){Nt.apply(t,Nt.saturation(zk),Nt.brightness(Gk))}n3.filterName="Skyline";var Uk=.15,Wk=.1;function r3(t){Nt.apply(t,Nt.contrast(Uk),Nt.brightness(Wk))}r3.filterName="Dogpatch";var Vk=[25,240,252,.05],Yk=.3;function a3(t){Nt.apply(t,Nt.colorFilter(Vk),Nt.sepia(Yk))}a3.filterName="Brooklyn";var Zk=[208,208,86,.2],Kk=.15;function i3(t){Nt.apply(t,Nt.colorFilter(Zk),Nt.contrast(Kk))}i3.filterName="Helena";var $k=[255,160,25,.1],Xk=.1;function o3(t){Nt.apply(t,Nt.colorFilter($k),Nt.brightness(Xk))}o3.filterName="Ashby";var qk=[255,50,80,.12],Qk=.05;function s3(t){Nt.apply(t,Nt.colorFilter(qk),Nt.contrast(Qk))}s3.filterName="Charmes";const Jk=Object.freeze(Object.defineProperty({__proto__:null,Aden:Am,Amaro:Nm,Ashby:o3,BlackAndWhite:Cm,Brannan:Km,Brooklyn:a3,Charmes:s3,Clarendon:Sm,Crema:Lm,Dogpatch:r3,Earlybird:Zm,Gingham:_m,Ginza:e3,Hefe:Um,Helena:i3,Hudson:Dm,Juno:Pm,Kelvin:Jm,Lark:Om,LoFi:Gm,Ludwig:Tm,Maven:t3,Mayfair:Rm,Moon:Em,Nashville:Wm,NinteenSeventySeven:Qm,Perpetua:Im,Reyes:km,Rise:Fm,Sierra:Hm,Skyline:n3,Slumber:Mm,Stinson:Vm,Sutro:$m,Toaster:Xm,Valencia:jm,Vesper:Ym,Walden:qm,Willow:zm,XPro2:Bm},Symbol.toStringTag,{value:"Module"}));var db=function(t){return t?Jk[t]||$n.Filters[t]:null},gp=ze(),hb=Ze();function l3(t){for(var e=this.warmth(),n=t.data,r=n.length,s=0;s<r;s+=4)n[s]+=e,n[s+2]-=e}l3.finetuneName="Warmth",gp.Factory.addGetterSetter($n.Image,"warmth",0,hb.getNumberValidator(),gp.Factory.afterSetFilter);function fb(t){for(var e=this.threshold(),n=t.data,r=n.length,s=0;s<r;s+=4)e===0||(n[s]=n[s]>=e?255:0,n[s+1]=n[s+1]>=e?255:0,n[s+2]=n[s+2]>=e?255:0)}fb.finetuneName="CustomThreshold",gp.Factory.addGetterSetter($n.Image,"threshold",0,hb.getNumberValidator,gp.Factory.afterSetFilter);const tP=Object.freeze(Object.defineProperty({__proto__:null,CustomThreshold:fb,Warmth:l3},Symbol.toStringTag,{value:"Module"}));var pb=function(t){return Array.isArray(t)&&0<t.length?t.map(function(e){return $n.Filters[e]||tP[e]}):[]};function ty(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function z2(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}
33:arguments[n],n%2?ty(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ty(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var gb=function(){var t,e,n,r,s=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},o=z2({},s.loadableDesignState);Array.isArray(o.finetunes)&&(o.finetunes=pb(o.finetunes)),o.filter&&(o.filter=db(o.filter));var c=!!s.loadableDesignState||!!(s.useCloudimage&&!((t=s.cloudimage)===null||t===void 0)&&t.loadableQuery);return z2(z2({imgSrc:typeof s.source=="string"?s.source:((e=s.source)===null||e===void 0?void 0:e.src)||"",finetunes:[],finetunesProps:{},filter:null,adjustments:{crop:{ratio:s[_t.CROP].ratio,ratioTitleKey:(n=s[_t.CROP].ratioTitleKey)!==null&&n!==void 0?n:s[_t.CROP].ratio,width:null,height:null,x:0,y:0},isFlippedX:!1,isFlippedY:!1,rotation:0},annotations:{},resize:{},shownImageDimensions:{}},o),{},{pointerCssIcon:Os.DEFAULT,canvasScale:1,zoom:{factor:oo,x:null,y:null},isLoadingGlobally:!0,selectionsIds:[],tabId:s.defaultTabId||null,toolId:s.defaultToolId||null,feedback:{},pastDesignStates:[],futureDesignStates:[],isResetted:(r=!c)===null||r===void 0||r,haveNotSavedChanges:!1,latestColors:{},showTabsMenu:!1})},vd=function(t,e){var n=gb(e?t:ab);return{imgSrc:t.imgSrc||n.imgSrc,finetunes:t.finetunes||n.finetunes,finetunesProps:t.finetunesProps||n.finetunesProps,filter:t.filter||n.filter,adjustments:t.adjustments||n.adjustments,annotations:t.annotations||n.annotations,resize:t.resize||n.resize}};function ey(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function G2(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?ey(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ey(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var c3="REDO",eP=function(t){if(t.futureDesignStates&&0<t.futureDesignStates.length){var e=vd(t),n=rb(t.futureDesignStates),r=n[0],s=n.slice(1),o=[e].concat(Hn(t.pastDesignStates||[]));return G2(G2(G2({},t),r),{},{selectionsIds:[],pastDesignStates:o,futureDesignStates:s,hasUndo:!0,hasRedo:0<s.length,haveNotSavedChanges:!0})}return t};function ny(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function J0(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?ny(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ny(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Dp="RESET",nP=function(t,e){var n=vd(J0(J0({},e.config),{},{imgSrc:t.imgSrc}),!0);return J0(J0(J0({},t),n),{},{zoom:{factor:oo,x:null,y:null},selectionsIds:[],isResetted:!0,pastDesignStates:[],futureDesignStates:[],hasUndo:!1,hasRedo:!1,haveNotSavedChanges:!1})};function ry(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ay(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?ry(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ry(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Pl="SET_FEEDBACK",rP=function(t,e){return ay(ay({},t),{},{isLoadingGlobally:!1,feedback:e.feedback||{}})};function iy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function oy(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?iy(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):iy(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var u3="SHOW_LOADER",aP=function(t){return oy(oy({},t),{},{isLoadingGlobally:!0})};function Jt(t,e){var n=ct.forwardRef(t);return n.displayName=t.name,n}var iP=["color","stroke","size"],oP=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.stroke,o=s===void 0?"currentColor":s,c=t.size,d=c===void 0?14:c,f=Tt(t,iP);return L.createElement("svg",Et({ref:e,width:d,height:d,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f),L.createElement("path",{d:"M23.54 1.53186C23.54 0.96198 24.002 0.5 24.5719 0.5C25.1417 0.5 25.6037 0.961981 25.6037 1.53186V5.82108C25.6037 6.39096 25.1417 6.85294 24.5719 6.85294C24.002 6.85294 23.54 6.39096 23.54 5.82108V1.53186ZM23.54 43.1985C23.54 42.6287 24.002 42.1667 24.5719 42.1667C25.1417 42.1667 25.6037 42.6287 25.6037 43.1985V47.4877C25.6037 48.0576 25.1417 48.5196 24.5719 48.5196C24.002 48.5196 23.54 48.0576 23.54 47.4877V43.1985ZM47.4876 23.5397C48.0574 23.5397 48.5194 24.0017 48.5194 24.5716C48.5194 25.1415 48.0574 25.6034 47.4876 25.6034H43.1983C42.6285 25.6034 42.1665 25.1415 42.1665 24.5716C42.1665 24.0017 42.6285 23.5397 43.1984 23.5397H47.4876ZM5.8209 23.5397C6.39078 23.5397 6.85276 24.0017 6.85276 24.5716C6.85276 25.1415 6.39078 25.6034 5.82089 25.6034H1.53168C0.961798 25.6034 0.499817 25.1415 0.499817 24.5716C0.499817 24.0017 0.961797 23.5397 1.53168 23.5397H5.8209ZM41.6177 39.8976C42.0207 40.3006 42.0207 40.9539 41.6177 41.3569C41.2147 41.7599 40.5614 41.7599 40.1584 41.3569L37.1255 38.324C36.7225 37.921 36.7225 37.2677 37.1255 36.8647C37.5285 36.4617 38.1818 36.4617 38.5848 36.8647L41.6177 39.8976ZM12.1551 10.4347C12.558 10.8377 12.558 11.491 12.1551 11.894C11.7521 12.297 11.0988 12.297 10.6958 11.894L7.66285 8.86105C7.25989 8.45808 7.25989 7.80474 7.66286 7.40178C8.06582 6.99881 8.71916 6.99881 9.12213 7.40178L12.1551 10.4347ZM9.12179 41.617C8.71882 42.0199 8.06548 42.0199 7.66251 41.617C7.25955 41.214 7.25955 40.5607 7.66251 40.1577L10.6954 37.1248C11.0984 36.7218 11.7518 36.7218 12.1547 37.1248C12.5577 37.5277 12.5577 38.1811 12.1547 38.584L9.12179 41.617ZM38.5862 12.1549C38.1832 12.5579 37.5299 12.5579 37.1269 12.1549C36.724 11.752 36.724 11.0986 37.1269 10.6957L40.1599 7.66274C40.5628 7.25977 41.2162 7.25977 41.6191 7.66274C42.0221 8.06571 42.0221 8.71905 41.6191 9.12201L38.5862 12.1549ZM38.7161 24.5098C38.7161 32.3555 32.3559 38.7157 24.5102 38.7157C16.6645 38.7157 10.3043 32.3555 10.3043 24.5098C10.3043 16.6641 16.6645 10.3039 24.5102 10.3039C32.3559 10.3039 38.7161 16.6641 38.7161 24.5098ZM24.5102 36.652C31.2161 36.652 36.6524 31.2157 36.6524 24.5098C36.6524 17.8039 31.2161 12.3676 24.5102 12.3676C17.8043 12.3676 12.3681 17.8039 12.3681 24.5098C12.3681 31.2157 17.8043 36.652 24.5102 36.652Z",fill:r,stroke:o}))}),sP=function(t,e){return t&&Object.keys(t||{}).every(function(n){return t[n]===0})&&e&&Object.keys(e||{}).length===0},d3=ct.createContext({});function mb(){return tS()}function lP(t){var e=t.replace(/^@media( ?)/m,""),n=ct.useState(function(){return window.matchMedia(e).matches}),r=Xt(n,2),s=r[0],o=r[1];return ct.useEffect(function(){var c=!0,d=window.matchMedia(e),f=function(){c&&o(d.matches)};return f(),d.addEventListener("change",f),function(){c=!1,d.removeEventListener("change",f)}},[e,matchMedia]),s}const kg={name:"Name",save:"Save",saveAs:"Save as",back:"Back",loading:"Loading...",resetOperations:"Reset/delete all operations",changesLoseWarningHint:"If you press button “reset” your changes will lost. Would you like to continue?",discardChangesWarningHint:"If you close modal, your last change will not be saved.",cancel:"Cancel",apply:"Apply",warning:"Warning",confirm:"Confirm",discardChanges:"Discard changes",undoTitle:"Undo last operation",redoTitle:"Redo last operation",showImageTitle:"Show original image",zoomInTitle:"Zoom in",zoomOutTitle:"Zoom out",toggleZoomMenuTitle:"Toggle zoom menu",adjustTab:"Adjust",finetuneTab:"Finetune",filtersTab:"Filters",watermarkTab:"Watermark",annotateTabLabel:"Annotate",resize:"Resize",resizeTab:"Resize",imageName:"Image name",invalidImageError:"Invalid image provided.",uploadImageError:"Error while uploading the image.",areNotImages:"are not images",isNotImage:"is not image",toBeUploaded:"to be uploaded",cropTool:"Crop",original:"Original",custom:"Custom",square:"Square",landscape:"Landscape",portrait:"Portrait",ellipse:"Ellipse",classicTv:"Classic TV",cinemascope:"Cinemascope",arrowTool:"Arrow",blurTool:"Blur",brightnessTool:"Brightness",contrastTool:"Contrast",ellipseTool:"Ellipse",unFlipX:"Un-Flip X",flipX:"Flip X",unFlipY:"Un-Flip Y",flipY:"Flip Y",hsvTool:"HSV",hue:"Hue",brightness:"Brightness",saturation:"Saturation",value:"Value",imageTool:"Image",importing:"Importing...",addImage:"+ Add image",uploadImage:"Upload image",fromGallery:"From gallery",lineTool:"Line",penTool:"Pen",polygonTool:"Polygon",sides:"Sides",rectangleTool:"Rectangle",cornerRadius:"Corner Radius",resizeWidthTitle:"Width in pixels",resizeHeightTitle:"Height in pixels",toggleRatioLockTitle:"Toggle ratio lock",resetSize:"Reset to original image size",rotateTool:"Rotate",textTool:"Text",textSpacings:"Text spacings",textAlignment:"Text alignment",fontFamily:"Font family",size:"Size",letterSpacing:"Letter Spacing",lineHeight:"Line height",warmthTool:"Warmth",addWatermark:"+ Add watermark",addTextWatermark:"+ Add text watermark",addWatermarkTitle:"Cho
33ose the watermark type",uploadWatermark:"Upload watermark",addWatermarkAsText:"Add as text",padding:"Padding",paddings:"Paddings",shadow:"Shadow",horizontal:"Horizontal",vertical:"Vertical",blur:"Blur",opacity:"Opacity",transparency:"Transparency",position:"Position",stroke:"Stroke",saveAsModalTitle:"Save as",extension:"Extension",format:"Format",nameIsRequired:"Name is required.",quality:"Quality",imageDimensionsHoverTitle:"Saved image size (width x height)",cropSizeLowerThanResizedWarning:"Note, the selected crop area is lower than the applied resize which might cause quality decrease",actualSize:"Actual size (100%)",fitSize:"Fit size",addImageTitle:"Select image to add...",mutualizedFailedToLoadImg:"Failed to load image.",tabsMenu:"Menu",download:"Download",width:"Width",height:"Height",plus:"+",cropItemNoEffect:"No preview available for this crop item"};function sy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Pg(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?sy(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sy(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var rp={},h3=Pg({},kg),ly="Error while loading translations from backend.",vb=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"en";return Object.assign(h3,rp[e?.toLowerCase()]||{},t)},cP=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[];return new Promise(function(e,n){var r=new XMLHttpRequest;r.responseType="json",r.onload=function(){if(200<=r.status&&300>r.status)e(r.response);else{var s;console.warn("Error in sending translation key to backend ".concat((s=r.response)===null||s===void 0?void 0:s.hint,", ").concat(r.status)),n()}},r.onerror=function(){var s;console.warn("Error in sending translation key to backend ".concat((s=r.response)===null||s===void 0?void 0:s.hint,", ").concat(r.status)),n()},r.open("POST","https://neo.wordplex.io/api/import/request-translations?grid_uuid=".concat(Eg)),r.send(JSON.stringify({grid_uuid:Eg,translations_requests:t}))})},uP=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"en",e=1<arguments.length?arguments[1]:void 0;return new Promise(function(n,r){var s=t.toLowerCase(),o=new XMLHttpRequest;o.responseType="json",o.onload=function(){if(200<=o.status&&300>o.status){(o.response||[]).forEach(function(v){rp[s]=Pg(Pg({},rp[s]),{},V({},v.translation_key,v.translations[s]))});var c=[];Object.keys(kg).forEach(function(v){var x;v&&!((x=rp[s])!==null&&x!==void 0&&x[v])&&c.push({key:v,lang:s,default:kg[v]})}),0<c.length&&cP(c),vb(e,s),n(h3)}else{var d,f,g;console.error("Status code: ".concat(o.status)),console.error(((d=o.response)===null||d===void 0?void 0:d.msg)||((f=o.response)===null||f===void 0?void 0:f.msg)||((g=o.response)===null||g===void 0?void 0:g.details)||ly),r()}},o.onerror=function(){console.error("Status code ".concat(o.status,", error: ").concat(ly)),r()},o.open("GET","https://i18n.ultrafast.io/api/export?grid=".concat(Eg)),o.send()})},dP=function(t){return h3[t]||t||""},hP=function(t,e){return O7[e.type]&&O7[e.type](t,e.payload)||t};function cy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function uy(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?cy(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):cy(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var U2=!0,yb=function(t){var e=t.children,n=t.config,r=n===void 0?{}:n,s=OP(hP,gb(r),r),o=Xt(s,2),c=o[0],d=o[1];ct.useEffect(function(){return U2=!0,function(){U2=!1}},[]);var f=ct.useCallback(function(){U2&&d.apply(void 0,arguments)},[d]);ct.useEffect(function(){vb(r.translations,r.language)},[r.useBackendTranslations,r.language,r.translations]);var g=mb(),v=ct.useMemo(function(){return uy(uy({},c),{},{config:r,theme:g,dispatch:f,t:dP})},[r,c]);return L.createElement(d3.Provider,{value:v},e)};yb.defaultProps={config:{}};var fP=function(t){var e=t.children,n=t.overridingValue;return L.createElement(d3.Provider,{value:n},e)},ke=function(){return ct.useContext(d3)};function dy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function hy(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?dy(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):dy(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var _1=function(t,e){var n=ke(),r=n.dispatch,s=n.finetunes,o=n.finetunesProps,c=ct.useCallback(function(d){r({type:tx,payload:{finetune:t,finetuneProps:d}})},[]);return ct.useEffect(function(){s.includes(t)||sP(e,o)||c(hy(hy({},e),o))},[]),ct.useMemo(function(){return[o,c]},[o])},pP=function(){var t=ke(),e=t.dispatch,n=t.filter,r=ct.useCallback(function(s){e({type:nb,payload:{filter:s}})},[]);return ct.useMemo(function(){return[n,r]},[n])},jp=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return"".concat(t).concat(t?"-":"").concat(parseInt(Date.now()*Math.random(),10))},Bp=function(t){var e,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:300;return function(){var r,s;clearTimeout(e);for(var o=arguments.length,c=Array(o),d=0;d<o;d++)c[d]=arguments[d];var f=c[0],g=c.slice(1);e=setTimeout(t.bind.apply(t,[null,(r=f==null||(s=f.target)===null||s===void 0?void 0:s.value)!==null&&r!==void 0?r:f].concat(Hn(g))),n)}},Mg=function(){var t,e,n=document,r=n.body,s=document.documentElement,o=((t=window)===null||t===void 0?void 0:t.pageYOffset)||s.scrollTop||r.scrollTop,c=((e=window)===null||e===void 0?void 0:e.pageXOffset)||s.scrollLeft||r.scrollLeft;return{topOffset:o,leftOffset:c}},bb=function(t){if(!t)return null;var e=t.getBoundingClientRect(),n=document,r=n.body,s=Mg(),o=s.topOffset,c=s.leftOffset,d=document.documentElement,f=d.clientTop||r.clientTop||0,g=d.clientLeft||r.clientLeft||0,v=e.top+o-f,x=e.left+c-g;return{top:Math.round(v),left:Math.round(x),width:e.width,height:e.height}},Sr=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,n=2<arguments.length?arguments[2]:void 0;return Math.min(Math.max(e,+t),n||1e6)},ap=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.parent,r=n.getStage(),s=r.attrs.zoomFactor,o=n.getRelativePointerPosition();return{offsetX:Sr(o.x,0,e.width/(r.scaleX()/s))+n.attrs.xPadding,offsetY:Sr(o.y,0,e.height/(r.scaleY()/s))+n.attrs.yPadding}},fy=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0,r={},s=n.parent.attrs;return r.x=Math.min(t.offsetX,e.startedX)-s.xPadding||0,r.y=Math.min(t.offsetY,e.startedY)-s.yPadding||0,r.width=t.offsetX-e.startedX,r.height=t.offsetY-e.startedY,r.startedX=e.startedX-s.xPadding||0,r.startedY=e.startedY-s.yPadding||0,r},gP=["width","height","startedX","startedY"];function py(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function gy(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?py(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):py(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var mP=V(V(V(V(V(V(V({},_t.RECT,$n.Rect),_t.ELLIPSE,$n.Ellipse),_t.POLYGON,$n.RegularPolygon),_t.LINE,$n.Line),_t.IMAGE,$n.Image),_t.TEXT,$n.Text),_t.ARROW,$n.Arrow),wb=[_t.LINE,_t.ARROW],vP=[].concat(wb,[_t.ELLIPSE,_t.POLYGON]),my=function(t){var e,n,r;return new mP[t.name](gy(gy({},t),{},{opacity:(e=t.opacity)!==null&&e!==void 0?e:.7,x:(n=t.x)!==null&&n!==void 0?n:0,y:(r=t.y)!==null&&r!==void 0?r:0,width:Math.abs(t.width)||0,height:Math.abs(t.height)||0},wb.includes(t.name)?{stroke:t.stroke||"#000000"}:{}))},yP=function(t,e,n){var r=t.width,s=t.height,o=t.startedX,c=t.startedY,d=Tt(t,gP),f=Math.abs(r),g=Math.abs(s),v=0>r,x=0>s;switch(e){case _t.RECT:n?(d.width=Math.sqrt(f*f+g*g),d.height=d.width,d.x-=v?d.width-f:0,d.y-=x?d.height-g:0):(d.width=f,d.height=g);break;case _t.ELLIPSE:n?(d.radiusX=Math.sqrt(f*f+g*g)/2,d.radiusY=d.radiusX,d.x-=v?2*d.radiusX-f:0,d.y-=x?2*d.radiusY-g:0):(d.radiusX=f/2,d.radiusY=g/2),d.offsetX=-d.radiusX,d.offsetY=-d.radiusY;break;case _t.POLYGON:d.radius=(f+g)/2,d.x-=v?2*d.radius-f:0,d.y-=x?2*d.radius-g:0,d.offsetX=-d.radius,d.offsetY=-d.radius;break;case _t.LINE:case _t.ARROW:d.x=o,d.y=c,d.points=[0,0],n?d.points.push(f>=g?r:0,g>f?s:0):d.points=[0,0,r,s];break;default:d.width=f,d.height=g}return d},bP=["id","x","y","points"],wP=["startedX","startedY","offsetX","offsetY","width","height"];function vy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Zu(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?vy(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):vy(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var jo={startedX:void 0,startedY:void 0,isOutOfCanvas:!1},Wa={passive:!0},t1=1,Ku=null,e1=null,Oa=null,xP=function(t,e,n,r){var s=function(){return bb(t.content)},o=function(h){e1=my(Zu(Zu({},h),{},{name:_t.RECT,fill:"",stroke:"#000000",strokeWidth:2,shadowColor:"#ffffff",shadowBlur:1,shadowOpacity:.7})),n.add(e1)},c=function(h){Ku=my(h),n.add(Ku),h.name===_t.TEXT&&o(h),Oa=h},d=function(h,w){if(Oa){var E=yP(h,Oa.name,w);e1&&e1.setAttrs(E),Ku.setAttrs(E),Oa=Zu(Zu({},Oa),E)}},f=function(h){var w=ap(n,s());d(fy(w,jo,n),h.shiftKey)},g=function(){n&&Ku&&n.destroyChildren()},v=function(h){var w;if(!(1<((w=h.evt.touches)===null||w===void 0?void 0:w.length))){var E=ap(n,s());jo.isOutOfCanvas&&(document.removeEventListener("mousemove",f,Wa),document.removeEventListener("touchmove",f,Wa),jo.isOutOfCanvas=!1);var M=fy(E,jo,n);if(Ku)d(M,h.evt.shiftKey);else{e.id,e.x,e.y,e.points;var b=Tt(e,bP);c(Zu(Zu({},b),M))}t.setAttrs({isDrawing:!0})}},x=function(){jo.isOutOfCanvas||(document.addEventListener("mousemove",f,Wa),document.addEventListener("touchmove",f,Wa),jo.isOutOfCanvas=!0)},C=function(){var h,w;if(g(),Oa&&(Oa.width>=t1&&Oa.height>=t1||Oa.radiusX>=t1&&Oa.radiusY>=t1||(h=Oa.points)!==null&&h!==void 0&&h[2]||(w=Oa.points)!==null&&w!==void 0&&w[3]||Oa.radius>=t1)){var E=Oa;E.startedX,E.startedY,E.offsetX,E.offsetY;var M=E.width,b=E.height,m=Tt(E,wP);vP.includes(e.name)||(m.width=M,m.height=b),r(m,!0)}Ku=null,e1=null,Oa=null,t.setAttrs({isDrawing:!1}),t.off("mousemove touchmove",v),t.off("mouseleave touchcancel",x),document.removeEventListener("mouseup",C,Wa),document.removeEventListener("touchend",C,Wa),document.removeEventListener("mouseleave",C,Wa),document.removeEventListener("touchcancel",C,Wa),document.removeEventListener("mousemove",f,Wa),document.removeEventListener("touchmove",f,Wa),jo.isOutOfCanvas=!1},y=function(h){var w;if(h.evt.preventDefault(),!(h.target.attrs.draggable||1<((w=h.evt.touches)===null||w===void 0?void 0:w.length))){g();var E=ap(n,s());jo.startedX=E.offsetX,jo.startedY=E.offsetY,jo.isOutOfCanvas=!1,t.on("mousemove touchmove",v),t.on("mouseleave touchcancel",x),document.addEventListener("mouseup",C,Wa),document.addEventListener("touchend",C,Wa),document.addEventListener("mouseleave",C,Wa),document.addEventListener("touchcancel",C,Wa)}};return t.on("mousedown touchstart",y),function(){g(),t.off("mousedown touchstart",y)}},xb=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:[];return ct.useCallback(Bp(t,e),n)},CP=["fonts","onFontChange"],SP=["x","y","width","height","radius","radiusX","radiusY","points","image","text","scaleX","scaleY","rotation"],_P=["shouldSave","neverSave"];function yy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Kn(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?yy(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):yy(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Ml=function(){var t,e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},n=!(1<arguments.length&&arguments[1]!==void 0)||arguments[1],r=ke(),s=r.dispatch,o=r.previewGroup,c=r.annotations,d=r.selectionsIds,f=d===void 0?[]:d,g=r.config,v=Kn(Kn({},g.annotationsCommon),g[((t=c[f[0]])===null||t===void 0?void 0:t.name)||e.name]),x=ct.useState(function(){return Kn(Kn(Kn({},v),e),c[f[0]])}),C=Xt(x,2),y=C[0],h=C[1],w=ct.useRef(),E=o?.getStage(),M=ct.useCallback(function(k){k.fonts,k.onFontChange;var R=Tt(k,CP);s({type:Hc,payload:R}),R.id&&e.name!==_t.PEN&&Bp(function(){s({type:_d,payload:{annotationId:R.id}})},30)()},[]),b=xb(function(k){h(function(R){return Kn(Kn({},R),{},{shouldSave:!1,neverSave:!1},typeof k=="function"?k(R):k)})},15),m=ct.useCallback(function(k,R){if(k.name===R){k.x,k.y,k.width,k.height,k.radius,k.radiusX,k.radiusY,k.points,k.image,k.text,k.scaleX,k.scaleY,k.rotation;var G=Tt(k,SP);return Kn(Kn(Kn({},v),e),G)}return Kn(Kn({},v),e)},[]),_=ct.useCallback(function(k){h(function(R){var G=m(R,k.name||e.name);return Kn(Kn(Kn({},G),k),{},{id:k.id||jp(k.name||R.name),shouldSave:!0,neverSave:!1})})},[]);return ct.useEffect(function(){var k=y.shouldSave,R=y.neverSave,G=Tt(y,_P),T=f.length===1&&c[f[0]];!R&&(k||T)&&M(Kn(Kn({},G),{},{id:k?G.id:T.id}))},[y]),ct.useEffect(function(){setTimeout(function(){f.length===1?(w.current=y,h(Kn(Kn({},c[f[0]]),{},{neverSave:!0}))):w.current&&(h(Kn(Kn({},w.current),{},{neverSave:!0})),w.current=null)})},[f,c]),ct.useEffect(function(){var k=null;if(E&&n){var R=m(y,e.name);k=xP(E,Kn(Kn({},R),{},{name:e.name}),o,_)}return function(){k&&k()}},[E,y,o]),ct.useMemo(function(){return[y,b,_]},[y,b,_])},EP=["isDesignState"];function by(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function kf(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?by(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):by(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var wy,xy=function(t,e){wy=setTimeout(function(){clearTimeout(wy),typeof t=="function"&&e&&t(e)})},OP=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},r=kf(kf({},e),{},{pastDesignStates:[],futureDesignStates:[],hasRedo:!1,hasUndo:!1});return ct.useReducer(function(s,o){var c=t(s,o)||r;if([N3,c3,Dp].includes(o.type))return xy(n.onModify,c),c;if(c.isDesignState){var d=vd(s);c.isDesignState;var f=Tt(c,EP),g=kf(kf({},f),{},{pastDesignStates:[d].concat(Hn(s.pastDesignStates)),hasUndo:!0,hasRedo:!1,futureDesignStates:[],isResetted:!1,haveNotSavedChanges:!0});return xy(n.onModify,g),g}return c},r)},kP=function(){var t=ke(),e=t.tabId,n=t.dispatch,r=ct.useMemo(function(){return e!==Mn.ANNOTATE&&e!==Mn.WATERMARK},[e]),s=ct.useCallback(function(v){n({type:Hc,payload:v})},[]),o=ct.useCallback(function(v){s({id:v.target.id(),x:v.target.x(),y:v.target.y()})},[]),c=ct.useCallback(function(v){var x={id:v.target.id(),rotation:v.target.rotation(),x:v.target.x(),y:v.target.y()};return v.target.name()===_t.TEXT?(x.width=v.target.width()*v.target.scaleX(),x.height=v.target.height()*v.target.scaleY(),x.scaleX=1,x.scaleY=1):(x.scaleX=v.target.scaleX(),x.scaleY=v.target.scaleY()),x},[]),d=ct.useCallback(function(v){s(c(v))},[]),f=ct.useCallback(function(v){v.target.name()===_t.TEXT&&v.target.setAttrs(c(v))}),g=ct.useCallback(function(v){if(!(v.target.id()===El||v.target.getStage().attrs.isDrawing)){var x=v.evt.ctrlKey||v.evt.shiftKey||v.evt.metaKey;n({type:_d,payload:{annotationId:v.target.id(),multiple:x}}),n({type:Pp,payload:{toolId:v.target.name(),keepSelections:x}})}},[]);return ct.useMemo(function(){return r?{}:{onTransform:f,onTransformEnd:d,onDragEnd:o,onClick:g,onTap:g}},[r])},f3=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:function(){},e=ct.useRef(t),n=ct.useRef(),r=ct.useCallback(function(g){g.forEach(function(v){if(v.contentRect){var x=v.contentRect,C=x.width,y=x.height;e.current({entry:v,width:C,height:y})}})},[]),s=ct.useCallback(function(g){e.current=g},[]),o=ct.useCallback(function(){n.current||(n.current=new ResizeObserver(r))},[]),c=ct.useCallback(function(g,v){g&&(!n.current&&o(),n.current.observe(g),v&&(e.current=v))},[]),d=ct.useCallback(function(g,v){n.current&&g&&(n.current.unobserve(g),v&&(e.current=v))},[]),f=ct.useCallback(function(){n.current&&n.current.disconnect()},[]);return ct.useEffect(function(){return o(),f},[]),ct.useMemo(function(){return[c,d,s]},[])},lo=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:438;return window.matchMedia("(max-width: ".concat(t,"px)")).matches},Ho=function(t,e,n,r,s){return(t-e)*(s-r)/(n-e)+r};function Cy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function W2(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Cy(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Cy(Object(e)).forEac
33h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var mp=function(t,e,n){var r,s;return W2(W2(W2({},t.x||t.x===0?{x:Math.round(Ho(t.x,0,e.width,0,n.width))}:{}),t.y||t.y===0?{y:Math.round(Ho(t.y,0,e.height,0,n.height))}:{}),{},{width:Math.round(Ho((r=t.width)!==null&&r!==void 0?r:e.width,0,e.width,0,n.width)),height:Math.round(Ho((s=t.height)!==null&&s!==void 0?s:e.height,0,e.height,0,n.height))})},Ol=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,r=Math.abs(n),s=Math.round(n),o=90<r,c=o?r-90:r,d=o?e:t,f=o?t:e,g=c*Math.PI/180,v=Math.abs(Math.sin(g)),x=Math.abs(Math.cos(g));return{width:Math.round(d*x)+Math.round(f*v),height:Math.round(d*v)+Math.round(f*x),offsetTop:0<=s&&90>=s?0:(function(){return 0>s&&-90<s||90<s?d*v:f*x+d*v})(),offsetLeft:0>=s&&-90<=s?0:(function(){return 90<s?d*x+f*v:f*v})()}},PP=function(t){if(t instanceof HTMLImageElement){var e=document.createElement("canvas"),n=e.getContext("2d");return e.width=t.width,e.height=t.height,n.drawImage(t,0,0),e.toDataURL()}return""},Cb=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",e=1<arguments.length?arguments[1]:void 0,n=e,r=t;if(!n&&PE.some(function(c){return t.lastIndexOf(".".concat(c))===t.length-".".concat(c).length})){var s,o=(s=t.slice(t.lastIndexOf(".")+1))===null||s===void 0?void 0:s.toLowerCase();n=o&&gd.includes(o)?o:Nv,r=t.slice(0,t.lastIndexOf("."))}return n=n||Nv,{fullName:"".concat(r,".").concat(n),name:r,extension:n}},xs=function(t,e){return t<<e|t>>>32-e},n1=function(t){var e,n,r="";for(e=7;0<=e;e--)n=15&t>>>4*e,r+=n.toString(16);return r},MP=function(t){for(var e,n=t.replace(/\r\n/g,`
34`),r="",s=0;s<n.length;s++)e=n.charCodeAt(s),128>e?r+=String.fromCharCode(e):127<e&&2048>e?(r+=String.fromCharCode(192|e>>6),r+=String.fromCharCode(128|63&e)):(r+=String.fromCharCode(224|e>>12),r+=String.fromCharCode(128|63&e>>6),r+=String.fromCharCode(128|63&e));return r},LP=function(t){var e,n,r,s,o,c,d,f,g,v=t,x=Array(80),C=1732584193,y=4023233417,h=2562383102,w=271733878,E=3285377520;v=MP(v);var M=v.length,b=[];for(n=0;n<M-3;n+=4)r=v.charCodeAt(n)<<24|v.charCodeAt(n+1)<<16|v.charCodeAt(n+2)<<8|v.charCodeAt(n+3),b.push(r);switch(M%4){case 0:n=2147483648;break;case 1:n=8388608|v.charCodeAt(M-1)<<24;break;case 2:n=32768|(v.charCodeAt(M-2)<<24|v.charCodeAt(M-1)<<16);break;case 3:n=128|(v.charCodeAt(M-3)<<24|v.charCodeAt(M-2)<<16|v.charCodeAt(M-1)<<8);break}for(b.push(n);b.length%16!=14;)b.push(0);for(b.push(M>>>29),b.push(4294967295&M<<3),e=0;e<b.length;e+=16){for(n=0;16>n;n++)x[n]=b[e+n];for(n=16;79>=n;n++)x[n]=xs(x[n-3]^x[n-8]^x[n-14]^x[n-16],1);for(s=C,o=y,c=h,d=w,f=E,n=0;19>=n;n++)g=4294967295&xs(s,5)+(o&c|~o&d)+f+x[n]+1518500249,f=d,d=c,c=xs(o,30),o=s,s=g;for(n=20;39>=n;n++)g=4294967295&xs(s,5)+(o^c^d)+f+x[n]+1859775393,f=d,d=c,c=xs(o,30),o=s,s=g;for(n=40;59>=n;n++)g=4294967295&xs(s,5)+(o&c|o&d|c&d)+f+x[n]+2400959708,f=d,d=c,c=xs(o,30),o=s,s=g;for(n=60;79>=n;n++)g=4294967295&xs(s,5)+(o^c^d)+f+x[n]+3395469782,f=d,d=c,c=xs(o,30),o=s,s=g;C=4294967295&C+s,y=4294967295&y+o,h=4294967295&h+c,w=4294967295&w+d,E=4294967295&E+f}return g=n1(C)+n1(y)+n1(h)+n1(w)+n1(E),g.toLowerCase()},TP=function(t){return btoa(t).replace(/=*$/g,"")},AP=function(t,e){return LP(t).slice(0,e)},IP=function(t,e,n,r){var s=TP(t),o=AP(e+s+n,r);return[o?"ci_seal=".concat(o):"",s?"ci_eqs=".concat(s):""].filter(function(c){return c}).join("&")},NP=function(t,e,n){var r=e||{},s=r.salt,o=r.charCount,c=r.includeParams,d=c===void 0?[]:c,f=!d||d?.length===0,g="",v="",x=[],C=[];return t.split("&").forEach(function(y){var h=y.split("="),w=Xt(h,1),E=w[0];-1<d?.indexOf(E)||f?x.push(y):C.push(y)}),0<C.length&&(v=C.join("&")),g=IP(x.join("&"),n,s,o),[g,v].filter(function(y){return y}).join("&")},RP=function(){var t,e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",n={hex:"000000",opacity:1};if(!e)return n;if(e.startsWith("#"))return{hex:e.replace("#",""),opacity:1};var r=e.split(","),s=Xt(r,4),o=s[0],c=s[1],d=s[2],f=s[3];return o&&c&&d?(o=parseFloat(o.replace(/rgba?\(/,"").trim()).toString(16),c=parseFloat(c.trim()).toString(16),d=parseFloat(d.trim()).toString(16),f=f?parseFloat((t=f.trim())!==null&&t!==void 0?t:1):void 0,o.length===1&&(o="0".concat(o)),c.length===1&&(c="0".concat(c)),d.length===1&&(d="0".concat(d)),{hex:"".concat(o).concat(c).concat(d),opacity:f}):n},Xn=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:5;return t&&+parseFloat(t).toFixed(e)},FP=["width","height","x","y","opacity","scaleX","scaleY"];function Sy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function _y(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}
34:arguments[n],n%2?Sy(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Sy(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var DP=function(t,e,n,r){if(t.noEffect)return t.ratio.includes("=")?t.ratio:"gravity=".concat(t.ratio);var s=(r||{}).lockCropAreaAt,o=mp(t,e,n),c=o.x,d=o.y,f=o.width,g=o.height,v=t.ratio===Yc?"&radius=".concat(Math.max(f,g),"&force_format=png"):"";if(s){var x=s.split("-"),C=Xt(x,2),y=C[0],h=C[1],w="".concat(Fv[y]).concat(Fv[h]);return"gravity=".concat(w,"&aspect_ratio=").concat(Xn(typeof t.ratio=="string"?f/g:t.ratio,2)).concat(v)}return"tl_px=".concat(c,",").concat(d,"&br_px=").concat(c+f,",").concat(d+g).concat(v)},jP=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=t.width,n=t.height;return"w=".concat(e,"&h=").concat(n)},BP=function(t){return"r=".concat(-t)},HP=function(t,e){return"flip=".concat(t?"x":"").concat(e?"y":"")},zP=function(t){var e,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},s=n.width,o=n.height,c=n.x,d=n.y,f=n.opacity,g=n.scaleX,v=g===void 0?1:g,x=n.scaleY,C=x===void 0?1:x,y=Tt(n,FP),h=t.width/t.height,w=t.width*t.scaledBy,E=t.height*t.scaledBy,M=c*t.scaledBy,b=d*t.scaledBy,m="wat=1&wat_gravity=absolute&wat_pos=".concat(Math.floor(100*((M-(r.x||0))/w),2),"p,").concat(Math.floor(100*((b-(r.y||0))/E),2),"p");if(n.name===_t.TEXT){var _,k=RP(y.fill),R=k.hex,G=k.opacity;return"".concat(m,"&wat_text=").concat(y.text.replaceAll(`
35`,""),"&wat_font=").concat(y.fontFamily,"&wat_color=").concat(R,"&wat_opacity=").concat((_=G??f)!==null&&_!==void 0?_:1,"&wat_fontsize=").concat(y.fontSize,"max")}var T=((e=y.image)===null||e===void 0?void 0:e.src)||y.image,D=!T.startsWith("blob:")&&T,A=Xn(100*(s/o>h?s*v/w:o*C/E),2);return"".concat(m,"&wat_opacity=").concat(f,"&wat_scale=").concat(A,"p").concat(D?"&wat_url=".concat(encodeURIComponent(D)):"")},ip={Brighten:{cloudimage:{name:"bright",min:-100,max:100},internal:{propName:"brightness",min:-1,max:1}},Contrast:{cloudimage:{name:"contrast",min:-100,max:100},internal:{propName:"contrast",min:-100,max:100}},Blur:{cloudimage:{name:"blur",min:0,max:100},internal:{propName:"blurRadius",min:0,max:100}}},GP=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=[];return t.forEach(function(r){var s=(r.finetuneName||r.name)&&ip[r.finetuneName||r.name];if(s){var o=Xn(Ho(e[s.internal.propName],s.internal.min,s.internal.max,s.cloudimage.min,s.cloudimage.max),2);n.push("".concat(s.cloudimage.name,"=").concat(o))}}),n.join("&")},UP=function(t,e,n,r,s){var o=t.token,c=t.domain,d=t.dontPrefixUrl,f=t.version,g=t.imageSealing,v=t.secureProtocol,x=e.imgSrc,C=e.adjustments,y=C.crop,h=C.rotation,w=C.isFlippedX,E=C.isFlippedY,M=e.resize,b=M===void 0?{}:M,m=e.finetunes,_=m===void 0?{}:m,k=e.finetunesProps,R=e.annotations,G=R===void 0?{}:R,T=d?"":"http".concat(v?"s":"","://").concat(o,".").concat(c.replace(/^(https?:\/\/)?(www\.)?|^\.|\/$/g,""),"/").concat(f?"".concat(f,"/"):""),D=[];y.width&&y.height&&(y.x||y.x===0)&&(y.y||y.y===0)&&D.push(DP(y,n,r,s)),(b.width||b.height)&&D.push(jP(_y(_y({},r),b))),h&&D.push(BP(h)),(w||E)&&D.push(HP(w,E)),0<_.length&&k&&D.push(GP(_,k)),G[El]&&D.push(zP(n,G[El],y)),D.push("ci_url_encoded=1");var A=D.join("&");g.enable&&(A=NP(A,g,x)),A=A.replaceAll(" ","+");var B=!d||x.indexOf("?")===-1?"?":"&";return"".concat(T).concat(d?x:encodeURIComponent(x)).concat(A?"".concat(B).concat(A.replace(/&$/,"")):"")},WP=["filter"];function Ey(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Lc(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Ey(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ey(Object(e)).forEac
35h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Sb=function(){var t=ke(),e=t.dispatch,n=t.designLayer,r=t.shownImageDimensions,s=t.originalImage,o=t.resize,c=o===void 0?{}:o,d=t.adjustments,f=d===void 0?{}:d,g=f.crop,v=g===void 0?{}:g,x=f.rotation,C=x===void 0?0:x,y=f.isFlippedX,h=f.isFlippedY,w=t.config,E=w.savingPixelRatio,M=w.previewPixelRatio,b=w.forceToPngInEllipticalCrop,m=w.defaultSavedImageType,_=w.useCloudimage,k=w.cloudimage,R=w[_t.CROP];return _?function(){var G,T,D=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},A=vd(t);A.filter;var B=Tt(A,WP),Z=UP(k,B,r,s,R),S=mp({x:v.x,y:v.y,width:v.width,height:v.height},r,s),I={cloudimageUrl:Z,width:(D==null||(G=D.size)===null||G===void 0?void 0:G.width)||S.width,height:(D==null||(T=D.size)===null||T===void 0?void 0:T.height)||S.height};return{imageData:I,designState:B}}:function(){var G=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},T=1<arguments.length&&arguments[1]!==void 0&&arguments[1],D=2<arguments.length&&arguments[2]!==void 0&&arguments[2],A=Lc({size:c},G);$n.pixelRatio=T||E;var B=n.attrs,Z=B.clipWidth,S=B.clipHeight,I=B.clipX,N=B.clipY;n.setAttr("isSaving",!0);var z=n.getStage().clone({width:s.width,height:s.height,scaleX:y?-1:1,scaleY:h?-1:1}),W=Xt(z.children,1),Q=W[0];z.children[1].destroy();var tt=z.findOne("#".concat(q9));tt.cache();var at={x:z.width()/r.width,y:z.height()/r.height};Q.setAttrs({rotation:0,offsetX:0,offsetY:0,x:0,y:0,scaleX:at.x,scaleY:at.y});var X=Lc(Lc({},(!A.name||!A.extension)&&Cb(s.name,b&&v.ratio===Yc?"png":gd.includes(m?.toLowerCase())&&m)),A),q=X.name,rt=X.extension,ot=X.quality,ft=ot===void 0?92:ot,it=X.size,Y=it===void 0?{}:it,J=["jpeg","jpg","webp"].includes(rt),lt=mp(v.noEffect?{x:0,y:0}:{x:v.x||I,y:v.y||N,width:v.width||Z,height:v.height||S},r,z.attrs),dt=Ol(lt.width,lt.height,C);if(z.setAttrs({offsetX:lt.width/2+lt.x,offsetY:lt.height/2+lt.y,width:dt.width,height:dt.height,x:dt.width/2,y:dt.height/2,rotation:C}),Y.width){var yt=(y?-1:1)*(Y.width/z.width());z.setAttrs({scaleX:yt,width:Y.width,x:z.x()*Math.abs(yt)})}if(Y.height){var gt=(h?-1:1)*(Y.height/z.height());z.setAttrs({scaleY:gt,height:Y.height,y:z.y()*Math.abs(gt)})}var Dt=Lc({mimeType:"image/".concat(rt==="jpg"?"jpeg":rt)},J?{quality:ft}:{}),Ht=z.toCanvas(Dt),It=z.toDataURL(Dt),qt=Lc(Lc({},vd(t)),{},{shownImageDimensions:{width:t.shownImageDimensions.width,height:t.shownImageDimensions.height,scaledBy:t.shownImageDimensions.scaledBy}});qt.filter&&(qt.filter=qt.filter.filterName||qt.filter.name),qt.finetunes=qt.finetunes.map(function(Kt){return Kt.finetuneName||Kt.name}),Object.keys(qt.annotations).forEach(function(Kt){var Yt,oe=qt.annotations[Kt],ne=oe.name===_t.IMAGE&&((Yt=oe.image)===null||Yt===void 0?void 0:Yt.src);ne&&ne.startsWith("blob:")?qt.annotations[Kt].image=PP(oe.image):oe.image instanceof HTMLImageElement&&(qt.annotations[Kt].image=ne)});var Bt=Lc({fullName:"".concat(q,".").concat(rt),name:q,extension:rt,mimeType:"image/".concat(rt),imageCanvas:Ht,imageBase64:It,width:Y.width||lt.width,height:Y.height||lt.height},J?{quality:ft}:{});n.setAttr("isSaving",!1),e({type:sx}),tt.clearCache(),z.destroy(),$n.pixelRatio=M;var ee=function(){e({type:Np})};return D||ee(),{imageData:Bt,designState:qt,hideLoadingSpinner:ee}}},ks={Left:"left",Right:"right",Top:"top",Bottom:"bottom"},h1={Primary:"primary",Secondary:"secondary",White:"white"},xr={Primary:"primary",Secondary:"secondary",Basic:"basic",LinkPrimary:"link-primary",LinkSecondary:"link-secondary",LinkBasicPrimary:"link-basic-primary",LinkBasicSecondary:"link-basic-secondary",ErrorPrimary:"error-primary",ErrorSecondary:"error-secondary",ErrorBasic:"error-basic",WarningPrimary:"warning-primary",WarningSecondary:"warning-secondary",WarningBasic:"warning-basic"},sd={Primary:"primary",Secondary:"secondary",Basic:"basic"},Ie={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg"},Re={Sm:"sm",Md:"md"},_b={Default:"default",Localization:"localization"},VP=function(t){var e=t.theme.palette;return pt(["color:"," !important;"],e[$.Error])},YP=V(V({},Re.Sm,`
36    padding: 8px 12px;
37    height: 32px;
38  `),Re.Md,`
39    padding: 11px 16px;
40    height: 40px;
41  `);V(V({},Re.Sm,`
42    padding: 4px 6px 4px 12px;
43    max-height: 32px;
44  `),Re.Md,`
45    padding: 0px 4px 0px 16px;
46    max-height: 40px;
47  `);var Eb=V(V({},Re.Sm,function(t){var e=t.theme.typography.font;return pt(["",""],e[Vt.InputMd])}),Re.Md,function(t){var e=t.theme.typography.font;return pt(["",""],e[Vt.InputLg])}),ZP=V(V({},Re.Sm,function(t){var e=t.theme.typography.font;return pt(e[Vt.LabelSmall])}),Re.Md,function(t){var e=t.theme.typography.font;return pt(e[Vt.LabelMedium])}),KP=function(t){var e=t.theme.palette;return pt(["background:"," !important;border:1px solid "," !important;
47"],e[$.BackgroundSecondary],e[$.Error])},p3="Label",$P=mt.label.attrs({className:Rt(p3,"root")}).withConfig({componentId:"sc-16k2ql4-0"})(function(t){var e=t.size,n=e===void 0?Re.Md:e,r=t.error,s=r===void 0?!1:r,o=t.disabled,c=o===void 0?!1:o,d=t.htmlFor,f=t.theme;return pt(["display:flex;align-items:center;color:",";font-style:normal;font-weight:normal;"," "," cursor:",";",";"],f.palette[$.TextSecondary],c&&pt(["color:",";","{color:",";}"],f.palette[$.ButtonDisabledText],Ob,f.palette[$.IconsMuted]),ZP[n],d&&"pointer",s&&VP)}),XP=mt.span.attrs({className:Rt(p3,"text")}).withConfig({componentId:"sc-16k2ql4-1"})(["white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),Ob=mt.span.attrs({className:Rt(p3,"Icon")}).withConfig({componentId:"sc-16k2ql4-2"})(function(t){var e=t.theme.palette,n=t.$end,r=n===void 0?!1:n;return pt(["display:flex;",";color:",";"],r?"margin-left: 4px":"margin-right: 4px",e[$.IconsSecondary])}),op=fn({Label:$P,Icon:Ob,Text:XP}),qP=["children","iconStart","iconEnd","error","disabled","size","type"],Ln=Be(function(t,e){var n=t.children,r=t.iconStart,s=t.iconEnd,o=t.error,c=t.disabled,d=t.size,f=t.type,g=Tt(t,qP),v=ct.useRef(null),x=ct.useState(!1),C=Xt(x,2),y=C[0],h=C[1],w=function(b,m){return L.createElement(op.Icon,{$end:m},typeof b=="function"?b({size:d==="md"?14:12}):b)},E=function(){if(typeof n=="string"&&y)return n},M=function(){if(v.current!==null&&v.current){var b,m;h((v==null||(b=v.current)===null||b===void 0?void 0:b.offsetWidth)<(v==null||(m=v.current)===null||m===void 0?void 0:m.scrollWidth))}};return L.createElement(op.Label,Et({ref:e,error:o,disabled:c,size:d,type:f},g),r&&w(r,!1),L.createElement(op.Text,{title:E(),onMouseOver:M,ref:v},n),s&&w(s,!0))});Ln.defaultProps={type:_b.Default,error:!1};var g3={type:et.oneOf(je(_b)),iconStart:et.oneOfType([et.node,et.func]),iconEnd:et.oneOfType([et.node,et.func]),error:et.bool,size:et.oneOf(je(Re)),htmlFor:et.string};Ln.propTypes=g3;var QP=mt.div.withConfig({componentId:"sc-dwg14p-0"})(["width:fit-content;margin:0 auto;max-width:99.5%;max-height:170px;[data-phone='true'] &{padding:0;margin-top:8px;max-height:initial;}"]),JP=mt.div.withConfig({componentId:"sc-dwg14p-1"})(["padding:8px 16px 16px 16px;display:flex;gap:12px;align-items:center;overflow:hidden;",""],function(t){var e=t.isPhoneScreen;return e&&`
48    justify-content: space-between;
49    padding: 12px;
50    gap: 8px;
51  `}),tM=mt.div.withConfig({componentId:"sc-dwg14p-2"})(function(t){var e=t.theme,n=t.isPhoneScreen;return`
52    display: flex;
53    gap: 6px;
54    border-radius: 2px;
55    align-items: center;
56    justify-content: center;
57    padding: 8px 12px;
58
59    svg {
60      color: `.concat(e.palette[$.IconsPrimary],`;
61    }
62
63    &,
64    * {
65      cursor: pointer;
66    }
67
68    &:hover {
69      `).concat(!n&&"background: ".concat(e.palette["bg-primary-active"],";"),`
70    }
71
72    &[aria-selected='true'] {
73      `).concat(!n&&"background: ".concat(e.palette["bg-primary-active"],";"),`
74      border-radius: 4px;
75
76      * {
77        color: `).concat(e.palette["accent-primary-active"],`;
78      }
79    }
80
81    `).concat(n&&pt(["display:flex;flex-direction:column;min-width:52px;min-height:52px;padding:8px;gap:4px;"]),`
82  `)}),m3=mt(Ln).withConfig({componentId:"sc-dwg14p-3"})(function(t){var e=t.theme,n=t.isPhoneScreen;return pt(["color:",";",";"],e.palette[$.TextPrimary],n&&e.typography.font[Vt.LabelExtraSmallUp])}),eM=mt.div.withConfig({componentId:"sc-dwg14p-4"})(["position:relative;width:100%;transition:max-height 100ms ease-in-out;display:flex;justify-content:center;align-items:center;gap:24px;",";",""],function(t){return`
83      max-height: `.concat(t.hasChildren?"56px":0,`;
84      margin: `).concat(t.hasChildren?"0 auto 8px":0,`;
85    `)},function(t){var e=t.isPhoneScreen;return e&&`
86    max-height: unset;
87    flex-direction: column;
88    padding: 0 12px 8px 12px;
89    gap: 8px;
90    margin: 0;
91  `}),kb=function(t){var e=t.id,n=t.label,r=t.onClick,s=t.Icon,o=t.isSelected,c=t.children,d=t.className,f=lo(320);return L.createElement(tM,{className:d,onClick:function(g){r(e,g)},"aria-selected":o,isPhoneScreen:f},L.createElement(s,{size:f?20:16}),n&&L.createElement(m3,{isPhoneScreen:f},n),c)};kb.defaultProps={isSelected:!1,id:void 0,children:null,label:""};const Tr=ct.memo(kb);var Pb=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_brightness-tool-button",id:_t.BRIGHTNESS,label:r("brightnessTool"),Icon:oP,onClick:e,isSelected:n})};Pb.defaultProps={isSelected:!1};function nM(t){var e=t.controlled,n=t.default,r=ct.useRef(e!==void 0),s=r.current,o=ct.useState(n),c=Xt(o,2),d=c[0],f=c[1],g=s?e:d,v=ct.useCallback(function(x){s||f(x)},[]);return[g,v]}var rM=typeof window<"u"?ct.useLayoutEffect:ct.useEffect;function $u(t){var e=ct.useRef(t);return rM(function(){e.current=t}),ct.useCallback(function(){return e.current.apply(void 0,arguments)},[])}var yd={Auto:"auto",On:"on",Off:"off"},Od="Slider",aM=mt.span.attrs({className:Rt(Od,"root")}).withConfig({componentId:"sc-jjink6-0"})(function(t){var e=t.theme,n=t.disabled,r=n===void 0?!1:n;return pt(["display:inline-block;border-radius:2px;position:relative;cursor:pointer;touch-action:none;color:",";height:4px;width:100%;padding:12px 0;"],r?e.palette[$.AccentPrimaryDisabled]:e.palette[$.BorderActiveBottom])}),iM=mt.span.attrs({className:Rt(Od,"rail")}).withConfig({componentId:"sc-jjink6-1"})(["display:block;position:absolute;border-radius:inherit;background-color:currentColor;opacity:0.38;width:100%;height:inherit;top:50%;transform:translateY(-50%);"]),oM=mt.span.attrs({className:Rt(Od,"Track")}).withConfig({componentId:"sc-jjink6-2"})(["display:block;position:absolute;border-radius:inherit;border:1px solid currentColor;background-color:currentColor;height:inherit;top:50%;transform:translateY(-50%);"]),sM=mt.span.attrs({className:Rt(Od,"thumb")}).withConfig({componentId:"sc-jjink6-3"})(["position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;outline:0;background-color:currentColor;display:flex;align-items:center;justify-content:center;top:50%;transform:translate(-50%,-50%);& > input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}"]),lM=mt.span.attrs({className:Rt(Od,"label")}).withConfig({componentId:"sc-jjink6-4"})(function(t){var e=t.theme,n=t.open,r=n===void 0?!1:n,s=t.disabled,o=s===void 0?!1:s;return pt(["display:flex;align-items:center;justify-content:center;padding:6px 6px;border-radius:2px;position:absolute;top:-10px;font-size:10px;z-index:1;white-space:nowrap;transition:transform 150ms cubic-bezier(0.4,0,0.2,1) 0ms;transform-origin:bottom center;transform:",";background-color:",";color:#fff;cursor:pointer;transition:all 100ms ease-out;&::before{position:absolute;content:'';background-color:inherit;width:8px;height:8px;bottom:0px;left:50%;transform:translate(-50%,50%) rotate(45deg);}"],r?"translateY(-100%) scale(1)":"translateY(-100%) scale(0)",o?e.palette[$.AccentPrimaryDisabled]:e.palette[$.LinkStateless])}),cM=mt.div.attrs({className:Rt(Od,"annotation")}).withConfig({componentId:"sc-jjink6-5"})(function(t){var e=t.theme;return pt(["display:flex;justify-content:space-between;margin-top:12px;color:",";"],e.palette[$.TextSecondary])}),Xu=fn({Slider:aM,Rail:iM,Track:oM,Thumb:sM,SliderAnnotation:cM,LabelTooltip:lM}),uM=["defaultValue","disabled","disableSwap","hideTrack","hideAnnotation","value","min","max","onChange","onMouseDown","onMouseUp","step","labelTooltip","annotation","components","componentsProps"];function Oy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function no(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
91e%2?Oy(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var dM=2,ky="data-index",vp=Be(function(t,e){var n=t.defaultValue,r=t.disabled,s=r===void 0?!1:r,o=t.disableSwap,c=o===void 0?!1:o,d=t.hideTrack,f=d===void 0?!1:d,g=t.hideAnnotation,v=g===void 0?!1:g,x=t.value,C=t.min,y=C===void 0?0:C,h=t.max,w=h===void 0?100:h,E=t.onChange,M=t.onMouseDown,b=t.onMouseUp,m=t.step,_=m===void 0?1:m,k=t.labelTooltip,R=k===void 0?yd.Off:k,G=t.annotation,T=G===void 0?"":G,D=t.components,A=D===void 0?{}:D,B=t.componentsProps,Z=B===void 0?{}:B,S=Tt(t,uM),I=ct.useState(-1),N=Xt(I,2),z=N[0],W=N[1],Q=ct.useState(-1),tt=Xt(Q,2),at=tt[0],X=tt[1],q=ct.useState(!1),rt=Xt(q,2),ot=rt[0],ft=rt[1],it=ct.useRef(0),Y=ct.useRef(0),J=ct.useRef(),lt=ct.useRef(null),dt=sm(e,lt),yt=nM({controlled:x,default:n??y}),gt=Xt(yt,2),Dt=gt[0],Ht=gt[1],It="horizontal",qt=Array.isArray(Dt),Bt=qt?Dt.slice().sort(O9):[Dt],ee=function(ve){var Ce=ve.finger,Ue=ve.move,gn=Ue===void 0?!1:Ue,zn=ve.values,ga=lt.current;if(ga){var ta=ga.getBoundingClientRect(),Vo=ta.width,ho=ta.height,ea=ta.bottom,ji=ta.left,Qa;
91It.indexOf("vertical")===0?Qa=(ea-Ce.y)/ho:Qa=(Ce.x-ji)/Vo,It.includes("-reverse")&&(Qa=1-Qa);var Fn;Fn=dS(Qa,y,w),_&&(Fn=fS(Fn,_,y)),Fn=F2(Fn,y,w);var na=0;if(qt){gn?na=Y.current:na=pS(zn,Fn),c&&(Fn=F2(Fn,zn[na-1]||-1/0,zn[na+1]||1/0));var Bi=Fn;Fn=e4({values:zn,newValue:Fn,index:na}),!(c&&gn)&&Array.isArray(Fn)&&(na=Fn.indexOf(Bi),Y.current=na)}return{newValue:Fn,activeIndex:na}}return null},Kt=function(ve,Ce,Ue){E&&E(ve,Ce,Ue)},Yt=function(ve){var Ce=Number(ve.currentTarget.getAttribute(ky)),Ue=ve.target.valueAsNumber;if(qt){c&&(Ue=F2(Ue,Bt[Ce-1]||-1/0,Bt[Ce+1]||1/0));var gn=Ue;Ue=e4({values:Bt,newValue:Ue,index:Ce});var zn=Ce;c||(zn=Ue.indexOf(gn)),Of({sliderRef:lt,activeIndex:zn})}Ht(Ue),Kt(ve,Ue,Ce),b&&b(ve)},oe=$u(function(ve){var Ce=Ef(ve,J);if(Ce){if(it.current+=1,ve.type==="mousemove"&&ve.buttons===0){ne(ve);return}var Ue=ee({finger:Ce,move:!0,values:Bt}),gn=Ue.newValue,zn=Ue.activeIndex;Of({sliderRef:lt,activeIndex:zn,setActive:W}),Ht(gn),!ot&&it.current>dM&&ft(!0),Kt(ve,gn,zn)}}),ne=$u(function(ve){var Ce=Ef(ve,J);ft(!1),Ce&&(W(-1),ve.type==="touchend"&&X(-1),b&&b(ve),J.current=void 0,Fe())}),ue=$u(function(ve){var Ce=ve.changedTouches[0];Ce!=null&&(J.current=Ce.identifier);var Ue=Ef(ve,J),gn=ee({finger:Ue,values:Bt}),zn=gn.newValue,ga=gn.activeIndex;Of({sliderRef:lt,activeIndex:ga,setActive:W}),Ht(zn),Kt(ve,zn,ga),it.current=0;var ta=tp(lt.current);ta.addEventListener("touchmove",oe),ta.addEventListener("touchend",ne)}),Qt=$u(function(ve){var Ce=Number(ve.currentTarget.getAttribute(ky));X(Ce)}),$t=$u(function(){X(-1)}),we=$u(function(ve){if(s)ve.preventDefault();else{if(M&&M(ve),ve.button!==0)return;ve.preventDefault();var Ce=Ef(ve,J),Ue=ee({finger:Ce,values:Bt}),gn=Ue.newValue,zn=Ue.activeIndex;Of({sliderRef:lt,activeIndex:zn,setActive:W}),Ht(gn),Kt(ve,gn,zn),it.current=0;var ga=tp(lt.current);ga.addEventListener("mousemove",oe),ga.addEventListener("mouseup",ne)}}),Fe=ct.useCallback(function(){var ve=tp(lt.current);ve.removeEventListener("mousemove",oe),ve.removeEventListener("mouseup",ne),ve.removeEventListener("touchmove",oe),ve.removeEventListener("touchend",ne)},[ne,oe]);ct.useEffect(function(){var ve=lt.current;if(ve)return function(){Fe()}},[Fe,ue]),ct.useEffect(function(){s&&Fe()},[s,Fe]),s&&z!==-1&&W(-1);var _e=R2(qt?Bt[0]:y,y,w),pn=R2(Bt[Bt.length-1],y,w)-_e,jt=no(no({},D2[It].offset(_e)),D2[It].leap(pn)),se=Z.rail,Se=typeof A.Rail=="function"?L.createElement(A.Rail,Et({},se,{style:no({},se?.style)})):L.createElement(Xu.Rail,Et({},se,{style:no({},se?.style)})),xe=Z.track,Ge=!f&&(typeof A.Track=="function"?L.createElement(A.Track,Et({},xe,{style:no(no({},jt),xe?.style)})):L.createElement(Xu.Track,Et({},xe,{style:no(no({},jt),xe?.style)}))),an=Z.thumb,bn=A.Thumb||Xu.Thumb,Ur=A.LabelTooltip||Xu.LabelTooltip,Ma=Z.labelTooltip,La=T?" ".concat(T):"";return L.createElement(Xu.Slider,Et({ref:dt,disabled:s,onTouchStart:ue,onMouseDown:we},S),Se,Ge,Bt.map(function(ve,Ce){var Ue=R2(ve,y,w),gn=D2[It].offset(Ue);return L.createElement(L.Fragment,{key:Ce},L.createElement(bn,Et({"data-index":Ce,onMouseOver:Qt,onMouseLeave:$t},an,{style:no(no({},gn),{},{pointerEvents:c&&z!==Ce?"none":void 0},an?.style)}),L.createElement("input",{"data-index":Ce,type:"range",min:y,max:w,value:Bt[Ce],step:_,disabled:s,onChange:Yt}),L.createElement(Ur,{open:(at===Ce||z===Ce||R==="on")&&R!=="off",disabled:s,style:no({},Ma?.style)},Bt[Ce],La)))}),!v&&L.createElement(Xu.SliderAnnotation,null,L.createElement("span",null,y,La),L.createElement("span",null,w,La)))});vp.defaultProps={annotation:"MB",min:0,max:100,step:1,labelTooltip:yd.Off},vp.propTypes={defaultValue:et.oneOfType([et.array,et.number]),value:et.oneOfType([et.array,et.number]),min:et.number,max:et.number,onChange:et.func,onMouseDown:et.func,onMouseUp:et.func,step:et.number,annotation:et.string,disabled:et.bool,disableSwap:et.bool,hideTrack:et.bool,hideAnnotation:et.bool,labelTooltip:et.oneOf(je(yd)),components:et.shape({Rail:et.elementType,Track:et.elementType,Thumb:et.elementType,LabelTooltip:et.elementType}),componentsProps:et.object};var hM=mt(vp).withConfig({componentId:"sc-1wort0h-0"})(["width:",";max-width:",";user-select:none;padding:0;margin-bottom:",";.SfxSlider-thumb{background-color:",";}.SfxSlider-Track{height:2px;color:",";}.SfxSlider-rail{height:2px;background-color:",";}"],function(t){var e=t.width;return e||"104px"},function(t){var e=t.width;return e||"104px"},function(t){var e=t.noMargin;return e?"":"16px"},function(t){var e=t.theme.palette;return e[$.AccentStateless]},function(t){var e=t.theme.palette;return e[$.AccentStateless]},function(t){var e=t.theme.palette;return e[$.BordersItem]}
91),fM=["onChange"],Lr=function(t){var e=t.onChange,n=Tt(t,fM);return L.createElement(hM,Et({annotation:"",onChange:function(r,s){return e?e(s):void 0},hideAnnotation:!0,labelTooltip:"auto"},n))},v3={size:et.number,width:et.oneOfType([et.string,et.number]),height:et.oneOfType([et.string,et.number]),color:et.string,color2:et.string,stroke:et.string,stroke2:et.string,viewBox:et.string},pM=["color","size"],gM=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,pM);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8468 3.13984C11.0457 3.33138 11.0517 3.64791 10.8602 3.84682L6.04534 8.84682C5.95332 8.94238 5.82709 8.99746 5.69445 8.99991C5.5618 9.00237 5.43362 8.95201 5.33812 8.85992L0.152931 3.85992C-0.0458479 3.66824 -0.0516033 3.35171 0.140078 3.15293C0.331758 2.95415 0.648288 2.9484 0.847067 3.14008L5.67208 7.79277L10.1398 3.15318C10.3314 2.95427 10.6479 2.9483 10.8468 3.13984Z",fill:r}))}),mM=V(V(V(V({},ks.Right,pt(["svg{transform:rotate(-90deg);transition:transform 150ms ease-out;}"])),ks.Left,pt(["svg{transform:rotate(90deg);transition:transform 150ms ease-out;}"])),ks.Top,pt(["svg{transform:rotate(180deg);transition:transform 150ms ease-out;}"])),ks.Bottom,pt(["svg{transform:rotate(0);transition:transform 150ms ease-out;}"])),vM="ArrowTick",yM=mt.span.attrs({className:Rt(vM,"root")}).withConfig({componentId:"sc-tlypde-0"})(function(t){var e=t.type,n=e===void 0?ks.Right:e;return pt(["display:inline-flex;",""],mM[n])}),bM=fn({ArrowTick:yM}),wM=["IconProps"],yp=Be(function(t,e){var n=t.IconProps,r=Tt(t,wM);return L.createElement(bM.ArrowTick,Et({},r,{ref:e}),L.createElement(gM,n))});yp.defaultProps={type:ks.Right},yp.propTypes={type:et.oneOf(je(ks)),IconProps:et.exact(v3)};var Hp="AccordionHeader",xM=mt.span.attrs({className:Rt(Hp,"icon")}).withConfig({componentId:"sc-1dtjsgt-0"})(function(){return pt(["display:inline-flex;padding-left:8px;"])}),CM=mt.span.attrs({className:Rt(Hp,"label")}).withConfig({componentId:"sc-1dtjsgt-1"})(function(t){var e=t.theme;return pt(["",""],e.typography.font[Vt.ButtonSm])}),SM=mt.div.attrs({className:Rt(Hp,"root")}).withConfig({componentId:"sc-1dtjsgt-2"})(function(t){var e=t.theme,n=t.fullWidth;return pt(["display:inline-flex;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:pointer;width:",";color:",";user-select:none;"],n?"100%":"auto",e.palette[$.LinkPrimary])}),_M=mt.div.attrs({className:Rt(Hp,"wrapper")}).withConfig({componentId:"sc-1dtjsgt-3"})(function(t){var e=t.theme;return pt(["color:",";"],e.palette[$.LinkPrimary])}),ld=fn({Header:SM,Wrapper:_M,Icon:xM,Label:CM}),EM=["expanded","label","onChange","onClick","onContextMenu","hideIcon","fullWidth","iconProps"];function Py(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function OM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Py(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Py(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Lg=Be(function(t,e){var n=t.expanded,r=t.label,s=t.onChange,o=t.onClick,c=t.onContextMenu,d=t.hideIcon,f=t.fullWidth,g=t.iconProps,v=Tt(t,EM);return L.createElement(ld.Header,Et({ref:e,onClick:function(x){typeof s=="function"&&s(!n),typeof o=="function"&&o(x)},fullWidth:f},v),L.createElement(ld.Label,{onContextMenu:c},r),!d&&L.createElement(ld.Icon,{onContextMenu:c},L.createElement(yp,{type:n?ks.Top:ks.Bottom,IconProps:OM({size:11},g)})))});Lg.defaultProps={expanded:!1,hideIcon:!1,fullWidth:!1},Lg.propTypes={label:et.node.isRequired,expanded:et.bool,hideIcon:et.bool,fullWidth:et.bool,onChange:et.func,iconProps:et.exact(v3)};
91var kM="AccordionDetails",PM=mt.div.attrs({className:Rt(kM,"root")}).withConfig({componentId:"sc-1wr6wpr-0"})(["margin:16px 0;"]),Mb=fn({AccordionDetails:PM}),MM=["expanded","children"],Tg=Be(function(t,e){var n=t.expanded,r=t.children,s=Tt(t,MM);return L.createElement(L.Fragment,null,n&&L.createElement(Mb.AccordionDetails,Et({ref:e},s),r))});Tg.defaultProps={expanded:!1},Tg.propTypes={expanded:et.bool};var LM="Accordion",TM=mt.div.attrs({className:Rt(LM,"root")}).withConfig({componentId:"sc-1g4tz7s-0"})([""]),AM=fn({Accordion:TM}),IM=["label","expanded","children","detailStyle","headerStyle","fullWidth","iconProps","onClick","onChange","onContextMenu","hideIcon"];function My(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ly(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?My(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):My(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var bp=Be(function(t,e){var n=t.label,r=t.expanded,s=t.children,o=t.detailStyle,c=t.headerStyle,d=t.fullWidth,f=t.iconProps,g=t.onClick,v=t.onChange,x=t.onContextMenu,C=t.hideIcon,y=Tt(t,IM);return L.createElement(AM.Accordion,Et({ref:e},y),L.createElement(Lg,{label:n,expanded:r,style:Ly({},c),hideIcon:C,onClick:function(h){typeof v=="function"&&v(!r,h),typeof g=="function"&&g(h)},onContextMenu:x,iconProps:f,fullWidth:d}),L.createElement(Tg,{expanded:r,style:Ly({},o)},s))});bp.defaultProps={expanded:!1,hideIcon:!1},bp.propTypes={label:et.node.isRequired,expanded:et.bool,detailStyle:et.object,headerStyle:et.object,onChange:et.func,onContextMenu:et.func,hideIcon:et.bool,fullWidth:et.bool,iconProps:et.exact(v3)};var NM=["stroke","size"],RM=Jt(function(t,e){var n=t.stroke,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?10:s,c=Tt(t,NM);return L.createElement("svg",Et({ref:e,width:o*(51/56),height:o,viewBox:"0 0 51 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M12.2754 3L37.2754 27.0741L12.2754 53",stroke:r,strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}))}),FM=["color","size"],Lb=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,FM);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M12.9783 2.30184C12.7972 2.12074 12.586 2 12.3143 2C12.0728 2 11.8314 2.09055 11.6503 2.30184L4.73816 9.84779L2.29327 7.34254C2.11217 7.16143 1.8707 7.07088 1.62923 7.07088C1.38776 7.07088 1.14629 7.19162 0.995367 7.37272C0.663345 7.76511 0.663345 8.36879 1.02555 8.73099L4.13448 11.9003C4.31559 12.0814 4.52687 12.1719 4.76835 12.1719C5.00982 12.1719 5.25129 12.0814 5.43239 11.8701L12.9783 3.62993C13.3406 3.2979 13.3406 2.66404 12.9783 2.30184Z",fill:r}))}),DM=["color","size"],Tb=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,DM);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33984 12.111V2.04761C2.33984 1.49532 2.78756 1.04761 3.33984 1.04761H10.8182C11.3705 1.04761 11.8182 1.49532 11.8182 2.04761V12.111C11.8182 12.6633 11.3705 13.111 10.8182 13.111H3.33984C2.78756 13.111 2.33984 12.6633 2.33984 12.111ZM3.33984 12.111V2.04761L10.8182 2.04761L10.8182 12.111L3.33984 12.111Z",fill:r}),L.createElement("path",{d:"M13.66 4.97388C13.66 4.69774 13.4361 4.47388 13.16 4.47388C12.8838 4.47388 12.66 4.69774 12.66 4.97388V13.9523H5.40491C5.12876 13.9523 4.90491 14.1761 4.90491 14.4523C4.90491 14.7284 5.12876 14.9523 5.40491 14.9523H13.16C13.4361 14.9523 13.66 14.7284 13.66 14.4523V4.97388Z",fill:r}))}),jM=["color","size"],BM=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,jM);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M25 31.625C8.64336 31.625 0.533984 17.3656 0.196875 16.759C-0.065625 16.28
9167 -0.065625 15.7129 0.196875 15.2406C0.533984 14.6344 8.64336 0.375 25 0.375C41.3566 0.375 49.466 14.6344 49.8031 15.241C50.0656 15.7133 50.0656 16.2871 49.8031 16.7594C49.466 17.3656 41.3566 31.625 25 31.625ZM3.40117 15.9977C5.25977 18.8145 12.557 28.5 25 28.5C37.4824 28.5 44.7473 18.8223 46.5988 16.0023C44.7402 13.1855 37.443 3.5 25 3.5C12.5176 3.5 5.25273 13.1777 3.40117 15.9977ZM25 25.375C19.8305 25.375 15.625 21.1695 15.625 16C15.625 10.8305 19.8305 6.625 25 6.625C30.1695 6.625 34.375 10.8305 34.375 16C34.375 21.1695 30.1695 25.375 25 25.375ZM25 9.75C21.5539 9.75 18.75 12.5539 18.75 16C18.75 19.4461 21.5539 22.25 25 22.25C28.4461 22.25 31.25 19.4461 31.25 16C31.25 12.5539 28.4461 9.75 25 9.75Z",fill:r}))}),HM=["color","size"],zM=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,HM);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.2553 6.05501C36.5966 5.71376 37.1514 5.71376 37.4926 6.05501C37.8339 6.39626 37.8339 6.95103 37.4926 7.29228L32.3765 12.4084C38.3601 15.8067 42.6046 20.7607 42.7917 20.9825C43.0682 21.3097 43.0699 21.7874 42.7936 22.113C42.3893 22.5908 32.7818 33.7978 22.0001 33.7978C18.9909 33.7978 15.9678 33.1203 13.0065 31.7785L7.74272 37.0423C7.57292 37.2121 7.34897 37.2978 7.12495 37.2978C6.90092 37.2978 6.67698 37.212 6.50545 37.0423C6.1642 36.701 6.1642 36.1462 6.50545 35.805L17.0426 25.2678C17.0453 25.265 17.0481 25.2622 17.0509 25.2595C17.0531 25.2573 17.0553 25.2551 17.0575 25.2529L25.7063 16.6041C25.7081 16.6023 25.7098 16.6005 25.7116 16.5987C25.7134 16.5969 25.7152 16.5952 25.717 16.5934L30.2895 12.0208C30.3028 12.0067 30.3164 11.9931 30.3304 11.9799L36.2553 6.05501ZM31.0895 13.6954L27.5301 17.2548C28.4835 18.476 28.9998 19.9721 28.9998 21.5478C28.9998 25.4083 25.8603 28.5478 21.9999 28.5478C20.4242 28.5478 18.9281 28.0314 17.7069 27.078L14.3353 30.4497C16.8728 31.5113 19.445 32.0478 22 32.0478C30.6537 32.0478 38.863 23.8071 40.9489 21.5478C39.6267 20.1195 35.855 16.3016 31.0895 13.6954ZM18.9574 25.8276C19.8392 26.458 20.8929 26.7977 21.9999 26.7977C24.8943 26.7977 27.2499 24.4422 27.2499 21.5477C27.2499 20.4409 26.9092 19.3873 26.2793 18.5056L18.9574 25.8276Z",fill:r}),L.createElement("path",{d:"M27.7418 10.3057C25.7504 9.63545 23.8184 9.29773 22.0001 9.29773C11.2183 9.29773 1.61084 20.5047 1.20659 20.9825C0.951064 21.2835 0.930064 21.721 1.15762 22.0482C1.27837 22.2215 4.17111 26.3287 9.18485 29.659C9.33358 29.7587 9.49985 29.806 9.66785 29.806C9.94963 29.806 10.2279 29.6695 10.3959 29.4122C10.6636 29.0115 10.5534 28.4672 10.1509 28.2012C6.46889 25.753 3.94889 22.7973 3.00561 21.595C5.01989 19.4075 13.2834 11.0478 22.0001 11.0478C23.6293 11.0478 25.3741 11.3558 27.1835 11.963C27.642 12.1275 28.139 11.8738 28.2913 11.4135C28.4453 10.955 28.2003 10.4598 27.7418 10.3057Z",fill:r}),L.createElement("path",{d:"M23.2197 14.6685C22.8224 14.5985 22.4164 14.5477 22 14.5477C18.1395 14.5477 15 17.6872 15 21.5477C15 21.9642 15.0508 22.3702 15.1225 22.7674C15.1977 23.1909 15.567 23.4902 15.9817 23.4902C16.0325 23.4902 16.0832 23.4867 16.1357 23.4762C16.6099 23.3922 16.9285 22.9371 16.8445 22.4629C16.7902 22.1654 16.75 21.8627 16.75 21.5477C16.75 18.6532 19.1055 16.2977 22 16.2977C22.315 16.2977 22.6177 16.338 22.9152 16.3905C23.3807 16.485 23.8444 16.1559 23.9284 15.6817C24.0124 15.2075 23.694 14.7525 23.2197 14.6685Z",fill:r}))}),Ab=function(t,e){return t||e?pa[$.BackgroundHover]:pa[$.BackgroundStateless]},Ib=function(t,e){return t?pa[$.AccentPrimaryHover]:e?pa[$.TextPlaceholder]:pa[$.TextPrimary]},Nb=function(t,e){return t?pa[$.BordersItem]:e?pa[$.BordersSecondary]:pa[$.BorderPrimaryStateless]},Rb=function(t,e){navigator.clipboard.writeText(t),e(!0)},Pf={Text:"text",Password:"password"},co="Input",c1=mt.span.attrs({className:Rt(co,"Icon")}).withConfig({componentId:"sc-150k0cz-0"})(function(t){var e=t.iconClickStart,n=t.iconClickEnd,r=t.disabled,s=t.readOnly,o=t.iconType,c=t.theme.palette;return pt(["display:flex;color:",";cursor:",";flex-shrink:0;",""],c[$.IconsPrimary],(e||n)&&!r&&!s?"pointer":"default",o==="end"&&pt(["color:",";
91"],c[$.IconsSecondary]))}),Fb=mt.span.attrs({className:Rt(co,"CopyIcon")}).withConfig({componentId:"sc-150k0cz-1"})(function(t){var e=t.theme.palette;return pt(["display:flex;color:",";cursor:pointer;"],e[$.IconsSecondary])}),GM=mt(Fb).attrs({className:Rt(co,"PasswordIcon")}).withConfig({componentId:"sc-150k0cz-2"})([""]),UM=mt.div.attrs({className:Rt(co,"Container")}).withConfig({componentId:"sc-150k0cz-3"})(function(){return pt(["display:block;color:inherit;font-size:inherit;width:100%;min-width:0;margin:0;padding:0;border:0;background-color:transparent;outline:none;"])}),Ag=mt.input.attrs({className:Rt(co,"Base")}).withConfig({componentId:"sc-150k0cz-4"})(function(t){var e=t.theme.palette,n=t.isEllipsis,r=n===void 0?!1:n;return pt(["display:block;color:inherit;width:100%;min-width:fit-content;margin:0;padding:0;border:0;background-color:transparent;outline:none;"," &::placeholder{color:",";}"],r&&pt(["text-overflow:ellipsis;"]),e[$.TextPlaceholder])}),WM=mt.div.attrs({className:Rt(co,"root")}).withConfig({componentId:"sc-150k0cz-5"})(function(t){var e=t.size,n=e===void 0?Re.Md:e,r=t.error,s=r===void 0?!1:r,o=t.fullWidth,c=o===void 0?!1:o,d=t.readOnly,f=d===void 0?!1:d,g=t.disabled,v=g===void 0?!1:g,x=t.isHovering,C=x===void 0?!1:x,y=t.isSelectedItems,h=y===void 0?!1:y,w=t.theme;return pt(["position:relative;display:inline-flex;align-items:center;box-sizing:border-box;column-gap:8px;cursor:text;transition:all 100ms ease-out;width:",";pointer-events:",";background-color:",";border-radius:",";border:1px solid ",";color:",";"," ",";","{","}"," "," &:hover{color:",";}",""],c?"100%":"300px",v?"none":"auto",Ab(f,v),w.shape.borderRadius[io.Md],Nb(f,v),v?w.palette[$.TextPlaceholder]:w.palette[$.TextPrimary],YP[n],h&&`
92      height: fit-content;
93
94      `.concat(Ag,` {
95        max-width: fit-content;
96        min-width: 20px;
97        flex-grow: 1;
98        width: 40px;
99      }
100    `),Ag,Eb[n],!f&&!v&&pt(["&:focus-within{background-color:","!important;border:1px solid ",";&:hover{border:1px solid ",";","{color:",";}}}"," &:hover{background-color:",";border:1px solid ",";","{color:",";}}"],w.palette[$.BackgroundSecondary],w.palette[$.AccentStateless],w.palette[$.AccentStateless],c1,w.palette[$.IconsPrimary],C&&pt(["","{color:",";}"],c1,w.palette[$.IconsPrimaryHover]),w.palette[$.BackgroundStateless],w.palette[$.BordersPrimaryHover],c1,w.palette[$.IconsPrimaryHover]),v&&pt(["","{color:",";}"],c1,w.palette[$.IconsMuted]),Ib(f,v),s&&KP)}),VM=mt.span.attrs({className:Rt(co,"ClearIcon")}).withConfig({componentId:"sc-150k0cz-6"})(function(t){var e=t.theme.palette;return pt(["display:flex;cursor:pointer;color:",";"],e[$.IconsPrimary])}),YM=mt.div.attrs({className:Rt(co,"NotificationBox")}).withConfig({componentId:"sc-150k0cz-7"})(function(t){var e=t.size,n=e===void 0?Re.Md:e,r=t.isTextarea,s=r===void 0?!1:r,o=t.theme.palette;return pt(["display:flex;position:absolute;align-items:center;max-height:34px;right:0px;padding:8px 12px;gap:6px;bottom:",";box-shadow:0px 2px 6px ",";background-color:",";border-radius:4px;align-items:center;",""],n===Re.Md?"45px":"35px",o[$.LargeShadow],o[$.BackgroundStateless],s&&`
101      bottom: `.concat(n===Re.Md?27:22,`px;
102      right: `).concat(n===Re.Md?16:12,`px;
103    `))}),ZM=mt.span.attrs({className:Rt(co,"NotificationIcon")}).withConfig({componentId:"sc-150k0cz-8"})(function(t){var e=t.theme.palette;return pt(["display:flex;color:",";"],e[$.IconsPrimary])}),KM=mt.span.attrs({className:Rt(co,"NotificationText")}).withConfig({componentId:"sc-150k0cz-9"})(function(t){var e=t.theme,n=e.palette,r=e.typography.font;return pt(["display:flex;white-space:nowrap;",";color:",";"],r[Vt.TextSmall],n[$.TextPrimary])}),$M=mt.div.attrs({className:Rt(co,"fieldWrapper")}).withConfig({componentId:"sc-150k0cz-10"})(function(t){var e=t.isSelectedItems;return pt(["width:100%;height:100%;display:inline-flex;flex-wrap:wrap;gap:8px;max-height:120px;",";::-webkit-scrollbar{display:none;}"],e&&`
104      overflow-y: auto;
105    `)}
105),Za=fn({Input:WM,Container:UM,Base:Ag,Icon:c1,CopyIcon:Fb,PasswordIcon:GM,ClearIcon:VM,NotificationBox:YM,NotificationIcon:ZM,NotificationText:KM,FieldWrapper:$M}),XM=["inputType","children","iconStart","iconEnd","iconChange","clearIcon","iconClickStart","iconClickEnd","clearIconClick","size","className","style","fullWidth","readOnly","disabled","hideCopyIcon","focusOnMount","focusOnClick","isEllipsis","copyTextMessage","copySuccessIcon","error","renderTags","showPlaceholder"],V2=function(t,e){switch(t){case Re.Md:return e==="start"?15:14;case Re.Sm:default:return e==="start"?13:10}},Ty=function(t){switch(t){case Re.Md:return 16;case Re.Sm:default:return 14}},Uc=Be(function(t,e){var n,r=t.inputType,s=t.children,o=t.iconStart,c=t.iconEnd,d=t.iconChange,f=t.clearIcon,g=t.iconClickStart,v=t.iconClickEnd,x=t.clearIconClick,C=t.size,y=C===void 0?Re.Md:C,h=t.className,w=t.style,E=t.fullWidth,M=t.readOnly,b=t.disabled,m=t.hideCopyIcon,_=m===void 0?!1:m,k=t.focusOnMount,R=k===void 0?!1:k,G=t.focusOnClick,T=G===void 0?!0:G,D=t.isEllipsis,A=D===void 0?!1:D,B=t.copyTextMessage,Z=t.copySuccessIcon,S=t.error,I=t.renderTags,N=t.showPlaceholder,z=Tt(t,XM),W=ct.useState(!1),Q=Xt(W,2),tt=Q[0],at=Q[1],X=ct.useState(!1),q=Xt(X,2),rt=q[0],ot=q[1],ft=ct.useState(!1),it=Xt(ft,2),Y=it[0],J=it[1],lt=ct.useRef(null),dt=(n=z.selectedItems)===null||n===void 0?void 0:n.length,yt=z.value||dt?"":z.placeholder,gt=tt&&M&&z.value.length>0&&!_,Dt=function(){var $t;b||M||(N?.(!1),($t=lt.current)===null||$t===void 0||$t.focus())};ct.useEffect(function(){R&&Dt()},[]),ct.useEffect(function(){setTimeout(function(){return ot(!1)},2e3)},[rt]);var Ht=function(){setTimeout(function(){at(!0)},150)},It=function(){setTimeout(function(){at(!1)},200)},qt=function($t,we){b||M||(T&&Dt(),we==="start"?g&&g($t):we==="end"?v&&v($t):x&&x($t))},Bt=function($t,we){return $t?L.createElement(Za.Icon,{onClick:function(Fe){return qt(Fe,we)},iconClickStart:g,iconClickEnd:v,iconType:we,disabled:b,readOnly:M},typeof $t=="function"?$t({size:V2(y,we)}):$t):void 0},ee=function(){return b||M||!f?void 0:L.createElement(Za.ClearIcon,{onClick:function($t){return qt($t,"clear")}},typeof f=="function"?f({size:V2(y,"clear")}):f)},Kt=function($t){return gt?L.createElement(Za.CopyIcon,{onClick:function(){return Rb(z.value,ot)}},typeof $t=="function"?$t():$t):void 0},Yt=function($t){$t.stopPropagation(),J(!Y)},oe=function(){return L.createElement(Za.PasswordIcon,{onClick:function($t){return Yt($t)}},Y?L.createElement(zM,{size:Ty(y)}):L.createElement(BM,{size:Ty(y)}))},ne=function(){return!r&&z!==null&&z!==void 0&&z.type?z?.type:r===Pf.Password&&!Y?Pf.Password:Pf.Text},ue=function(){return L.createElement(Za.FieldWrapper,{isSelectedItems:!!dt},I&&I(),L.createElement(Za.Base,Et({},z,{placeholder:yt,ref:lt,readOnly:!!M,type:ne(),isEllipsis:A})))},Qt=function(){return L.createElement(Za.NotificationBox,{size:y},L.createElement(Za.NotificationIcon,null,Z),L.createElement(Za.NotificationText,null,B))};return L.createElement(Za.Input,{onClick:T?Dt:void 0,ref:e,size:y,onMouseEnter:Ht,onMouseLeave:It,className:h,style:w,readOnly:M,disabled:b,fullWidth:!!E,error:S,clearIcon:f,isHovering:z.isHovering,isSelectedItems:!!dt},Bt(o,"start"),ue(),Kt(L.createElement(Tb,{size:V2(y,"copy")})),rt&&Qt(),ee(),r===Pf.Password&&oe(),Bt(c,"end"),Bt(d,""),s&&L.createElement(L.Fragment,null,s))}),qM={size:Re.Md,error:!1,fullWidth:!1,readOnly:!1,disabled:!1,copyTextMessage:"Copied!"};Uc.defaultProps=qM;var Db={size:et.oneOf(je(Re)),iconStart:et.oneOfType([et.node,et.func]),iconEnd:et.oneOfType([et.node,et.func]),iconChange:et.oneOfType([et.node,et.func]),copySuccessIcon:et.oneOfType([et.node,et.func]),clearIcon:et.oneOfType([et.node,et.func]),error:et.bool,fullWidth:et.bool,value:et.any,readOnly:et.bool,disabled:et.bool,iconClickStart:et.func,showPlaceholder:et.func,iconClickEnd:et.func,clearIconClick:et.func,focusOnMount:et.bool,focusOnClick:et.bool,copyTextMessage:et.string,inputType:et.string,renderTags:et.func};Uc.propTypes=Db;var zp=l9(),Xa="top",Fi="bottom",Di="right",qa="left",y3="auto",E1=[Xa,Fi,Di,qa],bd="start",w1="end",QM="clippingParents",jb="viewport",r1="popper",JM="reference",Ay=E1.reduce(function(t,e){return t.concat([e+"-"+bd,e+"-"+w1])},[]),Bb=[].concat(E1,[y3]).reduce(function(t,e){return t.concat([e,e+"-"+bd,e+"-"+w1])},[]),tL="beforeRead",eL="read",nL="afterRead",rL="beforeMain",aL="main",iL="afterMain",oL="beforeWrite",sL="write",lL="afterWrite",cL=[tL,eL,nL,rL,aL,iL,oL,sL,lL];
vendor: 17,342 bytes, line 105
105function Uo(t){return t?(t.nodeName||"").toLowerCase():null}function pi(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Wc(t){var e=pi(t).Element;return t instanceof e||t instanceof Element}function Ri(t){var e=pi(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function b3(t){if(typeof ShadowRoot>"u")return!1;var e=pi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function uL(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},o=e.elements[n];!Ri(o)||!Uo(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(c){var d=s[c];d===!1?o.removeAttribute(c):o.setAttribute(c,d===!0?"":d)}))})}function dL(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],o=e.attributes[r]||{},c=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),d=c.reduce(function(f,g){return f[g]="",f},{});!Ri(s)||!Uo(s)||(Object.assign(s.style,d),Object.keys(o).forEach(function(f){s.removeAttribute(f)}))})}}const hL={name:"applyStyles",enabled:!0,phase:"write",fn:uL,effect:dL,requires:["computeStyles"]};function Go(t){return t.split("-")[0]}var Rc=Math.max,wp=Math.min,wd=Math.round;function Ig(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Hb(){return!/^((?!chrome|android).)*safari/i.test(Ig())}function xd(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,o=1;e&&Ri(t)&&(s=t.offsetWidth>0&&wd(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&wd(r.height)/t.offsetHeight||1);var c=Wc(t)?pi(t):window,d=c.visualViewport,f=!Hb()&&n,g=(r.left+(f&&d?d.offsetLeft:0))/s,v=(r.top+(f&&d?d.offsetTop:0))/o,x=r.width/s,C=r.height/o;return{width:x,height:C,top:v,right:g+x,bottom:v+C,left:g,x:g,y:v}}function w3(t){var e=xd(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function zb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&b3(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ps(t){return pi(t).getComputedStyle(t)}function fL(t){return["table","td","th"].indexOf(Uo(t))>=0}function Ll(t){return((Wc(t)?t.ownerDocument:t.document)||window.document).documentElement}function Gp(t){return Uo(t)==="html"?t:t.assignedSlot||t.parentNode||(b3(t)?t.host:null)||Ll(t)}function Iy(t){return!Ri(t)||Ps(t).position==="fixed"?null:t.offsetParent}function pL(t){var e=/firefox/i.test(Ig()),n=/Trident/i.test(Ig());if(n&&Ri(t)){var r=Ps(t);if(r.position==="fixed")return null}var s=Gp(t);for(b3(s)&&(s=s.host);Ri(s)&&["html","body"].indexOf(Uo(s))<0;){var o=Ps(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function O1(t){for(var e=pi(t),n=Iy(t);n&&fL(n)&&Ps(n).position==="static";)n=Iy(n);return n&&(Uo(n)==="html"||Uo(n)==="body"&&Ps(n).position==="static")?e:n||pL(t)||e}function x3(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function f1(t,e,n){return Rc(t,wp(e,n))}function gL(t,e,n){var r=f1(t,e,n);return r>n?n:r}function Gb(){return{top:0,right:0,bottom:0,left:0}}function Ub(t){return Object.assign({},Gb(),t)}function Wb(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var mL=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Ub(typeof t!="number"?t:Wb(t,E1))};function vL(t){var e,n=t.state,r=t.name,s=t.options,o=n.elements.arrow,c=n.modifiersData.popperOffsets,d=Go(n.placement),f=x3(d),g=[qa,Di].indexOf(d)>=0,v=g?"height":"width";if(!(!o||!c)){var x=mL(s.padding,n),C=w3(o),y=f==="y"?Xa:qa,h=f==="y"?Fi:Di,w=n.rects.reference[v]+n.rects.reference[f]-c[f]-n.rects.popper[v],E=c[f]-n.rects.reference[f],M=O1(o),b=M?f==="y"?M.clientHeight||0:M.clientWidth||0:0,m=w/2-E/2,_=x[y],k=b-C[v]-x[h],R=b/2-C[v]/2+m,G=f1(_,R,k),T=f;n.modifiersData[r]=(e={},e[T]=G,e.centerOffset=G-R,e)}}function yL(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||zb(e.elements.popper,s)&&(e.elements.arrow=s))}const bL={name:"arrow",enabled:!0,phase:"main",fn:vL,effect:yL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cd(t){return t.split("-")[1]}var wL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xL(t,e){var n=t.x,r=t.y,s=e.devicePixelRatio||1;return{x:wd(n*s)/s||0,y:wd(r*s)/s||0}}function Ny(t){var e,n=t.popper,r=t.popperRect,s=t.placement,o=t.variation,c=t.offsets,d=t.position,f=t.gpuAcceleration,g=t.adaptive,v=t.roundOffsets,x=t.isFixed,C=c.x,y=C===void 0?0:C,h=c.y,w=h===void 0?0:h,E=typeof v=="function"?v({x:y,y:w}):{x:y,y:w};y=E.x,w=E.y;var M=c.hasOwnProperty("x"),b=c.hasOwnProperty("y"),m=qa,_=Xa,k=window;if(g){var R=O1(n),G="clientHeight",T="clientWidth";if(R===pi(n)&&(R=Ll(n),Ps(R).position!=="static"&&d==="absolute"&&(G="scrollHeight",T="scrollWidth")),R=R,s===Xa||(s===qa||s===Di)&&o===w1){_=Fi;var D=x&&R===k&&k.visualViewport?k.visualViewport.height:R[G];w-=D-r.height,w*=f?1:-1}if(s===qa||(s===Xa||s===Fi)&&o===w1){m=Di;var A=x&&R===k&&k.visualViewport?k.visualViewport.width:R[T];y-=A-r.width,y*=f?1:-1}}var B=Object.assign({position:d},g&&wL),Z=v===!0?xL({x:y,y:w},pi(n)):{x:y,y:w};if(y=Z.x,w=Z.y,f){var S;return Object.assign({},B,(S={},S[_]=b?"0":"",S[m]=M?"0":"",S.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",S))}return Object.assign({},B,(e={},e[_]=b?w+"px":"",e[m]=M?y+"px":"",e.transform="",e))}function CL(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,c=o===void 0?!0:o,d=n.roundOffsets,f=d===void 0?!0:d,g={placement:Go(e.placement),variation:Cd(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ny(Object.assign({},g,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ny(Object.assign({},g,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const SL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CL,data:{}};var Mf={passive:!0};function _L(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,o=s===void 0?!0:s,c=r.resize,d=c===void 0?!0:c,f=pi(e.elements.popper),g=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&g.forEach(function(v){v.addEventListener("scroll",n.update,Mf)}),d&&f.addEventListener("resize",n.update,Mf),function(){o&&g.forEach(function(v){v.removeEventListener("scroll",n.update,Mf)}),d&&f.removeEventListener("resize",n.update,Mf)}}const EL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_L,data:{}};var OL={left:"right",right:"left",bottom:"top",top:"bottom"};function sp(t){return t.replace(/left|right|bottom|top/g,function(e){return OL[e]})}var kL={start:"end",end:"start"};function Ry(t){return t.replace(/start|end/g,function(e){return kL[e]})}function C3(t){var e=pi(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function S3(t){return xd(Ll(t)).left+C3(t).scrollLeft}function PL(t,e){var n=pi(t),r=Ll(t),s=n.visualViewport,o=r.clientWidth,c=r.clientHeight,d=0,f=0;if(s){o=s.width,c=s.height;var g=Hb();(g||!g&&e==="fixed")&&(d=s.offsetLeft,f=s.offsetTop)}return{width:o,height:c,x:d+S3(t),y:f}}function ML(t){var e,n=Ll(t),r=C3(t),s=(e=t.ownerDocument)==null?void 0:e.body,o=Rc(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Rc(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),d=-r.scrollLeft+S3(t),f=-r.scrollTop;return Ps(s||n).direction==="rtl"&&(d+=Rc(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:c,x:d,y:f}}function _3(t){var e=Ps(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Vb(t){return["html","body","#document"].indexOf(Uo(t))>=0?t.ownerDocument.body:Ri(t)&&_3(t)?t:Vb(Gp(t))}function p1(t,e){var n;e===void 0&&(e=[]);var r=Vb(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),o=pi(r),c=s?[o].concat(o.visualViewport||[],_3(r)?r:[]):r,d=e.concat(c);return s?d:d.concat(p1(Gp(c)))}function Ng(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function LL(t,e){var n=xd(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Fy(t,e,n){return e===jb?Ng(PL(t,n)):Wc(e)?LL(e,n):Ng(ML(Ll(t)))}function TL(t){var e=p1(Gp(t)),n=["absolute","fixed"].indexOf(Ps(t).position)>=0,r=n&&Ri(t)?O1(t):t;return Wc(r)?e.filter(function(s){return Wc(s)&&zb(s,r)&&Uo(s)!=="body"}):[]}function AL(t,e,n,r){var s=e==="clippingParents"?TL(t):[].concat(e),o=[].concat(s,[n]),c=o[0],d=o.reduce(function(f,g){var v=Fy(t,g,r);return f.top=Rc(v.top,f.top),f.right=wp(v.right,f.right),f.bottom=wp(v.bottom,f.bottom),f.left=Rc(v.left,f.left),f},Fy(t,c,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function Yb(t){var e=t.reference,n=t.element,r=t.placement,s=r?Go(r):null,o=r?Cd(r):null,c=e.x+e.width/2-n.width/2,d=e.y+e.height/2-n.height/2,f;switch(s){case Xa:f={x:c,y:e.y-n.height};break;case Fi:f={x:c,y:e.y+e.height};break;case Di:f={x:e.x+e.width,y:d};break;case qa:f={x:e.x-n.width,y:d};break;default:f={x:e.x,y:e.y}}var g=s?x3(s):null;if(g!=null){var v=g==="y"?"height":"width";switch(o){case bd:f[g]=f[g]-(e[v]/2-n[v]/2);break;case w1:f[g]=f[g]+(e[v]/2-n[v]/2);break}}return f}function x1(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,o=n.strategy,c=o===void 0?t.strategy:o,d=n.boundary,f=d===void 0?QM:d,g=n.rootBoundary,v=g===void 0?jb:g,x=n.elementContext,C=x===void 0?r1:x,y=n.altBoundary,h=y===void 0?!1:y,w=n.padding,E=w===void 0?0:w,M=Ub(typeof E!="number"?E:Wb(E,E1)),b=C===r1?JM:r1,m=t.rects.popper,_=t.elements[h?b:C],k=AL(Wc(_)?_:_.contextElement||Ll(t.elements.popper),f,v,c),R=xd(t.elements.reference),G=Yb({reference:R,element:m,placement:s}),T=Ng(Object.assign({},m,G)),D=C===r1?T:R,A={top:k.top-D.top+M.top,bottom:D.bottom-k.bottom+M.bottom,left:k.left-D.left+M.left,right:D.right-k.right+M.right},B=t.modifiersData.offset;if(C===r1&&B){var Z=B[s];Object.keys(A).forEach(function(S){var I=[Di,Fi].indexOf(S)>=0?1:-1,N=[Xa,Fi].indexOf(S)>=0?"y":"x";A[S]+=Z[N]*I})}return A}function IL(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,o=n.rootBoundary,c=n.padding,d=n.flipVariations,f=n.allowedAutoPlacements,g=f===void 0?Bb:f,v=Cd(r),x=v?d?Ay:Ay.filter(function(h){return Cd(h)===v}):E1,C=x.filter(function(h){return g.indexOf(h)>=0});C.length===0&&(C=x);var y=C.reduce(function(h,w){return h[w]=x1(t,{placement:w,boundary:s,rootBoundary:o,padding:c})[Go(w)],h},{});return Object.keys(y).sort(function(h,w){return y[h]-y[w]})}function NL(t){if(Go(t)===y3)return[];var e=sp(t);return[Ry(t),e,Ry(e)]}function RL(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,d=c===void 0?!0:c,f=n.fallbackPlacements,g=n.padding,v=n.boundary,x=n.rootBoundary,C=n.altBoundary,y=n.flipVariations,h=y===void 0?!0:y,w=n.allowedAutoPlacements,E=e.options.placement,M=Go(E),b=M===E,m=f||(b||!h?[sp(E)]:NL(E)),_=[E].concat(m).reduce(function(ot,ft){return ot.concat(Go(ft)===y3?IL(e,{placement:ft,boundary:v,rootBoundary:x,padding:g,flipVariations:h,allowedAutoPlacements:w}):ft)},[]),k=e.rects.reference,R=e.rects.popper,G=new Map,T=!0,D=_[0],A=0;A<_.length;A++){var B=_[A],Z=Go(B),S=Cd(B)===bd,I=[Xa,Fi].indexOf(Z)>=0,N=I?"width":"height",z=x1(e,{placement:B,boundary:v,rootBoundary:x,altBoundary:C,padding:g}),W=I?S?Di:qa:S?Fi:Xa;k[N]>R[N]&&(W=sp(W));var Q=sp(W),tt=[];if(o&&tt.push(z[Z]<=0),d&&tt.push(z[W]<=0,z[Q]<=0),tt.every(function(ot){return ot})){D=B,T=!1;break}G.set(B,tt)}if(T)for(var at=h?3:1,X=function(ot){var ft=_.find(function(it){var Y=G.get(it);if(Y)return Y.slice(0,ot).every(function(J){return J})});if(ft)return D=ft,"break"},q=at;q>0;q--){var rt=X(q);if(rt==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}const FL={name:"flip",enabled:!0,phase:"main",fn:RL,requiresIfExists:["offset"],data:{_skip:!1}};function Dy(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jy(t){return[Xa,Di,Fi,qa].some(function(e){return t[e]>=0})}function DL(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,c=x1(e,{elementContext:"reference"}),d=x1(e,{altBoundary:!0}),f=Dy(c,r),g=Dy(d,s,o),v=jy(f),x=jy(g);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:g,isReferenceHidden:v,hasPopperEscaped:x},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":x})}const jL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:DL};function BL(t,e,n){var r=Go(t),s=[qa,Xa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,c=o[0],d=o[1];return c=c||0,d=(d||0)*s,[qa,Di].indexOf(r)>=0?{x:d,y:c}:{x:c,y:d}}function HL(t){var e=t.state,n=t.options,r=t.name,s=n.offset,o=s===void 0?[0,0]:s,c=Bb.reduce(function(v,x){return v[x]=BL(x,e.rects,o),v},{}),d=c[e.placement],f=d.x,g=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=g),e.modifiersData[r]=c}const zL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HL};function GL(t){var e=t.state,n=t.name;e.modifiersData[n]=Yb({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const UL={name:"popperOffsets",enabled:!0,phase:"read",fn:GL,data:{}};function WL(t){return t==="x"?"y":"x"}function VL(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,d=c===void 0?!1:c,f=n.boundary,g=n.rootBoundary,v=n.altBoundary,x=n.padding,C=n.tether,y=C===void 0?!0:C,h=n.tetherOffset,w=h===void 0?0:h,E=x1(e,{boundary:f,rootBoundary:g,padding:x,altBoundary:v}),M=Go(e.placement),b=Cd(e.placement),m=!b,_=x3(M),k=WL(_),R=e.modifiersData.popperOffsets,G=e.rects.reference,T=e.rects.popper,D=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,A=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if(R){if(o){var S,I=_==="y"?Xa:qa,N=_==="y"?Fi:Di,z=_==="y"?"height":"width",W=R[_],Q=W+E[I],tt=W-E[N],at=y?-T[z]/2:0,X=b===bd?G[z]:T[z],q=b===bd?-T[z]:-G[z],rt=e.elements.arrow,ot=y&&rt?w3(rt):{width:0,height:0},ft=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gb(),it=ft[I],Y=ft[N],J=f1(0,G[z],ot[z]),lt=m?G[z]/2-at-J-it-A.mainAxis:X-J-it-A.mainAxis,dt=m?-G[z]/2+at+J+Y+A.mainAxis:q+J+Y+A.mainAxis,yt=e.elements.arrow&&O1(e.elements.arrow),gt=yt?_==="y"?yt.clientTop||0:yt.clientLeft||0:0,Dt=(S=B?.[_])!=null?S:0,Ht=W+lt-Dt-gt,It=W+dt-Dt,qt=f1(y?wp(Q,Ht):Q,W,y?Rc(tt,It):tt);R[_]=qt,Z[_]=qt-W}if(d){var Bt,ee=_==="x"?Xa:qa,Kt=_==="x"?Fi:Di,Yt=R[k],oe=k==="y"?"height":"width",ne=Yt+E[ee],ue=Yt-E[Kt],Qt=[Xa,qa].indexOf(M)!==-1,$t=(Bt=B?.[k])!=null?Bt:0,we=Qt?ne:Yt-G[oe]-T[oe]-$t+A.altAxis,Fe=Qt?Yt+G[oe]+T[oe]-$t-A.altAxis:ue,_e=y&&Qt?gL(we,Yt,Fe):f1(y?we:ne,Yt,y?Fe:ue);R[k]=_e,Z[k]=_e-Yt}e.modifiersData[r]=Z}}const YL={name:"preventOverflow",enabled:!0,phase:"main",fn:VL,requiresIfExists:["offset"]};function ZL(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function KL(t){return t===pi(t)||!Ri(t)?C3(t):ZL(t)}function $L(t){var e=t.getBoundingClientRect(),n=wd(e.width)/t.offsetWidth||1,r=wd(e.height)/t.offsetHeight||1;return n!==1||r!==1}function XL(t,e,n){n===void 0&&(n=!1);var r=Ri(e),s=Ri(e)&&$L(e),o=Ll(e),c=xd(t,s,n),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((Uo(e)!=="body"||_3(o))&&(d=KL(e)),Ri(e)?(f=xd(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):o&&(f.x=S3(o))),{x:c.left+d.scrollLeft-f.x,y:c.top+d.scrollTop-f.y,width:c.width,height:c.height}}function qL(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function s(o){n.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(d){if(!n.has(d)){var f=e.get(d);f&&s(f)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||s(o)}),r}function QL(t){var e=qL(t);return cL.reduce(function(n,r){return n.concat(e.filter(function(s){return s.p
105hase===r}))},[])}function JL(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function tT(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var By={placement:"bottom",modifiers:[],strategy:"absolute"};function Hy(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function eT(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,o=s===void 0?By:s;return function(c,d,f){f===void 0&&(f=o);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},By,o),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},v=[],x=!1,C={state:g,setOptions:function(w){var E=typeof w=="function"?w(g.options):w;h(),g.options=Object.assign({},o,g.options,E),g.scrollParents={reference:Wc(c)?p1(c):c.contextElement?p1(c.contextElement):[],popper:p1(d)};var M=QL(tT([].concat(r,g.options.modifiers)));return g.orderedModifiers=M.filter(function(b){return b.enabled}),y(),C.update()},forceUpdate:function(){if(!x){var w=g.elements,E=w.reference,M=w.popper;if(Hy(E,M)){g.rects={reference:XL(E,O1(M),g.options.strategy==="fixed"),popper:w3(M)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(T){return g.modifiersData[T.name]=Object.assign({},T.data)});for(var b=0;b<g.orderedModifiers.length;b++){if(g.reset===!0){g.reset=!1,b=-1;continue}var m=g.orderedModifiers[b],_=m.fn,k=m.options,R=k===void 0?{}:k,G=m.name;typeof _=="function"&&(g=_({state:g,options:R,name:G,instance:C})||g)}}}},update:JL(function(){return new Promise(function(w){C.forceUpdate(),w(g)})}),destroy:function(){h(),x=!0}};if(!Hy(c,d))return C;C.setOptions(f).then(function(w){!x&&f.onFirstUpdate&&f.onFirstUpdate(w)});function y(){g.orderedModifiers.forEach(function(w){var E=w.name,M=w.options,b=M===void 0?{}:M,m=w.effect;if(typeof m=="function"){var _=m({state:g,name:E,instance:C,options:b}),k=function(){};v.push(_||k)}})}function h(){v.forEach(function(w){return w()}),v=[]}return C}}var nT=[EL,UL,SL,hL,zL,FL,YL,bL,jL],rT=eT({defaultModifiers:nT});function aT(t){var e=document.createElement("div");return e.setAttribute("id",t),e}function iT(t){document.body.append(t)}function Zb(t){var e=ct.useRef(null);ct.useEffect(function(){var r=document.querySelector("#".concat(t)),s=r||aT(t);return r||iT(s),e.current&&s.append(e.current),function(){e.current&&e.current.remove(),s.childNodes.length===-1&&s.remove()}},[]);function n(){return e.current||(e.current=document.createElement("div")),e.current}return n()}var Mr={AutoStart:"auto-start",Auto:"auto",AutoEnd:"auto-end",TopStart:"top-start",Top:"top",TopEnd:"top-end",BottomStart:"bottom-start",Bottom:"bottom",BottomEnd:"bottom-end",LeftStart:"left-start",Left:"left",LeftEnd:"left-end",RightStart:"right-start",Right:"right",RightEnd:"right-end"},oT={Absloute:"absolute",Fixed:"fixed"},Y2,sT=(Y2={},V(V(V(V(V(V(V(V(V(V(Y2,Mr.Auto,pt(["top:0px;bottom:0px;left:0px;right:0px;"])),Mr.AutoEnd,pt(["top:0px;bottom:0px;left:0px;right:0px;"])),Mr.AutoStart,pt(["top:0px;bottom:0px;left:0px;right:0px;"])),Mr.Right,pt(["left:-4px;"])),Mr.RightEnd,pt(["left:-4px;"])),Mr.RightStart,pt(["left:-4px;"])),Mr.Left,pt(["right:-4px;"])),Mr.LeftEnd,pt(["right:-4px;"])),Mr.LeftStart,pt(["right:-4px;"])),Mr.Top,pt(["bottom:-4px;"])),V(V(V(V(V(Y2,Mr.TopEnd,pt(["bottom:-4px;"])),Mr.TopStart,pt(["bottom:-4px;"])),Mr.Bottom,pt(["top:-4px;"])),Mr.BottomEnd,pt(["top:-4px;"])),Mr.BottomStart,pt(["top:-4px;"]))),Up="Popper",lT=mt.div.attrs({className:Rt(Up,"root")}).withConfig({componentId:"sc-1373tsp-0"})([""]),cT=mt.div.attrs({className:Rt(Up,"wrapper")}).withConfig({componentId:"sc-1373tsp-1"})(function(t){var e=t.zIndex;return pt(["position:relative;z-index:",";"],e)}),uT=mt.div.attrs({className:Rt(Up,"arrow")}).withConfig({componentId:"sc-1373tsp-2"})(function(t){var e=t.warning,n=e===void 0?!1:e,r=t.position,s=r===void 0?Mr.Right:r,o=t.theme;return pt(["width:8px;height:8px;position:absolute;&::before{content:'';background:",";width:8px;height:8px;transform:rotate(45deg);position:absolute;top:0;left:0;z-index:-1;}
105",""],n?o.palette[$.BackgroundOrange]:o.palette[$.BackgroundGrey],sT[s])}),dT=mt.div.attrs({className:Rt(Up,"Overlay")}).withConfig({componentId:"sc-1373tsp-3"})(function(){return pt(["position:fixed;right:0;bottom:0;top:0;left:0;background-color:transparent;"])}),Lf=fn({Popper:lT,Overlay:dT,Arrow:uT,PopperWrapper:cT}),hT=["anchorEl","children","open","warning","position","arrow","popperOptions","onClick","overlay","zIndex","enableUnderlayingEvent","wrapperStyles"];function zy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Z2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zy(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Wp=Be(function(t,e){var n=t.anchorEl,r=t.children,s=t.open,o=t.warning,c=o===void 0?!1:o,d=t.position,f=d===void 0?"bottom":d,g=t.arrow,v=g===void 0?!1:g,x=t.popperOptions,C=t.onClick,y=t.overlay,h=y===void 0?!1:y,w=t.zIndex,E=w===void 0?1300:w,M=t.enableUnderlayingEvent,b=t.wrapperStyles,m=b===void 0?{}:b,_=Tt(t,hT),k=Zb(Rt("Popper")),R=ct.useRef(null),G=sm(R,e);ct.useEffect(function(){if(!(!n||!s||R.current===null)){var Z=[{name:"arrow",options:{element:"[data-popper-arrow]"}},{name:"offset",options:{offset:[0,10]}}],S=v?Z:[];x&&x.modifiers!=null&&(S=S.concat(x.modifiers));var I=rT(n,R.current,Z2(Z2({placement:f},x),{},{modifiers:S}));return G.current=I,function(){I.destroy(),G.current=null}}},[n,s,x,f,v]);var T=function(Z){setTimeout(function(){if(Z.clientX&&Z.clientY){var S=document.elementFromPoint(Z.clientX,Z.clientY);S&&S.dispatchEvent(Z.nativeEvent)}},0)},D=function(Z){Z.persist(),Z.preventDefault(),Z.stopPropagation(),C&&C(Z),M&&T(Z)},A=function(){return L.createElement(Lf.Overlay,{onClick:D,onContextMenu:D})};if(!s)return L.createElement("div",{hidden:!0,ref:G});var B=function(){var Z;return L.createElement(Lf.PopperWrapper,{zIndex:E,style:Z2({},m)},h&&A(),L.createElement(Lf.Popper,Et({ref:G},_),r,v&&L.createElement(Lf.Arrow,{warning:c,"data-popper-arrow":!0,position:(G==null||(Z=G.state)===null||Z===void 0?void 0:Z.placement)||f})))};return zp.createPortal(B(),k)});Wp.defaultProps={};var Kb={anchorEl:et.oneOfType([et.instanceOf(Element),et.object]),popperOptions:et.shape({modifiers:et.arrayOf(et.shape({data:et.object,effect:et.func,enabled:et.bool,fn:et.func,name:et.any.isRequired,options:et.object,phase:et.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:et.arrayOf(et.string),requiresIfExists:et.arrayOf(et.string)})),onFirstUpdate:et.func,placement:et.oneOf(je(Mr)),strategy:et.oneOf(je(oT))}),overlay:et.bool,warning:et.bool,arrow:et.bool,zIndex:et.number,enableUnderlayingEvent:et.bool,wrapperStyles:et.object};Wp.propTypes=Kb;var $b="Menu",fT=mt.div.attrs({className:Rt($b,"Overlay")}).withConfig({componentId:"sc-10okxhw-0"})(function(){return pt(["position:fixed;right:0;bottom:0;top:0;left:0;background-color:transparent;z-index:-1;"])}),pT=im(["from{opacity:0;}to{opacity:1;}"]),gT=im(["from{transform:scale(0.97);margin-top:0px;}to{transform:scale(1);margin-top:4px;}"]),mT=pt(["animation:"," 250ms 0ms cubic-bezier(0.4,0,0.2,1),"," 250ms cubic-bezier(0.4,0,0.2,1);"],pT,gT),vT=mt.div.attrs({className:Rt($b,"root")}).withConfig({componentId:"sc-10okxhw-1"})(function(t){var e=t.rect,n=t.theme,r=t.scroll,s=t.maxHeight,o=s===void 0?"":s;return pt(["min-width:","px;width:195px;min-height:16px;overflow-x:hidden;overflow-y:auto;transition:opacity 250ms cubic-bezier(0.4,0,0,1),transform 250ms cubic-bezier(0.4,0,0,1),margin-top 250ms cubic-bezier(0.4,0,0,1);outline:0;box-shadow:0 2px 4px ",";border-radius:",";"," "," margin-top:4px;",""],e.width,n.palette[$.MediumShadow],n.shape.borderRadius[io.Md],r&&k9,o&&pt(["max-height:",";"],Number.isNaN(+o)?o:"".concat(o,"px")),mT)}),yT=fn({Menu:vT,Overlay:fT}),bT=["id","children","open","fullWidth","anchorElPosition","anchorEl","onClose","containerProps","alignCenter","maxHeight","position","popperOptions","enableOverlay","zIndex","hideScroll","scroll","enableUnderlayingEvent","popperWrapperStyles"];function Gy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function wT(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
105e%2?Gy(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ms=Be(function(t,e){t.id;var n=t.children,r=t.open;t.fullWidth;var s=t.anchorElPosition,o=t.anchorEl,c=t.onClose,d=t.containerProps,f=t.alignCenter,g=t.maxHeight,v=t.position,x=t.popperOptions,C=t.enableOverlay,y=C===void 0?!0:C,h=t.zIndex,w=t.hideScroll,E=w===void 0?!0:w,M=t.scroll,b=M===void 0?!0:M,m=t.enableUnderlayingEvent,_=m===void 0?!1:m,k=t.popperWrapperStyles,R=k===void 0?{}:k,G=Tt(t,bT),T=ct.useState(null),D=Xt(T,2),A=D[0],B=D[1],Z=ct.useState(new DOMRect),S=Xt(Z,2),I=S[0],N=S[1],z=ct.useRef(null),W=ct.useCallback(function(){var at,X=wT({top:0,left:0,height:0,width:0},s||{}),q=new DOMRect(X.left,X.top,X.width,X.height);N((at=o?.getBoundingClientRect())!==null&&at!==void 0?at:q)},[r,A,o]),Q=ct.useCallback(function(){r&&(A&&clearTimeout(A),B(setTimeout(W,300)))},[r,A]);ct.useEffect(function(){return window.addEventListener("resize",Q),function(){window.removeEventListener("resize",Q)}},[Q]),ct.useEffect(function(){W()},[s,W]),ct.useEffect(function(){if(E)return r?(document.body.classList.add("Menu-open"),W()):document.body.classList.remove("Menu-open"),function(){document.body.classList.remove("Menu-open")}},[r,W]);var tt=function(at){typeof c=="function"&&c(at)};return L.createElement(L.Fragment,null,L.createElement(Wp,{ref:z,position:v||"bottom-start",open:!!o,anchorEl:o,overlay:!!y,onClick:tt,popperOptions:x,zIndex:h,enableUnderlayingEvent:_,wrapperStyles:R},L.createElement(yT.Menu,Et({},d,{alignCenter:!!f,scroll:b,rect:I},G,{ref:e,maxHeight:g}),n)))}),xT={open:!1,containerProps:{},maxHeight:250,position:Mr.BottomStart,enableOverlay:!0,hideScroll:!0,scroll:!0};Ms.defaultProps=xT;var Xb={anchorElPosition:et.shape({left:et.number,right:et.number,top:et.number,bottom:et.number}),anchorEl:et.instanceOf(Element),open:et.bool,fullWidth:et.bool,onClose:et.func,id:et.string,containerProps:et.object,alignCenter:et.bool,maxHeight:et.oneOfType([et.string,et.number]),popperOptions:Kb.popperOptions,position:et.oneOf(je(Mr)),enableOverlay:et.bool,zIndex:et.number,hideScroll:et.bool,scroll:et.bool,enableUnderlayingEvent:et.bool,popperWrapperStyles:et.object,style:et.object};Ms.propTypes=Xb;var Jr={Sm:"sm",Md:"md"},CT=V(V({},Jr.Sm,function(t){var e=t.theme.typography.font;return pt(["padding:8px 16px;min-height:32px;",""],e[Vt.LabelMedium])}),Jr.Md,function(t){var e=t.theme.typography.font;return pt(["padding:11px 16px;min-height:40px;",""],e[Vt.LabelLarge])}),Tl="MenuItem",qb=mt.span.attrs({className:Rt(Tl,"Icon")}).withConfig({componentId:"sc-rrzye0-0"})(function(t){var e=t.theme.palette,n=t.disabled;return pt(["flex-shrink:0;margin-right:10px;color:",";"],n?e[$.TextPlaceholder]:e[$.IconsPrimary])}),ST=mt(qb).attrs({className:Rt(Tl,"Actions")}).withConfig({componentId:"sc-rrzye0-1"})(function(){return pt(["margin-right:0px;margin-left:16px;"])}),_T=mt.span.attrs({className:Rt(Tl,"Label")}).withConfig({componentId:"sc-rrzye0-2"})(["align-items:center;column-gap:4px;flex-grow:1;"]),ET=mt.div.attrs({className:Rt(Tl,"wrapper")}).withConfig({componentId:"sc-rrzye0-3"})(function(t){var e=t.divider,n=e===void 0?!1:e,r=t.noOptionsText,s=r===void 0?!1:r,o=t.disabled,c=o===void 0?!1:o,d=t.theme;return pt([""," ",""],n&&pt(["width:100%;height:1px;background:",";box-sizing:border-box;"],d.palette[$.BordersSecondary]),(s||c)&&pt(["color:",";"],d.palette[$.ButtonDisabledText]))}),OT=mt.div.attrs({className:Rt(Tl,"root")}).withConfig({componentId:"sc-rrzye0-4"})(function(t){var e=t.size,n=e===void 0?Jr.Sm:e,r=t.active,s=t.theme,o=t.disableHover,c=o===void 0?!1:o,d=t.noOptionsText,f=t.disabled;return pt(["display:flex;justify-content:space-between;flex-direction:row;align-items:center;width:100%;background:",";color:",";cursor:pointer;box-sizing:border-box;transition:all 100ms ease-out;"," &:focus-within,&:focus,&:hover{",";","}",""],s.palette[r?$.BackgroundActive:$.BackgroundSecondary],s.palette[$.TextPrimary],CT[n],!c&&"background-color: ".concat(s.palette[$.Backgroun
105dHover]),(d||f)&&pt(["cursor:default;background-color:white;"]),(d||f)&&pt(["& > svg{path{fill:",";}}color:",";"],s.palette[$.ButtonDisabledText],s.palette[$.ButtonDisabledText]))}),kT=mt.div.attrs({className:Rt(Tl,"prefix")}).withConfig({componentId:"sc-rrzye0-5"})(function(){return pt(["display:flex;"])}),PT=mt.div.attrs({className:Rt(Tl,"content")}).withConfig({componentId:"sc-rrzye0-6"})(function(){return pt(["flex-grow:1;line-height:16px;"])}),MT=mt.div.attrs({className:Rt(Tl,"suffix")}).withConfig({componentId:"sc-rrzye0-7"})(function(){return pt(["display:flex;margin-left:8px;"])}),Ni=fn({MenuItemWrapper:ET,MenuItem:OT,MenuPrefix:kT,MenuContent:PT,MenuSuffix:MT,Label:_T,Icon:qb,Actions:ST}),LT=["list","depth","children","disableHover","noOptionsText","disabled","enableScrollIntoView"];function Uy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function TT(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Uy(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var so=Be(function(t,e){var n=t.list,r=t.depth,s=r===void 0?0:r,o=t.children,c=t.disableHover,d=t.noOptionsText,f=t.disabled,g=t.enableScrollIntoView,v=Tt(t,LT),x=ct.useRef(null),C=L.useState(null),y=Xt(C,2),h=y[0],w=y[1],E=L.useState([]),M=Xt(E,2),b=M[0],m=M[1],_=function(D){w(D.currentTarget)},k=function(){var D;(D=x.current)===null||D===void 0||D.scrollIntoView({behavior:"auto",block:"nearest"})};ct.useEffect(function(){v.active&&g&&k()},[v.active]);var R=function(D,A,B){var Z=b.slice(0);Z[B]=A,m(Z),_(D)},G=function(D){var A=b.slice(0);A[D]="",m(A),w(null)},T=function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return D.map(function(B){var Z=B.subList&&B.subList.length>0,S;if(b[A]===B.key&&Z){var I=A+1;S=L.createElement(Ms,Et({key:B.key,position:"right",open:!!h,anchorEl:h,enableOverlay:!1},B.subMenuProps),L.createElement(so,Et({list:B.subList,depth:I},v)))}return B.content==="divider"?L.createElement(Ni.MenuItemWrapper,{divider:!0,key:B.key}):L.createElement(Ni.MenuItemWrapper,Et({disabled:!1,key:B.key,onMouseLeave:function(){return G(A)}},v),L.createElement(Ni.MenuItem,Et({},v,{className:B.className,ref:e,active:!!B.active,onClick:B.onClick?function(N){return B.onClick(TT({event:N},v))}:void 0,onMouseEnter:function(N){return R(N,B.key,A)},disableHover:c||B.disableHover}),B.prefix&&L.createElement(Ni.MenuPrefix,null,typeof B.prefix=="function"?B.prefix(v):B.prefix),B.content&&L.createElement(Ni.MenuContent,null,typeof B.content=="function"?B.content(v):B.content),(B.suffix||B.subList)&&L.createElement(Ni.MenuSuffix,null,typeof B.suffix=="function"?B.suffix(v):B.suffix,B.subList&&L.createElement(RM,{size:10,color:"#768A9F"}))),S)})};return n?L.createElement(L.Fragment,null,T(n,s)):v.value==="divider"?L.createElement(Ni.MenuItemWrapper,{divider:!0,key:v.value}):L.createElement(Ni.MenuItemWrapper,{noOptionsText:!!d,disabled:!!f},L.createElement(Ni.MenuItem,Et({},v,{ref:x,disableHover:c,noOptionsText:d,disabled:f}),o))});so.displayName="MenuItem";var AT={size:Jr.Sm,active:!1};so.defaultProps=AT,so.propTypes={size:et.oneOf(je(Jr)),children:et.oneOfType([et.node,et.func]),active:et.bool,value:et.oneOfType([et.string,et.number,et.bool,et.oneOf([null])]),depth:et.number,disableHover:et.bool,noOptionsText:et.bool,disabled:et.bool,enableScrollIntoView:et.bool};var IT=["children","disabled","size"],NT=function(t){switch(t){case Jr.Md:return 16;case Jr.Sm:default:return 14}},Rg=Be(function(t,e){var n=t.children,r=t.disabled,s=t.size,o=s===void 0?Jr.Md:s,c=Tt(t,IT);return L.createElement(Ni.Icon,Et({disabled:r},c,{ref:e}),n&&typeof n=="function"?n({size:NT(o)}):n)});Rg.defaultProps={size:Jr.Md},Rg.propTypes={size:et.oneOf(je(Jr)),children:et.oneOfType([et.node,et.func]).isRequired,disabled:et.bool};var RT=["children"],Vp=Be(function(t,e){var n=t.children,r=Tt(t,RT);return L.createElement(Ni.Label,Et({},r,{ref:e}),n)});Vp.displayName="MenuItemLabel";var FT=["children"],lp=Be(function(t,e){var n=t.children,r=Tt(t,FT);return L.createElement(Ni.Actions,Et({},r,{ref:e}),n&&typeof n=="function"?n({size:r.size}):n)});lp.displayName="MenuItemActions",lp.defaultProps={size:Jr.Md},lp.propTypes={size:et.oneOf(je(Jr)),children:et.oneOfType([et.node,et.func]).isRequired};var DT=["color","size"],Qb=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,DT);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M43.3196 40.0403C44.2253 40.9461 44.2253 42.4146 43.3196 43.3204C42.4138 44.2262 40.9453 44.2262 40.0396 43.3204L21.9997 25.2802L3.95952 43.3207C3.05376 44.2264 1.58525 44.2264 0.679494 43.3207C-0.226258 42.4149 -0.226258 40.9464 0.679495 40.0406L18.7197 22.0001L0.679313 3.95941C-0.226437 3.05364 -0.226439 1.5851 0.679314 0.679328C1.58507 -0.226442 3.05358 -0.226443 3.95934 0.679328L21.9997 18.72L40.0398 0.679604C40.9455 -0.226163 42.414 -0.226165 43.3198 0.679605C44.225
1055 1.58537 44.2255 3.05392 43.3198 3.95969L25.2797 22.0001L43.3196 40.0403Z",fill:r}))}),jT=V(V({},Re.Sm,function(t){var e=t.theme.typography.font;return pt(e[Vt.LabelExtraSmallUp])}),Re.Md,function(t){var e=t.theme.typography.font;return pt(e[Vt.LabelSmall])}),BT="FormHint",HT=mt.span.attrs({className:Rt(BT,"root")}).withConfig({componentId:"sc-1vu99sv-0"})(function(t){var e=t.size,n=e===void 0?Re.Md:e,r=t.error,s=r===void 0?!1:r,o=t.disabled,c=o===void 0?!1:o,d=t.theme;return pt(["display:flex;align-items:center;color:",";"," ",""],s?d.palette[$.Error]:d.palette[$.TextSecondary],c&&pt(["color:",";"],d.palette[$.ButtonDisabledText]),jT[n])}),Jb=fn({FormHint:HT}),xp=Be(function(t,e){return L.createElement(Jb.FormHint,Et({ref:e},t))});xp.defaultProps={error:!1},xp.propTypes={error:et.bool,size:et.oneOf(je(Re))};var zT=V(V(V({},h1.Primary,function(t){var e=t.theme.palette;return pt(["background-color:",";color:",";"],e[$.AccentPrimary],e[$.ButtonPrimaryText])}),h1.White,function(t){var e=t.theme.palette;return pt(["background-color:",";color:",";"],e[$.ButtonPrimaryText],e[$.AccentPrimary])}),h1.Secondary,function(t){var e=t.theme.palette;return pt(["background-color:",";color:",";"],e[$.Accent_1_2_Opacity],e[$.TextPrimary])}),tw="Badge",K2=20,GT=mt.span.attrs({className:Rt(tw,"root")}).withConfig({componentId:"sc-1rfm40m-0"})(["position:relative;display:inline-flex;flex-shrink:0;vertical-align:middle;"]),UT=mt.span.attrs({className:Rt(tw)}).withConfig({componentId:"sc-1rfm40m-1"})(function(t){var e=t.size,n=t.color,r=n===void 0?"secondary":n,s=t.fontSize,o=t.padding,c=o===void 0?"0 6px":o,d=t.inline;return pt([""," display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:center;align-content:center;height:","px;min-width:","px;line-height:1;padding:",";font-size:",";box-sizing:border-box;transition:transform 225ms cubic-bezier(0.4,0,0.2,1) 0ms;border-radius:","px;z-index:1;",""],d?"":"position: absolute;",e||K2,e||K2,typeof c=="number"?"".concat(c,"px"):c,typeof s=="number"?"".concat(s,"px"):s,(e||K2)/2,zT[r])}),Pn=fn({BadgeRoot:GT,Badge:UT}),WT=["badgeContent"],Fg=Be(function(t,e){var n=t.badgeContent,r=Tt(t,WT);return L.createElement(Pn.BadgeRoot,{ref:e},L.createElement(Pn.Badge,r,n))});Fg.defaultProps={color:h1.Secondary,inline:!1},Fg.propTypes={color:et.oneOf(je(h1)),badgeContent:et.node,size:et.oneOfType([et.number]),fontSize:et.oneOfType([et.number,et.string]),padding:et.oneOfType([et.number,et.string]),inline:et.bool};var VT=["color","size"],$2=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?28:s,c=Tt(t,VT);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M41.3465 44.355C33.5656 50.7844 22.9687 51.6268 14.3708 47.3665L17.8949 44.4545C24.754 47.117 32.7424 46.1093 38.709 41.1792C44.6755 36.249 47.1546 28.6071 45.8085 21.3893L49.3325 18.4773C51.9291 27.6967 49.1274 37.9256 41.3465 44.355Z",fill:r}),L.createElement("path",{d:"M36.1749 2.63356L32.6509 5.54555C25.821 2.91828 17.838 3.86187 11.8366 8.82088C5.87009 13.7511 3.42028 21.4282 4.7372 28.6107L1.21311 31.5227C-1.38344 22.3034 1.45314 12.0456 9.19916 5.64502C16.9801 -0.784402 27.5768 -1.62682 36.1749 2.63356Z",fill:r}))}),YT=["color","size"],Wy=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,YT);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M5.74299 0.152553C5.95998 -0.056404 6.30528 -0.0498885 6.51424 0.167105C6.7232 0.384099 6.71668 0.7294 6.49969 0.938357L1.43832 5.81227L6.51398 11.0759C6.72309 11.2928 6.71681 11.6381 6.49996 11.8472C6.28311 12.0563 5.9378 12.05 5.7287 11.8332L0.274151 6.1766C0.17369 6.07242 0.118752 5.93258 0.121433 5.78788C0.124113 5.64317 0.184193 5.50547 0.288444 5.40508L5.74299 0.152553Z",fill:r}),L.createElement("path",{d:"M10.9549 0.152554C11.1719 -0.0564031 11.5172 -0.0498876 11.7262 0.167106C11.9351 0.3841 11.9286 0.729401 11.7116 0.938357L6.65023 5.81227L11.7259 11.0759C11.935 11.2928 11.9287 11.6381 11.7119 11.8472C11.495 12.0563 11.1497 12.05 10.9406 11.8332L5.48606 6.1766C5.3856 6.07242 5.33067 5.93258 5.33335 5.78788C5.33603 5.64317 5.39611 5.50547 5.50036 5.40508L10.9549 0.152554Z",fill:r}))}),ZT=["color","size"],Vy=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,ZT);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M6.25714 11.8474C6.04014 12.0564 5.69484 12.0499 5.48588 11.8329C5.27693 11.6159 5.28344 11.2706 5.50043 11.0616L10.5618 6.18773L5.48614 0.924074C5.27704 0.707224 5.28331 0.361919 5.50016 0.152813C5.71701 -0.0562931 6.06232 -0.0500145 6.27143 0.166835L11.726 5.8234C11.8264 5.92758 11.8814 6.06742 11.8787 6.21212C11.876 6.35683 11.8159 6.49453 11.7117 6.59492L6.25714 11.8474Z",fill:r}),L.createElement("path",{d:"M1.04522 11.8474C0.828227 12.0564 0.482925 12.0499 0.273969 11.8329C0.065012 11.6159 0.0715275 11.2706 0.288521 11.0616L5.34989 6.18773L0.274227 0.924074C0.0651226 0.707224 0.0714
105006 0.361919 0.28825 0.152813C0.5051 -0.0562931 0.850407 -0.0500145 1.05951 0.166835L6.51406 5.8234C6.61452 5.92758 6.66946 6.06742 6.66678 6.21212C6.6641 6.35683 6.60402 6.49453 6.49977 6.59492L1.04522 11.8474Z",fill:r}))}),cd={Default:"default",Sidebar:"sidebar"},Es={Left:"left",Right:"right"},Nc=function(t){switch(t){case Ie.Lg:return 18;case Ie.Md:return 16;case Ie.Sm:return 14;case Ie.Xs:return 12;default:return 16}},KT=function(t){switch(t){case Ie.Lg:return 12;case Ie.Md:return 11;case Ie.Sm:return 10;default:return 11}},X2,$T=(X2={},V(V(V(V(V(V(V(V(V(V(X2,xr.Primary,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{color:",";background:",";cursor:default;","{color:",";background:transparent;}}"],e[$.AccentStateless],e[$.ButtonPrimaryText],Pn.Badge,e[$.ButtonPrimaryText],e[$.AccentPrimaryHover],e[$.AccentPrimaryActive],n&&pt(["background-color:",";&:hover,&:focus{background-color:",";}"],e[$.AccentPrimaryActive],e[$.AccentPrimaryActive]),e[$.BordersDisabled],e[$.Accent_1_2_Opacity],Pn.Badge,e[$.BordersDisabled])}),xr.Secondary,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:",";color:",";border:1px solid ",";","{color:",";background:transparent;}&:hover{color:",";background-color:",";","{color:",";}}&:focus{color:",";background-color:",";border:1px solid ",";","{color:",";}}&:active{color:",";background-color:",";","{color:",";}}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}"],e[$.BackgroundStateless],e[$.AccentStateless],e[$.AccentStateless],Pn.Badge,e[$.AccentStateless],e[$.ButtonPrimaryText],e[$.AccentPrimaryHover],Pn.Badge,e[$.ButtonPrimaryText],e[$.AccentPrimaryActive],e[$.Accent_1_2_Opacity],e[$.AccentPrimaryActive],Pn.Badge,e[$.AccentPrimaryActive],e[$.ButtonPrimaryText],e[$.AccentPrimaryActive],Pn.Badge,e[$.ButtonPrimaryText],n&&pt(["color:",";background-color:",";","{color:",";}&:hover,&:focus{color:",";background-color:",";","{color:",";}}"],e[$.ButtonPrimaryText],e[$.AccentPrimaryActive],Pn.Badge,e[$.ButtonPrimaryText],e[$.ButtonPrimaryText],e[$.AccentPrimaryActive],Pn.Badge,e[$.ButtonPrimaryText]),e[$.BordersDisabled],e[$.Accent_1_2_Opacity],Pn.Badge,e[$.BordersDisabled])}),xr.Basic,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:transparent;border:1px solid ",";color:",";","{background-color:transparent;color:",";}&:hover{background-color:",";color:",";","{color:",";}}&:active{background-color:",";color:",";","{color:",";}}"," &:disabled{background-color:",";color:",";cursor:default;border:none;","{color:",";}}"],e[$.BordersButton],e[$.LinkStateless],Pn.Badge,e[$.LinkStateless],e[$.BackgroundHover],e[$.LinkHover],Pn.Badge,e[$.LinkHover],e[$.BackgroundActive],e[$.LinkHover],Pn.Badge,e[$.LinkHover],n&&pt(["background-color:",";color:",";","{color:",";}&:hover,&:focus{background-color:",";color:",";}"],e[$.BackgroundActive],e[$.LinkHover],Pn.Badge,e[$.LinkHover],e[$.BackgroundActive],e[$.LinkHover]),e[$.Accent_1_2_Opacity],e[$.BordersDisabled],Pn.Badge,e[$.BordersDisabled])}),xr.LinkPrimary,function(t){var e=t.theme.palette,n=t.active;return pt(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[$.AccentStateless],e[$.AccentPrimaryHover],e[$.AccentPrimaryActive],n&&pt(["color:",";&:hover,&:focus{color:",";"],e[$.AccentPrimaryActive],e[$.AccentPrimaryActive]),e[$.BordersDisabled])}),xr.LinkSecondary,function(t){var e=t.theme.palette,n=t.active;return pt(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[$.LinkStateless],e[$.AccentPrimaryHover],e[$.AccentPrimaryActive],n&&pt(["color:",";&:hover,&:focus{color:",";}"],e[$.AccentPrimaryActive],e[$.AccentPrimaryActive]),e[$.BordersDisabled])}),xr.LinkBasicPrimary,function(t){var e=t.theme.palette,n=t.active;return pt(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[$.AccentStateless],e[$.AccentPrimaryHover],e[$.AccentPrimaryActive],n&&pt(["color:",";&:hover,&:focus{color:",";}"],e[$.AccentPrimaryActive],e[$.AccentPrimaryActive]),e[$.BordersDisabled])}),xr.LinkBasicSecondary,function(t){var e=t.theme.palette,n=t.active;return pt(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[$.LinkStateless],e[$.AccentPrimaryHover],e[$.AccentPrimaryActive],n&&pt(["color:",";&:hover,&:focus{color:",";}"],e[$.AccentPrimaryActive],e[$.AccentPrimaryActive]),e[$.BordersDisabled])}),xr.ErrorPrimary,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{background-color:",";color:",";cursor:default;","{color:",";background:transparent;}}"],e[$.Error],e[$.ButtonPrimaryText],Pn.Badge,e[$.ButtonPrimaryText],e[$.ErrorHover],e[$.ErrorActive],n&&pt(["background-color:",";&:hover,&:focus{background-color:",";}"],e[$.ErrorActive],e[$.ErrorActive]),e[$.Accent_1_2_Opacity],e[$.BordersDisabled],Pn.Badge,e[$.BordersDisabled])}),xr.ErrorSecondary,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:",";color:",";border:1px solid ",";","{color:",";background-color:transparent;}&:hover{background-color:",";color:",";border:none;","{color:",";}}&:active{background-color:",";color:",";border:none;}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}
105"],e[$.BackgroundStateless],e[$.LinkStateless],e[$.BordersButton],Pn.Badge,e[$.LinkStateless],e[$.ErrorHover],e[$.ButtonPrimaryText],Pn.Badge,e[$.ButtonPrimaryText],e[$.ErrorActive],e[$.ButtonPrimaryText],n&&pt(["background-color:",";color:",";border:none;&:hover,&:focus{background-color:",";}"],e[$.ErrorActive],e[$.ButtonPrimaryText],e[$.ErrorActive]),e[$.BordersDisabled],e[$.Accent_1_2_Opacity],Pn.Badge,e[$.BordersDisabled])}),xr.ErrorBasic,function(t){var e=t.theme.palette,n=t.active;return pt(["color:",";background-color:transparent;&:hover{color:",";}&:active{color:",";}"," &:disabled{color:",";cursor:default;}"],e[$.LinkStateless],e[$.ErrorHover],e[$.ErrorActive],n&&pt(["color:",";&:hover,&:focus{color:",";}"],e[$.ErrorActive],e[$.ErrorActive]),e[$.BordersDisabled])}),V(V(V(X2,xr.WarningPrimary,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{background-color:",";color:",";cursor:default;","{color:",";background:transparent;}}"],e[$.Warning],e[$.ButtonPrimaryText],Pn.Badge,e[$.ButtonPrimaryText],e[$.WarningHover],e[$.WarningActive],n&&pt(["background-color:",";&:hover,&:focus{background-color:",";}"],e[$.WarningActive],e[$.WarningActive]),e[$.Accent_1_2_Opacity],e[$.BordersDisabled],Pn.Badge,e[$.BordersDisabled])}),xr.WarningSecondary,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:",";color:",";border:1px solid ",";","{color:",";background-color:transparent;}&:hover{background-color:",";color:",";border:none;","{color:",";}}&:active{background-color:",";color:",";border:none;}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}"],e[$.BackgroundStateless],e[$.LinkStateless],e[$.BordersButton],Pn.Badge,e[$.LinkStateless],e[$.WarningHover],e[$.ButtonPrimaryText],Pn.Badge,e[$.ButtonPrimaryText],e[$.WarningActive],e[$.ButtonPrimaryText],n&&pt(["background-color:",";color:",";border:none;","{color:",";background-color:transparent;}&:hover,&:focus{background-color:",";}"],e[$.WarningActive],e[$.ButtonPrimaryText],Pn.Badge,e[$.ButtonPrimaryText],e[$.WarningActive]),e[$.BordersDisabled],e[$.Accent_1_2_Opacity],Pn.Badge,e[$.BordersDisabled])}),xr.WarningBasic,function(t){var e=t.theme.palette,n=t.active;return pt(["color:",";background-color:transparent;&:hover{color:",";}&:active{color:",";}"," &:disabled{color:",";cursor:default;}"],e[$.LinkStateless],e[$.WarningHover],e[$.WarningActive],n&&pt(["color:",";&:hover,&:focus{color:",";}"],e[$.WarningActive],e[$.WarningActive]),e[$.BordersDisabled])})),XT=V(V(V(V({},Ie.Xs,pt(["padding:5px 10px;"])),Ie.Sm,pt(["padding:8px 12px;"])),Ie.Md,pt(["padding:11px 16px;"])),Ie.Lg,pt(["padding:14px 24px;"])),qT=V(V(V(V({},Ie.Xs,pt(["padding:4px 10px;"])),Ie.Sm,pt(["padding:7px 12px;"])),Ie.Md,pt(["padding:10px 16px;"])),Ie.Lg,pt(["padding:13px 24px;"])),QT=V(V(V(V({},Ie.Xs,pt(["padding:5px 10px;"])),Ie.Sm,pt(["padding:8px 12px;"])),Ie.Md,pt(["padding:11px 14px;"])),Ie.Lg,pt(["padding:14px 16px;"])),JT=V(V(V(V({},Ie.Xs,pt(["height:14px;"])),Ie.Sm,pt(["height:16px;"])),Ie.Md,pt(["height:18px;"])),Ie.Lg,pt(["height:20px;"])),tA=V(V(V(V({},Ie.Xs,pt(["margin-right:5px;"])),Ie.Sm,pt(["margin-right:6px;"])),Ie.Md,pt(["margin-right:7px;"])),Ie.Lg,pt(["margin-right:8px;"])),Yy=V(V(V(V({},Ie.Xs,function(t){var e=t.theme.typography.font;return pt(e[Vt.ButtonSm])}),Ie.Sm,function(t){var e=t.theme.typography.font;return pt(e[Vt.ButtonMd])}),Ie.Md,function(t){var e=t.theme.typography.font;return pt(e[Vt.ButtonLg])}),Ie.Lg,function(t){var e=t.theme.typography.font;return pt(e[Vt.ButtonLgUp])}),Al="Button",ew=mt.span.attrs({className:Rt(Al,"Label")}).withConfig({componentId:"sc-lxwit0-0"})(["display:flex;"]),nw=mt.span.attrs({className:Rt(Al,"Badge")}).withConfig({componentId:"sc-lxwit0-1"})(["display:flex;margin-left:5px;"]),eA=mt.span.attrs({className:Rt(Al,"Body")}).withConfig({componentId:"sc-lxwit0-2"})(function(){return pt(["display:flex;align-items:center;"])}),nA=mt.button.attrs({className:Rt(Al,"root")}).withConfig({componentId:"sc-lxwit0-3"})(function(t){var e=t.color,n=e===void 0?xr.Secondary:e,r=t.size,s=r===void 0?Ie.Md:r,o=t.buttonType,c=t.active,d=t.theme;return pt(["display:inline-flex;flex-shrink:0;flex-direction:row;align-items:center;justify-content:center;border-radius:",";transition:all 100ms ease-out;border:0;cursor:pointer;outline:none;"," "," "," ","{"," ","}","{","}",""],d.shape.borderRadius[io.Md],o!==cd.Sidebar&&$T[n],o===cd.Sidebar?QT[s]:XT[s],n===xr.Secondary&&qT[s],ew,Yy[s],(n===xr.LinkBasicPrimary||n===xr.LinkBasicSecondary)&&"font-weight: 400",nw,Yy[s],o===cd.Sidebar&&pt(["background-color:",";color:",";border:1px solid ",";"," "," &:disabled{color:",";background:",";border:none;cursor:default;}"],d.palette[$.ButtonPrimaryText],d.palette[$.LinkStateless],d.palette[$.BordersButton],!c&&pt(["&:hover{color:",";background-color:",";border:none;}&:active{color:",";background-color:",";border:none;}"],d.palette[$.ButtonPrimaryText],d.palette[$.AccentPrimaryHover],d.palette[$.ButtonPrimaryText],d.palette[$.AccentPrimaryActive]),c&&pt(["background-color:",";color:",";border:1px solid ",";"],d.palette[$.Accent_1_2_Opacity],d.palette[$.AccentPrimaryActive],d.palette[$.AccentPrimaryActive]),d.palette[$.BordersDisabled],d.palette[$.AccentPrimaryDisabled]))}),rA=mt.span.attrs({className:Rt(Al,"StartIcon")}).withConfig({componentId:"sc-lxwit0-4"})(function(t){var e=t.$loading,n=t.size,r=n===void 0?Ie.Md:n;return pt(["display:flex;svg{animation:",";}
105",""],e?"spinner 1.2s linear infinite":"1.2s",tA[r])}),aA=mt.span.attrs({className:Rt(Al,"SideBar")}).withConfig({componentId:"sc-lxwit0-5"})(function(t){var e=t.sideBarType;return pt(["display:flex;",":12px;"],"margin-".concat(e===Es.Left?"right":"left"))}),iA=mt.span.attrs({className:Rt(Al,"Divider")}).withConfig({componentId:"sc-lxwit0-6"})(function(t){var e=t.sideBarType,n=t.size,r=n===void 0?Ie.Md:n;return pt(["border-left-style:solid;border-width:1px;"," ",":12px;"],JT[r],"margin-".concat(e===Es.Left?"right":"left"))}),oA=mt.span.attrs({className:Rt(Al,"EndIcon")}).withConfig({componentId:"sc-lxwit0-7"})(["display:flex;margin-left:6px;"]),Bo=fn({Button:nA,Wrapper:eA,Label:ew,SideArrows:aA,Divider:iA,StartIcon:rA,EndIcon:oA,Badge:nw}),sA=["children","startIcon","endIcon","badge","color","active","buttonType","sideBarType","size","loading","disabled"],gi=Be(function(t,e){var n=t.children,r=t.startIcon,s=t.endIcon,o=t.badge,c=t.color,d=t.active,f=t.buttonType,g=t.sideBarType,v=g===void 0?Es.Left:g,x=t.size,C=t.loading,y=t.disabled,h=Tt(t,sA),w=function(M){switch(v){case Es.Right:return d?L.createElement(Vy,M):L.createElement(Wy,M);case Es.Left:return d?L.createElement(Wy,M):L.createElement(Vy,M)}},E=function(){var M=[L.createElement(Bo.SideArrows,{key:"arrows",sideBarType:v},w({size:KT(x)}))],b=L.createElement(Bo.Divider,{key:"divider",size:x,sideBarType:v});return v===Es.Right?M.unshift(b):M.push(b),f===cd.Sidebar&&M};return L.createElement(Bo.Button,Et({type:"button",buttonType:f},h,{disabled:C||y,sideBarType:v,color:c,active:d,size:x,ref:e}),v===Es.Left&&E(),L.createElement(Bo.Wrapper,null,r&&L.createElement(Bo.StartIcon,{$loading:C,size:x},typeof r=="function"?C?L.createElement($2,{size:Nc(x)}):r({size:Nc(x)}):C?L.createElement($2,{size:Nc(x)}):r),C&&!r&&L.createElement(Bo.StartIcon,{$loading:C},L.createElement($2,{size:Nc(x)})),L.createElement(Bo.Label,null,n),s&&L.createElement(Bo.EndIcon,null,typeof s=="function"?s({size:Nc(x)}):s)),v===Es.Right&&E(),o&&L.createElement(Bo.Badge,null,L.createElement(Fg,{inline:!0,size:14,padding:"0 1px",badgeContent:o,color:c===xr.Primary?"white":"secondary"})))});gi.defaultProps={size:Ie.Md,color:xr.Secondary,buttonType:cd.Default,active:!1},gi.propTypes={size:et.oneOf(je(Ie)),color:et.oneOf(je(xr)),buttonType:et.oneOf(je(cd)),sideBarType:et.oneOf(je(Es)),startIcon:et.oneOfType([et.node,et.func]),endIcon:et.oneOfType([et.node,et.func]),badge:et.node,active:et.bool,loading:et.bool,disabled:et.bool};var lA=["color","size"],cA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,lA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M0.483002 4.49014V37.5097C0.483002 38.5725 0.90519 39.5917 1.65669 40.3432C2.40819 41.0947 3.42745 41.5169 4.49023 41.5169H37.5098C38.5726 41.5169 39.5918 41.0947 40.3433 40.3432C41.0948 39.5917 41.517 38.5725 41.517 37.5097V4.49014C41.517 3.42735 41.0948 2.4081 40.3433 1.6566C39.5918 0.905099 38.5726 0.48291 37.5098 0.48291H4.49023C3.42745 0.48291 2.40819 0.905099 1.65669 1.6566C0.90519 2.4081 0.483002 3.42735 0.483002 4.49014ZM38.9272 5.87776V31.3044L26.3817 19.5446L21.8068 22.3356L14.8048 15.3337L3.07279 23.0543V6.06233C3.07279 5.2695 3.38775 4.50913 3.94836 3.94851C4.50898 3.38789 5.26935 3.07294 6.06218 3.07294H36.1222C36.8661 3.07294 37.5795 3.36844 38.1055 3.89444C38.6316 4.42044 38.9272 5.13385 38.9272 5.87776Z",fill:r}),L.createElement("path",{d:"M30.4602 15.6943C33.066 15.6943 35.1784 13.5819 35.1784 10.976C35.1784 8.37021 33.066 6.25777 30.4602 6.25777C27.8543 6.25777 25.7419 8.37021 25.7419 10.976C25.7419 13.5819 27.8543 15.6943 30.4602 15.6943Z",fill:r}))}),uA=["color","size"],dA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,uA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 40 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M39.5112 31.2036C39.5112 41.568 31.0785 50 20.7148 50H14.0613C12.9587 50 12.0652 49.1066 12.0652 48.004V47.3386C12.0652 46.2359 12.9586 45.3425 14.0613 45.3425H20.7148C28.5107 45.3425 34.8537 38.9995 34.8537 31.2036C34.8537 23.4078 28.5107 17.0648 20.7148 17.0648H8.4394L16.8935 25.5189C17.8015 26.4266 17.8015 27.9042 16.8935 28.8119C16.0124 29.6923 14.479 29.691 13.5999 28.8119L1.17111 16.3828C0.731285 15.943 0.488892 15.3581 0.488892 14.7359C0.488892 14.1142 0.731285 13.529 1.17111 13.0894L13.6006 0.65976C14.4797 -0.220001 16.0144 -0.220001 16.8936 0.65976C17.8016 1.56722 17.8016 3.04511 16.8936 3.95246L8.43951 12.4072H20.7148C31.0785 12.4072 39.5112 20.8395 39.5112 31.2036Z",fill:r}))}),hA=["color","size"],fA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,hA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 40 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M0.98 31.2037C0.98 41.568 9.41216 50 19.7752 50H26.4284C27.5309 50 28.4244 49.1066 28.4244 48.004V47.3386C28.4244 46.2359 27.531 45.3425 26.4284 45.3425H19.7752C11.9798 45.3425 5.6372 38.9995 5.6372 31.2037C5.6372 23.4079 11.9798 17.0648 19.7752 17.0648H32.05L23.5964 25.5189C22.6884 26.4266 22.6884 27.9043 23.5964 28.812C24.4774 29.6924 26.0107 29.6911 26.8897 28.812L39.3178 16.3828C39.7576 15.943 40 15.3582 40 14.736C40 14.1142 39.7576 13.5291 39.3178 13.0895L26.8891 0.659821C26.01 -0.21994 24.4754 -0.21994 23.5962 0.659821C22.6883 1.56728 22.6883 3.04517 23.5962 3.95252L32.0498 12.4073H19.7752C9.41216 12.4073 
1050.98 20.8396 0.98 31.2037Z",fill:r}))}),pA=["color","size"],gA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,pA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M40.1901 7.27549L7.59689 39.8687C6.83412 40.6315 6.83412 41.8681 7.59689 42.6308C8.35965 43.3936 9.59626 43.3936 10.359 42.6308L42.9522 10.0376C43.715 9.27486 43.715 8.03825 42.9522 7.27549C42.1895 6.51272 40.9529 6.51272 40.1901 7.27549Z",fill:r}))}),mA=["color","size"],vA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,mA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M41.2229 16.7653C41.3215 12.426 39.7436 8.284 36.6864 5.02956C33.6292 1.77513 29.4872 -2.09808e-05 25.0493 -2.09808e-05C20.6114 -2.09808e-05 16.3708 1.77513 13.3136 5.02956C10.2564 8.18538 8.6785 12.3274 8.77712 16.7653C3.45168 19.5266 0 25.1479 0 31.1637C0 37.2781 3.25444 42.6035 8.57988 45.4635C11.0454 46.7455 13.7081 47.4359 16.2722 47.4359C19.3294 47.4359 22.288 46.5483 24.9507 44.8718C29.9803 48.1262 36.0947 48.3234 41.4201 45.4635C46.7456 42.6035 50 37.2781 50 31.1637C50 25.0493 46.6469 19.5266 41.2229 16.7653ZM22.7811 43.0966C18.6391 45.3649 13.7081 45.3649 9.56607 42.998C5.22682 40.5325 2.66272 36.1933 2.66272 31.1637C2.66272 26.43 5.12821 22.0907 9.1716 19.6252C10.1578 24.359 13.3136 28.501 17.6529 30.6706C17.4556 35.4043 19.3294 39.8422 22.7811 43.0966ZM32.1499 27.8106C31.4596 24.5562 29.783 21.499 27.3176 19.2307C30.6706 17.357 34.8126 17.0611 38.4615 18.3432C37.7712 22.2879 35.503 25.7396 32.1499 27.8106ZM20.6114 28.1065C21.3018 25.2465 22.8797 22.6824 25.0493 20.8087C27.5148 22.8797 29.1913 25.8382 29.6844 28.9941C26.7258 30.0789 23.4714 30.0789 20.4142 28.9941C20.4142 28.6982 20.5128 28.4023 20.6114 28.1065ZM25.0493 17.4556C23.57 16.4694 21.8935 15.7791 20.1183 15.3846C19.428 15.1874 18.6391 15.6805 18.5404 16.3708C18.4418 16.7653 18.5404 17.0611 18.7377 17.357C18.9349 17.6528 19.2308 17.8501 19.5266 17.9487C20.7101 18.2446 21.7949 18.639 22.7811 19.2307C20.3156 21.499 18.6391 24.4576 17.9487 27.8106C14.5957 25.7396 12.2288 22.2879 11.6371 18.3432C11.9329 18.2446 12.1302 18.1459 12.426 18.0473C12.7219 17.9487 13.0178 17.7515 13.215 17.357C13.4122 17.0611 13.4122 16.6666 13.3136 16.3708C13.1164 15.6805 12.3274 15.286 11.6371 15.4832C11.5385 15.4832 11.5385 15.4832 11.4398 15.5818C11.8343 8.48124 17.7515 2.6627 25.0493 2.6627C32.3471 2.6627 38.2643 8.38262 38.6588 15.5818C34.0237 14.2012 28.9941 14.8915 25.0493 17.4556ZM29.783 31.7554C29.5858 35.5029 27.9093 39.0532 25.0493 41.5187C22.1893 39.0532 20.4142 35.6016 20.3156 31.7554C23.3728 32.7416 26.7258 32.7416 29.783 31.7554ZM32.4458 30.6706C36.785 28.4023 39.8422 24.359 40.927 19.6252C44.9704 22.0907 47.4359 26.43 47.4359 31.1637C47.4359 36.0947 44.8718 40.5325 40.5325 42.998C36.3905 45.3649 31.4596 45.3649 27.3176 43.0966C30.7692 39.8422 32.643 35.4043 32.4458 30.6706Z",fill:r}),L.createElement("path",{d:"M15.5819 14.8915C14.9901 14.9901 14.497 15.5818 14.497 16.1735C14.497 16.8639 15.0888 17.5542 15.8777 17.5542C16.6667 17.5542 17.2584 16.9625 17.2584 16.1735C17.2584 15.7791 17.0611 15.3846 16.7653 15.1874C16.3708 14.9901 15.9763 14.8915 15.5819 14.8915Z",fill:r}))}),yA=["color","size"],bA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,yA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2.00049C3.34315 2.00049 2 3.34364 2 5.00049V16.7505H5.5V5.50049H16.75V2.00049H5ZM45 2.00049H33.25V5.50049H44.5V16.7505H48V5.00049C48 3.34363 46.6569 2.00049 45 2.00049ZM5.5 33.2505H2V45.0005C2 46.6573 3.34315 48.0005 5 48.0005H16.75V44.5005H5.5V33.2505ZM48 33.2505H44.5V44.5005H33.25V48.0005H45C46.6569 48.0005 48 46.6573 48 45.0005V33.2505Z",fill:r}))}),wA=["color","size"],xA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,wA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 53 37",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11841 3.93799V32.063H47.8684V3.93799H4.11841ZM3.49341 0.812988C2.1127 0.812988 0.993408 1.91229 0.993408 3.26835V32.7326C0.993408 34.0887 2.1127 35.188 3.49341 35.188H48.4934C49.8741 35.188 50.9934 34.0887 50.9934 32.7326V3.26835C50.9934 1.91229 49.8741 0.812988 48.4934 0.812988H3.49341Z",fill:r}))}),CA=["color","size"],SA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,CA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M0.5 0.5H3V2.375H2.375V3H0.5V0.5Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 21.125H3V21.2693H24.7308V43H24.875V45.5L0.5 45.5001V21.125ZM22.2308 43L3 43.0001V23.7693H22.2308V43Z",fill:r}),L.createElement("path",{d:"M43 45.5H45.5V43H43.625V43.625H43V45.5
105Z",fill:r}),L.createElement("path",{d:"M45.5 3V0.5H43V2.375H43.625V3H45.5Z",fill:r}),L.createElement("path",{d:"M6.125 0.5V3H9.875V0.5H6.125Z",fill:r}),L.createElement("path",{d:"M13.625 0.5V3H17.375V0.5H13.625Z",fill:r}),L.createElement("path",{d:"M21.125 0.5V3H24.875V0.5H21.125Z",fill:r}),L.createElement("path",{d:"M28.625 0.5V3H32.375V0.5H28.625Z",fill:r}),L.createElement("path",{d:"M36.125 0.5V3H39.875V0.5H36.125Z",fill:r}),L.createElement("path",{d:"M45.5 6.125H43V9.875H45.5V6.125Z",fill:r}),L.createElement("path",{d:"M45.5 13.625H43V17.375H45.5V13.625Z",fill:r}),L.createElement("path",{d:"M45.5 21.125H43V24.875H45.5V21.125Z",fill:r}),L.createElement("path",{d:"M45.5 28.625H43V32.375H45.5V28.625Z",fill:r}),L.createElement("path",{d:"M45.5 36.125H43V39.875H45.5V36.125Z",fill:r}),L.createElement("path",{d:"M39.875 45.5V43H36.125V45.5H39.875Z",fill:r}),L.createElement("path",{d:"M32.375 45.5V43H28.625V45.5H32.375Z",fill:r}),L.createElement("path",{d:"M0.5 17.375H3V13.625H0.5V17.375Z",fill:r}),L.createElement("path",{d:"M0.5 9.875H3V6.125H0.5V9.875Z",fill:r}),L.createElement("path",{d:"M35.1391 9.23718L26.3209 17.8619C25.8274 18.3446 25.8186 19.136 26.3013 19.6295C26.784 20.1231 27.5754 20.1319 28.069 19.6492L37.1012 10.815V16.9907C37.1012 17.681 37.6609 18.2407 38.3512 18.2407C39.0416 18.2407 39.6012 17.681 39.6012 16.9907V7.98718C39.6012 7.29683 39.0416 6.73718 38.3512 6.73718L29.3477 6.73718C28.6574 6.73718 28.0977 7.29683 28.0977 7.98718C28.0977 8.67754 28.6574 9.23718 29.3477 9.23718L35.1391 9.23718Z",fill:r}))}),_A=["color","size"],EA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,_A);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M42.1323 0.500031H2.73399C1.42693 0.500031 0.399963 1.527 0.399963 2.83406V43.166C0.399963 44.4731 1.42693 45.5 2.73399 45.5H42.1323C43.4394 45.5 44.4664 44.4731 44.4664 43.166V2.83406C44.4664 1.527 43.4394 0.500031 42.1323 0.500031ZM41.6655 3.30086V25.8942L36.624 21.693C36.1572 21.2262 35.4103 21.2262 34.8502 21.5996L28.595 26.2677L15.5244 11.2365C15.3377 10.9565 14.9643 10.7697 14.5908 10.7697C14.2174 10.7697 13.8439 10.9565 13.5639 11.1432L3.20079 21.693V3.30086H41.6655ZM3.20079 42.6992V39.8984C4.22776 40.3652 5.72154 40.832 7.58876 40.832C9.36262 40.832 
10510.483 40.2718 11.3232 39.805C12.0701 39.4316 12.5369 39.1515 13.3771 39.2448C14.3108 39.3382 14.8709 39.5249 15.4311 39.805C16.2713 40.0851 17.2049 40.4585 18.9788 40.4585V38.3112C17.6717 38.3112 17.0182 38.0312 16.178 37.7511C15.5244 37.471 14.6842 37.1909 13.5639 37.0975C12.0701 36.9108 11.1365 37.471 10.2962 37.8444C9.54934 38.2179 8.80245 38.5913 7.4954 38.5913C5.06801 38.5913 3.6676 37.7511 3.10743 37.2843V35.0436C4.1344 35.5104 5.62818 35.9772 7.4954 35.9772C9.26926 35.9772 10.3896 35.417 11.2298 34.9502C11.9767 34.5768 12.4435 34.2967 13.2838 34.3901C14.2174 34.4834 14.7776 34.6702 15.3377 34.9502C16.178 35.2303 17.1116 35.6038 18.8854 35.6038V33.4565C17.5784 33.4565 16.9249 33.1764 16.0846 32.8963C15.4311 32.6162 14.5908 32.3361 13.4705 32.2428C11.9767 32.056 11.0431 32.6162 10.2029 32.9897C9.45598 33.3631 8.70909 33.7365 7.40204 33.7365C4.97465 33.7365 3.57424 32.8963 3.01407 32.4295V30.1888C4.04104 30.6556 5.53482 31.1224 7.40204 31.1224C9.1759 31.1224 10.2962 30.5623 11.1365 30.0955C11.8834 29.722 12.3502 29.4419 13.1904 29.5353C14.124 29.6287 14.6842 29.8154 15.2444 30.0955C16.0846 30.3755 17.0182 30.749 18.7921 30.749V28.6017C17.485 28.6017 16.8315 28.3216 15.9912 28.0415C15.3377 27.7614 14.4975 27.4814 13.3771 27.388C11.8834 27.2013 10.9498 27.7614 10.1095 28.1349C9.36262 28.5083 8.61573 28.8818 7.30868 28.8818C4.88129 28.8818 3.48088 28.0415 2.92071 27.5747V25.7075L14.124 14.2241L27.1012 29.0685C27.568 29.6287 28.4083 29.722 28.9684 29.2552L35.4103 24.4004L41.3854 29.4419V42.6058H3.20079V42.6992Z",fill:r}),L.createElement("path",{d:"M32.7029 15.7179C35.4103 15.7179 37.651 13.4772 37.651 10.7697C37.651 8.06227 35.4103 5.82161 32.7029 5.82161C29.9954 5.82161 27.7547 8.06227 27.7547 10.7697C27.7547 13.4772 29.9954 15.7179 32.7029 15.7179ZM32.7029 8.15563C34.1966 8.15563 35.317 9.36933 35.317 10.7697C35.317 12.1702 34.1033 13.3838 32.7029 13.3838C31.3025 13.3838 30.0888 12.1702 30.0888 10.7697C30.0888 9.36933 31.2091 8.15563 32.7029 8.15563Z",fill:r}))}),OA=["color","size"],kA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,OA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M43.4164 5.98527H1.06762C0.533808 5.98527 0 6.53674 0 7.08821V49C0 49.7353 0.533808 50.1029 1.06762 50.1029H43.4164C44.1281 50.1029 44.484 49.7353 44.484 49V7.08821C44.484 6.53674 44.1281 5.98527 43.4164 5.98527ZM35.7651 13.1544C37.9004 13.1544 39.5 15.0809 39.5 17.1029C39.5 19.3088 37.7224 20.6029 35.7651 20.6029C33.8078 20.6029 32 19.125 32 17.1029C31.8221 14.897 33.6299 13.1544 35.7651 13.1544ZM1.9573 45.875C2.13523 45.6912 14.2349 30.9853 16.548 27.8603C16.726 27.4926 17.2598 27.4926 17.4377 27.8603L29.7153 43.4853L35.0534 37.4191C35.4093 37.0514 35.7651 37.2353 35.9431 37.4191L42.5267 45.875H1.9573Z",fill:r}),L.createElement("path",{d:"M48.9164 -3.8147e-06H6.74555C6.03381 -3.8147e-06 5.5 0.367643 5.5 1.10294V4.29294H7.5V2.20588H47.6892V39H46.2473V44.1176H48.9164C49.6281 44.1176 49.984 43.75 49.984 43.0147V1.10294C49.984 0.367643 49.6281 -3.8147e-06 48.9164 -3.8147e-06Z",fill:r}))}),PA=["color","size"],rw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,PA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M25 0C38.8071 0 50 11.1929 50 25C50 38.807 38.8071 50 25 50C14.111 50 4.854 43.0397 1.42326 33.333C0.963005 32.0312 1.6455 30.603 2.94725 30.143C4.249 29.6828 5.67725 30.365 6.1375 31.667C8.88425 39.4382 16.2957 45 25 45C36.0457 45 45 36.0457 45 25C45 13.9543 36.0457 5 25 5C21.121 5 17.8345 6.40292 14.7095 8.6015C12.6078 10.0803 10.663 11.8526 8.6895 13.75H16.25C17.6308 13.75 18.75 14.8693 18.75 16.25C18.75 17.6307 17.6308 18.75 16.25 18.75H2.5C1.11926 18.75 0 17.6307 0 16.25V2.5C0 1.1193 1.11926 0 2.5 0C3.88075 0 5 1.1193 5 2.5V10.3593C7.12075 8.31457 9.38601 6.23342 11.8325 4.51222C15.5128 1.9229 19.7882 0 25 0Z",fill:r}))}),MA=["color","size"],aw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,MA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M39.4229 8.89453L39.7891 16.6582H38.8613C38.6823 15.291 38.4382 14.3145 38.1289 13.7285C37.6243 12.7845 36.9489 12.0928 36.1025 11.6533C35.2725 11.1976 34.1738 10.9697 32.8066 10.9697H28.1436V36.2627C28.1436 38.2972 28.3633 39.5667 28.8027 40.0713C29.4212 40.7549 30.3734 41.0967 31.6592 41.0967H32.8066V42H18.7686V41.0967H19.9404C21.3402 41.0967 22.333 40.6735 22.9189 39.8271C23.277 39.3063 23.4561 38.1182 23.4561 36.2627V10.9697H19.4766C17.9303 10.9697 16.8317 11.0837 16.
1051807 11.3115C15.3343 11.6208 14.61 12.2148 14.0078 13.0938C13.4056 13.9727 13.0475 15.1608 12.9336 16.6582H12.0059L12.3965 8.89453H39.4229Z",fill:r}))}),LA=["color","size"],Zy=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,LA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 45 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M0 1.89502C0 1.20466 0.559644 0.64502 1.25 0.64502H28.75C29.4404 0.64502 30 1.20466 30 1.89502C30 2.58538 29.4404 3.14502 28.75 3.14502H1.25C0.559645 3.14502 0 2.58538 0 1.89502Z",fill:r}),L.createElement("path",{d:"M0 14.395C0 13.7047 0.559644 13.145 1.25 13.145H43.75C44.4404 13.145 45 13.7047 45 14.395C45 15.0854 44.4404 15.645 43.75 15.645H1.25C0.559645 15.645 0 15.0854 0 14.395Z",fill:r}),L.createElement("path",{d:"M1.25 25.645C0.559644 25.645 0 26.2047 0 26.895C0 27.5854 0.559645 28.145 1.25 28.145H28.75C29.4404 28.145 30 27.5854 30 26.895C30 26.2047 29.4404 25.645 28.75 25.645H1.25Z",fill:r}))}),TA=["color","size"],iw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,TA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 46 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M38 1.50049C38 0.810132 37.4404 0.250488 36.75 0.250488H9.25C8.55964 0.250488 8 0.810132 8 1.50049C8 2.19084 8.55964 2.75049 9.25 2.75049H36.75C37.4404 2.75049 38 2.19084 38 1.50049Z",fill:r}),L.createElement("path",{d:"M45.5 14.0005C45.5 13.3101 44.9404 12.7505 44.25 12.7505H1.75C1.05964 12.7505 0.5 13.3101 0.5 14.0005C0.5 14.6908 1.05964 15.2505 1.75 15.2505H44.25C44.9404 15.2505 45.5 14.6908 45.5 14.0005Z",fill:r}),L.createElement("path",{d:"M36.75 25.2505C37.4404 25.2505 38 25.8101 38 26.5005C38 27.1908 37.4404 27.7505 36.75 27.7505H9.25C8.55964 27.7505 8 27.1908 8 26.5005C8 25.8101 8.55964 25.2505 9.25 25.2505H36.75Z",fill:r}))}),AA=["color","size"],ow=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,AA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 45 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M2.66027 14.6997L3.59752 14.4437L3.09232 3.93218C3.05918 3.24262 2.47331 2.71049 1.78375 2.74363C1.09419 2.77677 0.562061 3.36263 0.595202 4.05219L1.16041 15.8123C1.19355 16.5018 1.77942 17.034 2.46898 17.0008L14.2291 16.4356C14.9186 16.4025 15.4508 15.8166 15.4176 15.1271C15.3845 14.4375 14.7986 13.9054 14.1091 13.9385L5.48447 14.353C8.23224 7.41077 15.0052 2.50049 22.925 2.50049C33.2802 2.50049 41.6748 10.8951 41.6748 21.2503C41.6748 22.4035 41.5706 23.5324 41.3713 24.6281L43.7968 25.261C44.0449 23.9622 44.1748 22.6214 44.1748 21.2503C44.1748 9.51435 34.6609 0.000488281 22.925 0.000488281C15.0467 0.000488281 8.16974 4.28779 4.50001 10.6566L2.66027 14.6997Z",fill:r}),L.createElement("path",{d:"M9.88491 34.708L8.27773 36.6309C8.82614 37.1539 9.40248 37.6479 10.0043 38.1103L11.5276 36.128C10.9528 35.6863 10.4043 35.2121 9.88491 34.708Z",fill:r}),L.createElement("path",{d:"M12.3142 39.6567C13.9038 40.5764 15.6235 41.2961 17.439 41.7814L18.0846 39.3662C16.4846 38.9385 14.9685 38.3041 13.5662 37.4928L12.3142 39.6567Z",fill:r}),L.createElement("path",{d:"M20.1654 42.3209C21.0738 42.4394 22.0002 42.5005 22.9408 42.5005C23.8815 42.5005 24.8079 42.4394 25.7162 42.3209L25.3929 39.8419C24.5915 39.9465 23.7731 40.0005 22.9408 40.0005C22.1086 40.0005 21.2902 39.9465 20.4888 39.8419L20.1654 42.3209Z",fill:r}),L.createElement("path",{d:"M28.4427 41.7814C30.2582 41.2961 31.9779 40.5764 33.5674 39.6567L32.3154 37.4928C30.9132 38.3041 29.397 38.9385 27.7971 39.3662L28.4427 41.7814Z",fill:r}),L.createElement("path",{d:"M35.8774 38.1103C37.3494 36.9791 38.6692 35.6594 39.8004 34.1873L37.8181 32.664C36.8193 33.9638 35.6538 35.1292 34.354 36.128L35.8774 38.1103Z",fill:r}),L.createElement("path",{d:"M41.3468 31.8773C42.2665 30.2878 42.9862 28.5681 43.4715 26.7526L41.0563 26.107C40.6286 27.707 39.9942 29.2231 39.1829 30.6253L41.3468 31.8773Z",fill:r}))}),IA=["color","size"],NA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,IA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("g",{clipPath:"url(#clip0)"},L.createElement("path",{d:"M50.2753 26.8064H24.4689L36.5656 14.7096C32.735 11.0806 28.7027 9.66933 23.6624 9.66933C13.3802 9.66933 6.32372 15.3145 3.50118 25.5967L0.275391 24.7903C3.50118 13.0968 
10511.9689 6.44355 23.6625 6.44355C29.7109 6.44355 34.348 8.25806 38.9851 12.2903L50.2754 1L50.2753 26.8064Z",fill:r}),L.createElement("path",{d:"M34.5495 46.3628L33.1382 44.3467C33.743 43.9435 34.3479 43.3386 34.9527 42.9355L36.5656 44.75C35.9608 45.1532 35.3559 45.758 34.5495 46.3628Z",fill:r}),L.createElement("path",{d:"M27.2913 49.387C26.6865 49.5886 26.0817 49.5886 25.4768 49.7903L25.0736 47.3709C26.4848 47.1693 27.8962 46.7661 29.3074 46.3628L30.1139 48.5806C29.1058 48.9838 28.2994 49.1854 27.2913 49.387ZM20.4365 49.9919C18.8235 49.7903 17.2107 49.5886 15.5978 48.9838L16.4042 46.766C17.8155 47.1693 19.2268 47.5724 20.6381 47.5724L20.4365 49.9919ZM11.1623 46.9677C9.75104 46.1612 8.33971 45.1532 7.13003 43.9435L8.74296 42.129C9.75104 43.137 10.9607 43.9435 12.372 44.7499L11.1623 46.9677ZM3.90425 40.3144C2.89617 38.9032 2.08974 37.2903 1.6865 35.879L3.90425 35.0726C4.50909 36.4838 5.11393 37.6935 5.92036 38.9032L3.90425 40.3144Z",fill:r}),L.createElement("path",{d:"M3.2996 30.0322L0.880241 30.2338C0.678647 29.2257 0.678647 28.4193 0.678647 27.4112H3.09801C3.09801 28.4193 3.2996 29.2258 3.2996 30.0322Z",fill:r})),L.createElement("defs",null,L.createElement("rect",{width:"50",height:"50",fill:"white",transform:"translate(0.275391)"})))}),RA=["color","size"],FA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,RA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 51 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M40.5 20H38V12.5C38 5.6 32.4 0 25.5 0C18.6 0 13 5.6 13 12.5V20H10.5C9.1 20 8 21.1 8 22.5V47.5C8 48.9 9.1 50 10.5 50H40.5C41.9 50 43 48.9 43 47.5V22.5C43 21.1 41.9 20 40.5 20ZM15.5 12.5C15.5 7 20 2.5 25.5 2.5C31 2.5 35.5 7 35.5 12.5V20H15.5V12.5ZM40.5 47.5H10.5V22.5H40.5V47.5Z",fill:r}),L.createElement("path",{d:"M24.3 37.3V41.3H26.8V37.3C28.3 36.8 29.3 35.4 29.3 33.8C29.3 31.7 27.6 30 25.5 30C23.4 30 21.7 31.7 21.7 33.8C21.8 35.4 22.8 36.8 24.3 37.3ZM25.5 32.5C26.2 32.5 26.8 33.1 26.8 33.8C26.8 34.5 26.2 35.1 25.5 35.1C24.8 35.1 24.2 34.5 24.2 33.8C24.3 33.1 24.8 32.5 25.5 32.5Z",fill:r}))}),DA=["color","size"],jA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,DA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M36.2754 7.5C34.2754 3.1 29.8754 0 24.7754 0C17.8754 0 12.2754 5.6 12.2754 12.5V20H9.77539C8.37539 20 7.27539 21.1 7.27539 22.5V47.5C7.27539 48.9 8.37539 50 9.77539 50H39.7754C41.1754 50 42.2754 48.9 42.2754 47.5V22.5C42.2754 21.1 41.1754 20 39.7754 20H14.7754V12.5C14.7754 7 19.2754 2.5 24.7754 2.5C28.4754 2.5 31.7754 4.5 33.4754 7.6L36.2754 7.5ZM39.7754 47.5H9.77539V22.5H39.7754V47.5Z",fill:r}),L.createElement("path",{d:"M24.7754 30C22.6754 30 20.9754 31.7 20.9754 33.7C20.9754 35.3 21.9754 36.7 23.4754 37.2V41.2H25.9754V37.2C27.4754 36.7 28.4754 35.3 28.4754 33.7C28.5754 31.7 26.8754 30 24.7754 30ZM24.7754 35C24.0754 35 23.4754 34.4 23.4754 33.7C23.4754 33 24.0754 32.4 24.7754 32.4C25.4754 32.4 25.9754 33 25.9754 33.7C25.9754 34.4 25.4754 35 24.7754 35Z",fill:r}))}),BA=["color","size"],HA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,BA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("circle",{cx:"25",cy:"25",r:"8.33333",fill:r}))}),zA=["color","size"],GA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,zA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M42.6793 7.32203C32.916 -2.44013 17.0863 -2.44122 7.32197 7.32203C-2.44128 17.0853 -2.4402 32.915 7.32197 42.6793C17.0852 52.4404 32.9149 52.4415 42.6793 42.6793C52.4414 32.915 52.4403 17.0864 42.6793 7.32203ZM28.2605 35.8705C28.2605 37.6716 26.8007 39.1314 24.9995 39.1314C23.1984 39.1314 21.7386 37.6716 21.7386 35.8705V22.8267C21.7386 21.0256 23.1984 19.5658 24.9995 19.5658C26.800
1057 19.5658 28.2605 21.0256 28.2605 22.8267V35.8705ZM24.9419 17.2527C23.0636 17.2527 21.8114 15.9222 21.8506 14.2798C21.8114 12.558 23.0636 11.2678 24.98 11.2678C26.8974 11.2678 28.1105 12.5591 28.1507 14.2798C28.1496 15.9222 26.8985 17.2527 24.9419 17.2527Z",fill:r}))}),UA=["color","size"],sw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,UA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M48.9856 38.314L31.3034 3.80423C29.9688 1.42247 27.6118 0 24.9985 0C22.3852 0 20.0282 1.42247 18.6936 3.80423C18.6836 3.82245 18.6751 3.84067 18.665 3.8589L1.04158 38.2594C-0.321602 40.6914 -0.347383 43.612 0.971367 46.0713C2.29314 48.5321 4.67439 50 7.345 50H42.5544C45.225 50 47.7041 48.5321 49.0258 46.0713C50.3445 43.6121 50.3188 40.6913 48.9856 38.314ZM22.0659 15.8013C22.0659 14.0842 23.3789 12.6924 24.9985 12.6924C26.6182 12.6924 27.9311 14.0843 27.9311 15.8013V28.2372C27.9311 29.9541 26.6181 31.3462 24.9985 31.3462C23.3789 31.3462 22.0659 29.954 22.0659 28.2372V15.8013ZM24.9985 43.7821C22.5728 43.7821 20.5995 41.6902 20.5995 39.1186C20.5995 36.5471 22.5727 34.4552 24.9985 34.4552C27.4242 34.4552 29.3974 36.5471 29.3974 39.1186C29.3975 41.6901 27.4243 43.7821 24.9985 43.7821Z",fill:r}))}),WA=["color","size"],VA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,WA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M25 50C11.2033 50 0 38.7967 0 25C0 11.2033 11.2033 0 25 0C38.7967 0 50 11.2033 50 25C50 38.7967 38.6929 50 25 50ZM25 3.52697C13.1743 3.52697 3.63071 13.1743 3.63071 24.8963C3.63071 36.6183 13.278 46.2656 25 46.2656C36.8257 46.2656 46.3693 36.6183 46.3693 24.8963C46.3693 13.1743 36.8257 3.52697 25 3.52697Z",fill:r}),L.createElement("path",{d:"M28.3755 13.125C28.3755 11.3992 26.9765 10 25.2505 10C23.5245 10 22.1255 11.3992 22.1255 13.125C22.1255 14.8516 23.5245 16.25 25.2505 16.25C26.9765 16.25 28.3755 14.8516 28.3755 13.125Z",fill:r}),L.createElement("path",{d:"M20.563 38.5H29.938C30.8009 38.5 31.5005 37.8012 31.5005 36.9375C31.5005 36.0746 30.8009 35.375 29.938 35.375H28.3755V20.9375C28.3755 20.0746 27.6759 19.375 26.813 19.375H20.563C19.7001 19.375 19.0005 20.0746 19.0005 20.9375C19.0005 21.8012 19.7001 22.5 20.563 22.5H22.1255V35.375H20.563C19.7001 35.375 19.0005 36.0746 19.0005 36.9375C19.0005 37.8012 19.7001 38.5 20.563 38.5Z",fill:r}))}),YA=["color","size"],lw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,YA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.3032 17.8662C34.0646 17.8662 36.3032 15.6276 36.3032 12.8662C36.3032 10.1048 34.0646 7.86618 31.3032 7.86618C28.5418 7.86618 26.3032 10.1048 26.3032 12.8662C26.3032 15.6276 28.5418 17.8662 31.3032 17.8662ZM31.3032 15.3662C32.6839 15.3662 33.8032 14.2469 33.8032 12.8662C33.8032 11.4855 32.6839 10.3662 31.3032 10.3662C29.9225 10.3662 28.8032 11.4855 28.8032 12.8662C28.8032 14.2469 29.9225 15.3662 31.3032 15.3662Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9372 15.1063C16.3967 15.0794 16.8338 15.3071 17.075 15.6991L25.0831 28.7141L29.8357 24.4289C30.0935 24.1966 30.4362 24.0818 30.7819 24.1121C31.1276 24.1424 31.4452 24.3151 31.6586 24.5887L40.2822 35.6497C40.5759 36.0264 40.6292 36.5376 40.4196 36.9668C40.21 37.396 39.7741 37.6683 39.2964 37.6683H6.70331C6.2766 37.6683 5.87937 37.4506 5.64974 37.091C5.42011 36.7313 5.38981 36.2794 5.56937 35.8923L14.8765 15.8282C15.0702 15.4106 15.4777 15.1333 15.9372 15.1063ZM16.1652 18.991L8.66108 35.1683H36.7368L30.5126 27.1848L25.6422 31.5761C25.3666 31.8246 24.9947 31.9378 24.6274 31.885C24.26 31.8322 23.9351 31.6189 23.7406 31.3027L16.1652 18.991Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V43C45.5 44.3807 44.3807 45.5 43 45.5H3C1.61929 45.5 0.5 44.3807 0.5 43V3ZM3 3H43V43H3V3Z",fill:r}))}),ZA=["color","size"],KA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,ZA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.562515 0.562512H3.68752V2.90626H2.90627V3.68751H0.562515V0.562512ZM0.562515 44.3125V47.4375H3.68752V45.0938H2.90627V44.3125H0.562515ZM44.3125 47.4375H47.4375V44.3125H45.0938V45.0938H44.3125V47.4375ZM47.4375 3.68751V0.562512H44.3125V2.90626H45.0938V3.68751H47.4375ZM7.59376 0.562512V3.68751H12.2813V0.562512H7.59376ZM16.9688 0.562512V3.68751H21.6563V0.562512H16.9688ZM26.3438 0.562512V3.68751H31.0313V0.562512H26.3438ZM35.7188 0.562512V3.68751H40.4063V0.562512H35.7188ZM47.4375 7.59376H44.3125V12.2813H47.4375V7.59376ZM47.4375 16.9688H44.3125V21.6563H47.4375V16.9688ZM47.4375 26.3438H44.3125V31.0313H47.4375V26.3438ZM47.4375 35.7188H44.3125V40.4063H47.4375V35.7188ZM40.4063 47.4375V44.3125H35.7188V47.4375H40.4063ZM31.0313 47.4375V44.3125H26.3438V47.4375H31.0313ZM21.6563 47.4375V44.3125H16.9688V47.4375H21.6563ZM12.2813 47.4375V44.3125H7.59377V47.4375H12.2813ZM0.562515 40.4063H3.68752V35.7188H0.562515V40.4063ZM0.562515 31.0313H3.68752V26.3438H0.562515V31.0313ZM0.562515 21.6563H3.68752V16.9688H0.562515V21.6563ZM0.562515 12.2813H3.68752V7.59376H0.562515V12.2813Z",fill:r}))}),$A=["color","size"],XA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,$A);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.5001 24.0625C38.2086 24.0625 38.8284 23.5858 39.0102 22.901C39.1921 22.2162 38.8904 21.4948 38.2753 21.1433L3.27531 1.14333C2.79171 0.866989 2.19757 0.868973 1.71583 1.14854C1.23409 1.4281 0.937592 1.94298 0.937592 2.49996V22.5C0.937592 23.3629 1.63715 24.0625 2.50009 24.0625L37.5001 24.0625ZM4.06259 20.9375L4.06259 5.19243L31.6164 20.9375L4.06259 20.9375Z",fill:r}),L.createElement("path",{d:"M38.2753 28.8566C38.8904 28.5051 39.1921 27.7837 39.0102 27.0989C38.8284 26.4142 38.2086 25.9375 37.5001 25.9375H35.3126V26.9504L34.5374 27.3933L35.3126 28.75V29.0625H35.4912L36.0878 30.1066L38.2753 28.8566Z",fill:r}),L.createElement("path",{d:"M27.3378 35.1066L31.7128 32.6066L30.1624 29.8933L25.7874 32.3933L27.3378 35.1066Z",fill:r}),L.createElement("path",{d:"M30.9376 25.9375H26.5626L26.5626 29.0625H30.9376L30.9376 25.9375Z",fill:r}),L.createElement("path",{d:"M18.5878 40.1066L22.9628 37.6066L21.4124 34.8933L17.0374 37.3933L18.5878 40.1066Z",fill:r}),L.createElement("path",{d:"M22.1876 25.9375H17.8126V29.0625H22.1876V25.9375Z",fill:r}),L.createElement("path",{d:"M9.83781 45.1066L14.2128 42.6066L12.6624 39.8933L8.28738 42.3933L9.83781 45.1066Z",fill:r}),L.createElement("path",{d:"M13.4376 25.9375H9.0626V29.0625H13.4376V25.9375Z",fill:r}),L.createElement("path",{d:"M3.27531 48.8566L5.46281 47.6066L4.06259 45.1562V45H3.97331L3.91238 44.8933L3.72578 45H0.937592V47.5C0.937592 48.0569 1.23409 48.5718 1.71583 48.8514C2.19758 49.1309 2.79171 49.1329 3.27531 48.8566Z",fill:r}),L.createElement("path",{d:"M4.6876 25.9375L2.50009 25.9375C1.63715 25.9375 0.937592 26.637 0.937592 27.5V30H4.06259V29.0625H4.6876V25.9375Z",fill:r}),L.createElement("path",{d:"M0.937592 35V40L4.06259 40V35H0.937592Z",fill:r}))}),qA=["color","size"],QA=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,qA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0625 1.93758C24.0625 1.22909 23.5858 0.609274 22.901 0.427427C22.2163 0.245581 21.4949 0.547225 21.1434 1.16237L1.14337 39.2874C0.867028 39.771 0.869012 40.3651 1.14858 40.8468C1.42814 41.3286 1.94302 41.6251 2.5 41.6251H22.5C23.3629 41.6251 24.0625 40.9255 24.0625 40.0626V1.93758ZM20.9375 38.5001H5.19247L20.9375 7.82128V38.5001Z",fill:r}),L.createElement("path",{d:"M28.8566 1.16237C28.5051 0.547225 27.7837 0.245581 27.099 0.427428C26.4142 0.609274 25.9375 1.22909 25.9375 1.93758V4.12508H26.9504L27.3934 4.9003L28.75 4.12508H29.0625V3.94651L30.1066 3.34986L28.8566 1.16237Z",fill:r}),L.createElement("path",{d:"M35.1066 12.0999L32.6066 7.72486L29.8934 9.2753L32.3934 13.6503L35.1066 12.0999Z",fill:r}),L.createElement("path",{d:"M25.9375 8.50008V12.8751H29.0625V8.50008H25.9375Z",fill:r}),L.createElement("path",{d:"M40.1066 23.9749L37.6066 19.5999L34.8934 21.1503L37.3934 25.5253L40.1066 23.9749Z",fill:r}),L.createElement("path",{d:"M25.9375 20.3751V24.7501H29.0625V20.3751H25.9375Z",fill:r}),L.createElement("path",{d:"M45.1066 32.7249L42.6066 28.3499L39.8934 29.9003L42.3934 34.2753L45.1066 32.7249Z",fill:r}),L.createElement("path",{d:"M25.9375 29.1251V33.5001H29.0625V29.1251H25.9375Z",fill:r}),L.createElement("path",{d:"M48.8566 39.2874L47.6066 37.0999L45.1562 38.5001H45V38.5894L44.8934 38.6503L45 38.8369V41.6251H47.5C48.057 41.6251 48.5719 41.3286 48.8514 40.8468C49.131 40.3651 49.133 39.771 48.8566 39.2874Z",fill:r}),L.createElement("path",{d:"M25.9375 37.8751V40.0626C25.9375 40.9255 26.6371 41.6251 27.5 41.6251H30V38.5001H29.0625V37.8751H25.9375Z",fill:r}),L.createElement("path",{d:"M35 41.6251H40V38.5001H35V41.6251Z",fill:r}))}),JA=["color","size"],cw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,JA);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.2047 46.875C37.2859 46.875 47.0797 37.0812 47.0797 25C47.0797 12.9188 37.2859 3.125 25.2047 3.125C13.1235 3.125 3.32968 12.9188 3.32968 25C3.32968 37.0812 13.1235 46.875 25.2047 46.875ZM25.2047 50C39.0118 50 50.2047 38.8071 50.2047 25C50.2047 11.1929 39.0118 0 25.2047 0C11.3976 0 0.204681 11.
1051929 0.204681 25C0.204681 38.8071 11.3976 50 25.2047 50Z",fill:r}))}),tI=["color","size"],eI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,tI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 51 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11841 3.93805V32.063H47.8684V3.93805H4.11841ZM3.49341 0.813049C2.1127 0.813049 0.993408 1.91235 0.993408 3.26841V32.7327C0.993408 34.0887 2.1127 35.188 3.49341 35.188H48.4934C49.8741 35.188 50.9934 34.0887 50.9934 32.7327V3.26841C50.9934 1.91235 49.8741 0.813049 48.4934 0.813049H3.49341Z",fill:r}))}),nI=["color","size"],rI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,nI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50015 7.9997C5.50015 6.61898 6.61944 5.49969 8.00015 5.49969H38.0002C39.3809 5.49969 40.5002 6.61898 40.5002 7.99969V37.9997C40.5002 39.3804 39.3809 40.4997 38.0002 40.4997H8.00015C6.61944 40.4997 5.50015 39.3804 5.50015 37.9997V7.9997ZM8.00015 7.99969H38.0002V37.9997H8.00015V7.99969Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V43C45.5 44.3807 44.3807 45.5 43 45.5H3C1.61929 45.5 0.5 44.3807 0.5 43V3ZM3 3H43V43H3V3Z",fill:r}))}),aI=["color","size"],iI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,aI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M0.166672 0.166664H8.50001V8.5H0.166672V0.166664Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8333 8.5H8.50001V16.8333H0.166672V25.1667H8.50001V33.5H0.166672V41.8333H8.50001V33.5H16.8333V41.8333H25.1667V33.5H33.5V41.8333H41.8333V33.5H33.5V25.1667H41.8333V16.8333H33.5V8.5H41.8333V0.166664H33.5V8.5H25.1667V0.166664H16.8333V8.5ZM16.8333 16.8333V8.5H25.1667V16.8333H16.8333ZM16.8333 25.1667V33.5H25.1667V25.1667H33.5V16.8333H25.1667V25.1667H16.8333ZM16.8333 25.1667H8.50001V16.8333H16.8333V25.1667Z",fill:r}))}),oI=["color","size"],sI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,oI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.95831 0.458374C1.5776 0.458374 0.458313 1.57766 0.458313 2.95837V35.4584C0.458313 36.8391 1.5776 37.9584 2.95831 37.9584H7.54167V43.7917C7.54167 45.8627 9.2206 47.5417 11.2917 47.5417H43.7917C45.8627 47.5417 47.5417 45.8627 47.5417 43.7917V11.2917C47.5417 9.22059 45.8627 7.54166 43.7917 7.54166H37.9583V2.95837C37.9583 1.57766 36.839 0.458374 35.4583 0.458374H2.95831ZM35.4583 2.95837H2.95831L2.95831 35.4584H35.4583V2.95837ZM15.7267 37.9584L10.0417 43.746V37.9584H15.7267ZM11.5135 45.0417L18.4712 37.9584H28.5529L21.4696 45.0417H11.5135ZM24.4159 45.0417H34.2932L45.0417 34.1339V24.0207L37.9583 31.3242V35.4584C37.9583 36.8391 36.839 37.9584 35.4583 37.9584H31.4912C31.4689 37.9859 31.445 38.0126 31.4194 38.0382L24.4159 45.0417ZM45.0417 21.3515L37.9583 28.655V18.9107L45.0417 11.8338V21.3515ZM37.0311 45.0417H43.7917C44.482 45.0417 45.0417 44.482 45.0417 43.7917V36.9124L37.0311 45.0417ZM43.8844 10.045C43.8538 10.0428 43.8229 10.0417 43.7917 10.0417H37.9583V15.9657L43.8844 10.045Z",fill:r}))}),lI=["color","size"],cI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,lI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M3 3H23V0.5H3C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V23H43V43H3V3Z",fill:r}),L.createElement("path",{d:"M45.5 7.25076H43V5.50076C43 5.15718 42.9321 4.83576 42.8113 4.54446L45.1206 3.58682C45.3651 4.17636 45.5 4.82281 45.5 5.50076V7.25076Z",fill:r}),L.createElement("path",{d:"M24.75 0.500763V3.00076H28.25V0.500763H24.75Z",fill:r}),L.createElement("path",{d:"M31.75 0.500763V3.00076H35.25V0.500763H31.75Z",fill:r}),L.createElement("path",{d:"M38.75 0.500763V3.00076H40.5C40.8436 3.00076 41.165 3.06868 41.4563 3.18948L42.414 0.880166C41.8244 0.635694 41.178 0.500763 40.5 0.500763H38.75Z",fill:r}),L.createElement("path",{d:"M45.5 10.7508H43V14.2508H45.5V10.7508Z",fill:r}),L.createElement("path",{d:"M45.5 17.7508H43V21.2508H45.5V17.7508Z",fill:r}))}),uI=["color","size"],dI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,uI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M9.25008 9.24878H11.7501V10.9675H10.9688V11.7488H9.25008V9.24878Z",fill:r}),L.createElement("path",{d:"M9.25008 34.2488V36.7488H11.7501V35.03H10.9688V34.2488H9.25008Z",fill:r}),L.createElement("path",{d:"M34.2501 36.7488H36.7501V34.2488H35.0313V35.03H34.2501V36.7488Z",fill:r}),L.createElement("path",{d:"M36.7501 11.7488V9.24878H34.2501V10.9675H35.0313V11.7488H36.7501Z",fill:r}),L.createElement("path",{d:"M14.4063 9.24878V11.7488H17.8438V9.24878H14.4063Z",fill:r}),L.createElement("path",{d:"M21.2813 9.24878V11.7488H24.7188V9.24878H21.2813Z",fill:r}),L.createElement("path",{d:"M28.1563 9.24878V11.7488H31.5938V9.24878H28.1563Z",fill:r}),L.createElement("path",{d:"M36.7501 14.405H34.2501V17.8425H36.7501V14.405Z",fill:r}),L.createElement("path",{d:"M36.7501 21.28H34.2501V24.7175H36.7501V21.28Z",fill:r}),L.createElement("path",{d:"M36.7501 28.155H34.2501V31.5925H36.7501V28.155Z",fill:r}),L.createElement("path",{d:"M31.5938 36.7488V34.2488H28.1563V36.7488H31.5938Z",fill:r}),L.createElement("path",{d:"M24.7188 36.7488V34.2488H21.2813V36.7488H24.7188Z",fill:r}),L.createElement("path",{d:"M17.8438 36.7488V34.2488H14.4063V36.7488H17.8438Z",fill:r}),L.createElement("path",{d:"M9.25008 31.5925H11.7501V28.155H9.25008V31.5925Z",fill:r}),L.createElement("path",{d:"M9.25008 24.7175H11.7501V21.28H9.25008V24.7175Z",fill:r}),L.createElement("path",{d:"M9.25008 17.8425H11.7501V14.405H9.25008V17.8425Z",fill:r}),L.createElement("path",{d:"M23.0002 26.7497C25.0712 26.7497 26.7502 25.0708 26.7502 22.9997C26.7502 20.9286 25.0712 19.2497 23.0002 19.2497C20.9291 19.2497 19.2502 20.9286 19.2502 22.9997C19.2502 25.0708 20.9291 26.7497 23.0002 26.7497Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 0.5C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V3C45.5 1.61929 44.3807 0.5 43 0.5H3ZM43 3H3V43H43V3Z",fill:r}))}),hI=["color","size"],fI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,hI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29986 0.991788C4.78802 0.503633 5.57947 0.503633 6.06763 0.991788L9.367 4.29116C9.85516 4.77932 9.85516 5.57077 9.367 6.05893C8.87885 6.54708 8.08739 6.54708 7.59924 6.05893L6.43374 4.89344V34.0829L7.59924 32.9174C8.08739 32.4293 8.87885 32.4293 9.367 32.9174C9.85516 33.4056 9.85516 34.197 9.367 34.6852L6.06763 37.9846C5.8332 38.219 5.51524 38.3507 5.18371 38.3507C4.85217 38.3507 4.53422 38.219 4.29981 37.9845L1.00084 34.6851C0.512712 34.1969 0.512761 33.4055 1.00095 32.9174C1.48913 32.4292 2.28059 32.4293 2.76871 32.9175L3.93374 34.0827V4.89344L2.76825 6.05893C2.2801 6.54708 1.48864 6.54708 1.00049 6.05893C0.51233 5.57077 0.51233 4.77932 1.00049 4.29116L4.29986 0.991788ZM13.1588 8.34109V1.49725H46.3156V8.34102H43.398V7.19776C43.398 5.54595 42.0562 4.20442 40.4047 4.20442H31.8516V26.0992C31.8516 28.1387 33.5088 29.7957 35.5481 29.7957H36.5137V32.4599H23.01V29.7957H23.9756C26.0151 29.7957 27.6721 28.1387 27.6721 26.0992V4.20448H19.0697C17.418 4.20448 16.0763 5.54604 16.0763 7.19783V8.34109H13.1588ZM46.9995 39.7088C47.4877 39.2207 47.4877 38.4292 46.9995 37.9411L43.7001 34.6417C43.212 34.1535 42.4205 34.1535 41.9324 34.6417C41.4442 35.1298 41.4442 35.9213 41.9324 36.4095L43.0979 37.5749L15.0832 37.5749L16.2484 36.4099C16.7366 35.9218 16.7366 35.1303 16.2485 34.6421C15.7604 34.154 14.9689 34.1539 14.4807 34.642L11.1814 37.941C10.9469 38.1754 10.8152 38.4934 10.8152 38.8249C10.8152 39.1564 10.9469 39.4744 11.1813 39.7088L14.4807 43.0082C14.9688 43.4964 15.7603 43.4964 16.2485 43.0082C16.7366 42.5201 16.7366 41.7286 16.2485 41.2404L15.083 40.0749L43.0979 40.0749L41.9324 41.2404C41.4442 41.7286 41.4442 42.5201 41.9324 43.0082C42.4205 43.4964 43.212 43.4964 43.7001 43.0082L46.9995 39.7088Z",fill:r}))}),pI=["color","size"],gI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,pI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M13.8334 9.19949C13.8334 8.50914 14.3931 7.94949 15.0834 7.94949H31.3334C32.0238 7.94949 32.5834 8.50914 32.5834 9.19949C32.5834 9.88985 32.0238 10.4495 31.3334 10.4495H15.0834C14.3931 10.4495 13.8334 9.88985 13.8334 9.19949Z",fill:r}),L.createElement("path",{d:"M15.0834 35.5496C14.3931 35.5496 13.8334 36.1092 13.8334 36.7996C13.8334 37.4899 14.3931 38.0496 15.0834 38.0496H31.3334C32.0238 38.0496 32.5834 37.4899 32.5834 36.7996C32.5834 36.1092 32.0238 35.5496 31.3334 35.5496H15.0834Z",fill:r}),L.createElement("path",{d:"M36.8001 13.4163C37.4905 13.4163 38.0501 13.9759 38.0501 14.6663V30.9163C38.0501 31.6066 37.4905 32.1663 36.8001 32.1663C36.1098 32.1663 35.5501 31.6066 35.5501 30.9163V14.6663C35.5501 13.9759 36.1098 13.4163 36.8001 13.4163Z",fill:r}),L.createElement("path",{d:"M10.45 14.6663C10.45 13.9759 9.89038 13.4163 9.20003 13.4163C8.50967 13.4163 7.95003 13.9759 7.95003 14.6663L7.95003 30.9163C7.95003 31.6066 8.50967 32.1663 9.20003 32.1663C9.89038 32.1663 10.45 31.6066 10.45 30.9163L10.45 14.6663Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 0.5C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V3C45.5 1.61929 44.3807 0.5 43 0.5H3ZM43 3H3V43H43V3Z",fill:r}))}),mI=["color","size"],vI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,mI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.103 18.4866L24.0002 3.8811L3.89749 18.4866L11.5761 42.1188H36.4244L44.103 18.4866ZM25.8371 1.35293C24.7418 0.557164 23.2587 0.557162 22.1634 1.35292L2.06066 15.9584C0.96539 16.7542 0.507082 18.1647 0.925439 19.4523L8.604 43.0845C9.02236 44.372 10.2222 45.2438 11.5761 45.2438H36.4244C37.7782 45.2438 38.9781 44.372 39.3965 43.0845L47.075 19.4523C47.4934 18.1647 47.0351 16.7542 45.9398 15.9584L25.8371 1.35293Z",fill:r}))}),yI=["color","size"],bI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,yI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0078 29.9669H25.835L24.7803 35.9727H27.4609L28.5156 29.9669H32.2363V27.4473H28.9551L29.6875 23.2872H33.3496V20.7383H30.1416L31.2109 14.6446H28.5303L27.4609 20.7383H24.6191L25.6885 14.6446H23.0225L21.9531 20.7383H18.1006V23.2872H21.499L20.7666 27.4473H17.002V29.9669H20.3271L19.2725 35.9727H21.9531L23.0078 29.9669ZM26.2744 27.4473H23.4473L24.165 23.2872H27.0068L26.2744 27.4473Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.5448 0.821208C24.421 0.184598 25.6075 0.184597 26.4837 0.821207L48.4803 16.8026C49.3565 17.4392 49.7231 18.5677 49.3885 19.5977L40.9865 45.4562C40.6518 46.4862 39.692 47.1836 38.6089 47.1836H11.4197C10.3366 47.1836 9.37672 46.4862 9.04204 45.4562L0.640107 19.5977C0.305422 18.5677 0.672067 17.4392 1.54829 16.8026L23.5448 0.821208ZM25.0143 2.84375L47.0108 18.8252L38.6089 44.6836H11.4197L3.01775 18.8252L25.0143 2.84375Z",fill:r}))}),wI=["color","size"],xI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,wI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 46 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.5 15.0005C45.5 15.7079 45.2003 16.3822 44.6753 16.8562L30.8291 29.3562C29.8042 30.2814 28.2234 30.2006 27.2982 29.1758C26.373 28.1509 26.4537 26.57 27.4786 25.6448L36.5 17.5005L3 17.5005C1.61928 17.5005 0.499999 16.3812 0.499999 15.0005C0.499999 13.6198 1.61929 12.5005 3 12.5005L36.5 12.5005L27.4786 4.35618C26.4537 3.43096 26.373 1.85011 27.2982 0.82525C28.2234 -0.199608 29.8042 -0.280382 30.8291 0.644837L44.6753 13.1448C45.2003 13.6189 45.5 14.2931 45.5 15.0005Z",fill:r}))}),CI=["color","size"],SI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,CI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 48L26.9931 2H31.2019L23.2087 48H19Z",fill:r}))}),_I=["color","size"],EI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,_I);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M0.214966 17.4813V0.518677H6.61123C8.82693 0.518677 10.5075 0.914783 11.653 1.70699C12.7985 2.49144 13.3712 3.64481 13.3712 5.16709C13.3712 5.99814 13.1413 6.7321 12.6814 7.36898C12.2216 7.99809 11.5819 8.46021 10.7625 8.75535C11.699 8.97282 12.4348 9.41164 12.9699 10.0718C13.5133 10.732 13.7851 11.5397 13.7851 12.4951C13.7851 14.1261 13.2249 15.361 12.1045 16.1998C10.9841 17.0386 9.38713 17.4658 7.31357 17.4813H0.214966ZM3.97748 10.0951V14.6736H7.20069C8.08697 14.6736 8.77677 14.4795 9.27007 14.0911C9.77174 13.695 10.0226 13.1513 10.0226 12.4601C10.0226 10.9067 9.1572 10.1184 7.42644 10.0951H3.97748ZM3.97748 7.62528H6.76173C8.65971 7.59421 9.6087 6.89132 9.6087 5.5166C9.6087 4.74769 9.36623 4.19625 8.88128 3.86228C8.4047 3.52054 7.64801 3.34967 6.61123 3.34967H3.97748V7.62528Z",fill:r}))}),OI=["color","size"],uw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,OI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M17.5911 1.54582C16.7075 0.680052 15.2937 0.680014 14.4101 1.54573L4.05296 11.6925C3.15635 12.5709 3.14159 14.0098 4.01999 14.9064C4.89839 15.8031 6.33733 15.8178 7.23394 14.9394L13.7278 8.57741V30.4419C13.7278 31.6971 14.7454 32.7147 16.0006 32.7147C17.2558 32.7147 18.2733 31.6971 18.2733 30.4419V8.57782L24.766 14.9393C25.6625 15.8178 27.1015 15.8031 27.9799 14.9065C28.8584 14.01 28.8437 12.571 27.9471 11.6926L17.5911 1.54582Z",fill:r}),L.createElement("path",{d:"M2.78827 36.5543C1.53308 36.5543 0.515541 37.5719 0.515541 38.827C0.515541 40.0822 1.53308 41.0998 2.78827 41.0998H29.1519C30.4071 41.0998 31.4246 40.0822 31.4246 38.827C31.4246 37.5719 30.4071 36.5543 29.1519 36.5543H2.78827Z",fill:r}))}),kI=["color","size"],dw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,kI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 28 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.907 0.71085C25.7493 -0.292553 23.9445 -0.224769 22.8758 0.862251L0.931376 23.1837C-0.0773525 24.2097 -0.0773525 25.7913 0.931376 26.8173L22.8758 49.1388C23.9445 50.2258 25.7493 50.2936 26.907 49.2902C28.0647 48.2868 28.1369 46.5921 27.0683 45.5051L6.90997 25.0005L27.0683 4.49589C28.1369 3.40888 28.0647 1.71425 26.907 0.71085Z",fill:r}))}),PI=["color
105","size"],MI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,PI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 28 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.09286 0.71085C2.25057 -0.292553 4.05541 -0.224769 5.12407 0.862251L27.0685 23.1837C28.0772 24.2097 28.0772 25.7913 27.0685 26.8173L5.12407 49.1388C4.05541 50.2258 2.25057 50.2936 1.09286 49.2902C-0.0648579 48.2868 -0.137051 46.5921 0.93161 45.5051L21.0899 25.0005L0.93161 4.49589C-0.137051 3.40888 -0.0648579 1.71425 1.09286 0.71085Z",fill:r}))}),LI=["color","size"],TI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,LI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 38 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M16.9167 21.0838L16.9167 35.6672C16.9167 36.8177 17.8494 37.7505 19 37.7505C20.1506 37.7505 21.0833 36.8177 21.0833 35.6672L21.0833 21.0838H35.6667C36.8173 21.0838 37.75 20.1511 37.75 19.0005C37.75 17.8499 36.8173 16.9172 35.6667 16.9172L21.0833 16.9172L21.0833 2.33382C21.0833 1.18323 20.1506 0.250488 19 0.250488C17.8494 0.250488 16.9167 1.18323 16.9167 2.33382L16.9167 16.9172H2.33333C1.18274 16.9172 0.25 17.8499 0.25 19.0005C0.25 20.1511 1.18274 21.0838 2.33333 21.0838H16.9167Z",fill:r}))}),AI=["color","size"],II=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,AI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.04757 38.9503C0.437373 38.3401 0.437373 37.3508 1.04757 36.7406L33.9229 3.86697L23.8354 3.33584C22.9736 3.29047 22.3118 2.5551 22.3572 1.69335C22.4026 0.831601 23.138 0.169794 23.9997 0.215167L37.5909 0.930759C38.3892 0.972794 39.027 1.61063 39.0691 2.40894L39.7846 16.0001C39.83 16.8619 39.1682 17.5972 38.3065 17.6426C37.4447 17.688 36.7093 17.0262 36.664 16.1644L36.1328 6.07651L3.25728 38.9503C2.64708 39.5605 1.65776 39.5605 1.04757 38.9503Z",fill:r}))}),NI=["color","size"],RI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,NI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.1607 4.16667V2.08333C27.1607 0.93274 26.2279 0 25.0773 0C23.9267 0 22.994 0.932741 22.994 2.08333V4.16667H4.244C1.94281 4.16667 0.0773315 6.03215 0.0773315 8.33333V41.6667C0.0773315 43.9679 1.94281 45.8333 4.244 45.8333H22.994V47.9167C22.994 49.0673 23.9267 50 25.0773 50C26.2279 50 27.1607 49.0673 27.1607 47.9167V45.8333H45.9107C48.2118 45.8333 50.0773 43.9678 50.0773 41.6667V8.33333C50.0773 6.03215 48.2119 4.16667 45.9107 4.16667H27.1607ZM22.994 8.33333H4.244L4.244 41.6667H22.994V8.33333ZM27.1607 41.6667V8.33333H45.9107V41.6667H27.1607Z",fill:r}))}),FI=["color","size"],DI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,FI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 38 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.835 5.0769L2.16498 5.0769C1.00277 5.0769 0.0606079 4.14726 0.0606079 3.00048C0.060608 1.85371 1.00277 0.924072 2.16498 0.924072L35.835 0.924074C36.9972 0.924074 37.9394 1.85372 37.9394 3.00049C37.9394 4.14726 36.9972 5.0769 35.835 5.0769Z",fill:r}))}),jI=["color","size"],BI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,jI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.48799 3.125H17.0311L17.0311 24.4063C17.0311 26.6148 18.1889 28.4084 19.5429 29.5401C21.7011 31.3438 23.0656 34.0456 23.0656 37.069C23.0656 42.4847 18.6753 46.875 13.2595 46.875C7.84382 46.875 3.45351 42.4847 3.45351 37.069C3.45351 34.0456 4.81799 31.3438 6.97617 29.5401C8.33021 28.4084 9.48799 26.6148 9.48799 24.4063V3.125ZM20.1561 3.125C20.1561 1.39911 18.757 0 17.0311 0H9.48799C7.7621 0 6.36299 1.39911 6.36299 3.125V24.4063C6.36299 25.4785 5.79482 26.4547 4.97216 27.1423C2.13398 29.5143 0.328506 33.0808 0.328506 37.069C0.328506 44.2106 6.11793 50 13.2595 50C20.4012 50 26.1906 44.2106 26.1906 37.069C26.1906 33.0808 24.3851 29.5143 21.5469 27.1423C20.7243 26.4547 20.1561 25.4785 20.1561 24.4063V3.125ZM35.6715 1.25C35.6715 0.559645 35.1119 0 34.4215 0H28.1715C27.4812 0 26.9215 0.559644 26.9215 1.25C26.9215 1.94036 27.4812 2.5 28.1715 2.5L34.4215 2.5C35.1119 2.5 35.6715 1.94036 35.6715 1.25ZM35.6715 8.24951C35.6715 7.55916 35.1119 6.99951 34.4215 6.99951H28.1715C27.4812 6.99951 26.9215 7.55916 26.9215 8.24951C26.9215 8.93987 27.4812 9.49951 28.1715 9.49951H34.4215C35.1119 9.49951 35.6715 8.93987 35.6715 8.24951ZM34.4215 13.999C35.1119 13.999 35.6715 14.5587 35.6715 15.249C35.6715 15.9394 35.1119 16.499 34.4215 16.499H28.1715C27.4812 16.499 26.9215 15.9394 26.9215 15.249C26.9215 14.5587 27.4812 13.999 28.1715 13.999H34.4215ZM13.2594 43.7501C16.366 43.7501 18.8844 41.2317 18.8844 38.1251C18.8844 35.4037 16.9519 33.1337 14.3844 32.6126V10.3662C14.3844 9.67582 13.8247 9.11617 13.1344 9.11617C12.444 9.11617 11.8844 9.67582 11.8844 10.3662V32.6694C9.44245 33.2829 7.63441 35.4928 7.63441 38.1251C7.63441 41.2317 10.1528 43.7501 13.2594 43.7501Z",fill:r}))}),HI=["color","size"],zI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,HI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4376 40.6858V38.5625V4.18746V3.31418C10.8133 4.10816 3.25006 12.1708 3.25006 22C3.25006 31.8292 
10510.8133 39.8918 20.4376 40.6858ZM40.7501 22C40.7501 31.8292 33.1868 39.8918 23.5626 40.6858V38.5625V4.18746V3.31418C33.1868 4.10816 40.7501 12.1708 40.7501 22ZM43.8751 22C43.8751 34.0812 34.0813 43.875 22.0001 43.875C9.91883 43.875 0.125061 34.0812 0.125061 22C0.125061 9.91877 9.91883 0.125 22.0001 0.125C34.0813 0.125 43.8751 9.91877 43.8751 22Z",fill:r}))}),GI=["color","size"],UI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,GI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3679 7.50003C15.7995 10.005 13.5592 11.875 10.8823 11.875C8.20528 11.875 5.96506 10.005 5.39665 7.50003H1.5448C0.854444 7.50003 0.2948 6.94039 0.2948 6.25003C0.2948 5.55967 0.854444 5.00003 1.5448 5.00003H5.39665C5.96506 2.49504 8.20528 0.625031 10.8823 0.625031C13.5592 0.625031 15.7995 2.49504 16.3679 5.00003H48.4557C49.1461 5.00003 49.7057 5.55967 49.7057 6.25003C49.7057 6.94039 49.1461 7.50003 48.4557 7.50003H16.3679ZM14.0073 6.25003C14.0073 7.97592 12.6082 9.37503 10.8823 9.37503C9.15637 9.37503 7.75726 7.97592 7.75726 6.25003C7.75726 4.52414 9.15637 3.12503 10.8823 3.12503C12.6082 3.12503 14.0073 4.52414 14.0073 6.25003Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.5715 27.625C37.2485 27.625 39.4887 25.755 40.0571 23.25H48.4554C49.1458 23.25 49.7054 22.6904 49.7054 22C49.7054 21.3096 49.1458 20.75 48.4554 20.75H40.0571C39.4887 18.245 37.2485 16.375 34.5715 16.375C31.8946 16.375 29.6543 18.245 29.0859 20.75H1.5448C0.854444 20.75 0.2948 21.3096 0.2948 22C0.2948 22.6904 0.854444 23.25 1.5448 23.25H29.0859C29.6543 25.755 31.8946 27.625 34.5715 27.625ZM34.5715 25.125C36.2974 25.125 37.6965 23.7259 37.6965 22C37.6965 20.2741 36.2974 18.875 34.5715 18.875C32.8456 18.875 31.4465 20.2741 31.4465 22C31.4465 23.7259 32.8456 25.125 34.5715 25.125Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.7702 39C22.2018 41.505 19.9615 43.375 17.2845 43.375C14.6076 43.375 12.3673 41.505 11.7989 39H1.5448C0.854444 39 0.2948 38.4403 0.2948 37.75C0.2948 37.0596 0.854444 36.5 1.5448 36.5H11.7989C12.3673 33.995 14.6076 32.125 17.2845 32.125C19.9615 32.125 22.2018 33.995 22.7702 36.5H48.4554C49.1458 36.5 49.7054 37.0596 49.7054 37.75C49.7054 38.4403 49.1458 39 48.4554 39H22.7702ZM20.4095 37.75C20.4095 39.4759 19.0104 40.875 17.2845 40.875C15.5587 40.875 14.1595 39.4759 14.1595 37.75C14.1595 36.0241 15.5587 34.625 17.2845 34.625C19.0104 34.625 20.4095 36.0241 20.4095 37.75Z",fill:r}))}),WI=["color","size"],VI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,WI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.2341 37.6984H37.5121V37.4237C41.4447 33.4687 43.875 28.0182 43.875 22C43.875 15.9819 41.4447 10.5314 37.5121 6.57632V6.30045H37.2328C33.2942 2.47819 27.9219 0.125031 22 0.125031C9.91877 0.125031 0.125 9.9188 0.125 22C0.125 34.0813 9.91877 43.875 22 43.875C24.718 43.875 27.3203 43.3793 29.7213 42.4733H30.5303V42.1494C33.0389 41.0861 35.308 39.5679 37.2341 37.6984ZM20.4257 3.31519C10.807 4.1148 3.25 12.1749 3.25 22C3.25 31.8252 10.807 39.8853 20.4257 40.6849V3.31519ZM34.3871 36.0759C33.221 37.1029 31.9263 37.9873 30.5303 38.7017V5.29836C31.9263 6.01281 33.221 6.89715 34.3871 7.92411V36.0759ZM37.5121 11.4641C39.5556 14.4669 40.75 18.094 40.75 22C40.75 25.9061 39.5556 29.5332 37.5121 32.536V11.4641ZM23.5507 40.6868C24.8796 40.578 26.1693 40.3307 27.4053 39.9592V4.04089C26.1693 3.66941 24.8796 3.42203 23.5507 3.31324V40.6868Z",fill:r}))}),YI=["color","size"],ZI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,YI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M46.1442 31.379C45.4585 31.379 44.8974 31.9429 44.8974 32.6321V43.7349C44.8974 45.8025 43.2267 47.4817 41.157 47.4943H6.22156C4.16433 47.4943 2.49361 45.8151 2.48114 43.7349V11.1283C2.48114 9.06067 4.15186 7.38147 6.22156 7.36894H17.2807C17.9665 7.36894 18.5275 6.80503 18.5275 6.1158C18.5275 5.42658 17.9665 4.86267 17.2807 4.86267H6.22156C2.79284 4.8752 0 7.66969 0 11.1283V43.7349C0 47.1935 2.79284 50.0005 6.22156 50.0005H41.157C44.5982 50.0005 47.3786 47.1935 47.3786 43.7474V32.6321C47.391 31.9429 46.83 31.379 46.1442 31.379Z",fill:r}),L.createElement("path",{d:"M46.8923 1.65462C44.698 -0.55089 41.157 -0.55089 38.9627 1.65462L16.7571 23.9729C16.
1056075 24.1233 16.4953 24.3113 16.4329 24.5243L13.5154 35.1258C13.3907 35.5644 13.5154 36.0281 13.8396 36.3413C14.1513 36.6546 14.6251 36.7799 15.049 36.6672L25.5969 33.7348C25.8089 33.6722 25.9959 33.5719 26.1455 33.409L48.3636 11.0782C50.5455 8.87267 50.5455 5.31377 48.3636 3.10826L46.8923 1.65462ZM19.4751 24.7875L37.6535 6.51678L43.5135 12.4065L25.3351 30.6897L19.4751 24.7875ZM18.3031 27.1559L22.9911 31.8677L16.5077 33.6722L18.3031 27.1559ZM46.5931 9.31127L45.2715 10.6396L39.4115 4.74986L40.7331 3.42154C41.9425 2.206 43.9249 2.206 45.1343 3.42154L46.5931 4.88771C47.815 6.11578 47.815 8.09573 46.5931 9.31127Z",fill:r}))}),KI=["color","size"],$I=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,KI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M18.3626 41.293C17.5103 41.4285 16.7096 40.8474 16.5742 39.9952C16.4387 39.143 17.0198 38.3423 17.872 38.2068C18.2902 38.1403 18.6988 38.0456 19.0958 37.9246C21.9368 37.059 24.1957 34.8468 25.1254 32.0335C25.2671 31.6049 25.378 31.1621 25.4555 30.7076C25.6005 29.857 26.4076 29.2849 27.2583 29.4299C28.109 29.5749 28.681 30.3821 28.536 31.2327C28.432 31.8429 28.283 32.4379 28.0926 33.0142C26.8449 36.7893 23.8206 39.7519 20.0065 40.914C19.4728 41.0766 18.9239 41.2038 18.3626 41.293Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.9356 31.0645C33.9356 23.9644 24.1764 8.59028 19.4747 1.59549C18.2785 -0.184172 15.7216 -0.184172 14.5254 1.59548C9.82374 8.59028 0.0645752 23.9644 0.0645752 31.0645C0.0645752 40.4177 7.64685 48 17.0001 48C26.3533 48 33.9356 40.4177 33.9356 31.0645ZM30.8106 31.0645C30.8106 29.8836 30.375 28.0316 29.4236 25.578C28.5 23.1959 27.1988 20.5159 25.7187 17.7756C22.8106 12.3913 19.3287 6.98743 17.0001 3.51586C14.6715 6.98743 11.1895 12.3913 8.28145 17.7756C6.80135 20.5159 5.50017 23.1959 4.57655 25.578C3.62517 28.0316 3.18958 29.8836 3.18958 31.0645C3.18958 38.6918 9.37274 44.875 17.0001 44.875C24.6274 44.875 30.8106 38.6918 30.8106 31.0645Z",fill:r}))}),XI=["color","size"],qI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,XI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M43.0081 15.2287L36.7869 17.6214L28.935 29.9601C30.5809 33.9266 30.3662 38.0903 27.1408 41.3158L26.5656 41.8909C25.9554 42.5011 24.9661 42.5011 24.3559 41.8909L14.4122 31.9472L2.99211 43.3673C2.38192 43.9775 1.3926 43.9775 0.782403 43.3673C0.17221 42.7571 0.172211 41.7678 0.782403 41.1576L12.2025 29.7375L2.25883 19.7938C1.64864 19.1836 1.64864 18.1943 2.25883 17.5841L2.50512 17.3378C5.73058 14.1123 10.2231 13.5688 14.1897 15.2147L26.5283 7.36283L28.9211 1.14165C29.327 0.0863053 30.6847 -0.201832 31.4843 0.597706L43.552 12.6655C44.3516 13.465 44.0634 14.8228 43.0081 15.2287ZM29.0752 9.44618L30.9747 4.50752L39.6422 13.1751L34.7035 15.0745L25.4251 29.655L26.0486 31.1577C27.234 34.0146 27.0773 36.5309 25.4342 38.5498L5.64209 18.7576C7.75439 17.2384 10.4304 17.0382 12.992 18.1011L14.4948 18.7246L29.0752 9.44618Z",fill:r}))}),QI=["color","size"],JI=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,QI);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.312012 34.847V3.39883C0.312012 1.67294 1.71112 0.273834 3.43701 0.273834H26.807C28.5329 0.273834 29.932 1.67294 29.932 3.39883V34.847C29.932 36.5729 28.5329 37.972 26.807 37.972H3.43701C1.71112 37.972 0.312012 36.5729 0.312012 34.847ZM3.43701 34.847V3.39883L26.807 3.39883L26.807 34.847L3.43701 34.847Z",fill:r}),L.createElement("path",{d:"M35.6874 12.5434C35.6874 11.6805 34.9878 10.9809 34.1249 10.9809C33.2619 10.9809 32.5624 11.6805 32.5624 12.5434V40.6009H9.89033C9.02739 40.6009 8.32783 41.3005 8.32783 42.1634C8.32783 43.0263 9.02739 43.7259 9.89033 43.7259H34.1249C34.9878 43.7259 35.6874 43.0263 35.6874 42.1634V12.5434Z",fill:r}))}
105),tN=["color","size"],hw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,tN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M15.75 17.3125C15.75 16.4496 16.4496 15.75 17.3125 15.75C18.1754 15.75 18.875 16.4496 18.875 17.3125L18.875 32.9375C18.875 33.8005 18.1754 34.5 17.3125 34.5C16.4496 34.5 15.75 33.8005 15.75 32.9375L15.75 17.3125Z",fill:r}),L.createElement("path",{d:"M26.6875 15.75C25.8246 15.75 25.125 16.4496 25.125 17.3125L25.125 32.9375C25.125 33.8005 25.8246 34.5 26.6875 34.5C27.5504 34.5 28.25 33.8005 28.25 32.9375V17.3125C28.25 16.4496 27.5504 15.75 26.6875 15.75Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.625 6.37503V3.25003C12.625 1.52414 14.0241 0.125031 15.75 0.125031H28.25C29.9759 0.125031 31.375 1.52414 31.375 3.25003V6.37503H42.3125C43.1754 6.37503 43.875 7.07459 43.875 7.93753C43.875 8.80048 43.1754 9.50003 42.3125 9.50003H39.1875V40.75C39.1875 42.4759 37.7884 43.875 36.0625 43.875H7.9375C6.21161 43.875 4.8125 42.4759 4.8125 40.75V9.50003L1.6875 9.50003C0.824554 9.50003 0.125 8.80048 0.125 7.93753C0.125 7.07459 0.824555 6.37503 1.6875 6.37503H12.625ZM15.75 3.25003H28.25V6.37503H15.75V3.25003ZM7.9375 9.50003L7.9375 40.75H36.0625V9.50003H7.9375Z",fill:r}))}),eN=["color","size"],nN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,eN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M43 3H31.75V0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V14.25H43V3Z",fill:r}),L.createElement("path",{d:"M3 14.25V3H14.25V0.5H3C1.61929 0.5 0.5 1.61929 0.5 3V14.25H3Z",fill:r}),L.createElement("path",{d:"M0.5 31.75V43C0.5 44.3807 1.61929 45.5 3 45.5H14.25V43H3V31.75H0.5Z",fill:r}),L.createElement("path",{d:"M43 31.75H45.5V43C45.5 44.3807 44.3807 45.5 43 45.5H31.75V43H43V31.75Z",fill:r}))}),rN=["color","size"],aN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,rN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 36 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0559 46.8755L32.0559 3.12555L3.93091 3.12555L3.93091 46.8755H32.0559ZM35.1809 3.12555C35.1809 1.39966 33.7818 0.000549316 32.0559 0.000549316H3.93091C2.20502 0.000549316 0.805908 1.39966 0.805908 3.12555V46.8755C0.805908 48.6014 2.20502 50.0005 3.93091 50.0005H32.0559C33.7818 50.0005 35.1809 48.6014 35.1809 46.8755L35.1809 3.12555Z",fill:r}))}),iN=["color","size"],oN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,iN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.961 39.0119L28.2837 7.27185C27.5934 6.17538 26.3971 5.5 24.9981 5.5C23.5956 5.5 22.3967 6.17887 21.7073 7.28034L4.06571 38.9613
105L4.03009 39.0197C3.33595 40.159 3.32316 41.4697 3.9939 42.6216C4.67405 43.786 5.89 44.5 7.34459 44.5H42.554C44.0596 44.5 45.3464 43.7436 46.0016 42.6231C46.6817 41.4564 46.652 40.1455 45.9968 39.0706L45.961 39.0119ZM49.0254 44.3856C47.7038 46.6495 45.2246 48 42.554 48H7.34459C4.67398 48 2.29272 46.6495 0.970942 44.3856C-0.347811 42.1231 -0.322029 39.4361 1.04116 37.1987L18.6646 5.55018C18.6697 5.5418 18.6743 5.53342 18.6789 5.52504C18.6836 5.51666 18.6882 5.50828 18.6932 5.49989C20.0278 3.30867 22.3849 2 24.9981 2C27.6114 2 29.9685 3.30867 31.303 5.49989L48.9853 37.2489C50.3185 39.436 50.3442 42.1232 49.0254 44.3856Z",fill:r}),L.createElement("path",{d:"M22.0001 16C22.0001 14.3431 23.3433 13 25.0001 13C26.657 13 28.0001 14.3431 28.0001 16V28C28.0001 29.6569 26.657 31 25.0001 31C23.3433 31 22.0001 29.6569 22.0001 28V16Z",fill:r}),L.createElement("path",{d:"M28.0001 37C28.0001 38.6569 26.657 40 25.0001 40C23.3433 40 22.0001 38.6569 22.0001 37C22.0001 35.3431 23.3433 34 25.0001 34C26.657 34 28.0001 35.3431 28.0001 37Z",fill:r}))}),sN=["color","size"],lN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,sN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 10.5001C20.5 16.023 16.0228 20.5001 10.5 20.5001C4.97714 20.5001 0.5 16.023 0.5 10.5001C0.5 4.97727 4.97714 0.500122 10.5 0.500122C16.0228 0.500122 20.5 4.97727 20.5 10.5001ZM7.88239 9.56904C8.00439 9.62145 8.11473 9.69763 8.20698 9.79314L9.49998 11.0861L12.793 7.79314C12.8852 7.69763 12.9956 7.62145 13.1176 7.56904C13.2396 7.51663 13.3708 7.48905 13.5036 7.48789C13.6363 7.48674 13.768 7.51204 13.8909 7.56232C14.0138 7.6126 14.1255 7.68686 14.2194 7.78075C14.3133 7.87464 14.3875 7.98629 14.4378 8.10919C14.4881 8.23208 14.5134 8.36376 14.5122 8.49654C14.5111 8.62932 14.4835 8.76054 14.4311 8.88255C14.3787 9.00455 14.3025 9.1149 14.207 9.20714L10.207 13.2071C10.0194 13.3946 9.76514 13.4999 9.49998 13.4999C9.23482 13.4999 8.98051 13.3946 8.79298 13.2071L6.79298 11.2071C6.69747 11.1149 6.62129 11.0046 6.56888 10.8825C6.51647 10.7605 6.48889 10.6293 6.48773 10.4965C6.48658 10.3638 6.51188 10.2321 6.56216 10.1092C6.61244 9.98629 6.6867 9.87464 6.78059 9.78075C6.87448 9.68686 6.98613 9.6126 7.10903 9.56232C7.23193 9.51204 7.3636 9.48674 7.49638 9.48789C7.62916 9.48905 7.76038 9.51663 7.88239 9.56904Z",fill:r}))}),cN=["color","size"],uN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,cN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 20.5001C16.0228 20.5001 20.5 16.023 20.5 10.5001C20.5 4.97727 16.0228 0.500122 10.5 0.500122C4.97715 0.500122 0.5 4.97727 0.5 10.5001C0.5 16.023 4.97715 20.5001 10.5 20.5001ZM15.4375 7.0912L11.8155 10.7132L15.4638 14.309C15.6213 14.4665 15.7 14.6503 15.7 14.8865C15.7 15.1227 15.6213 15.3064 15.4638 15.4639C15.3063 15.6214 15.1226 15.7001 14.8864 15.7001C14.6501 15.7001 14.4664 15.6214 14.3089 15.4639L10.6869 11.8419L7.06483 15.4639C6.77612 15.7789 6.25118 15.7789 5.93622 15.4639C5.77874 15.3064 5.7 15.0964 5.7 14.8865C5.7 14.6765 5.77874 14.4928 5.93622 14.3353L9.55827 10.7132L5.93622 7.0912C5.77874 6.93372 5.7 6.72374 5.7 6.51377C5.7 6.3038 5.77874 6.12007 5.93622 5.96259C6.25118 5.64763 6.74987 5.64763 7.06483 5.96259L10.6869 9.58464L14.3089 5.93634C14.5976 5.62138 15.1226 5.62138 15.4375 5.93634C15.595 6.09382 15.6738 6.27755 15.6738 6.51377C15.6738 6.74999 15.595 6.93372 15.4375 7.0912Z",fill:r}))}),dN=["color","size"],hN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,dN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M37.3438 16.4782L28.2887 25.5333L37.4095 34.5228C37.8032 34.9165 38 35.3758 38 35.9664C38 36.5569 37.8032 37.0162 37.4095 37.4099C37.0158 37.8036 36.5564 38.0005 35.9659 38.0005C35.3753 38.0005 34.916 37.8036 34.5223 37.4099L25.4672 28.3548L16.4121 37.4099C15.6903 38.1973 14.378 38.1973 13.5906 37.4099C13.1969 37.0162 13 36.4913 13 35.9664C13 35.4414 13.1969 34.9821 13.5906 34.5884L22.6457 25.5333L13.5906 16.4782C13.1969 16.0845 13 15.5595 13 15.0346C13 14.5097 13.1969 14.0504 13.5906 13.6567C14.378 12.8693 15.6247 12.8693 16.4121 13.6567L25.4672 22.7118L34.5223 13.591C35.2441 12.8036 36.5564 12.8036 37.3438 13.591C37.7375 13.9847 37.9344 14.4441 37.9344 15.0346C37.9344 15.6252 37.7375 16.0845 37.3438 16.4782Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-0.000488281 25.0005C-0.000488281 38.7972 11.2028 50.0005 24.9995 50.0005C38.6925 50.0005 49.9995 38.7972 49.9995 25.0005C49.9995 11.2038 38.7962 0.000488281 24.9995 0.000488281C11.2028 0.000488281 -0.000488281 11.2038 -0.000488281 25.0005ZM3.63022 24.8968C3.63022 13.1748 13.1738 3.52746 24.9995 3.52746C36.8252 3.52746 46.3688 13.1748 46.3688 24.8968C46.3688 36.6187 36.8252 46.266 24.9995 46.266C13.2775 46.266 3.63022 36.6187 3.63022 24.8968Z",fill:r}))}),fN=["color","size"],pN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,fN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M29.9338 5.26853C27.8524 4.75154 25.7006 4.56814 23.5381 4.72351C22.4874 4.799 21.4379 4.95535 20.4183 5.18855L19.3724 0.636496C20.6245 0.350265 21.9128 0.158175 23.2017 0.065597C25.8579 -0.125223 28.5034 0.100753 31.0653 0.737277L29.9338 5.26853Z",fill:r}),L.createElement("path",{opacity:"0.9",d:"M40.6131 11.9278C38.5498 9.48098 35.9044 7.52805 32.963 6.2805L34.7952 1.98303C38.4106 3.51633 41.6615 5.91575 44.1962 8.922L40.6131 11.9278Z",fill:r}),L.createElement("path",{opacity:"0.8",d:"M45.3329 23.5739L45.3303 23.5392C45.097 20.3085 44.1359 17.275 42.4734 14.5227L46.4838 12.1129C48.5302 15.501 49.7133 19.2325 50 23.2036L45.3329 23.5739Z",fill:r}),L.createElement("path",{opacity:"0.7",d:"M46.2688 38.2308L42.2981 35.7565C43.9958 33.0458 45.0372 29.9357 45.3095 26.7618L49.9744 27.1604C49.639 31.0674 48.3577 34.8958 46.2688 38.2308Z",fill:r}),L.createElement("path",{opacity:"0.6",d:"M34.4209 48.1735L32.6626 43.8456C35.6192 42.6505 38.2938 40.7405 40.3975 38.3222L43.9338 41.3828C41.3483 44.3551 38.0588 46.7033 34.4209 48.1735V48.1735Z",fill:r}),L.createElement("path",{opacity:"0.5",d:"M26.8033 49.9345C24.1593 50.1242 21.5262 49.9011 18.9766 49.2716L20.1013 44.7386C22.1729 45.25 24.3148 45.4309 26.4673 45.2766C27.5283 45.2004 28.5879 45.0416 29.6165 44.8049L30.6697 49.3551C29.4061 49.6459 28.1052 49.841 26.8033 49.9345V49.9345Z",fill:r}),L.createElement("path",{opacity:"0.4",d:"M15.2449 48.0311C11.6272 46.5033 8.37276 44.1086 5.83362 41.1063L9.412 38.0952C11.479 40.5388 14.1272 42.4877 17.0704 43.7306L15.2449 48.0311Z",fill:r}),L.createElement("path",{opacity:"0.3",d:"M3.54069 37.9198C1.48217 34.5223 0.292537 30.78 0.00479729 26.7959L0 26.7274L4.66972 26.3918L4.67579 26.478C4.90861 29.7017 5.87511 32.7443 7.54751 35.504L3.54069 37.9198Z",fill:r}),L.createElement("path",{opacity:"0.2",d:"M4.69761 23.2075L0.0335693 22.802C0.374666 18.8955 1.66191 15.0691 3.75587 11.7373L7.72274 14.2175C6.02088 16.9257 4.97478 20.0344 4.69761 23.2075V23.2075Z",fill:r}))}),gN=["color","color2","size"],mN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n;t.color2;var s=t.size,o=s===void 0?14:s,c=Tt(t,gN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M42.0001 6.11477C42.0001 4.48089 41.3639 2.94468 40.2086 1.78931C37.8238 -0.595528 33.9433 -0.595878 31.5582 1.78931L25.666 7.68191L22.9908 5.00654C22.5351 4.5509 21.7965 4.5509 21.3407 5.00654L17.8405 8.50695C17.3849 8.96259 17.3849 9.70141 17.8405 10.1572L20.51
10557 12.8325L3.63971 29.7097C3.5116 29.8378 3.41511 29.9939 3.35783 30.1658L2.27826 33.4048L1.30626 34.3769C-0.435198 36.1186 -0.435314 38.9525 1.30626 40.6943C3.04783 42.436 5.88157 42.4359 7.62314 40.6943L8.59514 39.7223L11.834 38.6426C12.0058 38.5853 12.1619 38.4888 12.29 38.3607L29.1661 21.4835L31.8413 24.1588C32.297 24.6145 33.0357 24.6145 33.4914 24.1588L36.9916 20.6584C37.4472 20.2028 37.4472 19.464 36.9916 19.0082L34.3164 16.3328L40.2086 10.4402C41.3639 9.28486 42.0001 7.74876 42.0001 6.11477ZM20.5157 26.8341H9.81507L22.1658 14.4826L27.516 19.8333L20.5157 26.8341ZM32.6663 21.6836L20.3156 9.332L22.1657 7.48168L34.5163 19.8333L32.6663 21.6836ZM38.5585 8.79014L32.6663 14.6827L27.316 9.332L33.2081 3.4394C34.6833 1.96421 37.0835 1.96409 38.5584 3.4394C40.0263 4.84774 40.0261 7.3818 38.5585 8.79014Z",fill:r}))}),vN=["color","size"],fw=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,vN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7.75049C0 6.92206 0.671573 6.25049 1.5 6.25049H48.5C49.3284 6.25049 50 6.92206 50 7.75049V9.43806C50 10.2665 49.3284 10.9381 48.5 10.9381H1.5C0.671571 10.9381 0 10.2665 0 9.43806V7.75049ZM0 24.1567C0 23.3283 0.671573 22.6567 1.5 22.6567H48.5C49.3284 22.6567 50 23.3283 50 24.1567V25.8443C50 26.6727 49.3284 27.3443 48.5 27.3443H1.5C0.671571 27.3443 0 26.6727 0 25.8443V24.1567ZM1.5 39.0629C0.671573 39.0629 0 39.7345 0 40.5629V42.2505C0 43.0789 0.671571 43.7505 1.5 43.7505H48.5C49.3284 43.7505 50 43.0789 50 42.2505V40.5629C50 39.7345 49.3284 39.0629 48.5 39.0629H1.5Z",fill:r}))}),yN=["color","size"],bN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,yN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 46 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.23229 1.23267C2.20863 0.256387 3.79154 0.256434 4.76782 1.23277L22.9989 19.465L41.2323 1.23267C42.2086 0.256387 43.7915 0.256434 44.7678 1.23277C45.7441 2.20911 45.7441 3.79203 44.7677 4.76831L24.7665 24.7683C24.2977 25.2371 23.6618 25.5005 22.9987 25.5005C22.3357 25.5005 21.6998 25.2371 21.231 24.7682L1.23218 4.7682C0.255899 3.79186 0.255946 2.20895 1.23229 1.23267Z",fill:r}))}),wN=["color","size"],xN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,wN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 46 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2326 1.23271C22.2089 0.256404 23.7918 0.256417 24.7681 1.23274L44.7678 21.2327C45.7441 22.2091 45.7441 23.792 44.7678 24.7683C43.7914 25.7446 42.2085 25.7446 41.2322 24.7682L23.0003 6.53602L4.76775 24.7683C3.79143 25.7446 2.20852 25.7446 1.23222 24.7682C0.255916 23.7919 0.255928 22.209 1.23225 21.2327L21.2326 1.23271Z",fill:r}))}),CN=["color","size"],SN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,CN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 47.5006C37.4264 47.5006 47.5 37.427 47.5 25.0006C47.5 12.5742 37.4264 2.50061 25 2.50061C12.5736 2.50061 2.5 12.5742 2.5 25.0006C2.5 37.427 12.5736 47.5006 25 47.5006ZM25 50.0006C38.8071 50.0006 50 38.8077 50 25.0006C50 11.1935 38.8071 0.000610352 25 0.000610352C11.1929 0.000610352 0 11.1935 0 25.0006C0 38.8077 11.1929 50.0006 25 50.0006Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.7355 35.1357C27.1751 35.7705 26.2217 35.7926 25.6359 35.1773L17.3026 26.423C17.0301 26.1368 16.8819 25.755 16.8752 25.3647C16.8686 24.9745 17.0037 24.5881 17.2652 24.2923L25.5985 14.8647C26.1593 14.2302 27.1128 14.2089 27.6981 14.8247C28.2539 15.4093 28.2679 16.3516 27.7348 16.9546L20.36 25.2978L27.6974 33.0057C28.2536 33.59 28.2681 34.5323 27.7355 35.1357ZM26.6695 34.3756C26.7058 34.3748 26.753 34.3599 26.7984 34.3085C26.9042 34.1886 26.8989 33.9798 26.792 33.8676L19.0594 25.7444C18.8357 25.5095 18.829 25.1425 19.0438 24.8995L26.7983 16.1268C26.9041 16.007 26.899 15.7983 26.7921 15.6859C26.7464 15.6377 26.7001 15.6249 26.6639 15.6256C26.6276 15.6263 26.5805 15.6412 26.5351 15.6926L18.2017 25.1202C18.1562 25.1717 18.1235 25.2514 18.1251 25.3435C18.1266 25.4356 18.1619 25.5128 18.208 25.5612L26.5413 34.3154C26.5871 34.3635 26.6334 34.3763 26.6695 34.3756Z",fill:r}),L.createElement("path",{d:"M26.7984 34.3085C26.753 34.3599 26.7058 34.3748 26.6695 34.3756C26.6334 34.3763 26.5871 34.3635 26.5413 34.3154L18.208 25.5612C18.1619 25.5128 18.1266 25.4356 18.1251 25.3435C18.1235 25.2514 18.1562 25.1717 18.2017 25.1202L26.5351 15.6926C26.5805 15.6412 26.6276 15.6263 26.6639 15.6256C26.7001 15.6249 26.7464 15.6377 26.7921 15.6859C26.899 15.7983 26.9041 16.007 26.7983 16.1268L19.0438 24.8995C18.829 25.1425 18.8357 25.5095 19.0594 25.7444L26.792 33.8676C26.8989 33.9798 26.9042 34.1886 26.7984 34.3085Z",fill:r}))}),_N=["color","size"],EN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,_N);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 47.5006C37.4264 47.5006 47.5 37.427 47.5 25.0006C47.5 12.5742 37.4264 2.50061 25 2.50061C12.5736 2.50061 2.5 12.5742 2.5 25.0006C2.5 37.427 12.5736 47.5006 25 47.5006ZM25 50.0006C38.8071 50.0006 50 38.8077 50 25.0006C50 11.1935 38.8071 0.000610352 25 0.000610352C11.1929 0.000610352 0 11.1935 0 25.0006C0 38.8077 11.1929 50.0006 25 50.0006Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.2645 14.8655C22.8249 14.2307 23.7783 14.2086 24.3641 14.8239L32.6974 23.5781C32.9699 23.8644 33.1181 24.2461 33.1248 24.6364C33.1314 25.0267 32.9963 25.4131 32.7348 25.7089L24.4015 35.1365C23.8406 35.7709 22.8872 35.7923 22.3019 35.1765C21.7461 34.5919 21.7321 33.6496 22.2652 33.0465L29.6399 24.7034L22.3026 16.9954C21.7464 16.4112 21.7319 15.4689 22.2645 14.8655ZM23.3305 15.6256C23.2942 15.6264 23.247 15.6413 23.2016 15.6927C23.0958 15.8126 23.1011 16.0214 23.208 
10516.1336L30.9406 24.2568C31.1643 24.4917 31.171 24.8586 30.9562 25.1016L23.2017 33.8744C23.0959 33.9942 23.101 34.2029 23.2079 34.3153C23.2536 34.3634 23.2999 34.3763 23.3361 34.3756C23.3724 34.3748 23.4195 34.36 23.4649 34.3086L31.7983 24.881C31.8438 24.8295 31.8765 24.7497 31.8749 24.6577C31.8734 24.5656 31.838 24.4883 31.792 24.44L23.4587 15.6858C23.4129 15.6377 23.3666 15.6249 23.3305 15.6256Z",fill:r}),L.createElement("path",{d:"M23.2016 15.6927C23.247 15.6413 23.2942 15.6264 23.3305 15.6256C23.3666 15.6249 23.4129 15.6377 23.4587 15.6858L31.792 24.44C31.838 24.4883 31.8734 24.5656 31.8749 24.6577C31.8765 24.7497 31.8438 24.8295 31.7983 24.881L23.4649 34.3086C23.4195 34.36 23.3724 34.3748 23.3361 34.3756C23.2999 34.3763 23.2536 34.3634 23.2079 34.3153C23.101 34.2029 23.0959 33.9942 23.2017 33.8744L30.9562 25.1016C31.171 24.8586 31.1643 24.4917 30.9406 24.2568L23.208 16.1336C23.1011 16.0214 23.0958 15.8126 23.2016 15.6927Z",fill:r}))}),ON=["color","size"],kN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,ON);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M48.5577 38.9423H34.8557C31.8069 38.9423 29.327 41.4224 29.327 44.4712C29.327 45.9293 28.1406 47.1157 26.6827 47.1157H5.52902C4.07066 47.1157 2.88467 45.9293 2.88467 44.4712V42.5459C2.88467 41.0886 4.07028 39.9025 5.5275 39.9018L9.33952 39.8999C9.34067 39.8999 9.34219 39.8995 9.34334 39.8995C9.38683 39.8995 9.43031 39.8968 9.47418 39.893C9.49211 39.8915 9.50966 39.8884 9.52759 39.8861C9.54628 39.8835 9.56535 39.8819 9.58405 39.8789L19.7636 38.1229C19.7689 38.1217 19.7739 38.1206 19.7788 38.1195C19.7948 38.1164 19.8105 38.113 19.8261 38.1095C19.8517 38.1038 19.8769 38.0981 19.9017 38.0908C19.9192 38.0863 19.9368 38.0809 19.9543 38.0756C19.9776 38.068 20.0008 38.0599 20.0241 38.0512C20.0409 38.0447 20.0581 38.039 20.0748 38.0321C20.1107 38.0168 20.1458 38.0008 20.1805 37.9829C20.1942 37.9756 20.208 37.9672 20.2217 37.9596C20.2461 37.9459 20.2702 37.9321 20.2938 37.9169C20.3083 37.9077 20.3228 37.8978 20.3373 37.8879C20.3602 37.8719 20.3831 37.8551 20.4052 37.8375C20.417 37.8284 20.4292 37.8192 20.4411 37.8093C20.4746 37.7815 20.5074 37.7525 20.5383 37.7212L46.2479 12.0109C48.3097 9.94895 48.3097 6.59377 46.2479 4.53146L43.2632 1.54708C41.2014 -0.515234 37.846 -0.514853 35.7841 1.54708L10.075 27.2574C10.0437 27.2883 10.0147 27.3215 9.9865 27.355C9.97696 27.3665 9.9678 27.3783 9.95865 27.3901C9.9411 27.4127 9.92432 27.4355 9.90829 27.4588C9.89838 27.4729 9.88846 27.4874 9.8793 27.5019C9.86443 27.5252 9.85069 27.5488 9.83734 27.5729C9.82857 27.5885 9.81941 27.6042 9.81102 27.6198C9.79424 27.653 9.77898 27.6862 9.76448 27.7205C9.75723 27.7377 9.75113 27.7556 9.74426 27.7732C9.73625 27.7953 9.72824 27.8178 9.72099 27.8403C9.71527 27.8586 9.70993 27.8769 9.70497 27.8952C9.69849 27.9189 9.69276 27.9429 9.68742 27.9673C9.68361 27.9841 9.67979 28.0009 9.67674 28.0177C9.6756 28.0226 9.67445 28.0272 9.67369 28.0318L8.12378 37.0158L5.52597 37.017C2.47879 37.0185 0 39.4989 0 42.5459V44.4712C0 47.5201 2.48032 50.0005 5.52902 50.0005H26.6827C29.7314 50.0005 32.2117 47.5201 32.2117 44.4712C32.2117 43.0132 33.3977 41.8267 34.8557 41.8267H48.5577C49.3542 41.8267 50 41.1813 50 40.3847C50 39.5878 49.3542 38.9423 48.5577 38.9423ZM12.043 31.2653L16.5306 35.7531L11.1076 36.6885L12.043 31.2653ZM33.5567 7.85382L35.7288 10.026L15.3065 30.4493L13.1344 28.2771L33.5567 7.85382ZM19.5183 34.6613L17.3462 32.4891L37.7689 12.0658L39.941 14.238L19.5183 34.6613ZM37.8239 3.58651C38.7611 2.64958 40.2859 2.64958 41.2235 3.58651L44.2078 6.57126C45.145 7.50858 45.145 9.03376 44.2078 9.97108L41.9804 12.1986L35.5965 5.81401L37.8239 3.58651Z",fill:r}))}),PN=["color","size"],MN=Jt(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=t.size,o=s===void 0?14:s,c=Tt(t,PN);return L.createElement("svg",Et({ref:e,width:o,height:o,viewBox:"0 0 52 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.createElement("path",{d:"M46.4326 40.0282C46.1217 40.5666 45.6098 40.9595 45.0093 41.1204C44.4088 41.2813 43.7691 41.197 43.2307 40.8862C42.6923 40.5754 42.2995 40.0634 42.1386 39.463C41.9777 38.8625 42.0619 38.2227 42.3727 37.6843C45.2819 32.6454 46.0703 26.6571 44.5644 21.0369C43.0584 15.4167 39.3816 10.6249 34.3426 7.71563C25.1427 2.4043 13.7736 4.38306 6.93632 12.1744L14.5457 12.0831H14.5744C15.196 12.0795 15.7937 12.3229 16.2358 12.7599C16.678 13.1969 16.9284 13.7916 16.9321 14.4133C16.9357 15.0349 16.6923 15.6326 16.2553 16.0747C15.8183 16.5169 15.2236 16.7673 14.6019 16.771L2.37222 16.9175H2.34409C2.03391 16.9175 1.72681 16.856 1.44059 16.7364C1.15437 16.6169 0.894721 16.4417 0.676697 16.2211C0.458674 16.0004 0.28661 15.7387 0.170478 15.4511C0.0543471 15.1635 -0.00354164 14.8557 0.000167612 14.5455L0.147346 2.31591C0.151046 2.00811 0.215338 1.70404 0.336549 1.42108C0.457761 1.13812 0.633519 0.881802 0.853788 0.666765C1.07406 0.451728 1.33453 0.282182 1.62032 0.167807C1.90611 0.0534328 2.21164 -0.00353076 2.51944 0.000169355C2.82725 0.00386947 3.13132 0.0681609 3.41428 0.189372C3.69724 0.310584 3.95356 0.486342 4.16859 0.706611C4.38363 0.926881 4.55318 1.18735 4.66755 1.47314C4.78193 1.75894 4.83889 2.06446 4.83519 2.37227L4.77171 7.65586C9.37537 3.16334 15.4496 0.489016 21.8718 0.127065C28.2941 -0.234886 34.6303 1.74001 39.7096 5.6868C44.7889 9.63359 48.2679 15.2855 49.5038 21.5981C50.7397 27.9107 49.6485 34.4574 46.4326 40.0282Z",fill:r}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 28C26.6569 28 28 26.6569 28 25C28 23.3431 26.6569 22 25 22C23.3431 22 22 23.3431 22 25C22 26.6569 23.3431 28 25 28ZM25 32C28.866 32 32 28.866 32 25C32 21.134 28.866 18 25 18C21.134 18 18 21.134 18 25C18 28.866 21.134 32 25 32Z",fill:r}))});function pw(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var $a={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg"},LN="CrossButton",TN=V(V(V(V({},$a.Xs,pt(["padding:5px;height:20px;"])),$a.Sm,pt(["padding:6px;height:24px;"])),$a.Md,pt(["padding:9px;"])),$a.Lg,pt(["padding:12px;"])),AN=mt.button.attrs({className:Rt(LN,"root")}).withConfig({componentId:"sc-ygfku-0"})(function(t){var e=t.size,n=e===void 0?$a.Lg:e,r=t.theme;return pt(["display:flex;justify-content:center;align-items:center;cursor:pointer;border-radius:4px;"," color:",";background:transparent;border:none;transition:all 100ms ease-out;&:hover{color:",";background:",";}&:active{color:",";background:",";}"],TN[n],r.palette[$.IconsSecondary],r.palette[$.IconsPrimary],r.palette[$.Backgroun
105dHover],r.palette[$.IconsPrimaryHover],r.palette[$.BackgroundActive])}),IN=fn({CrossButton:AN}),NN=function(t){switch(t){case $a.Lg:return 16;case $a.Xs:return 10;case $a.Sm:default:return 12}},Sd=Be(function(t,e){var n=Et({},(pw(t),t));return L.createElement(IN.CrossButton,Et({},n,{ref:e}),L.createElement(Qb,{size:NN(n.size)}))});Sd.defaultProps={size:$a.Lg},Sd.propTypes={size:et.oneOf(je($a))};var Il="Select",RN=mt.span.attrs({className:Rt(Il,"Icon")}).withConfig({componentId:"sc-mfrapg-0"})(function(t){var e=t.theme.palette,n=t.size;return pt(["display:flex;flex-shrink:0;color:",";padding:",";"],e[$.IconsPrimary],n===Jr.Md?"2.5px":"2px")}),FN=mt.span.attrs({className:Rt(Il,"tickIcon")}).withConfig({componentId:"sc-mfrapg-1"})(function(t){var e=t.theme.palette;return pt(["color:",";"],e[$.AccentStateless])}),DN=mt.div.attrs({className:Rt(Il,"Container")}).withConfig({componentId:"sc-mfrapg-2"})(function(t){var e=t.fullWidth,n=e===void 0?!1:e;return pt(["position:relative;display:inline-flex;",""],n?"width: 100%":"")}),gw=mt(Sd).attrs({className:Rt(Il,"CrossButton")}).withConfig({componentId:"sc-mfrapg-3"})(function(){return pt(["display:none;margin-right:6px;"])}),jN=mt(Za.Input).attrs({className:Rt(Il,"root")}).withConfig({componentId:"sc-mfrapg-4"})(function(t){var e=t.theme.palette,n=t.disabled,r=t.readOnly,s=t.size,o=s===void 0?"sm":s,c=t.isValueExists;return pt(["cursor:",";user-select:none;gap:0px;background:",";"," ",";"],n||r?"default":"pointer",n?e[$.BackgroundHover]:e[$.BackgroundStateless],c&&`
106    &:hover {
107      `.concat(gw,` {
108        display: flex;
109      }
110    }
111    `),Eb[o])}),BN=mt.label.attrs({className:Rt(Il,"Label")}).withConfig({componentId:"sc-mfrapg-5"})(function(t){var e=t.hideEllipsis,n=t.size,r=n===void 0?Jr.Md:n;return`
112    flex-grow: 1;
113    margin-right: `.concat(r===Jr.Md?8:12,`px;
114
115    `).concat(!e&&pt(["white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),`
116  `)}),HN=mt.span.attrs({className:Rt(Il,"Placeholder")}).withConfig({componentId:"sc-mfrapg-6"})(function(t){var e=t.theme.palette,n=t.size;return pt(["width:100%;color:",";margin-right:","px;"],e[$.TextPlaceholder],n===Jr.Md?16:12)}),zN=mt.input.attrs({className:Rt(Il,"Input"),"aria-hidden":"true",tabindex:"-1"}).withConfig({componentId:"sc-mfrapg-7"})(["left:0;width:100%;bottom:0;opacity:0;position:absolute;pointer-events:none;box-sizing:border-box;"]),wl=fn({Container:DN,Select:jN,Label:BN,Icon:RN,TickIcon:FN,Input:zN,Placeholder:HN,StyledCrossButton:gw});function Ky(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function GN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ky(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var UN=function(t){switch(t){case Re.Md:return 16;case Re.Sm:default:return 14}},WN=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=L.createElement(Vp,null,t);if(e&&t){var o=L.createElement(lp,null,L.createElement(wl.TickIcon,null,L.createElement(Lb,{size:UN(n)})));if(L.Children.count(t)===1)return L.createElement(L.Fragment,null,s,!r&&o);if(L.Children.count(t)>1&&!L.Children.toArray(t).some(function(c){var d;return(c==null||(d=c.type)===null||d===void 0?void 0:d.displayName)==="MenuItemActions"}))return L.createElement(L.Fragment,null,t,o)}return s},VN=function(t,e){var n,r,s,o,c=e.value,d=e.multiple,f=d===void 0?!1:d,g=e.size,v=g===void 0?Re.Md:g,x=e.hideMenuItemsActions,C=x===void 0?!1:x,y=e.onClose,h=e.onChange;if(!L.isValidElement(t))return t;if(((n=t.type)===null||n===void 0?void 0:n.displayName)!=="MenuItem")return L.cloneElement(t);var w=t==null||(r=t.props)===null||r===void 0?void 0:r.value,E=f?Array.isArray(c)?c:[]:[c],M=E.length>0&&E.includes(w),b=t==null||(s=t.props)===null||s===void 0?void 0:s.disabled;return L.cloneElement(t,{active:M,size:v,children:WN(t==null||(o=t.props)===null||o===void 0?void 0:o.children,M,v,C),onClick:function(){var m;if(!f&&typeof y=="function"&&y(),typeof h=="function"&&!b&&w!=null&&(m=w.toString())!==null&&m!==void 0&&m.length){var _=w;if(f){_=Hn(Array.isArray(c)?c:[]);var k=_.indexOf(w);k>-1?_.splice(k,1):_.push(w)}h(_)}}})},$y=function t(e){var n=e.props?e.props.children:e;return Array.isArray(n)?n.map(function(r){return t(r)}).join(" "):Pa(n)==="object"?t(n.props.children):n},YN=function(t,e){if(t&&t.children){for(var n=e?t.value:t.children;
116typeof n!="string";)Array.isArray(n)?n=$y(n[1]):n=$y(n);return n}},ZN=function(t){var e=t.value,n=t.multiple,r=n===void 0?!1:n,s=t.children,o=t.showSelectionKey,c=o===void 0?!1:o,d=[];L.Children.forEach(s,function(g){if(L.isValidElement(g)){var v=g?.type,x=v.displayName;x==="MenuItem"&&g.props&&d.push(GN({},g.props))}});var f=r?d.filter(function(g){return Array.isArray(e)&&e.includes(g.value)}):[d.find(function(g){return g.value===e})];return f.length>0?f.map(function(g){return YN(g,c)}).join(", "):Array.isArray(e)?e.join(", "):e},KN=["children","size","error","multiple","onChange","value","fullWidth","selectProps","MenuProps","readOnly","disabled","scroll","placeholder","showSelectionKey","hideMenuItemsActions","showClearIcon","renderLabel","onRequestClose","hideEllipsis"],k1=Be(function(t,e){var n,r=t.children,s=t.size,o=t.error,c=t.multiple,d=t.onChange,f=t.value,g=t.fullWidth,v=t.selectProps,x=t.MenuProps,C=t.readOnly,y=t.disabled,h=t.scroll,w=h===void 0?!0:h,E=t.placeholder,M=t.showSelectionKey,b=t.hideMenuItemsActions,m=t.showClearIcon,_=t.renderLabel,k=t.onRequestClose,R=t.hideEllipsis,G=R===void 0?!1:R,T=Tt(t,KN),D=ct.useState(void 0),A=Xt(D,2),B=A[0],Z=A[1],S=!!B,I=function(Q){return Z(Q.currentTarget)},N=Array.isArray(f)?!!f.length:!!(f!=null&&(n=f.toString())!==null&&n!==void 0&&n.length),z=function(){k&&k(),Z(void 0)},W=function(Q){Q.stopPropagation(),typeof d=="function"&&d("")};return L.createElement(wl.Container,{ref:e,fullWidth:!!g},L.createElement(wl.Select,Et({},T,{disabled:y,size:s,error:o,fullWidth:!!g,readOnly:C,showSelectionKey:M,isValueExists:N,onClick:C||y?void 0:I}),N&&L.createElement(wl.Label,{hideEllipsis:G,size:s},typeof _=="function"?_(f):ZN({value:f,multiple:c,children:r,showSelectionKey:M})),!N&&L.createElement(wl.Placeholder,{size:s},E),!C&&m&&L.createElement(wl.StyledCrossButton,{size:s===$a.Md?$a.Sm:$a.Xs,onClick:W}),L.createElement(wl.Icon,{size:s},L.createElement(yp,{type:S?"top":"bottom",IconProps:{size:s===$a.Md?11:10}})),L.createElement(wl.Input,v)),L.createElement(Ms,Et({onClose:z,scroll:w,open:S,anchorEl:B},x),L.Children.map(r,function(Q){return VN(Q,{value:f,multiple:c,size:s,hideMenuItemsActions:b,onClose:z,onChange:C||y?void 0:d})})))}),$N={size:Re.Md,error:!1,multiple:!1,fullWidth:!1,readOnly:!1,disabled:!1,showClearIcon:!1,scroll:!0,hideMenuItemsActions:!1};k1.defaultProps=$N;var XN=et.oneOfType([et.string,et.number,et.oneOf([null])]),Yp={size:et.oneOf(je(Re)),error:et.bool,multiple:et.bool,fullWidth:et.bool,children:et.oneOfType([et.element,et.arrayOf(et.element)]),value:et.oneOfType([et.string,et.number,et.bool,et.oneOf([null]),et.arrayOf(XN)]),onChange:et.func,MenuProps:et.exact(Xb),selectProps:et.object,readOnly:et.bool,disabled:et.bool,showClearIcon:et.bool,hideMenuItemsActions:et.bool,showSelectionKey:et.bool,scroll:et.bool,renderLabel:et.func,onRequestClose:et.func,hideEllipsis:et.bool};k1.propTypes=Yp;function Xy(t,e,n){var r=function(c){if(typeof t=="function"){var d;t(((d=c.touches)===null||d===void 0?void 0:d[0])||c)}},s=function c(d){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",c),document.removeEventListener("mouseleave",c),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",c),document.removeEventListener("touchcancel",c)},o=function(c){if(document.addEventListener("mousemove",r),document.addEventListener("mouseup",s),document.addEventListener("mouseleave",s),document.addEventListener("touchmove",r),document.addEventListener("touchend",s),document.addEventListener("touchcancel",s),typeof e=="function"){var d;e(((d=c.touches)===null||d===void 0?void 0:d[0])||c)}};return{onMouseDown:o,onTouchStart:o}}function qy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function qN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qy(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qy(Object(n)).forEac
116h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var uo="ColorPicker",QN="ColorItem",JN=mt.div.attrs({className:Rt(uo,"root")}).withConfig({componentId:"sc-qj4xo5-0"})(["background-color:",";box-shadow:0px 1px 2px rgba(78,77,77,0.15);border-radius:2px;padding:12px;max-width:300px;"],function(t){var e=t.theme;return e.palette[$.BackgroundSecondary]}),tR=mt.div.attrs({className:Rt(uo,"icon")}).withConfig({componentId:"sc-qj4xo5-1"})(["display:flex;justify-content:space-between;align-items:center;cursor:pointer;"]),eR=mt.div.attrs({className:Rt(uo,"range-picker")}).withConfig({componentId:"sc-qj4xo5-2"})(function(t){var e=t.color;return pt(["position:relative;border-radius:2px;width:100%;height:180px;user-select:none;cursor:crosshair;background-color:",";"],e)}),nR=mt.div.attrs({className:Rt(uo,"white-gradient")}).withConfig({componentId:"sc-qj4xo5-3"})(["background:linear-gradient(to right,white 0%,rgba(255,255,255,0) 100%);z-index:0;position:absolute;width:100%;height:100%;border-radius:2px;user-select:none;pointer-events:none;top:-1px;"]),rR=mt.div.attrs({className:Rt(uo,"black-gradient")}).withConfig({componentId:"sc-qj4xo5-4"})(["background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black 100%);z-index:1;position:absolute;width:100%;height:100%;border-radius:2px;user-select:none;pointer-events:none;"]),aR=mt.span.attrs(function(t){var e=t.left,n=e===void 0?0:e,r=t.top,s=r===void 0?0:r,o=t.considerTopWidth,c=o===void 0?!1:o,d=t.style;return{className:Rt(uo,"pointer"),style:qN({left:n-7,top:s-(c?7:0)},d)}}).withConfig({componentId:"sc-qj4xo5-5"})(function(t){var e=t.theme,n=t.pointerColor;return pt(["display:inline-block;box-sizing:border-box;width:15px;height:15px;border-radius:20px;box-shadow:0px 1px 2px rgba(78,77,77,0.15);border:2px solid ",";background-color:",";position:absolute;cursor:pointer;z-index:11;user-select:none;outline:none;"],e.palette[$.BackgroundSecondary],n)}),iR=mt.div.attrs({className:Rt(uo,"bar-wrapper")}).withConfig({componentId:"sc-qj4xo5-6"})(["margin-top:8px;position:relative;width:100%;height:12px;"]),oR=mt.table.attrs({className:Rt(uo,"bar")}).withConfig({componentId:"sc-qj4xo5-7"})(["border-radius:4px;width:100%;height:8px;border-collapse:collapse;"]),sR=mt.td.attrs(function(t){var e=t.$color;return{className:Rt(uo,"stop"),style:{backgroundColor:e}}}).withConfig({componentId:"sc-qj4xo5-8"})(["padding:0;user-select:none;pointer-events:none;&:first-child{width:4px;border-top-left-radius:4px;border-bottom-left-radius:4px;}&:last-child{width:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;}"]),lR=mt.div.attrs({className:Rt(uo,"action")}).withConfig({componentId:"sc-qj4xo5-9"})(["display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;"]),cR=mt.label.attrs({className:Rt(QN,"label")}).withConfig({componentId:"sc-qj4xo5-10"})(function(t){var e=t.theme,n=t.size,r=t.color,s=t.stroke,o=t.value;return pt(["border-radius:2px;border:",";box-sizing:border-box;width:","px;height:","px;background-color:",";user-select:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 300ms;margin-bottom:8px;background:",";input{display:none;}"],"1px solid ".concat(s),n,n,r,o==="rgba(0,0,0,0)"&&"repeating-conic-gradient(".concat(e.palette[$.LinkPrimary]," 0% 25%, transparent 0% 50%) 50% / 8px 8px"))}),uR=mt.div.withConfig({componentId:"sc-qj4xo5-11"})(["display:flex;flex-wrap:wrap;align-content:space-between;margin-top:14px;margin-left:12px;& > .item{margin-right:8px;display:flex;justify-content:center;}"]),dR=mt.div.attrs({className:Rt(uo,"select")}).withConfig({componentId:"sc-qj4xo5-12"})(function(t){var e=t.value;return pt(["width:",";"],e==="rgb"?"25%":"35%")}),hR=mt.div.withConfig({componentId:"sc-qj4xo5-13"})({display:"flex",alignItems:"center",gap:"12px"}),ka=fn({ColorPickerWrapper:JN,RangePickerWrapper:eR,WhiteGradient:nR,BlackGradient:rR,ColorPointer:aR,BarWrapper:iR,Bar:oR,BarColorStop:sR,ColorPickerAction:lR,ColorPickerIcon:tR,ColorItemsContainer:uR,ColorItemWrapper:cR,Select:dR,SelectWrapper:hR}),Dg=Be(function(t,e){var n=t.value,r=t.onChange,s=t.checked,o=t.size,c=o===void 0?24:o,d=ct.useMemo(function(){return n==="#ffffff"||n==="rgba(0,0,0,0)"?"black":"white"},[n]);
116return L.createElement(ka.ColorItemWrapper,{ref:e,color:n,size:c,stroke:n==="rgba(0,0,0,0)"?"#a8a8a8":"#E9EEF2",value:n},L.createElement("input",{type:"radio",value:n,checked:s,onChange:r}),s&&L.createElement(Lb,{color:d}))});Dg.defaultProps={},Dg.propTypes={value:et.string.isRequired,checked:et.bool,onChange:et.func.isRequired,size:et.number};var fR=["defaultColor","onChange","pinnedColors","showTransparentColor","hidePinIcon","containerProps"];function Qy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function q2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qy(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Tf=["rgba(0,0,0,0)"],Af="#00000000",Q2=360,jg=Be(function(t,e){var n=t.defaultColor,r=n===void 0?"#000000":n,s=t.onChange,o=t.pinnedColors,c=o===void 0?[]:o,d=t.showTransparentColor,f=d===void 0?!1:d,g=t.hidePinIcon,v=g===void 0?!1:g,x=t.containerProps,C=Tt(t,fR),y=f?Tf.concat(c):c,h=function(jt){return jt===Af||jt===Tf[0]},w=ct.useState({color:"#ff0000",pointerLeft:0}),E=Xt(w,2),M=E[0],b=E[1],m=ct.useState({color:h(r)?"#00000000":J5(r)||"#000000",pointer:{left:0,top:0}}),_=Xt(m,2),k=_[0],R=_[1],G=ct.useState(y),T=Xt(G,2),D=T[0],A=T[1],B=ct.useState("hex"),Z=Xt(B,2),S=Z[0],I=Z[1],N=ct.useState([]),z=Xt(N,2),W=z[0],Q=z[1],tt=ct.useState(J5(k.color)),at=Xt(tt,2),X=at[0],q=at[1],rt=ct.useState(null),ot=Xt(rt,2),ft=ot[0],it=ot[1],Y=ct.useState(null),J=Xt(Y,2),lt=J[0],dt=J[1],yt=function(jt){return jt===Tf[0]&&k.color===Af?!0:jt===k.color},gt=function(jt){return jt.filter(function(se){return se!=="rgba(0,0,0,0)"})},Dt=function(jt){return h(jt)?Tf[0]:"rgb(".concat(Jf(jt).join(", "),")")},Ht=function(jt,se){if(se==="add"){var Se=[].concat(Hn(D),[jt]);A(Se),typeof s=="function"&&s(k.color,Dt(jt),gt(Se))}else{var xe=D.filter(function(Ge){return Ge!==k.color});A(xe),typeof s=="function"&&s(k.color,Dt(jt),gt(xe))}},It=function(jt){if(ft!==null){var se=Ec(ft),Se=se.left,xe=N2(jt||k.color),Ge=Xt(xe,1),an=Ge[0],bn=ft.querySelector("[data-hue='".concat(an,"']"));if(bn!==null){var Ur=bn.style.backgroundColor||M.color;b({color:Ur,pointerLeft:Ec(bn).left-Se||M.pointerLeft})}}},qt=function(jt,se){if(!(jt>255||Number.isNaN(jt))){var Se=W;Se[se]=jt;var xe=S9.apply(void 0,Hn(Se));Q(Hn(Se)),t4(xe)&&(R(q2(q2({},k),{},{color:xe})),It(xe))}},Bt=function(jt){jt.includes("rgb")?Q(lm(jt)):Q(Jf(jt))},ee=function(jt){return h(jt)?Af:jt},Kt=function(jt){if(lt!==null){var se=Ec(lt),Se=se.width,xe=se.height,Ge=N2(jt),an=uS(Ge[0],Ge[1]/100,Ge[2]/100),bn=I2(an[1],0,100,0,Se),Ur=xe-I2(an[2],0,100,0,xe);R({color:ee(jt),pointer:{left:bn,top:Ur}}),It(jt),Bt(jt),typeof s=="function"&&s(ee(jt),Dt(jt),gt(D))}},Yt=function(jt,se,Se){if(lt!==null){var xe=Ec(lt),Ge=xe.width,an=xe.height,bn=N2(Se),Ur=Xt(bn,1),Ma=Ur[0],La=Wu(jt,0,Ge)||0,ve=Wu(se,0,an)||0,Ce=cS(Ma,La/Ge,(an-ve)/an),Ue=lS(Ce[0],Ce[1],Ce[2]);R({color:Ue,pointer:{left:La,top:ve}}),typeof s=="function"&&s(Ue,"rgb(".concat(Jf(Ue).join(", "),")"),gt(D))}},oe=function(jt){var se=ft;if(se!==null){var Se=Ec(se),xe=Se.width,Ge=Wu(Math.round(I2(jt,0,xe,0,Q2)),0,Q2),an=se.querySelector("[data-hue='".concat(Ge,"']")),bn=an.style.backgroundColor;return b({color:bn,pointerLeft:Wu(jt,0,xe)}),bn}return M.color},ne=function(jt){var se=ft;if(se!==null){var Se,xe=Ec(se),Ge=xe.left,an=((Se=jt.touches)===null||Se===void 0?void 0:Se[0])||jt,bn=oe(an.pageX-Ge);Yt(k.pointer.left,k.pointer.top,bn)}},ue=function(jt){var se=lt;if(se!==null){var Se=Ec(se),xe=Se.left,Ge=Se.top,an=Se.height,bn=Se.width,Ur=jt?Wu(jt.pageX-xe,0,bn):k.pointer.left||0,Ma=jt?Wu(jt.pageY-Ge,0,an):k.pointer.left||0;Yt(Ur,Ma,M.color)}},Qt=function(jt){jt.key!=="ArrowLeft"&&jt.key!=="ArrowRight"||oe(M.pointerLeft+(jt.key==="ArrowLeft"?-1:1))},$t=function(jt){var se=0;jt.key==="ArrowLeft"||jt.key==="ArrowUp"?se=-1:(jt.key==="ArrowRight"||jt.key==="ArrowDown")&&(se=1),se&&Yt((k.pointer.left||0)+(["ArrowLeft","ArrowRight"].includes(jt.key)?se:0),(k.pointer.top||0)+(["ArrowUp","ArrowDown"].includes(jt.key)?se:0),M.color)},we=function(jt){var se=t4(jt);se&&Kt(jt),q(jt)};ct.useEffect(function(){It(k.color),Kt(k.color)},[ft]),ct.useEffect(function(){q(k.color),Bt(k.color)},[k.color]);var Fe=ct.useMemo(function(){return Hn(new Array(Q2+1)).map(function(jt,se){return L.createElement(ka.BarColorStop,{key:se,$color:"hsl(".concat(se,", 100%, 50%)"),"data-hue":se})})},[]),_e=Xy(ne,ne),pn=Xy(ue,ue);
116return L.createElement(ka.ColorPickerWrapper,Et({ref:e},C),L.createElement(ka.ColorPickerAction,null,L.createElement(ka.SelectWrapper,null,L.createElement(ka.Select,{value:S},L.createElement(k1,{size:"sm",value:S,MenuProps:q2({zIndex:11112},x),onChange:function(jt){return I(jt)},fullWidth:!0,hideEllipsis:!0},L.createElement(so,{value:"hex"},"Hex"),L.createElement(so,{value:"rgb"},"RGB"))),S==="hex"?L.createElement(Uc,{size:"sm",error:!/^#([\da-f]{3}){1,2}$/i.test(k.color),value:X,onChange:function(jt){return we(jt.target.value)},style:{width:"45%"}}):W.map(function(jt,se){return L.createElement(Uc,{key:se,size:"sm",value:jt,onChange:function(Se){var xe;return qt(Number((xe=Se.target)===null||xe===void 0?void 0:xe.value),se)},style:{width:"20%"}})})),k.color!==Af&&!v&&L.createElement(ka.ColorPickerIcon,{onClick:function(){return D.some(function(jt){return yt(jt)})?Ht(k.color,"delete"):Ht(k.color,"add")}},D.some(function(jt){return yt(jt)})?L.createElement(hw,null):L.createElement(qI,null))),L.createElement(ka.RangePickerWrapper,Et({ref:dt,color:M.color},pn),L.createElement(ka.WhiteGradient,null),L.createElement(ka.BlackGradient,null),L.createElement(ka.
116ColorPointer,{tabIndex:-1,left:k.pointer.left||0,top:k.pointer.top||0,onKeyDown:$t,pointerColor:X,considerTopWidth:!0})),L.createElement(ka.BarWrapper,_e,L.createElement(ka.Bar,{ref:it},L.createElement("tbody",null,L.createElement("tr",null,Fe))),L.createElement(ka.ColorPointer,{tabIndex:-1,left:M.pointerLeft,onKeyDown:Qt,considerTopWidth:!1,pointerColor:X,style:{top:-3}})),L.createElement(ka.ColorItemsContainer,null,D.map(function(jt){return L.createElement("div",{className:"item",key:jt},L.createElement(Dg,{value:jt,checked:yt(jt),onChange:function(se){return Kt(se.target.value)}}))})))});jg.defaultProps={defaultColor:"#000000",pinnedColors:[],showTransparentColor:!1,hidePinIcon:!1},jg.propTypes={defaultColor:et.string,onChange:et.func,pinnedColors:et.array,showTransparentColor:et.bool,hidePinIcon:et.bool};var pR=V(V(V({},sd.Primary,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:",";color:",";&:hover{background-color:",";}&:focus{background-color:",";}&:active{background-color:",";}"," &:disabled{color:",";background:",";cursor:default;}"],e[$.AccentStateless],e[$.IconsInvert],e[$.AccentPrimaryHover],e[$.AccentPrimaryActive],e[$.AccentPrimaryActive],n&&pt(["background-color:",";&:hover,&:focus{background-color:",";}"],e[$.AccentPrimaryActive],e[$.AccentPrimaryActive]),e[$.BordersDisabled],e[$.Accent_1_2_Opacity])}),sd.Secondary,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:",";color:",";border:1px solid ",";&:hover{color:",";background-color:",";}&:focus{background-color:",";color:",";border:1px solid ",";}&:active{color:",";background-color:",";}"," &:disabled{color:",";background:",";border:none;cursor:default;}"],e[$.BackgroundStateless],e[$.AccentStateless],e[$.AccentStateless],e[$.IconsInvert],e[$.AccentPrimaryHover],e[$.Accent_1_2_Opacity],e[$.AccentPrimaryActive],e[$.AccentPrimaryActive],e[$.IconsInvert],e[$.AccentPrimaryActive],n&&pt(["color:",";background-color:",";&:hover,&:focus{color:",";background-color:",";}"],e[$.IconsInvert],e[$.AccentPrimaryActive],e[$.IconsInvert],e[$.AccentPrimaryActive]),e[$.BordersDisabled],e[$.Accent_1_2_Opacity])}),sd.Basic,function(t){var e=t.theme.palette,n=t.active;return pt(["background-color:transparent;color:",";border:none;&:hover{background-color:",";color:",";}&:focus{background-color:",";color:",";}&:active{background-color:",";color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[$.IconsPrimary],e[$.BackgroundHover],e[$.IconsPrimaryHover],e[$.BackgroundActive],e[$.LinkActive],e[$.BackgroundActive],e[$.LinkActive],n&&pt(["background-color:",";color:",";&:hover,&:focus{background-color:",";color:",";}"],e[$.BackgroundActive],e[$.LinkActive],e[$.BackgroundActive],e[$.LinkActive]),e[$.BordersDisabled])}),gR=V(V(V(V({},Ie.Xs,pt(["padding:6px;"])),Ie.Sm,pt(["padding:9px;"])),Ie.Md,pt(["padding:12px;"])),Ie.Lg,pt(["padding:11px;"])),mR="IconButton",vR=mt(Bo.Button).attrs({className:Rt(mR,"root")}).withConfig({componentId:"sc-10edh45-0"})(function(t){var e=t.color,n=e===void 0?sd.Secondary:e,r=t.size,s=r===void 0?Ie.Md:r;return pt([""," ",""],gR[s],pR[n])}),yR=fn({IconButton:vR}),bR=["children"],Wo=Be(function(t,e){var n=t.children,r=Tt(t,bR);return L.createElement(yR.IconButton,Et({},r,{ref:e}),n&&(typeof n=="function"?n({size:Nc(r.size)}):n))});Wo.defaultProps={size:Ie.Md,color:sd.Secondary,active:!1},Wo.propTypes={children:et.oneOfType([et.node,et.func]).isRequired,size:et.oneOf(je(Ie)),color:et.oneOf(je(sd)),disabled:et.bool,active:et.bool};var J2=function(t,e){t.preventDefault(),t.button===0&&e&&e(t)},wR=function(t){var e=t.theme.palette;return pt(["background:"," !important;border:1px solid "," !important;"],e[$.BackgroundSecondary],e[$.Error])},xR=V(V({},Re.Sm,function(){return pt(["height:136px;"])}),Re.Md,function(){return pt(["height:152px;"])}),mw=V(V({},Re.Sm,function(t){var e=t.theme.typography.font;return pt(["padding:8px 12px;",""],e[Vt.InputMd])}),Re.Md,function(t){var e=t.theme.typography.font;return pt(["padding:8px 16px;",""],e[Vt.InputLg])}),Zp="Textarea",CR=mt.div.attrs({className:Rt(Zp,"root")}).withConfig({componentId:"sc-1usif6k-0"})(function(t){var e=t.size,n=e===void 0?Re.Md:e,r=t.error,s=r===void 0?!1:r,o=t.fullWidth,c=o===void 0?!1:o,d=t.readOnly,f=d===void 0?!1:d,g=t.disabled,v=g===void 0?!1:g,x=t.autoSize,C=x===void 0?!1:x,y=t.theme;return pt(["position:relative;display:inline-flex;flex-direction:column;align-items:flex-end;justify-content:space-between;cursor:text;box-sizing:border-box;transition:all 100ms ease-out;width:",";pointer-events:",";background-color:",";border-radius:",";border:1px solid ",";color:",";"," "," &:hover{color:",";}"," ",""],c?"100%":"300px",v?"none":"auto",Ab(f,v),y.shape.borderRadius[io.Md],Nb(f,v),v?y.palette[$.TextPlaceholder]:y.palette[$.TextPrimary],xR[n],!f&&!v&&pt(["&:focus-within{background-color:","!important;border:1px solid ",";&:hover{border:1px solid ",";}}&:hover{background-color:",";border:1px solid ",";}
116"],y.palette[$.BackgroundSecondary],y.palette[$.AccentStateless],y.palette[$.AccentStateless],y.palette[$.BackgroundStateless],y.palette[$.BordersPrimaryHover]),Ib(f,v),s&&wR,C&&pt(["width:auto;height:auto;"]))}),SR=mt.textarea.attrs({className:Rt(Zp,"Base")}).withConfig({componentId:"sc-1usif6k-1"})(function(t){var e=t.theme.palette,n=t.readOnly,r=n===void 0?!1:n,s=t.size,o=s===void 0?Re.Md:s;return pt(["display:block;width:100%;height:100%;color:inherit;outline:none;resize:none;min-width:0;margin:0;padding:0;border:0;background-color:transparent;outline:none;font-size:inherit;line-height:inherit;color:inherit;font-weight:inherit;font-family:inherit;box-sizing:border-box;flex:1;"," ",";&::placeholder{color:",";}::-webkit-scrollbar{width:12px;}::-webkit-scrollbar-track{width:8px;}::-webkit-scrollbar-thumb{background:",";border-radius:8px;border:4px solid ",";}"],r&&"padding-bottom: 0px;",mw[o],e[$.TextPlaceholder],e[$.BorderPrimaryStateless],e[$.BackgroundStateless])}),_R=mt.div.attrs({className:Rt(Zp,"ActionsButtonsWrapper")}).withConfig({componentId:"sc-1usif6k-2"})(function(t){var e=t.size,n=e===void 0?Re.Md:e;return pt(["display:flex;align-items:center;width:100%;column-gap:12px;box-sizing:border-box;",";.SfxButton-Label{font-weight:500;}"],mw[n])}),ER=mt.span.attrs({className:Rt(Zp,"CopyIcon")}).withConfig({componentId:"sc-1usif6k-3"})(function(t){var e=t.theme.palette;return pt(["cursor:pointer;color:",";margin-left:auto;"],e[$.IconsPrimary])}),If=fn({Textarea:CR,CopyIcon:ER,Base:SR,ActionsButtonsWrapper:_R}),OR=["fullWidth","size","value","readOnly","disabled","error","cols","rows","copyTextMessage","copySuccessIcon","showActionButton","showClearButton","showCopyIcon","disableActionButton","isActionButtonLoading","actionButtonLabel","clearAllButtonLabel","onClickActionButton","onClear","onChange"];function Jy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function kR(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jy(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var E3=Be(function(t,e){var n,r=t.fullWidth,s=t.size,o=t.value,c=t.readOnly,d=t.disabled,f=t.error,g=t.cols,v=t.rows,x=t.copyTextMessage,C=x===void 0?"":x,y=t.copySuccessIcon,h=t.showActionButton,w=h===void 0?!1:h,E=t.showClearButton,M=E===void 0?!1:E,b=t.showCopyIcon,m=b===void 0?!1:b,_=t.disableActionButton,k=_===void 0?!1:_,R=t.isActionButtonLoading,G=R===void 0?!1:R,T=t.actionButtonLabel,D=t.clearAllButtonLabel,A=t.onClickActionButton,B=t.onClear,Z=t.onChange,S=Tt(t,OR),I=ct.useRef(null),N=sm(I,e),z=ct.useState(!1),W=Xt(z,2),Q=W[0],tt=W[1],at=ct.useState({}),X=Xt(at,2),q=X[0],rt=X[1],ot=ct.useState(!1),ft=Xt(ot,2),it=ft[0],Y=ft[1],J=ct.useState(o),lt=Xt(J,2),dt=lt[0],yt=lt[1],gt=function(Kt){A&&A(Kt)},Dt=function(Kt){yt(""),B&&B(Kt)},Ht=function(Kt){yt(Kt.target.value),Z&&Z(Kt)},It=function(){m&&Rb(dt,Y)};ct.useEffect(function(){var Kt=I.current;Kt&&Kt.scrollHeight>Kt.clientHeight&&rt({paddingRight:s===Jr.Md?"4px":"0px"})},[(n=I.current)===null||n===void 0?void 0:n.scrollHeight,s]),ct.useEffect(function(){setTimeout(function(){return Y(!1)},2e3)},[it]),ct.useEffect(function(){yt(o)},[o]);var qt=function(){setTimeout(function(){tt(!0)},150)},Bt=function(){setTimeout(function(){tt(!1)},200)},ee=function(){return L.createElement(Za.NotificationBox,{size:s,isTextarea:!0},L.createElement(Za.NotificationIcon,null,y),L.createElement(Za.NotificationText,null,C))};return L.createElement(If.Textarea,{size:s,value:dt,onMouseEnter:qt,onMouseLeave:Bt,readOnly:c,disabled:d,fullWidth:!!r,error:f,autoSize:!!g||!!v},L.createElement(If.Base,Et({},S,{value:dt,ref:N,size:s,onChange:Ht,readOnly:c,disabled:d,style:kR({},q)})),(w||M||m)&&L.createElement(If.ActionsButtonsWrapper,{size:s},w&&L.createElement(gi,{color:"link-primary",size:"sm",disabled:k,loading:G,onMouseDown:function(Kt){return J2(Kt,gt)}},T),M&&L.createElement(gi,{color:"link-secondary",size:"sm",onMouseDown:function(Kt){return J2(Kt,Dt)}},D),m&&L.createElement(If.CopyIcon,{showCopyIcon:Q&&dt.length>0,size:s,onMouseDown:function(Kt){return J2(Kt,It)}},L.createElement(Tb,{size:Nc(s)}),it&&ee())))});E3.defaultProps={size:Re.Md,error:!1,fullWidth:!1,readOnly:!1,disabled:!1,disableActionButton:!1,isActionButtonLoading:!1,actionButtonLabel:"Action",clearAllButtonLabel:"Clear all"};var vw={error:et.bool,readOnly:et.bool,disabled:et.bool,fullWidth:et.bool,disableActionButton:et.bool,isActionButtonLoading:et.bool,value:et.any,size:et.oneOf(je(Re)),copySuccessIcon:et.oneOfType([et.node,et.func]),copyTextMessage:et.string,cols:et.number,rows:et.number,showActionButton:et.bool,showClearButton:et.bool,showCopyIcon:et.bool,actionButtonLabel:et.string,clearAllButtonLabel:et.string,onClickActionButton:et.func,onClear:et.func};
116E3.propTypes=vw;var Cp={Input:"input",Textarea:"textarea"},PR="InputGroup",MR=mt.div.attrs({className:Rt(PR,"root")}).withConfig({componentId:"sc-zhtjwh-0"})(["","{margin-top:4px;}","{margin-bottom:4px;}"],Jb.FormHint,op.Label),yw=fn({InputGroup:MR}),LR=["children","type","error","label","hint","LabelProps","InputProps","inputProps","inputRef","TextareaProps","readOnly","disabled","size","value"];function t8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function TR(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t8(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t8(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Sp=Be(function(t,e){t.children;var n=t.type,r=t.error,s=t.label,o=t.hint,c=t.LabelProps,d=t.InputProps,f=t.inputProps,g=t.inputRef,v=t.TextareaProps,x=t.readOnly,C=t.disabled,y=t.size,h=t.value,w=Tt(t,LR),E=function(){return s?typeof s=="function"?s({error:r}):Pa(s)==="object"?s:L.createElement(Ln,Et({size:y,error:r,disabled:C},c||{}),s):null},M=function(){var m=TR({value:h,readOnly:x,disabled:C,size:y,error:r},w);return n===Cp.Input?L.createElement(Uc,Et({},m,d||{},f,{ref:g?.ref||g,readOnly:x,disabled:C})):n===Cp.Textarea?L.createElement(E3,Et({},m,v||{})):null},b=function(){return o?typeof o=="function"?o({error:r}):Pa(o)==="object"?o:L.createElement(xp,{size:y,error:r,disabled:C},o):null};return L.createElement(yw.InputGroup,{ref:e},E(),M(),b())});Sp.defaultProps={type:Cp.Input,error:!1,readOnly:!1},Sp.propTypes={type:et.oneOf(je(Cp)),size:et.oneOf(je(Re)),label:et.node,hint:et.node,error:et.bool,value:et.any,LabelProps:et.exact(g3),InputProps:et.exact(Db),inputProps:et.object,inputRef:et.oneOfType([et.func,et.object]),TextareaProps:et.exact(vw),readOnly:et.bool,disabled:et.bool};var xl={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg",Xl:"xl"},AR=ct.createContext({modalOpened:!1}),IR=V(V(V(V(V({},xl.Xs,pt(["max-width:300px;"])),xl.Sm,pt(["max-width:600px;"])),xl.Md,pt(["max-width:960px;"])),xl.Lg,pt(["max-width:1280px;"])),xl.Xl,pt(["max-width:1920px;"])),Kp="Modal",NR=mt.div.attrs({className:Rt(Kp,"Wrapper")}).withConfig({componentId:"sc-80m07l-0"})(function(t){var e=t.open;return pt(["position:fixed;right:0px;bottom:0px;top:0px;left:0px;z-index:1200;visibility:",";"],e?"visible":"hidden")}),RR=mt.div.attrs({className:Rt(Kp,"Overlay")}).withConfig({componentId:"sc-80m07l-1"})(function(t){var e=t.open;return pt(["position:fixed;right:0px;bottom:0px;top:0px;left:0px;background-color:rgba(0,0,0,0.5);z-index:-1;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms;opacity:",";"],e?"1":"0")}),FR=mt.div.attrs({className:Rt(Kp,"Container")}).withConfig({componentId:"sc-80m07l-2"})(function(t){var e=t.theme,n=t.open,r=n===void 0?!1:n,s=t.fullWidth,o=s===void 0?!1:s,c=t.maxWidth,d=c===void 0?xl.Sm:c;return pt(["position:absolute;overflow-x:hidden;overflow-y:auto;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms,transform 167ms cubic-bezier(0.4,0,0.2,1) 0ms;outline:0;border-radius:",";background-color:",";box-shadow:0px 2px 4px ",";visibility:",";opacity:",";display:flex;max-height:calc(100% - 64px);flex-direction:column;"," "," top:50%;left:50%;transform:translate(-50%,-50%);"],e.shape.borderRadius[io.Lg],e.palette[$.BackgroundSecondary],e.palette[$.LightShadow],r?"visible":"hidden",r?"1":"0",o&&pt(["width:calc(100% - 64px);"]),IR[d])}),DR=mt.div.attrs({className:Rt(Kp,"root")}).withConfig({componentId:"sc-80m07l-3"})(function(){return pt(["position:relative;padding-top:8px;padding-bottom:8px;margin:0;padding:0;outline:0;display:flex;flex-direction:column;"])}),Nf=fn({Modal:DR,Wrapper:NR,Overlay:RR,Container:FR}),jR=["children","open","onClose","maxWidth","fullWidth","modalStyles","hideOverlay","disableOverlayClick"];function e8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function n8(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
116e%2?e8(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e8(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var BR=function(t){return t&&ct.isValidElement(t)&&L.Children.count(t)===1&&t.type===L.Fragment},$p=Be(function(t,e){var n=t.children,r=t.open,s=t.onClose,o=t.maxWidth,c=t.fullWidth,d=t.modalStyles,f=t.hideOverlay,g=t.disableOverlayClick,v=Tt(t,jR),x=BR(n)?n.props.children:n,C=document.querySelector("body");ct.useEffect(function(){return r?document.body.classList.add("Modal-open"):document.body.classList.remove("Modal-open"),function(){document.body.classList.remove("Modal-open")}},[r]);var y=function(){typeof s=="function"&&s()};ct.useEffect(function(){var w=function(E){E.key==="Escape"&&y()};return document.addEventListener("keydown",w),function(){return document.removeEventListener("keydown",w)}});var h=function(){return L.createElement(AR.Provider,{value:{modalOpened:!!r}},L.createElement(Nf.Wrapper,{style:n8({},d),open:!!r,ref:e},!f&&L.createElement(Nf.Overlay,{onClick:function(){return g?null:y()},open:!!r}),L.createElement(Nf.Container,Et({},v,{maxWidth:o,fullWidth:c,open:!!r}),L.createElement(Nf.Modal,null,L.Children.map(x,function(w){return ct.isValidElement(w)&&w.type.displayName==="ModalTitle"?L.cloneElement(w,n8({onClose:y},w.props||{})):w})))))};return zp.createPortal(h(),C)}),HR={open:!1,fullWidth:!1,disableOverlayClick:!1,hideOverlay:!1,maxWidth:xl.Xs};$p.defaultProps=HR;var zR={onClose:et.func,modalStyles:et.object,disableOverlayClick:et.bool,hideOverlay:et.bool,children:et.node.isRequired,maxWidth:et.oneOf(je(xl)),open:et.bool,fullWidth:et.bool};$p.propTypes=zR;var _p={Left:"left",Center:"center",Right:"right"},GR="ModalActions",UR=mt.div.attrs({className:Rt(GR,"root")}).withConfig({componentId:"sc-1wg6u00-0"})(function(t){var e=t.align,n=e===void 0?_p.Center:e;return pt(["position:relative;display:flex;align-items:center;padding:24px;justify-content:",";gap:12px;"],n===_p.Right?"flex-end":n)}),WR=fn({ModalActions:UR}),VR=["children"],g1=Be(function(t,e){var n=t.children,r=Tt(t,VR);return L.createElement(WR.ModalActions,Et({},r,{ref:e}),n)});g1.defaultProps={align:_p.Center},g1.propTypes={children:et.node.isRequired,align:et.oneOf(je(_p))},g1.displayName="ModalActions";var YR="ModalContent",ZR=mt.div.attrs({className:Rt(YR,"root")}).withConfig({componentId:"sc-1ng1w0v-0"})(function(){return pt(["position:relative;padding:12px 24px 0px;"])}),KR=fn({ModalContent:ZR}),$R=["children"],m1=Be(function(t,e){var n=t.children,r=Tt(t,$R);return L.createElement(KR.ModalContent,Et({},r,{ref:e}),n)});m1.defaultProps={},m1.propTypes={children:et.node.isRequired},m1.displayName="ModalContent";var Ka={Default:"default",WithIcon:"with-icon"},P1="ModalTitle",XR=mt.div.attrs({className:Rt(P1,"Icon")}).withConfig({componentId:"sc-l3tf49-0"})(function(t){var e=t.theme.palette;return pt(["display:flex;margin-bottom:8px;padding:14.5px;border-radius:50%;background:",";color:",";"],e[$.Accent_1_2_Opacity],e[$.AccentStateless])}),qR=mt.div.attrs({className:Rt(P1,"LabelPrimary")}).withConfig({componentId:"sc-l3tf49-1"})(function(t){var e=t.variant,n=e===void 0?Ka.Default:e;return pt(["font-size:18px;line-height:27px;font-weight:",";"],n===Ka.Default?400:500)}),QR=mt.div.attrs({className:Rt(P1,"LabelSecondary")}).withConfig({componentId:"sc-l3tf49-2"})(["font-size:12px;line-height:14px;margin-top:4px;"]),JR=mt.div.attrs({className:Rt(P1,"Close")}).withConfig({componentId:"sc-l3tf49-3"})(function(t){var e=t.variant,n=e===void 0?Ka.Default:e,r=t.theme.palette;return pt(["position:absolute;display:flex;top:","px;right:","px;color:",";&:hover{color:",";}cursor:pointer;"],n===Ka.WithIcon?2:8,n===Ka.WithIcon?2:8,r[$.IconsSecondary],r[$.AccentPrimary])}),tF=mt.div.attrs({className:Rt(P1,"root")}).withConfig({componentId:"sc-l3tf49-4"})(function(t){var e=t.variant,n=e===void 0?Ka.Default:e,r=t.theme,s=r.palette,o=r.
116shape.borderRadius;return pt(["position:relative;color:",";border-radius:"," "," 0px 0px;"," "," ",""],s[$.TextPrimary],o[io.Md],o[io.Md],function(){var c=n===Ka.WithIcon?26:14,d=n===Ka.WithIcon?12:14,f=18,g=n===Ka.WithIcon?f:40;return pt(["padding:","px ","px ","px ","px;"],c,g,d,f)},n===Ka.Default&&pt(["background:",";border-bottom:1px solid ",";"],s[$.BackgroundPrimary],s[$.BordersSecondary]),n===Ka.WithIcon&&pt(["display:flex;align-items:center;flex-direction:column;"]))}),a1=fn({ModalTitle:tF,LabelPrimary:qR,LabelSecondary:QR,Close:JR,Icon:XR}),eF=["secondary","onClose","primaryLabelStyles"],v1=Be(function(t,e){var n=t.secondary,r=t.onClose,s=t.primaryLabelStyles,o=Tt(t,eF);return L.createElement(a1.ModalTitle,Et({},o,{ref:e}),o.icon&&L.createElement(a1.Icon,{iconShadow:!!o.iconShadow},o.icon),L.createElement(a1.LabelPrimary,{variant:o.variant,style:s},o.primary),o.variant===Ka.WithIcon&&n&&L.createElement(a1.LabelSecondary,null,n),L.createElement(a1.Close,{variant:o.variant},L.createElement(Sd,{size:"lg",onClick:r})))});v1.defaultProps={iconShadow:!0,variant:Ka.Default},v1.propTypes={primary:et.node.isRequired,secondary:et.node,icon:et.node,iconShadow:et.bool,onClose:et.func,primaryLabelStyles:et.object,variant:et.oneOf(je(Ka))},v1.displayName="ModalTitle";var zo={Success:"success",Info:"info",Error:"error",Warning:"warning"},nF="PopupStatus",rF=mt.span.attrs({className:Rt(nF,"root")}).withConfig({componentId:"sc-qash56-0"})(function(){return pt(["display:flex;"])}),aF=fn({PopupStatus:rF}),iF=["status","notificationBackground"],oF=function(t,e){switch(t){case zo.Warning:return e?L.createElement(sw,{color:pa[$.Warning],size:20}):L.createElement(oN,{color:pa[$.Warning],size:12});case zo.Error:return e?L.createElement(uN,{color:pa[$.Error],size:20}):L.createElement(hN,{color:pa[$.Error],size:12});case zo.Info:return e?L.createElement(GA,{color:pa[$.Info],size:20}):L.createElement(VA,{color:pa[$.Info],size:12});case zo.Success:default:return L.createElement(lN,{color:pa[$.Success],size:20})}},O3=Be(function(t,e){var n=t.status,r=t.notificationBackground,s=r===void 0?!0:r,o=Tt(t,iF);return L.createElement(aF.PopupStatus,Et({status:n},o,{ref:e}),oF(n,s))}),bw={status:zo.Success};O3.defaultProps=bw;var ww={status:et.oneOf(je(zo))};O3.propTypes=ww;var sF=V(V(V(V({},zo.Success,function(t){var e=t.theme.palette;return pt(["background-color:",";"],e[$.BackgroundGreen])}),zo.Info,function(t){var e=t.theme.palette;return pt(["background-color:",";"],e[$.BackgroundBlue])}),zo.Error,function(t){var e=t.theme.palette;return pt(["background-color:",";"],e[$.BackgroundRed])}),zo.Warning,function(t){var e=t.theme.palette;return pt(["background-color:",";"],e[$.BackgroundOrange])}),M1="PopupContent",lF=mt.span.attrs({className:Rt(M1,"LabelWrapper")}).withConfig({componentId:"sc-njbmnt-0"})(function(t){var e=t.theme.palette;return pt(["display:flex;flex-grow:1;margin-left:44px;margin-right:28px;padding:16px;padding-right:0;overflow:hidden;background:",";"],e[$.ButtonPrimaryText])}),cF=mt.span.attrs({className:Rt(M1,"Label")}).withConfig({componentId:"sc-njbmnt-1"})(function(t){var e=t.theme,n=e.palette,r=e.typography.font;return pt(["max-width:100%;overflow:hidden;text-overflow:ellipsis;color:",";",""],n[$.TextPrimary],r[Vt.TextSmallUp])}),uF=mt.div.attrs({className:Rt(M1,"PopupContent")}).withConfig({componentId:"sc-njbmnt-2"})(function(t){var e=t.theme;return pt(["position:relative;display:flex;align-items:center;width:360px;border-radius:4px;box-shadow:0px 2px 6px ",";"],e.palette[$.LargeShadow])}),dF=mt.div.attrs({className:Rt(M1,"PopupContent")}).withConfig({componentId:"sc-njbmnt-3"})(function(t){var e=t.theme;return pt(["position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:flex-start;box-sizing:border-box;padding:2px;height:fit-content;cursor:pointer;background:",";border-radius:0 4px 4px 0;height:100%;"],e.palette[$.BackgroundStateless])}),hF=mt.div.attrs({className:Rt(M1,"PopupStatus")}).withConfig({componentId:"sc-njbmnt-4"})(function(t){var e=t.status,n=e===void 0?"success":e;return pt(["position:absolute;display:flex;left:0;z-index:1;height:100%;min-width:44px;align-items:center;justify-content:center;box-sizing:border-box;border-radius:4px 0 0 4px;",""],sF[n])}),i1=fn({PopupContent:uF,PopupStatus:hF,LabelWrapper:lF,CloseWrapper:dF,Label:cF}),fF=["onClose","message","status"];function r8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Bg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
116e%2?r8(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r8(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var k3=Be(function(t,e){var n=t.onClose,r=t.message,s=t.status,o=Tt(t,fF);return L.createElement(i1.PopupContent,Et({},o,{ref:e}),L.createElement(i1.PopupStatus,Et({status:s,message:r},o),L.createElement(O3,{status:s})),L.createElement(i1.LabelWrapper,null,L.createElement(i1.Label,null,r)),L.createElement(i1.CloseWrapper,null,L.createElement(Sd,{size:"sm",onClick:n})))}),xw=Bg({},bw);k3.defaultProps=xw;var Cw=Bg(Bg({},ww),{},{message:et.node.isRequired,onClose:et.func});k3.propTypes=Cw;var ud={Center:"center",Left:"left",Right:"right"},C1={Top:"top",Bottom:"bottom"},pF=V(V(V({},ud.Left,pt(["left:25px;right:auto;"])),ud.Center,pt(["left:50%;right:auto;transform:translateX(-50%);"])),ud.Right,pt(["left:auto;right:25px;"])),gF=V(V({},C1.Top,pt(["top:25px;bottom:auto;"])),C1.Bottom,pt(["top:auto;bottom:25px;"])),mF="Popup",vF=mt.div.attrs({className:Rt(mF,"root")}).withConfig({componentId:"sc-jmtjri-0"})(function(t){var e=t.anchorOrigin;return pt(["position:fixed;display:flex;align-items:center;justify-content:center;z-index:1400;"," ",""],pF[e?.horizontal||ud.Left],gF[e?.vertical||C1.Bottom])}),yF=fn({Popup:vF}),bF=["autoHideDuration","anchorOrigin","open","onClose"];function a8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Rf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?a8(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a8(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Hg=Be(function(t,e){var n=t.autoHideDuration;t.anchorOrigin;var r=t.open,s=t.onClose,o=Tt(t,bF),c=Zb(Rt("Popup")),d=ct.useState(n),f=Xt(d,2),g=f[0],v=f[1],x=ct.useState(!1),C=Xt(x,2),y=C[0],h=C[1],w=function(){h(!1),v(1e3)};ct.useEffect(function(){r&&v(n)},[r]),ct.useEffect(function(){var M=null;return r&&!y&&g&&typeof s=="function"&&(M=setTimeout(s,g)),function(){M&&clearTimeout(M)}},[g,y,r,s]);var E=function(){return r?L.createElement(yF.Popup,Et({onMouseEnter:function(){return h(!0)},onMouseLeave:w},t),L.createElement(k3,Et({onClose:s},o,{ref:e}))):null};return zp.createPortal(E(),c)});Hg.defaultProps=Rf(Rf({},xw),{},{open:!1,autoHideDuration:5e3,anchorOrigin:{vertical:C1.Bottom,horizontal:ud.Left}}),Hg.propTypes=Rf(Rf({},Cw),{},{anchorOrigin:et.exact({vertical:et.oneOf(je(C1)),horizontal:et.oneOf(je(ud))}),open:et.bool,autoHideDuration:et.number,onClose:et.func});var Zc="RotationSlider",wF=mt.ul.attrs({className:Rt(Zc,"list")}).withConfig({componentId:"sc-1xuruq0-0"})(["display:flex;align-items:center;position:relative;padding:0;width:100%;list-style:none;"]),xF=mt.li.attrs({className:Rt(Zc,"big-dot")}).withConfig({componentId:"sc-1xuruq0-1"})(function(t){var e=t.theme.palette;return pt(["width:8px;height:8px;border-radius:50%;background-color:",";cursor:pointer;"],e[$.LinkPrimary])}),CF=mt.div.attrs({className:Rt(Zc,"small-dot-wrapper")}).withConfig({componentId:"sc-1xuruq0-2"})(["padding:2px;"]),SF=mt.li.attrs({className:Rt(Zc,"small-dot")}).withConfig({componentId:"sc-1xuruq0-3"})(function(t){var e=t.theme.palette;return pt(["width:2px;height:2px;border-radius:50%;background-color:",";cursor:pointer;"],e[$.LinkPrimary])}),_F=mt.span.attrs({className:Rt(Zc,"control")}).withConfig({componentId:"sc-1xuruq0-4"})(function(t){var e=t.theme.palette;return pt(["display:flex;justify-content:center;align-items:center;position:absolute;height:18px;width:2px;transform:translate(-50%,-50%);top:50%;background-color:",";& > input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}"],e[$.LinkActive])}),EF=mt.div.attrs({className:Rt(Zc,"mark")}).withConfig({componentId:"sc-1xuruq0-5"})(["padding:4px;"]),OF=mt.span.attrs({className:Rt(Zc,"mark-text")}).withConfig({componentId:"sc-1xuruq0-6"})(function(t){var e=t.theme.palette;return pt(["position:absolute;top:20px;font-size:14px;transform:translateX(-10%);color:",";"],e[$.TextPrimary])}),Tc=fn({RotationSliderList:wF,RotationSliderBigDot:xF,RotationSliderSmallDotWrapper:CF,RotationSliderSmallDot:SF,RotationSliderControl:_F,RotationSliderMark:EF,RotationSliderMarkText:OF}),kF=["min","max","angle","onChange","onMouseDown","onMouseUp","step","labelTooltipOptions","annotation","hideMarkText","showCurrentMarkText","value","railProps","trackProps","thumbProps","labelTooltipProps","markStyles","markTextStyles"];function i8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function da(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
116e%2?i8(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i8(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var zg=Be(function(t,e){var n=t.min,r=n===void 0?0:n,s=t.max,o=s===void 0?100:s,c=t.angle,d=c===void 0?10:c,f=t.onChange;t.onMouseDown,t.onMouseUp;var g=t.step,v=g===void 0?1:g,x=t.labelTooltipOptions,C=x===void 0?yd.Off:x,y=t.annotation,h=y===void 0?"°":y,w=t.hideMarkText,E=w===void 0?!1:w,M=t.showCurrentMarkText,b=M===void 0?!1:M,m=t.value,_=t.railProps,k=_===void 0?{}:_,R=t.trackProps,G=R===void 0?{}:R,T=t.thumbProps,D=T===void 0?{}:T,A=t.labelTooltipProps,B=A===void 0?{}:A,Z=t.markStyles,S=Z===void 0?{}:Z,I=t.markTextStyles,N=I===void 0?{}:I,z=Tt(t,kF),W=function(X,q){f&&f(X,q)},Q=function(){return m||m===0?m>o?o:m<r?r:m:r},tt=function(X){return E?!1:b?Q()===X:!0},at=function(){for(var X=[],q,rt=r;rt<=o;rt+=v)q=[],rt%d===0||rt===o?q=L.createElement(Tc.RotationSliderMark,{key:rt,style:da({},S)},tt(rt)&&L.createElement(Tc.RotationSliderMarkText,{style:da({},N)},rt===r+1?o:rt,L.createElement("sup",null,h)),L.createElement(Tc.RotationSliderBigDot,null)):rt%10===0&&(q=L.createElement(Tc.RotationSliderSmallDotWrapper,{key:rt},L.createElement(Tc.RotationSliderSmallDot,null))),Array.isArray(q)||X.push(q);return X};return L.createElement(vp,Et({min:r,max:o,step:v,value:Q(),hideTrack:!0,hideAnnotation:!0,annotation:h,onChange:W,labelTooltip:C,ref:e,components:{Rail:function(X,q){return L.createElement(Tc.RotationSliderList,Et({},X,{styles:da({},q)}),at())},Thumb:Tc.RotationSliderControl},componentsProps:{rail:da(da({},k),{},{style:da({},k.style)}),track:da(da({},G),{},{style:da({},G.style)}),thumb:da(da({},D),{},{style:da({top:"15%"},D.style)}),labelTooltip:da(da({},B),{},{style:da({},B.style)})}},z,{defaultValue:Number(z.defaultValue),style:da({width:"auto",height:"auto"},z.style)}
116))});zg.defaultProps={annotation:"°",min:0,max:100,step:1,labelTooltipOptions:yd.Off},zg.propTypes={value:et.oneOfType([et.array,et.number]),min:et.number,max:et.number,angle:et.number,onChange:et.func,onMouseDown:et.func,onMouseUp:et.func,step:et.number,annotation:et.string,hideMarkText:et.bool,showCurrentMarkText:et.bool,railProps:et.object,trackProps:et.object,thumbProps:et.object,labelTooltipProps:et.object,markStyles:et.object,markTextStyles:et.object,labelTooltipOptions:et.oneOf(je(yd))};var PF="SelectGroup",MF=mt(yw.InputGroup).attrs({className:Rt(PF,"root")}).withConfig({componentId:"sc-1uvutwe-0"})([""]),LF=fn({SelectGroup:MF}),TF=["children","size","error","label","placeholder","hint","LabelProps","SelectProps","selectProps","scroll","fullWidth","showSelectionKey","value","multiple","hideMenuItemsActions","onChange","readOnly","disabled","showClearIcon"];function o8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function s8(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o8(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o8(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var P3=Be(function(t,e){var n=t.children,r=t.size,s=t.error,o=t.label,c=t.placeholder,d=t.hint,f=t.LabelProps,g=t.SelectProps,v=t.selectProps,x=t.scroll,C=x===void 0?!0:x,y=t.fullWidth,h=t.showSelectionKey,w=t.value,E=t.multiple,M=t.hideMenuItemsActions,b=t.onChange,m=t.readOnly,_=t.disabled,k=t.showClearIcon,R=Tt(t,TF),G=function(){return o?typeof o=="function"?o({error:s}):Pa(o)==="object"?o:L.createElement(Ln,Et({error:s},f||{}),o):null},T=function(){return d?typeof d=="function"?d({error:s}):Pa(d)==="object"?d:L.createElement(xp,{error:s},d):null};return L.createElement(LF.SelectGroup,Et({},R,{ref:e}),G(),L.createElement(k1,Et({error:s,value:w,size:r,scroll:C,onChange:b,multiple:E,fullWidth:!!y},g||{},{selectProps:v,readOnly:m,disabled:_,placeholder:c,showSelectionKey:h,hideMenuItemsActions:M,showClearIcon:k}),n),T())});P3.defaultProps={error:!1,fullWidth:!1,readOnly:!1,disabled:!1,scroll:!0,hideMenuItemsActions:!1},Yp.size;var AF=Tt(Yp,["size"]);P3.propTypes=s8(s8({},AF),{},{fullWidth:et.bool,size:et.oneOf(je(Re)),label:et.node,hint:et.node,LabelProps:et.exact(g3),SelectProps:et.exact(Yp),selectProps:et.object,readOnly:et.bool,scroll:et.bool,showSelectionKey:et.bool,disabled:et.bool});var IF="Backdrop",NF=mt.div.attrs({className:Rt(IF,"root")}).withConfig({componentId:"sc-txa5a-0"})(function(t){var e=t.theme.palette;return pt(["position:fixed;display:flex;align-items:center;justify-content:center;inset:0px;background-color:",";transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms;opacity:1;z-index:-1;"],e[$.Extra_0_3_Overlay])}),RF=fn({Backdrop:NF}),Gg=Be(function(t,e){var n=Et({},(pw(t),t));return L.createElement(RF.Backdrop,Et({},n,{ref:e}))});Gg.defaultProps={},Gg.propTypes={};var mi="Drawer",FF=mt.div.attrs({className:Rt(mi,"temporary")}).withConfig({componentId:"sc-1riasfx-0"})(function(t){var e=t.open;return pt(["position:absolute;inset:0px;z-index:1200;visibility:",";"],!e&&"hidden")}),DF=mt.div.attrs({className:Rt(mi,"persistent")}).withConfig({componentId:"sc-1riasfx-1"})([""]),jF=mt.div.attrs({className:Rt(mi,"root")}).withConfig({componentId:"sc-1riasfx-2"})(function(t){var e=t.open,n=t.isCollapsed,r=t.top,s=r===void 0?0:r,o=t.theme,c=o.palette,d=o.shadows,f=o.breakpoints;return pt(["display:flex;flex-direction:column;flex:1 0 auto;background-color:",";box-shadow:",";overflow-y:overlay;overflow-x:hidden;transform:",";visibility:",";transition:200ms;height:calc(100% - ","px);","{margin-top:0px;height:100%;}"," &{margin-top:0px;height:100%;}box-sizing:border-box;width:",";",""],c[$.BackgroundStateless],d[Ya.LeftPanelMd],e?"none":"translateX(-100%)",!e&&"hidden",s,f.down("md"),f.classes.sm,n?"68px":"302px",k9)}),BF=mt.div.attrs({className:Rt(mi,"header")}).withConfig({componentId:"sc-1riasfx-3"})(function(t){var e=t.isCollapsed;return pt(["display:",";justify-content:flex-start;align-items:center;position:relative;text-decoration:none;width:100%;box-sizing:border-box;text-align:left;margin-top:12px;transition:background-color 100ms ease-out;"],e?"none":"flex")}),HF=mt.div.attrs({className:Rt(mi,"body")}).withConfig({componentId:"sc-1riasfx-4"})(["flex:1 1 auto;
116.SfxAccordionDetails-root{margin:0;}"]),zF=mt.div.attrs({className:Rt(mi,"footer")}).withConfig({componentId:"sc-1riasfx-5"})(function(t){var e=t.isCollapsed;return pt(["display:flex;flex-direction:column;width:100%;padding:",";"],e?"0px":"0px 8px")}),GF=mt.ul.attrs({className:Rt(mi,"list")}).withConfig({componentId:"sc-1riasfx-6"})(function(){return pt(["list-style:none;margin:12px 0;padding:0;position:relative;"])}),UF=mt.li.attrs({className:Rt(mi,"item")}).withConfig({componentId:"sc-1riasfx-7"})(function(t){var e=t.theme.palette,n=t.isCollapsed,r=t.selected;return pt(["display:",";justify-content:flex-start;align-items:center;position:relative;text-decoration:none;width:100%;box-sizing:border-box;text-align:left;padding:13px 16px;transition:background-color 100ms ease-out;margin-bottom:4px;cursor:pointer;&:hover{background-color:",";& > *{color:",";}}",""],n?"none":"flex",e[$.BackgroundActive],e[$.AccentStateless],r&&pt(["background-color:",";& > *{color:"," !important;}"],e[$.BackgroundActive],e[$.AccentStateless]))}),WF=mt.div.attrs({className:Rt(mi,"text")}).withConfig({componentId:"sc-1riasfx-8"})(function(t){var e=t.theme,n=e.palette,r=e.typography.font,s=t.font,o=t.isCollapsed;return pt(["flex:1 1 auto;color:",";",";transition:color 100ms ease-out;display:",";user-select:none;"],n[$.TextPrimary],r[s||Vt.LabelLarge],o&&"none")}),VF=mt.div.attrs({className:Rt(mi,"icon")}).withConfig({componentId:"sc-1riasfx-9"})(function(t){var e=t.theme.palette,n=t.isCollapsed;return pt(["display:flex;flex-shrink:0;color:",";margin-right:",";transition:color 100ms ease-out;"],e[$.IconsPrimary],n?"0px":"12px")}),Sw=mt.div.attrs({className:Rt(mi,"item-button")}).withConfig({componentId:"sc-1riasfx-10"})(function(t){var e=t.theme.palette,n=t.isCollapsed,r=t.selected;return pt(["display:flex;justify-content:",";align-items:center;border-radius:4px;box-sizing:border-box;text-align:left;padding:",";width:",";margin-bottom:8px;margin:",";transition:background-color 150ms cubic-bezier(0.4,0,0.2,1) 0ms;cursor:pointer;&:hover{background-color:",";& > *{color:",";}}",""],n?"center":"flex-start",n?"12px 0px":"13px 16px",n&&"56px",n&&"8px auto",e[$.BackgroundActive],e[$.AccentStateless],r&&pt(["background-color:",";& > *{color:",";}"],e[$.BackgroundActive],e[$.AccentStateless]))}),YF=mt(Sw).attrs({className:Rt(mi,"item-button")}).withConfig({componentId:"sc-1riasfx-11"})(function(t){var e=t.isCollapsed;return pt(["",""],!e&&pt(["padding:13px 16px;"]))}),ZF=mt(bp).attrs({className:Rt(mi,"accordion")}).withConfig({componentId:"sc-1riasfx-12"})(function(t){var e=t.theme,n=e.palette,r=e.typography.font,s=t.selected;return pt(["","{padding:13px 16px;transition:background-color 100ms ease-out;","{",";color:",";}&:hover{background-color:",";& > *{color:",";}}","}","{padding:0px 16px;}"],ld.Header,ld.Label,r[Vt.LabelLargeEmphasis],n[$.TextPrimary],n[$.BackgroundActive],n[$.AccentStateless],s&&pt(["","{color:",";}"],ld.Label,n[$.AccentStateless]),Mb.AccordionDetails)}),ro=fn({TemporaryDrawer:FF,PersistentDrawer:DF,Drawer:jF,Header:BF,Body:HF,Footer:zF,List:GF,Item:UF,ItemButton:Sw,Icon:VF,ItemText:WF,DrawerAccordion:ZF,CollapsedButton:YF}),L1=ct.createContext({isCollapsed:!1,size:20}),KF=["children","font"],Ug=Be(function(t,e){var n=t.children,r=t.font,s=Tt(t,KF),o=ct.useContext(L1),c=o.isCollapsed;return L.createElement(ro.ItemText,Et({font:r,isCollapsed:c},s,{ref:e}),n)});Ug.defaultProps={},Ug.propTypes={font:et.oneOf(je(Vt))};var $F=["children","size"],Wg=Be(function(t,e){var n=t.children,r=t.size,s=Tt(t,$F),o=ct.useContext(L1),c=o.isCollapsed,d=o.size;return L.createElement(ro.Icon,Et({},s,{isCollapsed:c,ref:e}),n&&typeof n=="function"?n({size:d||r}):n)});Wg.defaultProps={size:20},Wg.propTypes={size:et.number,children:et.oneOfType([et.node,et.func]).isRequired};var od={Auto:"auto",Temporary:"temporary",Persistent:"persistent"},XF=["children","open","iconsSize","collapsed","top","hideBackdrop","disablePortal","collapseButtonLabel","persistentDrawerStyles","temproryDrawerStyles","variant","onClose","onCollapse","onCollapseClick"];function l8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function tg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
116e%2?l8(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l8(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var M3=Be(function(t,e){var n=t.children,r=t.open,s=t.iconsSize,o=s===void 0?20:s,c=t.collapsed,d=c===void 0?!1:c,f=t.top,g=t.hideBackdrop,v=t.disablePortal,x=t.collapseButtonLabel,C=x===void 0?"Collapse menu":x,y=t.persistentDrawerStyles,h=y===void 0?{}:y,w=t.temproryDrawerStyles,E=w===void 0?{}:w,M=t.variant,b=M===void 0?od.Auto:M,m=t.onClose,_=t.onCollapse,k=t.onCollapseClick,R=Tt(t,XF),G=mb(),T=lP(G.breakpoints.down("xl")),D=ct.useState(d),A=Xt(D,2),B=A[0],Z=A[1],S=ct.useRef(null),I=ct.useMemo(function(){return o},[o]),N=document.querySelector("body");ct.useEffect(function(){Z(d)},[d]),ct.useEffect(function(){_&&_(B)},[B]);var z=function(){var ot=!B;Z(ot),k&&k(ot)},W=function(){typeof m=="function"&&m()},Q=function(ot){var ft=!1;if(S!=null&&S.current){var it;ft=(S==null||(it=S.current)===null||it===void 0?void 0:it.offsetWidth)>0}ot.key==="Escape"&&ft&&W()};ct.useEffect(function(){return document.addEventListener("keydown",Q),function(){return document.removeEventListener("keydown",Q)}},[]);var tt=function(ot){return L.createElement(ro.Drawer,Et({open:r,top:f},R,{isCollapsed:ot?B:!1,ref:e}),n,ot&&L.createElement(ro.CollapsedButton,{onClick:z,isCollapsed:B},L.createElement(Wg,null,B?function(ft){return L.createElement(EN,Et({},ft,{size:o}))}:function(ft){return L.createElement(SN,Et({},ft,{size:o}))}),L.createElement(Ug,null,C)))},at=function(){return!g&&r?L.createElement(Gg,{onClick:m}):null},X=function(){return v?L.createElement(ro.TemporaryDrawer,{ref:S,style:tg({},E),open:r},at(),tt(!1)):zp.createPortal(L.createElement(ro.TemporaryDrawer,{ref:S,style:tg({},E),open:r},at(),tt(!1)),N)},q=function(){return L.createElement(ro.PersistentDrawer,{style:tg({},h)},tt(!0))},rt=function(){switch(b){case od.Auto:return T?X():q();case od.Temporary:return X();case od.Persistent:return q();default:return T?X():q()}};return L.createElement(L1.Provider,{value:{isCollapsed:T?!1:B,size:I}},rt())}),qF={open:!1,hideBackdrop:!1,iconsSize:20,variant:od.Auto};M3.defaultProps=qF;var QF={onClose:et.func.isRequired,onCollapse:et.func,onCollapseClick:et.func,children:et.node.isRequired,top:et.number,iconsSize:et.number,open:et.bool,hideBackdrop:et.bool,collapsed:et.bool,disablePortal:et.bool,collapseButtonLabel:et.string,persistentDrawerStyles:et.object,temproryDrawerStyles:et.object,variant:et.oneOf(je(od))};M3.propTypes=QF;var JF=["children"],Vg=Be(function(t,e){var n=t.children,r=Tt(t,JF),s=ct.useContext(L1),o=s.isCollapsed;return L.createElement(ro.Header,Et({},r,{isCollapsed:o,ref:e}),n)});Vg.defaultProps={},Vg.propTypes={};var tD=["children"],Yg=Be(function(t,e){var n=t.children,r=Tt(t,tD);return L.createElement(ro.Body,Et({},r,{ref:e}),n)});Yg.defaultProps={},Yg.propTypes={};var eD=["children"],Zg=Be(function(t,e){var n=t.children,r=Tt(t,eD);return L.createElement(ro.List,Et({},r,{ref:e}),n)});Zg.defaultProps={},Zg.propTypes={};var nD=["children","selected"],Kg=Be(function(t,e){var n=t.children,r=t.selected,s=Tt(t,nD),o=ct.useContext(L1),c=o.isCollapsed;return L.createElement(ro.Item,Et({selected:r,isCollapsed:c},s,{ref:e}),n)});Kg.defaultProps={selected:!1},Kg.propTypes={selected:et.bool};var rD=mt.div.withConfig({componentId:"sc-1rfxjvn-0"})(["display:flex;width:100%;justify-content:space-between;gap:10px;.SfxSlider-root{min-width:100px;}",""],function(t){var e=t.isPhoneScreen;return e&&`
117      flex-direction: column;
118
119      .SfxSlider-root {
120        min-width: 230px;
121      }
122    `}),Fc=mt.div.withConfig({componentId:"sc-1rfxjvn-1"})(["display:flex;flex-direction:column;"]),Dc=mt(Ln).withConfig({componentId:"sc-1rfxjvn-2"})(["",";"],function(t){var e=t.theme;return e.typography.font[Vt.LabelExtraSmallUp]}),jc=mt.div.withConfig({componentId:"sc-1rfxjvn-3"})(["display:flex;align-items:center;"]),Bc=mt(Uc).withConfig({componentId:"sc-1rfxjvn-4"})(["display:inline-block;width:40px;height:28px;padding:6px 2px;margin-left:10px;border:none;.SfxInput-Base{text-align:center;width:100%;min-width:100%;max-width:100%;}"]),c8=-1,eg={brightness:0},u8=1,aD={width:150,padding:0,margin:0},iD=function(t){var e,n,r=t.t,s=_1($n.Filters.Brighten,eg),o=Xt(s,2),c=o[0],d=o[1],f=function(g){d({brightness:Sr(g,c8,u8)})};return L.createElement(Fc,{className:"FIE_brightness-option-wrapper"},L.createElement(Dc,{className:"FIE_brightness-option-label"},r("brightness")),L.createElement(jc,null,L.createElement(Lr,{className:"FIE_brightness-option",min:c8,step:.05,max:u8,width:"124px",value:(e=c.brightness)!==null&&e!==void 0?e:eg.brightness,onChange:f,style:aD}),L.createElement(Bc,{value:(n=c.brightness)!==null&&n!==void 0?n:eg.brightness,onChange:function(g){var v=g.target.value;return f(v)}})))}
122,Ep=function(t,e){return Math.min(t.width/e.width,t.height/e.height)||oo},d8=[{titleKey:"custom",ratio:tb,icon:KA,hide:function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=t.lockCropAreaAt;return e}},{titleKey:"original",ratio:vm,icon:lw},{titleKey:"landscape",descriptionKey:"16:9",ratio:Xn(16/9),icon:eI},{titleKey:"portrait",descriptionKey:"9:16",ratio:Xn(9/16),icon:aN},{titleKey:"ellipse",ratio:Yc,icon:cw}],oD=mt.div.withConfig({componentId:"sc-ldar2z-0"})(["display:flex;"]),sD=mt(gi).withConfig({componentId:"sc-ldar2z-1"})(["margin:0 0 0 6px;padding:0;"]),_w=mt.div.withConfig({componentId:"sc-ldar2z-2"})(["svg,span{vertical-align:middle;}"]),lD=mt(Ln).withConfig({componentId:"sc-ldar2z-3"})(["cursor:pointer;",""],function(t){var e=t.theme.typography;return e.font[Vt.InputSm]}),cD=mt.div.withConfig({componentId:"sc-ldar2z-4"})(["min-width:270px;border-radius:4px;overflow:hidden;background-color:",";"],function(t){var e=t.theme.palette;return e[$.BackgroundStateless]}),Ew=mt(so).withConfig({componentId:"sc-ldar2z-5"})(["display:flex;gap:10px;justify-content:flex-start;align-items:center;border-radius:4px;padding:8px 16px;"," ",""],function(t){var e=t.isAccordion;return e&&"padding-left: 22px;"},function(t){var e=t.isListItem;return e&&"padding: 0;"}),uD=mt(Ln).withConfig({componentId:"sc-ldar2z-6"})(function(t){var e=t.theme;return pt(["color:",";",";"],e.palette[$.TextPrimary],e.typography.font[Vt.InputMd])}),dD=mt(bp).withConfig({componentId:"sc-ldar2z-7"})(function(t){var e=t.theme;return pt([".SfxAccordionHeader-icon{padding-left:0;}.SfxAccordionHeader-label{",";color:",";}.SfxAccordionHeader-root{display:flex;flex-direction:row-reverse;width:fit-content;gap:10px;}"],e.typography.font[Vt.LabelMediumEmphasis],e.palette[$.TextPrimary])}),L3=function(t){var e=t.titleKey,n=t.description,r=t.ratio,s=t.onClick,o=t.Icon,c=t.isActive,d=t.isAccordion,f=t.theme,g=t.width,v=t.height,x=t.t,C=t.disableManualResize,y=t.noEffect;return L.createElement(Ew,{active:c,onClick:function(h){return s(h,r,{ratioTitleKey:e,width:g,height:v,disableManualResize:C,noEffect:y})},isAccordion:d},o&&L.createElement(_w,null,typeof o=="string"?L.createElement("span",{dangerouslySetInnerHTML:{__html:o}}):L.createElement(o,{color:f.palette["icon-primary"]})),L.createElement(uD,null,x(e)),n&&L.createElement(lD,null,n))};L3.defaultProps={Icon:void 0,width:void 0,height:void 0,disableManualResize:!1,isAccordion:!1,noEffect:!1};function h8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function f8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?h8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):h8(Object(e)).forEac
122h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var hD=function(t){var e=t.groupTitleKey,n=t.items,r=t.onItemSelect,s=t.t,o=t.isExpanded,c=t.setExpandedGroup,d=ke(),f=d.adjustments.crop,g=f.ratio,v=f.ratioGroupKey,x=f.ratioTitleKey,C=d.theme,y=function(h,w,E){r(h,w,f8(f8({},E),{},{ratioGroupKey:e}))};return L.createElement(dD,{label:s(e),onChange:function(){c(o?null:e)},expanded:o},n.map(function(h){var w=h.titleKey,E=h.ratio,M=h.width,b=h.height,m=h.descriptionKey,_=h.icon,k=h.disableManualResize,R=h.noEffect,G=E??Xn(M/b);return L.createElement(L3,{key:w,titleKey:w,t:s,description:s(m),size:"sm",onClick:y,width:M,height:b,ratio:G,Icon:_,theme:C,isAccordion:!0,disableManualResize:k,isActive:g===G&&x===w&&v===e,noEffect:R})}))};function p8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function g8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?p8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p8(Object(e)).forEac
122h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Ow=function(t){var e=t.titleKey,n=t.Icon,r=t.theme,s=t.groups,o=t.onItemSelect,c=t.t,d=ke(),f=d.adjustments.crop,g=f.ratioFolderKey,v=f.ratioGroupKey,x=ct.useState(""),C=Xt(x,2),y=C[0],h=C[1],w=function(E,M,b){o(E,M,g8(g8({},b),{},{ratioFolderKey:e}))};return L.createElement(Ew,{isListItem:!0,list:[{content:c(e),key:e,active:e===g,prefix:n&&L.createElement(_w,null,typeof n=="string"?L.createElement("span",{dangerouslySetInnerHTML:{__html:n}}):L.createElement(n,{color:r.palette["icon-primary"]})),subList:s.map(function(E){var M=E.titleKey,b=E.items;return{content:L.createElement(hD,{groupTitleKey:M,setExpandedGroup:h,isExpanded:y===""?v===M:y===M,t:c,items:b,onItemSelect:w}),key:M,disableHover:!0}}),subMenuProps:{style:{backgroundColor:r.palette[$.BackgroundStateless]}}}]})};Ow.defaultProps={Icon:void 0};var kw=function(t){var e=t.anchorEl,n=t.onClose,r=ke(),s=r.dispatch,o=r.t,c=r.adjustments,d=c===void 0?{}:c,f=d.crop,g=f===void 0?{}:f,v=g.ratio,x=g.ratioTitleKey,C=g.ratioFolderKey,y=r.shownImageDimensions,h=r.config,w=r.theme,E=h[_t.CROP],M=lo(),b=ct.useMemo(function(){var _=E.presetsItems,k=_===void 0?[]:_,R=E.presetsFolders,G=R===void 0?[]:R,T=E.lockCropAreaAt,D=T?d8.filter(function(A){var B;return!((B=A.hide)!==null&&B!==void 0&&B.call(A,{lockCropAreaAt:T}))}):d8;return[].concat(Hn(G),Hn(D),Hn(k))},[E]),m=function(_,k,R){_.stopPropagation();var G={ratio:k,ratioTitleKey:R.ratioTitleKey,ratioGroupKey:R.ratioGroupKey,ratioFolderKey:R.ratioFolderKey,noEffect:R.noEffect};s({type:D3,payload:G}),E.autoResize&&(s({type:dd,payload:{width:R.width,height:R.height,manualChangeDisabled:R.disableManualResize}}),s({type:Ed,payload:{factor:R.width>y.width||R.height>y.height?Ep(y,R):oo}})),n()};return L.createElement(L.Fragment,null,L.createElement(oD,null,L.createElement(m3,{className:"FIE_crop-tool-label FIE_selected-crop-preset-label",isPhoneScreen:M},o(x||"cropTool")),L.createElement(sD,{className:"FIE_crop-presets-opener-button",color:"link-secondary",size:"lg"},e?L.createElement(xN,{size:10}):L.createElement(bN,{size:10}))),L.createElement(Ms,{className:"FIE_crop-presets-menu",anchorEl:e,enableOverlay:!0,onClose:n,open:!!e,position:"top",popperOptions:{modifiers:[{name:"offset",options:{offset:[0,4]}}]},maxHeight:"100%"},L.createElement(cD,null,b.map(function(_){var k=_.titleKey,R=_.descriptionKey,G=_.ratio,T=_.width,D=_.height,A=_.groups,B=_.icon,Z=_.disableManualResize,S=_.noEffect;return A?L.createElement(Ow,{key:k,titleKey:k,groups:A,Icon:B,theme:w,onItemSelect:m,t:o,disableManualResize:Z}):L.createElement(L3,{key:G,ratio:G??Xn(T/D),titleKey:k,t:o,description:o(R),Icon:B,isActive:(v||vm)===(G??Xn(T/D))&&!C,theme:w,width:T,height:D,onClick:m,disableManualResize:Z,noEffect:S})}))))};kw.defaultProps={anchorEl:null};var Pw=function(t){var e=t.selectTool,n=t.isSelected,r=ke(),s=r.config,o=r.t,c=ct.useState(),d=Xt(c,2),f=d[0],g=d[1];return L.createElement(Tr,{className:"FIE_crop-tool",id:_t.CROP,Icon:bA,onClick:function(v,x){e(v),g(x.currentTarget)},isSelected:n},s[_t.CROP].noPresets?L.createElement(m3,{className:"FIE_crop-tool-label"},o("cropTool")):L.createElement(kw,{anchorEl:f,onClose:function(){g(null)}}))};Pw.defaultProps={isSelected:!1};var fD={transform:"scaleX(-1)"},Mw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t,s=ke(),o=s.dispatch,c=s.adjustments.isFlippedX,d=lo(320),f=ct.useMemo(function(){return{reverseLabelOfCurrXFlipDir:r(c?"unFlipX":"flipX"),reverseIconOfCurrXFlipDir:function(){return L.createElement(QA,{size:d?20:16,style:c?fD:void 0})}}},[c]),g=f.reverseLabelOfCurrXFlipDir,v=f.reverseIconOfCurrXFlipDir,x=ct.useCallback(function(){o({type:F3,payload:{direction:mm.X}})},[]),C=ct.useCallback(function(y){e(y),x()},[]);return L.createElement(Tr,{className:"FIE_flip-x-tool-button",id:_t.FLIP_X,label:g,Icon:v,onClick:C,isSelected:n})};Mw.defaultProps={isSelected:!1};var pD={transform:"scaleY(-1)"},Lw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t,s=ke(),o=s.dispatch,c=s.adjustments.isFlippedY,d=lo(320),f=ct.useMemo(function(){return{reverseLabelOfCurrXFlipDir:r(c?"unFlipY":"flipY"),reverseIconOfCurrXFlipDir:function(){return L.createElement(XA,{size:d?20:16,style:c?pD:void 0})}}},[c]),g=f.reverseLabelOfCurrXFlipDir,v=f.reverseIconOfCurrXFlipDir,x=ct.useCallback(function(){o({type:F3,payload:{direction:mm.Y}})},[]),C=ct.useCallback(function(y){e(y),x()},[]);return L.createElement(Tr,{className:"FIE_flip-y-tool-button",id:_t.FLIP_Y,label:g,Icon:v,onClick:C,isSelected:n})};Lw.defaultProps={isSelected:!1};var Tw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_rotate-tool-button",id:_t.ROTATE,label:r("rotateTool"),Icon:ow,onClick:e,isSelected:n})};Tw.defaultProps={isSelected:!1};var gD=mt.div.withConfig({componentId:"sc-wbx58r-0"})(["display:flex;align-items:center;gap:16px;"]),mD=mt(zg).withConfig({componentId:"sc-wbx58r-1"})([".SfxRotationSlider-control{width:1px;height:10px;background-color:",";&:before{box-shadow:unset;}}.SfxRotationSlider-mark,.SfxRotationSlider-small-dot-wrapper{padding:0;.SfxRotationSlider-mark-text{top:10px;}.SfxRotationSlider-big-dot{width:4px;height:4px;}.SfxRotationSlider-small-dot{width:1px;height:1px;}}.SfxRotationSlider-list{gap:4px;}"],function(t){var e=t.theme.palette;return e[$.IconsSecondary]}),vD=mt(Wo).withConfig({componentId:"sc-wbx58r-2"})([""]),yD=function(){var t=ke(),e=t.dispatch,n=t.adjustments.rotation,r=n===void 0?0:n,s=t.resize,o=s===void 0?{}:s,c=t.config,d=c[_t.ROTATE],f=lo(),g=xb(function(v,x){var C=Sr(x,-180,180);if(e({type:ex,payload:{rotation:C}}),o.width&&o.height){var y=Ol(o.width,o.height,C);e({type:dd,payload:{width:y.width,height:y.height}})}},20);return d.componentType==="buttons"?L.createElement(L.Fragment,null,L.createElement(Tr,{className:"FIE_rotate_button_left",id:_t.IMAGE,label:"-".concat(d.angle,"°"),Icon:ow,onClick:function(v){var x=r-d.angle;g(v,x)}}),L.createElement(Tr,{className:"FIE_rotate_button_right",id:_t.IMAGE,label:"+".concat(d.angle,"°"),Icon:NA,onClick:function(v){var x=r+d.angle;g(v,x)}})):L.createElement(gD,null,L.createElement(mD,{className:"FIE_rotate-slider",showCurrentMarkText:!0,min:-180,max:180,step:f?d.angle/3:1,value:r,angle:d.angle||90,onChange:g}),L.createElement(vD,{size:"sm",color:"basic",onClick:function(v){return g(v,r+90)}},L.createElement(MN,{width:15})))},Aw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_contrast-tool-button",id:_t.CONTRAST,label:r("contrastTool"),Icon:zI,onClick:e,isSelected:n})};Aw.defaultProps={isSelected:!1};var m8=-100,ng={contrast:0},v8=100,bD={width:150,padding:0,margin:0},wD=function(t){var e,n,r=t.t,s=_1($n.Filters.Contrast,ng),o=Xt(s,2),c=o[0],d=o[1],f=function(g){d({contrast:Sr(g,m8,v8)})};return L.createElement(Fc,{className:"FIE_contrast-option-wrapper"},L.createElement(Dc,{className:"FIE_contrast-option-label"},r("contrastTool")),L.createElement(jc,null,L.createElement(Lr,{className:"FIE_contrast-option",min:m8,max:v8,width:"124px",value:(e=c.contrast)!==null&&e!==void 0?e:ng.contrast,onChange:f,style:bD}),L.createElement(Bc,{value:(n=c.contrast)!==null&&n!==void 0?n:ng.contrast,onChange:function(g){var v=g.target.value;return f(v)}})))},Iw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_hsv-tool-button",id:_t.HSV,label:r("hsvTool"),Icon:VI,onClick:e,isSelected:n})};Iw.defaultProps={isSelected:!1};var Ac={hue:0,saturation:0,value:0},y8={hue:259,saturation:10,value:2},rg={padding:0,margin:0},xD=lo(),CD=function(t){var e,n,r,s,o,c,d=t.t,f=_1($n.Filters.HSV,Ac),g=Xt(f,2),v=g[0],x=g[1],C=function(y,h){x(V({},y,h>
122y8[y]?y8[y]:+h))};return L.createElement(rD,{isPhoneScreen:xD},L.createElement(Fc,{className:"FIE_hue-option-wrapper"},L.createElement(Dc,{className:"FIE_hue-option-label"},d("hue")),L.createElement(jc,null,L.createElement(Lr,{className:"FIE_hue-option",min:0,step:1,max:259,value:(e=v.hue)!==null&&e!==void 0?e:Ac.hue,onChange:function(y){return C("hue",y)},style:rg}),L.createElement(Bc,{value:(n=v.hue)!==null&&n!==void 0?n:Ac.hue,onChange:function(y){var h=y.target.value;return C("hue",h)}}))),L.createElement(Fc,{className:"FIE_saturation-option-wrapper"},L.createElement(Dc,{className:"FIE_saturation-option-label"},d("saturation")),L.createElement(jc,null,L.createElement(Lr,{className:"FIE_saturation-option",min:-2,step:.5,max:10,value:(r=v.saturation)!==null&&r!==void 0?r:Ac.saturation,onChange:function(y){return C("saturation",y)},style:rg}),L.createElement(Bc,{value:(s=v.saturation)!==null&&s!==void 0?s:Ac.saturation,onChange:function(y){var h=y.target.value;return C("saturation",h)}}))),L.createElement(Fc,{className:"FIE_value-option-wrapper"},L.createElement(Dc,{className:"FIE_value-option-label"},d("value")),L.createElement(jc,null,L.createElement(Lr,{className:"FIE_value-option",min:-2,step:.1,max:2,value:(o=v.value)!==null&&o!==void 0?o:Ac.value,onChange:function(y){return C("value",y)},style:rg}),L.createElement(Bc,{value:(c=v.value)!==null&&c!==void 0?c:Ac.value,onChange:function(y){var h=y.target.value;return C("value",h)}}))))},Nw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_blur-tool-button",id:_t.BLUR,label:r("blurTool"),Icon:$I,onClick:e,isSelected:n})};Nw.defaultProps={isSelected:!1};var b8=0,ag={blurRadius:0},w8=100,SD={width:150,padding:0,margin:0},_D=function(t){var e,n,r=t.t,s=_1($n.Filters.Blur,ag),o=Xt(s,2),c=o[0],d=o[1],f=function(g){d({blurRadius:Sr(g,b8,w8)})};return L.createElement(Fc,{className:"FIE_blur-option-wrapper"},L.createElement(Dc,{className:"FIE_blur-option-label"},r("blur")),L.createElement(jc,null,L.createElement(Lr,{className:"FIE_blur-option",min:b8,max:w8,width:"124px",value:(e=c.blurRadius)!==null&&e!==void 0?e:ag.blurRadius,onChange:f,style:SD}),L.createElement(Bc,{value:(n=c.blurRadius)!==null&&n!==void 0?n:ag.blurRadius,onChange:function(g){var v=g.target.value;return f(v)}})))},Rw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_warmth-tool-button",id:_t.WARMTH,label:r("warmthTool"),Icon:BI,onClick:e,isSelected:n})};Rw.defaultProps={isSelected:!1};var x8=0,ig={warmth:0},C8=200,ED={width:150,padding:0,margin:0},OD=function(t){var e,n,r=t.t,s=_1(l3,ig),o=Xt(s,2),c=o[0],d=o[1],f=function(g){d({warmth:Sr(g,x8,C8)})};return L.createElement(Fc,{className:"FIE_warmth-option-wrapper"},L.createElement(Dc,{className:"FIE_warmth-option-label"},r("warmthTool")),L.createElement(jc,null,L.createElement(Lr,{className:"FIE_warmth-option",min:x8,max:C8,width:"124px",value:(e=c.warmth)!==null&&e!==void 0?e:ig.warmth,onChange:f,style:ED}),L.createElement(Bc,{value:(n=c.warmth)!==null&&n!==void 0?n:ig.warmth,onChange:function(g){var v=g.target.value;return f(v)}})))},kD=mt.div.withConfig({componentId:"sc-1nr0bka-0"})(["max-width:680px;min-width:150px;position:relative;overflow:hidden;touch-action:pan-y pinch-zoom;"]),PD=mt.ul.withConfig({componentId:"sc-1nr0bka-1"})(["padding:0;margin:0;white-space:nowrap;overflow:hidden;"]),MD=mt.li.withConfig({componentId:"sc-1nr0bka-2"})(["padding:4px;display:inline-block;list-style-type:none;user-select:none;"]),Fw=pt(["position:absolute;top:0;height:100%;width:60px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:1;svg{color:",";}"],function(t){var e=t.theme.palette;return e[$.IconsSecondary]}),LD=mt.div.withConfig({componentId:"sc-1nr0bka-3"})([""," left:0;justify-content:flex-start;background:linear-gradient( 90deg,#ffffff 1.56%,rgba(255,255,255,0.89) 52.4%,rgba(255,255,255,0.532165) 76.04%,rgba(255,255,255,0) 100% );"],Fw),TD=mt.div.withConfig({componentId:"sc-1nr0bka-4"})([""," right:0;justify-content:flex-end;background:linear-gradient( 270deg,#ffffff 1.56%,rgba(255,255,255,0.89) 52.4%,rgba(255,255,255,0.532165) 76.04%,rgba(255,255,255,0) 100% );"],Fw),Xp=function(t){var e=t.children,n=t.style,r=t.className,s=ct.useRef(!1),o=ct.useRef(),c=f3(),d=Xt(c,1),f=d[
1220],g=ct.useState(!1),v=Xt(g,2),x=v[0],C=v[1],y=ct.useState(!1),h=Xt(y,2),w=h[0],E=h[1],M=ct.Children.toArray(e),b=function(){if(o.current){var G=o.current,T=G.scrollWidth,D=G.offsetWidth,A=G.scrollLeft,B=Math.round(T-D),Z=Math.round(B-A);C(0<A),E(0<Z)}},m=function(G,T){var D=G.findIndex(function(A){return A.classList.contains("FIE_carousel-item")});D!==-1&&(G[D].scrollIntoView({inline:T,behavior:"smooth",block:"nearest"}),setTimeout(function(){b()},500))},_=function(G){if(s.current){var T,D=(((T=G.touches)===null||T===void 0?void 0:T[0])||G).pageX;o.current.scrollBy(s.current-D,0),s.current=D,Bp(b,30)()}},k=function(){s.current=null,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",_),document.removeEventListener("touchcancel",k),document.removeEventListener("touchend",k)},R=function(G){var T;s.current=(((T=G.touches)===null||T===void 0?void 0:T[0])||G).pageX,document.addEventListener("mousemove",_),document.addEventListener("mouseup",k),document.addEventListener("touchmove",_),document.addEventListener("touchcancel",k),document.addEventListener("touchend",k)};return ct.useEffect(function(){o.current&&f(o.current,b)},[]),L.createElement(kD,{className:"".concat(r,"-wrapper"),style:n,onMouseDown:R,onTouchStart:R},x&&L.createElement(LD,{className:"FIE_carousel-prev-button",onClick:function(G){var T=Mg(),D=T.topOffset,A=T.leftOffset,B=document.elementsFromPoint(G.pageX+G.currentTarget.offsetWidth-A,G.pageY-D);m(B,"end")}},L.createElement(dw,null)),L.createElement(PD,{className:"".concat(r,"-items"),ref:o},M.map(function(G){return L.createElement(MD,{className:"".concat(r,"-item-wrapper FIE_carousel-item"),key:G.key},G)})),w&&L.createElement(TD,{className:"FIE_carousel-next-button",onClick:function(G){var T=Mg(),D=T.topOffset,A=T.leftOffset,B=document.elementsFromPoint(G.pageX-G.currentTarget.offsetWidth-A,G.pageY-D);m(B,"start")}},L.createElement(MI,null)))};Xp.defaultProps={style:null};var AD=mt.div.withConfig({componentId:"sc-oxugzy-0"})(["display:inline-flex;flex-direction:column;align-items:center;justify-content:center;padding:0px 2px;gap:6px;cursor:pointer;border-radius:2px;canvas{border-radius:2px;}"]),ID=mt($9).withConfig({componentId:"sc-oxugzy-1"})(["[aria-selected='true'] &{padding:1px;border:1px solid ",";border-radius:2px;}"],function(t){var e=t.theme;return e.palette["accent-primary-active"]}),ND=mt(Ln).withConfig({componentId:"sc-oxugzy-2"})(function(t){var e=t.theme;return pt(["color:",";",";[aria-selected='true'] &{color:",";}"],e.palette[$.TextPrimary],e.typography.font[Vt.LabelExtraSmallUp],e.palette["accent-primary-active"])}),Ff=60,Df=45,Dw=function(t){var e=t.filterLabel,n=t.filterFn,r=t.applyFilter,s=t.isActive,o=t.image,c=ct.useRef(),d=ct.useCallback(function(){r(n)},[n]),f=ct.useCallback(function(){c.current?c.current.cache():setTimeout(f,0)},[]);ct.useEffect(function(){return o&&f(),function(){var y;(y=c.current)===null||y===void 0||y.clearCache()}},[o]);var g=o.width/o.height,v=1>g,x=v?Ff:Df*g,C=v?Ff/g:Df;return L.createElement(AD,{className:"FIE_filters-item",onClick:d,"aria-selected":s},L.createElement(ID,{className:"FIE_filters-item-preview",width:Ff,height:Df},L.createElement(gm,{onTap:d},L.createElement(Ip,{image:o,filters:n?[n]:[],width:x,height:C,x:-(x-Ff)/2,y:-(C-Df)/2,ref:c}))),L.createElement(ND,{className:"FIE_filters-item-label"},e))};Dw.defaultProps={filterFn:void 0};const RD=ct.memo(Dw);var jf=$n.Filters,FD=[{label:"Original",filterFn:null},{label:"Invert",filterFn:jf.Invert},{label:"Black & White",filterFn:Cm},{label:"Sepia",filterFn:jf.Sepia},{label:"Solarize",filterFn:jf.Solarize},{label:"Clarendon",filterFn:Sm},{label:"Gingham",filterFn:_m},{label:"Moon",filterFn:Em},{label:"Lark",filterFn:Om},{label:"Reyes",filterFn:km},{label:"Juno",filterFn:Pm},{label:"Slumber",filterFn:Mm},{label:"Crema",filterFn:Lm},{label:"Ludwig",filterFn:Tm},{label:"Aden",filterFn:Am},{label:"Perpetua",filterFn:Im},{label:"Amaro",filterFn:Nm},{label:"Mayfair",filterFn:Rm},{label:"Rise",filterFn:Fm},{label:"Hudson",filterFn:Dm},{label:"Valencia",filterFn:jm},{label:"X-Pro II",filterFn:Bm},{label:"Sierra",filterFn:Hm},{label:"Willow",filterFn:zm},{label:"Lo-Fi",filterFn:Gm},{label:"Inkwell",filterFn:jf.Grayscale},{label:"Hefe",filterFn:Um},{label:"Nashville",filterFn:Wm},{label:"Stinson",filterFn:Vm},{label:"Vesper",filterFn:Ym},{label:"Earlybird",filterFn:Zm},{label:"Brannan",filterFn:Km},{label:"Sutro",filterFn:$m},{label:"Toaster",filterFn:Xm},{label:"Walden",filterFn:qm},{label:"1977",filterFn:Qm},{label:"Kelvin",filterFn:Jm},{label:"Maven",filterFn:t3},{label:"Ginza",filterFn:e3},{label:"Skyline",filterFn:n3},{label:"Dogpatch",filterFn:r3},{label:"Brooklyn",filterFn:a3},{label:"Helena",filterFn:i3},{label:"Ashby",filterFn:o3},{label:"Charmes",filterFn:s3}],DD={maxWidth:"100%",width:"100%"},jD=function(){var t=ke(),e=t.originalImage,n=pP(),r=Xt(n,2),s=r[0],o=r[1];return L.createElement(Xp,{className:"FIE_filters",style:DD},FD.map(function(c){return L.createElement(RD,{key:c.label,filterLabel:c.label,filterFn:c.filterFn,applyFilter:o,isActive:s===c.filterFn,image:e})}))},jw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_text-tool-button",id:_t.TEXT,label:r("textTool"),Icon:aw,onClick:e,isSelected:n})};jw.defaultProps={isSelected:!1};var BD=mt.div.withConfig({componentId:"sc-qvjmv1-0"})(["display:flex;align-items:center;justify-content:center;padding:8px 16px;margin-top:4px;gap:8px;flex-wrap:wrap;"," svg{color:",";}"],function(t){var e=t.isPhoneScreen;return e&&`
123    max-width: 315px;
124    padding: 0;
125  `},function(t){var e=t.theme.palette;return e[$.IconsPrimary]}),HD=mt.div.withConfig({componentId:"sc-qvjmv1-1"})(["display:flex;flex-wrap:wrap;margin-left:-4px;gap:4px;.FIE_annotation-option-triggerer{padding:6px;}"]),Op=mt.div.withConfig({componentId:"sc-qvjmv1-2"})(["background:",";border-radius:4px;display:flex;flex-direction:column;padding:8px 12px;overflow:visible;"," "," *{font-family:'Roboto',sans-serif;}"],function(t){var e=t.theme;return e.palette["bg-secondary"]},function(t){var e=t.position;return e&&`
126    display: grid;
127    grid-template-columns: repeat(4, auto);
128    padding: 0;
129    margin-top: 8px;
130    box-shadow: 0px 1px 2px `.concat(function(n){var r=n.theme;return r.palette["light-shadow"]},`;
131    `)},function(t){var e=t.disablePadding;return e&&`
132      padding: 0;
133    `}),Nl=mt.div.withConfig({componentId:"sc-qvjmv1-3"})(["display:flex;align-items:center;gap:12px;",""],function(t){var e=t.preventFlex;return e&&`
134      display: block;
135
136      label {
137        margin-bottom: 8px;
138      }
139  `}),S8=mt.div.withConfig({componentId:"sc-qvjmv1-4"})(["display:flex;align-items:center;justify-content:space-between;"]),Bf=mt.div.withConfig({componentId:"sc-qvjmv1-5"})(["&:not(:first-child){margin-left:12px;}"]),_l=mt.div.withConfig({componentId:"sc-qvjmv1-6"})(function(t){var e=t.theme,n=t.addThinBorder,r=t.secondaryIconColor,s=t.active,o=t.watermarkTool;return`
140    cursor: pointer;
141    padding: `.concat(o?"6px":"8px 12px",`;
142    border-radius: 2px;
143    display: flex;
144    justify-content: center;
145    align-items: center;
146    gap: 6px;
147
148    svg {
149      vertical-align: middle;
150      margin: 0 auto;
151    }
152
153    `).concat(n?"border: 0.5px solid ".concat(e.palette["borders-secondary"],`;
154        padding: 8px 8px;`):"",`;
155    color: `).concat(r?e.palette[$.IconsSecondary]:"",`;
156
157    `).concat(s&&`
158      border-radius: 4px;
159      border-color: `.concat(e.palette[$.AccentStateless],`;
160      background-color: `).concat(e.palette[$.BackgroundActive],`;
161
162        * {
163          color: `).concat(e.palette[$.AccentStateless],`;
164        }
165      `),`
166
167    :hover {
168      background: `).concat(e.palette["bg-primary-active"],`;
169    }
170  `)}),Bw=mt(Ln).withConfig({componentId:"sc-qvjmv1-7"})(["color:",";"],function(t){var e=t.theme.palette;return e[$.TextPrimary]}),zD=0,GD=1,UD=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,s=e.opacity,o=Math.round(100*s);return L.createElement(Op,{disablePadding:!0},L.createElement(Ln,null,r("transparency")),L.createElement(Nl,null,L.createElement(Lr,{annotation:"%",onChange:function(c){n({opacity:Sr(c/100,zD,GD)})},value:o,noMargin:!0}),L.createElement(Bw,null,"".concat(o,"%"))))},WD=mt($p).withConfig({componentId:"sc-7tf41j-0"})(["max-width:350px;"]),VD=mt.div.withConfig({componentId:"sc-7tf41j-1"})([".SfxColorPicker-root{max-width:100%;padding:0;box-shadow:none;border:none;","}.SfxColorPicker-action{display:flex;gap:12px;.SfxColorPicker-select{width:100px;}.SfxInput-root{width:190px !important;}}.SfxColorPicker-icon{color:",";}.SfxColorPicker-range-picker,.SfxColorPicker-bar-wrapper{width:100%;}"],function(t){var e=t.hideModalTitle;return e&&"padding-top: 12px;"},function(t){var e=t.theme.palette;return e[$.IconsPrimary]}),YD=mt(g1).withConfig({componentId:"sc-7tf41j-2"})(["gap:12px;padding:24px;.SfxButton-root{flex:1;margin:0;height:40px;}"]),og={ColorPickerModal:WD,ColorPickerWrap:VD,ModalActions:YD},ZD={zIndex:1301},Hw=function(t){var e=t.hideModalTitle,n=t.defaultColor,r=n===void 0?"":n,s=t.onChange,o=t.open,c=t.pinnedColors,d=t.onClose,f=t.onApply,g=ke(),v=g.t;return o?L.createElement(og.ColorPickerModal,{onClose:d,open:o,fullWidth:!0,modalStyles:ZD},!e&&L.createElement(v1,{onClose:d,primary:v("colorPickerModalTitleLabel","Pick color"),icon:L.createElement(mN,{size:29}),iconShadow:!0,variant:"with-icon"}),L.createElement(m1,null,L.createElement(og.ColorPickerWrap,{hideModalTitle:e},L.createElement(jg,{onChange:s,pinnedColors:c,defaultColor:r,showTransparentColor:!0}))),L.createElement(og.ModalActions,null,L.createElement(gi,{color:"basic",onClick:d},v("cancel")),L.createElement(gi,{color:"primary",onClick:f},v("apply")))):null};Hw.defaultProps={defaultColor:"",pinnedColors:[],onChange:function(){},open:!1,hideModalTitle:!1,onClose:function(){},onApply:function(){}};var KD=mt.div.attrs(function(t){var e=t.$color;return{style:{background:e==="rgba(0,0,0,0)"?"repeating-conic-gradient(#5d6d7e 0% 25%, transparent 0% 50%) 50% / 8px 8px":e}}}).withConfig({componentId:"sc-zmv0gj-0"})(["background:",";border-radius:4px;width:32px;height:32px;border:1px solid ",";cursor:pointer;box-sizing:border-box;"],function(t){var e=t.theme;return e.palette["icons-primary"]},function(t){var e=t.theme;return e.palette[$.BorderPrimaryStateless]}),sg="FIE_pinnedColors",qp=function(t){var e,n=t.onChange,r=t.color,s=t.colorFor,o=ke(),c=o.selectionsIds,d=c===void 0?[]:c,f=o.config.annotationsCommon,g=f===void 0?{}:f,v=o.dispatch,x=o.latestColors,C=x===void 0?{}:x,y=C[s],h=ct.useState(),w=Xt(h,2),E=w[0],M=w[1],b=ct.useState(function(){return y||r||g.fill}),m=Xt(b,2),_=m[0],k=m[1],R=ct.useState((e=window)!==null&&e!==void 0&&e.localStorage?JSON.parse(localStorage.getItem(sg)||"[]"):[]),G=Xt(R,2),T=G[0],D=G[1],A=ct.useRef(_),B=function(S){var I;if((I=window)!==null&&I!==void 0&&I.localStorage){var N=window.localStorage.getItem(sg);if(JSON.stringify(S)!==N){var z=S.slice(-9);window.localStorage.setItem(sg,JSON.stringify(z)),D(z)}}},Z=function(S){M(E?null:S.currentTarget)};return ct.useEffect(function(){var S=d.length===0&&y||r;k(S),n(S)},[r,d]),L.createElement(L.Fragment,null,L.createElement(KD,{className:"FIE_color-picker-triggerer",onClick:Z,$color:_,onCh
170ange:n}),L.createElement(Hw,{hideModalTitle:!0,onChange:function(S,I,N){k(I),n(I),B(N),y!==I&&v({type:lx,payload:{latestColors:V({},s,I)}})},defaultColor:_,pinnedColors:T,open:!!E,onClose:function(S){n(A.current||_),Z(S)},onApply:Z}))};qp.defaultProps={color:void 0};var $D=0,XD=100,qD=function(t){var e=t.annotation,n=t.updateAnnotation,r=e.stroke,s=e.strokeWidth;return L.createElement(Nl,null,L.createElement(Lr,{annotation:"px",onChange:function(o){n({strokeWidth:Sr(o,$D,XD)})},value:s,noMargin:!0}),L.createElement(qp,{color:r,onChange:function(o){n({stroke:o})},colorFor:"stroke"}))},QD=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,s=e.shadowOffsetX,o=e.shadowOffsetY,c=e.shadowBlur,d=e.shadowColor,f=e.shadowOpacity,g=function(v,x){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:100;n(V({},v,Sr(x,C,y)))};return L.createElement(Nl,{preventFlex:!0},L.createElement(Ln,null,r("shadow")),L.createElement(S8,null,L.createElement(Bf,null,L.createElement(Ln,null,r("horizontal")),L.createElement(Lr,{annotation:"px",min:-100,max:100,onChange:function(v){return g("shadowOffsetX",v,-100,100)},value:s||0,hideTrack:!0})),L.createElement(Bf,null,L.createElement(Ln,null,r("vertical")),L.createElement(Lr,{annotation:"px",min:-100,max:100,onChange:function(v){return g("shadowOffsetY",v,-100,100)},value:o||0,hideTrack:!0}))),L.createElement(S8,null,L.createElement(Bf,null,L.createElement(Ln,null,r("blur")),L.createElement(Lr,{annotation:"%",onChange:function(v){return g("shadowBlur",v)},value:c})),L.createElement(Bf,null,L.createElement(Ln,null,r("opacity")),L.createElement(Lr,{annotation:"%",onChange:function(v){return g("shadowOpacity",v/100,0,1)},value:Math.round(100*f)}))),L.createElement(qp,{color:d,onChange:function(v){n({shadowColor:v})},colorFor:"shadow"}))},JD=function(t,e,n){var r=t.width,s=t.height,o=t.scaleX,c=o===void 0?1:o,d=t.scaleY,f=d===void 0?1:d,g=t.rotation,v=g===void 0?0:g,x=t.padding,C=x===void 0?0:x,y=t.radius,h=t.radiusX,w=t.radiusY,E=Ol((r||2*(y||h))*c,(s||2*(y||w))*f,v),M=e.attrs,b=M.clipWidth,m=M.clipHeight,_=M.clipX,k=_===void 0?0:_,R=M.clipY,G=R===void 0?0:R,T={left:k+E.offsetLeft+C,center:k+b/2-(E.width/2-E.offsetLeft)+C,right:k+b-E.width-C+E.offsetLeft},D={top:G+E.offsetTop+C,middle:G+m/2-(E.height/2-E.offsetTop)+C,bottom:G+m-E.height-C+E.offsetTop},A=V(V(V(V(V(V(V(V(V({},Cr.TOP_LEFT,function(){return{x:T.left,y:D.top}}),Cr.TOP_CENTER,function(){return{x:T.center,y:D.top}}),Cr.TOP_RIGHT,function(){return{x:T.right,y:D.top}}),Cr.MIDDLE_LEFT,function(){return{x:T.left,y:D.middle}}),Cr.MIDDLE_CENTER,function(){return{x:T.center,y:D.middle}}),Cr.MIDDLE_RIGHT,function(){return{x:T.right,y:D.middle}}),Cr.BOTTOM_LEFT,function(){return{x:T.left,y:D.bottom}}),Cr.BOTTOM_CENTER,function(){return{x:T.center,y:D.bottom}}),Cr.BOTTOM_RIGHT,function(){return{x:T.right,y:D.bottom}});return A[n]()},_8=Object.values(Cr),tj=V(V(V(V(V(V(V(V(V({},Cr.TOP_LEFT,-145),Cr.TOP_CENTER,-90),Cr.TOP_RIGHT,-45),Cr.MIDDLE_LEFT,180),Cr.MIDDLE_CENTER,0),Cr.MIDDLE_RIGHT,0),Cr.BOTTOM_LEFT,135),Cr.BOTTOM_CENTER,90),Cr.BOTTOM_RIGHT,45),Cs={OPACITY:"opacity",STROKE:"stroke",SHADOW:"shadow",POSITION:"position"},ej=function(t){var e=t.annotation,n=t.updateAnnotation,r=ct.useState(null),s=Xt(r,2),o=s[0],c=s[1],d=ke(),f=d.designLayer,g=function(x){n(JD(e,f,x)),c(x)},v=_8.length;return _8.map(function(x,C){return L.createElement(ct.Fragment,{key:x},L.createElement(_l,{onClick:function(){return g(x)},active:o===x,secondaryIconColor:!0,addThinBorder:!0},x===Cr.MIDDLE_CENTER?L.createElement(HA,null):L.createElement(xI,{style:{transform:"rotate(".concat(tj[x],"deg)")}})),(C+1)%3==0&&C+1!==v&&L.createElement("div",null))})},nj=["children","morePoppableOptionsPrepended","moreOptionsPopupComponentsObj","morePoppableOptionsAppended","annotation","updateAnnotation","hideFillOption","hidePositionField","className"];function E8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function O8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}
170:arguments[n],n%2?E8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):E8(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Ls=function(t){var e=t.children,n=t.morePoppableOptionsPrepended,r=t.moreOptionsPopupComponentsObj,s=t.morePoppableOptionsAppended,o=t.annotation,c=t.updateAnnotation,d=t.hideFillOption,f=t.hidePositionField,g=t.className,v=Tt(t,nj),x=ct.useState(null),C=Xt(x,2),y=C[0],h=C[1],w=ct.useState(null),E=Xt(w,2),M=E[0],b=E[1],m=ke(),_=m.config.useCloudimage,k=m.t,R=lo(320),G=ct.useMemo(function(){return[].concat(Hn(n),[{titleKey:"opacity",name:Cs.OPACITY,Icon:iI}],Hn(_?[]:[{titleKey:"stroke",name:Cs.STROKE,Icon:rI},{titleKey:"shadow",name:Cs.SHADOW,Icon:sI}]),[f?void 0:{titleKey:"position",name:Cs.POSITION,Icon:dI}])},[n]),T=ct.useMemo(function(){return O8(O8({},r),{},V(V(V(V({},Cs.OPACITY,UD),Cs.STROKE,qD),Cs.SHADOW,QD),Cs.POSITION,ej),s)},[r]),D=ct.useCallback(function(Z,S){var I=Z?.currentTarget;h(I),b(S)},[]),A=ct.useCallback(function(Z){c({fill:Z})},[c]),B=y&&M&&T[M];return L.createElement(BD,{className:"FIE_annotations-options".concat(g?" ".concat(g):""),isPhoneScreen:R},!d&&L.createElement(qp,{color:o.fill,onChange:A,colorFor:"fill"}),e,L.createElement(HD,null,G.map(function(Z){return Z&&L.createElement(_l,{className:"FIE_annotation-option-triggerer",key:Z.name,title:k(Z.titleKey),onClick:function(S){return D(S,Z.name)},active:M===Z.name},L.createElement(Z.Icon,{size:20}))})),B&&L.createElement(Ms,{className:"FIE_annotation-option-popup",anchorEl:y,open:!!y,onClose:D,position:"top"},L.createElement(Op,null,M===Cs.POSITION?(function(){return L.createElement(L.Fragment,null,L.createElement(Ln,null,k("position")),L.createElement(Op,{position:!0},L.createElement(B,Et({annotation:o,updateAnnotation:c},v))))})():L.createElement(B,Et({annotation:o,updateAnnotation:c},v)))))};Ls.defaultProps={children:void 0,morePoppableOptionsPrepended:[],moreOptionsPopupComponentsObj:{},morePoppableOptionsAppended:[],hideFillOption:!1,hidePositionField:!1,className:void 0};var rj=mt(k1).withConfig({componentId:"sc-1cwdnjz-0"})(["width:160px;"]),aj=mt(Uc).withConfig({componentId:"sc-1cwdnjz-1"})(["width:72px;"]),ij=mt.div.withConfig({componentId:"sc-1cwdnjz-2"})(["display:flex;"]),oj=0,sj=100,k8=1,lj=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,s=e.letterSpacing,o=e.lineHeight,c=function(d,f){n(V({},d,Sr(f,oj,sj)))};return L.createElement(Nl,{preventFlex:!0},L.createElement(Ln,null,r("letterSpacing")),L.createElement(Lr,{annotation:"px",isActive:!!s,onChange:function(d){return c("letterSpacing",d)},value:s,step:k8}),L.createElement(Ln,null,r("lineHeight")),L.createElement(Lr,{annotation:"px",isActive:!!o,onChange:function(d){return c("lineHeight",d)},value:o,step:k8}))},cj={transform:"scaleX(-1)"},uj=function(t){var e=t.annotation,n=t.updateAnnotation,r=e.align,s=function(o){n({align:o})};return L.createElement(Nl,null,L.createElement(_l,{onClick:function(){return s("left")},active:r==="left"},L.createElement(Zy,null)),L.createElement(_l,{onClick:function(){return s("center")},active:r==="center"},L.createElement(iw,null)),L.createElement(_l,{onClick:function(){return s("right")},active:r==="right"},L.createElement(Zy,{style:cj})))},dj=[{titleKey:"textAlignment",name:"text-alignment",Icon:iw},{titleKey:"textSpacings",name:"text-spacings",Icon:fI}],hj=V(V({},"text-alignment",uj),"text-spacings",lj),Ae,hn,y1,$g,Xg,zw=function(t){if(t.target!==Ae){var e=Ae.value;kp(),$g(e)}},kp=function(){Ae&&Ae.remove(Ae),window&&window.removeEventListener("click",zw),hn&&hn.show(),y1&&y1.show(),typeof Xg=="function"&&Xg(),hn=null,Ae=null,y1=null},fj=function(t,e,n,r,s){function o(x){var C=x;C||(C=hn.placeholder.length*hn.fontSize());var y=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);(y||v)&&(C=Math.ceil(C));var h=document.documentMode||/Edge/.test(navigator.userAgent);h&&(C+=1),Ae.style.width="".concat(C,"px")}$g=r,Xg=s,y1=n,hn=e.findOne("#".concat(t)),hn.hide(),y1.hide();var c=hn.absolutePosition();Ae=document.createElement("textarea"),e.container().parentNode.appendChild(Ae),Ae.value=hn.text(),Ae.style.position="absolute",Ae.style.top="".concat(c.y,"px"),Ae.style.left="".concat(c.x,"px"),Ae.style.width="".concat(hn.width()-2*hn.padding(),"px"),Ae.style.height="".concat(hn.height()-2*hn.padding()+5,"px"),Ae.style.maxWidth="".concat(hn.width()-2*hn.padding(),"px"),Ae.style.maxHeight="".concat(hn.height()-2*hn.padding()+5,"px"),Ae.style.fontSize="".concat(hn.fontSize(),"px"),Ae.style.border="1px solid rgba(0, 0, 0, 0.5)",Ae.style.padding="0px",Ae.style.margin="0px",Ae.style.overflow="hidden",Ae.style.background="none",Ae.style.outline="none",Ae.style.resize="none",Ae.style.lineHeight=hn.lineHeight(),Ae.style.fontFamily=hn.fontFamily(),Ae.style.transformOrigin="left top",Ae.style.textAlign=hn.align(),Ae.style.fontStyle=hn.fontStyle(),Ae.style.letterSpacing=hn.letterSpacing(),Ae.style.lineHeight=hn.lineHeight(),Ae.style.color=hn.fill();var d=hn.rotation(),f="";d&&(f+="rotateZ(".concat(d,"deg)"));var g=0,v=-1<navigator.userAgent.toLowerCase().indexOf("firefox");v&&(g+=2+Math.round(hn.fontSize()/20)),f+="translateY(-".concat(g,"px)"),Ae.style.transform=f,Ae.style.height="auto",Ae.style.height="".concat(Ae.scrollHeight+3,"px"),Ae.focus(),Ae.addEventListener("keydown",function(x){if(x.key==="Enter"&&!x.shift
170Key){var C=Ae.value;kp(),$g(C)}x.key==="Escape"&&kp()}),Ae.addEventListener("keydown",function(x){if(x.key!=="Enter"&&x.key!=="Escape"){var C=hn.getAbsoluteScale().x;o(hn.width()*C),Ae.style.height="auto",Ae.style.height="".concat(Ae.scrollHeight+hn.fontSize(),"px")}}),window&&setTimeout(function(){window.addEventListener("click",zw)})},T3=function(t){var e=t.text,n=t.saveText,r=t.children,s=ke(),o=s.dispatch,c=s.textIdOfEditableContent,d=s.designLayer,f=s.t,g=s.config,v=g.useCloudimage,x=g[_t.TEXT],C=x.fonts,y=C===void 0?[]:C,h=x.onFontChange,w=ct.useCallback(function(_){var k=_.target,R=k.name,G=k.value,T=k.type;n(function(D){return V({id:D.id},R,T==="number"?Sr(G,1,500):G)})},[n]),E=ct.useCallback(function(_){if(w({target:{name:"fontFamily",value:_}}),e.fontFamily!==_&&typeof h=="function"){var k=d.draw.bind(d);h(_,k)}},[w,e,d]),M=ct.useCallback(function(_){var k,R=((k=e.fontStyle)===null||k===void 0?void 0:k.replace("normal","").split(" "))||[];0<Object.keys(R).length&&R.includes(_)?R=R.filter(function(G){return G!==_}):R.push(_),w({target:{name:"fontStyle",value:R.join(" ").trim()||"normal"}})},[e]),b=ct.useCallback(function(){o({type:j3,payload:{textIdOfEditableContent:null}})},[]),m=ct.useCallback(function(_){w({target:{name:"text",value:_}}),b()},[]);return ct.useEffect(function(){var _;if(c&&e.id===c){var k=d.getStage(),R=Xt(k.findOne("#".concat(X9)).children,1);_=R[0],fj(c,k,_,m,b)}return function(){_&&c&&kp()}},[c]),L.createElement(Ls,{className:"FIE_text-tool-options",annotation:e,updateAnnotation:n,morePoppableOptionsPrepended:v?[]:dj,moreOptionsPopupComponentsObj:v?{}:hj,t:f},Array.isArray(y)&&1<y.length&&L.createElement(rj,{className:"FIE_text-font-family-option",onChange:E,value:e.fontFamily,placeholder:f("fontFamily"),size:"sm"},y.map(function(){var _,k,R,G=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return L.createElement(so,{className:"FIE_text-font-family-item",key:(_=G.value)!==null&&_!==void 0?_:G,value:(k=G.value)!==null&&k!==void 0?k:G},(R=G.label)!==null&&R!==void 0?R:G)})),L.createElement(aj,{className:"FIE_text-size-option",value:e.fontSize||"",name:"fontSize",onChange:w,inputMode:"numeric",type:"number",size:"sm",placeholder:f("size")}),L.createElement(ij,null,!v&&L.createElement(L.Fragment,null,L.createElement(_l,{className:"FIE_text-bold-option",active:(e.fontStyle||"").includes("bold"),onClick:function(){return M("bold")},watermarkTool:!0},L.createElement(EI,{size:20})),L.createElement(_l,{className:"FIE_text-italic-option",active:(e.fontStyle||"").includes("italic"),onClick:function(){return M("italic")},watermarkTool:!0},L.createElement(SI,{size:20}))),r))};T3.defaultProps={children:null};var pj=function(t){var e=t.t,n=Ml({name:_t.TEXT}),r=Xt(n,2),s=r[0],o=r[1];return L.createElement(T3,{text:s,saveText:o,t:e})},Gw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_image-tool-button",id:_t.IMAGE,label:r("imageTool"),Icon:lw,onClick:e,isSelected:n})};Gw.defaultProps={isSelected:!1};var gj=mt.input.withConfig({componentId:"sc-h20emh-0"})(["display:none;width:1px;height:1px;position:absolute;z-index:-1;"]),mj=function(t,e){return L.createElement(gj,Et({type:"file",ref:e},t))};const Uw=ct.forwardRef(mj);var vj=mt.div.withConfig({componentId:"sc-m9ezm7-0"})(["display:flex;align-items:center;margin-left:",";flex-shrink:0;"],function(t){var e=t.noMargin;return e?"0":"12px"}),yj=mt(gi).withConfig({componentId:"sc-m9ezm7-1"})(["flex-grow:1;justify-content:center;align-items:center;"]),bj=mt(Ms).withConfig({componentId:"sc-m9ezm7-2"})(["padding:8px;background-color:",";"],function(t){var e=t.theme.palette;return e[$.BackgroundStateless]}),wj=mt(so).withConfig({componentId:"sc-m9ezm7-3"})(["border-radius:4px;"]),xj=mt(Rg).withConfig({componentId:"sc-m9ezm7-4"})(["display:flex;align-items:center;"]),Qp=function(t){var e=t.onClick,n=t.title,r=t.label,s=t.color,o=t.menuFromBtn,c=t.menuItems,d=t.menuPosition,f=d===void 0?"bottom":d,g=t.disabled,v=g!==void 0&&g,x=t.className,C=t.menuStyle,y=t.wrapperStyle,h=t.buttonRef,w=t.noMargin,E=ke(),M=E.t,b=ct.useRef(!0),m=ct.useState(null),_=Xt(m,2),k=_[0],R=_[1],G="sm",T=c.filter(
170Boolean),D=1<T.length,A=function(S){b.current&&R(S.currentTarget)},B=function(){b.current&&R(null)},Z=function(S){typeof S=="function"&&S(),B()};return ct.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]),L.createElement(L.Fragment,null,L.createElement(vj,{className:"".concat(x,"-wrapper"),style:y,ref:h,noMargin:w},L.createElement(yj,{className:"".concat(x,"-button"),color:s,size:G,title:n,onClick:v?void 0:function(S){var I;return o&&D?void A(S):void(typeof e=="function"?e():(I=T[0])!==null&&I!==void 0&&I.onClick&&T[0].onClick())},disabled:v},r||M("saveAs"))),D&&L.createElement(bj,{className:"".concat(x,"-menu"),anchorEl:k,onClose:B,open:!0,style:C,position:f},c.map(function(S){return S&&L.createElement(wj,{className:"".concat(x,"-menu-item"),key:S.key,active:S.isActive,onClick:function(){return Z(S.onClick)},size:G},S.icon&&L.createElement(xj,{size:G},typeof S.icon=="string"?L.createElement("span",{dangerouslySetInnerHTML:{__html:S.icon}}):L.createElement(S.icon,null)),L.createElement(Vp,null,S.label))})))};Qp.defaultProps={title:"",label:"",color:"primary",menuFromBtn:!1,noMargin:!1,menuPosition:"bottom",onClick:void 0,disabled:!1,menuStyle:void 0,wrapperStyle:void 0,buttonRef:void 0};var A3=function(t){var e=t.image,n=t.saveImage,r=t.children,s=t.t;return L.createElement(Ls,{className:"FIE_image-tool-options",annotation:e,updateAnnotation:n,t:s,hideFillOption:!0},r)};A3.defaultProps={children:null};var Cj=mt.div.withConfig({componentId:"sc-dqni47-0"})(["background:",";box-shadow:0px 1px 2px ",";border-radius:4px;padding:8px;overflow-y:auto;max-height:350px;max-width:300px;"],function(t){var e=t.theme;return e.palette["bg-secondary"]},function(t){var e=t.theme;return e.palette["light-shadow"]}),Sj=mt.div.withConfig({componentId:"sc-dqni47-1"})(["display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;margin:4px;padding:4px;cursor:pointer;border-radius:4px;border:2px solid ",";user-select:none;:hover{border-color:",";}img{width:100%;height:100%;object-fit:contain;}"],function(t){var e=t.theme;return e.palette["bg-primary-active"]},function(t){var e=t.theme;return e.palette["accent-primary-active"]}),Ww=function(t){var e=t.gallery,n=t.anchorEl,r=t.onClose,s=t.onSelect;return L.createElement(Wp,{className:"FIE_image-tool-gallery",anchorEl:n,open:!!n,position:"top",onClick:r,overlay:!0},L.createElement(Cj,null,e.map(function(o){var c=o.originalUrl,d=o.previewUrl;return L.createElement(Sj,{key:c,onClick:function(){return s(c)}},L.createElement("img",{src:d,alt:d,crossOrigin:"Anonymous",draggable:!1}))})))};Ww.defaultProps={gallery:[],anchorEl:null};var P8=.15,_j=function(){var t=ct.useState(),e=Xt(t,2),n=e[0],r=e[1],s=ct.useState(null),o=Xt(s,2),c=o[0],d=o[1],f=ct.useRef(),g=ct.useRef(),v=ke(),x=v.shownImageDimensions,C=v.dispatch,y=v.adjustments.crop,h=y===void 0?{}:y,w=v.t,E=v.config,M=E===void 0?{}:E,b=M[_t.IMAGE],m=!b.disableUpload,_=Array.isArray(b.gallery)&&0<b.gallery.length,k=Ml({name:_t.IMAGE,opacity:1},!1),R=Xt(k,3),G=R[0],T=R[1],D=R[2],A=ct.useRef(0),B=function(W){var Q=h.width||x.width,tt=h.height||x.height,at=h.x||0,X=h.y||0,q=Math.min(1,Q/(W.width+W.width*P8),tt/(W.height+W.height*P8));D({image:W,x:at+Q/2-W.width*q/2,y:X+tt/2-W.height*q/2,width:W.width*q,height:W.height*q})},Z=function(W){A.current+=1,A.current===W&&(A.current=0,r(!1))},S=function(W){C({type:Pl,payload:{feedback:{message:W,status:md.WARNING}}})},I=function(){f.current&&f.current.click()},N=function(){d(g.current)},z=ct.useMemo(function(){return[m&&{key:"add-by-upload-image",label:w(n?"importing":"uploadImage"),icon:uw,onClick:n?void 0:I},_&&{key:"add-from-gallery",label:w("fromGallery"),icon:kA,onClick:N}]},[b,n,w]);return L.createElement(A3,{image:G,saveImage:T,t:w},L.createElement(Qp,{className:"FIE_image-tool-add-option",color:"secondary",label:w("addImage"),title:w("addImageTitle"),menuPosition:"top",menuItems:z,size:"sm",style:{maxHeight:24},buttonRef:g,menuFromBtn:!0}),m&&L.createElement(Uw,{ref:f,onChange:n?void 0:function(W){if(W.target.files){r(!0);var Q=[],tt=Array.from(W.target.files),at=tt.length;if(tt.forEach(function(q){if(q.type.startsWith("image/")){var rt=new Image;rt.onload=function(){B(rt),URL.revokeObjectURL(q),Z(at)},rt.onerror=function(){S(w("uploadImageError")),Z(at)},rt.src=URL.createObjectURL(q)}else Q.push(q.name),Z(at)}),0<Q.length){var X=1<Q.length?w("areNotImages"):w("isNotImage");S("".concat(Q.join(", ")," ").concat(X," ").concat(w("toBeUploaded"),"."))}}W.target.value=""},disabled:n,multiple:!0}),_&&L.createElement(Ww,{gallery:b.gallery,onSelect:function(W){r(!0);var Q=new Image;Q.onload=function(){B(Q),Z(1)},Q.onerror=function(){S(w("uploadImageError")),Z(1)},Q.crossOrigin="Anonymous",Q.src=W},onClose:function(){d(null)},anchorEl:c}))},Vw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_rect-tool-button",id:_t.RECT,label:r("rectangleTool"),Icon:xA,onClick:e,isSelected:n})};Vw.defaultProps={isSelected:!1};var M8=0,L8=150,Ej=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,s=e.cornerRadius;return L.createElement(Nl,null,L.createElement(Ln,null,r("cornerRadius")),L.createElement(Lr,{annotation:"px",onChange:function(o){n({cornerRadius:Sr(o,M8,L8)})},value:s,min:M8,max:L8,noMargin:!0}))},Oj=[{titleKey:"cornerRadius",name:"corner-radius",Icon:cI}],kj=V({},"corner-radius",Ej),Pj=function(t){var e=t.t,n=Ml({name:_t.RECT}),r=Xt(n,2),s=r[0],o=r[1];return L.createElement(Ls,{className:"FIE_rect-tool-options",moreOptionsPopupComponentsObj:kj,morePoppableOptionsPrepended:Oj,annotation:s,updateAnnotation:o,t:e})},Yw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_ellipse-tool-button",id:_t.ELLIPSE,label:r("ellipseTool"),Icon:cw,onClick:e,isSelected:n})};Yw.defaultProps={isSelected:!1};var Mj=function(t){var e=t.t,n=Ml({name:_t.ELLIPSE}),r=Xt(n,2),s=r[0],o=r[1];return L.createElement(Ls,{className:"FIE_ellipse-tool-options",annotation:s,updateAnnotation:o,t:e})},Zw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_pen-tool-button",id:_t.PEN,label:r("penTool"),Icon:kN,onClick:e,isSelected:n})};Zw.defaultProps={isSelected:!1};function T8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function lg(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}
170:arguments[n],n%2?T8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):T8(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var yl={passive:!0},Lj=function(t){var e=t.t,n=ke(),r=n.dispatch,s=n.designLayer,o=n.previewGroup,c=n.config,d=Ml(lg(lg(lg({},c.annotationsCommon),c[_t.PEN]),{},{name:_t.PEN}),!1),f=Xt(d,3),g=f[0],v=f[1],x=f[2],C=ct.useRef(null),y=ct.useRef({points:[],moved:!1,id:""}),h=ct.useCallback(function(){var b=bb(C.current.content),m=ap(o,b);return[m.offsetX-(s.attrs.xPadding||0),m.offsetY-(s.attrs.yPadding||0)]},[s]),w=ct.useCallback(function(){y.current.moved?(y.current.points=y.current.points.concat(h()),r({type:Hc,payload:{id:y.current.id,points:y.current.points,dismissHistory:!0}})):(y.current={moved:!0,id:jp(_t.PEN),points:[].concat(Hn(y.current.points),Hn(h()))},x({id:y.current.id,name:_t.PEN,points:y.current.points}))},[h]),E=ct.useCallback(function(){y.current.id&&c[_t.PEN].selectAnnotationAfterDrawing&&r({type:_d,payload:{annotationId:y.current.id}}),y.current=null,C.current.off("mousemove touchmove",w),C.current.off("mouseleave touchcancel",E),document.removeEventListener("mouseup",E,yl),document.removeEventListener("touchend",E,yl),document.removeEventListener("mouseleave",E,yl),document.removeEventListener("touchcancel",E,yl)},[w]),M=ct.useCallback(function(b){b.target.attrs.draggable||(b.evt.preventDefault(),y.current={points:h()},C.current.on("mousemove touchmove",w),C.current.on("mouseleave touchcancel",E),document.addEventListener("mouseup",E,yl),document.addEventListener("touchend",E,yl),document.addEventListener("mouseleave",E,yl),document.addEventListener("touchcancel",E,yl))},[h,w,E]);return ct.useEffect(function(){return C.current=s?.getStage(),C.current&&C.current.on("mousedown touchstart",M),function(){C.current&&C.current.off("mousedown touchstart",M)}},[s]),L.createElement(Ls,{className:"FIE_pen-tool-options",annotation:g,updateAnnotation:v,t:e,hidePositionField:!0,hideFillOption:!0})},Kw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_line-tool-button",id:_t.LINE,label:r("lineTool"),Icon:gA,onClick:e,isSelected:n})};Kw.defaultProps={isSelected:!1};var Tj=function(t){var e=t.t,n=Ml({name:_t.LINE}),r=Xt(n,2),s=r[0],o=r[1];return L.createElement(Ls,{className:"FIE_line-tool-options",annotation:s,updateAnnotation:o,t:e,hidePositionField:!0,hideFillOption:!0})},$w=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_arrow-tool-button",id:_t.ARROW,label:r("arrowTool"),Icon:II,onClick:e,isSelected:n})};$w.defaultProps={isSelected:!1};var Aj=function(t){var e=t.t,n=Ml({name:_t.ARROW}),r=Xt(n,2),s=r[0],o=r[1];return L.createElement(Ls,{className:"FIE_arrow-tool-options",annotation:s,updateAnnotation:o,t:e,hidePositionField:!0,hideFillOption:!0})},Xw=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return L.createElement(Tr,{className:"FIE_polygon-tool-button",id:_t.POLYGON,label:r("polygonTool"),Icon:vI,onClick:e,isSelected:n})};Xw.defaultProps={isSelected:!1};var A8=3,I8=25,Ij=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,s=e.sides;return L.createElement(Nl,null,L.createElement(Ln,null,r("sides")),L.createElement(Lr,{annotation:"",onChange:function(o){n({sides:Sr(o,A8,I8)})},value:s,min:A8,max:I8,noMargin:!0}))},Nj=[{titleKey:"sides",name:"sides-number",Icon:bI}],Rj=V({},"sides-number",Ij),Fj=function(t){var e=t.t,n=Ml({name:_t.POLYGON}),r=Xt(n,2),s=r[0],o=r[1];return L.createElement(Ls,{className:"FIE_polygon-tool-options",morePoppableOptionsPrepended:Nj,moreOptionsPopupComponentsObj:Rj,annotation:s,updateAnnotation:o,t:e,hidePositionField:!0})};function N8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function R8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}
170:arguments[n],n%2?N8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):N8(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var qw=function(t,e,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0;if(t.width&&t.height)return t;var o=mp(e,n,r),c=Ol(o.width,o.height,s);return t.width||t.height?{width:t.width||c.width,height:t.height||c.height}:c.width&&c.height&&c||R8(R8({},r),Ol(r.width,r.height,s))},Dj=mt.div.withConfig({componentId:"sc-17otqpz-0"})(["display:flex;justify-content:",";align-items:flex-end;gap:3px;flex-wrap:wrap;"],function(t){var e=t.alignment;return e||"center"}),F8=mt(Sp).withConfig({componentId:"sc-17otqpz-1"})(function(t){var e=t.theme;return pt(["width:106px;max-width:106px;margin-top:4px;.SfxInput-Base{width:100%;min-width:100%;max-width:100%;}span{color:",";",";}"],e.palette[$.TextSecondary],e.typography.font[Vt.LabelMedium])}),jj=mt(Wo).withConfig({componentId:"sc-17otqpz-2"})(["svg{margin-bottom:1px;}"]),Bj=mt(Wo).withConfig({componentId:"sc-17otqpz-3"})(["margin-left:12px;"]);function D8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function j8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?D8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):D8(Object(e)).forEac
170h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var I3=function(t){var e=t.onChange,n=t.currentSize,r=t.hideResetButton,s=t.alignment,o=ke(),c=o.dispatch,d=o.originalImage,f=o.resize,g=o.shownImageDimensions,v=o.adjustments,x=v.crop,C=v.rotation,y=C===void 0?0:C,h=o.theme,w=o.t,E=function(R){var G,T=R.target,D=T.name,A=T.value;if(!(1>parseFloat(A))){var B=Math.min(10*d.width,10*d.height),Z=Ol(d.width,d.height,y),S=V({},D,A&&Sr(A,0,B)),I=D==="height",N=I?"width":"height",z=(G=n.ratioUnlocked)!==null&&G!==void 0?G:f.ratioUnlocked;if(!z){var W=Z.width/Z.height;S[N]=Math.round(I?S[D]*W:S[D]/W)}if(S[D]!==f[D]||S[N]!==f[N]){if(typeof e=="function")return void e(S);c({type:dd,payload:S});var Q=x.width&&x.height&&x||g,tt=j8(j8({},f),S);c({type:Ed,payload:{factor:tt.width&&tt.height?Ep(Q,tt):oo,isAbsoluteZoom:!0}})}}},M=typeof f.width>"u"&&typeof f.height>"u"||d.width===f.width&&d.height===f.height,b=qw((n.width||n.height)&&n||f,x,g,d,y),m=f.manualChangeDisabled,_=typeof f.width<"u"&&!f.width,k=typeof f.height<"u"&&!f.height;return L.createElement(Dj,{className:"FIE_resize-tool-options",alignment:s},L.createElement(F8,{className:"FIE_resize-width-option",value:_?"":b.width,name:"width",onChange:m?void 0:E,inputMode:"numeric",title:w("resizeWidthTitle"),label:w("width"),inputProps:{type:"number"},size:"sm",iconEnd:"px",placeholder:"Width",disabled:m}),L.createElement(jj,{className:"FIE_resize-ratio-locker",title:w("toggleRatioLockTitle"),onClick:m?void 0:function(){return typeof e=="function"?void e({ratioUnlocked:!n.ratioUnlocked}):void c({type:dd,payload:{ratioUnlocked:!f.ratioUnlocked}})},color:"basic",size:"sm",disabled:m},n.ratioUnlocked||f.ratioUnlocked?L.createElement(jA,{size:16,color:h.palette.success}):L.createElement(FA,{size:16,color:h.palette.error})),L.createElement(F8,{className:"FIE_resize-height-option",value:k?"":b.height,name:"height",onChange:m?void 0:E,inputMode:"numeric",title:w("resizeHeightTitle"),label:w("height"),inputProps:{type:"number"},size:"sm",iconEnd:"px",placeholder:"Height",disabled:m}),!r&&L.createElement(Bj,{className:"FIE_resize-reset-button",size:"sm",color:"basic",onClick:M||m?void 0:function(){c({type:dd,payload:{width:void 0,height:void 0,ratioUnlocked:!1}});var R=x.width&&x.height&&x||g;c({type:Ed,payload:{factor:Ep(R,R)}})},disabled:M||m},L.createElement(rw,null)))};I3.defaultProps={onChange:void 0,currentSize:{},hideResetButton:!1,alignment:"center"};var Hj=mt.div.withConfig({componentId:"sc-fvaj5j-0"})(["display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;overflow:hidden;",";"],function(t){var e=t.noWrap;return e?"flex-wrap: nowrap;":""}),B8=mt.div.withConfig({componentId:"sc-fvaj5j-1"})(["margin-bottom:8px;"]),zj=mt.div.withConfig({componentId:"sc-fvaj5j-2"})(function(t){var e=t.theme;return`
171    padding: 6px 4px;
172    border: 1px solid `.concat(e.palette["borders-secondary"],`;
173    width: fit-content;
174    height: 32px;
175    border-radius: 2px;
176    overflow: hidden;
177    cursor: pointer;
178    border-radius: 4px;
179
180    :hover {
181      background: `).concat(e.palette["bg-primary-active"],`;
182    }
183
184    &[aria-selected='true'] {
185      background: `).concat(e.palette["bg-primary-active"],`;
186      border-color: `).concat(e.palette["accent-primary-active"],`;
187    }
188
189    img {
190      max-width: 100%;
191      max-height: 100%;
192    }
193  `)}),Qw=function(t){var e=t.addImgWatermark,n=t.loadAndSetWatermarkImg,r=t.style,s=ke(),o=s.config,c=s.annotations,d=s.dispatch,f=s.t,g=ct.useMemo(function(){var h;return(h=(c[El]||{}).image)===null||h===void 0?void 0:h.src},[c[El]]),v=function(h){var w=h.currentTarget.children[0];if(w.complete){if(!w.naturalWidth)return void d({type:Pl,payload:{feedback:{message:f("mutualizedFailedToLoadImg"),duration:2e3}}});e(w)}},x=o[_t.WATERMARK]||{},C=x.gallery,y=C===void 0?[]:C;return y.length===0?null:L.createElement(Xp,{className:"FIE_watermark-gallery",style:r},y.map(function(h){var w=h?.url||h,E=h?.previewUrl||w;return L.createElement(zj,{className:"FIE_watermark-selected-item",onClick:function(M){return w===E?v(M
193):n(w)},key:w,"aria-selected":w===g},L.createElement("img",{src:E,alt:"Failed to load.",crossOrigin:"Anonymous",draggable:!1}))}))};Qw.defaultProps={style:void 0};var Gj=function(t){var e=t.watermark,n=t.saveWatermark,r=t.t,s=ct.useState(null),o=Xt(s,2),c=o[0],d=o[1],f=e.padding||0;return L.createElement(L.Fragment,null,L.createElement(_l,{className:"FIE_watermark-padding-triggerer",title:r("padding"),onClick:function(g){d(g.currentTarget)},active:c},L.createElement(gI,{size:20})),L.createElement(Ms,{className:"FIE_watermark-padding-popup",anchorEl:c,open:!!c,onClose:function(){d(null)},position:"top"},L.createElement(Op,null,L.createElement(Ln,null,r("padding")),L.createElement(Nl,null,L.createElement(Lr,{annotation:"px",onChange:function(g){n({padding:Sr(g,0,100)})},value:f,noMargin:!0}),L.createElement(Bw,null,"".concat(f,"px"))))))};function H8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ss(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?H8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):H8(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var z8=.33,qu="watermark",Uj=function(){var t=ke(),e=t.annotations,n=t.shownImageDimensions,r=t.selectionsIds,s=t.config,o=t.dispatch,c=t.t,d=t.adjustments.crop,f=d===void 0?{}:d,g=lo(),v=ct.useState(!1),x=Xt(v,2),C=x[0],y=x[1],h=ct.useRef(),w=s[_t.WATERMARK],E=ct.useMemo(function(){return e[qu]},[e[qu]]),M=f.width||n.width,b=f.height||n.height,m=f.x||0,_=f.y||0,k=w.textScalingRatio||z8,R=w.imageScalingRatio||z8,G=function(S){var I=S.naturalWidth||S.width,N=S.naturalHeight||S.height,z=b>M?b*R/N:M*R/I,W=Ss(Ss(Ss({},s.annotationsCommon),s[_t.IMAGE]),{},{scaleX:z,scaleY:z,padding:1,image:S,width:I,height:N,x:m+M/2-I*z/2,y:_+b/2-N*z/2,id:qu,name:_t.IMAGE,replaceCurrent:!0});o({type:Hc,payload:W})},T=function(S){o({type:Hc,payload:Ss(Ss({},typeof S=="function"?S(E):S),{},{id:qu})})},D=function(S){o({type:Pl,payload:{feedback:{message:S,status:md.WARNING}}})},A=function(S,I){if(S){y(!0);var N=new Image;N.onload=function(){G(N),I&&URL.revokeObjectURL(S),y(!1)},N.onerror=function(){D(c("mutualizedFailedToLoadImg")),I&&URL.revokeObjectURL(S),y(!1)},N.src=S}};ct.useEffect(function(){E&&(o({type:R3}),o({type:_d,payload:{annotationId:"watermark"}}))},[E]),ct.useEffect(function(){E&&(r.length===0||r[0].id!==qu)&&o({type:_d,payload:{annotationId:"watermark"}})},[r]);var B=[(!s.useCloudimage||typeof w.onUploadWatermarkImgClick=="function")&&{key:"upload-watermark",label:c("uploadWatermark"),icon:uw,onClick:function(){if(typeof w.onUploadWatermarkImgClick=="function"){var S=w.onUploadWatermarkImgClick(A);return void(S instanceof Promise&&S.then(function(){var I=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},N=I.url,z=I.revokeObjectUrl;return A(N,z!==void 0&&z)}))}h.current&&h.current.click()}},!w.hideTextWatermark&&{key:"add-text-watermark",label:c("addWatermarkAsText"),icon:aw,onClick:function(){var S={height:b*k,width:M*k},I=Ss(Ss(Ss(Ss({},s.annotationsCommon),s[_t.TEXT]),S),{},{padding:1,x:m+M/2-S.width/2,y:_+b/2-S.height/2,fill:"#000000",id:qu,name:_t.TEXT,replaceCurrent:!0});o({type:Hc,payload:I})}}],Z=function(){return L.createElement(Gj,{watermark:E,saveWatermark:T,t:c})};return L.createElement("div",{className:"FIE_watermark-tool-wrapper"},E?.name===_t.TEXT&&L.createElement(B8,{className:"FIE_watermark-options-wrapper"},L.createElement(T3,{text:E,saveText:T,t:c},Z())),E?.name===_t.IMAGE&&L.createElement(B8,{className:"FIE_watermark-options-wrapper"},L.createElement(A3,{image:E,saveImage:T,t:c},Z())),L.createElement(Hj,{className:"FIE_watermark-add-wrapper",noWrap:!0},L.createElement(Qp,{className:"FIE_watermark-add",color:"secondary",label:(function(){return g?c("plus"):B[0]?c("addWatermark"):c("addTextWatermark")})(),title:c("addWatermarkTitle"),menuPosition:"top",menuItems:B,menuFromBtn:!0,noMargin:!0}),L.createElement(Qw,{loadAndSetWatermarkImg:A,addImgWatermark:G,style:g&&!(E==null||!E.name)?{width:"55%"}:void 0}),L.createElement(Uw,{onChange:C?void 0:function(S){if(S.target.files){var I=S.target.files[0];I.type.startsWith("image/")&&A(URL.createObjectURL(I),!0)}S.target.value=""},disabled:C,ref:h})))},cg,o1=(cg={},V(V(V(V(V(V(V(V(V(V(cg,_t.CROP,{id:_t.CROP,Item:Pw}),_t.ROTATE,{id:_t.ROTATE,Item:Tw,ItemOptions:yD}),_t.FLIP_X,{id:_t.FLIP_X,Item:Mw}),_t.FLIP_Y,{id:_t.FLIP_Y,Item:Lw}),_t.BRIGHTNESS,{id:_t.BRIGHTNESS,Item:Pb,ItemOptions:iD}),_t.CONTRAST,{id:_t.CONTRAST,Item:Aw,ItemOptions:wD}),_t.HSV,{id:_t.HSV,Item:Iw,ItemOptions:CD,hideFn:function(t){var e=t.useCloudimage;return e}}),_t.BLUR,{id:_t.BLUR,Item:Nw,ItemOptions:_D}),_t.WARMTH,{id:_t.WARMTH,Item:Rw,ItemOptions:OD,hideFn:function(t){var e=t.useCloudimage;return e}}),_t.FILTERS,{id:_t.FILTERS,Item:jD}),V(V(V(V(V(V(V(V(V(V(cg,_t.WATERMARK,{id:_t.WATERMARK,Item:Uj}),_t.TEXT,{id:_t.TEXT,Item:jw,ItemOptions:pj}),_t.IMAGE,{id:_t.IMAGE,Item:Gw,ItemOptions:_j}),_t.RECT,{id:_t.RECT,Item:Vw,ItemOptions:Pj}),_t.POLYGON,{id:_t.POLYGON,Item:Xw,ItemOptions:Fj}),_t.ELLIPSE,{id:_t.ELLIPSE,Item:Yw,ItemOptions:Mj}),_t.PEN,{id:_t.PEN,Item:Zw,ItemOptions:Lj}),_t.LINE,{id:_t.LINE,Item:Kw,ItemOptions:Tj}),_t.ARROW,{id:_t.ARROW,Item:$w,ItemOptions:Aj}),_t.RESIZE,{id:_t.RESIZE,Item:I3})),cp=V(V(V(V(V(V({},Mn.ADJUST,[_t.CROP,_t.ROTATE,_t.FLIP_X,_t.FLIP_Y]),Mn.FINETUNE,[_t.BRIGHTNESS,_t.CONTRAST,_t.HSV,_t.BLUR,_t.WARMTH]),Mn.FILTERS,[_t.FILTERS]),Mn.WATERMARK,[_t.WATERMARK]),Mn.ANNOTATE,[_t.TEXT,_t.IMAGE,_t.RECT,_t.ELLIPSE,_t.POLYGON,_t.PEN,_t.LINE,_t.ARROW]),Mn.RESIZE,[_t.RESIZE]);function G8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function U8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}
193:arguments[n],n%2?G8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):G8(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Jw="SELECT_TAB",Wj=function(t,e){return e.tabId===t.tabId?t:U8(U8({},t),{},{tabId:e.tabId,toolId:cp[e.tabId][0],selectionsIds:[],pointerCssIcon:e.tabId===Mn.ANNOTATE?Os.DRAW:Os.DEFAULT})};function W8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ug(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?W8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):W8(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var N3="UNDO",Vj=function(t){if(t.pastDesignStates&&0<t.pastDesignStates.length){var e=vd(t),n=rb(t.pastDesignStates),r=n[0],s=n.slice(1),o=[e].concat(Hn(t.futureDesignStates||[]));return ug(ug(ug({},t),r),{},{selectionsIds:[],pastDesignStates:s,futureDesignStates:o,hasUndo:0<s.length,hasRedo:!0,haveNotSavedChanges:0<s.length})}return t};function V8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Hf(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?V8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):V8(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var tx="SET_FINETUNE",Yj=function(t,e){return Hf(Hf({},t),{},{isDesignState:!e.dismissHistory,finetunes:!e.finetune||t.finetunes.includes(e.finetune)?t.finetunes:[].concat(Hn(t.finetunes),[e.finetune]),finetunesProps:Hf(Hf({},t.finetunesProps),e.finetuneProps)})},Zj=["dismissHistory","replaceCurrent"];function Y8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Qu(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Y8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Y8(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Hc="SET_ANNOTATION",Kj=function(t){var e,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=n.dismissHistory,s=n.replaceCurrent,o=Tt(n,Zj),c=(e=o.id)!==null&&e!==void 0?e:jp(o.name),d=t.annotations[c];return d&&!Object.keys(o).some(function(f){return(o[f]||o[f]===0)&&o[f]!==d[f]})?t:Qu(Qu({},t),{},{isDesignState:!(r!==void 0&&r),annotations:Qu(Qu({},t.annotations),{},V({},c,Qu(Qu({},s!==void 0&&s?{}:d),o)))})};function Z8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function K8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Z8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Z8(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var S1="CHANGE_POINTER_ICON",$j=function(t,e){return t.pointerCssIcon===e.pointerCssIcon?t:K8(K8({},t),{},{pointerCssIcon:e.pointerCssIcon})};function $8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function X8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?$8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$8(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var _d="SELECT_ANNOTATION",Xj=function(t,e){if(t.selectionsIds.length===1&&t.selectionsIds[0]===e.annotationId)return t;var n;if(e.multiple){n=t.selectionsIds.filter(function(s){return s!==e.annotationId});var r=n.length!==t.selectionsIds.length;r||n.push(e.annotationId)}else n=[e.annotationId];return X8(X8({},t),{},{selectionsIds:n})};function q8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Q8(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?q8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):q8(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var R3="CLEAR_ANNOTATIONS_SELECTIONS",qj=function(t){return t.selectionsIds.length===0?t:Q8(Q8({},t),{},{selectionsIds:[]})};function J8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function t7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?J8(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):J8(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var qg="TOGGLE_ORIGINAL_IMAGE_DISPLAY",Qj=function(t,e){return t7(t7({},t),{},{isShowOriginalImage:e.isShow})};function e7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function n7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?e7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):e7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Pp="SELECT_TOOL",Jj=function(t,e){return t.toolId===e.toolId?t:n7(n7({},t),{},{toolId:e.toolId,selectionsIds:e.keepSelections?t.selectionsIds:[]})};function r7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function zf(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?r7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var F3="TOGGLE_FLIP",tB=function(t,e){var n="isFlipped".concat(e.direction===mm.X?"X":"Y");return zf(zf({},t),{},{isDesignState:!e.dismissHistory,adjustments:zf(zf({},t.adjustments),{},V({},n,!t.adjustments[n]))})};function a7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ju(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?a7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var D3="SET_CROP",eB=function(t,e){var n,r,s,o,c,d,f,g=(n=t.adjustments.crop)!==null&&n!==void 0?n:{},v={x:(r=Xn(e.x))!==null&&r!==void 0?r:g.x,y:(s=Xn(e.y))!==null&&s!==void 0?s:g.y,ratio:typeof e.ratio=="string"?e.ratio:(o=Xn(e.ratio))!==null&&o!==void 0?o:g.ratio,width:(c=Xn(e.width))!==null&&c!==void 0?c:g.width,height:(d=Xn(e.height))!==null&&d!==void 0?d:g.height,ratioTitleKey:(f=e.ratioTitleKey)!==null&&f!==void 0?f:g.ratioTitleKey,ratioGroupKey:e.ratioGroupKey,ratioFolderKey:e.ratioFolderKey,noEffect:e.noEffect};return Ju(Ju({},t),{},{isDesignState:!e.dismissHistory,adjustments:Ju(Ju({},t.adjustments),{},{crop:Ju(Ju({},g),v)})})};function i7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Gf(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?i7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var ex="CHANGE_ROTATION",nB=function(t,e){return t.adjustments.rotation===e.rotation?t:Gf(Gf({},t),{},{isDesignState:!e.dismissHistory,adjustments:Gf(Gf({},t.adjustments),{},{rotation:e.rotation})})};function o7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function s7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?o7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var rB=function(t,e,n,r){if(t.factor===oo)return{x:0,y:0,factor:oo};var s=t.factor>e.factor,o={x:(t.x-e.x||0)/e.factor,y:(t.y-e.y||0)/e.factor},c={x:t.x-o.x*t.factor,y:t.y-o.y*t.factor};if(s&&e.factor===1||(c.x=Math.min(0,Math.max(c.x,n*(1-e.factor))),c.y=Math.min(0,Math.max(c.y,r*(1-e.factor)))),1>t.factor){var d=n-n*t.factor,f=r-r*t.factor;c.x+=d/2,c.y+=f/2}return s7(s7({},c),{},{factor:t.factor})},aB=["preparedDimensions"];function l7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function td(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?l7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Ed="ZOOM_CANVAS",iB=.03,oB=60,sB=function(t,e){var n,r=Sr(parseFloat(e.factor).toFixed(2),iB,oB);if(e.preparedDimensions){e.preparedDimensions;var s=Tt(e,aB);n=s}else{var o,c,d={x:e.x||e.x===0?(o=e.x)!==null&&o!==void 0?o:t.zoom.x:t.canvasWidth/2,y:e.y||e.y===0?(c=e.y)!==null&&c!==void 0?c:t.zoom.y:t.canvasHeight/2};n=rB(td(td({},d),{},{factor:r}),e.isAbsoluteZoom?{factor:oo,x:null,y:null}:t.zoom,t.canvasWidth,t.canvasHeight)}return n.factor===t.zoom.factor&&n.x===t.zoom.x&&n.y===t.zoom.y?t:td(td({},t),{},{zoom:td(td({},t.zoom),n)})};function c7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function u7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?c7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var nx="SET_CANVAS_SIZE",lB=function(t,e){if(t.canvasWidth===e.canvasWidth&&t.canvasHeight===e.canvasHeight)return t;var n=t.initialCanvasWidth,r=n===void 0?e.canvasWidth:n,s=t.initialCanvasHeight,o=s===void 0?e.canvasHeight:s,c=_g(t.initialCanvasWidth,t.initialCanvasHeight,t.originalImage.width,t.originalImage.height),d=c*t.originalImage.width,f=c*t.originalImage.height,g=1;if(r!==e.canvasWidth||o!==e.canvasHeight){var v=e.canvasWidth/d,x=e.canvasHeight/f;g=Math.min(v,x)}return u7(u7({},t),{},{initialCanvasWidth:r,initialCanvasHeight:o,canvasWidth:e.canvasWidth,canvasHeight:e.canvasHeight,canvasScale:g})};function d7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function h7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?d7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var rx="SET_ORIGINAL_IMAGE",cB=function(t,e){return h7(h7({},t),{},{feedback:{},originalImage:e.originalImage,imgSrc:e.originalImage.src})};function f7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Uf(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?f7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var ax="SET_SHOWN_IMAGE_DIMENSIONS",uB=function(t,e){return Uf(Uf({},t),{},{shownImageDimensions:Uf(Uf({},t.shownImageDimensions),e.shownImageDimensions),designLayer:e.designLayer||t.designLayer,previewGroup:e.previewGroup||t.previewGroup})};function p7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function g7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?p7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var ix="REMOVE_ANNOTATIONS",dB=function(t,e){var n=t.annotations,r=t.selectionsIds;return e.annotationsIds.forEach(function(s){if(r=r.filter(function(c){return c!==s}),t.designLayer&&n[s]){var o=t.designLayer.findOne("#".concat(s));o&&o.destroy(),delete n[s]}}),g7(g7({},t),{},{isDesignState:e.isDesignState||!0,annotations:n,selectionsIds:[]})};function m7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ed(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?m7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):m7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var ox="DUPLICATE_ANNOTATIONS",hB=function(t,e){var n=t.annotations,r={};return e.annotationsIds.forEach(function(s){var o=n[s];if(o){var c=jp(o.name);r[c]=ed(ed({},o),{},{id:c,x:o.x+20,y:o.y+20})}}),ed(ed({},t),{},{isDesignState:!e.dismissHistory,annotations:ed(ed({},n),r)})};function v7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function y7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?v7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var j3="ENABLE_TEXT_CONTENT_EDIT",fB=function(t,e){return y7(y7({},t),{},{textIdOfEditableContent:e.textIdOfEditableContent||null})};function b7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function s1(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?b7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):b7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var dd="SET_RESIZE",pB=function(t,e){var n;return s1(s1({},t),{},{isDesignState:!e.dismissHistory,resize:s1(s1(s1({},t.resize),e),{},{manualChangeDisabled:!((n=e.manualChangeDisabled)===null||n===void 0)&&n})})};function w7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function x7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?w7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):w7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var sx="SET_SAVED",gB=function(t){return t.haveNotSavedChanges?x7(x7({},t),{},{haveNotSavedChanges:!1}):t};function C7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function mB(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?C7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):C7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var T1=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=2<arguments.length&&arguments[2]!==void 0&&arguments[2],r=mB({},t),s=Object.keys(e);return s.forEach(function(o){var c=e[o];if(c!==void 0){var d=Pa(c);if(d!=="object"||c instanceof HTMLElement||c===null||Array.isArray(c)||!t[o]||Pa(t[o])!=="object")return void(r[o]=n&&Array.isArray(r[o])&&Array.isArray(c)?[].concat(Hn(r[o]),Hn(c)):c);r[o]=T1(t[o],c)}}),r},up="UPDATE_STATE",vB=function(t,e){var n=e&&typeof e=="function"?e(t):e;return n?T1(t,n):t};function S7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Wf(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?S7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):S7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var lx="SET_LATEST_COLOR",yB=function(t,e){return Wf(Wf({},t),{},{latestColors:Wf(Wf({},t.latestColors),e.latestColors)})};function _7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function E7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?_7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var cx="SET_SHOWN_TABS_MENU",bB=function(t,e){return E7(E7({},t),{},{showTabsMenu:e.opened})},Vf;const O7=(Vf={},V(V(V(V(V(V(V(V(V(V(Vf,rx,cB),Pl,rP),u3,aP),Np,AE),S1,$j),_d,Xj),R3,qj),qg,Qj),Jw,Wj),Pp,Jj),V(V(V(V(V(V(V(V(V(V(Vf,Ed,sB),nx,lB),ax,uB),j3,fB),lx,yB),cx,bB),nb,TE),tx,Yj),Hc,Kj),D3,eB),V(V(V(V(V(V(V(V(V(V(Vf,ex,nB),F3,tB),dd,pB),ix,dB),ox,hB),N3,Vj),c3,eP),Dp,nP),sx,gB),up,vB));var wB=.05,xB=12,CB=function(){return 2*(window?Math.min(window.innerHeight,window.innerWidth)*wB:xB)},k7=function(t,e){var n=t.x,r=t.y,s=e*Math.PI/180,o=Math.cos(s),c=Math.sin(s);return{x:n*o-r*c,y:r*o+n*c}},SB=function(t,e,n){if(!t||!e||!n&&n!==0)return{x:0,y:0,rotation:n};var r={x:-t/2,y:-e/2},s=k7(r,0),o=k7(r,n),c=o.x-s.x,d=o.y-s.y;return{x:c,y:d,rotation:n}},Kc={definitions:{id:et.string.isRequired,name:et.string.isRequired,rotation:et.number,scaleX:et.number,scaleY:et.number,stroke:et.string,strokeWidth:et.number,shadowOffsetX:et.number,shadowOffsetY:et.number,shadowBlur:et.number,shadowColor:et.string,shadowOpacity:et.number,opacity:et.number},defaults:{rotation:0,scaleX:1,scaleY:1,stroke:void 0,strokeWidth:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,shadowBlur:void 0,shadowColor:void 0,shadowOpacity:void 0,opacity:1}},_B=["id","name","fill","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity","cornerRadius"];function P7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function M7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?P7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):P7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var ux=function(t){var e=t.id,n=t.name,r=t.fill,s=t.x,o=t.y,c=t.width,d=t.height,f=t.scaleX,g=t.scaleY,v=t.rotation,x=t.annotationEvents,C=t.stroke,y=t.strokeWidth,h=t.shadowOffsetX,w=t.shadowOffsetY,E=t.shadowBlur,M=t.shadowColor,b=t.shadowOpacity,m=t.opacity,_=t.cornerRadius,k=Tt(t,_B);return L.createElement(Y9,Et({id:e,name:n,rotation:v,scaleX:f,scaleY:g,stroke:C,strokeWidth:y,shadowOffsetX:h,shadowOffsetY:w,shadowBlur:E,shadowColor:M,shadowOpacity:b,fill:r,x:s,y:o,width:c,height:d,opacity:m,cornerRadius:_},x,k))};ux.defaultProps=M7(M7({},Kc.defaults),{},{fill:"#000",cornerRadius:0,width:0,height:0});var EB=["id","name","fill","x","y","radiusX","radiusY","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function L7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function T7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?L7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):L7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var dx=function(t){var e=t.id,n=t.name,r=t.fill,s=t.x,o=t.y,c=t.radiusX,d=t.radiusY,f=t.scaleX,g=t.scaleY,v=t.rotation,x=t.annotationEvents,C=t.stroke,y=t.strokeWidth,h=t.shadowOffsetX,w=t.shadowOffsetY,E=t.shadowBlur,M=t.shadowColor,b=t.shadowOpacity,m=t.opacity,_=Tt(t,EB);return L.createElement(Z9,Et({id:e,name:n,rotation:v,scaleX:f,scaleY:g,stroke:C,strokeWidth:y,shadowOffsetX:h,shadowOffsetY:w,shadowBlur:E,shadowColor:M,shadowOpacity:b,fill:r,x:s,y:o,radiusX:c,radiusY:d,offsetX:-c,offsetY:-d,opacity:m},x,_))};dx.defaultProps=T7(T7({},Kc.defaults),{},{fill:"#000",radiusX:0,radiusY:0});var OB=["id","name","fill","x","y","radius","scaleX","scaleY","rotation","sides","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function A7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function I7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?A7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):A7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var hx=function(t){var e=t.id,n=t.name,r=t.fill,s=t.x,o=t.y,c=t.radius,d=t.scaleX,f=t.scaleY,g=t.rotation,v=t.sides,x=t.annotationEvents,C=t.stroke,y=t.strokeWidth,h=t.shadowOffsetX,w=t.shadowOffsetY,E=t.shadowBlur,M=t.shadowColor,b=t.shadowOpacity,m=t.opacity,_=Tt(t,OB);return L.createElement(_E,Et({id:e,name:n,rotation:g,scaleX:d,scaleY:f,stroke:C,strokeWidth:y,shadowOffsetX:h,shadowOffsetY:w,shadowBlur:E,shadowColor:M,shadowOpacity:b,fill:r,x:s,y:o,radius:c,offsetX:-c,offsetY:-c,sides:v,opacity:m},x,_))};hx.defaultProps=I7(I7({},Kc.defaults),{},{fill:"#000",sides:3});var kB=["id","name","text","fontFamily","fontSize","fontStyle","fill","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity","letterSpacing","lineHeight","align"];function N7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function R7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?N7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):N7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var B3=function(t){var e=t.id,n=t.name,r=t.text,s=t.fontFamily,o=t.fontSize,c=t.fontStyle,d=t.fill,f=t.x,g=t.y,v=t.width,x=t.height,C=t.scaleX,y=t.scaleY,h=t.rotation,w=t.annotationEvents,E=t.stroke,M=t.strokeWidth,b=t.shadowOffsetX,m=t.shadowOffsetY,_=t.shadowBlur,k=t.shadowColor,R=t.shadowOpacity,G=t.opacity,T=t.letterSpacing,D=t.lineHeight,A=t.align,B=Tt(t,kB);return L.createElement(SE,Et({id:e,name:n,rotation:h,scaleX:C,scaleY:y,stroke:E,strokeWidth:M,shadowOffsetX:b,shadowOffsetY:m,shadowBlur:_,shadowColor:k,shadowOpacity:R,opacity:G,fill:d,text:r,fontFamily:s,fontStyle:c,fontSize:o,letterSpacing:T,lineHeight:D,align:A,x:f,y:g,width:v,height:x},w,B))};B3.defaultProps=R7(R7({},Kc.defaults),{},{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur imperdiet tortor quis odio facilisis, id aliquet nulla facilisis. Etiam tincidunt tempor odio nec placerat.",fontFamily:"Arial",fontSize:14,fill:"#000",width:0,height:0,letterSpacing:void 0,lineHeight:void 0,align:"left"});var PB=function(t){var e=t.split("/");return e[e.length-1].split("?")[0]},fx=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0&&arguments[2];return new Promise(function(r,s){var o=new Image;n||(o.crossOrigin="Anonymous"),o.src=t,o.name=e??PB(t),o.onload=function(){r(o)},o.onerror=function(){s(new Error("Error in loading the image with the provided url: ".concat(t)))}})},MB=["id","name","image","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function F7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function D7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?F7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):F7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var px=function(t){var e=t.id,n=t.name,r=t.image,s=t.x,o=t.y,c=t.width,d=t.height,f=t.scaleX,g=t.scaleY,v=t.rotation,x=t.annotationEvents,C=t.stroke,y=t.strokeWidth,h=t.shadowOffsetX,w=t.shadowOffsetY,E=t.shadowBlur,M=t.shadowColor,b=t.shadowOpacity,m=t.opacity,_=Tt(t,MB),k=ct.useState(null),R=Xt(k,2),G=R[0],T=R[1];ct.useEffect(function(){typeof r=="string"&&fx(r).then(T)},[r]);var D=r instanceof HTMLImageElement;if(!D&&!G)return null;var A=D?r:G;return L.createElement(Ip,Et({id:e,name:n,rotation:v,scaleX:f,scaleY:g,stroke:C,strokeWidth:y,shadowOffsetX:h,shadowOffsetY:w,shadowBlur:E,shadowColor:M,shadowOpacity:b,image:A,x:s,y:o,width:c,height:d,opacity:m},_,x,_))};px.defaultProps=D7(D7({},Kc.defaults),{},{width:0,height:0});var LB=["id","name","scaleX","scaleY","rotation","annotationEvents","points","lineCap","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","tension","opacity"];function j7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function B7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?j7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):j7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Qg=function(t){var e=t.id,n=t.name,r=t.scaleX,s=t.scaleY,o=t.rotation,c=t.annotationEvents,d=t.points,f=t.lineCap,g=t.stroke,v=t.strokeWidth,x=t.shadowOffsetX,C=t.shadowOffsetY,y=t.shadowBlur,h=t.shadowColor,w=t.shadowOpacity,E=t.tension,M=t.opacity,b=Tt(t,LB);return L.createElement(CE,Et({id:e,name:n,rotation:o,scaleX:r,scaleY:s,stroke:g,strokeWidth:v,shadowOffsetX:x,shadowOffsetY:C,shadowBlur:y,shadowColor:h,shadowOpacity:w,points:d,lineCap:f,tension:E,hitStrokeWidth:20,x:0,y:0,opacity:M},c,b))};Qg.defaultProps=B7(B7({},Kc.defaults),{},{stroke:"#000000",strokeWidth:1,lineCap:"butt",annotationEvents:{},tension:void 0});var TB=["id","name","fill","pointerLength","pointerWidth","scaleX","scaleY","rotation","annotationEvents","points","lineCap","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function H7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function z7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?H7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):H7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var gx=function(t){var e=t.id,n=t.name,r=t.fill,s=t.pointerLength,o=t.pointerWidth,c=t.scaleX,d=t.scaleY,f=t.rotation,g=t.annotationEvents,v=t.points,x=t.lineCap,C=t.stroke,y=t.strokeWidth,h=t.shadowOffsetX,w=t.shadowOffsetY,E=t.shadowBlur,M=t.shadowColor,b=t.shadowOpacity,m=t.opacity,_=Tt(t,TB);return L.createElement(EE,Et({id:e,name:n,rotation:f,scaleX:c,scaleY:d,stroke:C,strokeWidth:y,shadowOffsetX:h,shadowOffsetY:w,shadowBlur:E,shadowColor:M,shadowOpacity:b,fill:r,x:0,y:0,points:v,pointerLength:s,pointerWidth:o,lineCap:x,opacity:m},g,_))};gx.defaultProps=z7(z7({},Kc.defaults),{},{stroke:"#000000",strokeWidth:6,fill:void 0,lineCap:"butt",pointerLength:void 0,pointerWidth:void 0});var AB=V(V(V(V(V(V(V(V({},_t.RECT,ux),_t.ELLIPSE,dx),_t.POLYGON,hx),_t.TEXT,B3),_t.IMAGE,px),_t.LINE,Qg),_t.ARROW,gx),_t.PEN,Qg),IB=function(t){var e=t.annotation,n=t.annotationEvents,r=t.selectionsIds,s=AB[e.name];return s?L.createElement(s,Et({key:e.id,annotationEvents:n,draggable:r.includes(e.id)},e)):null};const NB=ct.memo(IB);var RB=function(){var t=ke(),e=t.annotations,n=e===void 0?{}:e,r=t.selectionsIds,s=r===void 0?[]:r,o=kP();return ct.useMemo(function(){return Object.values(n).map(function(c){return L.createElement(NB,{key:c.id,annotation:c,annotationEvents:o,selectionsIds:s})})},[n,o,s])},FB=function(t,e){return L.createElement(xE,Et({ref:e},t))};const DB=ct.forwardRef(FB);function G7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function dg(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?G7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):G7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var jB=CB(),BB=10,HB=function(){var t,e,n,r,s=ct.useRef(),o=ke(),c=o.initialCanvasWidth,d=o.initialCanvasHeight,f=o.canvasWidth,g=o.canvasHeight,v=o.dispatch,x=o.toolId,C=o.canvasScale,y=o.originalImage,h=y===void 0?{}:y,w=o.finetunes,E=w===void 0?[]:w,M=o.finetunesProps,b=M===void 0?{}:M,m=o.filter,_=m===void 0?null:m,k=o.adjustments,R=k===void 0?{}:k,G=R.rotation,T=G===void 0?0:G,D=R.crop,A=D===void 0?{}:D,B=R.isFlippedX,Z=R.isFlippedY,S=o.resize,I=ct.useRef(),N=ct.useRef(),z=x===_t.CROP,W=ct.useMemo(function(){return _?[].concat(Hn(E),[_]):E},[E,_]),Q=ct.useMemo(function(){var Kt=Math.max(BB,h.width-jB),Yt=h.width/h.height;return{width:Kt,height:Kt/Yt}},[h]),tt=ct.useMemo(function(){return Ol(h.width,h.height,T)},[h,T]),at=ct.useMemo(function(){return _g(c,d,h.width,h.height)},[h,c,d]),X=ct.useMemo(function(){return{width:Q.width*at,height:Q.height*at}},[Q,at]),q=S.width&&!z?S.width/((t=(e=A.width)!==null&&e!==void 0?e:X.width)!==null&&t!==void 0?t:tt.width):1,rt=S.height&&!z?S.height/((n=(r=A.height)!==null&&r!==void 0?r:X.height)!==null&&n!==void 0?n:tt.height):1,ot=f/(2*C)-X.width*q/2,ft=g/(2*C)-X.height*rt/2,it=f/(2*C)-X.width/2,Y=g/(2*C)-X.height/2,J=ct.useMemo(function(){return{x:Math.round(ot),y:Math.round(ft),abstractX:Math.round(it),abstractY:Math.round(Y),width:X.width,height:X.height,scaledBy:C}},[C,ot,ft,it,Y,X]),lt=ct.useCallback(function(){I.current?I.current.cache():setTimeout(lt,0)},[]),dt=Ol(J.width,J.height,T),yt=z?1:_g(J.width,J.height,dt.width,dt.height);if(ct.useEffect(function(){return h&&lt(),function(){var Kt;(Kt=I.current)===null||Kt===void 0||Kt.clearCache()}},[h]),ct.useEffect(function(){J&&v({type:ax,payload:{shownImageDimensions:J,designLayer:s.current,previewGroup:N.current}})},[J]),!ot||!ft||!J)return null;var gt=SB(A.x,A.y,T),Dt=ot+(!z&&A.width?(B?-1:1)*(J.width/2-A.x-A.width/2+gt.x)*q:0),Ht=ft+(!z&&A.height?(Z?-1:1)*(J.height/2-A.y-A.height/2+gt.y)*rt:0),It=z?it:Dt,qt=z?Y:Ht,Bt=(B?-1:1)*(z?1:q)*yt,ee=(Z?-1:1)*(z?1:rt)*yt;return L.createElement(gm,{id:kE,ref:s,xPadding:It,yPadding:qt,offsetX:X.width/2,offsetY:X.height/2,x:X.width*q/2+It,y:X.height*rt/2+qt,scaleX:Bt,scaleY:ee,rotation:z?0:T,clipFunc:function(Kt){var Yt,oe=z&&!((Yt=s.current)!==null&&Yt!==void 0&&(Yt=Yt.attrs)!==null&&Yt!==void 0&&Yt.isSaving),ne=oe||A.noEffect?dg(dg({},J),{},{x:0,y:0}):{width:A.width||J.width,height:A.height||J.height,x:A.x||0,y:A.y||0};LE(Kt,dg({ratio:A.ratio},ne),oe),s.current&&s.current.setAttrs({clipX:ne.x,clipY:ne.y,clipWidth:ne.width,clipHeight:ne.height})}},L.createElement(Ip,Et({id:q9,image:h,width:X.width,height:X.height,offsetX:X.width/2,offsetY:X.height/2,x:X.width/2,y:X.height/2,listening:!1,filters:W,ref:I},b)),L.createElement(RB,null),L.createElement(DB,{ref:N}))},zB=function(t,e){return Xn(t)===Xn(e)};function U7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function GB(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?U7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):U7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var UB=function(t,e){var n=e.width-(2*t.radiusX||t.width),r=e.height-(2*t.radiusY||t.height);return{x:Xn(Math.min(Math.max(t.x,0),n)),y:Xn(Math.min(Math.max(t.y,0),r))}},WB=function(t,e,n){var r=t.split("-"),s=Xt(r,2),o=s[0],c=s[1],d={x:0,y:0};return o==="center"?d.y=e.height/2-n.height/2:o==="bottom"&&(d.y=e.height-n.height),c==="center"?d.x=e.width/2-n.width/2:c==="right"&&(d.x=e.width-n.width),d},hg=function(t,e,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:{},o={x:Xn(n.abstractX*n.scaledBy),y:Xn(n.abstractY*n.scaledBy),width:Xn(n.width*n.scaledBy),height:Xn(n.height*n.scaledBy)},c=GB({},e);if(e.x<o.x&&(c.x=o.x,c.width=t.x-o.x+t.width),e.y<o.y&&(c.y=o.y,c.height=t.y-o.y+t.height),c.x+c.width>o.x+o.width&&(c.width=o.x+o.width-c.x),c.y+c.height>o.y+o.height&&(c.height=o.y+o.height-c.y),typeof r=="number"&&!zB(c.width/c.height,r)){var d=c.height*r,f=c.width/r;Xn(c.y+f)<=o.y+o.height?c.height=f:c.width=d}if((s.minWidth&&c.width<=s.minWidth||s.maxWidth&&c.width>=s.maxWidth)&&(c.width=Sr(c.width,s.minWidth,s.maxWidth),c.x=t.x,c.y=t.y,typeof r=="number"&&(c.height=c.width/r)),(s.minHeight&&e.height<=s.minHeight||s.maxHeight&&e.height>=s.maxHeight)&&(c.height=Sr(c.height,s.minHeight,s.maxHeight),c.x=t.x,c.y=t.y,typeof r=="number"&&(c.width=c.height*r)),typeof s.lockCropAreaAt=="string"){var g=WB(s.lockCropAreaAt,o,c),v=g.x,x=g.y;c.x=v,c.y=x}return c};function W7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function fi(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?W7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):W7(Object(e)).forEac
193h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var V7=!1,Yf={width:200,height:100},VB=function(){var t=ke(),e=t.dispatch,n=t.theme,r=t.designLayer,s=t.originalImage,o=t.shownImageDimensions,c=t.adjustments,d=c===void 0?{}:c,f=d.crop,g=f===void 0?{}:f,v=d.isFlippedX,x=d.isFlippedY,C=t.resize,y=C===void 0?{}:C,h=t.config,w=t.t,E=ct.useRef(),M=ct.useRef(),b=ct.useRef(),m=ct.useRef(),_=h[_t.CROP],k=ct.useMemo(function(){var it;return fi(fi({},_),{},{lockCropAreaAt:(it=g.lockCropAreaAt)!==null&&it!==void 0?it:_?.lockCropAreaAt})},[g.lockCropAreaAt,_]),R=k.lockCropAreaAt,G=g.ratio||k.ratio,T=G===tb,D=G===Yc,A=function(){return G===vm?s.width/s.height:G},B=function(it,Y){var J=it.width,lt=it.height,dt=it.x,yt=it.y,gt={x:v?o.width-dt-J:dt,y:x?o.height-yt-lt:yt,width:J,height:lt},Dt=g.width>=y.width&&g.height>=y.height;y.width&&y.height&&(J<y.width||lt<y.height)&&Dt&&e({type:Pl,payload:{feedback:{message:w("cropSizeLowerThanResizedWarning"),status:md.WARNING}}}),e({type:D3,payload:fi(fi(fi({},g),gt),{},{dismissHistory:Y})})},Z=function(it,Y){var J,lt;M.current&&E.current&&M.current.nodes([E.current]);var dt=m.current,yt={width:it,height:Y,x:(J=g.x)!==null&&J!==void 0?J:0,y:(lt=g.y)!==null&&lt!==void 0?lt:0};B(hg(yt,yt,fi(fi({},dt),{},{abstractX:0,abstractY:0}),!(T||D)&&A(),k),!0)};if(ct.useEffect(function(){return r&&M.current&&E.current&&(b.current&&b.current.cache(),M.current.nodes([E.current])),function(){b.current&&b.current.clearCache()}},[r,s,o]),ct.useEffect(function(){if(m.current){var it,Y,J=m.current;Z((it=g.width)!==null&&it!==void 0?it:J.width,(Y=g.height)!==null&&Y!==void 0?Y:J.height)}},[G]),ct.useEffect(function(){M.current&&E.current&&m.current&&g.width&&g.height&&Z(g.width,g.height)},[k,o.width,o.height]),ct.useEffect(function(){if(o&&(m.current=o,!V7&&G&&o.x&&o.width)){var it,Y;Z((it=g.width)!==null&&it!==void 0?it:o.width,(Y=g.height)!==null&&Y!==void 0?Y:o.height),V7=!0}},[o]),!r)return null;var S,I=(R||g.noEffect)&&[]||(T||D?void 0:["top-left","bottom-left","top-right","bottom-right"]),N=function(it){var Y=1<arguments.length&&arguments[1]!==void 0&&arguments[1];it.target&&B({width:it.target.width()*it.target.scaleX(),height:it.target.height()*it.target.scaleY(),x:it.target.x(),y:it.target.y()},Y)};if(!g.width&&!g.height){var z=1>o.scaledBy?o.scaledBy:1,W=fi(fi({},o),{},{width:o.width/z,height:o.height/z});S=hg(W,fi(fi({},W),{},{x:0,y:0}),fi(fi({},W),{},{abstractX:0,abstractY:0}),!(T||D)&&A(),k)}else S=g;var Q=S,tt=Q.x,at=tt===void 0?0:tt,X=Q.y,q=X===void 0?0:X,rt=Q.width,ot=Q.height,ft={x:v?o.width-at-rt:at,y:x?o.height-q-ot:q,ref:E,fill:"#FFFFFF",scaleX:1,scaleY:1,globalCompositeOperation:"destination-out",onDragEnd:R?void 0:N,onDragMove:R?void 0:function(it){var Y=it.target;Y.setAttrs(UB(Y.attrs,m.current))},onTransformEnd:R?void 0:N,draggable:!R};return L.createElement(L.Fragment,null,L.createElement(Ip,{image:s,x:v?o.width:0,y:x?o.height:0,width:o.width,height:o.height,filters:[$n.Filters.Blur,$n.Filters.Brighten],blurRadius:10,brightness:-.3,scaleX:v?-1:1,scaleY:x?-1:1,ref:b}),D?L.createElement(Z9,Et({},ft,{radiusX:rt/2,radiusY:ot/2,offset:{x:-rt/2,y:-ot/2}})):L.createElement(Y9,Et({},ft,{width:g.noEffect?0:rt,height:g.noEffect?0:ot})),g.noEffect&&L.createElement(B3,{name:"Text",id:"no-preview-text-node",text:w("cropItemNoEffect"),x:o.width/2-Yf.width/2,y:o.height/2-Yf.height/2,fontSize:20,fill:"#ffffff",stroke:"#ff0000",strokeWidth:.2,shadowColor:"#ff0000",shadowBlur:10,annotationEvents:{},align:"center",width:Yf.width,height:Yf.height}),L.createElement(K9,{centeredScaling:!1,flipEnabled:!1,rotateEnabled:!1,nodes:E.current?[E.current]:[],anchorSize:14,anchorCornerRadius:7,enabledAnchors:I,ignoreStroke:!1,anchorStroke:n.palette["accent-primary"],anchorFill:n.palette["access-primary"],anchorStrokeWidth:2,borderStroke:n.palette["accent-primary"],borderStrokeWidth:2,borderDash:[4],keepRatio:!T||!D,ref:M,boundBoxFunc:function(it,Y){return hg(it,Y,m.current,!(T||D)&&A(),k)}}))},YB=function(){var t,e=ke(),n=e.selectionsIds,r=n===void 0?[]:n,s=e.theme,o=e.designLayer,c=e.dispatch,d=e.config.useCloudimage,f=ct.useMemo(function(){return o!=null&&o.findOne?r.map(function(x){return o.findOne("#".concat(x))}
193).filter(Boolean):[]},[r]),g=function(){f.length===1&&f[0].name()===_t.TEXT&&c({type:j3,payload:{textIdOfEditableContent:f[0].id()}})},v=d?["top-left","bottom-left","top-right","bottom-right"]:void 0;return L.createElement(K9,{id:Q9,centeredScaling:!1,rotationSnaps:[0,45,90,135,180,225,270,315],nodes:f,rotateAnchorOffset:30,anchorSize:14,anchorCornerRadius:7,padding:f.length===1&&(t=f[0].attrs.padding)!==null&&t!==void 0?t:1,ignoreStroke:!1,anchorStroke:s.palette["accent-primary"],anchorFill:s.palette["access-primary"],anchorStrokeWidth:2,borderStroke:s.palette["accent-primary"],borderStrokeWidth:2,borderDash:[4],rotateEnabled:!d,onMouseOver:function(){c({type:S1,payload:{pointerCssIcon:Os.MOVE}})},onMouseLeave:function(){c({type:S1,payload:{pointerCssIcon:Os.DRAW}})},onDblClick:g,onDblTap:g,enabledAnchors:v,flipEnabled:!d,shouldOverdrawWholeArea:!0})},ZB=function(){var t=ke(),e=t.toolId,n=t.shownImageDimensions;return L.createElement(gm,{id:X9,x:n.abstractX||0,y:n.abstractY||0},L.createElement(YB,null),e===_t.CROP&&L.createElement(VB,null))},KB=mt.div.withConfig({componentId:"sc-1tst9ex-0"})(function(t){var e=t.theme,n=t.top,r=t.left;return`
194  position: absolute;
195  z-index: 1;
196  background: `.concat(e.palette["bg-secondary"],`;
197  border-radius: 2px;
198  display: flex;
199  align-items: center;
200  justify-content: center;
201  box-shadow: 0px 1px 2px `).concat(e.palette["light-shadow"],`;
202  top: `).concat((n||0)+8,`px;
203  left: `).concat((r||0)+4,`px;
204  transform: translateX(-50%);
205  height: 32px;
206`)}),$B=function(){var t=ke(),e=t.selectionsIds,n=e===void 0?[]:e,r=t.designLayer,s=t.annotations,o=t.dispatch,c=ct.useState({left:0,top:0}),d=Xt(c,2),f=d[0],g=d[1],v=ct.useMemo(function(){var y;return r==null||(y=r.getStage())===null||y===void 0?void 0:y.findOne("#".concat(Q9))},[r]),x=n.length,C=Bp(function(){v&&g({left:(v.x()+v.width()/2)*v.scaleX(),top:(v.y()+v.height())*v.scaleY()})},0);return ct.useEffect(function(){C()},[n,v,s]),x===0||!v?null:L.createElement(KB,{className:"FIE_annotation-controls-overlay",left:f.left,top:f.top},n[0]!==El&&L.createElement(Wo,{color:"basic",size:"sm",onClick:function(){o({type:ox,payload:{annotationsIds:n}})}},L.createElement(JI,null)),L.createElement(Wo,{color:"basic",size:"sm",onClick:function(){o({type:ix,payload:{annotationsIds:n}})}},L.createElement(hw,null)))};function Y7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Z7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Y7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Y7(Object(e)).forEac
206h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}function XB(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function K7(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}var ad=null,u1=0,qB=function(t,e){t.evt.preventDefault();var n=t.evt.touches[0],r=t.evt.touches[1];if(n&&r){var s=t.currentTarget;s.isDragging()&&s.stopDrag();var o={x:n.clientX,y:n.clientY},c={x:r.clientX,y:r.clientY};if(!ad)return void(ad=K7(o,c));var d=K7(o,c),f=XB(o,c);u1||(u1=f);var g=s.attrs.zoomFactor||oo,v={x:(d.x-s.x())/g,y:(d.y-s.y())/g},x=(g||oo)*(f/u1),C=d.x-ad.x,y=d.y-ad.y,h={x:d.x-v.x*x+C,y:d.y-v.y*x+y};u1=f,ad=d,e(Z7(Z7({},h),{},{factor:x,preparedDimensions:!0}))}},QB=function(t){u1=0,ad=null,typeof t=="function"&&t()},JB=mt.div.withConfig({componentId:"sc-3ln9py-0"})(["width:100%;position:relative;height:calc(100% - 112px - 16px);overflow:hidden;min-height:250px;padding:16px;flex-grow:1;"]),tH=mt.img.withConfig({componentId:"sc-3ln9py-1"})(["max-width:98%;max-height:98%;box-shadow:0 0 0 5px rgba(0,0,0,0.1);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;"]),eH=mt($9).withConfig({componentId:"sc-3ln9py-2"})(["outline:none;background:",";"],function(t){var e=t.theme;return e.palette["bg-hover"]});function $7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function X7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?$7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$7(Object(e)).forEac
206h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var nH=function(t){var e=t.children;OE(!0);var n=ct.useRef(),r=ke(),s=r.dispatch,o=r.pointerCssIcon,c=r.tabId,d=r.toolId,f=r.canvasWidth,g=r.canvasHeight,v=r.canvasScale,x=r.selectionsIds,C=x===void 0?[]:x,y=r.zoom,h=y===void 0?{}:y,w=r.config,E=w.previewPixelRatio,M=w.disableZooming;$n.pixelRatio=E;var b=oo,m=!M&&d!==_t.CROP,_=ct.useState(c!==Mn.ANNOTATE&&c!==Mn.WATERMARK&&h.factor>b),k=Xt(_,2),R=k[0],G=k[1],T=ct.useMemo(function(){return{cursor:o===Os.DEFAULT&&c===Mn.ANNOTATE?Os.DRAW:o}},[c,o]),D=function(z){s({type:Ed,payload:z})},A=ct.useCallback(function(z){var W,Q;z.evt.preventDefault(),(W=(Q=z.currentTarget).container)===null||W===void 0||W.call(Q).focus(),z.target instanceof $n.Stage&&0<C.length&&s({type:R3})},[C]),B=function(){return G(c!==Mn.ANNOTATE||c===Mn.WATERMARK)},Z=function(z){(z.code==="Space"||z.key==="Control")&&!z.repeat&&h.factor>b&&m&&(z.preventDefault(),G(!0),s({type:S1,payload:{pointerCssIcon:Os.DRAG}}))},S=function(z){z.code==="Space"&&(z.preventDefault(),B())},I=function(){n.current&&n.current.container().focus()};ct.useEffect(function(){s({type:S1,payload:{pointerCssIcon:Os[R?"DRAG":"DEFAULT"]}})},[R]),ct.useEffect(function(){G(c!==Mn.ANNOTATE&&c!==Mn.WATERMARK&&h.factor>b);var z;return n.current&&(z=n.current.container(),z.addEventListener("mouseenter",I),z.addEventListener("keydown",Z),z.addEventListener("keyup",S)),function(){z&&(z.removeEventListener("mouseenter",I),z.removeEventListener("keydown",Z),z.removeEventListener("keyup",S))}},[c,h.factor,b]);var N=v*(m&&h.factor||b);return L.createElement(eH,{className:"FIE_canvas-node",tabIndex:-1,ref:n,width:f,height:g,scaleX:N,scaleY:N,x:m&&h.x||null,y:m&&h.y||null,zoomFactor:m&&h.factor||b,onWheel:m?function(z){z.evt.preventDefault();var W=(h.factor||b)+z.evt.deltaY*-.006,Q=z.currentTarget.getPointerPosition();D(X7(X7({},Q),{},{factor:W}))}:void 0,onTap:A,onClick:A,onTouchMove:m?function(z){return qB(z,D)}:void 0,onDragStart:function(z){var W;1<((W=z.evt.touches)===null||W===void 0?void 0:W.length)&&G(!1)},onTouchEnd:m?function(){QB(B)}:void 0,dragBoundFunc:function(z){var W=Math.min(0,Math.max(z.x,f*(1-h.factor))),Q=Math.min(0,Math.max(z.y,g*(1-h.factor)));return{x:W,y:Q}},draggable:m&&R,onDragEnd:function(z){z.currentTarget.draggable()&&z.target.nodeType.toLowerCase()==="stage"&&m&&R&&D({factor:h.factor,x:z.target.x(),y:z.target.y(),preparedDimensions:!0})},style:T},e)};const rH=ct.memo(nH);var aH=function(){var t=f3(),e=Xt(t,1),n=e[0],r=ke(),s=ct.useRef(null),o=ct.useCallback(function(c){var d=c.width,f=c.height;r.dispatch({type:nx,payload:{canvasWidth:d,canvasHeight:f}})},[]);return ct.useEffect(function(){n(s.current,o)},[]),L.createElement(JB,{className:"FIE_canvas-container",ref:s},!r.textIdOfEditableContent&&L.createElement($B,null),r.isShowOriginalImage&&L.createElement(tH,{className:"FIE_original-image-compare",src:r.originalImage.src}),L.createElement(rH,null,L.createElement(fP,{overridingValue:r},L.createElement(HB,null),L.createElement(ZB,null))))},iH=mt.div.withConfig({componentId:"sc-etsyb6-0"})(["display:inline-block;height:",";width:",";border-radius:1px;background:",";"],function(t){return t.height},function(t){return t.width},function(t){var e=t.theme.palette;return e[$.BordersSecondary]}),H3=function(t){var e=t.height,n=t.width;return L.createElement(iH,{height:e,width:n})};H3.defaultProps={height:"24px",width:"1px"};var oH=mt.div.withConfig({componentId:"sc-21g986-0"})(["padding:16px;box-sizing:border-box;position:relative;width:100%;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid ",";[data-phone='true'] &{padding:6px 6px 4px 6px;","}"],function(t){var e=t.theme.palette;return e[$.BordersSecondary]},function(t){var e=t.isPhoneScreen;return e&&`
207      padding: 12px 12px 0px;
208      gap: 12px;
209    `}),sH=mt.div.withConfig({componentId:"sc-21g986-1"})(["display:flex;align-items:center;order:1;"]),lH=mt.div.withConfig({componentId:"sc-21g986-2"})(["display:flex;align-items:center;order:3;gap:4px;"]),z3=mt(Wo).withConfig({componentId:"sc-21g986-3"})(["margin:",";svg{color:",";}"],function(t){var e=t.margin;return e??"0 4px"},function(t){var e=t.theme.palette,n=t.disabled;return n?e[$.IconsMuted]:e[$.IconsPrimary]}),cH=mt.div.withConfig({componentId:"sc-21g986-4"})(["display:flex;align-items:center;gap:2px;"]),uH=mt(Ln).withConfig({componentId:"sc-21g986-5"})(["flex-shrink:0;color:",";",";"],function(t){var e=t.theme.palette;return e[$.TextPlaceholder]},function(t){var e=t.theme.typography;return e.font[Vt.LabelMedium]}),Jg=mt(Wo).withConfig({componentId:"sc-21g986-6"})(["padding:8px;svg{color:",";}"],function(t){var e=t.theme.palette,n=t.showBackButton;return n?e[$.IconsPrimary]:e[$.IconsMuted]}),dH=mt.div.withConfig({componentId:"sc-21g986-7"})(["width:",";height:32px;display:block;width:100%;order:4;",";@media (min-width:761px){display:flex;align-items:center;justify-content:center;width:fit-content;order:2;}"],function(t){var e=t.showBackButton;return e?"318px":"384px"},function(t){var e=t.reverseDirection;return e?"flex-direction: row-reverse":""}),hH=mt(Ln).withConfig({componentId:"sc-21g986-8"})(["cursor:pointer;color:",";",";"],function(t){var e=t.theme.palette;return e[$.TextPrimary]},function(t){var e=t.theme.typography;return e.font[Vt.InputMd]}),fH=mt.span.withConfig({componentId:"sc-21g986-9"})(["",";"],function(t){var e=t.theme.typography;return e.font[Vt.ButtonMdEmphasis]}),pH=mt(Sd).withConfig({componentId:"sc-21g986-10"})(["padding:8px;z-index:111;"]);mt(gi).withConfig({componentId:"sc-21g986-11"})(["padding:4px 12px;"]);var gH=mt(Sp).withConfig({componentId:"sc-21g986-12"})([""]),mH=mt(P3).withConfig({componentId:"sc-21g986-13"})(["margin-top:16px;"]),vH=mt.div.withConfig({componentId:"sc-21g986-14"})(["width:100%;margin-top:16px;"]),yH=mt.div.withConfig({componentId:"sc-21g986-15"})(["margin-top:16px;width:100%;"]),bH=mt(Ln).withConfig({componentId:"sc-21g986-16"})(["margin-bottom:4px;"]),wH=mt.div.withConfig({componentId:"sc-21g986-17"})(["display:flex;gap:6px;"]),xH=mt.div.withConfig({componentId:"sc-21g986-18"})(["display:flex;gap:12px;justify-content:",";"],function(t){var e=t.isPhoneScreen;return e?"space-between":"center"}),CH=mt(Wo).withConfig({componentId:"sc-21g986-19"})(["@media (min-width:761px){display:none;}"]),SH=mt.div.withConfig({componentId:"sc-21g986-20"})(["display:flex;gap:12px;align-items:center;"]),_H=mt($p).withConfig({componentId:"sc-kpjpf5-0"})(["width:",";max-width:unset;"],function(t){var e=t.width;return e||"300px"}),EH=mt(v1).withConfig({componentId:"sc-kpjpf5-1"})(function(t){var e=t.theme,n=t.isWarning;return pt(["padding-bottom:0;.SfxModalTitle-Icon{background-color:",";}.SfxModalTitle-LabelPrimary{margin-bottom:24px;",";}.SfxModalTitle-LabelSecondary{",";text-align:center;}"],n&&e.palette[$.Orange_0_1_Overlay],e.typography.font[Vt.TitleH3],e.typography.font[Vt.TextLarge])}),OH=mt(g1).withConfig({componentId:"sc-kpjpf5-2"})(["gap:12px;padding:24px;.SfxButton-root{flex:1;margin:0;height:40px;}"]),G3=function(t){var e=t.title,n=t.hint,r=t.Icon,s=t.onDone,o=t.onCancel,c=t.doneLabel,d=t.cancelLabel,f=t.isOpened,g=t.doneButtonStyle,v=t.doneButtonColor,x=v===void 0?"basic":v,C=t.cancelButtonColor,y=C===void 0?"basic":C,h=t.children,w=t.areButtonsDisabled,E=t.zIndex,M=t.className,b=t.width,m=t.isWarning;return L.createElement(_H,{className:M,open:f,onClose:o,style:{zIndex:E},onKeyUp:function(_){_.key==="Enter"&&s(_)},width:b},L.createElement(EH,{icon:L.createElement(r,{size:25}),iconShadow:!0,isWarning:m,onClose:o,primary:e,secondary:n,variant:"with-icon"}),h&&L.createElement(m1,null,h),L.createElement(OH,{align:"center"},L.createElement(gi,{color:y,onClick:o,size:"md",disabled:w},d),L.createElement(gi,{color:x,onClick:s,size:"md",warning:m,style:g,disabled:w},c)))};G3.defaultProps={hint:"",isOpened:!1,doneLabel:"Yes",cancelLabel:"No",doneButtonStyle:void 0,doneButtonColor:"basic",cancelButtonColor:"basic",children:void 0,areButtonsDisabled:!1,zIndex:void 0,className:void 0,width:"",isWarning:!1};var Jp=function(t){var e=t.children,n=t.isReset,r=ke(),s=r.t,o=r.theme,c=r.config,d=r.dispatch,f=r.isResetted,g=r.haveNotSavedChanges,v=r.config.onClose,x=ct.useState(!1),C=Xt(x,2),y=C[0],h=C[1];if(typeof v!="function"&&!n)return L.createElement("span",null);var w=function(){h(!1)},E=ct.useCallback(function(){d({type:Dp,payload:{config:c}}),w()},[c]),M=function(){n||(v(eb.CLOSE_BUTTON,g),E())};return L.createElement(L.Fragment,null,L.cloneElement(e,{onClick:f===void 0||f?M:function(){h(!0)}}),y&&L.createElement(G3,{title:s(n?"warning":"discardChanges"),hint:s(n?"changesLoseWarningHint":"discardChangesWarningHint"),isOpened:y,onCancel:w,onDone:n?
209E:M,Icon:function(){return L.createElement(sw,{color:o.palette.warning,size:25})},doneLabel:s("confirm"),doneButtonColor:"warning-primary",cancelLabel:s("cancel"),width:"400px",isWarning:!0}))};Jp.defaultProps={isReset:!1};var kH=function(){var t=ke(),e=t.config.onClose;return typeof e=="function"?L.createElement(L.Fragment,null,L.createElement(H3,null),L.createElement(Jp,null,L.createElement(pH,{className:"FIE_topbar-close-button",color:"basic",size:"md"},L.createElement(Qb,null)))):null},PH=function(t){return 0>=t||1<t?J9:t};function q7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ha(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?q7(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):q7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var MH={marginBottom:16},LH={minWidth:67,width:"fit-content"},TH={marginLeft:12},fg=!0,Q7=function(){var t=ke(),e=ct.useRef(),n=t.theme,r=t.dispatch,s=t.originalImage,o=t.resize,c=t.isLoadingGlobally,d=t.haveNotSavedChanges,f=t.feedback,g=t.hasUndo,v=t.t,x=t.adjustments,C=x===void 0?{}:x,y=C.crop,h=t.config,w=h.onClose,E=h.closeAfterSave,M=h.onBeforeSave,b=h.onSave,m=h.forceToPngInEllipticalCrop,_=h.defaultSavedImageName,k=h.defaultSavedImageType,R=h.defaultSavedImageQuality,G=R===void 0?J9:R,T=h.useCloudimage,D=h.moreSaveOptions,A=h.disableSaveIfNoChanges,B=h.removeSaveButton,Z=ct.useState(!1),S=Xt(Z,2),I=S[0],N=S[1],z=ct.useState({quality:PH(G)}),W=Xt(z,2),Q=W[0],tt=W[1],at=Sb(),X=["jpeg","jpg","webp"].includes(Q.extension),q=f.duration===0,rt=function(){var dt=at(Q,!1,!0),yt=e.current||b,gt=yt(dt.imageData,dt.designState),Dt=function(){r({type:Np})};gt instanceof Promise?gt.finally(Dt):Dt(),e.current=null,E&&w&&w(eb.AFTER_SAVE,d)},ot=function(){r({type:u3}),N(!1),setTimeout(rt,3)},ft=function(){var dt=e.current||b;if(typeof dt!="function")throw new Error("Please provide onSave function handler.");return Q.name&&Q.extension?void ot():void r({type:Pl,payload:{feedback:{message:v("nameIsRequired")}}})},it=function(){if(!A||g){if(T){var dt=at(Q),yt=e.current||b;return void yt(dt.imageData,dt.designState)}return e.current||typeof M!="function"||M(Q)!==!1?void N(!0):void ft()}},Y=function(dt,yt){if(typeof dt=="function")e.current=dt,yt();else throw new Error("onSave function callback is required as an argument to the passed function.")},J=function(){var dt=Cb(_||s.name,m&&y.ratio===Yc?"png":gd.includes(k?.toLowerCase())&&k),yt=dt.name,gt=dt.extension;tt(ha(ha({},Q),{},{name:yt,extension:gt}))};if(ct.useEffect(function(){s&&J()},[s]),ct.useEffect(function(){!s||Q.name&&Q.extension||J()},[I]),ct.useEffect(function(){tt(ha(ha({},Q),{},{size:{width:o.width,height:o.height}}))},[o]),ct.useEffect(function(){return fg=!0,function(){fg=!1}},[]),B)return null;var lt=Array.isArray(D)&&0<D.length?D.map(function(dt,yt){return ha(ha({},dt),{},{key:"".concat(dt.label||yt,"-option-key"),onClick:typeof dt.onClick=="function"?function(){return dt.onClick(function(gt){return Y(gt,it)},function(gt){return Y(gt,ot)})}:void 0})}):[];return L.createElement(L.Fragment,null,L.createElement(Qp,{className:"FIE_topbar-save",color:"primary",onClick:it,menuPosition:"bottom",menuFromBtn:!0,label:0<lt.length?v("saveAs"):v("save"),menuItems:lt,menuStyle:TH,wrapperStyle:LH,disabled:c||A&&!g||q,noMargin:!0}),I&&L.createElement(G3,{className:"FIE_save-modal",title:v("saveAsModalTitle"),Icon:function(dt){return L.createElement(cA,Et({color:n.palette["accent-primary"]},dt))},isOpened:I,onCancel:function(){fg&&I&&(e.current=null,N(!1))},onDone:ft,doneLabel:v("save"),cancelLabel:v("cancel"),doneButtonColor:"primary",areButtonsDisabled:c,zIndex:11110},L.createElement(gH,{className:"FIE_save-file-name-input",value:Q.name,onChange:function(dt){var yt=dt.target.value;tt(ha(ha({},Q),{},{name:yt}))},size:"sm",label:v("name"),placeholder:v("imageName"),error:!Q.name,fullWidth:!0,focusOnMount:!0}),L.createElement(mH,{className:"FIE_save-extension-selector",onChange:function(dt){return tt(ha(ha({},Q),{},{extension:dt}))},value:Q.extension,label:v("format"),placeholder:v("extension"),size:"sm",fullWidth:!0},gd.map(function(dt){return L.createElement(so,{key:dt,value:dt},dt)})),X&&L.createElement(vH,{className:"FIE_save-quality-wrapper"},L.createElement(Ln,null,v("quality")),L.createElement(Lr,{annotation:"%",min:1,max:100,onChange:function(dt){tt(ha(ha({},Q),{},{quality:Sr(dt/100,.01,1)}
209))},value:parseInt(100*Q.quality,10),width:"100%",style:MH})),L.createElement(yH,{className:"FIE_save-resize-wrapper"},L.createElement(bH,null,v("resize")),L.createElement(I3,{onChange:function(dt){tt(ha(ha({},Q),{},{size:ha(ha({},Q.size),dt)}))},currentSize:Q?.size||{},hideResetButton:!0,alignLeft:!0,alignment:"space-between"}))))},mx=function(t){var e=t.margin,n=ke(),r=n.isResetted,s=n.feedback,o=n.t,c=s.duration===0;return L.createElement(Jp,{isReset:!0},L.createElement(z3,{className:"FIE_topbar-reset-button",color:"basic",size:"sm",disabled:r===void 0||r||c,title:o("resetOperations"),margin:e},L.createElement(rw,null)))};mx.defaultProps={margin:void 0};var vx=function(t){var e=t.margin,n=ke(),r=n.dispatch,s=n.hasUndo,o=s!==void 0&&s,c=n.t,d=n.feedback,f=d.duration===0,g=ct.useCallback(function(){r({type:N3})},[]);return L.createElement(z3,{className:"FIE_topbar-undo-button",color:"basic",size:"sm",onClick:o?g:void 0,disabled:!o||f,title:c("undoTitle"),margin:e},L.createElement(dA,null))};vx.defaultProps={margin:void 0};var yx=function(t){var e=t.margin,n=ke(),r=n.dispatch,s=n.hasRedo,o=s!==void 0&&s,c=n.t,d=ct.useCallback(function(){r({type:c3})},[]);return L.createElement(z3,{className:"FIE_topbar-redo-button",color:"basic",size:"sm",onClick:o?d:void 0,disabled:!o,title:c("redoTitle"),margin:e},L.createElement(fA,null))};yx.defaultProps={margin:void 0};var AH=[{labelKey:"fitSize",factor:"fit"},{labelKey:"actualSize",factor:1},{label:"25%",factor:.25},{label:"50%",factor:.5},{label:"75%",factor:.75},{label:"125%",factor:1.25},{label:"170%",factor:1.7},{label:"300%",factor:3},{label:"500%",factor:5},{label:"1000%",factor:10}],J7=1.1,bx=function(t){var e=t.showBackButton,n=ke(),r=n.dispatch,s=n.zoom,o=s===void 0?{}:s,c=n.toolId,d=n.feedback,f=n.t,g=n.shownImageDimensions,v=n.resize,x=n.originalImage,C=n.adjustments.crop,y=n.config.useZoomPresetsMenu,h=d.duration===0,w=ct.useState(null),E=Xt(w,2),M=E[0],b=E[1],m=function(D,A){r({type:Ed,payload:{factor:D,isAbsoluteZoom:A}})},_=function(){var D=v.width&&v.height&&v||C.width&&C.height&&C||g,A=Ep(C.width&&C.height&&C||g,D);m(A,!0)},k=function(D){b(M?null:D.target)},R=function(D){if(D==="fit")return _(),void k();var A=v.width||v.height?D:Math.min(D*x.width/g.width,D*x.height/g.height);m(A,!0),k()},G=c===_t.CROP||h,T=!x||v.width||v.height?o.factor:Math.min(g.width*o.factor/x.width,g.height*o.factor/x.height);return L.createElement(cH,null,L.createElement(Jg,{onClick:function(){m(o.factor/J7)},color:"basic",title:f("zoomOutTitle"),disabled:G,showBackButton:e,className:"FIE_topbar-zoom-out-btn"},L.createElement(DI,null)),L.createElement(hH,{title:f("toggleZoomMenuTitle"),onClick:G?void 0:y&&k||_,"aria-disabled":G,className:"FIE_topbar-zoom-label"},"".concat(Xn(100*T,0),"%")),L.createElement(Jg,{onClick:function(){m(o.factor*J7)},color:"basic",title:f("zoomInTitle"),disabled:G,showBackButton:e,className:"FIE_topbar-zoom-in-btn"},L.createElement(TI,null)),L.createElement(Ms,{anchorEl:M,onClose:k,open:!!M,position:"bottom",className:"FIE_topbar-zoom-menu"},AH.map(function(D){var A=D.factor,B=D.labelKey,Z=D.label;return L.createElement(so,{key:Z||B,onClick:function(){return R(A)}},L.createElement(Vp,null,Z??f(B)))})))};bx.defaultProps={showBackButton:!1};var wx=function(t){var e=t.showBackButton,n=t.isPhoneScreen,r=ke(),s=r.dispatch,o=r.isResetted,c=o===void 0||o,d=r.originalImage,f=r.resize,g=f===void 0?{}:f,v=r.adjustments,x=v.crop,C=v.rotation,y=C===void 0?0:C,h=r.shownImageDimensions,w=r.config.disableZooming,E=r.t,M=function(){s({type:qg,payload:{isShow:!1}}),document.removeEventListener("mouseup",M),document.removeEventListener("mouseleave",M),document.removeEventListener("touchcancel",M),document.removeEventListener("touchend",M)},b=function(){s({type:qg,payload:{isShow:!0}
209}),document.addEventListener("mouseup",M),document.addEventListener("mouseleave",M),document.addEventListener("touchcancel",M),document.addEventListener("touchend",M)};if(!d)return null;var m=qw(g,x,h,d,y);return L.createElement(xH,{isPhoneScreen:n},L.createElement(uH,{title:E("imageDimensionsHoverTitle")},"".concat(m.width," x ").concat(m.height," px")),L.createElement(SH,null,L.createElement(Jg,{color:"basic",onMouseDown:c?void 0:b,onTouchStart:c?void 0:b,disabled:c,showBackButton:e,title:E("showImageTitle")},L.createElement(RI,null)),!w&&L.createElement(L.Fragment,null,L.createElement(H3,null),L.createElement(bx,{showBackButton:e}))))};wx.defaultProps={showBackButton:!1,isPhoneScreen:!1};var IH=function(){var t=ke(),e=t.t,n=lo();return L.createElement(Jp,null,L.createElement(gi,{className:"FIE_topbar-back-button",color:"link-secondary",size:"sm",startIcon:L.createElement(dw,null)},!n&&L.createElement(fH,null,e("back"))))},xx=function(t){var e=t.toggleMainMenu,n=ke(),r=n.config.showBackButton,s=lo(320);return L.createElement(oH,{className:"FIE_topbar",isPhoneScreen:s},L.createElement(sH,{className:"FIE_topbar-buttons-wrapper"},L.createElement(CH,{className:"FIE_tabs_toggle_btn",size:s?"sm":"lg",color:"basic",onClick:function(){return e(!0)}},function(o){return L.createElement(fw,o)}),r?L.createElement(IH,null):L.createElement(Q7,null)),L.createElement(dH,{className:"FIE_topbar-center-options",showBackButton:r},L.createElement(wx,{showBackButton:r,isPhoneScreen:s})),L.createElement(lH,null,L.createElement(wH,{className:"FIE_topbar-history-buttons"},L.createElement(mx,{margin:"0",showBackButton:r}),L.createElement(vx,{margin:"0",showBackButton:r}),L.createElement(yx,{margin:"0",showBackButton:r})),r?L.createElement(Q7,null):L.createElement(kH,null)))};xx.defaultProps={toggleMainMenu:function(){}};var NH=mt.div.withConfig({componentId:"sc-qhd6ow-0"})(function(t){var e=t.theme;return`
210    width: 72px;
211    min-height: 66px;
212    padding: 4px 2px;
213    border-radius: 4px;
214    display: flex;
215    flex-direction: column;
216    gap: 6px;
217    background: `.concat(e.palette[$.BackgroundStateless],`;
218    align-items: center;
219    justify-content: center;
220
221    [data-phone='true'] & {
222      margin-bottom: 0;
223      height: 50px;
224      border-radius: 0;
225    }
226
227    svg {
228      color: `).concat(e.palette[$.IconsPrimary],`;
229    }
230
231    &,
232    * {
233      cursor: pointer;
234    }
235
236    &:hover {
237      background: `).concat(e.palette["bg-primary-active"],`;
238    }
239
240    &[aria-selected='true'] {
241      background: `).concat(e.palette["bg-primary-active"],`;
242
243      * {
244        color: `).concat(e.palette["accent-primary-active"],`;
245      }
246    }
247  `)}),RH=mt(Ln).withConfig({componentId:"sc-qhd6ow-1"})(function(t){var e=t.theme;return`
248  color: `.concat(e.palette[$.TextPrimary],`;
249  `).concat(e.typography.font[Vt.LabelSmall],`;
250  font-size: 12px;
251  line-height: 14px;
252
253  span {
254    white-space: normal;
255  }
256
257  [data-phone='true'] & {
258    font-size: 10px;
259  }
260`)}),Cx=function(t){var e=t.id,n=t.label,r=t.Icon,s=t.isSelected,o=t.onClick,c=ct.useCallback(function(){typeof o=="function"&&o(e)},[e]);return L.createElement(NH,{className:"FIE_tab","aria-selected":s,onClick:c},L.createElement(r,{size:24}),n&&L.createElement(RH,{className:"FIE_tab-label"},n))};Cx.defaultProps={isSelected:!1,onClick:void 0,label:void 0};const FH=ct.memo(Cx);var pg=[{id:Mn.ADJUST,labelKey:"adjustTab",icon:nN},{id:Mn.FINETUNE,labelKey:"finetuneTab",icon:UI},{id:Mn.FILTERS,labelKey:"filtersTab",icon:vA,hideFn:function(t){var e=t.useCloudimage;return e}},{id:Mn.WATERMARK,labelKey:"watermarkTab",icon:EA},{id:Mn.ANNOTATE,labelKey:"annotateTabLabel",icon:ZI,hideFn:function(t){var e=t.useCloudimage;return e}},{id:Mn.RESIZE,labelKey:"resizeTab",icon:SA}],U3=function(t){var e=t.toggleMainMenu,n=t.isDrawer,r=ke(),s=r.t,o=r.tabId,c=o===void 0?null:o,d=r.dispatch,f=r.config,g=f.defaultTabId,v=f.tabsIds,x=f.useCloudimage,C=ct.useCallback(function(w){d({type:Jw,payload:{tabId:w}}),e(!1)},[]),y=ct.useMemo(function(){var w=[];return 0<Object.keys(v).length?pg.forEach(function(E){var M=v.indexOf(E.id);M!==-1&&(w[M]=E)}):w=pg,(0<w.length?w:pg).filter(function(E){var M=E.hideFn;return!M||!M({useCloudimage:x})})},[v]);if(y.length===1)return null;var h=function(w){var E=w.id,M=w.labelKey,b=w.icon;return L.createElement(FH,{key:E,id:E,label:s(M),Icon:b,isSelected:(c||g)===E,onClick:C})};return L.createElement(L.Fragment,null,y.map(function(w){return n?L.createElement(Kg,{key:w.id},h(w)):h(w)}))};U3.defaultProps={toggleMainMenu:function(){},isDrawer:!1};var Sx=function(t){var e=t.children,n=t.isPhoneScreen;return L.createElement(eM,{className:"FIE_tool-options-wrapper",hasChildren:!!e,isPhoneScreen:n},e)};Sx.defaultProps={children:void 0,isPhoneScreen:!1};var DH={maxWidth:"100%",width:"100%"}
260,_x=function(t){var e,n=t.isPhoneScreen,r=ke(),s=r.t,o=r.dispatch,c=r.tabId,d=r.toolId,f=r.annotations,g=r.selectionsIds,v=g===void 0?[]:g,x=r.config,C=x.defaultTabId,y=x.defaultToolId,h=x.useCloudimage,w=c||C,E=d||y||((e=cp[w])===null||e===void 0?void 0:e[0]),M=ct.useMemo(function(){return cp[w]||[]},[w]),b=ct.useCallback(function(k){o({type:Pp,payload:{toolId:k}})},[]),m=ct.useMemo(function(){return M.map(function(k){var R=o1[k],G=R.Item,T=R.hideFn;return G&&(!T||!T({useCloudimage:h}))&&L.createElement(G,{key:k,selectTool:b,t:s,isSelected:E===k})})},[M,E]),_=ct.useMemo(function(){var k,R,G;if(!E)return!1;if(w===Mn.ANNOTATE){var T=v.length;if(T===1){var D,A=f[v[0]];return(D=o1[A.name])===null||D===void 0?void 0:D.ItemOptions}if(1<T)return null}return w&&E&&cp[w].includes(E)&&(!((k=o1[d])!==null&&k!==void 0&&k.hideFn)||!((R=o1[d])!==null&&R!==void 0&&R.hideFn({useCloudimage:h})))&&((G=o1[d])===null||G===void 0?void 0:G.ItemOptions)},[w,E,f,v]);return ct.useEffect(function(){!d&&E&&o({type:Pp,payload:{toolId:E}})},[]),L.createElement(QP,{className:"FIE_tools-bar-wrapper"},L.createElement(Sx,{isPhoneScreen:n},_&&L.createElement(_,{t:s})),m&&L.createElement(JP,{className:"FIE_tools-bar",isPhoneScreen:n},w===Mn.WATERMARK?m:L.createElement(Xp,{className:"FIE_tools",style:DH},m)))};_x.defaultProps={isPhoneScreen:!1};var jH={horizontal:"center",vertical:"bottom"},BH=V(V({},md.ERROR,"error"),md.WARNING,"warning"),Ex=function(t){var e,n=t.anchorOrigin,r=ke(),s=r.feedback,o=s===void 0?{}:s,c=r.dispatch;return o.message?L.createElement(Hg,{className:"FIE_feedback-robot",anchorOrigin:n,autoHideDuration:(e=o.duration)!==null&&e!==void 0?e:5e3,message:o.message,open:!!o.message,status:BH[o.status||md.ERROR],onClose:function(){c({type:Pl,payload:{feedback:{}}})}}):null};Ex.defaultProps={anchorOrigin:jH};var HH=im(["to{transform:rotate(360deg);}"]),zH=mt.div.withConfig({componentId:"sc-m42fbk-0"})(["background:",";display:flex;align-items:center;justify-content:center;position:absolute;z-index:11111;top:0;bottom:0;right:0;left:0;flex-direction:column;user-select:none;"],function(t){var e=t.theme.palette;return e[$.BackgroundStateless]}),GH=mt(pN).withConfig({componentId:"sc-m42fbk-1"})(["animation:"," 1.2s infinite;"],HH),Ox=function(t){var e=t.theme;return L.createElement(zH,{className:"FIE_spinner-wrapper"},L.createElement(GH,{size:50,color:e.palette[$.AccentStateless]}))};Ox.defaultProps={theme:{}};var UH=["cropX2","cropY2","crop","watermark"];function t9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function _s(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?t9(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):t9(Object(e)).forEac
260h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var WH=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:{},s=ME[e];switch(t){case"wat_text":return{watermark:{text:e.replaceAll("+"," ")}};case"wat_font":return{watermark:{fontFamily:e}};case"wat_color":return{watermark:{fill:"#".concat(e)}};case"wat_fontsize":return{watermark:{fontSize:parseFloat(e)}};case"wat_opacity":return{watermark:{opacity:parseFloat(e)}};case"wat_pos":{var o=e.split(","),c=Xt(o,2),d=c[0],f=c[1];return{watermark:{x:parseFloat(d)/100*n.width,y:parseFloat(f)/100*n.height}}}case"wat_url":return{watermark:{image:decodeURIComponent(e)}};case"wat_scale":{var g=e.split(","),v=Xt(g,2),x=v[0],C=v[1];return{watermark:{width:parseFloat(x)/100*(n.width||0),height:parseFloat(C)/100*(n.height||0)}}}case"tl_px":{var y=e.split(","),h=Xt(y,2),w=h[0],E=h[1];return{crop:{x:Ho(parseFloat(w),0,r.width,0,n.width),y:Ho(parseFloat(E),0,r.height,0,n.height)}}}case"br_px":{var M=e.split(","),b=Xt(M,2),m=b[0],_=b[1];return{cropX2:Ho(parseFloat(m),0,r.width,0,n.width),cropY2:Ho(parseFloat(_),0,r.height,0,n.height)}}case"round":return{crop:{ratio:Yc}};case"gravity":return{crop:s?{lockCropAreaAt:s,width:null,height:null}:{noEffect:!0,ratio:e,ratioTitleKey:e,width:null,height:null}};case"aspect_ratio":return{crop:{ratio:+e}};case"w":return{resize:{width:parseFloat(e)}};case"h":return{resize:{height:parseFloat(e)}};case"r":return{adjustments:{rotation:-parseInt(e,10)}};case"flip":case"mirror":return{adjustments:{isFlippedX:e.includes("x")||e.includes("h"),isFlippedY:e.includes("y")||e.includes("v")}};default:{var k;if(Object.keys(ip).forEach(function(D){ip[D].cloudimage.name===t.toLowerCase()&&(k=D)}),!k)return null;var R=ip[k],G=R.cloudimage,T=R.internal;return{finetunes:[$n.Filters[k]],finetunesProps:V({},T.propName,Ho(parseFloat(e),G.min,G.max,T.min,T.max))}}}},VH=function(t,e,n){if(!t)return null;var r=t.split("&"),s={};r.forEach(function(C){var y=C.split("="),h=Xt(y,2),w=h[0],E=h[1],M=WH(w,E,e,n);M&&(s=T1(s,M,!0))});var o=s,c=o.cropX2,d=o.cropY2,f=o.crop,g=o.watermark,v=Tt(o,UH),x=_s(_s(_s({},v),c&&d&&f||f!=null&&f.noEffect||f!=null&&f.lockCropAreaAt?{adjustments:_s(_s({},v.adjustments),{},{crop:_s({width:(c||0)-f.x,height:(d||0)-f.y},f)})}:{}),{},{annotations:_s({},g?V({},El,_s(_s({},g),{},{x:(f?.x||0)+(g.x||0),y:(f?.y||0)+(g.y||0),id:El,name:g.text?_t.TEXT:_t.IMAGE},g.text?{width:g.text.length*g.fontSize,height:g.fontSize}:{})):{})});return x},gg=function(t,e){return t&&e&&(t instanceof HTMLImageElement&&t.src===e.src&&t.width===e.width&&t.height===e.height||(t?.src||t)===e.src)},e9=function(t,e){var n=ct.useRef(!0);ct.useEffect(function(){return function(){n.current=!0}},[]),ct.useEffect(function(){if(n.current)n.current=!1;else if(typeof t=="function")return t()},e)},YH=mt.div.attrs(function(t){var e,n,r=t.$size,s=r===void 0?{}:r;return{style:{width:(e=s.width)!==null&&e!==void 0?e:"100%",height:(n=s.height)!==null&&n!==void 0?n:"100%"}}}).withConfig({componentId:"sc-ugtqr7-0"})(["display:flex;flex-direction:column;align-items:center;height:100%;max-height:100%;width:100%;max-width:100%;overflow:auto;border-radius:8px;position:relative;min-height:250px;background:",";",""],function(t){var e=t.theme;return e.palette["bg-secondary"]},function(t){var e=t.showTabsDrawer;return e&&`
261      overflow: unset;
262  `}),ZH=mt.div.withConfig({componentId:"sc-ugtqr7-1"})(["display:flex;align-items:flex-start;width:100%;box-sizing:border-box;height:calc(100% - 95px);flex-grow:1;[data-phone='true'] &{padding:0;}"]),KH=mt.div.withConfig({componentId:"sc-ugtqr7-2"})(["height:100%;width:calc(100% - 80px);flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;",""],function(t){var e=t.showTabsDrawer;return e&&`
263     overflow-y: unset;
264  `}),$H=mt.div.withConfig({componentId:"sc-ugtqr7-3"})(["min-width:108px;height:100%;padding:16px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;max-height:100%;box-shadow:6px 8px 12px 0px rgba(146,166,188,0.14);[data-phone='true'] &{display:flex;padding:0;}"]),XH=mt(M3).withConfig({componentId:"sc-ugtqr7-4"})(["transition:transform 200ms ease-in-out;width:92px;height:100%;padding:12px;.SfxDrawer-list,.SfxDrawer-item{padding:0;}"]),kx=function(t){var e=t.toggleMainMenu,n=ke(),r=n.t,s=n.showTabsMenu;return L.createElement(XH,{className:"FIE_tabs-drawer",open:s,onClose:function(){return e(!1)},disablePortal:!0},L.createElement(Vg,null,L.createElement(gi,{color:"link-basic-secondary",startIcon:L.createElement(fw,null),onClick:function(){return e(!1)}},r("tabsMenu"))),L.createElement(Yg,null,L.createElement(Zg,null,L.createElement(U3,{toggleMainMenu:e,isDrawer:!0}))))};kx.defaultProps={toggleMainMenu:function(){}};function n9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function r9(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}
264:arguments[n],n%2?n9(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):n9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var qH=function(){var t=ke(),e=t.config,n=t.isLoadingGlobally,r=t.haveNotSavedChanges,s=t.dispatch,o=t.originalImage,c=t.shownImageDimensions,d=t.t,f=t.theme,g=t.feedback,v=g===void 0?{}:g,x=e.loadableDesignState,C=e.useCloudimage,y=e.cloudimage,h=e.source,w=e.avoidChangesNotSavedAlertOnLeave,E=e.useBackendTranslations,M=e.translations,b=e.language,m=e.defaultSavedImageName,_=e.observePluginContainerSize,k=e.showCanvasOnly,R=e.getCurrentImgDataFnRef,G=e.updateStateFnRef,T=e.noCrossOrigin,D=e.resetOnImageSourceChange,A=window.matchMedia("(max-width: 760px)").matches,B=f3(),Z=Xt(B,2),S=Z[0],I=Z[1],N=ct.useState({width:void 0,height:void 0}),z=Xt(N,2),W=z[0],Q=z[1],tt=lo(),at=ct.useRef(null),X=ct.useRef(!1),q=ct.useRef(null),rt=ct.useRef(r),ot=Sb(),ft=ct.useCallback(function(gt){s({type:rx,payload:{originalImage:gt}})},[]),it=ct.useCallback(function(gt){s({type:Pl,payload:{feedback:{message:gt.message||gt,duration:0}}})},[]),Y=function(gt){return new Promise(function(Dt){var Ht=gt?.src||gt;if(q.current===Ht||!Ht&&o||gg(Ht,o))return void(q.current||Dt());var It=function(){q.current=null,Dt()};q.current=Ht,setTimeout(function(){if(typeof gt=="string")fx(gt,m,T).then(ft).catch(it).finally(It);else if(gt instanceof HTMLImageElement){if(!gt.name&&m&&(gt.name=m),!gt.complete)return void gt.addEventListener("load",function(){ft(gt),It()});ft(gt),It()}else it(d("invalidImageError")),It()},0)})},J=function(gt){rt.current&&(gt.preventDefault(),gt.returnValue="")},lt=function(){var gt=0<arguments.length&&arguments[0]!==void 0?arguments[0]:function(){return[]};return s({type:u3}),Promise.all(gt()).finally(function(){s({type:Np})})},dt=function(){x&&0<Object.keys(x).length&&s({type:up,payload:r9(r9({},x),{},{finetunes:pb(x?.finetunes),filter:db(x?.filter)})})};e9(function(){h&&!gg(h,o)&&(X.current=!1,lt(function(){return[Y(h)]})),D&&s({type:Dp,payload:{config:e}})},[h]),e9(function(){var gt=x?.imgSrc;gt&&!gg(gt,o)?lt(function(){return[Y(gt).then(dt)]}):dt()},[x]),ct.useEffect(function(){0<Object.keys(c||{}).length&&!Object.keys(c).some(function(gt){return!c[gt]})&&o&&C&&y!==null&&y!==void 0&&y.loadableQuery&&!X.current&&(s({type:up,payload:VH(y.loadableQuery,c,o)}),X.current=!0)},[c,o,C,y]),ct.useEffect(function(){var gt=!1;return _&&at.current?S(at.current.parentNode,function(Dt){var Ht=Dt.width,It=Dt.height;return Q({width:Ht,height:It})}):W.width&&W.height&&!gt&&Q({width:void 0,height:void 0}),function(){_&&at.current&&I(at.current),gt=!0}},[_]),ct.useEffect(function(){return lt(function(){return[Y(x?.imgSrc||h)].concat(Hn(E?[uP(b,M)]:[]))}),window&&!w&&window.addEventListener("beforeunload",J),function(){window&&!w&&window.removeEventListener("beforeunload",J)}},[]),ct.useEffect(function(){G&&Pa(G)==="object"&&(G.current=function(gt){s({type:up,payload:gt})})},[G,s]),ct.useEffect(function(){R&&Pa(R)==="object"&&(R.current=ot)},[ot]),ct.useEffect(function(){rt.current=r},[r]);var yt=function(gt){s({type:cx,payload:{opened:gt}})};return L.createElement(YH,{className:pp,"data-phone":tt,showTabsDrawer:A,ref:at,$size:W},n&&L.createElement(Ox,{theme:f}),(function(){return L.createElement(L.Fragment,null,!k&&L.createElement(L.Fragment,null,A&&L.createElement(kx,{toggleMainMenu:yt}),L.createElement(xx,{toggleMainMenu:yt})),o&&v.duration!==0&&L.createElement(ZH,{className:"FIE_main-container"},!k&&!A&&L.createElement($H,{className:"FIE_tabs"},L.createElement(U3,{toggleMainMenu:yt})),L.createElement(KH,{className:"FIE_editor-content",showTabsDrawer:A},L.createElement(aH,null),!k&&L.createElement(_x,{isPhoneScreen:tt}))))})(),L.createElement(Ex,null))};const QH=ct.memo(qH);var JH=function(){Object.keys(Konva.Filters).forEach(function(t){return Konva.Filters[t].finetuneName=t})},tz=Mp([".","{font-family:",";}.SfxModal-Wrapper *{font-family:",";}"],pp,function(t){var e,n=t.theme,r=n===void 0?{}:n;return((e=r.typography)===null||e===void 0?void 0:e.fontFamily)||"Arial"},function(t){var e,n=t.theme,r=n===void 0?{}:n;return((e=r.typography)===null||e===void 0?void 0:e.fontFamily)||"Arial"}),ez=Mp([".Menu-open{overflow:visible !important;}
264.",",#SfxPopper{box-sizing:border-box;.SfxPopper-root .SfxMenu-root{overflow:visible;width:max-content;.SfxMenuItem-prefix{margin-right:6px;}}}."," *,#SfxPopper *{box-sizing:border-box;scrollbar-color:rgba(203,211,218,1) rgba(203,211,218,0.35);:not(button) > svg:not([color]){color:",'}:disabled,[aria-disabled="true"]{cursor:not-allowed;}&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background:rgba(203,211,218,0.35);}&::-webkit-scrollbar-thumb{background:rgba(203,211,218,1);border-radius:10px;}}'],pp,pp,function(t){var e=t.theme;return e.palette["icons-primary"]}),Px=function(t){var e=t.source,n=t.useCloudimage,r=t.cloudimage;if(!e||typeof e!="string"&&!(e instanceof HTMLImageElement))throw new Error("`source` property is required either a string of image url or a HTMLImageElement for the image that will be edited.");if(n){var s,o;if(r!=null&&(s=r.imageSealing)!==null&&s!==void 0&&s.enable&&!(r!=null&&(o=r.imageSealing)!==null&&o!==void 0&&o.salt))throw new Error("`salt` property of imageSealing object is required in cloudimage mode as long as `imageSealing` is enabled.")}ct.useEffect(function(){JH()},[]);var c=T1(ab,t);return L.createElement(L.StrictMode,null,L.createElement(L9,{theme:c.theme},L.createElement(tz,null),L.createElement(ez,null),L.createElement(yb,{config:c},L.createElement(QH,null))))};Px.defaultProps={useCloudimage:!1,cloudimage:{}};const nz=ct.memo(Px);function a9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function i9(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?a9(Object(e),!0).forEach(function(r){V(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a9(Object(e)).forEac
264h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}function mg(t,e,n){rz(t,e),e.set(t,n)}function rz(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ic(t,e){return t.get(Mx(t,e))}function Zf(t,e,n){return t.set(Mx(t,e),n),n}function Mx(t,e,n){if(typeof t=="function"?t===e:t.has(e))return 3>arguments.length?e:n;throw new TypeError("Private element is not present on this object")}var nd=new WeakMap,Kf=new WeakMap,$f=new WeakMap,Xf=(function(){function t(e){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};if(Jx(this,t),mg(this,nd,void 0),mg(this,Kf,void 0),mg(this,$f,void 0),this.container=e,this.config=n,!e||!(e instanceof HTMLElement))throw new Error("`container` (argument 0) is required to initialize the image editor plugin.");Zf(nd,this,L5.createRoot(this.container)),Zf(Kf,this,{}),Zf($f,this,{}),this.getCurrentImgData=this.getCurrentImgData.bind(this),this.render=this.render.bind(this),this.terminate=this.terminate.bind(this),this.updateState=this.updateState.bind(this)}return nC(t,[{key:"render",value:function(e){Pa(e)==="object"&&(this.config=this.config=T1(this.config||{},e)),this.config=i9(i9({},this.config),{},{getCurrentImgDataFnRef:Ic(Kf,this),updateStateFnRef:Ic($f,this)}),Ic(nd,this)._internalRoot||Zf(nd,this,L5.createRoot(this.container)),Ic(nd,this).render(ct.createElement(nz,this.config))}},{key:"terminate",value:function(){Ic(nd,this).unmount()}},{key:"getCurrentImgData",value:function(e,n,r){var s,o;return((s=Ic(Kf,this))===null||s===void 0||(o=s.current)===null||o===void 0?void 0:o.call(s,e,n,r))||{}}},{key:"updateState",value:function(e){var n,r;(n=Ic($f,this))===null||n===void 0||(r=n.current)===null||r===void 0||r.call(n,e)}}])})();V(Xf,"TABS",Mn),V(Xf,"TOOLS",_t),Xf.TABS=Mn,Xf.TOOLS=_t;export{Xf as default};
265//# sourceMappingURL=index-BV---otF.chunk.mjs.map

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