intlayer-editor 5.7.4 → 5.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,7 +47,7 @@ var oM=Object.defineProperty;var sM=(e,t,n)=>t in e?oM(e,t,{enumerable:!0,config
|
|
|
47
47
|
`+z[h].replace(" at new "," at ");return i.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",i.displayName)),le}while(1<=h&&0<=g);break}}}finally{$=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?W(c):""}function H(i){switch(i.tag){case 26:case 27:case 5:return W(i.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 15:return i=X(i.type,!1),i;case 11:return i=X(i.type.render,!1),i;case 1:return i=X(i.type,!0),i;default:return""}}function re(i){try{var o="";do o+=H(i),i=i.return;while(i);return o}catch(c){return`
|
|
48
48
|
Error generating stack: `+c.message+`
|
|
49
49
|
`+c.stack}}function K(i){var o=i,c=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(c=o.return),i=o.return;while(i)}return o.tag===3?c:null}function ye(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function V(i){if(K(i)!==i)throw Error(r(188))}function J(i){var o=i.alternate;if(!o){if(o=K(i),o===null)throw Error(r(188));return o!==i?null:i}for(var c=i,h=o;;){var g=c.return;if(g===null)break;var _=g.alternate;if(_===null){if(h=g.return,h!==null){c=h;continue}break}if(g.child===_.child){for(_=g.child;_;){if(_===c)return V(g),i;if(_===h)return V(g),o;_=_.sibling}throw Error(r(188))}if(c.return!==h.return)c=g,h=_;else{for(var C=!1,k=g.child;k;){if(k===c){C=!0,c=g,h=_;break}if(k===h){C=!0,h=g,c=_;break}k=k.sibling}if(!C){for(k=_.child;k;){if(k===c){C=!0,c=_,h=g;break}if(k===h){C=!0,h=_,c=g;break}k=k.sibling}if(!C)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?i:o}function F(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=F(i),o!==null)return o;i=i.sibling}return null}var ee=Array.isArray,ie=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},xe=[],de=-1;function _e(i){return{current:i}}function Oe(i){0>de||(i.current=xe[de],xe[de]=null,de--)}function Te(i,o){de++,xe[de]=i.current,i.current=o}var $e=_e(null),Fe=_e(null),pt=_e(null),Zt=_e(null);function kn(i,o){switch(Te(pt,o),Te(Fe,i),Te($e,null),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)&&(o=o.namespaceURI)?Fx(o):0;break;default:if(i=i===8?o.parentNode:o,o=i.tagName,i=i.namespaceURI)i=Fx(i),o=Gx(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}Oe($e),Te($e,o)}function Sn(){Oe($e),Oe(Fe),Oe(pt)}function ur(i){i.memoizedState!==null&&Te(Zt,i);var o=$e.current,c=Gx(o,i.type);o!==c&&(Te(Fe,i),Te($e,c))}function Sa(i){Fe.current===i&&(Oe($e),Oe(Fe)),Zt.current===i&&(Oe(Zt),jl._currentValue=he)}var dr=Object.prototype.hasOwnProperty,U=e.unstable_scheduleCallback,te=e.unstable_cancelCallback,ce=e.unstable_shouldYield,we=e.unstable_requestPaint,be=e.unstable_now,Ee=e.unstable_getCurrentPriorityLevel,Ie=e.unstable_ImmediatePriority,rt=e.unstable_UserBlockingPriority,ot=e.unstable_NormalPriority,An=e.unstable_LowPriority,Aa=e.unstable_IdlePriority,Cr=e.log,$h=e.unstable_setDisableYieldValue,Jr=null,tn=null;function Hh(i){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Jr,i,void 0,(i.current.flags&128)===128)}catch{}}function fr(i){if(typeof Cr=="function"&&$h(i),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(Jr,i)}catch{}}var yn=Math.clz32?Math.clz32:KI,du=Math.log,qI=Math.LN2;function KI(i){return i>>>=0,i===0?32:31-(du(i)/qI|0)|0}var fu=128,hu=4194304;function wa(i){var o=i&42;if(o!==0)return o;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128: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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function mu(i,o){var c=i.pendingLanes;if(c===0)return 0;var h=0,g=i.suspendedLanes,_=i.pingedLanes,C=i.warmLanes;i=i.finishedLanes!==0;var k=c&134217727;return k!==0?(c=k&~g,c!==0?h=wa(c):(_&=k,_!==0?h=wa(_):i||(C=k&~C,C!==0&&(h=wa(C))))):(k=c&~g,k!==0?h=wa(k):_!==0?h=wa(_):i||(C=c&~C,C!==0&&(h=wa(C)))),h===0?0:o!==0&&o!==h&&(o&g)===0&&(g=h&-h,C=o&-o,g>=C||g===32&&(C&4194176)!==0)?o:h}function Gs(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function ZI(i,o){switch(i){case 1:case 2:case 4:case 8:return o+250;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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function M0(){var i=fu;return fu<<=1,(fu&4194176)===0&&(fu=128),i}function P0(){var i=hu;return hu<<=1,(hu&62914560)===0&&(hu=4194304),i}function Fh(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function qs(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function WI(i,o,c,h,g,_){var C=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var k=i.entanglements,z=i.expirationTimes,q=i.hiddenUpdates;for(c=C&~c;0<c;){var le=31-yn(c),me=1<<le;k[le]=0,z[le]=-1;var ne=q[le];if(ne!==null)for(q[le]=null,le=0;le<ne.length;le++){var se=ne[le];se!==null&&(se.lane&=-536870913)}c&=~me}h!==0&&z0(i,h,0),_!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=_&~(C&~o))}function z0(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-yn(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194218}function V0(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var h=31-yn(c),g=1<<h;g&o|i[h]&o&&(i[h]|=o),c&=~g}}function B0(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function U0(){var i=ie.p;return i!==0?i:(i=window.event,i===void 0?32:cS(i.type))}function YI(i,o){var c=ie.p;try{return ie.p=i,o()}finally{ie.p=c}}var ki=Math.random().toString(36).slice(2),un="__reactFiber$"+ki,wn="__reactProps$"+ki,bo="__reactContainer$"+ki,Gh="__reactEvents$"+ki,XI="__reactListeners$"+ki,QI="__reactHandles$"+ki,$0="__reactResources$"+ki,Ks="__reactMarker$"+ki;function qh(i){delete i[un],delete i[wn],delete i[Gh],delete i[XI],delete i[QI]}function Ta(i){var o=i[un];if(o)return o;for(var c=i.parentNode;c;){if(o=c[bo]||c[un]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=Zx(i);i!==null;){if(c=i[un])return c;i=Zx(i)}return o}i=c,c=i.parentNode}return null}function _o(i){if(i=i[un]||i[bo]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function Zs(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Eo(i){var o=i[$0];return o||(o=i[$0]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Wt(i){i[Ks]=!0}var H0=new Set,F0={};function Ra(i,o){xo(i,o),xo(i+"Capture",o)}function xo(i,o){for(F0[i]=o,i=0;i<o.length;i++)H0.add(o[i])}var ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),JI=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),G0={},q0={};function eL(i){return dr.call(q0,i)?!0:dr.call(G0,i)?!1:JI.test(i)?q0[i]=!0:(G0[i]=!0,!1)}function pu(i,o,c){if(eL(o))if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+c)}}function gu(i,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+c)}}function ti(i,o,c,h){if(h===null)i.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(o,c,""+h)}}function Hn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function K0(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function tL(i){var o=K0(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,_=c.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return g.call(this)},set:function(C){h=""+C,_.call(this,C)}}),Object.defineProperty(i,o,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function yu(i){i._valueTracker||(i._valueTracker=tL(i))}function Z0(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return i&&(h=K0(i)?i.checked?"true":"false":i.value),i=h,i!==c?(o.setValue(i),!0):!1}function vu(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var nL=/[\n"\\]/g;function Fn(i){return i.replace(nL,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Kh(i,o,c,h,g,_,C,k){i.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?i.type=C:i.removeAttribute("type"),o!=null?C==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Hn(o)):i.value!==""+Hn(o)&&(i.value=""+Hn(o)):C!=="submit"&&C!=="reset"||i.removeAttribute("value"),o!=null?Zh(i,C,Hn(o)):c!=null?Zh(i,C,Hn(c)):h!=null&&i.removeAttribute("value"),g==null&&_!=null&&(i.defaultChecked=!!_),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.name=""+Hn(k):i.removeAttribute("name")}function W0(i,o,c,h,g,_,C,k){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),o!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||o!=null))return;c=c!=null?""+Hn(c):"",o=o!=null?""+Hn(o):c,k||o===i.value||(i.value=o),i.defaultValue=o}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=k?i.checked:!!h,i.defaultChecked=!!h,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(i.name=C)}function Zh(i,o,c){o==="number"&&vu(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function So(i,o,c,h){if(i=i.options,o){o={};for(var g=0;g<c.length;g++)o["$"+c[g]]=!0;for(c=0;c<i.length;c++)g=o.hasOwnProperty("$"+i[c].value),i[c].selected!==g&&(i[c].selected=g),g&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Hn(c),o=null,g=0;g<i.length;g++){if(i[g].value===c){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}o!==null||i[g].disabled||(o=i[g])}o!==null&&(o.selected=!0)}}function Y0(i,o,c){if(o!=null&&(o=""+Hn(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+Hn(c):""}function X0(i,o,c,h){if(o==null){if(h!=null){if(c!=null)throw Error(r(92));if(ee(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),o=c}c=Hn(o),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Ao(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}var rL=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Q0(i,o,c){var h=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,c):typeof c!="number"||c===0||rL.has(o)?o==="float"?i.cssFloat=c:i[o]=(""+c).trim():i[o]=c+"px"}function J0(i,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in o)h=o[g],o.hasOwnProperty(g)&&c[g]!==h&&Q0(i,g,h)}else for(var _ in o)o.hasOwnProperty(_)&&Q0(i,_,o[_])}function Wh(i){if(i.indexOf("-")===-1)return!1;switch(i){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 iL=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),aL=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bu(i){return aL.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Yh=null;function Xh(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var wo=null,To=null;function e_(i){var o=_o(i);if(o&&(i=o.stateNode)){var c=i[wn]||null;e:switch(i=o.stateNode,o.type){case"input":if(Kh(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Fn(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==i&&h.form===i.form){var g=h[wn]||null;if(!g)throw Error(r(90));Kh(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===i.form&&Z0(h)}break e;case"textarea":Y0(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&So(i,!!c.multiple,o,!1)}}}var Qh=!1;function t_(i,o,c){if(Qh)return i(o,c);Qh=!0;try{var h=i(o);return h}finally{if(Qh=!1,(wo!==null||To!==null)&&(nd(),wo&&(o=wo,i=To,To=wo=null,e_(o),i)))for(o=0;o<i.length;o++)e_(i[o])}}function Ws(i,o){var c=i.stateNode;if(c===null)return null;var h=c[wn]||null;if(h===null)return null;c=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var Jh=!1;if(ei)try{var Ys={};Object.defineProperty(Ys,"passive",{get:function(){Jh=!0}}),window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{Jh=!1}var Di=null,em=null,_u=null;function n_(){if(_u)return _u;var i,o=em,c=o.length,h,g="value"in Di?Di.value:Di.textContent,_=g.length;for(i=0;i<c&&o[i]===g[i];i++);var C=c-i;for(h=1;h<=C&&o[c-h]===g[_-h];h++);return _u=g.slice(i,1<h?1-h:void 0)}function Eu(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function xu(){return!0}function r_(){return!1}function Tn(i){function o(c,h,g,_,C){this._reactName=c,this._targetInst=g,this.type=h,this.nativeEvent=_,this.target=C,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(c=i[k],this[k]=c?c(_):_[k]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?xu:r_,this.isPropagationStopped=r_,this}return M(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=xu)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=xu)},persist:function(){},isPersistent:xu}),o}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Su=Tn(Ca),Xs=M({},Ca,{view:0,detail:0}),oL=Tn(Xs),tm,nm,Qs,Au=M({},Xs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:im,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Qs&&(Qs&&i.type==="mousemove"?(tm=i.screenX-Qs.screenX,nm=i.screenY-Qs.screenY):nm=tm=0,Qs=i),tm)},movementY:function(i){return"movementY"in i?i.movementY:nm}}),i_=Tn(Au),sL=M({},Au,{dataTransfer:0}),lL=Tn(sL),cL=M({},Xs,{relatedTarget:0}),rm=Tn(cL),uL=M({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),dL=Tn(uL),fL=M({},Ca,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),hL=Tn(fL),mL=M({},Ca,{data:0}),a_=Tn(mL),pL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gL={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"},yL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vL(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=yL[i])?!!o[i]:!1}function im(){return vL}var bL=M({},Xs,{key:function(i){if(i.key){var o=pL[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Eu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?gL[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:im,charCode:function(i){return i.type==="keypress"?Eu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Eu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),_L=Tn(bL),EL=M({},Au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),o_=Tn(EL),xL=M({},Xs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:im}),SL=Tn(xL),AL=M({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),wL=Tn(AL),TL=M({},Au,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),RL=Tn(TL),CL=M({},Ca,{newState:0,oldState:0}),NL=Tn(CL),OL=[9,13,27,32],am=ei&&"CompositionEvent"in window,Js=null;ei&&"documentMode"in document&&(Js=document.documentMode);var kL=ei&&"TextEvent"in window&&!Js,s_=ei&&(!am||Js&&8<Js&&11>=Js),l_=" ",c_=!1;function u_(i,o){switch(i){case"keyup":return OL.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ro=!1;function DL(i,o){switch(i){case"compositionend":return d_(o);case"keypress":return o.which!==32?null:(c_=!0,l_);case"textInput":return i=o.data,i===l_&&c_?null:i;default:return null}}function IL(i,o){if(Ro)return i==="compositionend"||!am&&u_(i,o)?(i=n_(),_u=em=Di=null,Ro=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return s_&&o.locale!=="ko"?null:o.data;default:return null}}var LL={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 f_(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!LL[i.type]:o==="textarea"}function h_(i,o,c,h){wo?To?To.push(h):To=[h]:wo=h,o=sd(o,"onChange"),0<o.length&&(c=new Su("onChange","change",null,c,h),i.push({event:c,listeners:o}))}var el=null,tl=null;function jL(i){Vx(i,0)}function wu(i){var o=Zs(i);if(Z0(o))return i}function m_(i,o){if(i==="change")return o}var p_=!1;if(ei){var om;if(ei){var sm="oninput"in document;if(!sm){var g_=document.createElement("div");g_.setAttribute("oninput","return;"),sm=typeof g_.oninput=="function"}om=sm}else om=!1;p_=om&&(!document.documentMode||9<document.documentMode)}function y_(){el&&(el.detachEvent("onpropertychange",v_),tl=el=null)}function v_(i){if(i.propertyName==="value"&&wu(tl)){var o=[];h_(o,tl,i,Xh(i)),t_(jL,o)}}function ML(i,o,c){i==="focusin"?(y_(),el=o,tl=c,el.attachEvent("onpropertychange",v_)):i==="focusout"&&y_()}function PL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return wu(tl)}function zL(i,o){if(i==="click")return wu(o)}function VL(i,o){if(i==="input"||i==="change")return wu(o)}function BL(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Dn=typeof Object.is=="function"?Object.is:BL;function nl(i,o){if(Dn(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var c=Object.keys(i),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var g=c[h];if(!dr.call(o,g)||!Dn(i[g],o[g]))return!1}return!0}function b_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function __(i,o){var c=b_(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=o&&h>=o)return{node:c,offset:o-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=b_(c)}}function E_(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?E_(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function x_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=vu(i.document);o instanceof i.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)i=o.contentWindow;else break;o=vu(i.document)}return o}function lm(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function UL(i,o){var c=x_(o);o=i.focusedElem;var h=i.selectionRange;if(c!==o&&o&&o.ownerDocument&&E_(o.ownerDocument.documentElement,o)){if(h!==null&&lm(o)){if(i=h.start,c=h.end,c===void 0&&(c=i),"selectionStart"in o)o.selectionStart=i,o.selectionEnd=Math.min(c,o.value.length);else if(c=(i=o.ownerDocument||document)&&i.defaultView||window,c.getSelection){c=c.getSelection();var g=o.textContent.length,_=Math.min(h.start,g);h=h.end===void 0?_:Math.min(h.end,g),!c.extend&&_>h&&(g=h,h=_,_=g),g=__(o,_);var C=__(o,h);g&&C&&(c.rangeCount!==1||c.anchorNode!==g.node||c.anchorOffset!==g.offset||c.focusNode!==C.node||c.focusOffset!==C.offset)&&(i=i.createRange(),i.setStart(g.node,g.offset),c.removeAllRanges(),_>h?(c.addRange(i),c.extend(C.node,C.offset)):(i.setEnd(C.node,C.offset),c.addRange(i)))}}for(i=[],c=o;c=c.parentNode;)c.nodeType===1&&i.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<i.length;o++)c=i[o],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var $L=ei&&"documentMode"in document&&11>=document.documentMode,Co=null,cm=null,rl=null,um=!1;function S_(i,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;um||Co==null||Co!==vu(h)||(h=Co,"selectionStart"in h&&lm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),rl&&nl(rl,h)||(rl=h,h=sd(cm,"onSelect"),0<h.length&&(o=new Su("onSelect","select",null,o,c),i.push({event:o,listeners:h}),o.target=Co)))}function Na(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}var No={animationend:Na("Animation","AnimationEnd"),animationiteration:Na("Animation","AnimationIteration"),animationstart:Na("Animation","AnimationStart"),transitionrun:Na("Transition","TransitionRun"),transitionstart:Na("Transition","TransitionStart"),transitioncancel:Na("Transition","TransitionCancel"),transitionend:Na("Transition","TransitionEnd")},dm={},A_={};ei&&(A_=document.createElement("div").style,"AnimationEvent"in window||(delete No.animationend.animation,delete No.animationiteration.animation,delete No.animationstart.animation),"TransitionEvent"in window||delete No.transitionend.transition);function Oa(i){if(dm[i])return dm[i];if(!No[i])return i;var o=No[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in A_)return dm[i]=o[c];return i}var w_=Oa("animationend"),T_=Oa("animationiteration"),R_=Oa("animationstart"),HL=Oa("transitionrun"),FL=Oa("transitionstart"),GL=Oa("transitioncancel"),C_=Oa("transitionend"),N_=new Map,O_="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function hr(i,o){N_.set(i,o),Ra(o,[i])}var Gn=[],Oo=0,fm=0;function Tu(){for(var i=Oo,o=fm=Oo=0;o<i;){var c=Gn[o];Gn[o++]=null;var h=Gn[o];Gn[o++]=null;var g=Gn[o];Gn[o++]=null;var _=Gn[o];if(Gn[o++]=null,h!==null&&g!==null){var C=h.pending;C===null?g.next=g:(g.next=C.next,C.next=g),h.pending=g}_!==0&&k_(c,g,_)}}function Ru(i,o,c,h){Gn[Oo++]=i,Gn[Oo++]=o,Gn[Oo++]=c,Gn[Oo++]=h,fm|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function hm(i,o,c,h){return Ru(i,o,c,h),Cu(i)}function Ii(i,o){return Ru(i,null,null,o),Cu(i)}function k_(i,o,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var g=!1,_=i.return;_!==null;)_.childLanes|=c,h=_.alternate,h!==null&&(h.childLanes|=c),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(g=!0)),i=_,_=_.return;g&&o!==null&&i.tag===3&&(_=i.stateNode,g=31-yn(c),_=_.hiddenUpdates,i=_[g],i===null?_[g]=[o]:i.push(o),o.lane=c|536870912)}function Cu(i){if(50<Cl)throw Cl=0,bp=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var ko={},D_=new WeakMap;function qn(i,o){if(typeof i=="object"&&i!==null){var c=D_.get(i);return c!==void 0?c:(o={value:i,source:o,stack:re(o)},D_.set(i,o),o)}return{value:i,source:o,stack:re(o)}}var Do=[],Io=0,Nu=null,Ou=0,Kn=[],Zn=0,ka=null,ni=1,ri="";function Da(i,o){Do[Io++]=Ou,Do[Io++]=Nu,Nu=i,Ou=o}function I_(i,o,c){Kn[Zn++]=ni,Kn[Zn++]=ri,Kn[Zn++]=ka,ka=i;var h=ni;i=ri;var g=32-yn(h)-1;h&=~(1<<g),c+=1;var _=32-yn(o)+g;if(30<_){var C=g-g%5;_=(h&(1<<C)-1).toString(32),h>>=C,g-=C,ni=1<<32-yn(o)+g|c<<g|h,ri=_+i}else ni=1<<_|c<<g|h,ri=i}function mm(i){i.return!==null&&(Da(i,1),I_(i,1,0))}function pm(i){for(;i===Nu;)Nu=Do[--Io],Do[Io]=null,Ou=Do[--Io],Do[Io]=null;for(;i===ka;)ka=Kn[--Zn],Kn[Zn]=null,ri=Kn[--Zn],Kn[Zn]=null,ni=Kn[--Zn],Kn[Zn]=null}var vn=null,nn=null,it=!1,mr=null,Nr=!1,gm=Error(r(519));function Ia(i){var o=Error(r(418,""));throw ol(qn(o,i)),gm}function L_(i){var o=i.stateNode,c=i.type,h=i.memoizedProps;switch(o[un]=i,o[wn]=h,c){case"dialog":et("cancel",o),et("close",o);break;case"iframe":case"object":case"embed":et("load",o);break;case"video":case"audio":for(c=0;c<Ol.length;c++)et(Ol[c],o);break;case"source":et("error",o);break;case"img":case"image":case"link":et("error",o),et("load",o);break;case"details":et("toggle",o);break;case"input":et("invalid",o),W0(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),yu(o);break;case"select":et("invalid",o);break;case"textarea":et("invalid",o),X0(o,h.value,h.defaultValue,h.children),yu(o)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||Hx(o.textContent,c)?(h.popover!=null&&(et("beforetoggle",o),et("toggle",o)),h.onScroll!=null&&et("scroll",o),h.onScrollEnd!=null&&et("scrollend",o),h.onClick!=null&&(o.onclick=ld),o=!0):o=!1,o||Ia(i)}function j_(i){for(vn=i.return;vn;)switch(vn.tag){case 3:case 27:Nr=!0;return;case 5:case 13:Nr=!1;return;default:vn=vn.return}}function il(i){if(i!==vn)return!1;if(!it)return j_(i),it=!0,!1;var o=!1,c;if((c=i.tag!==3&&i.tag!==27)&&((c=i.tag===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||Mp(i.type,i.memoizedProps)),c=!c),c&&(o=!0),o&&nn&&Ia(i),j_(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(o===0){nn=gr(i.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;i=i.nextSibling}nn=null}}else nn=vn?gr(i.stateNode.nextSibling):null;return!0}function al(){nn=vn=null,it=!1}function ol(i){mr===null?mr=[i]:mr.push(i)}var sl=Error(r(460)),M_=Error(r(474)),ym={then:function(){}};function P_(i){return i=i.status,i==="fulfilled"||i==="rejected"}function ku(){}function z_(i,o,c){switch(c=i[c],c===void 0?i.push(o):c!==o&&(o.then(ku,ku),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,i===sl?Error(r(483)):i;default:if(typeof o.status=="string")o.then(ku,ku);else{if(i=ft,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,i===sl?Error(r(483)):i}throw ll=o,sl}}var ll=null;function V_(){if(ll===null)throw Error(r(459));var i=ll;return ll=null,i}var Lo=null,cl=0;function Du(i){var o=cl;return cl+=1,Lo===null&&(Lo=[]),z_(Lo,i,o)}function ul(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Iu(i,o){throw o.$$typeof===s?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function B_(i){var o=i._init;return o(i._payload)}function U_(i){function o(Y,G){if(i){var Q=Y.deletions;Q===null?(Y.deletions=[G],Y.flags|=16):Q.push(G)}}function c(Y,G){if(!i)return null;for(;G!==null;)o(Y,G),G=G.sibling;return null}function h(Y){for(var G=new Map;Y!==null;)Y.key!==null?G.set(Y.key,Y):G.set(Y.index,Y),Y=Y.sibling;return G}function g(Y,G){return Y=Gi(Y,G),Y.index=0,Y.sibling=null,Y}function _(Y,G,Q){return Y.index=Q,i?(Q=Y.alternate,Q!==null?(Q=Q.index,Q<G?(Y.flags|=33554434,G):Q):(Y.flags|=33554434,G)):(Y.flags|=1048576,G)}function C(Y){return i&&Y.alternate===null&&(Y.flags|=33554434),Y}function k(Y,G,Q,fe){return G===null||G.tag!==6?(G=dp(Q,Y.mode,fe),G.return=Y,G):(G=g(G,Q),G.return=Y,G)}function z(Y,G,Q,fe){var Re=Q.type;return Re===d?le(Y,G,Q.props.children,fe,Q.key):G!==null&&(G.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===w&&B_(Re)===G.type)?(G=g(G,Q.props),ul(G,Q),G.return=Y,G):(G=Xu(Q.type,Q.key,Q.props,null,Y.mode,fe),ul(G,Q),G.return=Y,G)}function q(Y,G,Q,fe){return G===null||G.tag!==4||G.stateNode.containerInfo!==Q.containerInfo||G.stateNode.implementation!==Q.implementation?(G=fp(Q,Y.mode,fe),G.return=Y,G):(G=g(G,Q.children||[]),G.return=Y,G)}function le(Y,G,Q,fe,Re){return G===null||G.tag!==7?(G=Ha(Q,Y.mode,fe,Re),G.return=Y,G):(G=g(G,Q),G.return=Y,G)}function me(Y,G,Q){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=dp(""+G,Y.mode,Q),G.return=Y,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case l:return Q=Xu(G.type,G.key,G.props,null,Y.mode,Q),ul(Q,G),Q.return=Y,Q;case u:return G=fp(G,Y.mode,Q),G.return=Y,G;case w:var fe=G._init;return G=fe(G._payload),me(Y,G,Q)}if(ee(G)||D(G))return G=Ha(G,Y.mode,Q,null),G.return=Y,G;if(typeof G.then=="function")return me(Y,Du(G),Q);if(G.$$typeof===x)return me(Y,Zu(Y,G),Q);Iu(Y,G)}return null}function ne(Y,G,Q,fe){var Re=G!==null?G.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Re!==null?null:k(Y,G,""+Q,fe);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case l:return Q.key===Re?z(Y,G,Q,fe):null;case u:return Q.key===Re?q(Y,G,Q,fe):null;case w:return Re=Q._init,Q=Re(Q._payload),ne(Y,G,Q,fe)}if(ee(Q)||D(Q))return Re!==null?null:le(Y,G,Q,fe,null);if(typeof Q.then=="function")return ne(Y,G,Du(Q),fe);if(Q.$$typeof===x)return ne(Y,G,Zu(Y,Q),fe);Iu(Y,Q)}return null}function se(Y,G,Q,fe,Re){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return Y=Y.get(Q)||null,k(G,Y,""+fe,Re);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case l:return Y=Y.get(fe.key===null?Q:fe.key)||null,z(G,Y,fe,Re);case u:return Y=Y.get(fe.key===null?Q:fe.key)||null,q(G,Y,fe,Re);case w:var Qe=fe._init;return fe=Qe(fe._payload),se(Y,G,Q,fe,Re)}if(ee(fe)||D(fe))return Y=Y.get(Q)||null,le(G,Y,fe,Re,null);if(typeof fe.then=="function")return se(Y,G,Q,Du(fe),Re);if(fe.$$typeof===x)return se(Y,G,Q,Zu(G,fe),Re);Iu(G,fe)}return null}function ke(Y,G,Q,fe){for(var Re=null,Qe=null,Le=G,Me=G=0,Qt=null;Le!==null&&Me<Q.length;Me++){Le.index>Me?(Qt=Le,Le=null):Qt=Le.sibling;var at=ne(Y,Le,Q[Me],fe);if(at===null){Le===null&&(Le=Qt);break}i&&Le&&at.alternate===null&&o(Y,Le),G=_(at,G,Me),Qe===null?Re=at:Qe.sibling=at,Qe=at,Le=Qt}if(Me===Q.length)return c(Y,Le),it&&Da(Y,Me),Re;if(Le===null){for(;Me<Q.length;Me++)Le=me(Y,Q[Me],fe),Le!==null&&(G=_(Le,G,Me),Qe===null?Re=Le:Qe.sibling=Le,Qe=Le);return it&&Da(Y,Me),Re}for(Le=h(Le);Me<Q.length;Me++)Qt=se(Le,Y,Me,Q[Me],fe),Qt!==null&&(i&&Qt.alternate!==null&&Le.delete(Qt.key===null?Me:Qt.key),G=_(Qt,G,Me),Qe===null?Re=Qt:Qe.sibling=Qt,Qe=Qt);return i&&Le.forEach(function(Qi){return o(Y,Qi)}),it&&Da(Y,Me),Re}function He(Y,G,Q,fe){if(Q==null)throw Error(r(151));for(var Re=null,Qe=null,Le=G,Me=G=0,Qt=null,at=Q.next();Le!==null&&!at.done;Me++,at=Q.next()){Le.index>Me?(Qt=Le,Le=null):Qt=Le.sibling;var Qi=ne(Y,Le,at.value,fe);if(Qi===null){Le===null&&(Le=Qt);break}i&&Le&&Qi.alternate===null&&o(Y,Le),G=_(Qi,G,Me),Qe===null?Re=Qi:Qe.sibling=Qi,Qe=Qi,Le=Qt}if(at.done)return c(Y,Le),it&&Da(Y,Me),Re;if(Le===null){for(;!at.done;Me++,at=Q.next())at=me(Y,at.value,fe),at!==null&&(G=_(at,G,Me),Qe===null?Re=at:Qe.sibling=at,Qe=at);return it&&Da(Y,Me),Re}for(Le=h(Le);!at.done;Me++,at=Q.next())at=se(Le,Y,Me,at.value,fe),at!==null&&(i&&at.alternate!==null&&Le.delete(at.key===null?Me:at.key),G=_(at,G,Me),Qe===null?Re=at:Qe.sibling=at,Qe=at);return i&&Le.forEach(function(aM){return o(Y,aM)}),it&&Da(Y,Me),Re}function Ct(Y,G,Q,fe){if(typeof Q=="object"&&Q!==null&&Q.type===d&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case l:e:{for(var Re=Q.key;G!==null;){if(G.key===Re){if(Re=Q.type,Re===d){if(G.tag===7){c(Y,G.sibling),fe=g(G,Q.props.children),fe.return=Y,Y=fe;break e}}else if(G.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===w&&B_(Re)===G.type){c(Y,G.sibling),fe=g(G,Q.props),ul(fe,Q),fe.return=Y,Y=fe;break e}c(Y,G);break}else o(Y,G);G=G.sibling}Q.type===d?(fe=Ha(Q.props.children,Y.mode,fe,Q.key),fe.return=Y,Y=fe):(fe=Xu(Q.type,Q.key,Q.props,null,Y.mode,fe),ul(fe,Q),fe.return=Y,Y=fe)}return C(Y);case u:e:{for(Re=Q.key;G!==null;){if(G.key===Re)if(G.tag===4&&G.stateNode.containerInfo===Q.containerInfo&&G.stateNode.implementation===Q.implementation){c(Y,G.sibling),fe=g(G,Q.children||[]),fe.return=Y,Y=fe;break e}else{c(Y,G);break}else o(Y,G);G=G.sibling}fe=fp(Q,Y.mode,fe),fe.return=Y,Y=fe}return C(Y);case w:return Re=Q._init,Q=Re(Q._payload),Ct(Y,G,Q,fe)}if(ee(Q))return ke(Y,G,Q,fe);if(D(Q)){if(Re=D(Q),typeof Re!="function")throw Error(r(150));return Q=Re.call(Q),He(Y,G,Q,fe)}if(typeof Q.then=="function")return Ct(Y,G,Du(Q),fe);if(Q.$$typeof===x)return Ct(Y,G,Zu(Y,Q),fe);Iu(Y,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,G!==null&&G.tag===6?(c(Y,G.sibling),fe=g(G,Q),fe.return=Y,Y=fe):(c(Y,G),fe=dp(Q,Y.mode,fe),fe.return=Y,Y=fe),C(Y)):c(Y,G)}return function(Y,G,Q,fe){try{cl=0;var Re=Ct(Y,G,Q,fe);return Lo=null,Re}catch(Le){if(Le===sl)throw Le;var Qe=Qn(29,Le,null,Y.mode);return Qe.lanes=fe,Qe.return=Y,Qe}finally{}}}var La=U_(!0),$_=U_(!1),jo=_e(null),Lu=_e(0);function H_(i,o){i=mi,Te(Lu,i),Te(jo,o),mi=i|o.baseLanes}function vm(){Te(Lu,mi),Te(jo,jo.current)}function bm(){mi=Lu.current,Oe(jo),Oe(Lu)}var Wn=_e(null),Or=null;function Li(i){var o=i.alternate;Te(Ut,Ut.current&1),Te(Wn,i),Or===null&&(o===null||jo.current!==null||o.memoizedState!==null)&&(Or=i)}function F_(i){if(i.tag===22){if(Te(Ut,Ut.current),Te(Wn,i),Or===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(Or=i)}}else ji()}function ji(){Te(Ut,Ut.current),Te(Wn,Wn.current)}function ii(i){Oe(Wn),Or===i&&(Or=null),Oe(Ut)}var Ut=_e(0);function ju(i){for(var o=i;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var qL=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(c){return c()})}},KL=e.unstable_scheduleCallback,ZL=e.unstable_NormalPriority,$t={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _m(){return{controller:new qL,data:new Map,refCount:0}}function dl(i){i.refCount--,i.refCount===0&&KL(ZL,function(){i.controller.abort()})}var fl=null,Em=0,Mo=0,Po=null;function WL(i,o){if(fl===null){var c=fl=[];Em=0,Mo=Rp(),Po={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Em++,o.then(G_,G_),o}function G_(){if(--Em===0&&fl!==null){Po!==null&&(Po.status="fulfilled");var i=fl;fl=null,Mo=0,Po=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function YL(i,o){var c=[],h={status:"pending",value:null,reason:null,then:function(g){c.push(g)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<c.length;g++)(0,c[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<c.length;g++)(0,c[g])(void 0)}),h}var q_=P.S;P.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&WL(i,o),q_!==null&&q_(i,o)};var ja=_e(null);function xm(){var i=ja.current;return i!==null?i:ft.pooledCache}function Mu(i,o){o===null?Te(ja,ja.current):Te(ja,o.pool)}function K_(){var i=xm();return i===null?null:{parent:$t._currentValue,pool:i}}var Mi=0,Ye=null,lt=null,Lt=null,Pu=!1,zo=!1,Ma=!1,zu=0,hl=0,Vo=null,XL=0;function Ot(){throw Error(r(321))}function Sm(i,o){if(o===null)return!1;for(var c=0;c<o.length&&c<i.length;c++)if(!Dn(i[c],o[c]))return!1;return!0}function Am(i,o,c,h,g,_){return Mi=_,Ye=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,P.H=i===null||i.memoizedState===null?Pa:Pi,Ma=!1,_=c(h,g),Ma=!1,zo&&(_=W_(o,c,h,g)),Z_(i),_}function Z_(i){P.H=kr;var o=lt!==null&<.next!==null;if(Mi=0,Lt=lt=Ye=null,Pu=!1,hl=0,Vo=null,o)throw Error(r(300));i===null||Yt||(i=i.dependencies,i!==null&&Ku(i)&&(Yt=!0))}function W_(i,o,c,h){Ye=i;var g=0;do{if(zo&&(Vo=null),hl=0,zo=!1,25<=g)throw Error(r(301));if(g+=1,Lt=lt=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}P.H=za,_=o(c,h)}while(zo);return _}function QL(){var i=P.H,o=i.useState()[0];return o=typeof o.then=="function"?ml(o):o,i=i.useState()[0],(lt!==null?lt.memoizedState:null)!==i&&(Ye.flags|=1024),o}function wm(){var i=zu!==0;return zu=0,i}function Tm(i,o,c){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~c}function Rm(i){if(Pu){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Pu=!1}Mi=0,Lt=lt=Ye=null,zo=!1,hl=zu=0,Vo=null}function Rn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?Ye.memoizedState=Lt=i:Lt=Lt.next=i,Lt}function jt(){if(lt===null){var i=Ye.alternate;i=i!==null?i.memoizedState:null}else i=lt.next;var o=Lt===null?Ye.memoizedState:Lt.next;if(o!==null)Lt=o,lt=i;else{if(i===null)throw Ye.alternate===null?Error(r(467)):Error(r(310));lt=i,i={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Lt===null?Ye.memoizedState=Lt=i:Lt=Lt.next=i}return Lt}var Vu;Vu=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function ml(i){var o=hl;return hl+=1,Vo===null&&(Vo=[]),i=z_(Vo,i,o),o=Ye,(Lt===null?o.memoizedState:Lt.next)===null&&(o=o.alternate,P.H=o===null||o.memoizedState===null?Pa:Pi),i}function Bu(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return ml(i);if(i.$$typeof===x)return dn(i)}throw Error(r(438,String(i)))}function Cm(i){var o=null,c=Ye.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=Ye.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=Vu(),Ye.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(i),h=0;h<i;h++)c[h]=O;return o.index++,c}function ai(i,o){return typeof o=="function"?o(i):o}function Uu(i){var o=jt();return Nm(o,lt,i)}function Nm(i,o,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var g=i.baseQueue,_=h.pending;if(_!==null){if(g!==null){var C=g.next;g.next=_.next,_.next=C}o.baseQueue=g=_,h.pending=null}if(_=i.baseState,g===null)i.memoizedState=_;else{o=g.next;var k=C=null,z=null,q=o,le=!1;do{var me=q.lane&-536870913;if(me!==q.lane?(nt&me)===me:(Mi&me)===me){var ne=q.revertLane;if(ne===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),me===Mo&&(le=!0);else if((Mi&ne)===ne){q=q.next,ne===Mo&&(le=!0);continue}else me={lane:0,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},z===null?(k=z=me,C=_):z=z.next=me,Ye.lanes|=ne,qi|=ne;me=q.action,Ma&&c(_,me),_=q.hasEagerState?q.eagerState:c(_,me)}else ne={lane:me,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},z===null?(k=z=ne,C=_):z=z.next=ne,Ye.lanes|=me,qi|=me;q=q.next}while(q!==null&&q!==o);if(z===null?C=_:z.next=k,!Dn(_,i.memoizedState)&&(Yt=!0,le&&(c=Po,c!==null)))throw c;i.memoizedState=_,i.baseState=C,i.baseQueue=z,h.lastRenderedState=_}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Om(i){var o=jt(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,g=c.pending,_=o.memoizedState;if(g!==null){c.pending=null;var C=g=g.next;do _=i(_,C.action),C=C.next;while(C!==g);Dn(_,o.memoizedState)||(Yt=!0),o.memoizedState=_,o.baseQueue===null&&(o.baseState=_),c.lastRenderedState=_}return[_,h]}function Y_(i,o,c){var h=Ye,g=jt(),_=it;if(_){if(c===void 0)throw Error(r(407));c=c()}else c=o();var C=!Dn((lt||g).memoizedState,c);if(C&&(g.memoizedState=c,Yt=!0),g=g.queue,Im(J_.bind(null,h,g,i),[i]),g.getSnapshot!==o||C||Lt!==null&&Lt.memoizedState.tag&1){if(h.flags|=2048,Bo(9,Q_.bind(null,h,g,c,o),{destroy:void 0},null),ft===null)throw Error(r(349));_||(Mi&60)!==0||X_(h,o,c)}return c}function X_(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=Ye.updateQueue,o===null?(o=Vu(),Ye.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function Q_(i,o,c,h){o.value=c,o.getSnapshot=h,eE(o)&&tE(i)}function J_(i,o,c){return c(function(){eE(o)&&tE(i)})}function eE(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!Dn(i,c)}catch{return!0}}function tE(i){var o=Ii(i,2);o!==null&&bn(o,i,2)}function km(i){var o=Rn();if(typeof i=="function"){var c=i;if(i=c(),Ma){fr(!0);try{c()}finally{fr(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:i},o}function nE(i,o,c,h){return i.baseState=c,Nm(i,lt,typeof h=="function"?h:ai)}function JL(i,o,c,h,g){if(Fu(i))throw Error(r(485));if(i=o.action,i!==null){var _={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){_.listeners.push(C)}};P.T!==null?c(!0):_.isTransition=!1,h(_),c=o.pending,c===null?(_.next=o.pending=_,rE(o,_)):(_.next=c.next,o.pending=c.next=_)}}function rE(i,o){var c=o.action,h=o.payload,g=i.state;if(o.isTransition){var _=P.T,C={};P.T=C;try{var k=c(g,h),z=P.S;z!==null&&z(C,k),iE(i,o,k)}catch(q){Dm(i,o,q)}finally{P.T=_}}else try{_=c(g,h),iE(i,o,_)}catch(q){Dm(i,o,q)}}function iE(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){aE(i,o,h)},function(h){return Dm(i,o,h)}):aE(i,o,c)}function aE(i,o,c){o.status="fulfilled",o.value=c,oE(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,rE(i,c)))}function Dm(i,o,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,oE(o),o=o.next;while(o!==h)}i.action=null}function oE(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function sE(i,o){return o}function lE(i,o){if(it){var c=ft.formState;if(c!==null){e:{var h=Ye;if(it){if(nn){t:{for(var g=nn,_=Nr;g.nodeType!==8;){if(!_){g=null;break t}if(g=gr(g.nextSibling),g===null){g=null;break t}}_=g.data,g=_==="F!"||_==="F"?g:null}if(g){nn=gr(g.nextSibling),h=g.data==="F!";break e}}Ia(h)}h=!1}h&&(o=c[0])}}return c=Rn(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sE,lastRenderedState:o},c.queue=h,c=TE.bind(null,Ye,h),h.dispatch=c,h=km(!1),_=zm.bind(null,Ye,!1,h.queue),h=Rn(),g={state:o,dispatch:null,action:i,pending:null},h.queue=g,c=JL.bind(null,Ye,g,_,c),g.dispatch=c,h.memoizedState=i,[o,c,!1]}function cE(i){var o=jt();return uE(o,lt,i)}function uE(i,o,c){o=Nm(i,o,sE)[0],i=Uu(ai)[0],o=typeof o=="object"&&o!==null&&typeof o.then=="function"?ml(o):o;var h=jt(),g=h.queue,_=g.dispatch;return c!==h.memoizedState&&(Ye.flags|=2048,Bo(9,ej.bind(null,g,c),{destroy:void 0},null)),[o,_,i]}function ej(i,o){i.action=o}function dE(i){var o=jt(),c=lt;if(c!==null)return uE(o,c,i);jt(),o=o.memoizedState,c=jt();var h=c.queue.dispatch;return c.memoizedState=i,[o,h,!1]}function Bo(i,o,c,h){return i={tag:i,create:o,inst:c,deps:h,next:null},o=Ye.updateQueue,o===null&&(o=Vu(),Ye.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,o.lastEffect=i),i}function fE(){return jt().memoizedState}function $u(i,o,c,h){var g=Rn();Ye.flags|=i,g.memoizedState=Bo(1|o,c,{destroy:void 0},h===void 0?null:h)}function Hu(i,o,c,h){var g=jt();h=h===void 0?null:h;var _=g.memoizedState.inst;lt!==null&&h!==null&&Sm(h,lt.memoizedState.deps)?g.memoizedState=Bo(o,c,_,h):(Ye.flags|=i,g.memoizedState=Bo(1|o,c,_,h))}function hE(i,o){$u(8390656,8,i,o)}function Im(i,o){Hu(2048,8,i,o)}function mE(i,o){return Hu(4,2,i,o)}function pE(i,o){return Hu(4,4,i,o)}function gE(i,o){if(typeof o=="function"){i=i();var c=o(i);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function yE(i,o,c){c=c!=null?c.concat([i]):null,Hu(4,4,gE.bind(null,o,i),c)}function Lm(){}function vE(i,o){var c=jt();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&Sm(o,h[1])?h[0]:(c.memoizedState=[i,o],i)}function bE(i,o){var c=jt();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&Sm(o,h[1]))return h[0];if(h=i(),Ma){fr(!0);try{i()}finally{fr(!1)}}return c.memoizedState=[h,o],h}function jm(i,o,c){return c===void 0||(Mi&1073741824)!==0?i.memoizedState=o:(i.memoizedState=c,i=Ex(),Ye.lanes|=i,qi|=i,c)}function _E(i,o,c,h){return Dn(c,o)?c:jo.current!==null?(i=jm(i,c,h),Dn(i,o)||(Yt=!0),i):(Mi&42)===0?(Yt=!0,i.memoizedState=c):(i=Ex(),Ye.lanes|=i,qi|=i,o)}function EE(i,o,c,h,g){var _=ie.p;ie.p=_!==0&&8>_?_:8;var C=P.T,k={};P.T=k,zm(i,!1,o,c);try{var z=g(),q=P.S;if(q!==null&&q(k,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var le=YL(z,h);pl(i,o,le,Mn(i))}else pl(i,o,h,Mn(i))}catch(me){pl(i,o,{then:function(){},status:"rejected",reason:me},Mn())}finally{ie.p=_,P.T=C}}function tj(){}function Mm(i,o,c,h){if(i.tag!==5)throw Error(r(476));var g=xE(i).queue;EE(i,g,o,he,c===null?tj:function(){return SE(i),c(h)})}function xE(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:he},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function SE(i){var o=xE(i).next.queue;pl(i,o,{},Mn())}function Pm(){return dn(jl)}function AE(){return jt().memoizedState}function wE(){return jt().memoizedState}function nj(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var c=Mn();i=Bi(c);var h=Ui(o,i,c);h!==null&&(bn(h,o,c),vl(h,o,c)),o={cache:_m()},i.payload=o;return}o=o.return}}function rj(i,o,c){var h=Mn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Fu(i)?RE(o,c):(c=hm(i,o,c,h),c!==null&&(bn(c,i,h),CE(c,o,h)))}function TE(i,o,c){var h=Mn();pl(i,o,c,h)}function pl(i,o,c,h){var g={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Fu(i))RE(o,g);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=o.lastRenderedReducer,_!==null))try{var C=o.lastRenderedState,k=_(C,c);if(g.hasEagerState=!0,g.eagerState=k,Dn(k,C))return Ru(i,o,g,0),ft===null&&Tu(),!1}catch{}finally{}if(c=hm(i,o,g,h),c!==null)return bn(c,i,h),CE(c,o,h),!0}return!1}function zm(i,o,c,h){if(h={lane:2,revertLane:Rp(),action:h,hasEagerState:!1,eagerState:null,next:null},Fu(i)){if(o)throw Error(r(479))}else o=hm(i,c,h,2),o!==null&&bn(o,i,2)}function Fu(i){var o=i.alternate;return i===Ye||o!==null&&o===Ye}function RE(i,o){zo=Pu=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function CE(i,o,c){if((c&4194176)!==0){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,V0(i,c)}}var kr={readContext:dn,use:Bu,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot};kr.useCacheRefresh=Ot,kr.useMemoCache=Ot,kr.useHostTransitionStatus=Ot,kr.useFormState=Ot,kr.useActionState=Ot,kr.useOptimistic=Ot;var Pa={readContext:dn,use:Bu,useCallback:function(i,o){return Rn().memoizedState=[i,o===void 0?null:o],i},useContext:dn,useEffect:hE,useImperativeHandle:function(i,o,c){c=c!=null?c.concat([i]):null,$u(4194308,4,gE.bind(null,o,i),c)},useLayoutEffect:function(i,o){return $u(4194308,4,i,o)},useInsertionEffect:function(i,o){$u(4,2,i,o)},useMemo:function(i,o){var c=Rn();o=o===void 0?null:o;var h=i();if(Ma){fr(!0);try{i()}finally{fr(!1)}}return c.memoizedState=[h,o],h},useReducer:function(i,o,c){var h=Rn();if(c!==void 0){var g=c(o);if(Ma){fr(!0);try{c(o)}finally{fr(!1)}}}else g=o;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=rj.bind(null,Ye,i),[h.memoizedState,i]},useRef:function(i){var o=Rn();return i={current:i},o.memoizedState=i},useState:function(i){i=km(i);var o=i.queue,c=TE.bind(null,Ye,o);return o.dispatch=c,[i.memoizedState,c]},useDebugValue:Lm,useDeferredValue:function(i,o){var c=Rn();return jm(c,i,o)},useTransition:function(){var i=km(!1);return i=EE.bind(null,Ye,i.queue,!0,!1),Rn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,c){var h=Ye,g=Rn();if(it){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),ft===null)throw Error(r(349));(nt&60)!==0||X_(h,o,c)}g.memoizedState=c;var _={value:c,getSnapshot:o};return g.queue=_,hE(J_.bind(null,h,_,i),[i]),h.flags|=2048,Bo(9,Q_.bind(null,h,_,c,o),{destroy:void 0},null),c},useId:function(){var i=Rn(),o=ft.identifierPrefix;if(it){var c=ri,h=ni;c=(h&~(1<<32-yn(h)-1)).toString(32)+c,o=":"+o+"R"+c,c=zu++,0<c&&(o+="H"+c.toString(32)),o+=":"}else c=XL++,o=":"+o+"r"+c.toString(32)+":";return i.memoizedState=o},useCacheRefresh:function(){return Rn().memoizedState=nj.bind(null,Ye)}};Pa.useMemoCache=Cm,Pa.useHostTransitionStatus=Pm,Pa.useFormState=lE,Pa.useActionState=lE,Pa.useOptimistic=function(i){var o=Rn();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=zm.bind(null,Ye,!0,c),c.dispatch=o,[i,o]};var Pi={readContext:dn,use:Bu,useCallback:vE,useContext:dn,useEffect:Im,useImperativeHandle:yE,useInsertionEffect:mE,useLayoutEffect:pE,useMemo:bE,useReducer:Uu,useRef:fE,useState:function(){return Uu(ai)},useDebugValue:Lm,useDeferredValue:function(i,o){var c=jt();return _E(c,lt.memoizedState,i,o)},useTransition:function(){var i=Uu(ai)[0],o=jt().memoizedState;return[typeof i=="boolean"?i:ml(i),o]},useSyncExternalStore:Y_,useId:AE};Pi.useCacheRefresh=wE,Pi.useMemoCache=Cm,Pi.useHostTransitionStatus=Pm,Pi.useFormState=cE,Pi.useActionState=cE,Pi.useOptimistic=function(i,o){var c=jt();return nE(c,lt,i,o)};var za={readContext:dn,use:Bu,useCallback:vE,useContext:dn,useEffect:Im,useImperativeHandle:yE,useInsertionEffect:mE,useLayoutEffect:pE,useMemo:bE,useReducer:Om,useRef:fE,useState:function(){return Om(ai)},useDebugValue:Lm,useDeferredValue:function(i,o){var c=jt();return lt===null?jm(c,i,o):_E(c,lt.memoizedState,i,o)},useTransition:function(){var i=Om(ai)[0],o=jt().memoizedState;return[typeof i=="boolean"?i:ml(i),o]},useSyncExternalStore:Y_,useId:AE};za.useCacheRefresh=wE,za.useMemoCache=Cm,za.useHostTransitionStatus=Pm,za.useFormState=dE,za.useActionState=dE,za.useOptimistic=function(i,o){var c=jt();return lt!==null?nE(c,lt,i,o):(c.baseState=i,[i,c.queue.dispatch])};function Vm(i,o,c,h){o=i.memoizedState,c=c(h,o),c=c==null?o:M({},o,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var Bm={isMounted:function(i){return(i=i._reactInternals)?K(i)===i:!1},enqueueSetState:function(i,o,c){i=i._reactInternals;var h=Mn(),g=Bi(h);g.payload=o,c!=null&&(g.callback=c),o=Ui(i,g,h),o!==null&&(bn(o,i,h),vl(o,i,h))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var h=Mn(),g=Bi(h);g.tag=1,g.payload=o,c!=null&&(g.callback=c),o=Ui(i,g,h),o!==null&&(bn(o,i,h),vl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=Mn(),h=Bi(c);h.tag=2,o!=null&&(h.callback=o),o=Ui(i,h,c),o!==null&&(bn(o,i,c),vl(o,i,c))}};function NE(i,o,c,h,g,_,C){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,_,C):o.prototype&&o.prototype.isPureReactComponent?!nl(c,h)||!nl(g,_):!0}function OE(i,o,c,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==i&&Bm.enqueueReplaceState(o,o.state,null)}function Va(i,o){var c=o;if("ref"in o){c={};for(var h in o)h!=="ref"&&(c[h]=o[h])}if(i=i.defaultProps){c===o&&(c=M({},c));for(var g in i)c[g]===void 0&&(c[g]=i[g])}return c}var Gu=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function kE(i){Gu(i)}function DE(i){console.error(i)}function IE(i){Gu(i)}function qu(i,o){try{var c=i.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function LE(i,o,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Um(i,o,c){return c=Bi(c),c.tag=3,c.payload={element:null},c.callback=function(){qu(i,o)},c}function jE(i){return i=Bi(i),i.tag=3,i}function ME(i,o,c,h){var g=c.type.getDerivedStateFromError;if(typeof g=="function"){var _=h.value;i.payload=function(){return g(_)},i.callback=function(){LE(o,c,h)}}var C=c.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(i.callback=function(){LE(o,c,h),typeof g!="function"&&(Ki===null?Ki=new Set([this]):Ki.add(this));var k=h.stack;this.componentDidCatch(h.value,{componentStack:k!==null?k:""})})}function ij(i,o,c,h,g){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&yl(o,c,g,!0),c=Wn.current,c!==null){switch(c.tag){case 13:return Or===null?xp():c.alternate===null&&Rt===0&&(Rt=3),c.flags&=-257,c.flags|=65536,c.lanes=g,h===ym?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),Ap(i,h,g)),!1;case 22:return c.flags|=65536,h===ym?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([h]):c.add(h)),Ap(i,h,g)),!1}throw Error(r(435,c.tag))}return Ap(i,h,g),xp(),!1}if(it)return o=Wn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==gm&&(i=Error(r(422),{cause:h}),ol(qn(i,c)))):(h!==gm&&(o=Error(r(423),{cause:h}),ol(qn(o,c))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=qn(h,c),g=Um(i.stateNode,h,g),np(i,g),Rt!==4&&(Rt=2)),!1;var _=Error(r(520),{cause:h});if(_=qn(_,c),Tl===null?Tl=[_]:Tl.push(_),Rt!==4&&(Rt=2),o===null)return!0;h=qn(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=g&-g,c.lanes|=i,i=Um(c.stateNode,h,i),np(c,i),!1;case 1:if(o=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Ki===null||!Ki.has(_))))return c.flags|=65536,g&=-g,c.lanes|=g,g=jE(g),ME(g,i,c,h),np(c,g),!1}c=c.return}while(c!==null);return!1}var PE=Error(r(461)),Yt=!1;function rn(i,o,c,h){o.child=i===null?$_(o,null,c,h):La(o,i.child,c,h)}function zE(i,o,c,h,g){c=c.render;var _=o.ref;if("ref"in h){var C={};for(var k in h)k!=="ref"&&(C[k]=h[k])}else C=h;return Ua(o),h=Am(i,o,c,C,_,g),k=wm(),i!==null&&!Yt?(Tm(i,o,g),oi(i,o,g)):(it&&k&&mm(o),o.flags|=1,rn(i,o,h,g),o.child)}function VE(i,o,c,h,g){if(i===null){var _=c.type;return typeof _=="function"&&!up(_)&&_.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=_,BE(i,o,_,h,g)):(i=Xu(c.type,null,h,o,o.mode,g),i.ref=o.ref,i.return=o,o.child=i)}if(_=i.child,!Ym(i,g)){var C=_.memoizedProps;if(c=c.compare,c=c!==null?c:nl,c(C,h)&&i.ref===o.ref)return oi(i,o,g)}return o.flags|=1,i=Gi(_,h),i.ref=o.ref,i.return=o,o.child=i}function BE(i,o,c,h,g){if(i!==null){var _=i.memoizedProps;if(nl(_,h)&&i.ref===o.ref)if(Yt=!1,o.pendingProps=h=_,Ym(i,g))(i.flags&131072)!==0&&(Yt=!0);else return o.lanes=i.lanes,oi(i,o,g)}return $m(i,o,c,h,g)}function UE(i,o,c){var h=o.pendingProps,g=h.children,_=(o.stateNode._pendingVisibility&2)!==0,C=i!==null?i.memoizedState:null;if(gl(i,o),h.mode==="hidden"||_){if((o.flags&128)!==0){if(h=C!==null?C.baseLanes|c:c,i!==null){for(g=o.child=i.child,_=0;g!==null;)_=_|g.lanes|g.childLanes,g=g.sibling;o.childLanes=_&~h}else o.childLanes=0,o.child=null;return $E(i,o,h,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Mu(o,C!==null?C.cachePool:null),C!==null?H_(o,C):vm(),F_(o);else return o.lanes=o.childLanes=536870912,$E(i,o,C!==null?C.baseLanes|c:c,c)}else C!==null?(Mu(o,C.cachePool),H_(o,C),ji(),o.memoizedState=null):(i!==null&&Mu(o,null),vm(),ji());return rn(i,o,g,c),o.child}function $E(i,o,c,h){var g=xm();return g=g===null?null:{parent:$t._currentValue,pool:g},o.memoizedState={baseLanes:c,cachePool:g},i!==null&&Mu(o,null),vm(),F_(o),i!==null&&yl(i,o,h,!0),null}function gl(i,o){var c=o.ref;if(c===null)i!==null&&i.ref!==null&&(o.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(o.flags|=2097664)}}function $m(i,o,c,h,g){return Ua(o),c=Am(i,o,c,h,void 0,g),h=wm(),i!==null&&!Yt?(Tm(i,o,g),oi(i,o,g)):(it&&h&&mm(o),o.flags|=1,rn(i,o,c,g),o.child)}function HE(i,o,c,h,g,_){return Ua(o),o.updateQueue=null,c=W_(o,h,c,g),Z_(i),h=wm(),i!==null&&!Yt?(Tm(i,o,_),oi(i,o,_)):(it&&h&&mm(o),o.flags|=1,rn(i,o,c,_),o.child)}function FE(i,o,c,h,g){if(Ua(o),o.stateNode===null){var _=ko,C=c.contextType;typeof C=="object"&&C!==null&&(_=dn(C)),_=new c(h,_),o.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=Bm,o.stateNode=_,_._reactInternals=o,_=o.stateNode,_.props=h,_.state=o.memoizedState,_.refs={},ep(o),C=c.contextType,_.context=typeof C=="object"&&C!==null?dn(C):ko,_.state=o.memoizedState,C=c.getDerivedStateFromProps,typeof C=="function"&&(Vm(o,c,C,h),_.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(C=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),C!==_.state&&Bm.enqueueReplaceState(_,_.state,null),_l(o,h,_,g),bl(),_.state=o.memoizedState),typeof _.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){_=o.stateNode;var k=o.memoizedProps,z=Va(c,k);_.props=z;var q=_.context,le=c.contextType;C=ko,typeof le=="object"&&le!==null&&(C=dn(le));var me=c.getDerivedStateFromProps;le=typeof me=="function"||typeof _.getSnapshotBeforeUpdate=="function",k=o.pendingProps!==k,le||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(k||q!==C)&&OE(o,_,h,C),Vi=!1;var ne=o.memoizedState;_.state=ne,_l(o,h,_,g),bl(),q=o.memoizedState,k||ne!==q||Vi?(typeof me=="function"&&(Vm(o,c,me,h),q=o.memoizedState),(z=Vi||NE(o,c,z,h,ne,q,C))?(le||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=q),_.props=h,_.state=q,_.context=C,h=z):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{_=o.stateNode,tp(i,o),C=o.memoizedProps,le=Va(c,C),_.props=le,me=o.pendingProps,ne=_.context,q=c.contextType,z=ko,typeof q=="object"&&q!==null&&(z=dn(q)),k=c.getDerivedStateFromProps,(q=typeof k=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(C!==me||ne!==z)&&OE(o,_,h,z),Vi=!1,ne=o.memoizedState,_.state=ne,_l(o,h,_,g),bl();var se=o.memoizedState;C!==me||ne!==se||Vi||i!==null&&i.dependencies!==null&&Ku(i.dependencies)?(typeof k=="function"&&(Vm(o,c,k,h),se=o.memoizedState),(le=Vi||NE(o,c,le,h,ne,se,z)||i!==null&&i.dependencies!==null&&Ku(i.dependencies))?(q||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(h,se,z),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(h,se,z)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||C===i.memoizedProps&&ne===i.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&ne===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=se),_.props=h,_.state=se,_.context=z,h=le):(typeof _.componentDidUpdate!="function"||C===i.memoizedProps&&ne===i.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&ne===i.memoizedState||(o.flags|=1024),h=!1)}return _=h,gl(i,o),h=(o.flags&128)!==0,_||h?(_=o.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:_.render(),o.flags|=1,i!==null&&h?(o.child=La(o,i.child,null,g),o.child=La(o,null,c,g)):rn(i,o,c,g),o.memoizedState=_.state,i=o.child):i=oi(i,o,g),i}function GE(i,o,c,h){return al(),o.flags|=256,rn(i,o,c,h),o.child}var Hm={dehydrated:null,treeContext:null,retryLane:0};function Fm(i){return{baseLanes:i,cachePool:K_()}}function Gm(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=Jn),i}function qE(i,o,c){var h=o.pendingProps,g=!1,_=(o.flags&128)!==0,C;if((C=_)||(C=i!==null&&i.memoizedState===null?!1:(Ut.current&2)!==0),C&&(g=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,i===null){if(it){if(g?Li(o):ji(),it){var k=nn,z;if(z=k){e:{for(z=k,k=Nr;z.nodeType!==8;){if(!k){k=null;break e}if(z=gr(z.nextSibling),z===null){k=null;break e}}k=z}k!==null?(o.memoizedState={dehydrated:k,treeContext:ka!==null?{id:ni,overflow:ri}:null,retryLane:536870912},z=Qn(18,null,null,0),z.stateNode=k,z.return=o,o.child=z,vn=o,nn=null,z=!0):z=!1}z||Ia(o)}if(k=o.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return k.data==="$!"?o.lanes=16:o.lanes=536870912,null;ii(o)}return k=h.children,h=h.fallback,g?(ji(),g=o.mode,k=Km({mode:"hidden",children:k},g),h=Ha(h,g,c,null),k.return=o,h.return=o,k.sibling=h,o.child=k,g=o.child,g.memoizedState=Fm(c),g.childLanes=Gm(i,C,c),o.memoizedState=Hm,h):(Li(o),qm(o,k))}if(z=i.memoizedState,z!==null&&(k=z.dehydrated,k!==null)){if(_)o.flags&256?(Li(o),o.flags&=-257,o=Zm(i,o,c)):o.memoizedState!==null?(ji(),o.child=i.child,o.flags|=128,o=null):(ji(),g=h.fallback,k=o.mode,h=Km({mode:"visible",children:h.children},k),g=Ha(g,k,c,null),g.flags|=2,h.return=o,g.return=o,h.sibling=g,o.child=h,La(o,i.child,null,c),h=o.child,h.memoizedState=Fm(c),h.childLanes=Gm(i,C,c),o.memoizedState=Hm,o=g);else if(Li(o),k.data==="$!"){if(C=k.nextSibling&&k.nextSibling.dataset,C)var q=C.dgst;C=q,h=Error(r(419)),h.stack="",h.digest=C,ol({value:h,source:null,stack:null}),o=Zm(i,o,c)}else if(Yt||yl(i,o,c,!1),C=(c&i.childLanes)!==0,Yt||C){if(C=ft,C!==null){if(h=c&-c,(h&42)!==0)h=1;else switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=16;break;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:h=64;break;case 268435456:h=134217728;break;default:h=0}if(h=(h&(C.suspendedLanes|c))!==0?0:h,h!==0&&h!==z.retryLane)throw z.retryLane=h,Ii(i,h),bn(C,i,h),PE}k.data==="$?"||xp(),o=Zm(i,o,c)}else k.data==="$?"?(o.flags|=128,o.child=i.child,o=bj.bind(null,i),k._reactRetry=o,o=null):(i=z.treeContext,nn=gr(k.nextSibling),vn=o,it=!0,mr=null,Nr=!1,i!==null&&(Kn[Zn++]=ni,Kn[Zn++]=ri,Kn[Zn++]=ka,ni=i.id,ri=i.overflow,ka=o),o=qm(o,h.children),o.flags|=4096);return o}return g?(ji(),g=h.fallback,k=o.mode,z=i.child,q=z.sibling,h=Gi(z,{mode:"hidden",children:h.children}),h.subtreeFlags=z.subtreeFlags&31457280,q!==null?g=Gi(q,g):(g=Ha(g,k,c,null),g.flags|=2),g.return=o,h.return=o,h.sibling=g,o.child=h,h=g,g=o.child,k=i.child.memoizedState,k===null?k=Fm(c):(z=k.cachePool,z!==null?(q=$t._currentValue,z=z.parent!==q?{parent:q,pool:q}:z):z=K_(),k={baseLanes:k.baseLanes|c,cachePool:z}),g.memoizedState=k,g.childLanes=Gm(i,C,c),o.memoizedState=Hm,h):(Li(o),c=i.child,i=c.sibling,c=Gi(c,{mode:"visible",children:h.children}),c.return=o,c.sibling=null,i!==null&&(C=o.deletions,C===null?(o.deletions=[i],o.flags|=16):C.push(i)),o.child=c,o.memoizedState=null,c)}function qm(i,o){return o=Km({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function Km(i,o){return vx(i,o,0,null)}function Zm(i,o,c){return La(o,i.child,null,c),i=qm(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function KE(i,o,c){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Qm(i.return,o,c)}function Wm(i,o,c,h,g){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:g}:(_.isBackwards=o,_.rendering=null,_.renderingStartTime=0,_.last=h,_.tail=c,_.tailMode=g)}function ZE(i,o,c){var h=o.pendingProps,g=h.revealOrder,_=h.tail;if(rn(i,o,h.children,c),h=Ut.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&KE(i,c,o);else if(i.tag===19)KE(i,c,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(Te(Ut,h),g){case"forwards":for(c=o.child,g=null;c!==null;)i=c.alternate,i!==null&&ju(i)===null&&(g=c),c=c.sibling;c=g,c===null?(g=o.child,o.child=null):(g=c.sibling,c.sibling=null),Wm(o,!1,g,c,_);break;case"backwards":for(c=null,g=o.child,o.child=null;g!==null;){if(i=g.alternate,i!==null&&ju(i)===null){o.child=g;break}i=g.sibling,g.sibling=c,c=g,g=i}Wm(o,!0,c,null,_);break;case"together":Wm(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function oi(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),qi|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(yl(i,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,c=Gi(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=Gi(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function Ym(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&Ku(i)))}function aj(i,o,c){switch(o.tag){case 3:kn(o,o.stateNode.containerInfo),zi(o,$t,i.memoizedState.cache),al();break;case 27:case 5:ur(o);break;case 4:kn(o,o.stateNode.containerInfo);break;case 10:zi(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Li(o),o.flags|=128,null):(c&o.child.childLanes)!==0?qE(i,o,c):(Li(o),i=oi(i,o,c),i!==null?i.sibling:null);Li(o);break;case 19:var g=(i.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(yl(i,o,c,!1),h=(c&o.childLanes)!==0),g){if(h)return ZE(i,o,c);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),Te(Ut,Ut.current),h)break;return null;case 22:case 23:return o.lanes=0,UE(i,o,c);case 24:zi(o,$t,i.memoizedState.cache)}return oi(i,o,c)}function WE(i,o,c){if(i!==null)if(i.memoizedProps!==o.pendingProps)Yt=!0;else{if(!Ym(i,c)&&(o.flags&128)===0)return Yt=!1,aj(i,o,c);Yt=(i.flags&131072)!==0}else Yt=!1,it&&(o.flags&1048576)!==0&&I_(o,Ou,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,g=h._init;if(h=g(h._payload),o.type=h,typeof h=="function")up(h)?(i=Va(h,i),o.tag=1,o=FE(null,o,h,i,c)):(o.tag=0,o=$m(null,o,h,i,c));else{if(h!=null){if(g=h.$$typeof,g===y){o.tag=11,o=zE(null,o,h,i,c);break e}else if(g===T){o.tag=14,o=VE(null,o,h,i,c);break e}}throw o=j(h)||h,Error(r(306,o,""))}}return o;case 0:return $m(i,o,o.type,o.pendingProps,c);case 1:return h=o.type,g=Va(h,o.pendingProps),FE(i,o,h,g,c);case 3:e:{if(kn(o,o.stateNode.containerInfo),i===null)throw Error(r(387));var _=o.pendingProps;g=o.memoizedState,h=g.element,tp(i,o),_l(o,_,null,c);var C=o.memoizedState;if(_=C.cache,zi(o,$t,_),_!==g.cache&&Jm(o,[$t],c,!0),bl(),_=C.element,g.isDehydrated)if(g={element:_,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){o=GE(i,o,_,c);break e}else if(_!==h){h=qn(Error(r(424)),o),ol(h),o=GE(i,o,_,c);break e}else for(nn=gr(o.stateNode.containerInfo.firstChild),vn=o,it=!0,mr=null,Nr=!0,c=$_(o,null,_,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(al(),_===h){o=oi(i,o,c);break e}rn(i,o,_,c)}o=o.child}return o;case 26:return gl(i,o),i===null?(c=Qx(o.type,null,o.pendingProps,null))?o.memoizedState=c:it||(c=o.type,i=o.pendingProps,h=cd(pt.current).createElement(c),h[un]=o,h[wn]=i,an(h,c,i),Wt(h),o.stateNode=h):o.memoizedState=Qx(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return ur(o),i===null&&it&&(h=o.stateNode=Wx(o.type,o.pendingProps,pt.current),vn=o,Nr=!0,nn=gr(h.firstChild)),h=o.pendingProps.children,i!==null||it?rn(i,o,h,c):o.child=La(o,null,h,c),gl(i,o),o.child;case 5:return i===null&&it&&((g=h=nn)&&(h=jj(h,o.type,o.pendingProps,Nr),h!==null?(o.stateNode=h,vn=o,nn=gr(h.firstChild),Nr=!1,g=!0):g=!1),g||Ia(o)),ur(o),g=o.type,_=o.pendingProps,C=i!==null?i.memoizedProps:null,h=_.children,Mp(g,_)?h=null:C!==null&&Mp(g,C)&&(o.flags|=32),o.memoizedState!==null&&(g=Am(i,o,QL,null,null,c),jl._currentValue=g),gl(i,o),rn(i,o,h,c),o.child;case 6:return i===null&&it&&((i=c=nn)&&(c=Mj(c,o.pendingProps,Nr),c!==null?(o.stateNode=c,vn=o,nn=null,i=!0):i=!1),i||Ia(o)),null;case 13:return qE(i,o,c);case 4:return kn(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=La(o,null,h,c):rn(i,o,h,c),o.child;case 11:return zE(i,o,o.type,o.pendingProps,c);case 7:return rn(i,o,o.pendingProps,c),o.child;case 8:return rn(i,o,o.pendingProps.children,c),o.child;case 12:return rn(i,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,zi(o,o.type,h.value),rn(i,o,h.children,c),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,Ua(o),g=dn(g),h=h(g),o.flags|=1,rn(i,o,h,c),o.child;case 14:return VE(i,o,o.type,o.pendingProps,c);case 15:return BE(i,o,o.type,o.pendingProps,c);case 19:return ZE(i,o,c);case 22:return UE(i,o,c);case 24:return Ua(o),h=dn($t),i===null?(g=xm(),g===null&&(g=ft,_=_m(),g.pooledCache=_,_.refCount++,_!==null&&(g.pooledCacheLanes|=c),g=_),o.memoizedState={parent:h,cache:g},ep(o),zi(o,$t,g)):((i.lanes&c)!==0&&(tp(i,o),_l(o,null,null,c),bl()),g=i.memoizedState,_=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),zi(o,$t,h)):(h=_.cache,zi(o,$t,h),h!==g.cache&&Jm(o,[$t],c,!0))),rn(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}var Xm=_e(null),Ba=null,si=null;function zi(i,o,c){Te(Xm,o._currentValue),o._currentValue=c}function li(i){i._currentValue=Xm.current,Oe(Xm)}function Qm(i,o,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===c)break;i=i.return}}function Jm(i,o,c,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var _=g.dependencies;if(_!==null){var C=g.child;_=_.firstContext;e:for(;_!==null;){var k=_;_=g;for(var z=0;z<o.length;z++)if(k.context===o[z]){_.lanes|=c,k=_.alternate,k!==null&&(k.lanes|=c),Qm(_.return,c,i),h||(C=null);break e}_=k.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=c,_=C.alternate,_!==null&&(_.lanes|=c),Qm(C,c,i),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===i){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function yl(i,o,c,h){i=null;for(var g=o,_=!1;g!==null;){if(!_){if((g.flags&524288)!==0)_=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var k=g.type;Dn(g.pendingProps.value,C.value)||(i!==null?i.push(k):i=[k])}}else if(g===Zt.current){if(C=g.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(jl):i=[jl])}g=g.return}i!==null&&Jm(o,i,c,h),o.flags|=262144}function Ku(i){for(i=i.firstContext;i!==null;){if(!Dn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ua(i){Ba=i,si=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function dn(i){return YE(Ba,i)}function Zu(i,o){return Ba===null&&Ua(i),YE(i,o)}function YE(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},si===null){if(i===null)throw Error(r(308));si=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else si=si.next=o;return c}var Vi=!1;function ep(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tp(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Bi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ui(i,o,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(bt&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=Cu(i),k_(i,null,c),o}return Ru(i,h,o,c),Cu(i)}function vl(i,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194176)!==0)){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,V0(i,c)}}function np(i,o){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var g=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var C={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?g=_=C:_=_.next=C,c=c.next}while(c!==null);_===null?g=_=o:_=_.next=o}else g=_=o;c={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:_,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=o:i.next=o,c.lastBaseUpdate=o}var rp=!1;function bl(){if(rp){var i=Po;if(i!==null)throw i}}function _l(i,o,c,h){rp=!1;var g=i.updateQueue;Vi=!1;var _=g.firstBaseUpdate,C=g.lastBaseUpdate,k=g.shared.pending;if(k!==null){g.shared.pending=null;var z=k,q=z.next;z.next=null,C===null?_=q:C.next=q,C=z;var le=i.alternate;le!==null&&(le=le.updateQueue,k=le.lastBaseUpdate,k!==C&&(k===null?le.firstBaseUpdate=q:k.next=q,le.lastBaseUpdate=z))}if(_!==null){var me=g.baseState;C=0,le=q=z=null,k=_;do{var ne=k.lane&-536870913,se=ne!==k.lane;if(se?(nt&ne)===ne:(h&ne)===ne){ne!==0&&ne===Mo&&(rp=!0),le!==null&&(le=le.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ke=i,He=k;ne=o;var Ct=c;switch(He.tag){case 1:if(ke=He.payload,typeof ke=="function"){me=ke.call(Ct,me,ne);break e}me=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=He.payload,ne=typeof ke=="function"?ke.call(Ct,me,ne):ke,ne==null)break e;me=M({},me,ne);break e;case 2:Vi=!0}}ne=k.callback,ne!==null&&(i.flags|=64,se&&(i.flags|=8192),se=g.callbacks,se===null?g.callbacks=[ne]:se.push(ne))}else se={lane:ne,tag:k.tag,payload:k.payload,callback:k.callback,next:null},le===null?(q=le=se,z=me):le=le.next=se,C|=ne;if(k=k.next,k===null){if(k=g.shared.pending,k===null)break;se=k,k=se.next,se.next=null,g.lastBaseUpdate=se,g.shared.pending=null}}while(!0);le===null&&(z=me),g.baseState=z,g.firstBaseUpdate=q,g.lastBaseUpdate=le,_===null&&(g.shared.lanes=0),qi|=C,i.lanes=C,i.memoizedState=me}}function XE(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function QE(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)XE(c[i],o)}function El(i,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var g=h.next;c=g;do{if((c.tag&i)===i){h=void 0;var _=c.create,C=c.inst;h=_(),C.destroy=h}c=c.next}while(c!==g)}}catch(k){dt(o,o.return,k)}}function $i(i,o,c){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var _=g.next;h=_;do{if((h.tag&i)===i){var C=h.inst,k=C.destroy;if(k!==void 0){C.destroy=void 0,g=o;var z=c;try{k()}catch(q){dt(g,z,q)}}}h=h.next}while(h!==_)}}catch(q){dt(o,o.return,q)}}function JE(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;try{QE(o,c)}catch(h){dt(i,i.return,h)}}}function ex(i,o,c){c.props=Va(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){dt(i,o,h)}}function $a(i,o){try{var c=i.ref;if(c!==null){var h=i.stateNode;switch(i.tag){case 26:case 27:case 5:var g=h;break;default:g=h}typeof c=="function"?i.refCleanup=c(g):c.current=g}}catch(_){dt(i,o,_)}}function In(i,o){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(g){dt(i,o,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(g){dt(i,o,g)}else c.current=null}function tx(i){var o=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(g){dt(i,i.return,g)}}function nx(i,o,c){try{var h=i.stateNode;Oj(h,i.type,c,o),h[wn]=o}catch(g){dt(i,i.return,g)}}function rx(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27||i.tag===4}function ip(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||rx(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==27&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function ap(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?c.nodeType===8?c.parentNode.insertBefore(i,o):c.insertBefore(i,o):(c.nodeType===8?(o=c.parentNode,o.insertBefore(i,c)):(o=c,o.appendChild(i)),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=ld));else if(h!==4&&h!==27&&(i=i.child,i!==null))for(ap(i,o,c),i=i.sibling;i!==null;)ap(i,o,c),i=i.sibling}function Wu(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?c.insertBefore(i,o):c.appendChild(i);else if(h!==4&&h!==27&&(i=i.child,i!==null))for(Wu(i,o,c),i=i.sibling;i!==null;)Wu(i,o,c),i=i.sibling}var ci=!1,Tt=!1,op=!1,ix=typeof WeakSet=="function"?WeakSet:Set,Xt=null,ax=!1;function oj(i,o){if(i=i.containerInfo,Lp=pd,i=x_(i),lm(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var g=h.anchorOffset,_=h.focusNode;h=h.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var C=0,k=-1,z=-1,q=0,le=0,me=i,ne=null;t:for(;;){for(var se;me!==c||g!==0&&me.nodeType!==3||(k=C+g),me!==_||h!==0&&me.nodeType!==3||(z=C+h),me.nodeType===3&&(C+=me.nodeValue.length),(se=me.firstChild)!==null;)ne=me,me=se;for(;;){if(me===i)break t;if(ne===c&&++q===g&&(k=C),ne===_&&++le===h&&(z=C),(se=me.nextSibling)!==null)break;me=ne,ne=me.parentNode}me=se}c=k===-1||z===-1?null:{start:k,end:z}}else c=null}c=c||{start:0,end:0}}else c=null;for(jp={focusedElem:i,selectionRange:c},pd=!1,Xt=o;Xt!==null;)if(o=Xt,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,Xt=i;else for(;Xt!==null;){switch(o=Xt,_=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,c=o,g=_.memoizedProps,_=_.memoizedState,h=c.stateNode;try{var ke=Va(c.type,g,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(ke,_),h.__reactInternalSnapshotBeforeUpdate=i}catch(He){dt(c,c.return,He)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,c=i.nodeType,c===9)Vp(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Vp(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,Xt=i;break}Xt=o.return}return ke=ax,ax=!1,ke}function ox(i,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:di(i,c),h&4&&El(5,c);break;case 1:if(di(i,c),h&4)if(i=c.stateNode,o===null)try{i.componentDidMount()}catch(k){dt(c,c.return,k)}else{var g=Va(c.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(g,o,i.__reactInternalSnapshotBeforeUpdate)}catch(k){dt(c,c.return,k)}}h&64&&JE(c),h&512&&$a(c,c.return);break;case 3:if(di(i,c),h&64&&(h=c.updateQueue,h!==null)){if(i=null,c.child!==null)switch(c.child.tag){case 27:case 5:i=c.child.stateNode;break;case 1:i=c.child.stateNode}try{QE(h,i)}catch(k){dt(c,c.return,k)}}break;case 26:di(i,c),h&512&&$a(c,c.return);break;case 27:case 5:di(i,c),o===null&&h&4&&tx(c),h&512&&$a(c,c.return);break;case 12:di(i,c);break;case 13:di(i,c),h&4&&cx(i,c);break;case 22:if(g=c.memoizedState!==null||ci,!g){o=o!==null&&o.memoizedState!==null||Tt;var _=ci,C=Tt;ci=g,(Tt=o)&&!C?Hi(i,c,(c.subtreeFlags&8772)!==0):di(i,c),ci=_,Tt=C}h&512&&(c.memoizedProps.mode==="manual"?$a(c,c.return):In(c,c.return));break;default:di(i,c)}}function sx(i){var o=i.alternate;o!==null&&(i.alternate=null,sx(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&qh(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Mt=null,Ln=!1;function ui(i,o,c){for(c=c.child;c!==null;)lx(i,o,c),c=c.sibling}function lx(i,o,c){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Jr,c)}catch{}switch(c.tag){case 26:Tt||In(c,o),ui(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Tt||In(c,o);var h=Mt,g=Ln;for(Mt=c.stateNode,ui(i,o,c),c=c.stateNode,o=c.attributes;o.length;)c.removeAttributeNode(o[0]);qh(c),Mt=h,Ln=g;break;case 5:Tt||In(c,o);case 6:g=Mt;var _=Ln;if(Mt=null,ui(i,o,c),Mt=g,Ln=_,Mt!==null)if(Ln)try{i=Mt,h=c.stateNode,i.nodeType===8?i.parentNode.removeChild(h):i.removeChild(h)}catch(C){dt(c,o,C)}else try{Mt.removeChild(c.stateNode)}catch(C){dt(c,o,C)}break;case 18:Mt!==null&&(Ln?(o=Mt,c=c.stateNode,o.nodeType===8?zp(o.parentNode,c):o.nodeType===1&&zp(o,c),Vl(o)):zp(Mt,c.stateNode));break;case 4:h=Mt,g=Ln,Mt=c.stateNode.containerInfo,Ln=!0,ui(i,o,c),Mt=h,Ln=g;break;case 0:case 11:case 14:case 15:Tt||$i(2,c,o),Tt||$i(4,c,o),ui(i,o,c);break;case 1:Tt||(In(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&ex(c,o,h)),ui(i,o,c);break;case 21:ui(i,o,c);break;case 22:Tt||In(c,o),Tt=(h=Tt)||c.memoizedState!==null,ui(i,o,c),Tt=h;break;default:ui(i,o,c)}}function cx(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Vl(i)}catch(c){dt(o,o.return,c)}}function sj(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new ix),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new ix),o;default:throw Error(r(435,i.tag))}}function sp(i,o){var c=sj(i);o.forEach(function(h){var g=_j.bind(null,i,h);c.has(h)||(c.add(h),h.then(g,g))})}function Yn(i,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var g=c[h],_=i,C=o,k=C;e:for(;k!==null;){switch(k.tag){case 27:case 5:Mt=k.stateNode,Ln=!1;break e;case 3:Mt=k.stateNode.containerInfo,Ln=!0;break e;case 4:Mt=k.stateNode.containerInfo,Ln=!0;break e}k=k.return}if(Mt===null)throw Error(r(160));lx(_,C,g),Mt=null,Ln=!1,_=g.alternate,_!==null&&(_.return=null),g.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)ux(o,i),o=o.sibling}var pr=null;function ux(i,o){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Yn(o,i),Xn(i),h&4&&($i(3,i,i.return),El(3,i),$i(5,i,i.return));break;case 1:Yn(o,i),Xn(i),h&512&&(Tt||c===null||In(c,c.return)),h&64&&ci&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var g=pr;if(Yn(o,i),Xn(i),h&512&&(Tt||c===null||In(c,c.return)),h&4){var _=c!==null?c.memoizedState:null;if(h=i.memoizedState,c===null)if(h===null)if(i.stateNode===null){e:{h=i.type,c=i.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":_=g.getElementsByTagName("title")[0],(!_||_[Ks]||_[un]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=g.createElement(h),g.head.insertBefore(_,g.querySelector("head > title"))),an(_,h,c),_[un]=i,Wt(_),h=_;break e;case"link":var C=tS("link","href",g).get(h+(c.href||""));if(C){for(var k=0;k<C.length;k++)if(_=C[k],_.getAttribute("href")===(c.href==null?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){C.splice(k,1);break t}}_=g.createElement(h),an(_,h,c),g.head.appendChild(_);break;case"meta":if(C=tS("meta","content",g).get(h+(c.content||""))){for(k=0;k<C.length;k++)if(_=C[k],_.getAttribute("content")===(c.content==null?null:""+c.content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){C.splice(k,1);break t}}_=g.createElement(h),an(_,h,c),g.head.appendChild(_);break;default:throw Error(r(468,h))}_[un]=i,Wt(_),h=_}i.stateNode=h}else nS(g,i.type,i.stateNode);else i.stateNode=eS(g,h,i.memoizedProps);else _!==h?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,h===null?nS(g,i.type,i.stateNode):eS(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&nx(i,i.memoizedProps,c.memoizedProps)}break;case 27:if(h&4&&i.alternate===null){g=i.stateNode,_=i.memoizedProps;try{for(var z=g.firstChild;z;){var q=z.nextSibling,le=z.nodeName;z[Ks]||le==="HEAD"||le==="BODY"||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&z.rel.toLowerCase()==="stylesheet"||g.removeChild(z),z=q}for(var me=i.type,ne=g.attributes;ne.length;)g.removeAttributeNode(ne[0]);an(g,me,_),g[un]=i,g[wn]=_}catch(ke){dt(i,i.return,ke)}}case 5:if(Yn(o,i),Xn(i),h&512&&(Tt||c===null||In(c,c.return)),i.flags&32){g=i.stateNode;try{Ao(g,"")}catch(ke){dt(i,i.return,ke)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,nx(i,g,c!==null?c.memoizedProps:g)),h&1024&&(op=!0);break;case 6:if(Yn(o,i),Xn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(ke){dt(i,i.return,ke)}}break;case 3:if(fd=null,g=pr,pr=ud(o.containerInfo),Yn(o,i),pr=g,Xn(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Vl(o.containerInfo)}catch(ke){dt(i,i.return,ke)}op&&(op=!1,dx(i));break;case 4:h=pr,pr=ud(i.stateNode.containerInfo),Yn(o,i),Xn(i),pr=h;break;case 12:Yn(o,i),Xn(i);break;case 13:Yn(o,i),Xn(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(gp=be()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,sp(i,h)));break;case 22:if(h&512&&(Tt||c===null||In(c,c.return)),z=i.memoizedState!==null,q=c!==null&&c.memoizedState!==null,le=ci,me=Tt,ci=le||z,Tt=me||q,Yn(o,i),Tt=me,ci=le,Xn(i),o=i.stateNode,o._current=i,o._visibility&=-3,o._visibility|=o._pendingVisibility&2,h&8192&&(o._visibility=z?o._visibility&-2:o._visibility|1,z&&(o=ci||Tt,c===null||q||o||Uo(i)),i.memoizedProps===null||i.memoizedProps.mode!=="manual"))e:for(c=null,o=i;;){if(o.tag===5||o.tag===26||o.tag===27){if(c===null){q=c=o;try{if(g=q.stateNode,z)_=g.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{C=q.stateNode,k=q.memoizedProps.style;var se=k!=null&&k.hasOwnProperty("display")?k.display:null;C.style.display=se==null||typeof se=="boolean"?"":(""+se).trim()}}catch(ke){dt(q,q.return,ke)}}}else if(o.tag===6){if(c===null){q=o;try{q.stateNode.nodeValue=z?"":q.memoizedProps}catch(ke){dt(q,q.return,ke)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,sp(i,c))));break;case 19:Yn(o,i),Xn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,sp(i,h)));break;case 21:break;default:Yn(o,i),Xn(i)}}function Xn(i){var o=i.flags;if(o&2){try{if(i.tag!==27){e:{for(var c=i.return;c!==null;){if(rx(c)){var h=c;break e}c=c.return}throw Error(r(160))}switch(h.tag){case 27:var g=h.stateNode,_=ip(i);Wu(i,_,g);break;case 5:var C=h.stateNode;h.flags&32&&(Ao(C,""),h.flags&=-33);var k=ip(i);Wu(i,k,C);break;case 3:case 4:var z=h.stateNode.containerInfo,q=ip(i);ap(i,q,z);break;default:throw Error(r(161))}}}catch(le){dt(i,i.return,le)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function dx(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;dx(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function di(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)ox(i,o.alternate,o),o=o.sibling}function Uo(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:$i(4,o,o.return),Uo(o);break;case 1:In(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&ex(o,o.return,c),Uo(o);break;case 26:case 27:case 5:In(o,o.return),Uo(o);break;case 22:In(o,o.return),o.memoizedState===null&&Uo(o);break;default:Uo(o)}i=i.sibling}}function Hi(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=i,_=o,C=_.flags;switch(_.tag){case 0:case 11:case 15:Hi(g,_,c),El(4,_);break;case 1:if(Hi(g,_,c),h=_,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(q){dt(h,h.return,q)}if(h=_,g=h.updateQueue,g!==null){var k=h.stateNode;try{var z=g.shared.hiddenCallbacks;if(z!==null)for(g.shared.hiddenCallbacks=null,g=0;g<z.length;g++)XE(z[g],k)}catch(q){dt(h,h.return,q)}}c&&C&64&&JE(_),$a(_,_.return);break;case 26:case 27:case 5:Hi(g,_,c),c&&h===null&&C&4&&tx(_),$a(_,_.return);break;case 12:Hi(g,_,c);break;case 13:Hi(g,_,c),c&&C&4&&cx(g,_);break;case 22:_.memoizedState===null&&Hi(g,_,c),$a(_,_.return);break;default:Hi(g,_,c)}o=o.sibling}}function lp(i,o){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&dl(c))}function cp(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&dl(i))}function Fi(i,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)fx(i,o,c,h),o=o.sibling}function fx(i,o,c,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Fi(i,o,c,h),g&2048&&El(9,o);break;case 3:Fi(i,o,c,h),g&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&dl(i)));break;case 12:if(g&2048){Fi(i,o,c,h),i=o.stateNode;try{var _=o.memoizedProps,C=_.id,k=_.onPostCommit;typeof k=="function"&&k(C,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(z){dt(o,o.return,z)}}else Fi(i,o,c,h);break;case 23:break;case 22:_=o.stateNode,o.memoizedState!==null?_._visibility&4?Fi(i,o,c,h):xl(i,o):_._visibility&4?Fi(i,o,c,h):(_._visibility|=4,$o(i,o,c,h,(o.subtreeFlags&10256)!==0)),g&2048&&lp(o.alternate,o);break;case 24:Fi(i,o,c,h),g&2048&&cp(o.alternate,o);break;default:Fi(i,o,c,h)}}function $o(i,o,c,h,g){for(g=g&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var _=i,C=o,k=c,z=h,q=C.flags;switch(C.tag){case 0:case 11:case 15:$o(_,C,k,z,g),El(8,C);break;case 23:break;case 22:var le=C.stateNode;C.memoizedState!==null?le._visibility&4?$o(_,C,k,z,g):xl(_,C):(le._visibility|=4,$o(_,C,k,z,g)),g&&q&2048&&lp(C.alternate,C);break;case 24:$o(_,C,k,z,g),g&&q&2048&&cp(C.alternate,C);break;default:$o(_,C,k,z,g)}o=o.sibling}}function xl(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=i,h=o,g=h.flags;switch(h.tag){case 22:xl(c,h),g&2048&&lp(h.alternate,h);break;case 24:xl(c,h),g&2048&&cp(h.alternate,h);break;default:xl(c,h)}o=o.sibling}}var Sl=8192;function Ho(i){if(i.subtreeFlags&Sl)for(i=i.child;i!==null;)hx(i),i=i.sibling}function hx(i){switch(i.tag){case 26:Ho(i),i.flags&Sl&&i.memoizedState!==null&&Wj(pr,i.memoizedState,i.memoizedProps);break;case 5:Ho(i);break;case 3:case 4:var o=pr;pr=ud(i.stateNode.containerInfo),Ho(i),pr=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Sl,Sl=16777216,Ho(i),Sl=o):Ho(i));break;default:Ho(i)}}function mx(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Al(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Xt=h,gx(h,i)}mx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)px(i),i=i.sibling}function px(i){switch(i.tag){case 0:case 11:case 15:Al(i),i.flags&2048&&$i(9,i,i.return);break;case 3:Al(i);break;case 12:Al(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&4&&(i.return===null||i.return.tag!==13)?(o._visibility&=-5,Yu(i)):Al(i);break;default:Al(i)}}function Yu(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Xt=h,gx(h,i)}mx(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:$i(8,o,o.return),Yu(o);break;case 22:c=o.stateNode,c._visibility&4&&(c._visibility&=-5,Yu(o));break;default:Yu(o)}i=i.sibling}}function gx(i,o){for(;Xt!==null;){var c=Xt;switch(c.tag){case 0:case 11:case 15:$i(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:dl(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Xt=h;else e:for(c=i;Xt!==null;){h=Xt;var g=h.sibling,_=h.return;if(sx(h),h===c){Xt=null;break e}if(g!==null){g.return=_,Xt=g;break e}Xt=_}}}function lj(i,o,c,h){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(i,o,c,h){return new lj(i,o,c,h)}function up(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Gi(i,o){var c=i.alternate;return c===null?(c=Qn(i.tag,o,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=o,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&31457280,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,o=i.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function yx(i,o){i.flags&=31457282;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,o=c.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function Xu(i,o,c,h,g,_){var C=0;if(h=i,typeof i=="function")up(i)&&(C=1);else if(typeof i=="string")C=Kj(i,c,$e.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case d:return Ha(c.children,g,_,o);case f:C=8,g|=24;break;case m:return i=Qn(12,c,o,g|2),i.elementType=m,i.lanes=_,i;case E:return i=Qn(13,c,o,g),i.elementType=E,i.lanes=_,i;case A:return i=Qn(19,c,o,g),i.elementType=A,i.lanes=_,i;case R:return vx(c,g,_,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case p:case x:C=10;break e;case v:C=9;break e;case y:C=11;break e;case T:C=14;break e;case w:C=16,h=null;break e}C=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=Qn(C,c,o,g),o.elementType=i,o.type=h,o.lanes=_,o}function Ha(i,o,c,h){return i=Qn(7,i,h,o),i.lanes=c,i}function vx(i,o,c,h){i=Qn(22,i,h,o),i.elementType=R,i.lanes=c;var g={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var _=g._current;if(_===null)throw Error(r(456));if((g._pendingVisibility&2)===0){var C=Ii(_,2);C!==null&&(g._pendingVisibility|=2,bn(C,_,2))}},attach:function(){var _=g._current;if(_===null)throw Error(r(456));if((g._pendingVisibility&2)!==0){var C=Ii(_,2);C!==null&&(g._pendingVisibility&=-3,bn(C,_,2))}}};return i.stateNode=g,i}function dp(i,o,c){return i=Qn(6,i,null,o),i.lanes=c,i}function fp(i,o,c){return o=Qn(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function fi(i){i.flags|=4}function bx(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!rS(o)){if(o=Wn.current,o!==null&&((nt&4194176)===nt?Or!==null:(nt&62914560)!==nt&&(nt&536870912)===0||o!==Or))throw ll=ym,M_;i.flags|=8192}}function Qu(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?P0():536870912,i.lanes|=o,Go|=o)}function wl(i,o){if(!it)switch(i.tailMode){case"hidden":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function vt(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(o)for(var g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags&31457280,h|=g.flags&31457280,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=c,o}function cj(i,o,c){var h=o.pendingProps;switch(pm(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(o),null;case 1:return vt(o),null;case 3:return c=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),li($t),Sn(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(il(o)?fi(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,mr!==null&&(_p(mr),mr=null))),vt(o),null;case 26:return c=o.memoizedState,i===null?(fi(o),c!==null?(vt(o),bx(o,c)):(vt(o),o.flags&=-16777217)):c?c!==i.memoizedState?(fi(o),vt(o),bx(o,c)):(vt(o),o.flags&=-16777217):(i.memoizedProps!==h&&fi(o),vt(o),o.flags&=-16777217),null;case 27:Sa(o),c=pt.current;var g=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&fi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return vt(o),null}i=$e.current,il(o)?L_(o):(i=Wx(g,h,c),o.stateNode=i,fi(o))}return vt(o),null;case 5:if(Sa(o),c=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&fi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return vt(o),null}if(i=$e.current,il(o))L_(o);else{switch(g=cd(pt.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(c,{is:h.is}):g.createElement(c)}}i[un]=o,i[wn]=h;e:for(g=o.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===o)break e;for(;g.sibling===null;){if(g.return===null||g.return===o)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}o.stateNode=i;e:switch(an(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&fi(o)}}return vt(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&fi(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=pt.current,il(o)){if(i=o.stateNode,c=o.memoizedProps,h=null,g=vn,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[un]=o,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||Hx(i.nodeValue,c)),i||Ia(o)}else i=cd(i).createTextNode(h),i[un]=o,o.stateNode=i}return vt(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=il(o),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[un]=o}else al(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vt(o),g=!1}else mr!==null&&(_p(mr),mr=null),g=!0;if(!g)return o.flags&256?(ii(o),o):(ii(o),null)}if(ii(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var _=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==g&&(h.flags|=2048)}return c!==i&&c&&(o.child.flags|=8192),Qu(o,o.updateQueue),vt(o),null;case 4:return Sn(),i===null&&kp(o.stateNode.containerInfo),vt(o),null;case 10:return li(o.type),vt(o),null;case 19:if(Oe(Ut),g=o.memoizedState,g===null)return vt(o),null;if(h=(o.flags&128)!==0,_=g.rendering,_===null)if(h)wl(g,!1);else{if(Rt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(_=ju(i),_!==null){for(o.flags|=128,wl(g,!1),i=_.updateQueue,o.updateQueue=i,Qu(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)yx(c,i),c=c.sibling;return Te(Ut,Ut.current&1|2),o.child}i=i.sibling}g.tail!==null&&be()>Ju&&(o.flags|=128,h=!0,wl(g,!1),o.lanes=4194304)}else{if(!h)if(i=ju(_),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,Qu(o,i),wl(g,!0),g.tail===null&&g.tailMode==="hidden"&&!_.alternate&&!it)return vt(o),null}else 2*be()-g.renderingStartTime>Ju&&c!==536870912&&(o.flags|=128,h=!0,wl(g,!1),o.lanes=4194304);g.isBackwards?(_.sibling=o.child,o.child=_):(i=g.last,i!==null?i.sibling=_:o.child=_,g.last=_)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=be(),o.sibling=null,i=Ut.current,Te(Ut,h?i&1|2:i&1),o):(vt(o),null);case 22:case 23:return ii(o),bm(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(c&536870912)!==0&&(o.flags&128)===0&&(vt(o),o.subtreeFlags&6&&(o.flags|=8192)):vt(o),c=o.updateQueue,c!==null&&Qu(o,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048),i!==null&&Oe(ja),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),li($t),vt(o),null;case 25:return null}throw Error(r(156,o.tag))}function uj(i,o){switch(pm(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return li($t),Sn(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Sa(o),null;case 13:if(ii(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));al()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return Oe(Ut),null;case 4:return Sn(),null;case 10:return li(o.type),null;case 22:case 23:return ii(o),bm(),i!==null&&Oe(ja),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return li($t),null;case 25:return null;default:return null}}function _x(i,o){switch(pm(o),o.tag){case 3:li($t),Sn();break;case 26:case 27:case 5:Sa(o);break;case 4:Sn();break;case 13:ii(o);break;case 19:Oe(Ut);break;case 10:li(o.type);break;case 22:case 23:ii(o),bm(),i!==null&&Oe(ja);break;case 24:li($t)}}var dj={getCacheForType:function(i){var o=dn($t),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c}},fj=typeof WeakMap=="function"?WeakMap:Map,bt=0,ft=null,Je=null,nt=0,ht=0,jn=null,hi=!1,Fo=!1,hp=!1,mi=0,Rt=0,qi=0,Fa=0,mp=0,Jn=0,Go=0,Tl=null,Dr=null,pp=!1,gp=0,Ju=1/0,ed=null,Ki=null,td=!1,Ga=null,Rl=0,yp=0,vp=null,Cl=0,bp=null;function Mn(){if((bt&2)!==0&&nt!==0)return nt&-nt;if(P.T!==null){var i=Mo;return i!==0?i:Rp()}return U0()}function Ex(){Jn===0&&(Jn=(nt&536870912)===0||it?M0():536870912);var i=Wn.current;return i!==null&&(i.flags|=32),Jn}function bn(i,o,c){(i===ft&&ht===2||i.cancelPendingCommit!==null)&&(qo(i,0),pi(i,nt,Jn,!1)),qs(i,c),((bt&2)===0||i!==ft)&&(i===ft&&((bt&2)===0&&(Fa|=c),Rt===4&&pi(i,nt,Jn,!1)),Ir(i))}function xx(i,o,c){if((bt&6)!==0)throw Error(r(327));var h=!c&&(o&60)===0&&(o&i.expiredLanes)===0||Gs(i,o),g=h?pj(i,o):Sp(i,o,!0),_=h;do{if(g===0){Fo&&!h&&pi(i,o,0,!1);break}else if(g===6)pi(i,o,0,!hi);else{if(c=i.current.alternate,_&&!hj(c)){g=Sp(i,o,!1),_=!1;continue}if(g===2){if(_=o,i.errorRecoveryDisabledLanes&_)var C=0;else C=i.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var k=i;g=Tl;var z=k.current.memoizedState.isDehydrated;if(z&&(qo(k,C).flags|=256),C=Sp(k,C,!1),C!==2){if(hp&&!z){k.errorRecoveryDisabledLanes|=_,Fa|=_,g=4;break e}_=Dr,Dr=g,_!==null&&_p(_)}g=C}if(_=!1,g!==2)continue}}if(g===1){qo(i,0),pi(i,o,0,!0);break}e:{switch(h=i,g){case 0:case 1:throw Error(r(345));case 4:if((o&4194176)===o){pi(h,o,Jn,!hi);break e}break;case 2:Dr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=c,h.finishedLanes=o,(o&62914560)===o&&(_=gp+300-be(),10<_)){if(pi(h,o,Jn,!hi),mu(h,0)!==0)break e;h.timeoutHandle=qx(Sx.bind(null,h,c,Dr,ed,pp,o,Jn,Fa,Go,hi,2,-0,0),_);break e}Sx(h,c,Dr,ed,pp,o,Jn,Fa,Go,hi,0,-0,0)}}break}while(!0);Ir(i)}function _p(i){Dr===null?Dr=i:Dr.push.apply(Dr,i)}function Sx(i,o,c,h,g,_,C,k,z,q,le,me,ne){var se=o.subtreeFlags;if((se&8192||(se&16785408)===16785408)&&(Ll={stylesheets:null,count:0,unsuspend:Zj},hx(o),o=Yj(),o!==null)){i.cancelPendingCommit=o(Ox.bind(null,i,c,h,g,C,k,z,1,me,ne)),pi(i,_,C,!q);return}Ox(i,c,h,g,C,k,z,le,me,ne)}function hj(i){for(var o=i;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var g=c[h],_=g.getSnapshot;g=g.value;try{if(!Dn(_(),g))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function pi(i,o,c,h){o&=~mp,o&=~Fa,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var g=o;0<g;){var _=31-yn(g),C=1<<_;h[_]=-1,g&=~C}c!==0&&z0(i,c,o)}function nd(){return(bt&6)===0?(Nl(0),!1):!0}function Ep(){if(Je!==null){if(ht===0)var i=Je.return;else i=Je,si=Ba=null,Rm(i),Lo=null,cl=0,i=Je;for(;i!==null;)_x(i.alternate,i),i=i.return;Je=null}}function qo(i,o){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,Dj(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),Ep(),ft=i,Je=c=Gi(i.current,null),nt=o,ht=0,jn=null,hi=!1,Fo=Gs(i,o),hp=!1,Go=Jn=mp=Fa=qi=Rt=0,Dr=Tl=null,pp=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var g=31-yn(h),_=1<<g;o|=i[g],h&=~_}return mi=o,Tu(),c}function Ax(i,o){Ye=null,P.H=kr,o===sl?(o=V_(),ht=3):o===M_?(o=V_(),ht=4):ht=o===PE?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,jn=o,Je===null&&(Rt=1,qu(i,qn(o,i.current)))}function wx(){var i=P.H;return P.H=kr,i===null?kr:i}function Tx(){var i=P.A;return P.A=dj,i}function xp(){Rt=4,hi||(nt&4194176)!==nt&&Wn.current!==null||(Fo=!0),(qi&134217727)===0&&(Fa&134217727)===0||ft===null||pi(ft,nt,Jn,!1)}function Sp(i,o,c){var h=bt;bt|=2;var g=wx(),_=Tx();(ft!==i||nt!==o)&&(ed=null,qo(i,o)),o=!1;var C=Rt;e:do try{if(ht!==0&&Je!==null){var k=Je,z=jn;switch(ht){case 8:Ep(),C=6;break e;case 3:case 2:case 6:Wn.current===null&&(o=!0);var q=ht;if(ht=0,jn=null,Ko(i,k,z,q),c&&Fo){C=0;break e}break;default:q=ht,ht=0,jn=null,Ko(i,k,z,q)}}mj(),C=Rt;break}catch(le){Ax(i,le)}while(!0);return o&&i.shellSuspendCounter++,si=Ba=null,bt=h,P.H=g,P.A=_,Je===null&&(ft=null,nt=0,Tu()),C}function mj(){for(;Je!==null;)Rx(Je)}function pj(i,o){var c=bt;bt|=2;var h=wx(),g=Tx();ft!==i||nt!==o?(ed=null,Ju=be()+500,qo(i,o)):Fo=Gs(i,o);e:do try{if(ht!==0&&Je!==null){o=Je;var _=jn;t:switch(ht){case 1:ht=0,jn=null,Ko(i,o,_,1);break;case 2:if(P_(_)){ht=0,jn=null,Cx(o);break}o=function(){ht===2&&ft===i&&(ht=7),Ir(i)},_.then(o,o);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:P_(_)?(ht=0,jn=null,Cx(o)):(ht=0,jn=null,Ko(i,o,_,7));break;case 5:var C=null;switch(Je.tag){case 26:C=Je.memoizedState;case 5:case 27:var k=Je;if(!C||rS(C)){ht=0,jn=null;var z=k.sibling;if(z!==null)Je=z;else{var q=k.return;q!==null?(Je=q,rd(q)):Je=null}break t}}ht=0,jn=null,Ko(i,o,_,5);break;case 6:ht=0,jn=null,Ko(i,o,_,6);break;case 8:Ep(),Rt=6;break e;default:throw Error(r(462))}}gj();break}catch(le){Ax(i,le)}while(!0);return si=Ba=null,P.H=h,P.A=g,bt=c,Je!==null?0:(ft=null,nt=0,Tu(),Rt)}function gj(){for(;Je!==null&&!ce();)Rx(Je)}function Rx(i){var o=WE(i.alternate,i,mi);i.memoizedProps=i.pendingProps,o===null?rd(i):Je=o}function Cx(i){var o=i,c=o.alternate;switch(o.tag){case 15:case 0:o=HE(c,o,o.pendingProps,o.type,void 0,nt);break;case 11:o=HE(c,o,o.pendingProps,o.type.render,o.ref,nt);break;case 5:Rm(o);default:_x(c,o),o=Je=yx(o,mi),o=WE(c,o,mi)}i.memoizedProps=i.pendingProps,o===null?rd(i):Je=o}function Ko(i,o,c,h){si=Ba=null,Rm(o),Lo=null,cl=0;var g=o.return;try{if(ij(i,g,o,c,nt)){Rt=1,qu(i,qn(c,i.current)),Je=null;return}}catch(_){if(g!==null)throw Je=g,_;Rt=1,qu(i,qn(c,i.current)),Je=null;return}o.flags&32768?(it||h===1?i=!0:Fo||(nt&536870912)!==0?i=!1:(hi=i=!0,(h===2||h===3||h===6)&&(h=Wn.current,h!==null&&h.tag===13&&(h.flags|=16384))),Nx(o,i)):rd(o)}function rd(i){var o=i;do{if((o.flags&32768)!==0){Nx(o,hi);return}i=o.return;var c=cj(o.alternate,o,mi);if(c!==null){Je=c;return}if(o=o.sibling,o!==null){Je=o;return}Je=o=i}while(o!==null);Rt===0&&(Rt=5)}function Nx(i,o){do{var c=uj(i.alternate,i);if(c!==null){c.flags&=32767,Je=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){Je=i;return}Je=i=c}while(i!==null);Rt=6,Je=null}function Ox(i,o,c,h,g,_,C,k,z,q){var le=P.T,me=ie.p;try{ie.p=2,P.T=null,yj(i,o,c,h,me,g,_,C,k,z,q)}finally{P.T=le,ie.p=me}}function yj(i,o,c,h,g,_,C,k){do Zo();while(Ga!==null);if((bt&6)!==0)throw Error(r(327));var z=i.finishedWork;if(h=i.finishedLanes,z===null)return null;if(i.finishedWork=null,i.finishedLanes=0,z===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0,i.cancelPendingCommit=null;var q=z.lanes|z.childLanes;if(q|=fm,WI(i,h,q,_,C,k),i===ft&&(Je=ft=null,nt=0),(z.subtreeFlags&10256)===0&&(z.flags&10256)===0||td||(td=!0,yp=q,vp=c,Ej(ot,function(){return Zo(),null})),c=(z.flags&15990)!==0,(z.subtreeFlags&15990)!==0||c?(c=P.T,P.T=null,_=ie.p,ie.p=2,C=bt,bt|=4,oj(i,z),ux(z,i),UL(jp,i.containerInfo),pd=!!Lp,jp=Lp=null,i.current=z,ox(i,z.alternate,z),we(),bt=C,ie.p=_,P.T=c):i.current=z,td?(td=!1,Ga=i,Rl=h):kx(i,q),q=i.pendingLanes,q===0&&(Ki=null),Hh(z.stateNode),Ir(i),o!==null)for(g=i.onRecoverableError,z=0;z<o.length;z++)q=o[z],g(q.value,{componentStack:q.stack});return(Rl&3)!==0&&Zo(),q=i.pendingLanes,(h&4194218)!==0&&(q&42)!==0?i===bp?Cl++:(Cl=0,bp=i):Cl=0,Nl(0),null}function kx(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,dl(o)))}function Zo(){if(Ga!==null){var i=Ga,o=yp;yp=0;var c=B0(Rl),h=P.T,g=ie.p;try{if(ie.p=32>c?32:c,P.T=null,Ga===null)var _=!1;else{c=vp,vp=null;var C=Ga,k=Rl;if(Ga=null,Rl=0,(bt&6)!==0)throw Error(r(331));var z=bt;if(bt|=4,px(C.current),fx(C,C.current,k,c),bt=z,Nl(0,!1),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Jr,C)}catch{}_=!0}return _}finally{ie.p=g,P.T=h,kx(i,o)}}return!1}function Dx(i,o,c){o=qn(c,o),o=Um(i.stateNode,o,2),i=Ui(i,o,2),i!==null&&(qs(i,2),Ir(i))}function dt(i,o,c){if(i.tag===3)Dx(i,i,c);else for(;o!==null;){if(o.tag===3){Dx(o,i,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Ki===null||!Ki.has(h))){i=qn(c,i),c=jE(2),h=Ui(o,c,2),h!==null&&(ME(c,h,o,i),qs(h,2),Ir(h));break}}o=o.return}}function Ap(i,o,c){var h=i.pingCache;if(h===null){h=i.pingCache=new fj;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(c)||(hp=!0,g.add(c),i=vj.bind(null,i,o,c),o.then(i,i))}function vj(i,o,c){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,ft===i&&(nt&c)===c&&(Rt===4||Rt===3&&(nt&62914560)===nt&&300>be()-gp?(bt&2)===0&&qo(i,0):mp|=c,Go===nt&&(Go=0)),Ir(i)}function Ix(i,o){o===0&&(o=P0()),i=Ii(i,o),i!==null&&(qs(i,o),Ir(i))}function bj(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),Ix(i,c)}function _j(i,o){var c=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(c=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),Ix(i,c)}function Ej(i,o){return U(i,o)}var id=null,Wo=null,wp=!1,ad=!1,Tp=!1,qa=0;function Ir(i){i!==Wo&&i.next===null&&(Wo===null?id=Wo=i:Wo=Wo.next=i),ad=!0,wp||(wp=!0,Sj(xj))}function Nl(i,o){if(!Tp&&ad){Tp=!0;do for(var c=!1,h=id;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var _=0;else{var C=h.suspendedLanes,k=h.pingedLanes;_=(1<<31-yn(42|i)+1)-1,_&=g&~(C&~k),_=_&201326677?_&201326677|1:_?_|2:0}_!==0&&(c=!0,Mx(h,_))}else _=nt,_=mu(h,h===ft?_:0),(_&3)===0||Gs(h,_)||(c=!0,Mx(h,_));h=h.next}while(c);Tp=!1}}function xj(){ad=wp=!1;var i=0;qa!==0&&(kj()&&(i=qa),qa=0);for(var o=be(),c=null,h=id;h!==null;){var g=h.next,_=Lx(h,o);_===0?(h.next=null,c===null?id=g:c.next=g,g===null&&(Wo=c)):(c=h,(i!==0||(_&3)!==0)&&(ad=!0)),h=g}Nl(i)}function Lx(i,o){for(var c=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var C=31-yn(_),k=1<<C,z=g[C];z===-1?((k&c)===0||(k&h)!==0)&&(g[C]=ZI(k,o)):z<=o&&(i.expiredLanes|=k),_&=~k}if(o=ft,c=nt,c=mu(i,i===o?c:0),h=i.callbackNode,c===0||i===o&&ht===2||i.cancelPendingCommit!==null)return h!==null&&h!==null&&te(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Gs(i,c)){if(o=c&-c,o===i.callbackPriority)return o;switch(h!==null&&te(h),B0(c)){case 2:case 8:c=rt;break;case 32:c=ot;break;case 268435456:c=Aa;break;default:c=ot}return h=jx.bind(null,i),c=U(c,h),i.callbackPriority=o,i.callbackNode=c,o}return h!==null&&h!==null&&te(h),i.callbackPriority=2,i.callbackNode=null,2}function jx(i,o){var c=i.callbackNode;if(Zo()&&i.callbackNode!==c)return null;var h=nt;return h=mu(i,i===ft?h:0),h===0?null:(xx(i,h,o),Lx(i,be()),i.callbackNode!=null&&i.callbackNode===c?jx.bind(null,i):null)}function Mx(i,o){if(Zo())return null;xx(i,o,!0)}function Sj(i){Ij(function(){(bt&6)!==0?U(Ie,i):i()})}function Rp(){return qa===0&&(qa=M0()),qa}function Px(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:bu(""+i)}function zx(i,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,i.id&&c.setAttribute("form",i.id),o.parentNode.insertBefore(c,o),i=new FormData(i),c.parentNode.removeChild(c),i}function Aj(i,o,c,h,g){if(o==="submit"&&c&&c.stateNode===g){var _=Px((g[wn]||null).action),C=h.submitter;C&&(o=(o=C[wn]||null)?Px(o.formAction):C.getAttribute("formAction"),o!==null&&(_=o,C=null));var k=new Su("action","action",null,h,g);i.push({event:k,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(qa!==0){var z=C?zx(g,C):new FormData(g);Mm(c,{pending:!0,data:z,method:g.method,action:_},null,z)}}else typeof _=="function"&&(k.preventDefault(),z=C?zx(g,C):new FormData(g),Mm(c,{pending:!0,data:z,method:g.method,action:_},_,z))},currentTarget:g}]})}}for(var Cp=0;Cp<O_.length;Cp++){var Np=O_[Cp],wj=Np.toLowerCase(),Tj=Np[0].toUpperCase()+Np.slice(1);hr(wj,"on"+Tj)}hr(w_,"onAnimationEnd"),hr(T_,"onAnimationIteration"),hr(R_,"onAnimationStart"),hr("dblclick","onDoubleClick"),hr("focusin","onFocus"),hr("focusout","onBlur"),hr(HL,"onTransitionRun"),hr(FL,"onTransitionStart"),hr(GL,"onTransitionCancel"),hr(C_,"onTransitionEnd"),xo("onMouseEnter",["mouseout","mouseover"]),xo("onMouseLeave",["mouseout","mouseover"]),xo("onPointerEnter",["pointerout","pointerover"]),xo("onPointerLeave",["pointerout","pointerover"]),Ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ol="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(" "),Rj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ol));function Vx(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],g=h.event;h=h.listeners;e:{var _=void 0;if(o)for(var C=h.length-1;0<=C;C--){var k=h[C],z=k.instance,q=k.currentTarget;if(k=k.listener,z!==_&&g.isPropagationStopped())break e;_=k,g.currentTarget=q;try{_(g)}catch(le){Gu(le)}g.currentTarget=null,_=z}else for(C=0;C<h.length;C++){if(k=h[C],z=k.instance,q=k.currentTarget,k=k.listener,z!==_&&g.isPropagationStopped())break e;_=k,g.currentTarget=q;try{_(g)}catch(le){Gu(le)}g.currentTarget=null,_=z}}}}function et(i,o){var c=o[Gh];c===void 0&&(c=o[Gh]=new Set);var h=i+"__bubble";c.has(h)||(Bx(o,i,2,!1),c.add(h))}function Op(i,o,c){var h=0;o&&(h|=4),Bx(c,i,h,o)}var od="_reactListening"+Math.random().toString(36).slice(2);function kp(i){if(!i[od]){i[od]=!0,H0.forEach(function(c){c!=="selectionchange"&&(Rj.has(c)||Op(c,!1,i),Op(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[od]||(o[od]=!0,Op("selectionchange",!1,o))}}function Bx(i,o,c,h){switch(cS(o)){case 2:var g=Jj;break;case 8:g=eM;break;default:g=Fp}c=g.bind(null,o,c,i),g=void 0,!Jh||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(o,c,{capture:!0,passive:g}):i.addEventListener(o,c,!0):g!==void 0?i.addEventListener(o,c,{passive:g}):i.addEventListener(o,c,!1)}function Dp(i,o,c,h,g){var _=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var k=h.stateNode.containerInfo;if(k===g||k.nodeType===8&&k.parentNode===g)break;if(C===4)for(C=h.return;C!==null;){var z=C.tag;if((z===3||z===4)&&(z=C.stateNode.containerInfo,z===g||z.nodeType===8&&z.parentNode===g))return;C=C.return}for(;k!==null;){if(C=Ta(k),C===null)return;if(z=C.tag,z===5||z===6||z===26||z===27){h=_=C;continue e}k=k.parentNode}}h=h.return}t_(function(){var q=_,le=Xh(c),me=[];e:{var ne=N_.get(i);if(ne!==void 0){var se=Su,ke=i;switch(i){case"keypress":if(Eu(c)===0)break e;case"keydown":case"keyup":se=_L;break;case"focusin":ke="focus",se=rm;break;case"focusout":ke="blur",se=rm;break;case"beforeblur":case"afterblur":se=rm;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=i_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=lL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=SL;break;case w_:case T_:case R_:se=dL;break;case C_:se=wL;break;case"scroll":case"scrollend":se=oL;break;case"wheel":se=RL;break;case"copy":case"cut":case"paste":se=hL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=o_;break;case"toggle":case"beforetoggle":se=NL}var He=(o&4)!==0,Ct=!He&&(i==="scroll"||i==="scrollend"),Y=He?ne!==null?ne+"Capture":null:ne;He=[];for(var G=q,Q;G!==null;){var fe=G;if(Q=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||Q===null||Y===null||(fe=Ws(G,Y),fe!=null&&He.push(kl(G,fe,Q))),Ct)break;G=G.return}0<He.length&&(ne=new se(ne,ke,null,c,le),me.push({event:ne,listeners:He}))}}if((o&7)===0){e:{if(ne=i==="mouseover"||i==="pointerover",se=i==="mouseout"||i==="pointerout",ne&&c!==Yh&&(ke=c.relatedTarget||c.fromElement)&&(Ta(ke)||ke[bo]))break e;if((se||ne)&&(ne=le.window===le?le:(ne=le.ownerDocument)?ne.defaultView||ne.parentWindow:window,se?(ke=c.relatedTarget||c.toElement,se=q,ke=ke?Ta(ke):null,ke!==null&&(Ct=K(ke),He=ke.tag,ke!==Ct||He!==5&&He!==27&&He!==6)&&(ke=null)):(se=null,ke=q),se!==ke)){if(He=i_,fe="onMouseLeave",Y="onMouseEnter",G="mouse",(i==="pointerout"||i==="pointerover")&&(He=o_,fe="onPointerLeave",Y="onPointerEnter",G="pointer"),Ct=se==null?ne:Zs(se),Q=ke==null?ne:Zs(ke),ne=new He(fe,G+"leave",se,c,le),ne.target=Ct,ne.relatedTarget=Q,fe=null,Ta(le)===q&&(He=new He(Y,G+"enter",ke,c,le),He.target=Q,He.relatedTarget=Ct,fe=He),Ct=fe,se&&ke)t:{for(He=se,Y=ke,G=0,Q=He;Q;Q=Yo(Q))G++;for(Q=0,fe=Y;fe;fe=Yo(fe))Q++;for(;0<G-Q;)He=Yo(He),G--;for(;0<Q-G;)Y=Yo(Y),Q--;for(;G--;){if(He===Y||Y!==null&&He===Y.alternate)break t;He=Yo(He),Y=Yo(Y)}He=null}else He=null;se!==null&&Ux(me,ne,se,He,!1),ke!==null&&Ct!==null&&Ux(me,Ct,ke,He,!0)}}e:{if(ne=q?Zs(q):window,se=ne.nodeName&&ne.nodeName.toLowerCase(),se==="select"||se==="input"&&ne.type==="file")var Re=m_;else if(f_(ne))if(p_)Re=VL;else{Re=PL;var Qe=ML}else se=ne.nodeName,!se||se.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?q&&Wh(q.elementType)&&(Re=m_):Re=zL;if(Re&&(Re=Re(i,q))){h_(me,Re,c,le);break e}Qe&&Qe(i,ne,q),i==="focusout"&&q&&ne.type==="number"&&q.memoizedProps.value!=null&&Zh(ne,"number",ne.value)}switch(Qe=q?Zs(q):window,i){case"focusin":(f_(Qe)||Qe.contentEditable==="true")&&(Co=Qe,cm=q,rl=null);break;case"focusout":rl=cm=Co=null;break;case"mousedown":um=!0;break;case"contextmenu":case"mouseup":case"dragend":um=!1,S_(me,c,le);break;case"selectionchange":if($L)break;case"keydown":case"keyup":S_(me,c,le)}var Le;if(am)e:{switch(i){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Ro?u_(i,c)&&(Me="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Me="onCompositionStart");Me&&(s_&&c.locale!=="ko"&&(Ro||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Ro&&(Le=n_()):(Di=le,em="value"in Di?Di.value:Di.textContent,Ro=!0)),Qe=sd(q,Me),0<Qe.length&&(Me=new a_(Me,i,null,c,le),me.push({event:Me,listeners:Qe}),Le?Me.data=Le:(Le=d_(c),Le!==null&&(Me.data=Le)))),(Le=kL?DL(i,c):IL(i,c))&&(Me=sd(q,"onBeforeInput"),0<Me.length&&(Qe=new a_("onBeforeInput","beforeinput",null,c,le),me.push({event:Qe,listeners:Me}),Qe.data=Le)),Aj(me,i,q,c,le)}Vx(me,o)})}function kl(i,o,c){return{instance:i,listener:o,currentTarget:c}}function sd(i,o){for(var c=o+"Capture",h=[];i!==null;){var g=i,_=g.stateNode;g=g.tag,g!==5&&g!==26&&g!==27||_===null||(g=Ws(i,c),g!=null&&h.unshift(kl(i,g,_)),g=Ws(i,o),g!=null&&h.push(kl(i,g,_))),i=i.return}return h}function Yo(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Ux(i,o,c,h,g){for(var _=o._reactName,C=[];c!==null&&c!==h;){var k=c,z=k.alternate,q=k.stateNode;if(k=k.tag,z!==null&&z===h)break;k!==5&&k!==26&&k!==27||q===null||(z=q,g?(q=Ws(c,_),q!=null&&C.unshift(kl(c,q,z))):g||(q=Ws(c,_),q!=null&&C.push(kl(c,q,z)))),c=c.return}C.length!==0&&i.push({event:o,listeners:C})}var Cj=/\r\n?/g,Nj=/\u0000|\uFFFD/g;function $x(i){return(typeof i=="string"?i:""+i).replace(Cj,`
|
|
50
|
-
`).replace(Nj,"")}function Hx(i,o){return o=$x(o),$x(i)===o}function ld(){}function ct(i,o,c,h,g,_){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Ao(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Ao(i,""+h);break;case"className":gu(i,"class",h);break;case"tabIndex":gu(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":gu(i,c,h);break;case"style":J0(i,h,_);break;case"data":if(o!=="object"){gu(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=bu(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof _=="function"&&(c==="formAction"?(o!=="input"&&ct(i,o,"name",g.name,g,null),ct(i,o,"formEncType",g.formEncType,g,null),ct(i,o,"formMethod",g.formMethod,g,null),ct(i,o,"formTarget",g.formTarget,g,null)):(ct(i,o,"encType",g.encType,g,null),ct(i,o,"method",g.method,g,null),ct(i,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=bu(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=ld);break;case"onScroll":h!=null&&et("scroll",i);break;case"onScrollEnd":h!=null&&et("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=bu(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":et("beforetoggle",i),et("toggle",i),pu(i,"popover",h);break;case"xlinkActuate":ti(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ti(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ti(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ti(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ti(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ti(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ti(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ti(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ti(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pu(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=iL.get(c)||c,pu(i,c,h))}}function Ip(i,o,c,h,g,_){switch(c){case"style":J0(i,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Ao(i,h):(typeof h=="number"||typeof h=="bigint")&&Ao(i,""+h);break;case"onScroll":h!=null&&et("scroll",i);break;case"onScrollEnd":h!=null&&et("scrollend",i);break;case"onClick":h!=null&&(i.onclick=ld);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!F0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),o=c.slice(2,g?c.length-7:void 0),_=i[wn]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(o,_,g),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,g);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):pu(i,c,h)}}}function an(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",i),et("load",i);var h=!1,g=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var C=c[_];if(C!=null)switch(_){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ct(i,o,_,C,c,null)}}g&&ct(i,o,"srcSet",c.srcSet,c,null),h&&ct(i,o,"src",c.src,c,null);return;case"input":et("invalid",i);var k=_=C=g=null,z=null,q=null;for(h in c)if(c.hasOwnProperty(h)){var le=c[h];if(le!=null)switch(h){case"name":g=le;break;case"type":C=le;break;case"checked":z=le;break;case"defaultChecked":q=le;break;case"value":_=le;break;case"defaultValue":k=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,o));break;default:ct(i,o,h,le,c,null)}}W0(i,_,k,z,q,C,g,!1),yu(i);return;case"select":et("invalid",i),h=C=_=null;for(g in c)if(c.hasOwnProperty(g)&&(k=c[g],k!=null))switch(g){case"value":_=k;break;case"defaultValue":C=k;break;case"multiple":h=k;default:ct(i,o,g,k,c,null)}o=_,c=C,i.multiple=!!h,o!=null?So(i,!!h,o,!1):c!=null&&So(i,!!h,c,!0);return;case"textarea":et("invalid",i),_=g=h=null;for(C in c)if(c.hasOwnProperty(C)&&(k=c[C],k!=null))switch(C){case"value":h=k;break;case"defaultValue":g=k;break;case"children":_=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:ct(i,o,C,k,c,null)}X0(i,h,g,_),yu(i);return;case"option":for(z in c)if(c.hasOwnProperty(z)&&(h=c[z],h!=null))switch(z){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ct(i,o,z,h,c,null)}return;case"dialog":et("cancel",i),et("close",i);break;case"iframe":case"object":et("load",i);break;case"video":case"audio":for(h=0;h<Ol.length;h++)et(Ol[h],i);break;case"image":et("error",i),et("load",i);break;case"details":et("toggle",i);break;case"embed":case"source":case"link":et("error",i),et("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in c)if(c.hasOwnProperty(q)&&(h=c[q],h!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ct(i,o,q,h,c,null)}return;default:if(Wh(o)){for(le in c)c.hasOwnProperty(le)&&(h=c[le],h!==void 0&&Ip(i,o,le,h,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(h=c[k],h!=null&&ct(i,o,k,h,c,null))}function Oj(i,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,_=null,C=null,k=null,z=null,q=null,le=null;for(se in c){var me=c[se];if(c.hasOwnProperty(se)&&me!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":z=me;default:h.hasOwnProperty(se)||ct(i,o,se,null,h,me)}}for(var ne in h){var se=h[ne];if(me=c[ne],h.hasOwnProperty(ne)&&(se!=null||me!=null))switch(ne){case"type":_=se;break;case"name":g=se;break;case"checked":q=se;break;case"defaultChecked":le=se;break;case"value":C=se;break;case"defaultValue":k=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:se!==me&&ct(i,o,ne,se,h,me)}}Kh(i,C,k,z,q,le,_,g);return;case"select":se=C=k=ne=null;for(_ in c)if(z=c[_],c.hasOwnProperty(_)&&z!=null)switch(_){case"value":break;case"multiple":se=z;default:h.hasOwnProperty(_)||ct(i,o,_,null,h,z)}for(g in h)if(_=h[g],z=c[g],h.hasOwnProperty(g)&&(_!=null||z!=null))switch(g){case"value":ne=_;break;case"defaultValue":k=_;break;case"multiple":C=_;default:_!==z&&ct(i,o,g,_,h,z)}o=k,c=C,h=se,ne!=null?So(i,!!c,ne,!1):!!h!=!!c&&(o!=null?So(i,!!c,o,!0):So(i,!!c,c?[]:"",!1));return;case"textarea":se=ne=null;for(k in c)if(g=c[k],c.hasOwnProperty(k)&&g!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:ct(i,o,k,null,h,g)}for(C in h)if(g=h[C],_=c[C],h.hasOwnProperty(C)&&(g!=null||_!=null))switch(C){case"value":ne=g;break;case"defaultValue":se=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==_&&ct(i,o,C,g,h,_)}Y0(i,ne,se);return;case"option":for(var ke in c)if(ne=c[ke],c.hasOwnProperty(ke)&&ne!=null&&!h.hasOwnProperty(ke))switch(ke){case"selected":i.selected=!1;break;default:ct(i,o,ke,null,h,ne)}for(z in h)if(ne=h[z],se=c[z],h.hasOwnProperty(z)&&ne!==se&&(ne!=null||se!=null))switch(z){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:ct(i,o,z,ne,h,se)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in c)ne=c[He],c.hasOwnProperty(He)&&ne!=null&&!h.hasOwnProperty(He)&&ct(i,o,He,null,h,ne);for(q in h)if(ne=h[q],se=c[q],h.hasOwnProperty(q)&&ne!==se&&(ne!=null||se!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:ct(i,o,q,ne,h,se)}return;default:if(Wh(o)){for(var Ct in c)ne=c[Ct],c.hasOwnProperty(Ct)&&ne!==void 0&&!h.hasOwnProperty(Ct)&&Ip(i,o,Ct,void 0,h,ne);for(le in h)ne=h[le],se=c[le],!h.hasOwnProperty(le)||ne===se||ne===void 0&&se===void 0||Ip(i,o,le,ne,h,se);return}}for(var Y in c)ne=c[Y],c.hasOwnProperty(Y)&&ne!=null&&!h.hasOwnProperty(Y)&&ct(i,o,Y,null,h,ne);for(me in h)ne=h[me],se=c[me],!h.hasOwnProperty(me)||ne===se||ne==null&&se==null||ct(i,o,me,ne,h,se)}var Lp=null,jp=null;function cd(i){return i.nodeType===9?i:i.ownerDocument}function Fx(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gx(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Mp(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Pp=null;function kj(){var i=window.event;return i&&i.type==="popstate"?i===Pp?!1:(Pp=i,!0):(Pp=null,!1)}var qx=typeof setTimeout=="function"?setTimeout:void 0,Dj=typeof clearTimeout=="function"?clearTimeout:void 0,Kx=typeof Promise=="function"?Promise:void 0,Ij=typeof queueMicrotask=="function"?queueMicrotask:typeof Kx<"u"?function(i){return Kx.resolve(null).then(i).catch(Lj)}:qx;function Lj(i){setTimeout(function(){throw i})}function zp(i,o){var c=o,h=0;do{var g=c.nextSibling;if(i.removeChild(c),g&&g.nodeType===8)if(c=g.data,c==="/$"){if(h===0){i.removeChild(g),Vl(o);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=g}while(c);Vl(o)}function Vp(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Vp(c),qh(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function jj(i,o,c,h){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Ks])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==g.rel||i.getAttribute("href")!==(g.href==null?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var _=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=gr(i.nextSibling),i===null)break}return null}function Mj(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=gr(i.nextSibling),i===null))return null;return i}function gr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}function Zx(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function Wx(i,o,c){switch(o=cd(c),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var er=new Map,Yx=new Set;function ud(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var gi=ie.d;ie.d={f:Pj,r:zj,D:Vj,C:Bj,L:Uj,m:$j,X:Fj,S:Hj,M:Gj};function Pj(){var i=gi.f(),o=nd();return i||o}function zj(i){var o=_o(i);o!==null&&o.tag===5&&o.type==="form"?SE(o):gi.r(i)}var Xo=typeof document>"u"?null:document;function Xx(i,o,c){var h=Xo;if(h&&typeof o=="string"&&o){var g=Fn(o);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),Yx.has(g)||(Yx.add(g),i={rel:i,crossOrigin:c,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),an(o,"link",i),Wt(o),h.head.appendChild(o)))}}function Vj(i){gi.D(i),Xx("dns-prefetch",i,null)}function Bj(i,o){gi.C(i,o),Xx("preconnect",i,o)}function Uj(i,o,c){gi.L(i,o,c);var h=Xo;if(h&&i&&o){var g='link[rel="preload"][as="'+Fn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+Fn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+Fn(c.imageSizes)+'"]')):g+='[href="'+Fn(i)+'"]';var _=g;switch(o){case"style":_=Qo(i);break;case"script":_=Jo(i)}er.has(_)||(i=M({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),er.set(_,i),h.querySelector(g)!==null||o==="style"&&h.querySelector(Dl(_))||o==="script"&&h.querySelector(Il(_))||(o=h.createElement("link"),an(o,"link",i),Wt(o),h.head.appendChild(o)))}}function $j(i,o){gi.m(i,o);var c=Xo;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Fn(h)+'"][href="'+Fn(i)+'"]',_=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Jo(i)}if(!er.has(_)&&(i=M({rel:"modulepreload",href:i},o),er.set(_,i),c.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Il(_)))return}h=c.createElement("link"),an(h,"link",i),Wt(h),c.head.appendChild(h)}}}function Hj(i,o,c){gi.S(i,o,c);var h=Xo;if(h&&i){var g=Eo(h).hoistableStyles,_=Qo(i);o=o||"default";var C=g.get(_);if(!C){var k={loading:0,preload:null};if(C=h.querySelector(Dl(_)))k.loading=5;else{i=M({rel:"stylesheet",href:i,"data-precedence":o},c),(c=er.get(_))&&Bp(i,c);var z=C=h.createElement("link");Wt(z),an(z,"link",i),z._p=new Promise(function(q,le){z.onload=q,z.onerror=le}),z.addEventListener("load",function(){k.loading|=1}),z.addEventListener("error",function(){k.loading|=2}),k.loading|=4,dd(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:k},g.set(_,C)}}}function Fj(i,o){gi.X(i,o);var c=Xo;if(c&&i){var h=Eo(c).hoistableScripts,g=Jo(i),_=h.get(g);_||(_=c.querySelector(Il(g)),_||(i=M({src:i,async:!0},o),(o=er.get(g))&&Up(i,o),_=c.createElement("script"),Wt(_),an(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function Gj(i,o){gi.M(i,o);var c=Xo;if(c&&i){var h=Eo(c).hoistableScripts,g=Jo(i),_=h.get(g);_||(_=c.querySelector(Il(g)),_||(i=M({src:i,async:!0,type:"module"},o),(o=er.get(g))&&Up(i,o),_=c.createElement("script"),Wt(_),an(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function Qx(i,o,c,h){var g=(g=pt.current)?ud(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=Qo(c.href),c=Eo(g).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Qo(c.href);var _=Eo(g).hoistableStyles,C=_.get(i);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,C),(_=g.querySelector(Dl(i)))&&!_._p&&(C.instance=_,C.state.loading=5),er.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},er.set(i,c),_||qj(g,i,c,C.state))),o&&h===null)throw Error(r(528,""));return C}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Jo(c),c=Eo(g).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Qo(i){return'href="'+Fn(i)+'"'}function Dl(i){return'link[rel="stylesheet"]['+i+"]"}function Jx(i){return M({},i,{"data-precedence":i.precedence,precedence:null})}function qj(i,o,c,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),an(o,"link",c),Wt(o),i.head.appendChild(o))}function Jo(i){return'[src="'+Fn(i)+'"]'}function Il(i){return"script[async]"+i}function eS(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Fn(c.href)+'"]');if(h)return o.instance=h,Wt(h),h;var g=M({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Wt(h),an(h,"style",g),dd(h,c.precedence,i),o.instance=h;case"stylesheet":g=Qo(c.href);var _=i.querySelector(Dl(g));if(_)return o.state.loading|=4,o.instance=_,Wt(_),_;h=Jx(c),(g=er.get(g))&&Bp(h,g),_=(i.ownerDocument||i).createElement("link"),Wt(_);var C=_;return C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),an(_,"link",h),o.state.loading|=4,dd(_,c.precedence,i),o.instance=_;case"script":return _=Jo(c.src),(g=i.querySelector(Il(_)))?(o.instance=g,Wt(g),g):(h=c,(g=er.get(_))&&(h=M({},c),Up(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),Wt(g),an(g,"link",h),i.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,dd(h,c.precedence,i));return o.instance}function dd(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,_=g,C=0;C<h.length;C++){var k=h[C];if(k.dataset.precedence===o)_=k;else if(_!==g)break}_?_.parentNode.insertBefore(i,_.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function Bp(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function Up(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var fd=null;function tS(i,o,c){if(fd===null){var h=new Map,g=fd=new Map;g.set(c,h)}else g=fd,h=g.get(c),h||(h=new Map,g.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),g=0;g<c.length;g++){var _=c[g];if(!(_[Ks]||_[un]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var C=_.getAttribute(o)||"";C=i+C;var k=h.get(C);k?k.push(_):h.set(C,[_])}}return h}function nS(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function Kj(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function rS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Ll=null;function Zj(){}function Wj(i,o,c){if(Ll===null)throw Error(r(475));var h=Ll;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Qo(c.href),_=i.querySelector(Dl(g));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=hd.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=_,Wt(_);return}_=i.ownerDocument||i,c=Jx(c),(g=er.get(g))&&Bp(c,g),_=_.createElement("link"),Wt(_);var C=_;C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),an(_,"link",c),o.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=hd.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function Yj(){if(Ll===null)throw Error(r(475));var i=Ll;return i.stylesheets&&i.count===0&&$p(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&$p(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function hd(){if(this.count--,this.count===0){if(this.stylesheets)$p(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var md=null;function $p(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,md=new Map,o.forEach(Xj,i),md=null,hd.call(i))}function Xj(i,o){if(!(o.state.loading&4)){var c=md.get(i);if(c)var h=c.get(null);else{c=new Map,md.set(i,c);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<g.length;_++){var C=g[_];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(c.set(C.dataset.precedence,C),h=C)}h&&c.set(null,h)}g=o.instance,C=g.getAttribute("data-precedence"),_=c.get(C)||h,_===h&&c.set(null,g),c.set(C,g),this.count++,h=hd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),_?_.parentNode.insertBefore(g,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),o.state.loading|=4}}var jl={$$typeof:x,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function Qj(i,o,c,h,g,_,C,k){this.tag=1,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fh(0),this.hiddenUpdates=Fh(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=_,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function iS(i,o,c,h,g,_,C,k,z,q,le,me){return i=new Qj(i,o,c,C,k,z,q,me),o=1,_===!0&&(o|=24),_=Qn(3,null,null,o),i.current=_,_.stateNode=i,o=_m(),o.refCount++,i.pooledCache=o,o.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:o},ep(_),i}function aS(i){return i?(i=ko,i):ko}function oS(i,o,c,h,g,_){g=aS(g),h.context===null?h.context=g:h.pendingContext=g,h=Bi(o),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=Ui(i,h,o),c!==null&&(bn(c,i,o),vl(c,i,o))}function sS(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function Hp(i,o){sS(i,o),(i=i.alternate)&&sS(i,o)}function lS(i){if(i.tag===13){var o=Ii(i,67108864);o!==null&&bn(o,i,67108864),Hp(i,67108864)}}var pd=!0;function Jj(i,o,c,h){var g=P.T;P.T=null;var _=ie.p;try{ie.p=2,Fp(i,o,c,h)}finally{ie.p=_,P.T=g}}function eM(i,o,c,h){var g=P.T;P.T=null;var _=ie.p;try{ie.p=8,Fp(i,o,c,h)}finally{ie.p=_,P.T=g}}function Fp(i,o,c,h){if(pd){var g=Gp(h);if(g===null)Dp(i,o,h,gd,c),uS(i,h);else if(nM(g,i,o,c,h))h.stopPropagation();else if(uS(i,h),o&4&&-1<tM.indexOf(i)){for(;g!==null;){var _=_o(g);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var C=wa(_.pendingLanes);if(C!==0){var k=_;for(k.pendingLanes|=2,k.entangledLanes|=2;C;){var z=1<<31-yn(C);k.entanglements[1]|=z,C&=~z}Ir(_),(bt&6)===0&&(Ju=be()+500,Nl(0))}}break;case 13:k=Ii(_,2),k!==null&&bn(k,_,2),nd(),Hp(_,2)}if(_=Gp(h),_===null&&Dp(i,o,h,gd,c),_===g)break;g=_}g!==null&&h.stopPropagation()}else Dp(i,o,h,null,c)}}function Gp(i){return i=Xh(i),qp(i)}var gd=null;function qp(i){if(gd=null,i=Ta(i),i!==null){var o=K(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=ye(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return gd=i,null}function cS(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ee()){case Ie:return 2;case rt:return 8;case ot:case An:return 32;case Aa:return 268435456;default:return 32}default:return 32}}var Kp=!1,Zi=null,Wi=null,Yi=null,Ml=new Map,Pl=new Map,Xi=[],tM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function uS(i,o){switch(i){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":Wi=null;break;case"mouseover":case"mouseout":Yi=null;break;case"pointerover":case"pointerout":Ml.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(o.pointerId)}}function zl(i,o,c,h,g,_){return i===null||i.nativeEvent!==_?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[g]},o!==null&&(o=_o(o),o!==null&&lS(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),i)}function nM(i,o,c,h,g){switch(o){case"focusin":return Zi=zl(Zi,i,o,c,h,g),!0;case"dragenter":return Wi=zl(Wi,i,o,c,h,g),!0;case"mouseover":return Yi=zl(Yi,i,o,c,h,g),!0;case"pointerover":var _=g.pointerId;return Ml.set(_,zl(Ml.get(_)||null,i,o,c,h,g)),!0;case"gotpointercapture":return _=g.pointerId,Pl.set(_,zl(Pl.get(_)||null,i,o,c,h,g)),!0}return!1}function dS(i){var o=Ta(i.target);if(o!==null){var c=K(o);if(c!==null){if(o=c.tag,o===13){if(o=ye(c),o!==null){i.blockedOn=o,YI(i.priority,function(){if(c.tag===13){var h=Mn(),g=Ii(c,h);g!==null&&bn(g,c,h),Hp(c,h)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function yd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=Gp(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);Yh=h,c.target.dispatchEvent(h),Yh=null}else return o=_o(c),o!==null&&lS(o),i.blockedOn=c,!1;o.shift()}return!0}function fS(i,o,c){yd(i)&&c.delete(o)}function rM(){Kp=!1,Zi!==null&&yd(Zi)&&(Zi=null),Wi!==null&&yd(Wi)&&(Wi=null),Yi!==null&&yd(Yi)&&(Yi=null),Ml.forEach(fS),Pl.forEach(fS)}function vd(i,o){i.blockedOn===o&&(i.blockedOn=null,Kp||(Kp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rM)))}var bd=null;function hS(i){bd!==i&&(bd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bd===i&&(bd=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],g=i[o+2];if(typeof h!="function"){if(qp(h||c)===null)continue;break}var _=_o(c);_!==null&&(i.splice(o,3),o-=3,Mm(_,{pending:!0,data:g,method:c.method,action:h},h,g))}}))}function Vl(i){function o(z){return vd(z,i)}Zi!==null&&vd(Zi,i),Wi!==null&&vd(Wi,i),Yi!==null&&vd(Yi,i),Ml.forEach(o),Pl.forEach(o);for(var c=0;c<Xi.length;c++){var h=Xi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Xi.length&&(c=Xi[0],c.blockedOn===null);)dS(c),c.blockedOn===null&&Xi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var g=c[h],_=c[h+1],C=g[wn]||null;if(typeof _=="function")C||hS(c);else if(C){var k=null;if(_&&_.hasAttribute("formAction")){if(g=_,C=_[wn]||null)k=C.formAction;else if(qp(g)!==null)continue}else k=C.action;typeof k=="function"?c[h+1]=k:(c.splice(h,3),h-=3),hS(c)}}}function Zp(i){this._internalRoot=i}_d.prototype.render=Zp.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=Mn();oS(c,h,i,o,null,null)},_d.prototype.unmount=Zp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;i.tag===0&&Zo(),oS(i.current,2,null,i,null,null),nd(),o[bo]=null}};function _d(i){this._internalRoot=i}_d.prototype.unstable_scheduleHydration=function(i){if(i){var o=U0();i={blockedOn:null,target:i,priority:o};for(var c=0;c<Xi.length&&o!==0&&o<Xi[c].priority;c++);Xi.splice(c,0,i),c===0&&dS(i)}};var mS=t.version;if(mS!=="19.0.0")throw Error(r(527,mS,"19.0.0"));ie.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=J(o),i=i!==null?F(i):null,i=i===null?null:i.stateNode,i};var iM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:Ta,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ed.isDisabled&&Ed.supportsFiber)try{Jr=Ed.inject(iM),tn=Ed}catch{}}return Ul.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",g=kE,_=DE,C=IE,k=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(k=o.unstable_transitionCallbacks)),o=iS(i,1,!1,null,null,c,h,g,_,C,k,null),i[bo]=o.current,kp(i.nodeType===8?i.parentNode:i),new Zp(o)},Ul.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,g="",_=kE,C=DE,k=IE,z=null,q=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(C=c.onCaughtError),c.onRecoverableError!==void 0&&(k=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks),c.formState!==void 0&&(q=c.formState)),o=iS(i,1,!0,o,c??null,h,g,_,C,k,z,q),o.context=aS(null),c=o.current,h=Mn(),g=Bi(h),g.callback=null,Ui(c,g,h),o.current.lanes=h,qs(o,h),Ir(o),i[bo]=o.current,kp(i),new _d(o)},Ul.version="19.0.0",Ul}var AS;function gM(){if(AS)return Xp.exports;AS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Xp.exports=pM(),Xp.exports}var yM=gM();const vM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],strictMode:"strict",defaultLocale:"en"},bM={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1},_M={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",excludedPath:["node_modules",".intlayer",".next",".nuxt",".expo","dist"],watch:!1,contentDir:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor"],dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",dictionaryOutput:["intlayer"],unmergedDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/unmerged_dictionary",dynamicDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dynamic_dictionary",i18nextResourcesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/i18next_resources",reactIntlMessagesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/intl_messages",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.cjx","/**/*.content.mjs","/**/*.content.mjx","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},EM={applicationURL:"http://localhost:5173/",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",hotReload:!1},xM={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},SM={},AM={optimize:!0,importMode:"static",traversePattern:["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"]},Ge={internationalization:vM,middleware:bM,content:_M,editor:EM,log:xM,ai:SM,build:AM};var B=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e.BENGALI="bn",e.BENGALI_BANGLADESH="bn-BD",e.BENGALI_INDIA="bn-IN",e.BENGALI_MYANMAR="bn-MM",e.BURMESE="my",e.BURMESE_MYANMAR="my-MM",e.KHMER="km",e.KHMER_CAMBODIA="km-KH",e.LAO="lo",e.LAO_LAOS="lo-LA",e.YORUBA="yo",e.YORUBA_NIGERIA="yo-NG",e.AMHARIC="am",e.AMHARIC_ETHIOPIA="am-ET",e.NEPALI="ne",e))(B||{}),Z=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Gender="gender",e.Unknown="unknown",e))(Z||{});const wM=(e,t,n)=>({...n,nodeType:e,[e]:t}),wS=(e,t,n)=>{let r=e,a=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===Z.Object||u.type===Z.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===Z.Translation||u.type===Z.Enumeration)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===Z.Enumeration||u.type===Z.Condition)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===Z.Markdown||u.type===Z.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===Z.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&s.length>0){let d=a;for(const f of s.slice(0,-1))d=d[f];typeof n>"u"?delete d[s[s.length-1]]:d[s[s.length-1]]=n}}return e},Ur=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===Z.Object||r.type===Z.Array?n=n==null?void 0:n[r.key]:r.type===Z.Translation||r.type===Z.Condition||r.type===Z.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===Z.Markdown||r.type===Z.Insertion||r.type===Z.File)&&(n=n==null?void 0:n[r.type]);return n},$1=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof(e==null?void 0:e.nodeType)=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===Z.Translation||t.nodeType===Z.Enumeration||t.nodeType===Z.Condition||t.nodeType===Z.Insertion||t.nodeType===Z.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===Z.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},TM=(e,t,n)=>{let r=e,a=null,s=null;for(const l of n)a=r,(l.type===Z.Object||l.type===Z.Array)&&(s=l.key,r=r[l.key]),(l.type===Z.Translation||l.type===Z.Enumeration||l.type===Z.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===Z.Markdown||l.type===Z.ReactNode||l.type===Z.Insertion||l.type===Z.File)&&(s=l.type,r=r[l.type]);if(a&&s!==null)if(Array.isArray(a))a[s]=r;else{const l={};for(const u of Object.keys(a))u===s&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},RM=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Cs=e=>typeof e=="string"?Z.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?Z.Array:RM(e)?Z.ReactNode:typeof e=="number"?Z.Number:typeof e=="boolean"?Z.Boolean:e&&typeof e=="object"?Z.Object:Z.Unknown,$l=(e,t,n)=>{const r=structuredClone(n);switch(e){case Z.Translation:return{nodeType:Z.Translation,[Z.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case Z.Enumeration:return{nodeType:Z.Enumeration,[Z.Enumeration]:{1:r??""}};case Z.Condition:return{nodeType:Z.Condition,[Z.Condition]:{true:r??"",false:r??""}};case Z.Insertion:return{nodeType:Z.Insertion,[Z.Insertion]:{insertion:r??""}};case Z.Nested:return{nodeType:Z.Nested,[Z.Nested]:{dictionaryKey:""}};case Z.Markdown:return{nodeType:Z.Markdown,[Z.Markdown]:r??""};case Z.File:return{nodeType:Z.File,[Z.File]:r??""};case Z.Object:return{newKey:r??""};case Z.Array:return[r??""];case Z.Text:return r??"";case Z.Number:return r??0;case Z.Boolean:return r??!0;default:return r??""}},ar=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof(e==null?void 0:e.nodeType)=="string"){const r=e,a=r[r.nodeType];return r.nodeType===Z.Translation||r.nodeType===Z.Enumeration||r.nodeType===Z.Condition||r.nodeType===Z.Insertion?ar(a):r.nodeType===Z.Nested?"dictionary-key":r.nodeType===Z.File?"file/path":r.nodeType===Z.Markdown?ar(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(ar);const t=Object.entries(e).map(([r,a])=>[r,ar(a)]);return Object.fromEntries(t)},Xd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,s)=>Xd(a,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:Z.Array,key:a}]};return Xd(r,s)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:Z.Object,key:r}]};n[r]=Xd(e[r],a)}return n},CM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},NM=(e,t)=>{const n=Object.keys(e);for(const r of n){const a=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,s=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),u=r.startsWith("<")&&t<parseFloat(r.slice(1)),d=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||s||l||u||d)return r}},OM=(e,t)=>{const n=NM(e,t)??"fallback";return e[n]},kM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),DM="dictionary-edition-drawer",IM={openDictionaryEditor:{label:{nodeType:"translation",translation:{en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"}}},backButtonText:{nodeType:"translation",translation:{en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}},modalTitle:{nodeType:"translation",translation:{en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}},noDictionaryFocused:{nodeType:"translation",translation:{en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"}}},LM={key:DM,content:IM},jM="no-application-url-view",MM={title:{nodeType:"translation",translation:{en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}},description:{nodeType:"translation",translation:{en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}},documentationLink:{label:{nodeType:"translation",translation:{en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}},text:{nodeType:"translation",translation:{en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"}}}},PM={key:jM,content:MM},TS={"dictionary-edition-drawer":LM,"no-application-url-view":PM},H1=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return Lv(e.content,r,t)},zM=(e,t,n)=>{const r=TS[e];if(!r)throw new Error(`Dictionary ${e} not found`,TS);return H1(r,t,n)},VM=(e,t,n)=>{const r=zM(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let s=r;for(const l of a)if(s=s==null?void 0:s[l],s===void 0)return r;return s}return r},BM=(e,t,n=!0)=>{const{defaultLocale:r}=Ge==null?void 0:Ge.internationalization;let a=e[t??r];return n&&!a&&(a=e[r]),a},UM=(e,t=!0)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&(n==null?void 0:n.nodeType)===Z.Translation,transform:(n,r,a)=>{const s=structuredClone(n[Z.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:Z.Translation,key:l}]};s[l]=a(s[l],u)}return BM(s,e,t)}}),$M={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[Z.Enumeration]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:Z.Enumeration,key:a}]};r[a]=n(s,l)}return a=>OM(r,a)}},HM={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Condition,transform:(e,t,n)=>{const r=structuredClone(e[Z.Condition]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:Z.Condition,key:a}]};r[a]=n(s,l)}return a=>CM(r,a)}},FM={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Z.Insertion}],a=e[Z.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,u,d)=>{const f=d(l,{...u,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const p=kM(f,m);return d(p,{...u,plugins:t.plugins,children:p})}}},...t.plugins??[]]})}},GM={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Nested,transform:(e,t)=>VM(e.nested.dictionaryKey,e.nested.path,t)},qM={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},Lv=(e,t,n=Ge==null?void 0:Ge.internationalization.defaultLocale)=>{const r=[FM,UM(n),$M,HM,GM,qM,...t.plugins??[]];return Xd(e,{...t,plugins:r})},RS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},KM=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),xd=e=>e.reduce((t,n)=>{const r=t??{},a=KM(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),je=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const s=t.map(({body:x,params:y,headers:E,...A})=>A),l=xd([RS,...s]),u=xd([RS.headers,...t.map(x=>x.headers)]),d=xd(t.map(x=>x.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const x=xd(t.map(y=>y.body));(u==null?void 0:u["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(x).toString():a=JSON.stringify(x)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const m={...l,headers:u,body:a,signal:n},p=`${e}${r}`,v=await fetch(p,m);if(!v.ok){const x=await v.json();throw new Error(JSON.stringify(x.error)??"An error occurred")}return await v.json()},ZM=(e={},t)=>{var p,v;const n=((p=t==null?void 0:t.editor)==null?void 0:p.backendURL)??((v=Ge.editor)==null?void 0:v.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(x,y={})=>await je(r,e,y,{params:x}),getDictionariesKeys:async(x={})=>await je(`${r}/keys`,e,x),getDictionary:async(x,y,E={})=>await je(`${r}/${x}`,e,E,{params:y?{version:y.toString()}:void 0}),pushDictionaries:async(x,y={})=>await je(`${r}`,e,y,{method:"PATCH",body:{dictionaries:x}}),addDictionary:async(x,y={})=>await je(`${r}`,e,y,{method:"POST",body:x}),updateDictionary:async(x,y,E={})=>await je(`${r}/${x}`,e,E,{method:"PUT",body:y}),deleteDictionary:async(x,y={})=>await je(`${r}/${x}`,e,y,{method:"DELETE"})}},F1=e=>{var s,l;const t=((s=e==null?void 0:e.editor)==null?void 0:s.backendURL)??((l=Ge.editor)==null?void 0:l.backendURL),{clientId:n,clientSecret:r}=(e==null?void 0:e.editor)??{};if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");return{getOAuth2AccessToken:async(u={})=>await je(`${t}/oauth2/token`,{},u,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:n,client_secret:r}})}},WM=(e={},t)=>{var v,x;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((x=Ge.editor)==null?void 0:x.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{customQuery:async(y,E={})=>await je(r,e,E,{method:"POST",body:y}),translateJSON:async(y,E={})=>await je(`${r}/translate/json`,e,E,{method:"POST",body:y}),auditContentDeclaration:async(y,E={})=>await je(`${r}/audit/dictionary`,e,E,{method:"POST",body:y}),auditContentDeclarationField:async(y,E={})=>await je(`${r}/audit/dictionary/field`,e,E,{method:"POST",body:y}),auditContentDeclarationMetadata:async(y,E={})=>await je(`${r}/audit/dictionary/metadata`,e,E,{method:"POST",body:y}),auditTag:async(y,E={})=>await je(`${r}/audit/tag`,e,E,{method:"POST",body:y}),askDocQuestion:async(y,E={})=>{var O;if(!y)return;const{onMessage:A,onDone:T,...w}=y,R=new AbortController;try{const N=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...E.headers},body:JSON.stringify({...w,...e.body,...E.body}),signal:R.signal,credentials:"include"});if(!N.ok){let P="An error occurred";try{const M=await N.json();P=JSON.stringify(M.error)??"An error occurred"}catch{try{const M=await N.text();M&&(P=M)}catch{}}throw new Error(P)}const D=(O=N.body)==null?void 0:O.getReader();if(!D)throw new Error("No reader available");const I=new TextDecoder;let j="";for(;;){const{done:P,value:M}=await D.read();if(P)break;j+=I.decode(M,{stream:!0});const oe=j.split(`
|
|
50
|
+
`).replace(Nj,"")}function Hx(i,o){return o=$x(o),$x(i)===o}function ld(){}function ct(i,o,c,h,g,_){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Ao(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Ao(i,""+h);break;case"className":gu(i,"class",h);break;case"tabIndex":gu(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":gu(i,c,h);break;case"style":J0(i,h,_);break;case"data":if(o!=="object"){gu(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=bu(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof _=="function"&&(c==="formAction"?(o!=="input"&&ct(i,o,"name",g.name,g,null),ct(i,o,"formEncType",g.formEncType,g,null),ct(i,o,"formMethod",g.formMethod,g,null),ct(i,o,"formTarget",g.formTarget,g,null)):(ct(i,o,"encType",g.encType,g,null),ct(i,o,"method",g.method,g,null),ct(i,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=bu(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=ld);break;case"onScroll":h!=null&&et("scroll",i);break;case"onScrollEnd":h!=null&&et("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=bu(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":et("beforetoggle",i),et("toggle",i),pu(i,"popover",h);break;case"xlinkActuate":ti(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ti(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ti(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ti(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ti(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ti(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ti(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ti(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ti(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pu(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=iL.get(c)||c,pu(i,c,h))}}function Ip(i,o,c,h,g,_){switch(c){case"style":J0(i,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Ao(i,h):(typeof h=="number"||typeof h=="bigint")&&Ao(i,""+h);break;case"onScroll":h!=null&&et("scroll",i);break;case"onScrollEnd":h!=null&&et("scrollend",i);break;case"onClick":h!=null&&(i.onclick=ld);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!F0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),o=c.slice(2,g?c.length-7:void 0),_=i[wn]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(o,_,g),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,g);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):pu(i,c,h)}}}function an(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",i),et("load",i);var h=!1,g=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var C=c[_];if(C!=null)switch(_){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ct(i,o,_,C,c,null)}}g&&ct(i,o,"srcSet",c.srcSet,c,null),h&&ct(i,o,"src",c.src,c,null);return;case"input":et("invalid",i);var k=_=C=g=null,z=null,q=null;for(h in c)if(c.hasOwnProperty(h)){var le=c[h];if(le!=null)switch(h){case"name":g=le;break;case"type":C=le;break;case"checked":z=le;break;case"defaultChecked":q=le;break;case"value":_=le;break;case"defaultValue":k=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,o));break;default:ct(i,o,h,le,c,null)}}W0(i,_,k,z,q,C,g,!1),yu(i);return;case"select":et("invalid",i),h=C=_=null;for(g in c)if(c.hasOwnProperty(g)&&(k=c[g],k!=null))switch(g){case"value":_=k;break;case"defaultValue":C=k;break;case"multiple":h=k;default:ct(i,o,g,k,c,null)}o=_,c=C,i.multiple=!!h,o!=null?So(i,!!h,o,!1):c!=null&&So(i,!!h,c,!0);return;case"textarea":et("invalid",i),_=g=h=null;for(C in c)if(c.hasOwnProperty(C)&&(k=c[C],k!=null))switch(C){case"value":h=k;break;case"defaultValue":g=k;break;case"children":_=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:ct(i,o,C,k,c,null)}X0(i,h,g,_),yu(i);return;case"option":for(z in c)if(c.hasOwnProperty(z)&&(h=c[z],h!=null))switch(z){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ct(i,o,z,h,c,null)}return;case"dialog":et("cancel",i),et("close",i);break;case"iframe":case"object":et("load",i);break;case"video":case"audio":for(h=0;h<Ol.length;h++)et(Ol[h],i);break;case"image":et("error",i),et("load",i);break;case"details":et("toggle",i);break;case"embed":case"source":case"link":et("error",i),et("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in c)if(c.hasOwnProperty(q)&&(h=c[q],h!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ct(i,o,q,h,c,null)}return;default:if(Wh(o)){for(le in c)c.hasOwnProperty(le)&&(h=c[le],h!==void 0&&Ip(i,o,le,h,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(h=c[k],h!=null&&ct(i,o,k,h,c,null))}function Oj(i,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,_=null,C=null,k=null,z=null,q=null,le=null;for(se in c){var me=c[se];if(c.hasOwnProperty(se)&&me!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":z=me;default:h.hasOwnProperty(se)||ct(i,o,se,null,h,me)}}for(var ne in h){var se=h[ne];if(me=c[ne],h.hasOwnProperty(ne)&&(se!=null||me!=null))switch(ne){case"type":_=se;break;case"name":g=se;break;case"checked":q=se;break;case"defaultChecked":le=se;break;case"value":C=se;break;case"defaultValue":k=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:se!==me&&ct(i,o,ne,se,h,me)}}Kh(i,C,k,z,q,le,_,g);return;case"select":se=C=k=ne=null;for(_ in c)if(z=c[_],c.hasOwnProperty(_)&&z!=null)switch(_){case"value":break;case"multiple":se=z;default:h.hasOwnProperty(_)||ct(i,o,_,null,h,z)}for(g in h)if(_=h[g],z=c[g],h.hasOwnProperty(g)&&(_!=null||z!=null))switch(g){case"value":ne=_;break;case"defaultValue":k=_;break;case"multiple":C=_;default:_!==z&&ct(i,o,g,_,h,z)}o=k,c=C,h=se,ne!=null?So(i,!!c,ne,!1):!!h!=!!c&&(o!=null?So(i,!!c,o,!0):So(i,!!c,c?[]:"",!1));return;case"textarea":se=ne=null;for(k in c)if(g=c[k],c.hasOwnProperty(k)&&g!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:ct(i,o,k,null,h,g)}for(C in h)if(g=h[C],_=c[C],h.hasOwnProperty(C)&&(g!=null||_!=null))switch(C){case"value":ne=g;break;case"defaultValue":se=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==_&&ct(i,o,C,g,h,_)}Y0(i,ne,se);return;case"option":for(var ke in c)if(ne=c[ke],c.hasOwnProperty(ke)&&ne!=null&&!h.hasOwnProperty(ke))switch(ke){case"selected":i.selected=!1;break;default:ct(i,o,ke,null,h,ne)}for(z in h)if(ne=h[z],se=c[z],h.hasOwnProperty(z)&&ne!==se&&(ne!=null||se!=null))switch(z){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:ct(i,o,z,ne,h,se)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in c)ne=c[He],c.hasOwnProperty(He)&&ne!=null&&!h.hasOwnProperty(He)&&ct(i,o,He,null,h,ne);for(q in h)if(ne=h[q],se=c[q],h.hasOwnProperty(q)&&ne!==se&&(ne!=null||se!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:ct(i,o,q,ne,h,se)}return;default:if(Wh(o)){for(var Ct in c)ne=c[Ct],c.hasOwnProperty(Ct)&&ne!==void 0&&!h.hasOwnProperty(Ct)&&Ip(i,o,Ct,void 0,h,ne);for(le in h)ne=h[le],se=c[le],!h.hasOwnProperty(le)||ne===se||ne===void 0&&se===void 0||Ip(i,o,le,ne,h,se);return}}for(var Y in c)ne=c[Y],c.hasOwnProperty(Y)&&ne!=null&&!h.hasOwnProperty(Y)&&ct(i,o,Y,null,h,ne);for(me in h)ne=h[me],se=c[me],!h.hasOwnProperty(me)||ne===se||ne==null&&se==null||ct(i,o,me,ne,h,se)}var Lp=null,jp=null;function cd(i){return i.nodeType===9?i:i.ownerDocument}function Fx(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gx(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Mp(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Pp=null;function kj(){var i=window.event;return i&&i.type==="popstate"?i===Pp?!1:(Pp=i,!0):(Pp=null,!1)}var qx=typeof setTimeout=="function"?setTimeout:void 0,Dj=typeof clearTimeout=="function"?clearTimeout:void 0,Kx=typeof Promise=="function"?Promise:void 0,Ij=typeof queueMicrotask=="function"?queueMicrotask:typeof Kx<"u"?function(i){return Kx.resolve(null).then(i).catch(Lj)}:qx;function Lj(i){setTimeout(function(){throw i})}function zp(i,o){var c=o,h=0;do{var g=c.nextSibling;if(i.removeChild(c),g&&g.nodeType===8)if(c=g.data,c==="/$"){if(h===0){i.removeChild(g),Vl(o);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=g}while(c);Vl(o)}function Vp(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Vp(c),qh(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function jj(i,o,c,h){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Ks])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==g.rel||i.getAttribute("href")!==(g.href==null?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var _=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=gr(i.nextSibling),i===null)break}return null}function Mj(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=gr(i.nextSibling),i===null))return null;return i}function gr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}function Zx(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function Wx(i,o,c){switch(o=cd(c),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var er=new Map,Yx=new Set;function ud(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var gi=ie.d;ie.d={f:Pj,r:zj,D:Vj,C:Bj,L:Uj,m:$j,X:Fj,S:Hj,M:Gj};function Pj(){var i=gi.f(),o=nd();return i||o}function zj(i){var o=_o(i);o!==null&&o.tag===5&&o.type==="form"?SE(o):gi.r(i)}var Xo=typeof document>"u"?null:document;function Xx(i,o,c){var h=Xo;if(h&&typeof o=="string"&&o){var g=Fn(o);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),Yx.has(g)||(Yx.add(g),i={rel:i,crossOrigin:c,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),an(o,"link",i),Wt(o),h.head.appendChild(o)))}}function Vj(i){gi.D(i),Xx("dns-prefetch",i,null)}function Bj(i,o){gi.C(i,o),Xx("preconnect",i,o)}function Uj(i,o,c){gi.L(i,o,c);var h=Xo;if(h&&i&&o){var g='link[rel="preload"][as="'+Fn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+Fn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+Fn(c.imageSizes)+'"]')):g+='[href="'+Fn(i)+'"]';var _=g;switch(o){case"style":_=Qo(i);break;case"script":_=Jo(i)}er.has(_)||(i=M({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),er.set(_,i),h.querySelector(g)!==null||o==="style"&&h.querySelector(Dl(_))||o==="script"&&h.querySelector(Il(_))||(o=h.createElement("link"),an(o,"link",i),Wt(o),h.head.appendChild(o)))}}function $j(i,o){gi.m(i,o);var c=Xo;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Fn(h)+'"][href="'+Fn(i)+'"]',_=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Jo(i)}if(!er.has(_)&&(i=M({rel:"modulepreload",href:i},o),er.set(_,i),c.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Il(_)))return}h=c.createElement("link"),an(h,"link",i),Wt(h),c.head.appendChild(h)}}}function Hj(i,o,c){gi.S(i,o,c);var h=Xo;if(h&&i){var g=Eo(h).hoistableStyles,_=Qo(i);o=o||"default";var C=g.get(_);if(!C){var k={loading:0,preload:null};if(C=h.querySelector(Dl(_)))k.loading=5;else{i=M({rel:"stylesheet",href:i,"data-precedence":o},c),(c=er.get(_))&&Bp(i,c);var z=C=h.createElement("link");Wt(z),an(z,"link",i),z._p=new Promise(function(q,le){z.onload=q,z.onerror=le}),z.addEventListener("load",function(){k.loading|=1}),z.addEventListener("error",function(){k.loading|=2}),k.loading|=4,dd(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:k},g.set(_,C)}}}function Fj(i,o){gi.X(i,o);var c=Xo;if(c&&i){var h=Eo(c).hoistableScripts,g=Jo(i),_=h.get(g);_||(_=c.querySelector(Il(g)),_||(i=M({src:i,async:!0},o),(o=er.get(g))&&Up(i,o),_=c.createElement("script"),Wt(_),an(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function Gj(i,o){gi.M(i,o);var c=Xo;if(c&&i){var h=Eo(c).hoistableScripts,g=Jo(i),_=h.get(g);_||(_=c.querySelector(Il(g)),_||(i=M({src:i,async:!0,type:"module"},o),(o=er.get(g))&&Up(i,o),_=c.createElement("script"),Wt(_),an(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function Qx(i,o,c,h){var g=(g=pt.current)?ud(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=Qo(c.href),c=Eo(g).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Qo(c.href);var _=Eo(g).hoistableStyles,C=_.get(i);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,C),(_=g.querySelector(Dl(i)))&&!_._p&&(C.instance=_,C.state.loading=5),er.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},er.set(i,c),_||qj(g,i,c,C.state))),o&&h===null)throw Error(r(528,""));return C}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Jo(c),c=Eo(g).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Qo(i){return'href="'+Fn(i)+'"'}function Dl(i){return'link[rel="stylesheet"]['+i+"]"}function Jx(i){return M({},i,{"data-precedence":i.precedence,precedence:null})}function qj(i,o,c,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),an(o,"link",c),Wt(o),i.head.appendChild(o))}function Jo(i){return'[src="'+Fn(i)+'"]'}function Il(i){return"script[async]"+i}function eS(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Fn(c.href)+'"]');if(h)return o.instance=h,Wt(h),h;var g=M({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Wt(h),an(h,"style",g),dd(h,c.precedence,i),o.instance=h;case"stylesheet":g=Qo(c.href);var _=i.querySelector(Dl(g));if(_)return o.state.loading|=4,o.instance=_,Wt(_),_;h=Jx(c),(g=er.get(g))&&Bp(h,g),_=(i.ownerDocument||i).createElement("link"),Wt(_);var C=_;return C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),an(_,"link",h),o.state.loading|=4,dd(_,c.precedence,i),o.instance=_;case"script":return _=Jo(c.src),(g=i.querySelector(Il(_)))?(o.instance=g,Wt(g),g):(h=c,(g=er.get(_))&&(h=M({},c),Up(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),Wt(g),an(g,"link",h),i.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,dd(h,c.precedence,i));return o.instance}function dd(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,_=g,C=0;C<h.length;C++){var k=h[C];if(k.dataset.precedence===o)_=k;else if(_!==g)break}_?_.parentNode.insertBefore(i,_.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function Bp(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function Up(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var fd=null;function tS(i,o,c){if(fd===null){var h=new Map,g=fd=new Map;g.set(c,h)}else g=fd,h=g.get(c),h||(h=new Map,g.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),g=0;g<c.length;g++){var _=c[g];if(!(_[Ks]||_[un]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var C=_.getAttribute(o)||"";C=i+C;var k=h.get(C);k?k.push(_):h.set(C,[_])}}return h}function nS(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function Kj(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function rS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Ll=null;function Zj(){}function Wj(i,o,c){if(Ll===null)throw Error(r(475));var h=Ll;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Qo(c.href),_=i.querySelector(Dl(g));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=hd.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=_,Wt(_);return}_=i.ownerDocument||i,c=Jx(c),(g=er.get(g))&&Bp(c,g),_=_.createElement("link"),Wt(_);var C=_;C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),an(_,"link",c),o.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=hd.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function Yj(){if(Ll===null)throw Error(r(475));var i=Ll;return i.stylesheets&&i.count===0&&$p(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&$p(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function hd(){if(this.count--,this.count===0){if(this.stylesheets)$p(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var md=null;function $p(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,md=new Map,o.forEach(Xj,i),md=null,hd.call(i))}function Xj(i,o){if(!(o.state.loading&4)){var c=md.get(i);if(c)var h=c.get(null);else{c=new Map,md.set(i,c);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<g.length;_++){var C=g[_];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(c.set(C.dataset.precedence,C),h=C)}h&&c.set(null,h)}g=o.instance,C=g.getAttribute("data-precedence"),_=c.get(C)||h,_===h&&c.set(null,g),c.set(C,g),this.count++,h=hd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),_?_.parentNode.insertBefore(g,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),o.state.loading|=4}}var jl={$$typeof:x,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function Qj(i,o,c,h,g,_,C,k){this.tag=1,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fh(0),this.hiddenUpdates=Fh(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=_,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function iS(i,o,c,h,g,_,C,k,z,q,le,me){return i=new Qj(i,o,c,C,k,z,q,me),o=1,_===!0&&(o|=24),_=Qn(3,null,null,o),i.current=_,_.stateNode=i,o=_m(),o.refCount++,i.pooledCache=o,o.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:o},ep(_),i}function aS(i){return i?(i=ko,i):ko}function oS(i,o,c,h,g,_){g=aS(g),h.context===null?h.context=g:h.pendingContext=g,h=Bi(o),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=Ui(i,h,o),c!==null&&(bn(c,i,o),vl(c,i,o))}function sS(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function Hp(i,o){sS(i,o),(i=i.alternate)&&sS(i,o)}function lS(i){if(i.tag===13){var o=Ii(i,67108864);o!==null&&bn(o,i,67108864),Hp(i,67108864)}}var pd=!0;function Jj(i,o,c,h){var g=P.T;P.T=null;var _=ie.p;try{ie.p=2,Fp(i,o,c,h)}finally{ie.p=_,P.T=g}}function eM(i,o,c,h){var g=P.T;P.T=null;var _=ie.p;try{ie.p=8,Fp(i,o,c,h)}finally{ie.p=_,P.T=g}}function Fp(i,o,c,h){if(pd){var g=Gp(h);if(g===null)Dp(i,o,h,gd,c),uS(i,h);else if(nM(g,i,o,c,h))h.stopPropagation();else if(uS(i,h),o&4&&-1<tM.indexOf(i)){for(;g!==null;){var _=_o(g);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var C=wa(_.pendingLanes);if(C!==0){var k=_;for(k.pendingLanes|=2,k.entangledLanes|=2;C;){var z=1<<31-yn(C);k.entanglements[1]|=z,C&=~z}Ir(_),(bt&6)===0&&(Ju=be()+500,Nl(0))}}break;case 13:k=Ii(_,2),k!==null&&bn(k,_,2),nd(),Hp(_,2)}if(_=Gp(h),_===null&&Dp(i,o,h,gd,c),_===g)break;g=_}g!==null&&h.stopPropagation()}else Dp(i,o,h,null,c)}}function Gp(i){return i=Xh(i),qp(i)}var gd=null;function qp(i){if(gd=null,i=Ta(i),i!==null){var o=K(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=ye(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return gd=i,null}function cS(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ee()){case Ie:return 2;case rt:return 8;case ot:case An:return 32;case Aa:return 268435456;default:return 32}default:return 32}}var Kp=!1,Zi=null,Wi=null,Yi=null,Ml=new Map,Pl=new Map,Xi=[],tM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function uS(i,o){switch(i){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":Wi=null;break;case"mouseover":case"mouseout":Yi=null;break;case"pointerover":case"pointerout":Ml.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(o.pointerId)}}function zl(i,o,c,h,g,_){return i===null||i.nativeEvent!==_?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[g]},o!==null&&(o=_o(o),o!==null&&lS(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),i)}function nM(i,o,c,h,g){switch(o){case"focusin":return Zi=zl(Zi,i,o,c,h,g),!0;case"dragenter":return Wi=zl(Wi,i,o,c,h,g),!0;case"mouseover":return Yi=zl(Yi,i,o,c,h,g),!0;case"pointerover":var _=g.pointerId;return Ml.set(_,zl(Ml.get(_)||null,i,o,c,h,g)),!0;case"gotpointercapture":return _=g.pointerId,Pl.set(_,zl(Pl.get(_)||null,i,o,c,h,g)),!0}return!1}function dS(i){var o=Ta(i.target);if(o!==null){var c=K(o);if(c!==null){if(o=c.tag,o===13){if(o=ye(c),o!==null){i.blockedOn=o,YI(i.priority,function(){if(c.tag===13){var h=Mn(),g=Ii(c,h);g!==null&&bn(g,c,h),Hp(c,h)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function yd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=Gp(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);Yh=h,c.target.dispatchEvent(h),Yh=null}else return o=_o(c),o!==null&&lS(o),i.blockedOn=c,!1;o.shift()}return!0}function fS(i,o,c){yd(i)&&c.delete(o)}function rM(){Kp=!1,Zi!==null&&yd(Zi)&&(Zi=null),Wi!==null&&yd(Wi)&&(Wi=null),Yi!==null&&yd(Yi)&&(Yi=null),Ml.forEach(fS),Pl.forEach(fS)}function vd(i,o){i.blockedOn===o&&(i.blockedOn=null,Kp||(Kp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rM)))}var bd=null;function hS(i){bd!==i&&(bd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bd===i&&(bd=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],g=i[o+2];if(typeof h!="function"){if(qp(h||c)===null)continue;break}var _=_o(c);_!==null&&(i.splice(o,3),o-=3,Mm(_,{pending:!0,data:g,method:c.method,action:h},h,g))}}))}function Vl(i){function o(z){return vd(z,i)}Zi!==null&&vd(Zi,i),Wi!==null&&vd(Wi,i),Yi!==null&&vd(Yi,i),Ml.forEach(o),Pl.forEach(o);for(var c=0;c<Xi.length;c++){var h=Xi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Xi.length&&(c=Xi[0],c.blockedOn===null);)dS(c),c.blockedOn===null&&Xi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var g=c[h],_=c[h+1],C=g[wn]||null;if(typeof _=="function")C||hS(c);else if(C){var k=null;if(_&&_.hasAttribute("formAction")){if(g=_,C=_[wn]||null)k=C.formAction;else if(qp(g)!==null)continue}else k=C.action;typeof k=="function"?c[h+1]=k:(c.splice(h,3),h-=3),hS(c)}}}function Zp(i){this._internalRoot=i}_d.prototype.render=Zp.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=Mn();oS(c,h,i,o,null,null)},_d.prototype.unmount=Zp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;i.tag===0&&Zo(),oS(i.current,2,null,i,null,null),nd(),o[bo]=null}};function _d(i){this._internalRoot=i}_d.prototype.unstable_scheduleHydration=function(i){if(i){var o=U0();i={blockedOn:null,target:i,priority:o};for(var c=0;c<Xi.length&&o!==0&&o<Xi[c].priority;c++);Xi.splice(c,0,i),c===0&&dS(i)}};var mS=t.version;if(mS!=="19.0.0")throw Error(r(527,mS,"19.0.0"));ie.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=J(o),i=i!==null?F(i):null,i=i===null?null:i.stateNode,i};var iM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:Ta,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ed.isDisabled&&Ed.supportsFiber)try{Jr=Ed.inject(iM),tn=Ed}catch{}}return Ul.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",g=kE,_=DE,C=IE,k=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(k=o.unstable_transitionCallbacks)),o=iS(i,1,!1,null,null,c,h,g,_,C,k,null),i[bo]=o.current,kp(i.nodeType===8?i.parentNode:i),new Zp(o)},Ul.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,g="",_=kE,C=DE,k=IE,z=null,q=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(C=c.onCaughtError),c.onRecoverableError!==void 0&&(k=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks),c.formState!==void 0&&(q=c.formState)),o=iS(i,1,!0,o,c??null,h,g,_,C,k,z,q),o.context=aS(null),c=o.current,h=Mn(),g=Bi(h),g.callback=null,Ui(c,g,h),o.current.lanes=h,qs(o,h),Ir(o),i[bo]=o.current,kp(i),new _d(o)},Ul.version="19.0.0",Ul}var AS;function gM(){if(AS)return Xp.exports;AS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Xp.exports=pM(),Xp.exports}var yM=gM();const vM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],strictMode:"strict",defaultLocale:"en"},bM={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1,detectLocaleOnPrefetchNoPrefix:!1},_M={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",excludedPath:["node_modules",".intlayer",".next",".nuxt",".expo","dist"],watch:!1,contentDir:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor"],dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",dictionaryOutput:["intlayer"],unmergedDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/unmerged_dictionary",dynamicDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dynamic_dictionary",i18nextResourcesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/i18next_resources",reactIntlMessagesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/intl_messages",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.cjx","/**/*.content.mjs","/**/*.content.mjx","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},EM={applicationURL:"http://localhost:5173/",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",hotReload:!1},xM={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},SM={},AM={optimize:!0,importMode:"static",traversePattern:["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"]},Ge={internationalization:vM,middleware:bM,content:_M,editor:EM,log:xM,ai:SM,build:AM};var B=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e.BENGALI="bn",e.BENGALI_BANGLADESH="bn-BD",e.BENGALI_INDIA="bn-IN",e.BENGALI_MYANMAR="bn-MM",e.BURMESE="my",e.BURMESE_MYANMAR="my-MM",e.KHMER="km",e.KHMER_CAMBODIA="km-KH",e.LAO="lo",e.LAO_LAOS="lo-LA",e.YORUBA="yo",e.YORUBA_NIGERIA="yo-NG",e.AMHARIC="am",e.AMHARIC_ETHIOPIA="am-ET",e.NEPALI="ne",e))(B||{}),Z=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Gender="gender",e.Unknown="unknown",e))(Z||{});const wM=(e,t,n)=>({...n,nodeType:e,[e]:t}),wS=(e,t,n)=>{let r=e,a=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===Z.Object||u.type===Z.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===Z.Translation||u.type===Z.Enumeration)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===Z.Enumeration||u.type===Z.Condition)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===Z.Markdown||u.type===Z.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===Z.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&s.length>0){let d=a;for(const f of s.slice(0,-1))d=d[f];typeof n>"u"?delete d[s[s.length-1]]:d[s[s.length-1]]=n}}return e},Ur=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===Z.Object||r.type===Z.Array?n=n==null?void 0:n[r.key]:r.type===Z.Translation||r.type===Z.Condition||r.type===Z.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===Z.Markdown||r.type===Z.Insertion||r.type===Z.File)&&(n=n==null?void 0:n[r.type]);return n},$1=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof(e==null?void 0:e.nodeType)=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===Z.Translation||t.nodeType===Z.Enumeration||t.nodeType===Z.Condition||t.nodeType===Z.Insertion||t.nodeType===Z.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===Z.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},TM=(e,t,n)=>{let r=e,a=null,s=null;for(const l of n)a=r,(l.type===Z.Object||l.type===Z.Array)&&(s=l.key,r=r[l.key]),(l.type===Z.Translation||l.type===Z.Enumeration||l.type===Z.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===Z.Markdown||l.type===Z.ReactNode||l.type===Z.Insertion||l.type===Z.File)&&(s=l.type,r=r[l.type]);if(a&&s!==null)if(Array.isArray(a))a[s]=r;else{const l={};for(const u of Object.keys(a))u===s&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},RM=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Cs=e=>typeof e=="string"?Z.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?Z.Array:RM(e)?Z.ReactNode:typeof e=="number"?Z.Number:typeof e=="boolean"?Z.Boolean:e&&typeof e=="object"?Z.Object:Z.Unknown,$l=(e,t,n)=>{const r=structuredClone(n);switch(e){case Z.Translation:return{nodeType:Z.Translation,[Z.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case Z.Enumeration:return{nodeType:Z.Enumeration,[Z.Enumeration]:{1:r??""}};case Z.Condition:return{nodeType:Z.Condition,[Z.Condition]:{true:r??"",false:r??""}};case Z.Insertion:return{nodeType:Z.Insertion,[Z.Insertion]:{insertion:r??""}};case Z.Nested:return{nodeType:Z.Nested,[Z.Nested]:{dictionaryKey:""}};case Z.Markdown:return{nodeType:Z.Markdown,[Z.Markdown]:r??""};case Z.File:return{nodeType:Z.File,[Z.File]:r??""};case Z.Object:return{newKey:r??""};case Z.Array:return[r??""];case Z.Text:return r??"";case Z.Number:return r??0;case Z.Boolean:return r??!0;default:return r??""}},ar=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof(e==null?void 0:e.nodeType)=="string"){const r=e,a=r[r.nodeType];return r.nodeType===Z.Translation||r.nodeType===Z.Enumeration||r.nodeType===Z.Condition||r.nodeType===Z.Insertion?ar(a):r.nodeType===Z.Nested?"dictionary-key":r.nodeType===Z.File?"file/path":r.nodeType===Z.Markdown?ar(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(ar);const t=Object.entries(e).map(([r,a])=>[r,ar(a)]);return Object.fromEntries(t)},Xd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,s)=>Xd(a,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:Z.Array,key:a}]};return Xd(r,s)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:Z.Object,key:r}]};n[r]=Xd(e[r],a)}return n},CM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},NM=(e,t)=>{const n=Object.keys(e);for(const r of n){const a=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,s=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),u=r.startsWith("<")&&t<parseFloat(r.slice(1)),d=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||s||l||u||d)return r}},OM=(e,t)=>{const n=NM(e,t)??"fallback";return e[n]},kM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),DM="dictionary-edition-drawer",IM={openDictionaryEditor:{label:{nodeType:"translation",translation:{en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"}}},backButtonText:{nodeType:"translation",translation:{en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}},modalTitle:{nodeType:"translation",translation:{en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}},noDictionaryFocused:{nodeType:"translation",translation:{en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"}}},LM={key:DM,content:IM},jM="no-application-url-view",MM={title:{nodeType:"translation",translation:{en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}},description:{nodeType:"translation",translation:{en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}},documentationLink:{label:{nodeType:"translation",translation:{en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}},text:{nodeType:"translation",translation:{en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"}}}},PM={key:jM,content:MM},TS={"dictionary-edition-drawer":LM,"no-application-url-view":PM},H1=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return Lv(e.content,r,t)},zM=(e,t,n)=>{const r=TS[e];if(!r)throw new Error(`Dictionary ${e} not found`,TS);return H1(r,t,n)},VM=(e,t,n)=>{const r=zM(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let s=r;for(const l of a)if(s=s==null?void 0:s[l],s===void 0)return r;return s}return r},BM=(e,t,n=!0)=>{const{defaultLocale:r}=Ge==null?void 0:Ge.internationalization;let a=e[t??r];return n&&!a&&(a=e[r]),a},UM=(e,t=!0)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&(n==null?void 0:n.nodeType)===Z.Translation,transform:(n,r,a)=>{const s=structuredClone(n[Z.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:Z.Translation,key:l}]};s[l]=a(s[l],u)}return BM(s,e,t)}}),$M={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[Z.Enumeration]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:Z.Enumeration,key:a}]};r[a]=n(s,l)}return a=>OM(r,a)}},HM={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Condition,transform:(e,t,n)=>{const r=structuredClone(e[Z.Condition]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:Z.Condition,key:a}]};r[a]=n(s,l)}return a=>CM(r,a)}},FM={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Z.Insertion}],a=e[Z.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,u,d)=>{const f=d(l,{...u,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const p=kM(f,m);return d(p,{...u,plugins:t.plugins,children:p})}}},...t.plugins??[]]})}},GM={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Nested,transform:(e,t)=>VM(e.nested.dictionaryKey,e.nested.path,t)},qM={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},Lv=(e,t,n=Ge==null?void 0:Ge.internationalization.defaultLocale)=>{const r=[FM,UM(n),$M,HM,GM,qM,...t.plugins??[]];return Xd(e,{...t,plugins:r})},RS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},KM=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),xd=e=>e.reduce((t,n)=>{const r=t??{},a=KM(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),je=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const s=t.map(({body:x,params:y,headers:E,...A})=>A),l=xd([RS,...s]),u=xd([RS.headers,...t.map(x=>x.headers)]),d=xd(t.map(x=>x.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const x=xd(t.map(y=>y.body));(u==null?void 0:u["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(x).toString():a=JSON.stringify(x)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const m={...l,headers:u,body:a,signal:n},p=`${e}${r}`,v=await fetch(p,m);if(!v.ok){const x=await v.json();throw new Error(JSON.stringify(x.error)??"An error occurred")}return await v.json()},ZM=(e={},t)=>{var p,v;const n=((p=t==null?void 0:t.editor)==null?void 0:p.backendURL)??((v=Ge.editor)==null?void 0:v.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(x,y={})=>await je(r,e,y,{params:x}),getDictionariesKeys:async(x={})=>await je(`${r}/keys`,e,x),getDictionary:async(x,y,E={})=>await je(`${r}/${x}`,e,E,{params:y?{version:y.toString()}:void 0}),pushDictionaries:async(x,y={})=>await je(`${r}`,e,y,{method:"PATCH",body:{dictionaries:x}}),addDictionary:async(x,y={})=>await je(`${r}`,e,y,{method:"POST",body:x}),updateDictionary:async(x,y,E={})=>await je(`${r}/${x}`,e,E,{method:"PUT",body:y}),deleteDictionary:async(x,y={})=>await je(`${r}/${x}`,e,y,{method:"DELETE"})}},F1=e=>{var s,l;const t=((s=e==null?void 0:e.editor)==null?void 0:s.backendURL)??((l=Ge.editor)==null?void 0:l.backendURL),{clientId:n,clientSecret:r}=(e==null?void 0:e.editor)??{};if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");return{getOAuth2AccessToken:async(u={})=>await je(`${t}/oauth2/token`,{},u,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:n,client_secret:r}})}},WM=(e={},t)=>{var v,x;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((x=Ge.editor)==null?void 0:x.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{customQuery:async(y,E={})=>await je(r,e,E,{method:"POST",body:y}),translateJSON:async(y,E={})=>await je(`${r}/translate/json`,e,E,{method:"POST",body:y}),auditContentDeclaration:async(y,E={})=>await je(`${r}/audit/dictionary`,e,E,{method:"POST",body:y}),auditContentDeclarationField:async(y,E={})=>await je(`${r}/audit/dictionary/field`,e,E,{method:"POST",body:y}),auditContentDeclarationMetadata:async(y,E={})=>await je(`${r}/audit/dictionary/metadata`,e,E,{method:"POST",body:y}),auditTag:async(y,E={})=>await je(`${r}/audit/tag`,e,E,{method:"POST",body:y}),askDocQuestion:async(y,E={})=>{var O;if(!y)return;const{onMessage:A,onDone:T,...w}=y,R=new AbortController;try{const N=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...E.headers},body:JSON.stringify({...w,...e.body,...E.body}),signal:R.signal,credentials:"include"});if(!N.ok){let P="An error occurred";try{const M=await N.json();P=JSON.stringify(M.error)??"An error occurred"}catch{try{const M=await N.text();M&&(P=M)}catch{}}throw new Error(P)}const D=(O=N.body)==null?void 0:O.getReader();if(!D)throw new Error("No reader available");const I=new TextDecoder;let j="";for(;;){const{done:P,value:M}=await D.read();if(P)break;j+=I.decode(M,{stream:!0});const oe=j.split(`
|
|
51
51
|
`);j=oe.pop()??"";for(const ae of oe)if(ae.startsWith("data: "))try{const W=JSON.parse(ae.slice(6));W.chunk&&(A==null||A(W.chunk)),W.done&&W.response&&(T==null||T(W.response))}catch(W){console.error("Failed to parse SSE data:",W)}}}catch(N){throw console.error("Error in askDocQuestion:",N),N}},autocomplete:async(y,E={})=>await je(`${r}/autocomplete`,e,E,{method:"POST",body:y})}},YM=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.editorURL)??((d=Ge.editor)==null?void 0:d.editorURL);if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getDictionaries:async(f={})=>(await je(`${r}/dictionary`,e,f)).data,getConfiguration:async(f={})=>(await je(`${r}/config`,e,f)).data,writeDictionary:async(f,m={})=>await je(`${r}/dictionary`,e,m,{method:"POST",body:{dictionary:f}})}},XM=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.backendURL)??((d=Ge.editor)==null?void 0:d.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/newsletter`;return{subscribeToNewsletter:async(f,m={})=>await je(`${r}/subscribe`,e,m,{method:"POST",body:f}),unsubscribeFromNewsletter:async(f,m={})=>await je(`${r}/unsubscribe`,e,m,{method:"POST",body:f}),getNewsletterStatus:async(f={})=>await je(`${r}/status`,e,f,{method:"GET"})}},QM=(e={},t)=>{var x,y;const n=((x=t==null?void 0:t.editor)==null?void 0:x.backendURL)??((y=Ge.editor)==null?void 0:y.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(E,A={})=>await je(r,e,A,{params:E}),getOrganization:async(E,A={})=>await je(`${r}/${String(E)}`,e,A),addOrganization:async(E,A={})=>await je(r,e,A,{method:"POST",body:E}),addOrganizationMember:async(E,A={})=>je(`${r}/member`,e,A,{method:"POST",body:E}),updateOrganization:async(E,A={})=>je(r,e,A,{method:"PUT",body:E}),updateOrganizationMembers:async(E,A={})=>je(`${r}/members`,e,A,{method:"PUT",body:E}),deleteOrganization:async(E={})=>await je(r,e,E,{method:"DELETE"}),selectOrganization:async(E,A={})=>await je(`${r}/${String(E)}`,e,A,{method:"PUT"}),unselectOrganization:async(E={})=>await je(`${r}/logout`,e,E,{method:"POST"})}},JM=(e={},t)=>{var E,A;const n=((E=t==null?void 0:t.editor)==null?void 0:E.backendURL)??((A=Ge.editor)==null?void 0:A.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(T,w={})=>await je(r,e,w,{params:T}),addProject:async(T,w={})=>await je(`${r}`,e,w,{method:"POST",body:T}),updateProject:async(T,w={})=>await je(`${r}`,e,w,{method:"PUT",body:T}),updateProjectMembers:async(T,w={})=>await je(`${r}/members`,e,w,{method:"PUT",body:T}),pushProjectConfiguration:async(T,w={})=>await je(`${r}/configuration`,e,w,{method:"PUT",body:T}),deleteProject:async(T={})=>await je(`${r}`,e,T,{method:"DELETE"}),selectProject:async(T,w={})=>await je(`${r}/${String(T)}`,e,w,{method:"PUT"}),unselectProject:async(T={})=>await je(`${r}/logout`,e,T,{method:"POST"}),addNewAccessKey:async(T,w={})=>await je(`${r}/access_key`,e,w,{method:"POST",body:T}),deleteAccessKey:async(T,w={})=>await je(`${r}/access_key`,e,w,{method:"DELETE",body:{clientId:T}}),refreshAccessKey:async(T,w={})=>await je(`${r}/access_key`,e,w,{method:"PATCH",body:{clientId:T}})}},eP=(e={},t)=>{var s,l;const n=((s=t==null?void 0:t.editor)==null?void 0:s.backendURL)??((l=Ge.editor)==null?void 0:l.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/search`;return{searchDoc:async(u,d={})=>await je(`${r}/doc`,e,d,{method:"GET",params:u})}},tP=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.backendURL)??((d=Ge.editor)==null?void 0:d.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(f,m={})=>await je(`${r}/pricing`,e,m,{method:"POST",body:f}),getSubscription:async(f,m={})=>await je(`${r}/create-subscription`,e,m,{method:"POST",body:f}),cancelSubscription:async(f={})=>await je(`${r}/cancel-subscription`,e,f,{method:"POST"})}},nP=(e={},t)=>{var d,f;const n=((d=t==null?void 0:t.editor)==null?void 0:d.backendURL)??((f=Ge.editor)==null?void 0:f.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(m,p={})=>await je(r,e,p,{params:m}),addTag:async(m,p={})=>await je(`${r}`,e,p,{method:"POST",body:m}),updateTag:async(m,p,v={})=>await je(`${r}/${m}`,e,v,{method:"PUT",body:p}),deleteTag:async(m,p={})=>await je(`${r}/${m}`,e,p,{method:"DELETE"})}},rP=(e={},t)=>{var v,x;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((x=Ge.editor)==null?void 0:x.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(y,E={})=>await je(`${r}/`,e,E,{method:"POST",body:y}),getUsers:async(y,E={})=>await je(r,e,E,{params:y}),getUserById:async(y,E={})=>await je(`${r}/${y}`,e,E),getUserByAccount:async(y,E,A={})=>await je(`${r}/account/${E}/${y}`,e,A),getUserByEmail:async(y,E={})=>await je(`${r}/email/${y}`,e,E),updateUser:async(y,E={})=>await je(`${r}`,e,E,{method:"PUT",body:y}),deleteUser:async(y,E={})=>await je(`${r}/${y}`,e,E,{method:"DELETE"}),getVerifyEmailStatusURL:y=>`${r}/verify-email-status/${String(y)}`}},iP=(e={},t)=>({organization:QM(e,t),project:JM(e,t),user:rP(e,t),oAuth:F1(t),dictionary:ZM(e,t),stripe:tP(e,t),ai:WM(e,t),tag:nP(e,t),search:eP(e,t),editor:YM(e,t),newsletter:XM(e,t)}),aP=e=>{switch(e){case B.ENGLISH:case B.FRENCH:case B.SPANISH:case B.PORTUGUESE:case B.GERMAN:case B.AFRIKAANS:case B.AZERI_LATIN:case B.BELARUSIAN:case B.BULGARIAN:case B.BOSNIAN:case B.CATALAN:case B.CZECH:case B.WELSH:case B.DANISH:case B.ESPERANTO:case B.ESTONIAN:case B.BASQUE:case B.FINNISH:case B.FAROESE:case B.GALICIAN:case B.GREEK:case B.CROATIAN:case B.HUNGARIAN:case B.ARMENIAN:case B.INDONESIAN:case B.ICELANDIC:case B.ITALIAN:case B.JAPANESE:case B.GEORGIAN:case B.KAZAKH:case B.KANNADA:case B.KOREAN:case B.KONKANI:case B.KYRGYZ:case B.LITHUANIAN:case B.LATVIAN:case B.MAORI:case B.FYRO_MACEDONIAN:case B.MONGOLIAN:case B.MARATHI:case B.MALAY:case B.MALTESE:case B.NORWEGIAN_BOKMAL:case B.DUTCH:case B.NORTHERN_SOTHO:case B.PUNJABI:case B.POLISH:case B.QUECHUA:case B.ROMANIAN:case B.RUSSIAN:case B.SANSKRIT:case B.SAMI_NORTHERN:case B.SLOVAK:case B.SLOVENIAN:case B.ALBANIAN:case B.SERBIAN_LATIN:case B.SWEDISH:case B.SWAHILI:case B.TAMIL:case B.TELUGU:case B.THAI:case B.TAGALOG:case B.TSWANA:case B.TURKISH:case B.UKRAINIAN:case B.UZBEK_LATIN:case B.VIETNAMESE:case B.XHOSA:case B.CHINESE_SIMPLIFIED:case B.CHINESE_TRADITIONAL:case B.ZULU:case B.AFRIKAANS_SOUTH_AFRICA:case B.AZERI_LATIN_AZERBAIJAN:case B.BELARUSIAN_BELARUS:case B.BULGARIAN_BULGARIA:case B.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case B.CATALAN_SPAIN:case B.CZECH_CZECH_REPUBLIC:case B.WELSH_UNITED_KINGDOM:case B.DANISH_DENMARK:case B.GERMAN_AUSTRIA:case B.GERMAN_SWITZERLAND:case B.GERMAN_GERMANY:case B.GERMAN_LIECHTENSTEIN:case B.GERMAN_LUXEMBOURG:case B.GREEK_GREECE:case B.ENGLISH_AUSTRALIA:case B.ENGLISH_BELIZE:case B.ENGLISH_CANADA:case B.ENGLISH_CARIBBEAN:case B.ENGLISH_UNITED_KINGDOM:case B.ENGLISH_IRELAND:case B.ENGLISH_JAMAICA:case B.ENGLISH_NEW_ZEALAND:case B.ENGLISH_PHILIPPINES:case B.ENGLISH_TRINIDAD_AND_TOBAGO:case B.ENGLISH_UNITED_STATES:case B.ENGLISH_SOUTH_AFRICA:case B.ENGLISH_ZIMBABWE:case B.SPANISH_ARGENTINA:case B.SPANISH_BOLIVIA:case B.SPANISH_CHILE:case B.SPANISH_COLOMBIA:case B.SPANISH_COSTA_RICA:case B.SPANISH_DOMINICAN_REPUBLIC:case B.SPANISH_ECUADOR:case B.SPANISH_SPAIN:case B.SPANISH_GUATEMALA:case B.SPANISH_HONDURAS:case B.SPANISH_MEXICO:case B.SPANISH_NICARAGUA:case B.SPANISH_PANAMA:case B.SPANISH_PERU:case B.SPANISH_PUERTO_RICO:case B.SPANISH_PARAGUAY:case B.SPANISH_EL_SALVADOR:case B.SPANISH_URUGUAY:case B.SPANISH_VENEZUELA:case B.ESTONIAN_ESTONIA:case B.BASQUE_SPAIN:case B.FINNISH_FINLAND:case B.FAROESE_FAROE_ISLANDS:case B.FRENCH_BELGIUM:case B.FRENCH_CANADA:case B.FRENCH_SWITZERLAND:case B.FRENCH_FRANCE:case B.FRENCH_LUXEMBOURG:case B.FRENCH_PRINCIPALITY_OF_MONACO:case B.GALICIAN_SPAIN:case B.GUJARATI_INDIA:case B.HEBREW_ISRAEL:case B.HINDI_INDIA:case B.CROATIAN_BOSNIA_AND_HERZEGOVINA:case B.CROATIAN_CROATIA:case B.HUNGARIAN_HUNGARY:case B.ARMENIAN_ARMENIA:case B.INDONESIAN_INDONESIA:case B.ICELANDIC_ICELAND:case B.ITALIAN_SWITZERLAND:case B.ITALIAN_ITALY:case B.JAPANESE_JAPAN:case B.GEORGIAN_GEORGIA:case B.KAZAKH_KAZAKHSTAN:case B.KANNADA_INDIA:case B.KOREAN_KOREA:case B.KONKANI_INDIA:case B.KYRGYZ_KYRGYZSTAN:case B.LITHUANIAN_LITHUANIA:case B.LATVIAN_LATVIA:case B.MAORI_NEW_ZEALAND:case B.FYRO_MACEDONIAN_MACEDONIA:case B.MONGOLIAN_MONGOLIA:case B.MARATHI_INDIA:case B.MALAY_BRUNEI_DARUSSALAM:case B.MALAY_MALAYSIA:case B.MALTESE_MALTA:case B.NORWEGIAN_BOKMAL_NORWAY:case B.DUTCH_BELGIUM:case B.DUTCH_NETHERLANDS:case B.NORWEGIAN_NYNORSK_NORWAY:case B.NORTHERN_SOTHO_SOUTH_AFRICA:case B.PUNJABI_INDIA:case B.POLISH_POLAND:case B.PORTUGUESE_BRAZIL:case B.PORTUGUESE_PORTUGAL:case B.QUECHUA_BOLIVIA:case B.QUECHUA_ECUADOR:case B.QUECHUA_PERU:case B.ROMANIAN_ROMANIA:case B.RUSSIAN_RUSSIA:case B.SANSKRIT_INDIA:case B.SAMI_NORTHERN_FINLAND:case B.SAMI_NORTHERN_NORWAY:case B.SAMI_NORTHERN_SWEDEN:case B.SLOVAK_SLOVAKIA:case B.SLOVENIAN_SLOVENIA:case B.ALBANIAN_ALBANIA:case B.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case B.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case B.SWAHILI_KENYA:case B.TAMIL_INDIA:case B.TELUGU_INDIA:case B.THAI_THAILAND:case B.TAGALOG_PHILIPPINES:case B.TSWANA_SOUTH_AFRICA:case B.TURKISH_TURKEY:case B.TATAR_RUSSIA:case B.TSOGA:case B.UKRAINIAN_UKRAINE:case B.UZBEK_LATIN_UZBEKISTAN:case B.VIETNAMESE_VIET_NAM:case B.XHOSA_SOUTH_AFRICA:case B.CHINESE_HONG_KONG:case B.CHINESE_MACAU:case B.CHINESE_SINGAPORE:case B.ZULU_SOUTH_AFRICA:return"ltr";case B.ARABIC:case B.FARSI:case B.URDU:case B.PASHTO:case B.SYRIAC:case B.ARABIC_UNITED_ARAB_EMIRATES:case B.ARABIC_BAHRAIN:case B.ARABIC_ALGERIA:case B.ARABIC_EGYPT:case B.ARABIC_IRAQ:case B.ARABIC_JORDAN:case B.ARABIC_KUWAIT:case B.ARABIC_LEBANON:case B.ARABIC_LIBYA:case B.ARABIC_MOROCCO:case B.ARABIC_OMAN:case B.ARABIC_QATAR:case B.ARABIC_SAUDI_ARABIA:case B.ARABIC_SYRIA:case B.ARABIC_TUNISIA:case B.ARABIC_YEMEN:case B.FARSI_IRAN:case B.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case B.PASHTO_AFGHANISTAN:case B.SYRIAC_SYRIA:return"rtl";default:return"auto"}},G1=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),CS=new Map,Qd=(e,t=e)=>{if(typeof(Intl==null?void 0:Intl.DisplayNames)!="function")return e;let n=CS.get(t);return n||(n=new Intl.DisplayNames([t],{type:"language"}),CS.set(t,n)),n.of(e)??"Unknown locale"},oP=(e,t=Ge.internationalization.locales)=>{const n=G1(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),s=a.pathname;s.startsWith("/")||(a.pathname=`/${s}`);const l=s.split("/"),u=l[1];if(t.includes(u)){l.splice(1,1);const d=l.join("/")??"/";a.pathname=d}return n?a.toString():a.toString().replace("http://example.com","")},sP=(e,t=Ge.internationalization.locales,n=Ge.internationalization.defaultLocale,r=Ge.middleware.prefixDefault)=>{const a=oP(e,t),s=G1(a),l=s?new URL(a):new URL(a,"http://example.com");let u=l.pathname;u.startsWith("/")||(u=`/${u}`);const d=s?`${l.protocol}//${l.host}`:"";return t.reduce((m,p)=>{const v=p.toString()===n.toString();let y=r||!v?`/${p}${u}`:u;y.length>1&&y.endsWith("/")&&(y=y.slice(0,-1));const E=s?`${d}${y}${l.search}${l.hash}`:`${y}${l.search}${l.hash}`;return m[p]=E,m},{})},lP=(e,t,n=Ge.internationalization.locales,r=Ge.internationalization.defaultLocale,a=Ge.middleware.prefixDefault)=>sP(e,n,r,a)[t],cP=(e,t=Ge.internationalization.locales,n=Ge.internationalization.defaultLocale)=>{const r=[e].flat(),a=s=>s.trim().toLowerCase();try{for(const s of r){const l=a(s),u=t.find(m=>a(m)===l);if(u)return u;const[d]=l.split("-"),f=t.find(m=>a(m).split("-")[0]===d);if(f)return f}}catch{}return n},uP=e=>{let t=e.trim().replace(/^\[/,"[").replace(/^\{/,"{").replace(/\]$/,"]").replace(/\}$/,"}").replace(/([\w\d_]+)\s*:/g,'"$1":').replace(/:\s*([a-zA-Z_][\w\d_]*)/g,': "$1"');return t=t.replace(/\[([^\[\]]+?)\]/g,(n,r)=>`[${r.split(",").map(s=>{const l=s.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},q1=e=>{try{const t=e.split(/\r?\n/),n=t.find(u=>u.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1,s=null,l=[];for(let u=0;u<t.length;u++){const d=t[u];if(d.trim()==="---")if(a){s&&l.length>0&&(r[s]=l);break}else{a=!0;continue}if(a){const m=d.match(/^\s*-\s+(.+)$/);if(m&&s){l.push(m[1].trim());continue}s&&l.length>0&&(r[s]=l,s=null,l=[]);const p=d.match(/^([^:]+)\s*:\s*(.*)$/);if(p){const v=p[1].trim(),x=p[2].trim();if(x==="")s=v,l=[];else try{r[v]=uP(x)}catch{r[v]=x}}}}return r}catch{return{}}},ge=e=>wM(Z.Translation,e),Fc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),dP=(e,t)=>{try{const n=new URL(e),r=new URL(t);if(n.protocol!==r.protocol||n.hostname!==r.hostname||n.port!==r.port)return!1;const a=n.pathname.replace(/\/$/,""),s=r.pathname.replace(/\/$/,"");return!(a!==""&&s!==""&&a!==s)}catch(n){return console.error("Invalid URL(s)",n),!1}},fP=e=>{const t=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}),n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});Object.assign(n,{iframeData:e}),Object.assign(t,{iframeData:e}),window.dispatchEvent(n),window.dispatchEvent(t)};var lr=(e=>(e.INTLAYER_CONFIGURATION="INTLAYER_CONFIGURATION",e.INTLAYER_CURRENT_LOCALE="INTLAYER_CURRENT_LOCALE",e.INTLAYER_EDITOR_ENABLED="INTLAYER_EDITOR_ENABLED",e.INTLAYER_URL_CHANGE="INTLAYER_URL_CHANGE",e.INTLAYER_FOCUSED_CONTENT_CHANGED="INTLAYER_FOCUSED_CONTENT_CHANGED",e.INTLAYER_LOCALE_DICTIONARIES_CHANGED="INTLAYER_LOCALE_DICTIONARIES_CHANGED",e.INTLAYER_DISTANT_DICTIONARIES_CHANGED="INTLAYER_DISTANT_DICTIONARIES_CHANGED",e.INTLAYER_EDITED_CONTENT_CHANGED="INTLAYER_EDITED_CONTENT_CHANGED",e.INTLAYER_IFRAME_CLICKED="INTLAYER_IFRAME_CLICKED",e))(lr||{});const K1=S.createContext(void 0),Z1=S.createContext(void 0),hP=({children:e})=>{const[t,n]=S.useState({}),r=(a,s)=>{n(l=>({...l,[a]:{...l==null?void 0:l[a],content:s}}))};return b.jsx(K1.Provider,{value:{changedContent:t},children:b.jsx(Z1.Provider,{value:{setChangedContent:r},children:e})})},mP=()=>S.useContext(Z1),pP=()=>{const e=S.useContext(K1),t=mP();return{...e,...t}},on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function gP(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let tg;const yP=new Uint8Array(16);function vP(){if(!tg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");tg=crypto.getRandomValues.bind(crypto)}return tg(yP)}const bP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),NS={randomUUID:bP};function _P(e,t,n){var a;if(NS.randomUUID&&!e)return NS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??vP();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,gP(r)}const{editor:yi}=Ge,W1=S.createContext({postMessage:()=>null,allowedOrigins:[yi==null?void 0:yi.applicationURL,yi==null?void 0:yi.editorURL,yi==null?void 0:yi.cmsURL],senderId:""}),OS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=S.useRef(_P()),a=S.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return b.jsx(W1.Provider,{value:a,children:e})},Y1=()=>S.useContext(W1),_s=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:s}=Y1();return S.useEffect(()=>{if(t){const u=d=>{const{type:f,data:m,senderId:p}=d.data;f===e&&p!==s&&(typeof r>"u"||r!=null&&r.some(v=>dP(v,d.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,a,s,n]),u=>{a({type:e,data:u,senderId:s})}},EP=(e,t)=>typeof e=="function"?e(t):e,ho=(e,t,n)=>{const{postMessage:r,senderId:a}=Y1(),{emit:s,receive:l}=n??{emit:!0,receive:!0},u=(x,y)=>{const E=EP(x,y);return s&&typeof r=="function"&&typeof E<"u"&&r({type:`${e}/post`,data:E,senderId:a}),E},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:a})},[f,m]=S.useState(()=>u(t)),p=x=>m(y=>u(x,y));_s(`${e}/post`,l?x=>{m(x)}:void 0);const v=(x,y)=>{s&&typeof r=="function"&&y!==a&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:a}))};return _s(`${e}/get`,s?v:void 0,f),S.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:a})},[]),[f,p,d]},X1=S.createContext(void 0),xP=({children:e,configuration:t})=>b.jsx(X1.Provider,{value:t,children:e}),Zr=()=>S.useContext(X1),Q1=S.createContext(void 0),J1=S.createContext(void 0),SP=({children:e})=>{const[t,n]=ho(lr.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=S.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=S.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{n(l=>({...l,[s.key]:s}))}}),[n]);return b.jsx(Q1.Provider,{value:r,children:b.jsx(J1.Provider,{value:a,children:e})})},th=()=>S.useContext(J1),eR=()=>{const e=th(),t=S.useContext(Q1);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},tR=S.createContext(void 0),AP=e=>_s(`${lr.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),nR=S.createContext(void 0),kS=(e,t)=>typeof e=="function"?e(t):e,wP=({children:e})=>{const{localeDictionaries:t}=eR(),[n,r]=ho(lr.INTLAYER_EDITED_CONTENT_CHANGED),a=x=>{let y=kS(x);return r(E=>(y=kS(x,E==null?void 0:E[y.key]),{...E,[y.key]:y})),y},s=(x,y)=>{r(E=>({...E,[x]:{...E==null?void 0:E[x],content:y}}))},l=(x,y,E=[],A=!0)=>{r(T=>{var D,I;const w=(D=t[x])==null?void 0:D.content,R=structuredClone(((I=T==null?void 0:T[x])==null?void 0:I.content)??w);let O=E;if(!A){let j=0;const P=E.slice(0,-1),M=E[E.length-1];let oe=M.key;for(;typeof Ur(R,O)<"u";)j++,oe=j===0?M.key:`${M.key} (${j})`,O=[...P,{...M,key:oe}]}const N=wS(R,O,y);return{...T,[x]:{...T==null?void 0:T[x],content:N}}})},u=(x,y,E=[])=>{r(A=>{var O,N;const T=(O=t[x])==null?void 0:O.content,w=structuredClone(((N=A==null?void 0:A[x])==null?void 0:N.content)??T),R=TM(w,y,E);return{...A,[x]:{...A==null?void 0:A[x],content:R}}})},d=(x,y)=>{r(E=>{var O,N;const A=(O=t[x])==null?void 0:O.content,T=structuredClone(((N=E==null?void 0:E[x])==null?void 0:N.content)??A),w=Ur(A,y),R=wS(T,y,w);return{...E,[x]:{...E==null?void 0:E[x],content:R}}})},f=x=>{r(y=>{const E={...y};return delete E[x],E})},m=x=>{r(y=>Object.entries(y).reduce((A,[T,w])=>T===x?A:{...A,[T]:w},{}))},p=()=>{r({})},v=(x,y)=>{var A;const E=((A=n==null?void 0:n[x])==null?void 0:A.content)??{};return Ur(E,y)};return b.jsx(tR.Provider,{value:{editedContent:n},children:b.jsx(nR.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:s,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:m,clearEditedContent:p,getEditedContentValue:v},children:e})})},Ns=()=>S.useContext(nR),xn=()=>{const e=S.useContext(tR),t=Ns();return{...e,...t}},rR=S.createContext({enabled:!1}),TP=e=>ho(lr.INTLAYER_EDITOR_ENABLED,!1,e),RP=e=>_s(`${lr.INTLAYER_EDITOR_ENABLED}/post`,e),iR=e=>_s(`${lr.INTLAYER_EDITOR_ENABLED}/get`,e),CP=({children:e})=>{const[t]=TP({emit:!1,receive:!0});return b.jsx(rR.Provider,{value:{enabled:t},children:e})},aR=()=>S.useContext(rR),oR=S.createContext(void 0),sR=S.createContext(void 0),NP=({children:e})=>{const[t,n]=ho(lr.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(s=>s&&{...s,keyPath:a})};return b.jsx(oR.Provider,{value:{focusedContent:t},children:b.jsx(sR.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},jv=()=>{const e=S.useContext(sR);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},ha=()=>{const e=jv(),t=S.useContext(oR);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},DS=({children:e})=>{const t=AP();return S.useEffect(()=>{t()},[]),b.jsx(SP,{children:b.jsx(wP,{children:b.jsx(NP,{children:e})})})},OP=({children:e,fallback:t})=>{const n=iR(),{enabled:r}=aR();return S.useEffect(()=>{r||n()},[r]),r?e:t},kP=({children:e,fallback:t})=>{const[n,r]=S.useState(!1);return S.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},DP=({children:e,configuration:t,...n})=>b.jsx(hP,{children:b.jsx(CP,{children:b.jsx(xP,{configuration:t,children:n.mode==="editor"?b.jsx(OS,{...n,children:b.jsx(DS,{children:e})}):b.jsx(kP,{fallback:e,children:b.jsx(OS,{...n,children:b.jsx(OP,{fallback:e,children:b.jsx(DS,{children:e})})})})})})}),IP=(e,t)=>ho(lr.INTLAYER_URL_CHANGE,e,t),LP=()=>_s(lr.INTLAYER_IFRAME_CLICKED,fP);/*! js-cookie v3.0.5 | MIT */function Sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var jP={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function py(e,t){function n(a,s,l){if(!(typeof document>"u")){l=Sd({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var d in l)l[d]&&(u+="; "+d,l[d]!==!0&&(u+="="+l[d].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],l={},u=0;u<s.length;u++){var d=s[u].split("="),f=d.slice(1).join("=");try{var m=decodeURIComponent(d[0]);if(l[m]=e.read(f,m),a===m)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Sd({},s,{expires:-1}))},withAttributes:function(a){return py(this.converter,Sd({},this.attributes,a))},withConverter:function(a){return py(Sd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var lR=py(jP,{path:"/"});const{cookieName:cR}=Ge.middleware,MP={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},Mv=lR.get(cR),uR=e=>{lR.set(cR,e,MP)},PP=()=>({localeCookie:Mv,setLocaleCookie:uR});var V1;const nh=S.createContext({locale:Mv??((V1=Ge==null?void 0:Ge.internationalization)==null?void 0:V1.defaultLocale),setLocale:()=>null,disableEditor:!1}),zP=()=>S.useContext(nh),VP=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:s}=Ge??{},{defaultLocale:l,locales:u}=s??{},d=e??Mv??t??l,[f,m]=ho(lr.INTLAYER_CURRENT_LOCALE,d),v=r??(y=>{if(f.toString()!==y.toString()){if(!(u!=null&&u.map(String).includes(y))){console.error(`Locale ${y} is not available`);return}m(y),uR(y)}}),x=cP(e??f);return b.jsx(nh.Provider,{value:{locale:x,setLocale:v,disableEditor:a},children:n})},vf=({children:e,value:t,additionalProps:n})=>{const r=S.isValidElement(e)?e:b.jsx(b.Fragment,{children:e});return new Proxy(r,{get(a,s,l){return s==="value"?t:n&&Object.keys(n).includes(s)?n[s]:Reflect.get(a,s,l)}})},BP=250,UP=({children:e,onPress:t,onClickOutside:n,pressDuration:r=BP,isSelecting:a,...s})=>{const l=S.useRef(null),[u,d]=S.useState(!1),[f,m]=S.useState(a),p=S.useRef(null),v=typeof e=="string",x=()=>{m(!0),t()},y=()=>{p.current=setTimeout(()=>{x()},r)},E=()=>{p.current&&(clearTimeout(p.current),p.current=null)},A=()=>{E(),y()},T=()=>{d(!0)},w=()=>{d(!1),E()},R=S.useCallback(D=>{l.current&&!l.current.contains(D.target)&&(m(!1),n==null||n())},[n]);S.useEffect(()=>(document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}),[R]);const O=D=>{f&&(D.preventDefault(),D.stopPropagation())},N=()=>{m(!1)};return b.jsx("span",{style:{display:v?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:a||f||u?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:O,onMouseDown:A,onMouseUp:w,onMouseLeave:w,onTouchStart:A,onTouchEnd:w,onTouchCancel:w,onBlur:N,onMouseEnter:T,ref:l,...s,children:e})},$P=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=ha(),s=S.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),l=S.useMemo(()=>{var u;return((r==null?void 0:r.dictionaryKey)===t&&(((u=r==null?void 0:r.keyPath)==null?void 0:u.length)??0)>0&&Fc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return b.jsx(UP,{onPress:s,isSelecting:l,children:e})},bf=({children:e,...t})=>{const{enabled:n}=aR(),{disableEditor:r}=zP();return n&&!r?b.jsx($P,{...t,children:e}):e},Pv=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Ns();return r?r.getEditedContentValue(e,t)??n:n},HP=e=>{const t=Pv(e);if(typeof t=="object"){const n=Lv(t,e,e.locale);return typeof n!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof n}. Expected string. Value ${JSON.stringify(n)}`),e.children):n}return t},FP=S.createContext({renderMarkdown:e=>e}),GP=()=>S.useContext(FP),qP=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=GP(),s=Pv({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const l=Lv(s,{dictionaryKey:e,keyPath:t},r);return typeof l!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof l}. Expected string. Value ${JSON.stringify(l)}`),a(n)):a(l)}return a(s)},KP=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=Pv({dictionaryKey:e,keyPath:t,children:n}),s=q1(a);return Ur(s,r)},dR=e=>{if(typeof e=="string")return e;const n=(s=>{var l;if(s!=null&&s.props&&typeof s.props.children=="object"){const u=[],{children:d}=s.props;return Object.keys(d??{}).forEach(f=>{u.push(dR((d??{})[f]))}),{...s,props:{...s.props,children:u}}}return{...s,props:{...s.props,children:((l=s.props)==null?void 0:l.children)??[]}}})(e),{type:r,props:a}=n;return S.createElement(r??"span",a,...a.children)},ZP={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>vf({...n,value:n.children,children:S.createElement(bf,{...n,key:n.children},b.jsx(HP,{...n,children:n.children}))})},WP={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>vf({...n,value:"[[react-element]]",children:b.jsx(bf,{...n,children:dR(e)})})},YP={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,s=q1(e),u=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>vf({...f,value:d,children:b.jsx(bf,{...a,children:b.jsx(KP,{...a,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return vf({...t,value:e,children:b.jsx(bf,{...a,children:b.jsx(qP,{...a,children:e})}),additionalProps:{metadata:u}})}},XP={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Z.Markdown}],a=e[Z.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[YP,...t.plugins??[]]})}},IS=(e,t,n)=>H1(e,t,[ZP,WP,XP]),qt=(e,t)=>{const{locale:n}=S.useContext(nh),r=n,{changedContent:a}=pP();return a!=null&&a[e.key]?IS(a==null?void 0:a[e.key],r):IS(e,r)},zv=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=(Ge==null?void 0:Ge.internationalization)??{},{locale:r,setLocale:a}=S.useContext(nh),{setLocaleCookie:s}=PP();return{locale:r,defaultLocale:t,availableLocales:n,setLocale:u=>{if(!(n!=null&&n.map(String).includes(u))){console.error(`Locale ${u} is not available`);return}a(u),s(u),e==null||e(u)}}};var Hl={},LS;function QP(){if(LS)return Hl;LS=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.parse=l,Hl.serialize=f;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function l(v,x){const y=new s,E=v.length;if(E<2)return y;const A=(x==null?void 0:x.decode)||m;let T=0;do{const w=v.indexOf("=",T);if(w===-1)break;const R=v.indexOf(";",T),O=R===-1?E:R;if(w>O){T=v.lastIndexOf(";",w-1)+1;continue}const N=u(v,T,w),D=d(v,w,N),I=v.slice(N,D);if(y[I]===void 0){let j=u(v,w+1,O),P=d(v,O,j);const M=A(v.slice(j,P));y[I]=M}T=O+1}while(T<E);return y}function u(v,x,y){do{const E=v.charCodeAt(x);if(E!==32&&E!==9)return x}while(++x<y);return y}function d(v,x,y){for(;x>y;){const E=v.charCodeAt(--x);if(E!==32&&E!==9)return x+1}return y}function f(v,x,y){const E=(y==null?void 0:y.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const A=E(x);if(!t.test(A))throw new TypeError(`argument val is invalid: ${x}`);let T=v+"="+A;if(!y)return T;if(y.maxAge!==void 0){if(!Number.isInteger(y.maxAge))throw new TypeError(`option maxAge is invalid: ${y.maxAge}`);T+="; Max-Age="+y.maxAge}if(y.domain){if(!n.test(y.domain))throw new TypeError(`option domain is invalid: ${y.domain}`);T+="; Domain="+y.domain}if(y.path){if(!r.test(y.path))throw new TypeError(`option path is invalid: ${y.path}`);T+="; Path="+y.path}if(y.expires){if(!p(y.expires)||!Number.isFinite(y.expires.valueOf()))throw new TypeError(`option expires is invalid: ${y.expires}`);T+="; Expires="+y.expires.toUTCString()}if(y.httpOnly&&(T+="; HttpOnly"),y.secure&&(T+="; Secure"),y.partitioned&&(T+="; Partitioned"),y.priority)switch(typeof y.priority=="string"?y.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${y.priority}`)}if(y.sameSite)switch(typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${y.sameSite}`)}return T}function m(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return a.call(v)==="[object Date]"}return Hl}QP();var jS="popstate";function JP(e={}){function t(r,a){let{pathname:s,search:l,hash:u}=r.location;return gy("",{pathname:s,search:l,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:wc(a)}return tz(t,n,null,e)}function xt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ez(){return Math.random().toString(36).substring(2,10)}function MS(e,t){return{usr:e.state,key:e.key,idx:t}}function gy(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Os(t):t,state:n,key:t&&t.key||r||ez()}}function wc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Os(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function tz(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,u="POP",d=null,f=m();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function m(){return(l.state||{idx:null}).idx}function p(){u="POP";let A=m(),T=A==null?null:A-f;f=A,d&&d({action:u,location:E.location,delta:T})}function v(A,T){u="PUSH";let w=gy(E.location,A,T);f=m()+1;let R=MS(w,f),O=E.createHref(w);try{l.pushState(R,"",O)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(O)}s&&d&&d({action:u,location:E.location,delta:1})}function x(A,T){u="REPLACE";let w=gy(E.location,A,T);f=m();let R=MS(w,f),O=E.createHref(w);l.replaceState(R,"",O),s&&d&&d({action:u,location:E.location,delta:0})}function y(A){return nz(A)}let E={get action(){return u},get location(){return e(a,l)},listen(A){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(jS,p),d=A,()=>{a.removeEventListener(jS,p),d=null}},createHref(A){return t(a,A)},createURL:y,encodeLocation(A){let T=y(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:v,replace:x,go(A){return l.go(A)}};return E}function nz(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),xt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:wc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function fR(e,t,n="/"){return rz(e,t,n,!1)}function rz(e,t,n,r){let a=typeof t=="string"?Os(t):t,s=Si(a.pathname||"/",n);if(s==null)return null;let l=hR(e);iz(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=pz(s);u=hz(l[d],f,r)}return u}function hR(e,t=[],n=[],r=""){let a=(s,l,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(xt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=xi([r,d.relativePath]),m=n.concat(d);s.children&&s.children.length>0&&(xt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),hR(s.children,t,m,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:dz(f,s.index),routesMeta:m})};return e.forEach((s,l)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))a(s,l);else for(let d of mR(s.path))a(s,l,d)}),t}function mR(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=mR(r.join("/")),u=[];return u.push(...l.map(d=>d===""?s:[s,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function iz(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var az=/^:[\w-]+$/,oz=3,sz=2,lz=1,cz=10,uz=-2,PS=e=>e==="*";function dz(e,t){let n=e.split("/"),r=n.length;return n.some(PS)&&(r+=uz),t&&(r+=sz),n.filter(a=>!PS(a)).reduce((a,s)=>a+(az.test(s)?oz:s===""?lz:cz),r)}function fz(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function hz(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",p=_f({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),v=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=_f({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(a,p.params),l.push({params:a,pathname:xi([s,p.pathname]),pathnameBase:bz(xi([s,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(s=xi([s,p.pathnameBase]))}return l}function _f(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=mz(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},v)=>{if(m==="*"){let y=u[v]||"";l=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const x=u[v];return p&&!x?f[m]=void 0:f[m]=(x||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function mz(e,t=!1,n=!0){qr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function pz(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Si(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function gz(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Os(e):e;return{pathname:n?n.startsWith("/")?n:yz(n,t):t,search:_z(r),hash:Ez(a)}}function yz(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ng(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pR(e){let t=vz(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function gR(e,t,n,r=!1){let a;typeof e=="string"?a=Os(e):(a={...e},xt(!a.pathname||!a.pathname.includes("?"),ng("?","pathname","search",a)),xt(!a.pathname||!a.pathname.includes("#"),ng("#","pathname","hash",a)),xt(!a.search||!a.search.includes("#"),ng("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,u;if(l==null)u=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),p-=1;a.pathname=v.join("/")}u=p>=0?t[p]:"/"}let d=gz(a,u),f=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var xi=e=>e.join("/").replace(/\/\/+/g,"/"),bz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_z=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ez=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var yR=["POST","PUT","PATCH","DELETE"];new Set(yR);var Sz=["GET",...yR];new Set(Sz);var ks=S.createContext(null);ks.displayName="DataRouter";var rh=S.createContext(null);rh.displayName="DataRouterState";var vR=S.createContext({isTransitioning:!1});vR.displayName="ViewTransition";var Az=S.createContext(new Map);Az.displayName="Fetchers";var wz=S.createContext(null);wz.displayName="Await";var Wr=S.createContext(null);Wr.displayName="Navigation";var Gc=S.createContext(null);Gc.displayName="Location";var Ni=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ni.displayName="Route";var Vv=S.createContext(null);Vv.displayName="RouteError";function Tz(e,{relative:t}={}){xt(qc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Wr),{hash:a,pathname:s,search:l}=Kc(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:xi([n,s])),r.createHref({pathname:u,search:l,hash:a})}function qc(){return S.useContext(Gc)!=null}function ma(){return xt(qc(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Gc).location}var bR="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _R(e){S.useContext(Wr).static||S.useLayoutEffect(e)}function Rz(){let{isDataRoute:e}=S.useContext(Ni);return e?Bz():Cz()}function Cz(){xt(qc(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(ks),{basename:t,navigator:n}=S.useContext(Wr),{matches:r}=S.useContext(Ni),{pathname:a}=ma(),s=JSON.stringify(pR(r)),l=S.useRef(!1);return _R(()=>{l.current=!0}),S.useCallback((d,f={})=>{if(qr(l.current,bR),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=gR(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:xi([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,s,a,e])}S.createContext(null);function Kc(e,{relative:t}={}){let{matches:n}=S.useContext(Ni),{pathname:r}=ma(),a=JSON.stringify(pR(n));return S.useMemo(()=>gR(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Nz(e,t){return ER(e,t)}function ER(e,t,n,r){var T;xt(qc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=S.useContext(Wr),{matches:s}=S.useContext(Ni),l=s[s.length-1],u=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",m=l&&l.route;{let w=m&&m.path||"";xR(d,!m||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
52
52
|
|
|
53
53
|
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let p=ma(),v;if(t){let w=typeof t=="string"?Os(t):t;xt(f==="/"||((T=w.pathname)==null?void 0:T.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${w.pathname}" was given in the \`location\` prop.`),v=w}else v=p;let x=v.pathname||"/",y=x;if(f!=="/"){let w=f.replace(/^\//,"").split("/");y="/"+x.replace(/^\//,"").split("/").slice(w.length).join("/")}let E=fR(e,{pathname:y});qr(m||E!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),qr(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=Lz(E&&E.map(w=>Object.assign({},w,{params:Object.assign({},u,w.params),pathname:xi([f,a.encodeLocation?a.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:xi([f,a.encodeLocation?a.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&A?S.createElement(Gc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},A):A}function Oz(){let e=Vz(),t=xz(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:a},n):null,l)}var kz=S.createElement(Oz,null),Dz=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(Ni.Provider,{value:this.props.routeContext},S.createElement(Vv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Iz({routeContext:e,match:t,children:n}){let r=S.useContext(ks);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Ni.Provider,{value:e},n)}function Lz(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=n==null?void 0:n.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);xt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:p}=n,v=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||v){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,m)=>{let p,v=!1,x=null,y=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,x=f.route.errorElement||kz,l&&(u<0&&m===0?(xR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,y=null):u===m&&(v=!0,y=f.route.hydrateFallbackElement||null)));let E=t.concat(a.slice(0,m+1)),A=()=>{let T;return p?T=x:v?T=y:f.route.Component?T=S.createElement(f.route.Component,null):f.route.element?T=f.route.element:T=d,S.createElement(Iz,{match:f,routeContext:{outlet:d,matches:E,isDataRoute:n!=null},children:T})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?S.createElement(Dz,{location:n.location,revalidation:n.revalidation,component:x,error:p,children:A(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):A()},null)}function Bv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jz(e){let t=S.useContext(ks);return xt(t,Bv(e)),t}function Mz(e){let t=S.useContext(rh);return xt(t,Bv(e)),t}function Pz(e){let t=S.useContext(Ni);return xt(t,Bv(e)),t}function Uv(e){let t=Pz(e),n=t.matches[t.matches.length-1];return xt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function zz(){return Uv("useRouteId")}function Vz(){var r;let e=S.useContext(Vv),t=Mz("useRouteError"),n=Uv("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Bz(){let{router:e}=jz("useNavigate"),t=Uv("useNavigate"),n=S.useRef(!1);return _R(()=>{n.current=!0}),S.useCallback(async(a,s={})=>{qr(n.current,bR),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var zS={};function xR(e,t,n){!t&&!zS[e]&&(zS[e]=!0,qr(!1,n))}S.memo(Uz);function Uz({routes:e,future:t,state:n}){return ER(e,void 0,n,t)}function SR(e){xt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $z({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){xt(!qc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Os(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:v="default"}=n,x=S.useMemo(()=>{let y=Si(d,l);return y==null?null:{location:{pathname:y,search:f,hash:m,state:p,key:v},navigationType:r}},[l,d,f,m,p,v,r]);return qr(x!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:S.createElement(Wr.Provider,{value:u},S.createElement(Gc.Provider,{children:t,value:x}))}function Hz({children:e,location:t}){return Nz(yy(e),t)}function yy(e,t=[]){let n=[];return S.Children.forEach(e,(r,a)=>{if(!S.isValidElement(r))return;let s=[...t,a];if(r.type===S.Fragment){n.push.apply(n,yy(r.props.children,s));return}xt(r.type===SR,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),xt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=yy(r.props.children,s)),n.push(l)}),n}var Jd="get",ef="application/x-www-form-urlencoded";function ih(e){return e!=null&&typeof e.tagName=="string"}function Fz(e){return ih(e)&&e.tagName.toLowerCase()==="button"}function Gz(e){return ih(e)&&e.tagName.toLowerCase()==="form"}function qz(e){return ih(e)&&e.tagName.toLowerCase()==="input"}function Kz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zz(e,t){return e.button===0&&(!t||t==="_self")&&!Kz(e)}var Ad=null;function Wz(){if(Ad===null)try{new FormData(document.createElement("form"),0),Ad=!1}catch{Ad=!0}return Ad}var Yz=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rg(e){return e!=null&&!Yz.has(e)?(qr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ef}"`),null):e}function Xz(e,t){let n,r,a,s,l;if(Gz(e)){let u=e.getAttribute("action");r=u?Si(u,t):null,n=e.getAttribute("method")||Jd,a=rg(e.getAttribute("enctype"))||ef,s=new FormData(e)}else if(Fz(e)||qz(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?Si(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Jd,a=rg(e.getAttribute("formenctype"))||rg(u.getAttribute("enctype"))||ef,s=new FormData(u,e),!Wz()){let{name:f,type:m,value:p}=e;if(m==="image"){let v=f?`${f}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else f&&s.append(f,p)}}else{if(ih(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Jd,r=null,a=ef,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}function $v(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function Qz(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Jz(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function eV(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await Qz(s,n);return l.links?l.links():[]}return[]}));return iV(r.flat(1).filter(Jz).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function VS(e,t,n,r,a,s){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>{var m;return n[f].pathname!==d.pathname||((m=n[f].route.path)==null?void 0:m.endsWith("*"))&&n[f].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,f)=>l(d,f)||u(d,f)):s==="data"?t.filter((d,f)=>{var p;let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(l(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let v=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function tV(e,t,{includeHydrateFallback:n}={}){return nV(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function nV(e){return[...new Set(e)]}function rV(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function iV(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(rV(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var aV=new Set([100,101,204,205]);function oV(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Si(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function AR(){let e=S.useContext(ks);return $v(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sV(){let e=S.useContext(rh);return $v(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Hv=S.createContext(void 0);Hv.displayName="FrameworkContext";function wR(){let e=S.useContext(Hv);return $v(e,"You must render this element inside a <HydratedRouter> element"),e}function lV(e,t){let n=S.useContext(Hv),[r,a]=S.useState(!1),[s,l]=S.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,v=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let E=T=>{T.forEach(w=>{l(w.isIntersecting)})},A=new IntersectionObserver(E,{threshold:.5});return v.current&&A.observe(v.current),()=>{A.disconnect()}}},[e]),S.useEffect(()=>{if(r){let E=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(E)}}},[r]);let x=()=>{a(!0)},y=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:Fl(u,x),onBlur:Fl(d,y),onMouseEnter:Fl(f,x),onMouseLeave:Fl(m,y),onTouchStart:Fl(p,x)}]:[!1,v,{}]}function Fl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function cV({page:e,...t}){let{router:n}=AR(),r=S.useMemo(()=>fR(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(dV,{page:e,matches:r,...t}):null}function uV(e){let{manifest:t,routeModules:n}=wR(),[r,a]=S.useState([]);return S.useEffect(()=>{let s=!1;return eV(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function dV({page:e,matches:t,...n}){let r=ma(),{manifest:a,routeModules:s}=wR(),{basename:l}=AR(),{loaderData:u,matches:d}=sV(),f=S.useMemo(()=>VS(e,t,d,a,r,"data"),[e,t,d,a,r]),m=S.useMemo(()=>VS(e,t,d,a,r,"assets"),[e,t,d,a,r]),p=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,E=!1;if(t.forEach(T=>{var R;let w=a.routes[T.route.id];!w||!w.hasLoader||(!f.some(O=>O.route.id===T.route.id)&&T.route.id in u&&((R=s[T.route.id])!=null&&R.shouldRevalidate)||w.hasClientLoader?E=!0:y.add(T.route.id))}),y.size===0)return[];let A=oV(e,l);return E&&y.size>0&&A.searchParams.set("_routes",t.filter(T=>y.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[l,u,r,a,f,t,e,s]),v=S.useMemo(()=>tV(m,a),[m,a]),x=uV(m);return S.createElement(S.Fragment,null,p.map(y=>S.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),v.map(y=>S.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),x.map(({key:y,link:E})=>S.createElement("link",{key:y,...E})))}function fV(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var TR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{TR&&(window.__reactRouterVersion="7.6.2")}catch{}function hV({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=JP({window:n,v5Compat:!0}));let a=r.current,[s,l]=S.useState({action:a.action,location:a.location}),u=S.useCallback(d=>{S.startTransition(()=>l(d))},[l]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.createElement($z,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var RR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CR=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,state:u,target:d,to:f,preventScrollReset:m,viewTransition:p,...v},x){let{basename:y}=S.useContext(Wr),E=typeof f=="string"&&RR.test(f),A,T=!1;if(typeof f=="string"&&E&&(A=f,TR))try{let P=new URL(window.location.href),M=f.startsWith("//")?new URL(P.protocol+f):new URL(f),oe=Si(M.pathname,y);M.origin===P.origin&&oe!=null?f=oe+M.search+M.hash:T=!0}catch{qr(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=Tz(f,{relative:a}),[R,O,N]=lV(r,v),D=yV(f,{replace:l,state:u,target:d,preventScrollReset:m,relative:a,viewTransition:p});function I(P){t&&t(P),P.defaultPrevented||D(P)}let j=S.createElement("a",{...v,...N,href:A||w,onClick:T||s?t:I,ref:fV(x,O),target:d,"data-discover":!E&&n==="render"?"true":void 0});return R&&!E?S.createElement(S.Fragment,null,j,S.createElement(cV,{page:w})):j});CR.displayName="Link";var mV=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:u,children:d,...f},m){let p=Kc(l,{relative:f.relative}),v=ma(),x=S.useContext(rh),{navigator:y,basename:E}=S.useContext(Wr),A=x!=null&&xV(p)&&u===!0,T=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=v.pathname,R=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(w=w.toLowerCase(),R=R?R.toLowerCase():null,T=T.toLowerCase()),R&&E&&(R=Si(R,E)||R);const O=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let N=w===T||!a&&w.startsWith(T)&&w.charAt(O)==="/",D=R!=null&&(R===T||!a&&R.startsWith(T)&&R.charAt(T.length)==="/"),I={isActive:N,isPending:D,isTransitioning:A},j=N?t:void 0,P;typeof r=="function"?P=r(I):P=[r,N?"active":null,D?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let M=typeof s=="function"?s(I):s;return S.createElement(CR,{...f,"aria-current":j,className:P,ref:m,style:M,to:l,viewTransition:u},typeof d=="function"?d(I):d)});mV.displayName="NavLink";var pV=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=Jd,action:u,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...v},x)=>{let y=_V(),E=EV(u,{relative:f}),A=l.toLowerCase()==="get"?"get":"post",T=typeof u=="string"&&RR.test(u),w=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let O=R.nativeEvent.submitter,N=(O==null?void 0:O.getAttribute("formmethod"))||l;y(O||R.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:a,state:s,relative:f,preventScrollReset:m,viewTransition:p})};return S.createElement("form",{ref:x,method:A,action:E,onSubmit:r?d:w,...v,"data-discover":!T&&e==="render"?"true":void 0})});pV.displayName="Form";function gV(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function NR(e){let t=S.useContext(ks);return xt(t,gV(e)),t}function yV(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let u=Rz(),d=ma(),f=Kc(e,{relative:s});return S.useCallback(m=>{if(Zz(m,t)){m.preventDefault();let p=n!==void 0?n:wc(d)===wc(f);u(e,{replace:p,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[d,u,f,n,r,t,e,a,s,l])}var vV=0,bV=()=>`__${String(++vV)}__`;function _V(){let{router:e}=NR("useSubmit"),{basename:t}=S.useContext(Wr),n=zz();return S.useCallback(async(r,a={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=Xz(r,t);if(a.navigate===!1){let m=a.fetcherKey||bV();await e.fetch(m,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function EV(e,{relative:t}={}){let{basename:n}=S.useContext(Wr),r=S.useContext(Ni);xt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Kc(e||".",{relative:t})},l=ma();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let m=u.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:xi([n,s.pathname])),wc(s)}function xV(e,t={}){let n=S.useContext(vR);xt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=NR("useViewTransitionState"),a=Kc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Si(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Si(n.nextLocation.pathname,r)||n.nextLocation.pathname;return _f(a.pathname,l)!=null||_f(a.pathname,s)!=null}[...aV];var mo=U1();const SV=eh(mo);/**
|
package/client/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Intlayer Editor</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DRMJ9GXn.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-BPyAab6E.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer-editor",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.",
|
|
6
6
|
"keywords": [
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"react-dom": "^19.1.0",
|
|
75
75
|
"react-router-dom": "^7.4.0",
|
|
76
76
|
"rimraf": "^6.0.1",
|
|
77
|
-
"@intlayer/
|
|
78
|
-
"@intlayer/
|
|
79
|
-
"
|
|
80
|
-
"@intlayer/
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
77
|
+
"@intlayer/core": "5.7.5",
|
|
78
|
+
"@intlayer/config": "5.7.5",
|
|
79
|
+
"react-intlayer": "5.7.5",
|
|
80
|
+
"@intlayer/api": "5.7.5",
|
|
81
|
+
"@intlayer/editor-react": "5.7.5",
|
|
82
|
+
"vite-intlayer": "5.7.5",
|
|
83
|
+
"@intlayer/design-system": "5.7.5",
|
|
84
|
+
"express-intlayer": "5.7.5"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@tailwindcss/vite": "^4.0.14",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"typescript-eslint": "^8.27.0",
|
|
104
104
|
"vite": "^6.3.5",
|
|
105
105
|
"vitest": "^3.2.2",
|
|
106
|
-
"@intlayer/backend": "5.7.
|
|
106
|
+
"@intlayer/backend": "5.7.5"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@types/compression": "^1.7.5",
|
|
@@ -114,15 +114,15 @@
|
|
|
114
114
|
"react-dom": ">=16.0.0",
|
|
115
115
|
"react-router-dom": ">=6.0.0",
|
|
116
116
|
"tailwind-merge": "^3.3.0",
|
|
117
|
-
"@intlayer/
|
|
118
|
-
"@intlayer/
|
|
119
|
-
"@intlayer/
|
|
120
|
-
"@intlayer/
|
|
121
|
-
"
|
|
122
|
-
"react-intlayer": "5.7.
|
|
123
|
-
"
|
|
124
|
-
"@intlayer/dictionaries-entry": "5.7.
|
|
125
|
-
"intlayer": "5.7.
|
|
117
|
+
"@intlayer/chokidar": "5.7.5",
|
|
118
|
+
"@intlayer/config": "5.7.5",
|
|
119
|
+
"@intlayer/design-system": "5.7.5",
|
|
120
|
+
"@intlayer/core": "5.7.5",
|
|
121
|
+
"@intlayer/editor-react": "5.7.5",
|
|
122
|
+
"react-intlayer": "5.7.5",
|
|
123
|
+
"vite-intlayer": "5.7.5",
|
|
124
|
+
"@intlayer/dictionaries-entry": "5.7.5",
|
|
125
|
+
"intlayer": "5.7.5"
|
|
126
126
|
},
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": ">=14.18"
|