@oslokommune/punkt-react 12.42.9 → 12.42.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/punkt-react.es.js +818 -113
- package/dist/punkt-react.umd.js +14 -14
- package/package.json +5 -5
package/dist/punkt-react.umd.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
return [];
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
(function(Ot,$e){typeof exports=="object"&&typeof module<"u"?$e(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],$e):(Ot=typeof globalThis<"u"?globalThis:Ot||self,$e(Ot["punkt-react"]={},Ot.React,Ot.reactRouterDom))})(this,function(Ot,$e,$f){"use strict";var
|
|
36
|
+
(function(Ot,$e){typeof exports=="object"&&typeof module<"u"?$e(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],$e):(Ot=typeof globalThis<"u"?globalThis:Ot||self,$e(Ot["punkt-react"]={},Ot.React,Ot.reactRouterDom))})(this,function(Ot,$e,$f){"use strict";var R7=Object.defineProperty;var L7=(Ot,$e,$f)=>$e in Ot?R7(Ot,$e,{enumerable:!0,configurable:!0,writable:!0,value:$f}):Ot[$e]=$f;var yg=(Ot,$e,$f)=>L7(Ot,typeof $e!="symbol"?$e+"":$e,$f);function E$(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const i in r)if(i!=="default"){const l=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}return n.default=r,Object.freeze(n)}function T$(r,n){for(var i=0;i<n.length;i++){const l=n[i];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const h=Object.getOwnPropertyDescriptor(l,c);h&&Object.defineProperty(r,c,h.get?h:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}const A$=E$($e);var Sd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Iy(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Yw={exports:{}},bg={};/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.production.min.js
|
|
39
39
|
*
|
|
@@ -190,7 +190,7 @@ Check the render method of \``+e+"`.":""}var js=["value","defaultValue"];functio
|
|
|
190
190
|
* @internal
|
|
191
191
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
192
192
|
*/function zm(e){if(!tn)return!1;var t="on"+e,s=t in document;if(!s){var u=document.createElement("div");u.setAttribute(t,"return;"),s=typeof u[t]=="function"}return s}function M2(){Lt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function ff(e,t,s,u){zu(u);var p=bk(t,"onChange");if(p.length>0){var y=new Oa("onChange","change",null,s,u);e.push({event:y,listeners:p})}}var eh=null,ic=null;function a(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function o(e){var t=[];ff(t,ic,e,wp(e)),cm(d,t)}function d(e){tT(e,0)}function v(e){var t=Ym(e);if(Fo(t))return e}function b(e,t){if(e==="change")return t}var S=!1;tn&&(S=zm("input")&&(!document.documentMode||document.documentMode>9));function P(e,t){eh=e,ic=t,eh.attachEvent("onpropertychange",J)}function H(){eh&&(eh.detachEvent("onpropertychange",J),eh=null,ic=null)}function J(e){e.propertyName==="value"&&v(ic)&&o(e)}function me(e,t,s){e==="focusin"?(H(),P(t,s)):e==="focusout"&&H()}function Ne(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return v(ic)}function Be(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Pe(e,t){if(e==="click")return v(t)}function st(e,t){if(e==="input"||e==="change")return v(t)}function mt(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Tt(e,"number",e.value)}function kt(e,t,s,u,p,y,w){var x=s?Ym(s):window,A,B;if(a(x)?A=b:hk(x)?S?A=st:(A=Ne,B=me):Be(x)&&(A=Pe),A){var I=A(t,s);if(I){ff(e,I,u,p);return}}B&&B(t,x,s),t==="focusout"&&mt(x)}function Kr(){fn("onMouseEnter",["mouseout","mouseover"]),fn("onMouseLeave",["mouseout","mouseover"]),fn("onPointerEnter",["pointerout","pointerover"]),fn("onPointerLeave",["pointerout","pointerover"])}function oe(e,t,s,u,p,y,w){var x=t==="mouseover"||t==="pointerover",A=t==="mouseout"||t==="pointerout";if(x&&!Rc(u)){var B=u.relatedTarget||u.fromElement;if(B&&(rh(B)||Xv(B)))return}if(!(!A&&!x)){var I;if(p.window===p)I=p;else{var re=p.ownerDocument;re?I=re.defaultView||re.parentWindow:I=window}var te,ue;if(A){var ge=u.relatedTarget||u.toElement;if(te=s,ue=ge?rh(ge):null,ue!==null){var Ce=di(ue);(ue!==Ce||ue.tag!==R&&ue.tag!==j)&&(ue=null)}}else te=null,ue=s;if(te!==ue){var tt=Ql,St="onMouseLeave",Pt="onMouseEnter",hn="mouse";(t==="pointerout"||t==="pointerover")&&(tt=ik,St="onPointerLeave",Pt="onPointerEnter",hn="pointer");var cn=te==null?I:Ym(te),se=ue==null?I:Ym(ue),De=new tt(St,hn+"leave",te,u,p);De.target=cn,De.relatedTarget=se;var le=null,je=rh(p);if(je===s){var ut=new tt(Pt,hn+"enter",ue,u,p);ut.target=se,ut.relatedTarget=cn,le=ut}p8(e,De,le,te,ue)}}}function ne(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ie=typeof Object.is=="function"?Object.is:ne;function Ue(e,t){if(ie(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),u=Object.keys(t);if(s.length!==u.length)return!1;for(var p=0;p<s.length;p++){var y=s[p];if(!Qn.call(t,y)||!ie(e[y],t[y]))return!1}return!0}function wt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nt(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function $t(e,t){for(var s=wt(e),u=0,p=0;s;){if(s.nodeType===Po){if(p=u+s.textContent.length,u<=t&&p>=t)return{node:s,offset:t-u};u=p}s=wt(Nt(s))}}function zt(e){var t=e.ownerDocument,s=t&&t.defaultView||window,u=s.getSelection&&s.getSelection();if(!u||u.rangeCount===0)return null;var p=u.anchorNode,y=u.anchorOffset,w=u.focusNode,x=u.focusOffset;try{p.nodeType,w.nodeType}catch{return null}return Da(e,p,y,w,x)}function Da(e,t,s,u,p){var y=0,w=-1,x=-1,A=0,B=0,I=e,re=null;e:for(;;){for(var te=null;I===t&&(s===0||I.nodeType===Po)&&(w=y+s),I===u&&(p===0||I.nodeType===Po)&&(x=y+p),I.nodeType===Po&&(y+=I.nodeValue.length),(te=I.firstChild)!==null;)re=I,I=te;for(;;){if(I===e)break e;if(re===t&&++A===s&&(w=y),re===u&&++B===p&&(x=y),(te=I.nextSibling)!==null)break;I=re,re=I.parentNode}I=te}return w===-1||x===-1?null:{start:w,end:x}}function Rn(e,t){var s=e.ownerDocument||document,u=s&&s.defaultView||window;if(u.getSelection){var p=u.getSelection(),y=e.textContent.length,w=Math.min(t.start,y),x=t.end===void 0?w:Math.min(t.end,y);if(!p.extend&&w>x){var A=x;x=w,w=A}var B=$t(e,w),I=$t(e,x);if(B&&I){if(p.rangeCount===1&&p.anchorNode===B.node&&p.anchorOffset===B.offset&&p.focusNode===I.node&&p.focusOffset===I.offset)return;var re=s.createRange();re.setStart(B.node,B.offset),p.removeAllRanges(),w>x?(p.addRange(re),p.extend(I.node,I.offset)):(re.setEnd(I.node,I.offset),p.addRange(re))}}}function Jl(e){return e&&e.nodeType===Po}function mk(e,t){return!e||!t?!1:e===t?!0:Jl(e)?!1:Jl(t)?mk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function K4(e){return e&&e.ownerDocument&&mk(e.ownerDocument.documentElement,e)}function Q4(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function VE(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){if(Q4(t))e=t.contentWindow;else return t;t=Ti(e.document)}return t}function I2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function X4(){var e=VE();return{focusedElem:e,selectionRange:I2(e)?Z4(e):null}}function J4(e){var t=VE(),s=e.focusedElem,u=e.selectionRange;if(t!==s&&K4(s)){u!==null&&I2(s)&&e8(s,u);for(var p=[],y=s;y=y.parentNode;)y.nodeType===Jr&&p.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof s.focus=="function"&&s.focus();for(var w=0;w<p.length;w++){var x=p[w];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}}function Z4(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=zt(e),t||{start:0,end:0}}function e8(e,t){var s=t.start,u=t.end;u===void 0&&(u=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(u,e.value.length)):Rn(e,t)}var t8=tn&&"documentMode"in document&&document.documentMode<=11;function n8(){Lt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Um=null,j2=null,Mv=null,z2=!1;function r8(e){if("selectionStart"in e&&I2(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function a8(e){return e.window===e?e.document:e.nodeType===ui?e:e.ownerDocument}function WE(e,t,s){var u=a8(s);if(!(z2||Um==null||Um!==Ti(u))){var p=r8(Um);if(!Mv||!Ue(Mv,p)){Mv=p;var y=bk(j2,"onSelect");if(y.length>0){var w=new Oa("onSelect","select",null,t,s);e.push({event:w,listeners:y}),w.target=Um}}}}function i8(e,t,s,u,p,y,w){var x=s?Ym(s):window;switch(t){case"focusin":(hk(x)||x.contentEditable==="true")&&(Um=x,j2=s,Mv=null);break;case"focusout":Um=null,j2=null,Mv=null;break;case"mousedown":z2=!0;break;case"contextmenu":case"mouseup":case"dragend":z2=!1,WE(e,u,p);break;case"selectionchange":if(t8)break;case"keydown":case"keyup":WE(e,u,p)}}function gk(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var Hm={animationend:gk("Animation","AnimationEnd"),animationiteration:gk("Animation","AnimationIteration"),animationstart:gk("Animation","AnimationStart"),transitionend:gk("Transition","TransitionEnd")},U2={},YE={};tn&&(YE=document.createElement("div").style,"AnimationEvent"in window||(delete Hm.animationend.animation,delete Hm.animationiteration.animation,delete Hm.animationstart.animation),"TransitionEvent"in window||delete Hm.transitionend.transition);function vk(e){if(U2[e])return U2[e];if(!Hm[e])return e;var t=Hm[e];for(var s in t)if(t.hasOwnProperty(s)&&s in YE)return U2[e]=t[s];return e}var GE=vk("animationend"),KE=vk("animationiteration"),QE=vk("animationstart"),XE=vk("transitionend"),JE=new Map,ZE=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function pf(e,t){JE.set(e,t),Lt(t,[e])}function o8(){for(var e=0;e<ZE.length;e++){var t=ZE[e],s=t.toLowerCase(),u=t[0].toUpperCase()+t.slice(1);pf(s,"on"+u)}pf(GE,"onAnimationEnd"),pf(KE,"onAnimationIteration"),pf(QE,"onAnimationStart"),pf("dblclick","onDoubleClick"),pf("focusin","onFocus"),pf("focusout","onBlur"),pf(XE,"onTransitionEnd")}function s8(e,t,s,u,p,y,w){var x=JE.get(t);if(x!==void 0){var A=Oa,B=t;switch(t){case"keypress":if(od(u)===0)return;case"keydown":case"keyup":A=O2;break;case"focusin":B="focus",A=Jp;break;case"focusout":B="blur",A=Jp;break;case"beforeblur":case"afterblur":A=Jp;break;case"click":if(u.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Ql;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=$v;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=ok;break;case GE:case KE:case QE:A=Zb;break;case XE:A=L2;break;case"scroll":A=ws;break;case"wheel":A=Nv;break;case"copy":case"cut":case"paste":A=Pv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=ik;break}var I=(y&Ai)!==0;{var re=!I&&t==="scroll",te=d8(s,x,u.type,I,re);if(te.length>0){var ue=new A(x,B,null,u,p);e.push({event:ue,listeners:te})}}}}o8(),Kr(),M2(),n8(),Ov();function l8(e,t,s,u,p,y,w){s8(e,t,s,u,p,y);var x=(y&kp)===0;x&&(oe(e,t,s,u,p),kt(e,t,s,u,p),i8(e,t,s,u,p),jm(e,t,s,u,p))}var Iv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],H2=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Iv));function eT(e,t,s){var u=e.type||"unknown-event";e.currentTarget=s,io(u,t,void 0,e),e.currentTarget=null}function u8(e,t,s){var u;if(s)for(var p=t.length-1;p>=0;p--){var y=t[p],w=y.instance,x=y.currentTarget,A=y.listener;if(w!==u&&e.isPropagationStopped())return;eT(e,A,x),u=w}else for(var B=0;B<t.length;B++){var I=t[B],re=I.instance,te=I.currentTarget,ue=I.listener;if(re!==u&&e.isPropagationStopped())return;eT(e,ue,te),u=re}}function tT(e,t){for(var s=(t&Ai)!==0,u=0;u<e.length;u++){var p=e[u],y=p.event,w=p.listeners;u8(y,w,s)}Ws()}function c8(e,t,s,u,p){var y=wp(s),w=[];l8(w,e,u,s,y,t),tT(w,t)}function Nr(e,t){H2.has(e)||m('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,u=j6(t),p=h8(e);u.has(p)||(nT(t,e,Kd,s),u.add(p))}function q2(e,t,s){H2.has(e)&&!t&&m('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=Ai),nT(s,e,u,t)}var yk="_reactListening"+Math.random().toString(36).slice(2);function jv(e){if(!e[yk]){e[yk]=!0,ht.forEach(function(s){s!=="selectionchange"&&(H2.has(s)||q2(s,!1,e),q2(s,!0,e))});var t=e.nodeType===ui?e:e.ownerDocument;t!==null&&(t[yk]||(t[yk]=!0,q2("selectionchange",!1,t)))}}function nT(e,t,s,u,p){var y=na(e,t,s),w=void 0;Hu&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(w=!0),e=e,u?w!==void 0?ji(e,t,y,w):Qp(e,t,y):w!==void 0?Tv(e,t,y,w):Ev(e,t,y)}function rT(e,t){return e===t||e.nodeType===er&&e.parentNode===t}function V2(e,t,s,u,p){var y=u;if(!(t&Gd)&&!(t&Kd)){var w=p;if(u!==null){var x=u;e:for(;;){if(x===null)return;var A=x.tag;if(A===N||A===O){var B=x.stateNode.containerInfo;if(rT(B,w))break;if(A===O)for(var I=x.return;I!==null;){var re=I.tag;if(re===N||re===O){var te=I.stateNode.containerInfo;if(rT(te,w))return}I=I.return}for(;B!==null;){var ue=rh(B);if(ue===null)return;var ge=ue.tag;if(ge===R||ge===j){x=y=ue;continue e}B=B.parentNode}}x=x.return}}}cm(function(){return c8(e,t,s,y)})}function zv(e,t,s){return{instance:e,listener:t,currentTarget:s}}function d8(e,t,s,u,p,y){for(var w=t!==null?t+"Capture":null,x=u?w:t,A=[],B=e,I=null;B!==null;){var re=B,te=re.stateNode,ue=re.tag;if(ue===R&&te!==null&&(I=te,x!==null)){var ge=us(B,x);ge!=null&&A.push(zv(B,ge,I))}if(p)break;B=B.return}return A}function bk(e,t){for(var s=t+"Capture",u=[],p=e;p!==null;){var y=p,w=y.stateNode,x=y.tag;if(x===R&&w!==null){var A=w,B=us(p,s);B!=null&&u.unshift(zv(p,B,A));var I=us(p,t);I!=null&&u.push(zv(p,I,A))}p=p.return}return u}function qm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==R);return e||null}function f8(e,t){for(var s=e,u=t,p=0,y=s;y;y=qm(y))p++;for(var w=0,x=u;x;x=qm(x))w++;for(;p-w>0;)s=qm(s),p--;for(;w-p>0;)u=qm(u),w--;for(var A=p;A--;){if(s===u||u!==null&&s===u.alternate)return s;s=qm(s),u=qm(u)}return null}function aT(e,t,s,u,p){for(var y=t._reactName,w=[],x=s;x!==null&&x!==u;){var A=x,B=A.alternate,I=A.stateNode,re=A.tag;if(B!==null&&B===u)break;if(re===R&&I!==null){var te=I;if(p){var ue=us(x,y);ue!=null&&w.unshift(zv(x,ue,te))}else if(!p){var ge=us(x,y);ge!=null&&w.push(zv(x,ge,te))}}x=x.return}w.length!==0&&e.push({event:t,listeners:w})}function p8(e,t,s,u,p){var y=u&&p?f8(u,p):null;u!==null&&aT(e,t,u,y,!1),p!==null&&s!==null&&aT(e,s,p,y,!0)}function h8(e,t){return e+"__bubble"}var qo=!1,Uv="dangerouslySetInnerHTML",kk="suppressContentEditableWarning",hf="suppressHydrationWarning",iT="autoFocus",th="children",nh="style",wk="__html",W2,Dk,Hv,oT,Sk,sT,lT;W2={dialog:!0,webview:!0},Dk=function(e,t){Iu(e,t),ju(e,t),Oc(e,t,{registrationNameDependencies:bt,possibleRegistrationNames:vt})},sT=tn&&!document.documentMode,Hv=function(e,t,s){if(!qo){var u=Ck(s),p=Ck(t);p!==u&&(qo=!0,m("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(u)))}},oT=function(e){if(!qo){qo=!0;var t=[];e.forEach(function(s){t.push(s)}),m("Extra attributes from the server: %s",t)}},Sk=function(e,t){t===!1?m("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):m("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},lT=function(e,t){var s=e.namespaceURI===li?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var m8=/\r\n?/g,g8=/\u0000|\uFFFD/g;function Ck(e){kr(e);var t=typeof e=="string"?e:""+e;return t.replace(m8,`
|
|
193
|
-
`).replace(g8,"")}function _k(e,t,s,u){var p=Ck(t),y=Ck(e);if(y!==p&&(u&&(qo||(qo=!0,m('Text content did not match. Server: "%s" Client: "%s"',y,p))),s&&Le))throw new Error("Text content does not match server-rendered HTML.")}function uT(e){return e.nodeType===ui?e:e.ownerDocument}function v8(){}function xk(e){e.onclick=v8}function y8(e,t,s,u,p){for(var y in u)if(u.hasOwnProperty(y)){var w=u[y];if(y===nh)w&&Object.freeze(w),om(t,w);else if(y===Uv){var x=w?w[wk]:void 0;x!=null&&zd(t,x)}else if(y===th)if(typeof w=="string"){var A=e!=="textarea"||w!=="";A&&is(t,w)}else typeof w=="number"&&is(t,""+w);else y===kk||y===hf||y===iT||(bt.hasOwnProperty(y)?w!=null&&(typeof w!="function"&&Sk(y,w),y==="onScroll"&&Nr("scroll",t)):w!=null&&lr(t,y,w,p))}}function b8(e,t,s,u){for(var p=0;p<t.length;p+=2){var y=t[p],w=t[p+1];y===nh?om(e,w):y===Uv?zd(e,w):y===th?is(e,w):lr(e,y,w,u)}}function k8(e,t,s,u){var p,y=uT(s),w,x=u;if(x===li&&(x=dp(e)),x===li){if(p=ss(e,t),!p&&e!==e.toLowerCase()&&m("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var A=y.createElement("div");A.innerHTML="<script><\/script>";var B=A.firstChild;w=A.removeChild(B)}else if(typeof t.is=="string")w=y.createElement(e,{is:t.is});else if(w=y.createElement(e),e==="select"){var I=w;t.multiple?I.multiple=!0:t.size&&(I.size=t.size)}}else w=y.createElementNS(x,e);return x===li&&!p&&Object.prototype.toString.call(w)==="[object HTMLUnknownElement]"&&!Qn.call(W2,e)&&(W2[e]=!0,m("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),w}function w8(e,t){return uT(t).createTextNode(e)}function D8(e,t,s,u){var p=ss(t,s);Dk(t,s);var y;switch(t){case"dialog":Nr("cancel",e),Nr("close",e),y=s;break;case"iframe":case"object":case"embed":Nr("load",e),y=s;break;case"video":case"audio":for(var w=0;w<Iv.length;w++)Nr(Iv[w],e);y=s;break;case"source":Nr("error",e),y=s;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),y=s;break;case"details":Nr("toggle",e),y=s;break;case"input":ro(e,s),y=Pu(e,s),Nr("invalid",e);break;case"option":wn(e,s),y=s;break;case"select":xl(e,s),y=Fc(e,s),Nr("invalid",e);break;case"textarea":jd(e,s),y=lp(e,s),Nr("invalid",e);break;default:y=s}switch(qd(t,y),y8(t,e,u,y,p),t){case"input":no(e),fe(e,s,!1);break;case"textarea":no(e),Jh(e);break;case"option":zn(e,s);break;case"select":Md(e,s);break;default:typeof y.onClick=="function"&&xk(e);break}}function S8(e,t,s,u,p){Dk(t,u);var y=null,w,x;switch(t){case"input":w=Pu(e,s),x=Pu(e,u),y=[];break;case"select":w=Fc(e,s),x=Fc(e,u),y=[];break;case"textarea":w=lp(e,s),x=lp(e,u),y=[];break;default:w=s,x=u,typeof w.onClick!="function"&&typeof x.onClick=="function"&&xk(e);break}qd(t,x);var A,B,I=null;for(A in w)if(!(x.hasOwnProperty(A)||!w.hasOwnProperty(A)||w[A]==null))if(A===nh){var re=w[A];for(B in re)re.hasOwnProperty(B)&&(I||(I={}),I[B]="")}else A===Uv||A===th||A===kk||A===hf||A===iT||(bt.hasOwnProperty(A)?y||(y=[]):(y=y||[]).push(A,null));for(A in x){var te=x[A],ue=w!=null?w[A]:void 0;if(!(!x.hasOwnProperty(A)||te===ue||te==null&&ue==null))if(A===nh)if(te&&Object.freeze(te),ue){for(B in ue)ue.hasOwnProperty(B)&&(!te||!te.hasOwnProperty(B))&&(I||(I={}),I[B]="");for(B in te)te.hasOwnProperty(B)&&ue[B]!==te[B]&&(I||(I={}),I[B]=te[B])}else I||(y||(y=[]),y.push(A,I)),I=te;else if(A===Uv){var ge=te?te[wk]:void 0,Ce=ue?ue[wk]:void 0;ge!=null&&Ce!==ge&&(y=y||[]).push(A,ge)}else A===th?(typeof te=="string"||typeof te=="number")&&(y=y||[]).push(A,""+te):A===kk||A===hf||(bt.hasOwnProperty(A)?(te!=null&&(typeof te!="function"&&Sk(A,te),A==="onScroll"&&Nr("scroll",e)),!y&&ue!==te&&(y=[])):(y=y||[]).push(A,te))}return I&&(lm(I,x[nh]),(y=y||[]).push(nh,I)),y}function C8(e,t,s,u,p){s==="input"&&p.type==="radio"&&p.name!=null&&F(e,p);var y=ss(s,u),w=ss(s,p);switch(b8(e,t,y,w),s){case"input":W(e,p);break;case"textarea":up(e,p);break;case"select":Id(e,p);break}}function _8(e){{var t=e.toLowerCase();return Nc.hasOwnProperty(t)&&Nc[t]||null}}function x8(e,t,s,u,p,y,w){var x,A;switch(x=ss(t,s),Dk(t,s),t){case"dialog":Nr("cancel",e),Nr("close",e);break;case"iframe":case"object":case"embed":Nr("load",e);break;case"video":case"audio":for(var B=0;B<Iv.length;B++)Nr(Iv[B],e);break;case"source":Nr("error",e);break;case"img":case"image":case"link":Nr("error",e),Nr("load",e);break;case"details":Nr("toggle",e);break;case"input":ro(e,s),Nr("invalid",e);break;case"option":wn(e,s);break;case"select":xl(e,s),Nr("invalid",e);break;case"textarea":jd(e,s),Nr("invalid",e);break}qd(t,s);{A=new Set;for(var I=e.attributes,re=0;re<I.length;re++){var te=I[re].name.toLowerCase();switch(te){case"value":break;case"checked":break;case"selected":break;default:A.add(I[re].name)}}}var ue=null;for(var ge in s)if(s.hasOwnProperty(ge)){var Ce=s[ge];if(ge===th)typeof Ce=="string"?e.textContent!==Ce&&(s[hf]!==!0&&_k(e.textContent,Ce,y,w),ue=[th,Ce]):typeof Ce=="number"&&e.textContent!==""+Ce&&(s[hf]!==!0&&_k(e.textContent,Ce,y,w),ue=[th,""+Ce]);else if(bt.hasOwnProperty(ge))Ce!=null&&(typeof Ce!="function"&&Sk(ge,Ce),ge==="onScroll"&&Nr("scroll",e));else if(w&&typeof x=="boolean"){var tt=void 0,St=ma(ge);if(s[hf]!==!0&&!(ge===kk||ge===hf||ge==="value"||ge==="checked"||ge==="selected")){if(ge===Uv){var Pt=e.innerHTML,hn=Ce?Ce[wk]:void 0;if(hn!=null){var cn=lT(e,hn);cn!==Pt&&Hv(ge,Pt,cn)}}else if(ge===nh){if(A.delete(ge),sT){var se=av(Ce);tt=e.getAttribute("style"),se!==tt&&Hv(ge,tt,se)}}else if(x)A.delete(ge.toLowerCase()),tt=Ci(e,ge,Ce),Ce!==tt&&Hv(ge,tt,Ce);else if(!_n(ge,St,x)&&!bn(ge,Ce,St,x)){var De=!1;if(St!==null)A.delete(St.attributeName),tt=Qi(e,ge,Ce,St);else{var le=u;if(le===li&&(le=dp(t)),le===li)A.delete(ge.toLowerCase());else{var je=_8(ge);je!==null&&je!==ge&&(De=!0,A.delete(je)),A.delete(ge)}tt=Ci(e,ge,Ce)}var ut=X;!ut&&Ce!==tt&&!De&&Hv(ge,tt,Ce)}}}}switch(w&&A.size>0&&s[hf]!==!0&&oT(A),t){case"input":no(e),fe(e,s,!0);break;case"textarea":no(e),Jh(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&xk(e);break}return ue}function E8(e,t,s){var u=e.nodeValue!==t;return u}function Y2(e,t){{if(qo)return;qo=!0,m("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function G2(e,t){{if(qo)return;qo=!0,m('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function K2(e,t,s){{if(qo)return;qo=!0,m("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Q2(e,t){{if(t===""||qo)return;qo=!0,m('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function T8(e,t,s){switch(t){case"input":we(e,s);return;case"textarea":cp(e,s);return;case"select":sp(e,s);return}}var qv=function(){},Vv=function(){};{var A8=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],cT=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],F8=cT.concat(["button"]),$8=["dd","dt","li","option","optgroup","p","rp","rt"],dT={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Vv=function(e,t){var s=Xt({},e||dT),u={tag:t};return cT.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),F8.indexOf(t)!==-1&&(s.pTagInButtonScope=null),A8.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=u,t==="form"&&(s.formTag=u),t==="a"&&(s.aTagInScope=u),t==="button"&&(s.buttonTagInScope=u),t==="nobr"&&(s.nobrTagInScope=u),t==="p"&&(s.pTagInButtonScope=u),t==="li"&&(s.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=u),s};var P8=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return $8.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},N8=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},fT={};qv=function(e,t,s){s=s||dT;var u=s.current,p=u&&u.tag;t!=null&&(e!=null&&m("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var y=P8(e,p)?null:u,w=y?null:N8(e,s),x=y||w;if(x){var A=x.tag,B=!!y+"|"+e+"|"+A;if(!fT[B]){fT[B]=!0;var I=e,re="";if(e==="#text"?/\S/.test(t)?I="Text nodes":(I="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):I="<"+e+">",y){var te="";A==="table"&&e==="tr"&&(te+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),m("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",I,A,re,te)}else m("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",I,A)}}}}var Ek="suppressHydrationWarning",Tk="$",Ak="/$",Wv="$?",Yv="$!",O8="style",X2=null,J2=null;function R8(e){var t,s,u=e.nodeType;switch(u){case ui:case Al:{t=u===ui?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:Tl(null,"");break}default:{var y=u===er?e.parentNode:e,w=y.namespaceURI||null;t=y.tagName,s=Tl(w,t);break}}{var x=t.toLowerCase(),A=Vv(null,x);return{namespace:s,ancestorInfo:A}}}function L8(e,t,s){{var u=e,p=Tl(u.namespace,t),y=Vv(u.ancestorInfo,t);return{namespace:p,ancestorInfo:y}}}function B8(e){X2=wa(),J2=X4();var t=null;return An(!1),t}function M8(e){J4(J2),An(X2),X2=null,J2=null}function I8(e,t,s,u,p){var y;{var w=u;if(qv(e,null,w.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var x=""+t.children,A=Vv(w.ancestorInfo,e);qv(null,x,A)}y=w.namespace}var B=k8(e,t,s,y);return Qv(p,B),oD(B,t),B}function j8(e,t){e.appendChild(t)}function z8(e,t,s,u,p){switch(D8(e,t,s,u),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function U8(e,t,s,u,p,y){{var w=y;if(typeof u.children!=typeof s.children&&(typeof u.children=="string"||typeof u.children=="number")){var x=""+u.children,A=Vv(w.ancestorInfo,t);qv(null,x,A)}}return S8(e,t,s,u)}function Z2(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function H8(e,t,s,u){{var p=s;qv(null,e,p.ancestorInfo)}var y=w8(e,t);return Qv(u,y),y}function q8(){var e=window.event;return e===void 0?tl:Kp(e.type)}var eD=typeof setTimeout=="function"?setTimeout:void 0,V8=typeof clearTimeout=="function"?clearTimeout:void 0,tD=-1,pT=typeof Promise=="function"?Promise:void 0,W8=typeof queueMicrotask=="function"?queueMicrotask:typeof pT<"u"?function(e){return pT.resolve(null).then(e).catch(Y8)}:eD;function Y8(e){setTimeout(function(){throw e})}function G8(e,t,s,u){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function K8(e,t,s,u,p,y){C8(e,t,s,u,p),oD(e,p)}function hT(e){is(e,"")}function Q8(e,t,s){e.nodeValue=s}function X8(e,t){e.appendChild(t)}function J8(e,t){var s;e.nodeType===er?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var u=e._reactRootContainer;u==null&&s.onclick===null&&xk(s)}function Z8(e,t,s){e.insertBefore(t,s)}function e6(e,t,s){e.nodeType===er?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function t6(e,t){e.removeChild(t)}function n6(e,t){e.nodeType===er?e.parentNode.removeChild(t):e.removeChild(t)}function nD(e,t){var s=t,u=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===er){var y=p.data;if(y===Ak)if(u===0){e.removeChild(p),Ju(t);return}else u--;else(y===Tk||y===Wv||y===Yv)&&u++}s=p}while(s);Ju(t)}function r6(e,t){e.nodeType===er?nD(e.parentNode,t):e.nodeType===Jr&&nD(e,t),Ju(e)}function a6(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function i6(e){e.nodeValue=""}function o6(e,t){e=e;var s=t[O8],u=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=Nu("display",u)}function s6(e,t){e.nodeValue=t}function l6(e){e.nodeType===Jr?e.textContent="":e.nodeType===ui&&e.documentElement&&e.removeChild(e.documentElement)}function u6(e,t,s){return e.nodeType!==Jr||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function c6(e,t){return t===""||e.nodeType!==Po?null:e}function d6(e){return e.nodeType!==er?null:e}function mT(e){return e.data===Wv}function rD(e){return e.data===Yv}function f6(e){var t=e.nextSibling&&e.nextSibling.dataset,s,u,p;return t&&(s=t.dgst,u=t.msg,p=t.stck),{message:u,digest:s,stack:p}}function p6(e,t){e._reactRetry=t}function Fk(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Jr||t===Po)break;if(t===er){var s=e.data;if(s===Tk||s===Yv||s===Wv)break;if(s===Ak)return null}}return e}function Gv(e){return Fk(e.nextSibling)}function h6(e){return Fk(e.firstChild)}function m6(e){return Fk(e.firstChild)}function g6(e){return Fk(e.nextSibling)}function v6(e,t,s,u,p,y,w){Qv(y,e),oD(e,s);var x;{var A=p;x=A.namespace}var B=(y.mode&an)!==_t;return x8(e,t,s,x,u,B,w)}function y6(e,t,s,u){return Qv(s,e),s.mode&an,E8(e,t)}function b6(e,t){Qv(t,e)}function k6(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===er){var u=t.data;if(u===Ak){if(s===0)return Gv(t);s--}else(u===Tk||u===Yv||u===Wv)&&s++}t=t.nextSibling}return null}function gT(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===er){var u=t.data;if(u===Tk||u===Yv||u===Wv){if(s===0)return t;s--}else u===Ak&&s++}t=t.previousSibling}return null}function w6(e){Ju(e)}function D6(e){Ju(e)}function S6(e){return e!=="head"&&e!=="body"}function C6(e,t,s,u){var p=!0;_k(t.nodeValue,s,u,p)}function _6(e,t,s,u,p,y){if(t[Ek]!==!0){var w=!0;_k(u.nodeValue,p,y,w)}}function x6(e,t){t.nodeType===Jr?Y2(e,t):t.nodeType===er||G2(e,t)}function E6(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===Jr?Y2(s,t):t.nodeType===er||G2(s,t))}}function T6(e,t,s,u,p){(p||t[Ek]!==!0)&&(u.nodeType===Jr?Y2(s,u):u.nodeType===er||G2(s,u))}function A6(e,t,s){K2(e,t)}function F6(e,t){Q2(e,t)}function $6(e,t,s){{var u=e.parentNode;u!==null&&K2(u,t)}}function P6(e,t){{var s=e.parentNode;s!==null&&Q2(s,t)}}function N6(e,t,s,u,p,y){(y||t[Ek]!==!0)&&K2(s,u)}function O6(e,t,s,u,p){(p||t[Ek]!==!0)&&Q2(s,u)}function R6(e){m("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function L6(e){jv(e)}var Vm=Math.random().toString(36).slice(2),Wm="__reactFiber$"+Vm,aD="__reactProps$"+Vm,Kv="__reactContainer$"+Vm,iD="__reactEvents$"+Vm,B6="__reactListeners$"+Vm,M6="__reactHandles$"+Vm;function I6(e){delete e[Wm],delete e[aD],delete e[iD],delete e[B6],delete e[M6]}function Qv(e,t){t[Wm]=e}function $k(e,t){t[Kv]=e}function vT(e){e[Kv]=null}function Xv(e){return!!e[Kv]}function rh(e){var t=e[Wm];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Kv]||s[Wm],t){var u=t.alternate;if(t.child!==null||u!==null&&u.child!==null)for(var p=gT(e);p!==null;){var y=p[Wm];if(y)return y;p=gT(p)}return t}e=s,s=e.parentNode}return null}function mf(e){var t=e[Wm]||e[Kv];return t&&(t.tag===R||t.tag===j||t.tag===K||t.tag===N)?t:null}function Ym(e){if(e.tag===R||e.tag===j)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Pk(e){return e[aD]||null}function oD(e,t){e[aD]=t}function j6(e){var t=e[iD];return t===void 0&&(t=e[iD]=new Set),t}var yT={},bT=i.ReactDebugCurrentFrame;function Nk(e){if(e){var t=e._owner,s=oi(e.type,e._source,t?t.type:null);bT.setExtraStackFrame(s)}else bT.setExtraStackFrame(null)}function Zl(e,t,s,u,p){{var y=Function.call.bind(Qn);for(var w in e)if(y(e,w)){var x=void 0;try{if(typeof e[w]!="function"){var A=Error((u||"React class")+": "+s+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}x=e[w](t,w,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){x=B}x&&!(x instanceof Error)&&(Nk(p),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,w,typeof x),Nk(null)),x instanceof Error&&!(x.message in yT)&&(yT[x.message]=!0,Nk(p),m("Failed %s type: %s",s,x.message),Nk(null))}}}var sD=[],Ok;Ok=[];var dd=-1;function gf(e){return{current:e}}function zi(e,t){if(dd<0){m("Unexpected pop.");return}t!==Ok[dd]&&m("Unexpected Fiber popped."),e.current=sD[dd],sD[dd]=null,Ok[dd]=null,dd--}function Ui(e,t,s){dd++,sD[dd]=e.current,Ok[dd]=s,e.current=t}var lD;lD={};var Ss={};Object.freeze(Ss);var fd=gf(Ss),oc=gf(!1),uD=Ss;function Gm(e,t,s){return s&&sc(t)?uD:fd.current}function kT(e,t,s){{var u=e.stateNode;u.__reactInternalMemoizedUnmaskedChildContext=t,u.__reactInternalMemoizedMaskedChildContext=s}}function Km(e,t){{var s=e.type,u=s.contextTypes;if(!u)return Ss;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===t)return p.__reactInternalMemoizedMaskedChildContext;var y={};for(var w in u)y[w]=t[w];{var x=Mt(e)||"Unknown";Zl(u,y,"context",x)}return p&&kT(e,t,y),y}}function Rk(){return oc.current}function sc(e){{var t=e.childContextTypes;return t!=null}}function Lk(e){zi(oc,e),zi(fd,e)}function cD(e){zi(oc,e),zi(fd,e)}function wT(e,t,s){{if(fd.current!==Ss)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ui(fd,t,e),Ui(oc,s,e)}}function DT(e,t,s){{var u=e.stateNode,p=t.childContextTypes;if(typeof u.getChildContext!="function"){{var y=Mt(e)||"Unknown";lD[y]||(lD[y]=!0,m("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",y,y))}return s}var w=u.getChildContext();for(var x in w)if(!(x in p))throw new Error((Mt(e)||"Unknown")+'.getChildContext(): key "'+x+'" is not defined in childContextTypes.');{var A=Mt(e)||"Unknown";Zl(p,w,"child context",A)}return Xt({},s,w)}}function Bk(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||Ss;return uD=fd.current,Ui(fd,s,e),Ui(oc,oc.current,e),!0}}function ST(e,t,s){{var u=e.stateNode;if(!u)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=DT(e,t,uD);u.__reactInternalMemoizedMergedChildContext=p,zi(oc,e),zi(fd,e),Ui(fd,p,e),Ui(oc,s,e)}else zi(oc,e),Ui(oc,s,e)}}function z6(e){{if(!Qs(e)||e.tag!==T)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case N:return t.stateNode.context;case T:{var s=t.type;if(sc(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var vf=0,Mk=1,pd=null,dD=!1,fD=!1;function CT(e){pd===null?pd=[e]:pd.push(e)}function U6(e){dD=!0,CT(e)}function _T(){dD&&yf()}function yf(){if(!fD&&pd!==null){fD=!0;var e=0,t=bs();try{var s=!0,u=pd;for(ca(Mi);e<u.length;e++){var p=u[e];do p=p(s);while(p!==null)}pd=null,dD=!1}catch(y){throw pd!==null&&(pd=pd.slice(e+1)),Cp(Yu,yf),y}finally{ca(t),fD=!1}}return null}var Qm=[],Xm=0,Ik=null,jk=0,il=[],ol=0,ah=null,hd=1,md="";function H6(e){return oh(),(e.flags&oo)!==Ct}function q6(e){return oh(),jk}function V6(){var e=md,t=hd,s=t&~W6(t);return s.toString(32)+e}function ih(e,t){oh(),Qm[Xm++]=jk,Qm[Xm++]=Ik,Ik=e,jk=t}function xT(e,t,s){oh(),il[ol++]=hd,il[ol++]=md,il[ol++]=ah,ah=e;var u=hd,p=md,y=zk(u)-1,w=u&~(1<<y),x=s+1,A=zk(t)+y;if(A>30){var B=y-y%5,I=(1<<B)-1,re=(w&I).toString(32),te=w>>B,ue=y-B,ge=zk(t)+ue,Ce=x<<ue,tt=Ce|te,St=re+p;hd=1<<ge|tt,md=St}else{var Pt=x<<y,hn=Pt|w,cn=p;hd=1<<A|hn,md=cn}}function pD(e){oh();var t=e.return;if(t!==null){var s=1,u=0;ih(e,s),xT(e,s,u)}}function zk(e){return 32-Mr(e)}function W6(e){return 1<<zk(e)-1}function hD(e){for(;e===Ik;)Ik=Qm[--Xm],Qm[Xm]=null,jk=Qm[--Xm],Qm[Xm]=null;for(;e===ah;)ah=il[--ol],il[ol]=null,md=il[--ol],il[ol]=null,hd=il[--ol],il[ol]=null}function Y6(){return oh(),ah!==null?{id:hd,overflow:md}:null}function G6(e,t){oh(),il[ol++]=hd,il[ol++]=md,il[ol++]=ah,hd=t.id,md=t.overflow,ah=e}function oh(){pi()||m("Expected to be hydrating. This is a bug in React. Please file an issue.")}var fi=null,sl=null,eu=!1,sh=!1,bf=null;function K6(){eu&&m("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ET(){sh=!0}function Q6(){return sh}function X6(e){var t=e.stateNode.containerInfo;return sl=m6(t),fi=e,eu=!0,bf=null,sh=!1,!0}function J6(e,t,s){return sl=g6(t),fi=e,eu=!0,bf=null,sh=!1,s!==null&&G6(e,s),!0}function TT(e,t){switch(e.tag){case N:{x6(e.stateNode.containerInfo,t);break}case R:{var s=(e.mode&an)!==_t;T6(e.type,e.memoizedProps,e.stateNode,t,s);break}case K:{var u=e.memoizedState;u.dehydrated!==null&&E6(u.dehydrated,t);break}}}function AT(e,t){TT(e,t);var s=nz();s.stateNode=t,s.return=e;var u=e.deletions;u===null?(e.deletions=[s],e.flags|=Pi):u.push(s)}function mD(e,t){{if(sh)return;switch(e.tag){case N:{var s=e.stateNode.containerInfo;switch(t.tag){case R:var u=t.type;t.pendingProps,A6(s,u);break;case j:var p=t.pendingProps;F6(s,p);break}break}case R:{var y=e.type,w=e.memoizedProps,x=e.stateNode;switch(t.tag){case R:{var A=t.type,B=t.pendingProps,I=(e.mode&an)!==_t;N6(y,w,x,A,B,I);break}case j:{var re=t.pendingProps,te=(e.mode&an)!==_t;O6(y,w,x,re,te);break}}break}case K:{var ue=e.memoizedState,ge=ue.dehydrated;if(ge!==null)switch(t.tag){case R:var Ce=t.type;t.pendingProps,$6(ge,Ce);break;case j:var tt=t.pendingProps;P6(ge,tt);break}break}default:return}}}function FT(e,t){t.flags=t.flags&-4097|Fr,mD(e,t)}function $T(e,t){switch(e.tag){case R:{var s=e.type;e.pendingProps;var u=u6(t,s);return u!==null?(e.stateNode=u,fi=e,sl=h6(u),!0):!1}case j:{var p=e.pendingProps,y=c6(t,p);return y!==null?(e.stateNode=y,fi=e,sl=null,!0):!1}case K:{var w=d6(t);if(w!==null){var x={dehydrated:w,treeContext:Y6(),retryLane:lo};e.memoizedState=x;var A=rz(w);return A.return=e,e.child=A,fi=e,sl=null,!0}return!1}default:return!1}}function gD(e){return(e.mode&an)!==_t&&(e.flags&yt)===Ct}function vD(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function yD(e){if(eu){var t=sl;if(!t){gD(e)&&(mD(fi,e),vD()),FT(fi,e),eu=!1,fi=e;return}var s=t;if(!$T(e,t)){gD(e)&&(mD(fi,e),vD()),t=Gv(s);var u=fi;if(!t||!$T(e,t)){FT(fi,e),eu=!1,fi=e;return}AT(u,s)}}}function Z6(e,t,s){var u=e.stateNode,p=!sh,y=v6(u,e.type,e.memoizedProps,t,s,e,p);return e.updateQueue=y,y!==null}function e5(e){var t=e.stateNode,s=e.memoizedProps,u=y6(t,s,e);if(u){var p=fi;if(p!==null)switch(p.tag){case N:{var y=p.stateNode.containerInfo,w=(p.mode&an)!==_t;C6(y,t,s,w);break}case R:{var x=p.type,A=p.memoizedProps,B=p.stateNode,I=(p.mode&an)!==_t;_6(x,A,B,t,s,I);break}}}return u}function t5(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");b6(s,e)}function n5(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return k6(s)}function PT(e){for(var t=e.return;t!==null&&t.tag!==R&&t.tag!==N&&t.tag!==K;)t=t.return;fi=t}function Uk(e){if(e!==fi)return!1;if(!eu)return PT(e),eu=!0,!1;if(e.tag!==N&&(e.tag!==R||S6(e.type)&&!Z2(e.type,e.memoizedProps))){var t=sl;if(t)if(gD(e))NT(e),vD();else for(;t;)AT(e,t),t=Gv(t)}return PT(e),e.tag===K?sl=n5(e):sl=fi?Gv(e.stateNode):null,!0}function r5(){return eu&&sl!==null}function NT(e){for(var t=sl;t;)TT(e,t),t=Gv(t)}function Jm(){fi=null,sl=null,eu=!1,sh=!1}function OT(){bf!==null&&(EF(bf),bf=null)}function pi(){return eu}function bD(e){bf===null?bf=[e]:bf.push(e)}var a5=i.ReactCurrentBatchConfig,i5=null;function o5(){return a5.transition}var tu={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var s5=function(e){for(var t=null,s=e;s!==null;)s.mode&qn&&(t=s),s=s.return;return t},lh=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},Jv=[],Zv=[],ey=[],ty=[],ny=[],ry=[],uh=new Set;tu.recordUnsafeLifecycleWarnings=function(e,t){uh.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Jv.push(e),e.mode&qn&&typeof t.UNSAFE_componentWillMount=="function"&&Zv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ey.push(e),e.mode&qn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&ty.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&ny.push(e),e.mode&qn&&typeof t.UNSAFE_componentWillUpdate=="function"&&ry.push(e))},tu.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Jv.length>0&&(Jv.forEach(function(te){e.add(Mt(te)||"Component"),uh.add(te.type)}),Jv=[]);var t=new Set;Zv.length>0&&(Zv.forEach(function(te){t.add(Mt(te)||"Component"),uh.add(te.type)}),Zv=[]);var s=new Set;ey.length>0&&(ey.forEach(function(te){s.add(Mt(te)||"Component"),uh.add(te.type)}),ey=[]);var u=new Set;ty.length>0&&(ty.forEach(function(te){u.add(Mt(te)||"Component"),uh.add(te.type)}),ty=[]);var p=new Set;ny.length>0&&(ny.forEach(function(te){p.add(Mt(te)||"Component"),uh.add(te.type)}),ny=[]);var y=new Set;if(ry.length>0&&(ry.forEach(function(te){y.add(Mt(te)||"Component"),uh.add(te.type)}),ry=[]),t.size>0){var w=lh(t);m(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
193
|
+
`).replace(g8,"")}function _k(e,t,s,u){var p=Ck(t),y=Ck(e);if(y!==p&&(u&&(qo||(qo=!0,m('Text content did not match. Server: "%s" Client: "%s"',y,p))),s&&Le))throw new Error("Text content does not match server-rendered HTML.")}function uT(e){return e.nodeType===ui?e:e.ownerDocument}function v8(){}function xk(e){e.onclick=v8}function y8(e,t,s,u,p){for(var y in u)if(u.hasOwnProperty(y)){var w=u[y];if(y===nh)w&&Object.freeze(w),om(t,w);else if(y===Uv){var x=w?w[wk]:void 0;x!=null&&zd(t,x)}else if(y===th)if(typeof w=="string"){var A=e!=="textarea"||w!=="";A&&is(t,w)}else typeof w=="number"&&is(t,""+w);else y===kk||y===hf||y===iT||(bt.hasOwnProperty(y)?w!=null&&(typeof w!="function"&&Sk(y,w),y==="onScroll"&&Nr("scroll",t)):w!=null&&lr(t,y,w,p))}}function b8(e,t,s,u){for(var p=0;p<t.length;p+=2){var y=t[p],w=t[p+1];y===nh?om(e,w):y===Uv?zd(e,w):y===th?is(e,w):lr(e,y,w,u)}}function k8(e,t,s,u){var p,y=uT(s),w,x=u;if(x===li&&(x=dp(e)),x===li){if(p=ss(e,t),!p&&e!==e.toLowerCase()&&m("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var A=y.createElement("div");A.innerHTML="<script><\/script>";var B=A.firstChild;w=A.removeChild(B)}else if(typeof t.is=="string")w=y.createElement(e,{is:t.is});else if(w=y.createElement(e),e==="select"){var I=w;t.multiple?I.multiple=!0:t.size&&(I.size=t.size)}}else w=y.createElementNS(x,e);return x===li&&!p&&Object.prototype.toString.call(w)==="[object HTMLUnknownElement]"&&!Qn.call(W2,e)&&(W2[e]=!0,m("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),w}function w8(e,t){return uT(t).createTextNode(e)}function D8(e,t,s,u){var p=ss(t,s);Dk(t,s);var y;switch(t){case"dialog":Nr("cancel",e),Nr("close",e),y=s;break;case"iframe":case"object":case"embed":Nr("load",e),y=s;break;case"video":case"audio":for(var w=0;w<Iv.length;w++)Nr(Iv[w],e);y=s;break;case"source":Nr("error",e),y=s;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),y=s;break;case"details":Nr("toggle",e),y=s;break;case"input":ro(e,s),y=Pu(e,s),Nr("invalid",e);break;case"option":wn(e,s),y=s;break;case"select":xl(e,s),y=Fc(e,s),Nr("invalid",e);break;case"textarea":jd(e,s),y=lp(e,s),Nr("invalid",e);break;default:y=s}switch(qd(t,y),y8(t,e,u,y,p),t){case"input":no(e),fe(e,s,!1);break;case"textarea":no(e),Jh(e);break;case"option":zn(e,s);break;case"select":Md(e,s);break;default:typeof y.onClick=="function"&&xk(e);break}}function S8(e,t,s,u,p){Dk(t,u);var y=null,w,x;switch(t){case"input":w=Pu(e,s),x=Pu(e,u),y=[];break;case"select":w=Fc(e,s),x=Fc(e,u),y=[];break;case"textarea":w=lp(e,s),x=lp(e,u),y=[];break;default:w=s,x=u,typeof w.onClick!="function"&&typeof x.onClick=="function"&&xk(e);break}qd(t,x);var A,B,I=null;for(A in w)if(!(x.hasOwnProperty(A)||!w.hasOwnProperty(A)||w[A]==null))if(A===nh){var re=w[A];for(B in re)re.hasOwnProperty(B)&&(I||(I={}),I[B]="")}else A===Uv||A===th||A===kk||A===hf||A===iT||(bt.hasOwnProperty(A)?y||(y=[]):(y=y||[]).push(A,null));for(A in x){var te=x[A],ue=w!=null?w[A]:void 0;if(!(!x.hasOwnProperty(A)||te===ue||te==null&&ue==null))if(A===nh)if(te&&Object.freeze(te),ue){for(B in ue)ue.hasOwnProperty(B)&&(!te||!te.hasOwnProperty(B))&&(I||(I={}),I[B]="");for(B in te)te.hasOwnProperty(B)&&ue[B]!==te[B]&&(I||(I={}),I[B]=te[B])}else I||(y||(y=[]),y.push(A,I)),I=te;else if(A===Uv){var ge=te?te[wk]:void 0,Ce=ue?ue[wk]:void 0;ge!=null&&Ce!==ge&&(y=y||[]).push(A,ge)}else A===th?(typeof te=="string"||typeof te=="number")&&(y=y||[]).push(A,""+te):A===kk||A===hf||(bt.hasOwnProperty(A)?(te!=null&&(typeof te!="function"&&Sk(A,te),A==="onScroll"&&Nr("scroll",e)),!y&&ue!==te&&(y=[])):(y=y||[]).push(A,te))}return I&&(lm(I,x[nh]),(y=y||[]).push(nh,I)),y}function C8(e,t,s,u,p){s==="input"&&p.type==="radio"&&p.name!=null&&F(e,p);var y=ss(s,u),w=ss(s,p);switch(b8(e,t,y,w),s){case"input":W(e,p);break;case"textarea":up(e,p);break;case"select":Id(e,p);break}}function _8(e){{var t=e.toLowerCase();return Nc.hasOwnProperty(t)&&Nc[t]||null}}function x8(e,t,s,u,p,y,w){var x,A;switch(x=ss(t,s),Dk(t,s),t){case"dialog":Nr("cancel",e),Nr("close",e);break;case"iframe":case"object":case"embed":Nr("load",e);break;case"video":case"audio":for(var B=0;B<Iv.length;B++)Nr(Iv[B],e);break;case"source":Nr("error",e);break;case"img":case"image":case"link":Nr("error",e),Nr("load",e);break;case"details":Nr("toggle",e);break;case"input":ro(e,s),Nr("invalid",e);break;case"option":wn(e,s);break;case"select":xl(e,s),Nr("invalid",e);break;case"textarea":jd(e,s),Nr("invalid",e);break}qd(t,s);{A=new Set;for(var I=e.attributes,re=0;re<I.length;re++){var te=I[re].name.toLowerCase();switch(te){case"value":break;case"checked":break;case"selected":break;default:A.add(I[re].name)}}}var ue=null;for(var ge in s)if(s.hasOwnProperty(ge)){var Ce=s[ge];if(ge===th)typeof Ce=="string"?e.textContent!==Ce&&(s[hf]!==!0&&_k(e.textContent,Ce,y,w),ue=[th,Ce]):typeof Ce=="number"&&e.textContent!==""+Ce&&(s[hf]!==!0&&_k(e.textContent,Ce,y,w),ue=[th,""+Ce]);else if(bt.hasOwnProperty(ge))Ce!=null&&(typeof Ce!="function"&&Sk(ge,Ce),ge==="onScroll"&&Nr("scroll",e));else if(w&&typeof x=="boolean"){var tt=void 0,St=ma(ge);if(s[hf]!==!0&&!(ge===kk||ge===hf||ge==="value"||ge==="checked"||ge==="selected")){if(ge===Uv){var Pt=e.innerHTML,hn=Ce?Ce[wk]:void 0;if(hn!=null){var cn=lT(e,hn);cn!==Pt&&Hv(ge,Pt,cn)}}else if(ge===nh){if(A.delete(ge),sT){var se=av(Ce);tt=e.getAttribute("style"),se!==tt&&Hv(ge,tt,se)}}else if(x)A.delete(ge.toLowerCase()),tt=Ci(e,ge,Ce),Ce!==tt&&Hv(ge,tt,Ce);else if(!_n(ge,St,x)&&!bn(ge,Ce,St,x)){var De=!1;if(St!==null)A.delete(St.attributeName),tt=Qi(e,ge,Ce,St);else{var le=u;if(le===li&&(le=dp(t)),le===li)A.delete(ge.toLowerCase());else{var je=_8(ge);je!==null&&je!==ge&&(De=!0,A.delete(je)),A.delete(ge)}tt=Ci(e,ge,Ce)}var ut=X;!ut&&Ce!==tt&&!De&&Hv(ge,tt,Ce)}}}}switch(w&&A.size>0&&s[hf]!==!0&&oT(A),t){case"input":no(e),fe(e,s,!0);break;case"textarea":no(e),Jh(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&xk(e);break}return ue}function E8(e,t,s){var u=e.nodeValue!==t;return u}function Y2(e,t){{if(qo)return;qo=!0,m("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function G2(e,t){{if(qo)return;qo=!0,m('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function K2(e,t,s){{if(qo)return;qo=!0,m("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Q2(e,t){{if(t===""||qo)return;qo=!0,m('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function T8(e,t,s){switch(t){case"input":we(e,s);return;case"textarea":cp(e,s);return;case"select":sp(e,s);return}}var qv=function(){},Vv=function(){};{var A8=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],cT=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],F8=cT.concat(["button"]),$8=["dd","dt","li","option","optgroup","p","rp","rt"],dT={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Vv=function(e,t){var s=Xt({},e||dT),u={tag:t};return cT.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),F8.indexOf(t)!==-1&&(s.pTagInButtonScope=null),A8.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=u,t==="form"&&(s.formTag=u),t==="a"&&(s.aTagInScope=u),t==="button"&&(s.buttonTagInScope=u),t==="nobr"&&(s.nobrTagInScope=u),t==="p"&&(s.pTagInButtonScope=u),t==="li"&&(s.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=u),s};var P8=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return $8.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},N8=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},fT={};qv=function(e,t,s){s=s||dT;var u=s.current,p=u&&u.tag;t!=null&&(e!=null&&m("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var y=P8(e,p)?null:u,w=y?null:N8(e,s),x=y||w;if(x){var A=x.tag,B=!!y+"|"+e+"|"+A;if(!fT[B]){fT[B]=!0;var I=e,re="";if(e==="#text"?/\S/.test(t)?I="Text nodes":(I="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):I="<"+e+">",y){var te="";A==="table"&&e==="tr"&&(te+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),m("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",I,A,re,te)}else m("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",I,A)}}}}var Ek="suppressHydrationWarning",Tk="$",Ak="/$",Wv="$?",Yv="$!",O8="style",X2=null,J2=null;function R8(e){var t,s,u=e.nodeType;switch(u){case ui:case Al:{t=u===ui?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:Tl(null,"");break}default:{var y=u===er?e.parentNode:e,w=y.namespaceURI||null;t=y.tagName,s=Tl(w,t);break}}{var x=t.toLowerCase(),A=Vv(null,x);return{namespace:s,ancestorInfo:A}}}function L8(e,t,s){{var u=e,p=Tl(u.namespace,t),y=Vv(u.ancestorInfo,t);return{namespace:p,ancestorInfo:y}}}function B8(e){X2=wa(),J2=X4();var t=null;return An(!1),t}function M8(e){J4(J2),An(X2),X2=null,J2=null}function I8(e,t,s,u,p){var y;{var w=u;if(qv(e,null,w.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var x=""+t.children,A=Vv(w.ancestorInfo,e);qv(null,x,A)}y=w.namespace}var B=k8(e,t,s,y);return Qv(p,B),oD(B,t),B}function j8(e,t){e.appendChild(t)}function z8(e,t,s,u,p){switch(D8(e,t,s,u),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function U8(e,t,s,u,p,y){{var w=y;if(typeof u.children!=typeof s.children&&(typeof u.children=="string"||typeof u.children=="number")){var x=""+u.children,A=Vv(w.ancestorInfo,t);qv(null,x,A)}}return S8(e,t,s,u)}function Z2(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function H8(e,t,s,u){{var p=s;qv(null,e,p.ancestorInfo)}var y=w8(e,t);return Qv(u,y),y}function q8(){var e=window.event;return e===void 0?tl:Kp(e.type)}var eD=typeof setTimeout=="function"?setTimeout:void 0,V8=typeof clearTimeout=="function"?clearTimeout:void 0,tD=-1,pT=typeof Promise=="function"?Promise:void 0,W8=typeof queueMicrotask=="function"?queueMicrotask:typeof pT<"u"?function(e){return pT.resolve(null).then(e).catch(Y8)}:eD;function Y8(e){setTimeout(function(){throw e})}function G8(e,t,s,u){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function K8(e,t,s,u,p,y){C8(e,t,s,u,p),oD(e,p)}function hT(e){is(e,"")}function Q8(e,t,s){e.nodeValue=s}function X8(e,t){e.appendChild(t)}function J8(e,t){var s;e.nodeType===er?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var u=e._reactRootContainer;u==null&&s.onclick===null&&xk(s)}function Z8(e,t,s){e.insertBefore(t,s)}function e6(e,t,s){e.nodeType===er?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function t6(e,t){e.removeChild(t)}function n6(e,t){e.nodeType===er?e.parentNode.removeChild(t):e.removeChild(t)}function nD(e,t){var s=t,u=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===er){var y=p.data;if(y===Ak)if(u===0){e.removeChild(p),Ju(t);return}else u--;else(y===Tk||y===Wv||y===Yv)&&u++}s=p}while(s);Ju(t)}function r6(e,t){e.nodeType===er?nD(e.parentNode,t):e.nodeType===Jr&&nD(e,t),Ju(e)}function a6(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function i6(e){e.nodeValue=""}function o6(e,t){e=e;var s=t[O8],u=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=Nu("display",u)}function s6(e,t){e.nodeValue=t}function l6(e){e.nodeType===Jr?e.textContent="":e.nodeType===ui&&e.documentElement&&e.removeChild(e.documentElement)}function u6(e,t,s){return e.nodeType!==Jr||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function c6(e,t){return t===""||e.nodeType!==Po?null:e}function d6(e){return e.nodeType!==er?null:e}function mT(e){return e.data===Wv}function rD(e){return e.data===Yv}function f6(e){var t=e.nextSibling&&e.nextSibling.dataset,s,u,p;return t&&(s=t.dgst,u=t.msg,p=t.stck),{message:u,digest:s,stack:p}}function p6(e,t){e._reactRetry=t}function Fk(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Jr||t===Po)break;if(t===er){var s=e.data;if(s===Tk||s===Yv||s===Wv)break;if(s===Ak)return null}}return e}function Gv(e){return Fk(e.nextSibling)}function h6(e){return Fk(e.firstChild)}function m6(e){return Fk(e.firstChild)}function g6(e){return Fk(e.nextSibling)}function v6(e,t,s,u,p,y,w){Qv(y,e),oD(e,s);var x;{var A=p;x=A.namespace}var B=(y.mode&an)!==_t;return x8(e,t,s,x,u,B,w)}function y6(e,t,s,u){return Qv(s,e),s.mode&an,E8(e,t)}function b6(e,t){Qv(t,e)}function k6(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===er){var u=t.data;if(u===Ak){if(s===0)return Gv(t);s--}else(u===Tk||u===Yv||u===Wv)&&s++}t=t.nextSibling}return null}function gT(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===er){var u=t.data;if(u===Tk||u===Yv||u===Wv){if(s===0)return t;s--}else u===Ak&&s++}t=t.previousSibling}return null}function w6(e){Ju(e)}function D6(e){Ju(e)}function S6(e){return e!=="head"&&e!=="body"}function C6(e,t,s,u){var p=!0;_k(t.nodeValue,s,u,p)}function _6(e,t,s,u,p,y){if(t[Ek]!==!0){var w=!0;_k(u.nodeValue,p,y,w)}}function x6(e,t){t.nodeType===Jr?Y2(e,t):t.nodeType===er||G2(e,t)}function E6(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===Jr?Y2(s,t):t.nodeType===er||G2(s,t))}}function T6(e,t,s,u,p){(p||t[Ek]!==!0)&&(u.nodeType===Jr?Y2(s,u):u.nodeType===er||G2(s,u))}function A6(e,t,s){K2(e,t)}function F6(e,t){Q2(e,t)}function $6(e,t,s){{var u=e.parentNode;u!==null&&K2(u,t)}}function P6(e,t){{var s=e.parentNode;s!==null&&Q2(s,t)}}function N6(e,t,s,u,p,y){(y||t[Ek]!==!0)&&K2(s,u)}function O6(e,t,s,u,p){(p||t[Ek]!==!0)&&Q2(s,u)}function R6(e){m("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function L6(e){jv(e)}var Vm=Math.random().toString(36).slice(2),Wm="__reactFiber$"+Vm,aD="__reactProps$"+Vm,Kv="__reactContainer$"+Vm,iD="__reactEvents$"+Vm,B6="__reactListeners$"+Vm,M6="__reactHandles$"+Vm;function I6(e){delete e[Wm],delete e[aD],delete e[iD],delete e[B6],delete e[M6]}function Qv(e,t){t[Wm]=e}function $k(e,t){t[Kv]=e}function vT(e){e[Kv]=null}function Xv(e){return!!e[Kv]}function rh(e){var t=e[Wm];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Kv]||s[Wm],t){var u=t.alternate;if(t.child!==null||u!==null&&u.child!==null)for(var p=gT(e);p!==null;){var y=p[Wm];if(y)return y;p=gT(p)}return t}e=s,s=e.parentNode}return null}function mf(e){var t=e[Wm]||e[Kv];return t&&(t.tag===R||t.tag===j||t.tag===K||t.tag===N)?t:null}function Ym(e){if(e.tag===R||e.tag===j)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Pk(e){return e[aD]||null}function oD(e,t){e[aD]=t}function j6(e){var t=e[iD];return t===void 0&&(t=e[iD]=new Set),t}var yT={},bT=i.ReactDebugCurrentFrame;function Nk(e){if(e){var t=e._owner,s=oi(e.type,e._source,t?t.type:null);bT.setExtraStackFrame(s)}else bT.setExtraStackFrame(null)}function Zl(e,t,s,u,p){{var y=Function.call.bind(Qn);for(var w in e)if(y(e,w)){var x=void 0;try{if(typeof e[w]!="function"){var A=Error((u||"React class")+": "+s+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}x=e[w](t,w,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){x=B}x&&!(x instanceof Error)&&(Nk(p),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,w,typeof x),Nk(null)),x instanceof Error&&!(x.message in yT)&&(yT[x.message]=!0,Nk(p),m("Failed %s type: %s",s,x.message),Nk(null))}}}var sD=[],Ok;Ok=[];var dd=-1;function gf(e){return{current:e}}function zi(e,t){if(dd<0){m("Unexpected pop.");return}t!==Ok[dd]&&m("Unexpected Fiber popped."),e.current=sD[dd],sD[dd]=null,Ok[dd]=null,dd--}function Ui(e,t,s){dd++,sD[dd]=e.current,Ok[dd]=s,e.current=t}var lD;lD={};var Ss={};Object.freeze(Ss);var fd=gf(Ss),oc=gf(!1),uD=Ss;function Gm(e,t,s){return s&&sc(t)?uD:fd.current}function kT(e,t,s){{var u=e.stateNode;u.__reactInternalMemoizedUnmaskedChildContext=t,u.__reactInternalMemoizedMaskedChildContext=s}}function Km(e,t){{var s=e.type,u=s.contextTypes;if(!u)return Ss;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===t)return p.__reactInternalMemoizedMaskedChildContext;var y={};for(var w in u)y[w]=t[w];{var x=Mt(e)||"Unknown";Zl(u,y,"context",x)}return p&&kT(e,t,y),y}}function Rk(){return oc.current}function sc(e){{var t=e.childContextTypes;return t!=null}}function Lk(e){zi(oc,e),zi(fd,e)}function cD(e){zi(oc,e),zi(fd,e)}function wT(e,t,s){{if(fd.current!==Ss)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ui(fd,t,e),Ui(oc,s,e)}}function DT(e,t,s){{var u=e.stateNode,p=t.childContextTypes;if(typeof u.getChildContext!="function"){{var y=Mt(e)||"Unknown";lD[y]||(lD[y]=!0,m("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",y,y))}return s}var w=u.getChildContext();for(var x in w)if(!(x in p))throw new Error((Mt(e)||"Unknown")+'.getChildContext(): key "'+x+'" is not defined in childContextTypes.');{var A=Mt(e)||"Unknown";Zl(p,w,"child context",A)}return Xt({},s,w)}}function Bk(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||Ss;return uD=fd.current,Ui(fd,s,e),Ui(oc,oc.current,e),!0}}function ST(e,t,s){{var u=e.stateNode;if(!u)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=DT(e,t,uD);u.__reactInternalMemoizedMergedChildContext=p,zi(oc,e),zi(fd,e),Ui(fd,p,e),Ui(oc,s,e)}else zi(oc,e),Ui(oc,s,e)}}function z6(e){{if(!Qs(e)||e.tag!==T)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case N:return t.stateNode.context;case T:{var s=t.type;if(sc(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var vf=0,Mk=1,pd=null,dD=!1,fD=!1;function CT(e){pd===null?pd=[e]:pd.push(e)}function U6(e){dD=!0,CT(e)}function _T(){dD&&yf()}function yf(){if(!fD&&pd!==null){fD=!0;var e=0,t=bs();try{var s=!0,u=pd;for(ca(Mi);e<u.length;e++){var p=u[e];do p=p(s);while(p!==null)}pd=null,dD=!1}catch(y){throw pd!==null&&(pd=pd.slice(e+1)),Cp(Yu,yf),y}finally{ca(t),fD=!1}}return null}var Qm=[],Xm=0,Ik=null,jk=0,il=[],ol=0,ah=null,hd=1,md="";function H6(e){return oh(),(e.flags&oo)!==Ct}function q6(e){return oh(),jk}function V6(){var e=md,t=hd,s=t&~W6(t);return s.toString(32)+e}function ih(e,t){oh(),Qm[Xm++]=jk,Qm[Xm++]=Ik,Ik=e,jk=t}function xT(e,t,s){oh(),il[ol++]=hd,il[ol++]=md,il[ol++]=ah,ah=e;var u=hd,p=md,y=zk(u)-1,w=u&~(1<<y),x=s+1,A=zk(t)+y;if(A>30){var B=y-y%5,I=(1<<B)-1,re=(w&I).toString(32),te=w>>B,ue=y-B,ge=zk(t)+ue,Ce=x<<ue,tt=Ce|te,St=re+p;hd=1<<ge|tt,md=St}else{var Pt=x<<y,hn=Pt|w,cn=p;hd=1<<A|hn,md=cn}}function pD(e){oh();var t=e.return;if(t!==null){var s=1,u=0;ih(e,s),xT(e,s,u)}}function zk(e){return 32-Mr(e)}function W6(e){return 1<<zk(e)-1}function hD(e){for(;e===Ik;)Ik=Qm[--Xm],Qm[Xm]=null,jk=Qm[--Xm],Qm[Xm]=null;for(;e===ah;)ah=il[--ol],il[ol]=null,md=il[--ol],il[ol]=null,hd=il[--ol],il[ol]=null}function Y6(){return oh(),ah!==null?{id:hd,overflow:md}:null}function G6(e,t){oh(),il[ol++]=hd,il[ol++]=md,il[ol++]=ah,hd=t.id,md=t.overflow,ah=e}function oh(){pi()||m("Expected to be hydrating. This is a bug in React. Please file an issue.")}var fi=null,sl=null,eu=!1,sh=!1,bf=null;function K6(){eu&&m("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ET(){sh=!0}function Q6(){return sh}function X6(e){var t=e.stateNode.containerInfo;return sl=m6(t),fi=e,eu=!0,bf=null,sh=!1,!0}function J6(e,t,s){return sl=g6(t),fi=e,eu=!0,bf=null,sh=!1,s!==null&&G6(e,s),!0}function TT(e,t){switch(e.tag){case N:{x6(e.stateNode.containerInfo,t);break}case R:{var s=(e.mode&an)!==_t;T6(e.type,e.memoizedProps,e.stateNode,t,s);break}case K:{var u=e.memoizedState;u.dehydrated!==null&&E6(u.dehydrated,t);break}}}function AT(e,t){TT(e,t);var s=n7();s.stateNode=t,s.return=e;var u=e.deletions;u===null?(e.deletions=[s],e.flags|=Pi):u.push(s)}function mD(e,t){{if(sh)return;switch(e.tag){case N:{var s=e.stateNode.containerInfo;switch(t.tag){case R:var u=t.type;t.pendingProps,A6(s,u);break;case j:var p=t.pendingProps;F6(s,p);break}break}case R:{var y=e.type,w=e.memoizedProps,x=e.stateNode;switch(t.tag){case R:{var A=t.type,B=t.pendingProps,I=(e.mode&an)!==_t;N6(y,w,x,A,B,I);break}case j:{var re=t.pendingProps,te=(e.mode&an)!==_t;O6(y,w,x,re,te);break}}break}case K:{var ue=e.memoizedState,ge=ue.dehydrated;if(ge!==null)switch(t.tag){case R:var Ce=t.type;t.pendingProps,$6(ge,Ce);break;case j:var tt=t.pendingProps;P6(ge,tt);break}break}default:return}}}function FT(e,t){t.flags=t.flags&-4097|Fr,mD(e,t)}function $T(e,t){switch(e.tag){case R:{var s=e.type;e.pendingProps;var u=u6(t,s);return u!==null?(e.stateNode=u,fi=e,sl=h6(u),!0):!1}case j:{var p=e.pendingProps,y=c6(t,p);return y!==null?(e.stateNode=y,fi=e,sl=null,!0):!1}case K:{var w=d6(t);if(w!==null){var x={dehydrated:w,treeContext:Y6(),retryLane:lo};e.memoizedState=x;var A=r7(w);return A.return=e,e.child=A,fi=e,sl=null,!0}return!1}default:return!1}}function gD(e){return(e.mode&an)!==_t&&(e.flags&yt)===Ct}function vD(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function yD(e){if(eu){var t=sl;if(!t){gD(e)&&(mD(fi,e),vD()),FT(fi,e),eu=!1,fi=e;return}var s=t;if(!$T(e,t)){gD(e)&&(mD(fi,e),vD()),t=Gv(s);var u=fi;if(!t||!$T(e,t)){FT(fi,e),eu=!1,fi=e;return}AT(u,s)}}}function Z6(e,t,s){var u=e.stateNode,p=!sh,y=v6(u,e.type,e.memoizedProps,t,s,e,p);return e.updateQueue=y,y!==null}function e5(e){var t=e.stateNode,s=e.memoizedProps,u=y6(t,s,e);if(u){var p=fi;if(p!==null)switch(p.tag){case N:{var y=p.stateNode.containerInfo,w=(p.mode&an)!==_t;C6(y,t,s,w);break}case R:{var x=p.type,A=p.memoizedProps,B=p.stateNode,I=(p.mode&an)!==_t;_6(x,A,B,t,s,I);break}}}return u}function t5(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");b6(s,e)}function n5(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return k6(s)}function PT(e){for(var t=e.return;t!==null&&t.tag!==R&&t.tag!==N&&t.tag!==K;)t=t.return;fi=t}function Uk(e){if(e!==fi)return!1;if(!eu)return PT(e),eu=!0,!1;if(e.tag!==N&&(e.tag!==R||S6(e.type)&&!Z2(e.type,e.memoizedProps))){var t=sl;if(t)if(gD(e))NT(e),vD();else for(;t;)AT(e,t),t=Gv(t)}return PT(e),e.tag===K?sl=n5(e):sl=fi?Gv(e.stateNode):null,!0}function r5(){return eu&&sl!==null}function NT(e){for(var t=sl;t;)TT(e,t),t=Gv(t)}function Jm(){fi=null,sl=null,eu=!1,sh=!1}function OT(){bf!==null&&(EF(bf),bf=null)}function pi(){return eu}function bD(e){bf===null?bf=[e]:bf.push(e)}var a5=i.ReactCurrentBatchConfig,i5=null;function o5(){return a5.transition}var tu={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var s5=function(e){for(var t=null,s=e;s!==null;)s.mode&qn&&(t=s),s=s.return;return t},lh=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},Jv=[],Zv=[],ey=[],ty=[],ny=[],ry=[],uh=new Set;tu.recordUnsafeLifecycleWarnings=function(e,t){uh.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Jv.push(e),e.mode&qn&&typeof t.UNSAFE_componentWillMount=="function"&&Zv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ey.push(e),e.mode&qn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&ty.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&ny.push(e),e.mode&qn&&typeof t.UNSAFE_componentWillUpdate=="function"&&ry.push(e))},tu.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Jv.length>0&&(Jv.forEach(function(te){e.add(Mt(te)||"Component"),uh.add(te.type)}),Jv=[]);var t=new Set;Zv.length>0&&(Zv.forEach(function(te){t.add(Mt(te)||"Component"),uh.add(te.type)}),Zv=[]);var s=new Set;ey.length>0&&(ey.forEach(function(te){s.add(Mt(te)||"Component"),uh.add(te.type)}),ey=[]);var u=new Set;ty.length>0&&(ty.forEach(function(te){u.add(Mt(te)||"Component"),uh.add(te.type)}),ty=[]);var p=new Set;ny.length>0&&(ny.forEach(function(te){p.add(Mt(te)||"Component"),uh.add(te.type)}),ny=[]);var y=new Set;if(ry.length>0&&(ry.forEach(function(te){y.add(Mt(te)||"Component"),uh.add(te.type)}),ry=[]),t.size>0){var w=lh(t);m(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
194
194
|
|
|
195
195
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
196
196
|
|
|
@@ -229,7 +229,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}
|
|
|
229
229
|
1. You may be adding a ref to a function component
|
|
230
230
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
231
231
|
3. You have multiple copies of React loaded
|
|
232
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return u}function qk(e,t){var s=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function Vk(e){{var t=Mt(e)||"Component";if(CD[t])return;CD[t]=!0,m("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function BT(e){var t=e._payload,s=e._init;return s(t)}function MT(e){function t(se,De){if(e){var le=se.deletions;le===null?(se.deletions=[De],se.flags|=Pi):le.push(De)}}function s(se,De){if(!e)return null;for(var le=De;le!==null;)t(se,le),le=le.sibling;return null}function u(se,De){for(var le=new Map,je=De;je!==null;)je.key!==null?le.set(je.key,je):le.set(je.index,je),je=je.sibling;return le}function p(se,De){var le=yh(se,De);return le.index=0,le.sibling=null,le}function y(se,De,le){if(se.index=le,!e)return se.flags|=oo,De;var je=se.alternate;if(je!==null){var ut=je.index;return ut<De?(se.flags|=Fr,De):ut}else return se.flags|=Fr,De}function w(se){return e&&se.alternate===null&&(se.flags|=Fr),se}function x(se,De,le,je){if(De===null||De.tag!==j){var ut=bC(le,se.mode,je);return ut.return=se,ut}else{var it=p(De,le);return it.return=se,it}}function A(se,De,le,je){var ut=le.type;if(ut===_o)return I(se,De,le.props.children,je,le.key);if(De!==null&&(De.elementType===ut||HF(De,le)||typeof ut=="object"&&ut!==null&&ut.$$typeof===jt&&BT(ut)===De.type)){var it=p(De,le.props);return it.ref=ay(se,De,le),it.return=se,it._debugSource=le._source,it._debugOwner=le._owner,it}var It=yC(le,se.mode,je);return It.ref=ay(se,De,le),It.return=se,It}function B(se,De,le,je){if(De===null||De.tag!==O||De.stateNode.containerInfo!==le.containerInfo||De.stateNode.implementation!==le.implementation){var ut=kC(le,se.mode,je);return ut.return=se,ut}else{var it=p(De,le.children||[]);return it.return=se,it}}function I(se,De,le,je,ut){if(De===null||De.tag!==Q){var it=Ff(le,se.mode,je,ut);return it.return=se,it}else{var It=p(De,le);return It.return=se,It}}function re(se,De,le){if(typeof De=="string"&&De!==""||typeof De=="number"){var je=bC(""+De,se.mode,le);return je.return=se,je}if(typeof De=="object"&&De!==null){switch(De.$$typeof){case Ea:{var ut=yC(De,se.mode,le);return ut.ref=ay(se,null,De),ut.return=se,ut}case oa:{var it=kC(De,se.mode,le);return it.return=se,it}case jt:{var It=De._payload,Qt=De._init;return re(se,Qt(It),le)}}if(Yt(De)||Et(De)){var rr=Ff(De,se.mode,le,null);return rr.return=se,rr}qk(se,De)}return typeof De=="function"&&Vk(se),null}function te(se,De,le,je){var ut=De!==null?De.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return ut!==null?null:x(se,De,""+le,je);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case Ea:return le.key===ut?A(se,De,le,je):null;case oa:return le.key===ut?B(se,De,le,je):null;case jt:{var it=le._payload,It=le._init;return te(se,De,It(it),je)}}if(Yt(le)||Et(le))return ut!==null?null:I(se,De,le,je,null);qk(se,le)}return typeof le=="function"&&Vk(se),null}function ue(se,De,le,je,ut){if(typeof je=="string"&&je!==""||typeof je=="number"){var it=se.get(le)||null;return x(De,it,""+je,ut)}if(typeof je=="object"&&je!==null){switch(je.$$typeof){case Ea:{var It=se.get(je.key===null?le:je.key)||null;return A(De,It,je,ut)}case oa:{var Qt=se.get(je.key===null?le:je.key)||null;return B(De,Qt,je,ut)}case jt:var rr=je._payload,Ln=je._init;return ue(se,De,le,Ln(rr),ut)}if(Yt(je)||Et(je)){var fa=se.get(le)||null;return I(De,fa,je,ut,null)}qk(De,je)}return typeof je=="function"&&Vk(De),null}function ge(se,De,le){{if(typeof se!="object"||se===null)return De;switch(se.$$typeof){case Ea:case oa:LT(se,le);var je=se.key;if(typeof je!="string")break;if(De===null){De=new Set,De.add(je);break}if(!De.has(je)){De.add(je);break}m("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",je);break;case jt:var ut=se._payload,it=se._init;ge(it(ut),De,le);break}}return De}function Ce(se,De,le,je){for(var ut=null,it=0;it<le.length;it++){var It=le[it];ut=ge(It,ut,se)}for(var Qt=null,rr=null,Ln=De,fa=0,Bn=0,ra=null;Ln!==null&&Bn<le.length;Bn++){Ln.index>Bn?(ra=Ln,Ln=null):ra=Ln.sibling;var qi=te(se,Ln,le[Bn],je);if(qi===null){Ln===null&&(Ln=ra);break}e&&Ln&&qi.alternate===null&&t(se,Ln),fa=y(qi,fa,Bn),rr===null?Qt=qi:rr.sibling=qi,rr=qi,Ln=ra}if(Bn===le.length){if(s(se,Ln),pi()){var ki=Bn;ih(se,ki)}return Qt}if(Ln===null){for(;Bn<le.length;Bn++){var _s=re(se,le[Bn],je);_s!==null&&(fa=y(_s,fa,Bn),rr===null?Qt=_s:rr.sibling=_s,rr=_s)}if(pi()){var mo=Bn;ih(se,mo)}return Qt}for(var go=u(se,Ln);Bn<le.length;Bn++){var Vi=ue(go,se,Bn,le[Bn],je);Vi!==null&&(e&&Vi.alternate!==null&&go.delete(Vi.key===null?Bn:Vi.key),fa=y(Vi,fa,Bn),rr===null?Qt=Vi:rr.sibling=Vi,rr=Vi)}if(e&&go.forEach(function(vg){return t(se,vg)}),pi()){var Dd=Bn;ih(se,Dd)}return Qt}function tt(se,De,le,je){var ut=Et(le);if(typeof ut!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&le[Symbol.toStringTag]==="Generator"&&(wD||m("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),wD=!0),le.entries===ut&&(kD||m("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kD=!0);var it=ut.call(le);if(it)for(var It=null,Qt=it.next();!Qt.done;Qt=it.next()){var rr=Qt.value;It=ge(rr,It,se)}}var Ln=ut.call(le);if(Ln==null)throw new Error("An iterable object provided no iterator.");for(var fa=null,Bn=null,ra=De,qi=0,ki=0,_s=null,mo=Ln.next();ra!==null&&!mo.done;ki++,mo=Ln.next()){ra.index>ki?(_s=ra,ra=null):_s=ra.sibling;var go=te(se,ra,mo.value,je);if(go===null){ra===null&&(ra=_s);break}e&&ra&&go.alternate===null&&t(se,ra),qi=y(go,qi,ki),Bn===null?fa=go:Bn.sibling=go,Bn=go,ra=_s}if(mo.done){if(s(se,ra),pi()){var Vi=ki;ih(se,Vi)}return fa}if(ra===null){for(;!mo.done;ki++,mo=Ln.next()){var Dd=re(se,mo.value,je);Dd!==null&&(qi=y(Dd,qi,ki),Bn===null?fa=Dd:Bn.sibling=Dd,Bn=Dd)}if(pi()){var vg=ki;ih(se,vg)}return fa}for(var Ry=u(se,ra);!mo.done;ki++,mo=Ln.next()){var mc=ue(Ry,se,ki,mo.value,je);mc!==null&&(e&&mc.alternate!==null&&Ry.delete(mc.key===null?ki:mc.key),qi=y(mc,qi,ki),Bn===null?fa=mc:Bn.sibling=mc,Bn=mc)}if(e&&Ry.forEach(function(Oz){return t(se,Oz)}),pi()){var Nz=ki;ih(se,Nz)}return fa}function St(se,De,le,je){if(De!==null&&De.tag===j){s(se,De.sibling);var ut=p(De,le);return ut.return=se,ut}s(se,De);var it=bC(le,se.mode,je);return it.return=se,it}function Pt(se,De,le,je){for(var ut=le.key,it=De;it!==null;){if(it.key===ut){var It=le.type;if(It===_o){if(it.tag===Q){s(se,it.sibling);var Qt=p(it,le.props.children);return Qt.return=se,Qt._debugSource=le._source,Qt._debugOwner=le._owner,Qt}}else if(it.elementType===It||HF(it,le)||typeof It=="object"&&It!==null&&It.$$typeof===jt&&BT(It)===it.type){s(se,it.sibling);var rr=p(it,le.props);return rr.ref=ay(se,it,le),rr.return=se,rr._debugSource=le._source,rr._debugOwner=le._owner,rr}s(se,it);break}else t(se,it);it=it.sibling}if(le.type===_o){var Ln=Ff(le.props.children,se.mode,je,le.key);return Ln.return=se,Ln}else{var fa=yC(le,se.mode,je);return fa.ref=ay(se,De,le),fa.return=se,fa}}function hn(se,De,le,je){for(var ut=le.key,it=De;it!==null;){if(it.key===ut)if(it.tag===O&&it.stateNode.containerInfo===le.containerInfo&&it.stateNode.implementation===le.implementation){s(se,it.sibling);var It=p(it,le.children||[]);return It.return=se,It}else{s(se,it);break}else t(se,it);it=it.sibling}var Qt=kC(le,se.mode,je);return Qt.return=se,Qt}function cn(se,De,le,je){var ut=typeof le=="object"&&le!==null&&le.type===_o&&le.key===null;if(ut&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case Ea:return w(Pt(se,De,le,je));case oa:return w(hn(se,De,le,je));case jt:var it=le._payload,It=le._init;return cn(se,De,It(it),je)}if(Yt(le))return Ce(se,De,le,je);if(Et(le))return tt(se,De,le,je);qk(se,le)}return typeof le=="string"&&le!==""||typeof le=="number"?w(St(se,De,""+le,je)):(typeof le=="function"&&Vk(se),s(se,De))}return cn}var Zm=MT(!0),IT=MT(!1);function u5(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var s=t.child,u=yh(s,s.pendingProps);for(t.child=u,u.return=t;s.sibling!==null;)s=s.sibling,u=u.sibling=yh(s,s.pendingProps),u.return=t;u.sibling=null}}function c5(e,t){for(var s=e.child;s!==null;)X7(s,t),s=s.sibling}var _D=gf(null),xD;xD={};var Wk=null,eg=null,ED=null,Yk=!1;function Gk(){Wk=null,eg=null,ED=null,Yk=!1}function jT(){Yk=!0}function zT(){Yk=!1}function UT(e,t,s){Ui(_D,t._currentValue,e),t._currentValue=s,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==xD&&m("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=xD}function TD(e,t){var s=_D.current;zi(_D,t),e._currentValue=s}function AD(e,t,s){for(var u=e;u!==null;){var p=u.alternate;if(ed(u.childLanes,t)?p!==null&&!ed(p.childLanes,t)&&(p.childLanes=Zt(p.childLanes,t)):(u.childLanes=Zt(u.childLanes,t),p!==null&&(p.childLanes=Zt(p.childLanes,t))),u===s)break;u=u.return}u!==s&&m("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function d5(e,t,s){f5(e,t,s)}function f5(e,t,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var p=void 0,y=u.dependencies;if(y!==null){p=u.child;for(var w=y.firstContext;w!==null;){if(w.context===t){if(u.tag===T){var x=zp(s),A=gd(dr,x);A.tag=Qk;var B=u.updateQueue;if(B!==null){var I=B.shared,re=I.pending;re===null?A.next=A:(A.next=re.next,re.next=A),I.pending=A}}u.lanes=Zt(u.lanes,s);var te=u.alternate;te!==null&&(te.lanes=Zt(te.lanes,s)),AD(u.return,s,e),y.lanes=Zt(y.lanes,s);break}w=w.next}}else if(u.tag===V)p=u.type===e.type?null:u.child;else if(u.tag===Ge){var ue=u.return;if(ue===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ue.lanes=Zt(ue.lanes,s);var ge=ue.alternate;ge!==null&&(ge.lanes=Zt(ge.lanes,s)),AD(ue,s,e),p=u.sibling}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===e){p=null;break}var Ce=p.sibling;if(Ce!==null){Ce.return=p.return,p=Ce;break}p=p.return}u=p}}function tg(e,t){Wk=e,eg=null,ED=null;var s=e.dependencies;if(s!==null){var u=s.firstContext;u!==null&&(Bi(s.lanes,t)&&by(),s.firstContext=null)}}function Sa(e){Yk&&m("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(ED!==e){var s={context:e,memoizedValue:t,next:null};if(eg===null){if(Wk===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");eg=s,Wk.dependencies={lanes:E,firstContext:s}}else eg=eg.next=s}return t}var ch=null;function FD(e){ch===null?ch=[e]:ch.push(e)}function p5(){if(ch!==null){for(var e=0;e<ch.length;e++){var t=ch[e],s=t.interleaved;if(s!==null){t.interleaved=null;var u=s.next,p=t.pending;if(p!==null){var y=p.next;p.next=u,s.next=y}t.pending=s}}ch=null}}function HT(e,t,s,u){var p=t.interleaved;return p===null?(s.next=s,FD(t)):(s.next=p.next,p.next=s),t.interleaved=s,Kk(e,u)}function h5(e,t,s,u){var p=t.interleaved;p===null?(s.next=s,FD(t)):(s.next=p.next,p.next=s),t.interleaved=s}function m5(e,t,s,u){var p=t.interleaved;return p===null?(s.next=s,FD(t)):(s.next=p.next,p.next=s),t.interleaved=s,Kk(e,u)}function Vo(e,t){return Kk(e,t)}var g5=Kk;function Kk(e,t){e.lanes=Zt(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Zt(s.lanes,t)),s===null&&(e.flags&(Fr|Ni))!==Ct&&IF(e);for(var u=e,p=e.return;p!==null;)p.childLanes=Zt(p.childLanes,t),s=p.alternate,s!==null?s.childLanes=Zt(s.childLanes,t):(p.flags&(Fr|Ni))!==Ct&&IF(e),u=p,p=p.return;if(u.tag===N){var y=u.stateNode;return y}else return null}var qT=0,VT=1,Qk=2,$D=3,Xk=!1,PD,Jk;PD=!1,Jk=null;function ND(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:E},effects:null};e.updateQueue=t}function WT(e,t){var s=t.updateQueue,u=e.updateQueue;if(s===u){var p={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects};t.updateQueue=p}}function gd(e,t){var s={eventTime:e,lane:t,tag:qT,payload:null,callback:null,next:null};return s}function kf(e,t,s){var u=e.updateQueue;if(u===null)return null;var p=u.shared;if(Jk===p&&!PD&&(m("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),PD=!0),h7()){var y=p.pending;return y===null?t.next=t:(t.next=y.next,y.next=t),p.pending=t,g5(e,s)}else return m5(e,p,t,s)}function Zk(e,t,s){var u=t.updateQueue;if(u!==null){var p=u.shared;if(vv(s)){var y=p.lanes;y=bv(y,e.pendingLanes);var w=Zt(y,s);p.lanes=w,Hp(e,w)}}}function OD(e,t){var s=e.updateQueue,u=e.alternate;if(u!==null){var p=u.updateQueue;if(s===p){var y=null,w=null,x=s.firstBaseUpdate;if(x!==null){var A=x;do{var B={eventTime:A.eventTime,lane:A.lane,tag:A.tag,payload:A.payload,callback:A.callback,next:null};w===null?y=w=B:(w.next=B,w=B),A=A.next}while(A!==null);w===null?y=w=t:(w.next=t,w=t)}else y=w=t;s={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var I=s.lastBaseUpdate;I===null?s.firstBaseUpdate=t:I.next=t,s.lastBaseUpdate=t}function v5(e,t,s,u,p,y){switch(s.tag){case VT:{var w=s.payload;if(typeof w=="function"){jT();var x=w.call(y,u,p);{if(e.mode&qn){tr(!0);try{w.call(y,u,p)}finally{tr(!1)}}zT()}return x}return w}case $D:e.flags=e.flags&-65537|yt;case qT:{var A=s.payload,B;if(typeof A=="function"){jT(),B=A.call(y,u,p);{if(e.mode&qn){tr(!0);try{A.call(y,u,p)}finally{tr(!1)}}zT()}}else B=A;return B==null?u:Xt({},u,B)}case Qk:return Xk=!0,u}return u}function ew(e,t,s,u){var p=e.updateQueue;Xk=!1,Jk=p.shared;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,x=p.shared.pending;if(x!==null){p.shared.pending=null;var A=x,B=A.next;A.next=null,w===null?y=B:w.next=B,w=A;var I=e.alternate;if(I!==null){var re=I.updateQueue,te=re.lastBaseUpdate;te!==w&&(te===null?re.firstBaseUpdate=B:te.next=B,re.lastBaseUpdate=A)}}if(y!==null){var ue=p.baseState,ge=E,Ce=null,tt=null,St=null,Pt=y;do{var hn=Pt.lane,cn=Pt.eventTime;if(ed(u,hn)){if(St!==null){var se={eventTime:cn,lane:M,tag:Pt.tag,payload:Pt.payload,callback:Pt.callback,next:null};St=St.next=se}ue=v5(e,p,Pt,ue,t,s);var De=Pt.callback;if(De!==null&&Pt.lane!==M){e.flags|=Wn;var le=p.effects;le===null?p.effects=[Pt]:le.push(Pt)}}else{var je={eventTime:cn,lane:hn,tag:Pt.tag,payload:Pt.payload,callback:Pt.callback,next:null};St===null?(tt=St=je,Ce=ue):St=St.next=je,ge=Zt(ge,hn)}if(Pt=Pt.next,Pt===null){if(x=p.shared.pending,x===null)break;var ut=x,it=ut.next;ut.next=null,Pt=it,p.lastBaseUpdate=ut,p.shared.pending=null}}while(!0);St===null&&(Ce=ue),p.baseState=Ce,p.firstBaseUpdate=tt,p.lastBaseUpdate=St;var It=p.shared.interleaved;if(It!==null){var Qt=It;do ge=Zt(ge,Qt.lane),Qt=Qt.next;while(Qt!==It)}else y===null&&(p.shared.lanes=E);Fy(ge),e.lanes=ge,e.memoizedState=ue}Jk=null}function y5(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function YT(){Xk=!1}function tw(){return Xk}function GT(e,t,s){var u=t.effects;if(t.effects=null,u!==null)for(var p=0;p<u.length;p++){var y=u[p],w=y.callback;w!==null&&(y.callback=null,y5(w,s))}}var iy={},wf=gf(iy),oy=gf(iy),nw=gf(iy);function rw(e){if(e===iy)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function KT(){var e=rw(nw.current);return e}function RD(e,t){Ui(nw,t,e),Ui(oy,e,e),Ui(wf,iy,e);var s=R8(t);zi(wf,e),Ui(wf,s,e)}function ng(e){zi(wf,e),zi(oy,e),zi(nw,e)}function LD(){var e=rw(wf.current);return e}function QT(e){rw(nw.current);var t=rw(wf.current),s=L8(t,e.type);t!==s&&(Ui(oy,e,e),Ui(wf,s,e))}function BD(e){oy.current===e&&(zi(wf,e),zi(oy,e))}var b5=0,XT=1,JT=1,sy=2,nu=gf(b5);function MD(e,t){return(e&t)!==0}function rg(e){return e&XT}function ID(e,t){return e&XT|t}function k5(e,t){return e|t}function Df(e,t){Ui(nu,t,e)}function ag(e){zi(nu,e)}function w5(e,t){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function aw(e){for(var t=e;t!==null;){if(t.tag===K){var s=t.memoizedState;if(s!==null){var u=s.dehydrated;if(u===null||mT(u)||rD(u))return t}}else if(t.tag===Ve&&t.memoizedProps.revealOrder!==void 0){var p=(t.flags&yt)!==Ct;if(p)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wo=0,Ra=1,lc=2,La=4,hi=8,jD=[];function zD(){for(var e=0;e<jD.length;e++){var t=jD[e];t._workInProgressVersionPrimary=null}jD.length=0}function D5(e,t){var s=t._getVersion,u=s(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,u]:e.mutableSourceEagerHydrationData.push(t,u)}var lt=i.ReactCurrentDispatcher,ly=i.ReactCurrentBatchConfig,UD,ig;UD=new Set;var dh=E,nr=null,Ba=null,Ma=null,iw=!1,uy=!1,cy=0,S5=0,C5=25,Ee=null,ll=null,Sf=-1,HD=!1;function Vn(){{var e=Ee;ll===null?ll=[e]:ll.push(e)}}function Xe(){{var e=Ee;ll!==null&&(Sf++,ll[Sf]!==e&&_5(e))}}function og(e){e!=null&&!Yt(e)&&m("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ee,typeof e)}function _5(e){{var t=Mt(nr);if(!UD.has(t)&&(UD.add(t),ll!==null)){for(var s="",u=30,p=0;p<=Sf;p++){for(var y=ll[p],w=p===Sf?e:y,x=p+1+". "+y;x.length<u;)x+=" ";x+=w+`
|
|
232
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return u}function qk(e,t){var s=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function Vk(e){{var t=Mt(e)||"Component";if(CD[t])return;CD[t]=!0,m("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function BT(e){var t=e._payload,s=e._init;return s(t)}function MT(e){function t(se,De){if(e){var le=se.deletions;le===null?(se.deletions=[De],se.flags|=Pi):le.push(De)}}function s(se,De){if(!e)return null;for(var le=De;le!==null;)t(se,le),le=le.sibling;return null}function u(se,De){for(var le=new Map,je=De;je!==null;)je.key!==null?le.set(je.key,je):le.set(je.index,je),je=je.sibling;return le}function p(se,De){var le=yh(se,De);return le.index=0,le.sibling=null,le}function y(se,De,le){if(se.index=le,!e)return se.flags|=oo,De;var je=se.alternate;if(je!==null){var ut=je.index;return ut<De?(se.flags|=Fr,De):ut}else return se.flags|=Fr,De}function w(se){return e&&se.alternate===null&&(se.flags|=Fr),se}function x(se,De,le,je){if(De===null||De.tag!==j){var ut=bC(le,se.mode,je);return ut.return=se,ut}else{var it=p(De,le);return it.return=se,it}}function A(se,De,le,je){var ut=le.type;if(ut===_o)return I(se,De,le.props.children,je,le.key);if(De!==null&&(De.elementType===ut||HF(De,le)||typeof ut=="object"&&ut!==null&&ut.$$typeof===jt&&BT(ut)===De.type)){var it=p(De,le.props);return it.ref=ay(se,De,le),it.return=se,it._debugSource=le._source,it._debugOwner=le._owner,it}var It=yC(le,se.mode,je);return It.ref=ay(se,De,le),It.return=se,It}function B(se,De,le,je){if(De===null||De.tag!==O||De.stateNode.containerInfo!==le.containerInfo||De.stateNode.implementation!==le.implementation){var ut=kC(le,se.mode,je);return ut.return=se,ut}else{var it=p(De,le.children||[]);return it.return=se,it}}function I(se,De,le,je,ut){if(De===null||De.tag!==Q){var it=Ff(le,se.mode,je,ut);return it.return=se,it}else{var It=p(De,le);return It.return=se,It}}function re(se,De,le){if(typeof De=="string"&&De!==""||typeof De=="number"){var je=bC(""+De,se.mode,le);return je.return=se,je}if(typeof De=="object"&&De!==null){switch(De.$$typeof){case Ea:{var ut=yC(De,se.mode,le);return ut.ref=ay(se,null,De),ut.return=se,ut}case oa:{var it=kC(De,se.mode,le);return it.return=se,it}case jt:{var It=De._payload,Qt=De._init;return re(se,Qt(It),le)}}if(Yt(De)||Et(De)){var rr=Ff(De,se.mode,le,null);return rr.return=se,rr}qk(se,De)}return typeof De=="function"&&Vk(se),null}function te(se,De,le,je){var ut=De!==null?De.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return ut!==null?null:x(se,De,""+le,je);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case Ea:return le.key===ut?A(se,De,le,je):null;case oa:return le.key===ut?B(se,De,le,je):null;case jt:{var it=le._payload,It=le._init;return te(se,De,It(it),je)}}if(Yt(le)||Et(le))return ut!==null?null:I(se,De,le,je,null);qk(se,le)}return typeof le=="function"&&Vk(se),null}function ue(se,De,le,je,ut){if(typeof je=="string"&&je!==""||typeof je=="number"){var it=se.get(le)||null;return x(De,it,""+je,ut)}if(typeof je=="object"&&je!==null){switch(je.$$typeof){case Ea:{var It=se.get(je.key===null?le:je.key)||null;return A(De,It,je,ut)}case oa:{var Qt=se.get(je.key===null?le:je.key)||null;return B(De,Qt,je,ut)}case jt:var rr=je._payload,Ln=je._init;return ue(se,De,le,Ln(rr),ut)}if(Yt(je)||Et(je)){var fa=se.get(le)||null;return I(De,fa,je,ut,null)}qk(De,je)}return typeof je=="function"&&Vk(De),null}function ge(se,De,le){{if(typeof se!="object"||se===null)return De;switch(se.$$typeof){case Ea:case oa:LT(se,le);var je=se.key;if(typeof je!="string")break;if(De===null){De=new Set,De.add(je);break}if(!De.has(je)){De.add(je);break}m("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",je);break;case jt:var ut=se._payload,it=se._init;ge(it(ut),De,le);break}}return De}function Ce(se,De,le,je){for(var ut=null,it=0;it<le.length;it++){var It=le[it];ut=ge(It,ut,se)}for(var Qt=null,rr=null,Ln=De,fa=0,Bn=0,ra=null;Ln!==null&&Bn<le.length;Bn++){Ln.index>Bn?(ra=Ln,Ln=null):ra=Ln.sibling;var qi=te(se,Ln,le[Bn],je);if(qi===null){Ln===null&&(Ln=ra);break}e&&Ln&&qi.alternate===null&&t(se,Ln),fa=y(qi,fa,Bn),rr===null?Qt=qi:rr.sibling=qi,rr=qi,Ln=ra}if(Bn===le.length){if(s(se,Ln),pi()){var ki=Bn;ih(se,ki)}return Qt}if(Ln===null){for(;Bn<le.length;Bn++){var _s=re(se,le[Bn],je);_s!==null&&(fa=y(_s,fa,Bn),rr===null?Qt=_s:rr.sibling=_s,rr=_s)}if(pi()){var mo=Bn;ih(se,mo)}return Qt}for(var go=u(se,Ln);Bn<le.length;Bn++){var Vi=ue(go,se,Bn,le[Bn],je);Vi!==null&&(e&&Vi.alternate!==null&&go.delete(Vi.key===null?Bn:Vi.key),fa=y(Vi,fa,Bn),rr===null?Qt=Vi:rr.sibling=Vi,rr=Vi)}if(e&&go.forEach(function(vg){return t(se,vg)}),pi()){var Dd=Bn;ih(se,Dd)}return Qt}function tt(se,De,le,je){var ut=Et(le);if(typeof ut!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&le[Symbol.toStringTag]==="Generator"&&(wD||m("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),wD=!0),le.entries===ut&&(kD||m("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kD=!0);var it=ut.call(le);if(it)for(var It=null,Qt=it.next();!Qt.done;Qt=it.next()){var rr=Qt.value;It=ge(rr,It,se)}}var Ln=ut.call(le);if(Ln==null)throw new Error("An iterable object provided no iterator.");for(var fa=null,Bn=null,ra=De,qi=0,ki=0,_s=null,mo=Ln.next();ra!==null&&!mo.done;ki++,mo=Ln.next()){ra.index>ki?(_s=ra,ra=null):_s=ra.sibling;var go=te(se,ra,mo.value,je);if(go===null){ra===null&&(ra=_s);break}e&&ra&&go.alternate===null&&t(se,ra),qi=y(go,qi,ki),Bn===null?fa=go:Bn.sibling=go,Bn=go,ra=_s}if(mo.done){if(s(se,ra),pi()){var Vi=ki;ih(se,Vi)}return fa}if(ra===null){for(;!mo.done;ki++,mo=Ln.next()){var Dd=re(se,mo.value,je);Dd!==null&&(qi=y(Dd,qi,ki),Bn===null?fa=Dd:Bn.sibling=Dd,Bn=Dd)}if(pi()){var vg=ki;ih(se,vg)}return fa}for(var Ry=u(se,ra);!mo.done;ki++,mo=Ln.next()){var mc=ue(Ry,se,ki,mo.value,je);mc!==null&&(e&&mc.alternate!==null&&Ry.delete(mc.key===null?ki:mc.key),qi=y(mc,qi,ki),Bn===null?fa=mc:Bn.sibling=mc,Bn=mc)}if(e&&Ry.forEach(function(O7){return t(se,O7)}),pi()){var N7=ki;ih(se,N7)}return fa}function St(se,De,le,je){if(De!==null&&De.tag===j){s(se,De.sibling);var ut=p(De,le);return ut.return=se,ut}s(se,De);var it=bC(le,se.mode,je);return it.return=se,it}function Pt(se,De,le,je){for(var ut=le.key,it=De;it!==null;){if(it.key===ut){var It=le.type;if(It===_o){if(it.tag===Q){s(se,it.sibling);var Qt=p(it,le.props.children);return Qt.return=se,Qt._debugSource=le._source,Qt._debugOwner=le._owner,Qt}}else if(it.elementType===It||HF(it,le)||typeof It=="object"&&It!==null&&It.$$typeof===jt&&BT(It)===it.type){s(se,it.sibling);var rr=p(it,le.props);return rr.ref=ay(se,it,le),rr.return=se,rr._debugSource=le._source,rr._debugOwner=le._owner,rr}s(se,it);break}else t(se,it);it=it.sibling}if(le.type===_o){var Ln=Ff(le.props.children,se.mode,je,le.key);return Ln.return=se,Ln}else{var fa=yC(le,se.mode,je);return fa.ref=ay(se,De,le),fa.return=se,fa}}function hn(se,De,le,je){for(var ut=le.key,it=De;it!==null;){if(it.key===ut)if(it.tag===O&&it.stateNode.containerInfo===le.containerInfo&&it.stateNode.implementation===le.implementation){s(se,it.sibling);var It=p(it,le.children||[]);return It.return=se,It}else{s(se,it);break}else t(se,it);it=it.sibling}var Qt=kC(le,se.mode,je);return Qt.return=se,Qt}function cn(se,De,le,je){var ut=typeof le=="object"&&le!==null&&le.type===_o&&le.key===null;if(ut&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case Ea:return w(Pt(se,De,le,je));case oa:return w(hn(se,De,le,je));case jt:var it=le._payload,It=le._init;return cn(se,De,It(it),je)}if(Yt(le))return Ce(se,De,le,je);if(Et(le))return tt(se,De,le,je);qk(se,le)}return typeof le=="string"&&le!==""||typeof le=="number"?w(St(se,De,""+le,je)):(typeof le=="function"&&Vk(se),s(se,De))}return cn}var Zm=MT(!0),IT=MT(!1);function u5(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var s=t.child,u=yh(s,s.pendingProps);for(t.child=u,u.return=t;s.sibling!==null;)s=s.sibling,u=u.sibling=yh(s,s.pendingProps),u.return=t;u.sibling=null}}function c5(e,t){for(var s=e.child;s!==null;)Xz(s,t),s=s.sibling}var _D=gf(null),xD;xD={};var Wk=null,eg=null,ED=null,Yk=!1;function Gk(){Wk=null,eg=null,ED=null,Yk=!1}function jT(){Yk=!0}function zT(){Yk=!1}function UT(e,t,s){Ui(_D,t._currentValue,e),t._currentValue=s,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==xD&&m("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=xD}function TD(e,t){var s=_D.current;zi(_D,t),e._currentValue=s}function AD(e,t,s){for(var u=e;u!==null;){var p=u.alternate;if(ed(u.childLanes,t)?p!==null&&!ed(p.childLanes,t)&&(p.childLanes=Zt(p.childLanes,t)):(u.childLanes=Zt(u.childLanes,t),p!==null&&(p.childLanes=Zt(p.childLanes,t))),u===s)break;u=u.return}u!==s&&m("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function d5(e,t,s){f5(e,t,s)}function f5(e,t,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var p=void 0,y=u.dependencies;if(y!==null){p=u.child;for(var w=y.firstContext;w!==null;){if(w.context===t){if(u.tag===T){var x=zp(s),A=gd(dr,x);A.tag=Qk;var B=u.updateQueue;if(B!==null){var I=B.shared,re=I.pending;re===null?A.next=A:(A.next=re.next,re.next=A),I.pending=A}}u.lanes=Zt(u.lanes,s);var te=u.alternate;te!==null&&(te.lanes=Zt(te.lanes,s)),AD(u.return,s,e),y.lanes=Zt(y.lanes,s);break}w=w.next}}else if(u.tag===V)p=u.type===e.type?null:u.child;else if(u.tag===Ge){var ue=u.return;if(ue===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ue.lanes=Zt(ue.lanes,s);var ge=ue.alternate;ge!==null&&(ge.lanes=Zt(ge.lanes,s)),AD(ue,s,e),p=u.sibling}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===e){p=null;break}var Ce=p.sibling;if(Ce!==null){Ce.return=p.return,p=Ce;break}p=p.return}u=p}}function tg(e,t){Wk=e,eg=null,ED=null;var s=e.dependencies;if(s!==null){var u=s.firstContext;u!==null&&(Bi(s.lanes,t)&&by(),s.firstContext=null)}}function Sa(e){Yk&&m("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(ED!==e){var s={context:e,memoizedValue:t,next:null};if(eg===null){if(Wk===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");eg=s,Wk.dependencies={lanes:E,firstContext:s}}else eg=eg.next=s}return t}var ch=null;function FD(e){ch===null?ch=[e]:ch.push(e)}function p5(){if(ch!==null){for(var e=0;e<ch.length;e++){var t=ch[e],s=t.interleaved;if(s!==null){t.interleaved=null;var u=s.next,p=t.pending;if(p!==null){var y=p.next;p.next=u,s.next=y}t.pending=s}}ch=null}}function HT(e,t,s,u){var p=t.interleaved;return p===null?(s.next=s,FD(t)):(s.next=p.next,p.next=s),t.interleaved=s,Kk(e,u)}function h5(e,t,s,u){var p=t.interleaved;p===null?(s.next=s,FD(t)):(s.next=p.next,p.next=s),t.interleaved=s}function m5(e,t,s,u){var p=t.interleaved;return p===null?(s.next=s,FD(t)):(s.next=p.next,p.next=s),t.interleaved=s,Kk(e,u)}function Vo(e,t){return Kk(e,t)}var g5=Kk;function Kk(e,t){e.lanes=Zt(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Zt(s.lanes,t)),s===null&&(e.flags&(Fr|Ni))!==Ct&&IF(e);for(var u=e,p=e.return;p!==null;)p.childLanes=Zt(p.childLanes,t),s=p.alternate,s!==null?s.childLanes=Zt(s.childLanes,t):(p.flags&(Fr|Ni))!==Ct&&IF(e),u=p,p=p.return;if(u.tag===N){var y=u.stateNode;return y}else return null}var qT=0,VT=1,Qk=2,$D=3,Xk=!1,PD,Jk;PD=!1,Jk=null;function ND(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:E},effects:null};e.updateQueue=t}function WT(e,t){var s=t.updateQueue,u=e.updateQueue;if(s===u){var p={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects};t.updateQueue=p}}function gd(e,t){var s={eventTime:e,lane:t,tag:qT,payload:null,callback:null,next:null};return s}function kf(e,t,s){var u=e.updateQueue;if(u===null)return null;var p=u.shared;if(Jk===p&&!PD&&(m("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),PD=!0),hz()){var y=p.pending;return y===null?t.next=t:(t.next=y.next,y.next=t),p.pending=t,g5(e,s)}else return m5(e,p,t,s)}function Zk(e,t,s){var u=t.updateQueue;if(u!==null){var p=u.shared;if(vv(s)){var y=p.lanes;y=bv(y,e.pendingLanes);var w=Zt(y,s);p.lanes=w,Hp(e,w)}}}function OD(e,t){var s=e.updateQueue,u=e.alternate;if(u!==null){var p=u.updateQueue;if(s===p){var y=null,w=null,x=s.firstBaseUpdate;if(x!==null){var A=x;do{var B={eventTime:A.eventTime,lane:A.lane,tag:A.tag,payload:A.payload,callback:A.callback,next:null};w===null?y=w=B:(w.next=B,w=B),A=A.next}while(A!==null);w===null?y=w=t:(w.next=t,w=t)}else y=w=t;s={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var I=s.lastBaseUpdate;I===null?s.firstBaseUpdate=t:I.next=t,s.lastBaseUpdate=t}function v5(e,t,s,u,p,y){switch(s.tag){case VT:{var w=s.payload;if(typeof w=="function"){jT();var x=w.call(y,u,p);{if(e.mode&qn){tr(!0);try{w.call(y,u,p)}finally{tr(!1)}}zT()}return x}return w}case $D:e.flags=e.flags&-65537|yt;case qT:{var A=s.payload,B;if(typeof A=="function"){jT(),B=A.call(y,u,p);{if(e.mode&qn){tr(!0);try{A.call(y,u,p)}finally{tr(!1)}}zT()}}else B=A;return B==null?u:Xt({},u,B)}case Qk:return Xk=!0,u}return u}function ew(e,t,s,u){var p=e.updateQueue;Xk=!1,Jk=p.shared;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,x=p.shared.pending;if(x!==null){p.shared.pending=null;var A=x,B=A.next;A.next=null,w===null?y=B:w.next=B,w=A;var I=e.alternate;if(I!==null){var re=I.updateQueue,te=re.lastBaseUpdate;te!==w&&(te===null?re.firstBaseUpdate=B:te.next=B,re.lastBaseUpdate=A)}}if(y!==null){var ue=p.baseState,ge=E,Ce=null,tt=null,St=null,Pt=y;do{var hn=Pt.lane,cn=Pt.eventTime;if(ed(u,hn)){if(St!==null){var se={eventTime:cn,lane:M,tag:Pt.tag,payload:Pt.payload,callback:Pt.callback,next:null};St=St.next=se}ue=v5(e,p,Pt,ue,t,s);var De=Pt.callback;if(De!==null&&Pt.lane!==M){e.flags|=Wn;var le=p.effects;le===null?p.effects=[Pt]:le.push(Pt)}}else{var je={eventTime:cn,lane:hn,tag:Pt.tag,payload:Pt.payload,callback:Pt.callback,next:null};St===null?(tt=St=je,Ce=ue):St=St.next=je,ge=Zt(ge,hn)}if(Pt=Pt.next,Pt===null){if(x=p.shared.pending,x===null)break;var ut=x,it=ut.next;ut.next=null,Pt=it,p.lastBaseUpdate=ut,p.shared.pending=null}}while(!0);St===null&&(Ce=ue),p.baseState=Ce,p.firstBaseUpdate=tt,p.lastBaseUpdate=St;var It=p.shared.interleaved;if(It!==null){var Qt=It;do ge=Zt(ge,Qt.lane),Qt=Qt.next;while(Qt!==It)}else y===null&&(p.shared.lanes=E);Fy(ge),e.lanes=ge,e.memoizedState=ue}Jk=null}function y5(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function YT(){Xk=!1}function tw(){return Xk}function GT(e,t,s){var u=t.effects;if(t.effects=null,u!==null)for(var p=0;p<u.length;p++){var y=u[p],w=y.callback;w!==null&&(y.callback=null,y5(w,s))}}var iy={},wf=gf(iy),oy=gf(iy),nw=gf(iy);function rw(e){if(e===iy)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function KT(){var e=rw(nw.current);return e}function RD(e,t){Ui(nw,t,e),Ui(oy,e,e),Ui(wf,iy,e);var s=R8(t);zi(wf,e),Ui(wf,s,e)}function ng(e){zi(wf,e),zi(oy,e),zi(nw,e)}function LD(){var e=rw(wf.current);return e}function QT(e){rw(nw.current);var t=rw(wf.current),s=L8(t,e.type);t!==s&&(Ui(oy,e,e),Ui(wf,s,e))}function BD(e){oy.current===e&&(zi(wf,e),zi(oy,e))}var b5=0,XT=1,JT=1,sy=2,nu=gf(b5);function MD(e,t){return(e&t)!==0}function rg(e){return e&XT}function ID(e,t){return e&XT|t}function k5(e,t){return e|t}function Df(e,t){Ui(nu,t,e)}function ag(e){zi(nu,e)}function w5(e,t){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function aw(e){for(var t=e;t!==null;){if(t.tag===K){var s=t.memoizedState;if(s!==null){var u=s.dehydrated;if(u===null||mT(u)||rD(u))return t}}else if(t.tag===Ve&&t.memoizedProps.revealOrder!==void 0){var p=(t.flags&yt)!==Ct;if(p)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wo=0,Ra=1,lc=2,La=4,hi=8,jD=[];function zD(){for(var e=0;e<jD.length;e++){var t=jD[e];t._workInProgressVersionPrimary=null}jD.length=0}function D5(e,t){var s=t._getVersion,u=s(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,u]:e.mutableSourceEagerHydrationData.push(t,u)}var lt=i.ReactCurrentDispatcher,ly=i.ReactCurrentBatchConfig,UD,ig;UD=new Set;var dh=E,nr=null,Ba=null,Ma=null,iw=!1,uy=!1,cy=0,S5=0,C5=25,Ee=null,ll=null,Sf=-1,HD=!1;function Vn(){{var e=Ee;ll===null?ll=[e]:ll.push(e)}}function Xe(){{var e=Ee;ll!==null&&(Sf++,ll[Sf]!==e&&_5(e))}}function og(e){e!=null&&!Yt(e)&&m("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ee,typeof e)}function _5(e){{var t=Mt(nr);if(!UD.has(t)&&(UD.add(t),ll!==null)){for(var s="",u=30,p=0;p<=Sf;p++){for(var y=ll[p],w=p===Sf?e:y,x=p+1+". "+y;x.length<u;)x+=" ";x+=w+`
|
|
233
233
|
`,s+=x}m(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
234
234
|
|
|
235
235
|
Previous render Next render
|
|
@@ -258,9 +258,9 @@ https://reactjs.org/link/unsafe-component-lifecycles`,tt,St,ue!==null?`
|
|
|
258
258
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var I=Mt(e)||"Anonymous";B="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+I+".")}var re=A+`
|
|
259
259
|
`+w+`
|
|
260
260
|
|
|
261
|
-
`+(""+B);console.error(re)}catch(te){setTimeout(function(){throw te})}}var I5=typeof WeakMap=="function"?WeakMap:Map;function NA(e,t,s){var u=gd(dr,s);u.tag=$D,u.payload={element:null};var p=t.value;return u.callback=function(){$7(p),xS(e,t)},u}function ES(e,t,s){var u=gd(dr,s);u.tag=$D;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var y=t.value;u.payload=function(){return p(y)},u.callback=function(){qF(e),xS(e,t)}}var w=e.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(u.callback=function(){qF(e),xS(e,t),typeof p!="function"&&A7(this);var x=t.value,A=t.stack;this.componentDidCatch(x,{componentStack:A!==null?A:""}),typeof p!="function"&&(Bi(e.lanes,U)||m("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Mt(e)||"Unknown"))}),u}function OA(e,t,s){var u=e.pingCache,p;if(u===null?(u=e.pingCache=new I5,p=new Set,u.set(t,p)):(p=u.get(t),p===void 0&&(p=new Set,u.set(t,p))),!p.has(s)){p.add(s);var y=P7.bind(null,e,t,s);Xa&&$y(e,s),t.then(y,y)}}function j5(e,t,s,u){var p=e.updateQueue;if(p===null){var y=new Set;y.add(s),e.updateQueue=y}else p.add(s)}function z5(e,t){var s=e.tag;if((e.mode&an)===_t&&(s===C||s===q||s===pe)){var u=e.alternate;u?(e.updateQueue=u.updateQueue,e.memoizedState=u.memoizedState,e.lanes=u.lanes):(e.updateQueue=null,e.memoizedState=null)}}function RA(e){var t=e;do{if(t.tag===K&&w5(t))return t;t=t.return}while(t!==null);return null}function LA(e,t,s,u,p){if((e.mode&an)===_t){if(e===t)e.flags|=Ga;else{if(e.flags|=yt,s.flags|=ps,s.flags&=-52805,s.tag===T){var y=s.alternate;if(y===null)s.tag=ke;else{var w=gd(dr,U);w.tag=Qk,kf(s,w,U)}}s.lanes=Zt(s.lanes,U)}return e}return e.flags|=Ga,e.lanes=p,e}function U5(e,t,s,u,p){if(s.flags|=Uc,Xa&&$y(e,p),u!==null&&typeof u=="object"&&typeof u.then=="function"){var y=u;z5(s),pi()&&s.mode&an&&ET();var w=RA(t);if(w!==null){w.flags&=-257,LA(w,t,s,e,p),w.mode&an&&OA(e,y,p),j5(w,e,y);return}else{if(!Bb(p)){OA(e,y,p),oC();return}var x=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");u=x}}else if(pi()&&s.mode&an){ET();var A=RA(t);if(A!==null){(A.flags&Ga)===Ct&&(A.flags|=ba),LA(A,t,s,e,p),bD(fh(u,s));return}}u=fh(u,s),w7(u);var B=t;do{switch(B.tag){case N:{var I=u;B.flags|=Ga;var re=zp(p);B.lanes=Zt(B.lanes,re);var te=NA(B,I,re);OD(B,te);return}case T:var ue=u,ge=B.type,Ce=B.stateNode;if((B.flags&yt)===Ct&&(typeof ge.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&!RF(Ce))){B.flags|=Ga;var tt=zp(p);B.lanes=Zt(B.lanes,tt);var St=ES(B,ue,tt);OD(B,St);return}break}B=B.return}while(B!==null)}function H5(){return null}var gy=i.ReactCurrentOwner,iu=!1,TS,vy,AS,FS,$S,ph,PS,_w,yy;TS={},vy={},AS={},FS={},$S={},ph=!1,PS={},_w={},yy={};function fo(e,t,s,u){e===null?t.child=IT(t,null,s,u):t.child=Zm(t,e.child,s,u)}function q5(e,t,s,u){t.child=Zm(t,e.child,null,u),t.child=Zm(t,null,s,u)}function BA(e,t,s,u,p){if(t.type!==t.elementType){var y=s.propTypes;y&&Zl(y,u,"prop",kn(s))}var w=s.render,x=t.ref,A,B;tg(t,p),Ja(t);{if(gy.current=t,Ar(!0),A=sg(e,t,w,u,x,p),B=lg(),t.mode&qn){tr(!0);try{A=sg(e,t,w,u,x,p),B=lg()}finally{tr(!1)}}Ar(!1)}return ea(),e!==null&&!iu?(ZT(e,t,p),vd(e,t,p)):(pi()&&B&&pD(t),t.flags|=$i,fo(e,t,A,p),t.child)}function MA(e,t,s,u,p){if(e===null){var y=s.type;if(K7(y)&&s.compare===null&&s.defaultProps===void 0){var w=y;return w=gg(y),t.tag=pe,t.type=w,RS(t,y),IA(e,t,w,u,p)}{var x=y.propTypes;if(x&&Zl(x,u,"prop",kn(y)),s.defaultProps!==void 0){var A=kn(y)||"Unknown";yy[A]||(m("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",A),yy[A]=!0)}}var B=vC(s.type,null,u,t,t.mode,p);return B.ref=t.ref,B.return=t,t.child=B,B}{var I=s.type,re=I.propTypes;re&&Zl(re,u,"prop",kn(I))}var te=e.child,ue=zS(e,p);if(!ue){var ge=te.memoizedProps,Ce=s.compare;if(Ce=Ce!==null?Ce:Ue,Ce(ge,u)&&e.ref===t.ref)return vd(e,t,p)}t.flags|=$i;var tt=yh(te,u);return tt.ref=t.ref,tt.return=t,t.child=tt,tt}function IA(e,t,s,u,p){if(t.type!==t.elementType){var y=t.elementType;if(y.$$typeof===jt){var w=y,x=w._payload,A=w._init;try{y=A(x)}catch{y=null}var B=y&&y.propTypes;B&&Zl(B,u,"prop",kn(y))}}if(e!==null){var I=e.memoizedProps;if(Ue(I,u)&&e.ref===t.ref&&t.type===e.type)if(iu=!1,t.pendingProps=u=I,zS(e,p))(e.flags&ps)!==Ct&&(iu=!0);else return t.lanes=e.lanes,vd(e,t,p)}return NS(e,t,s,u,p)}function jA(e,t,s){var u=t.pendingProps,p=u.children,y=e!==null?e.memoizedState:null;if(u.mode==="hidden"||_e)if((t.mode&an)===_t){var w={baseLanes:E,cachePool:null,transitions:null};t.memoizedState=w,Iw(t,s)}else if(Bi(s,lo)){var x={baseLanes:E,cachePool:null,transitions:null};t.memoizedState=x;var A=y!==null?y.baseLanes:s;Iw(t,A)}else{var B=null,I;if(y!==null){var re=y.baseLanes;I=Zt(re,s)}else I=s;t.lanes=t.childLanes=lo;var te={baseLanes:I,cachePool:B,transitions:null};return t.memoizedState=te,t.updateQueue=null,Iw(t,I),null}else{var ue;y!==null?(ue=Zt(y.baseLanes,s),t.memoizedState=null):ue=s,Iw(t,ue)}return fo(e,t,p,s),t.child}function V5(e,t,s){var u=t.pendingProps;return fo(e,t,u,s),t.child}function W5(e,t,s){var u=t.pendingProps.children;return fo(e,t,u,s),t.child}function Y5(e,t,s){{t.flags|=mn;{var u=t.stateNode;u.effectDuration=0,u.passiveEffectDuration=0}}var p=t.pendingProps,y=p.children;return fo(e,t,y,s),t.child}function zA(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=Yn,t.flags|=Bl)}function NS(e,t,s,u,p){if(t.type!==t.elementType){var y=s.propTypes;y&&Zl(y,u,"prop",kn(s))}var w;{var x=Gm(t,s,!0);w=Km(t,x)}var A,B;tg(t,p),Ja(t);{if(gy.current=t,Ar(!0),A=sg(e,t,s,u,w,p),B=lg(),t.mode&qn){tr(!0);try{A=sg(e,t,s,u,w,p),B=lg()}finally{tr(!1)}}Ar(!1)}return ea(),e!==null&&!iu?(ZT(e,t,p),vd(e,t,p)):(pi()&&B&&pD(t),t.flags|=$i,fo(e,t,A,p),t.child)}function UA(e,t,s,u,p){{switch(cz(t)){case!1:{var y=t.stateNode,w=t.type,x=new w(t.memoizedProps,y.context),A=x.state;y.updater.enqueueSetState(y,A,null);break}case!0:{t.flags|=yt,t.flags|=Ga;var B=new Error("Simulated error coming from DevTools"),I=zp(p);t.lanes=Zt(t.lanes,I);var re=ES(t,fh(B,t),I);OD(t,re);break}}if(t.type!==t.elementType){var te=s.propTypes;te&&Zl(te,u,"prop",kn(s))}}var ue;sc(s)?(ue=!0,Bk(t)):ue=!1,tg(t,p);var ge=t.stateNode,Ce;ge===null?(Ew(e,t),$A(t,s,u),CS(t,s,u,p),Ce=!0):e===null?Ce=L5(t,s,u,p):Ce=B5(e,t,s,u,p);var tt=OS(e,t,s,Ce,ue,p);{var St=t.stateNode;Ce&&St.props!==u&&(ph||m("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Mt(t)||"a component"),ph=!0)}return tt}function OS(e,t,s,u,p,y){zA(e,t);var w=(t.flags&yt)!==Ct;if(!u&&!w)return p&&ST(t,s,!1),vd(e,t,y);var x=t.stateNode;gy.current=t;var A;if(w&&typeof s.getDerivedStateFromError!="function")A=null,xA();else{Ja(t);{if(Ar(!0),A=x.render(),t.mode&qn){tr(!0);try{x.render()}finally{tr(!1)}}Ar(!1)}ea()}return t.flags|=$i,e!==null&&w?q5(e,t,A,y):fo(e,t,A,y),t.memoizedState=x.state,p&&ST(t,s,!0),t.child}function HA(e){var t=e.stateNode;t.pendingContext?wT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wT(e,t.context,!1),RD(e,t.containerInfo)}function G5(e,t,s){if(HA(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var u=t.pendingProps,p=t.memoizedState,y=p.element;WT(e,t),ew(t,u,null,s);var w=t.memoizedState;t.stateNode;var x=w.element;if(p.isDehydrated){var A={element:x,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},B=t.updateQueue;if(B.baseState=A,t.memoizedState=A,t.flags&ba){var I=fh(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return qA(e,t,x,s,I)}else if(x!==y){var re=fh(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return qA(e,t,x,s,re)}else{X6(t);var te=IT(t,null,x,s);t.child=te;for(var ue=te;ue;)ue.flags=ue.flags&-3|Ni,ue=ue.sibling}}else{if(Jm(),x===y)return vd(e,t,s);fo(e,t,x,s)}return t.child}function qA(e,t,s,u,p){return Jm(),bD(p),t.flags|=ba,fo(e,t,s,u),t.child}function K5(e,t,s){QT(t),e===null&&yD(t);var u=t.type,p=t.pendingProps,y=e!==null?e.memoizedProps:null,w=p.children,x=Z2(u,p);return x?w=null:y!==null&&Z2(u,y)&&(t.flags|=Ft),zA(e,t),fo(e,t,w,s),t.child}function Q5(e,t){return e===null&&yD(t),null}function X5(e,t,s,u){Ew(e,t);var p=t.pendingProps,y=s,w=y._payload,x=y._init,A=x(w);t.type=A;var B=t.tag=Q7(A),I=au(A,p),re;switch(B){case C:return RS(t,A),t.type=A=gg(A),re=NS(null,t,A,I,u),re;case T:return t.type=A=dC(A),re=UA(null,t,A,I,u),re;case q:return t.type=A=fC(A),re=BA(null,t,A,I,u),re;case ae:{if(t.type!==t.elementType){var te=A.propTypes;te&&Zl(te,I,"prop",kn(A))}return re=MA(null,t,A,au(A.type,I),u),re}}var ue="";throw A!==null&&typeof A=="object"&&A.$$typeof===jt&&(ue=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+A+". "+("Lazy element type must resolve to a class or function."+ue))}function J5(e,t,s,u,p){Ew(e,t),t.tag=T;var y;return sc(s)?(y=!0,Bk(t)):y=!1,tg(t,p),$A(t,s,u),CS(t,s,u,p),OS(null,t,s,!0,y,p)}function Z5(e,t,s,u){Ew(e,t);var p=t.pendingProps,y;{var w=Gm(t,s,!1);y=Km(t,w)}tg(t,u);var x,A;Ja(t);{if(s.prototype&&typeof s.prototype.render=="function"){var B=kn(s)||"Unknown";TS[B]||(m("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),TS[B]=!0)}t.mode&qn&&tu.recordLegacyContextWarning(t,null),Ar(!0),gy.current=t,x=sg(null,t,s,p,y,u),A=lg(),Ar(!1)}if(ea(),t.flags|=$i,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){var I=kn(s)||"Unknown";vy[I]||(m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",I,I,I),vy[I]=!0)}if(typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){{var re=kn(s)||"Unknown";vy[re]||(m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),vy[re]=!0)}t.tag=T,t.memoizedState=null,t.updateQueue=null;var te=!1;return sc(s)?(te=!0,Bk(t)):te=!1,t.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,ND(t),FA(t,x),CS(t,s,p,u),OS(null,t,s,!0,te,u)}else{if(t.tag=C,t.mode&qn){tr(!0);try{x=sg(null,t,s,p,y,u),A=lg()}finally{tr(!1)}}return pi()&&A&&pD(t),fo(null,t,x,u),RS(t,s),t.child}}function RS(e,t){{if(t&&t.childContextTypes&&m("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",u=ya();u&&(s+=`
|
|
261
|
+
`+(""+B);console.error(re)}catch(te){setTimeout(function(){throw te})}}var I5=typeof WeakMap=="function"?WeakMap:Map;function NA(e,t,s){var u=gd(dr,s);u.tag=$D,u.payload={element:null};var p=t.value;return u.callback=function(){$z(p),xS(e,t)},u}function ES(e,t,s){var u=gd(dr,s);u.tag=$D;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var y=t.value;u.payload=function(){return p(y)},u.callback=function(){qF(e),xS(e,t)}}var w=e.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(u.callback=function(){qF(e),xS(e,t),typeof p!="function"&&Az(this);var x=t.value,A=t.stack;this.componentDidCatch(x,{componentStack:A!==null?A:""}),typeof p!="function"&&(Bi(e.lanes,U)||m("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Mt(e)||"Unknown"))}),u}function OA(e,t,s){var u=e.pingCache,p;if(u===null?(u=e.pingCache=new I5,p=new Set,u.set(t,p)):(p=u.get(t),p===void 0&&(p=new Set,u.set(t,p))),!p.has(s)){p.add(s);var y=Pz.bind(null,e,t,s);Xa&&$y(e,s),t.then(y,y)}}function j5(e,t,s,u){var p=e.updateQueue;if(p===null){var y=new Set;y.add(s),e.updateQueue=y}else p.add(s)}function z5(e,t){var s=e.tag;if((e.mode&an)===_t&&(s===C||s===q||s===pe)){var u=e.alternate;u?(e.updateQueue=u.updateQueue,e.memoizedState=u.memoizedState,e.lanes=u.lanes):(e.updateQueue=null,e.memoizedState=null)}}function RA(e){var t=e;do{if(t.tag===K&&w5(t))return t;t=t.return}while(t!==null);return null}function LA(e,t,s,u,p){if((e.mode&an)===_t){if(e===t)e.flags|=Ga;else{if(e.flags|=yt,s.flags|=ps,s.flags&=-52805,s.tag===T){var y=s.alternate;if(y===null)s.tag=ke;else{var w=gd(dr,U);w.tag=Qk,kf(s,w,U)}}s.lanes=Zt(s.lanes,U)}return e}return e.flags|=Ga,e.lanes=p,e}function U5(e,t,s,u,p){if(s.flags|=Uc,Xa&&$y(e,p),u!==null&&typeof u=="object"&&typeof u.then=="function"){var y=u;z5(s),pi()&&s.mode&an&&ET();var w=RA(t);if(w!==null){w.flags&=-257,LA(w,t,s,e,p),w.mode&an&&OA(e,y,p),j5(w,e,y);return}else{if(!Bb(p)){OA(e,y,p),oC();return}var x=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");u=x}}else if(pi()&&s.mode&an){ET();var A=RA(t);if(A!==null){(A.flags&Ga)===Ct&&(A.flags|=ba),LA(A,t,s,e,p),bD(fh(u,s));return}}u=fh(u,s),wz(u);var B=t;do{switch(B.tag){case N:{var I=u;B.flags|=Ga;var re=zp(p);B.lanes=Zt(B.lanes,re);var te=NA(B,I,re);OD(B,te);return}case T:var ue=u,ge=B.type,Ce=B.stateNode;if((B.flags&yt)===Ct&&(typeof ge.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&!RF(Ce))){B.flags|=Ga;var tt=zp(p);B.lanes=Zt(B.lanes,tt);var St=ES(B,ue,tt);OD(B,St);return}break}B=B.return}while(B!==null)}function H5(){return null}var gy=i.ReactCurrentOwner,iu=!1,TS,vy,AS,FS,$S,ph,PS,_w,yy;TS={},vy={},AS={},FS={},$S={},ph=!1,PS={},_w={},yy={};function fo(e,t,s,u){e===null?t.child=IT(t,null,s,u):t.child=Zm(t,e.child,s,u)}function q5(e,t,s,u){t.child=Zm(t,e.child,null,u),t.child=Zm(t,null,s,u)}function BA(e,t,s,u,p){if(t.type!==t.elementType){var y=s.propTypes;y&&Zl(y,u,"prop",kn(s))}var w=s.render,x=t.ref,A,B;tg(t,p),Ja(t);{if(gy.current=t,Ar(!0),A=sg(e,t,w,u,x,p),B=lg(),t.mode&qn){tr(!0);try{A=sg(e,t,w,u,x,p),B=lg()}finally{tr(!1)}}Ar(!1)}return ea(),e!==null&&!iu?(ZT(e,t,p),vd(e,t,p)):(pi()&&B&&pD(t),t.flags|=$i,fo(e,t,A,p),t.child)}function MA(e,t,s,u,p){if(e===null){var y=s.type;if(Kz(y)&&s.compare===null&&s.defaultProps===void 0){var w=y;return w=gg(y),t.tag=pe,t.type=w,RS(t,y),IA(e,t,w,u,p)}{var x=y.propTypes;if(x&&Zl(x,u,"prop",kn(y)),s.defaultProps!==void 0){var A=kn(y)||"Unknown";yy[A]||(m("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",A),yy[A]=!0)}}var B=vC(s.type,null,u,t,t.mode,p);return B.ref=t.ref,B.return=t,t.child=B,B}{var I=s.type,re=I.propTypes;re&&Zl(re,u,"prop",kn(I))}var te=e.child,ue=zS(e,p);if(!ue){var ge=te.memoizedProps,Ce=s.compare;if(Ce=Ce!==null?Ce:Ue,Ce(ge,u)&&e.ref===t.ref)return vd(e,t,p)}t.flags|=$i;var tt=yh(te,u);return tt.ref=t.ref,tt.return=t,t.child=tt,tt}function IA(e,t,s,u,p){if(t.type!==t.elementType){var y=t.elementType;if(y.$$typeof===jt){var w=y,x=w._payload,A=w._init;try{y=A(x)}catch{y=null}var B=y&&y.propTypes;B&&Zl(B,u,"prop",kn(y))}}if(e!==null){var I=e.memoizedProps;if(Ue(I,u)&&e.ref===t.ref&&t.type===e.type)if(iu=!1,t.pendingProps=u=I,zS(e,p))(e.flags&ps)!==Ct&&(iu=!0);else return t.lanes=e.lanes,vd(e,t,p)}return NS(e,t,s,u,p)}function jA(e,t,s){var u=t.pendingProps,p=u.children,y=e!==null?e.memoizedState:null;if(u.mode==="hidden"||_e)if((t.mode&an)===_t){var w={baseLanes:E,cachePool:null,transitions:null};t.memoizedState=w,Iw(t,s)}else if(Bi(s,lo)){var x={baseLanes:E,cachePool:null,transitions:null};t.memoizedState=x;var A=y!==null?y.baseLanes:s;Iw(t,A)}else{var B=null,I;if(y!==null){var re=y.baseLanes;I=Zt(re,s)}else I=s;t.lanes=t.childLanes=lo;var te={baseLanes:I,cachePool:B,transitions:null};return t.memoizedState=te,t.updateQueue=null,Iw(t,I),null}else{var ue;y!==null?(ue=Zt(y.baseLanes,s),t.memoizedState=null):ue=s,Iw(t,ue)}return fo(e,t,p,s),t.child}function V5(e,t,s){var u=t.pendingProps;return fo(e,t,u,s),t.child}function W5(e,t,s){var u=t.pendingProps.children;return fo(e,t,u,s),t.child}function Y5(e,t,s){{t.flags|=mn;{var u=t.stateNode;u.effectDuration=0,u.passiveEffectDuration=0}}var p=t.pendingProps,y=p.children;return fo(e,t,y,s),t.child}function zA(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=Yn,t.flags|=Bl)}function NS(e,t,s,u,p){if(t.type!==t.elementType){var y=s.propTypes;y&&Zl(y,u,"prop",kn(s))}var w;{var x=Gm(t,s,!0);w=Km(t,x)}var A,B;tg(t,p),Ja(t);{if(gy.current=t,Ar(!0),A=sg(e,t,s,u,w,p),B=lg(),t.mode&qn){tr(!0);try{A=sg(e,t,s,u,w,p),B=lg()}finally{tr(!1)}}Ar(!1)}return ea(),e!==null&&!iu?(ZT(e,t,p),vd(e,t,p)):(pi()&&B&&pD(t),t.flags|=$i,fo(e,t,A,p),t.child)}function UA(e,t,s,u,p){{switch(c7(t)){case!1:{var y=t.stateNode,w=t.type,x=new w(t.memoizedProps,y.context),A=x.state;y.updater.enqueueSetState(y,A,null);break}case!0:{t.flags|=yt,t.flags|=Ga;var B=new Error("Simulated error coming from DevTools"),I=zp(p);t.lanes=Zt(t.lanes,I);var re=ES(t,fh(B,t),I);OD(t,re);break}}if(t.type!==t.elementType){var te=s.propTypes;te&&Zl(te,u,"prop",kn(s))}}var ue;sc(s)?(ue=!0,Bk(t)):ue=!1,tg(t,p);var ge=t.stateNode,Ce;ge===null?(Ew(e,t),$A(t,s,u),CS(t,s,u,p),Ce=!0):e===null?Ce=L5(t,s,u,p):Ce=B5(e,t,s,u,p);var tt=OS(e,t,s,Ce,ue,p);{var St=t.stateNode;Ce&&St.props!==u&&(ph||m("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Mt(t)||"a component"),ph=!0)}return tt}function OS(e,t,s,u,p,y){zA(e,t);var w=(t.flags&yt)!==Ct;if(!u&&!w)return p&&ST(t,s,!1),vd(e,t,y);var x=t.stateNode;gy.current=t;var A;if(w&&typeof s.getDerivedStateFromError!="function")A=null,xA();else{Ja(t);{if(Ar(!0),A=x.render(),t.mode&qn){tr(!0);try{x.render()}finally{tr(!1)}}Ar(!1)}ea()}return t.flags|=$i,e!==null&&w?q5(e,t,A,y):fo(e,t,A,y),t.memoizedState=x.state,p&&ST(t,s,!0),t.child}function HA(e){var t=e.stateNode;t.pendingContext?wT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wT(e,t.context,!1),RD(e,t.containerInfo)}function G5(e,t,s){if(HA(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var u=t.pendingProps,p=t.memoizedState,y=p.element;WT(e,t),ew(t,u,null,s);var w=t.memoizedState;t.stateNode;var x=w.element;if(p.isDehydrated){var A={element:x,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},B=t.updateQueue;if(B.baseState=A,t.memoizedState=A,t.flags&ba){var I=fh(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return qA(e,t,x,s,I)}else if(x!==y){var re=fh(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return qA(e,t,x,s,re)}else{X6(t);var te=IT(t,null,x,s);t.child=te;for(var ue=te;ue;)ue.flags=ue.flags&-3|Ni,ue=ue.sibling}}else{if(Jm(),x===y)return vd(e,t,s);fo(e,t,x,s)}return t.child}function qA(e,t,s,u,p){return Jm(),bD(p),t.flags|=ba,fo(e,t,s,u),t.child}function K5(e,t,s){QT(t),e===null&&yD(t);var u=t.type,p=t.pendingProps,y=e!==null?e.memoizedProps:null,w=p.children,x=Z2(u,p);return x?w=null:y!==null&&Z2(u,y)&&(t.flags|=Ft),zA(e,t),fo(e,t,w,s),t.child}function Q5(e,t){return e===null&&yD(t),null}function X5(e,t,s,u){Ew(e,t);var p=t.pendingProps,y=s,w=y._payload,x=y._init,A=x(w);t.type=A;var B=t.tag=Qz(A),I=au(A,p),re;switch(B){case C:return RS(t,A),t.type=A=gg(A),re=NS(null,t,A,I,u),re;case T:return t.type=A=dC(A),re=UA(null,t,A,I,u),re;case q:return t.type=A=fC(A),re=BA(null,t,A,I,u),re;case ae:{if(t.type!==t.elementType){var te=A.propTypes;te&&Zl(te,I,"prop",kn(A))}return re=MA(null,t,A,au(A.type,I),u),re}}var ue="";throw A!==null&&typeof A=="object"&&A.$$typeof===jt&&(ue=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+A+". "+("Lazy element type must resolve to a class or function."+ue))}function J5(e,t,s,u,p){Ew(e,t),t.tag=T;var y;return sc(s)?(y=!0,Bk(t)):y=!1,tg(t,p),$A(t,s,u),CS(t,s,u,p),OS(null,t,s,!0,y,p)}function Z5(e,t,s,u){Ew(e,t);var p=t.pendingProps,y;{var w=Gm(t,s,!1);y=Km(t,w)}tg(t,u);var x,A;Ja(t);{if(s.prototype&&typeof s.prototype.render=="function"){var B=kn(s)||"Unknown";TS[B]||(m("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),TS[B]=!0)}t.mode&qn&&tu.recordLegacyContextWarning(t,null),Ar(!0),gy.current=t,x=sg(null,t,s,p,y,u),A=lg(),Ar(!1)}if(ea(),t.flags|=$i,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){var I=kn(s)||"Unknown";vy[I]||(m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",I,I,I),vy[I]=!0)}if(typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){{var re=kn(s)||"Unknown";vy[re]||(m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),vy[re]=!0)}t.tag=T,t.memoizedState=null,t.updateQueue=null;var te=!1;return sc(s)?(te=!0,Bk(t)):te=!1,t.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,ND(t),FA(t,x),CS(t,s,p,u),OS(null,t,s,!0,te,u)}else{if(t.tag=C,t.mode&qn){tr(!0);try{x=sg(null,t,s,p,y,u),A=lg()}finally{tr(!1)}}return pi()&&A&&pD(t),fo(null,t,x,u),RS(t,s),t.child}}function RS(e,t){{if(t&&t.childContextTypes&&m("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",u=ya();u&&(s+=`
|
|
262
262
|
|
|
263
|
-
Check the render method of \``+u+"`.");var p=u||"",y=e._debugSource;y&&(p=y.fileName+":"+y.lineNumber),$S[p]||($S[p]=!0,m("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(t.defaultProps!==void 0){var w=kn(t)||"Unknown";yy[w]||(m("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",w),yy[w]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var x=kn(t)||"Unknown";FS[x]||(m("%s: Function components do not support getDerivedStateFromProps.",x),FS[x]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var A=kn(t)||"Unknown";AS[A]||(m("%s: Function components do not support contextType.",A),AS[A]=!0)}}}var LS={dehydrated:null,treeContext:null,retryLane:M};function BS(e){return{baseLanes:e,cachePool:H5(),transitions:null}}function e9(e,t){var s=null;return{baseLanes:Zt(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function t9(e,t,s,u){if(t!==null){var p=t.memoizedState;if(p===null)return!1}return MD(e,sy)}function n9(e,t){return Up(e.childLanes,t)}function VA(e,t,s){var u=t.pendingProps;dz(t)&&(t.flags|=yt);var p=nu.current,y=!1,w=(t.flags&yt)!==Ct;if(w||t9(p,e)?(y=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(p=k5(p,JT)),p=rg(p),Df(t,p),e===null){yD(t);var x=t.memoizedState;if(x!==null){var A=x.dehydrated;if(A!==null)return s9(t,A)}var B=u.children,I=u.fallback;if(y){var re=r9(t,B,I,s),te=t.child;return te.memoizedState=BS(s),t.memoizedState=LS,re}else return MS(t,B)}else{var ue=e.memoizedState;if(ue!==null){var ge=ue.dehydrated;if(ge!==null)return l9(e,t,w,u,ge,ue,s)}if(y){var Ce=u.fallback,tt=u.children,St=i9(e,t,tt,Ce,s),Pt=t.child,hn=e.child.memoizedState;return Pt.memoizedState=hn===null?BS(s):e9(hn,s),Pt.childLanes=n9(e,s),t.memoizedState=LS,St}else{var cn=u.children,se=a9(e,t,cn,s);return t.memoizedState=null,se}}}function MS(e,t,s){var u=e.mode,p={mode:"visible",children:t},y=IS(p,u);return y.return=e,e.child=y,y}function r9(e,t,s,u){var p=e.mode,y=e.child,w={mode:"hidden",children:t},x,A;return(p&an)===_t&&y!==null?(x=y,x.childLanes=E,x.pendingProps=w,e.mode&En&&(x.actualDuration=0,x.actualStartTime=-1,x.selfBaseDuration=0,x.treeBaseDuration=0),A=Ff(s,p,u,null)):(x=IS(w,p),A=Ff(s,p,u,null)),x.return=e,A.return=e,x.sibling=A,e.child=x,A}function IS(e,t,s){return VF(e,t,E,null)}function WA(e,t){return yh(e,t)}function a9(e,t,s,u){var p=e.child,y=p.sibling,w=WA(p,{mode:"visible",children:s});if((t.mode&an)===_t&&(w.lanes=u),w.return=t,w.sibling=null,y!==null){var x=t.deletions;x===null?(t.deletions=[y],t.flags|=Pi):x.push(y)}return t.child=w,w}function i9(e,t,s,u,p){var y=t.mode,w=e.child,x=w.sibling,A={mode:"hidden",children:s},B;if((y&an)===_t&&t.child!==w){var I=t.child;B=I,B.childLanes=E,B.pendingProps=A,t.mode&En&&(B.actualDuration=0,B.actualStartTime=-1,B.selfBaseDuration=w.selfBaseDuration,B.treeBaseDuration=w.treeBaseDuration),t.deletions=null}else B=WA(w,A),B.subtreeFlags=w.subtreeFlags&Sr;var re;return x!==null?re=yh(x,u):(re=Ff(u,y,p,null),re.flags|=Fr),re.return=t,B.return=t,B.sibling=re,t.child=B,re}function xw(e,t,s,u){u!==null&&bD(u),Zm(t,e.child,null,s);var p=t.pendingProps,y=p.children,w=MS(t,y);return w.flags|=Fr,t.memoizedState=null,w}function o9(e,t,s,u,p){var y=t.mode,w={mode:"visible",children:s},x=IS(w,y),A=Ff(u,y,p,null);return A.flags|=Fr,x.return=t,A.return=t,x.sibling=A,t.child=x,(t.mode&an)!==_t&&Zm(t,e.child,null,p),A}function s9(e,t,s){return(e.mode&an)===_t?(m("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=U):rD(t)?e.lanes=et:e.lanes=lo,null}function l9(e,t,s,u,p,y,w){if(s)if(t.flags&ba){t.flags&=-257;var x=_S(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return xw(e,t,w,x)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=yt,null;var A=u.children,B=u.fallback,I=o9(e,t,A,B,w),re=t.child;return re.memoizedState=BS(w),t.memoizedState=LS,I}else{if(K6(),(t.mode&an)===_t)return xw(e,t,w,null);if(rD(p)){var te,ue,ge;{var Ce=f6(p);te=Ce.digest,ue=Ce.message,ge=Ce.stack}var tt;ue?tt=new Error(ue):tt=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var St=_S(tt,te,ge);return xw(e,t,w,St)}var Pt=Bi(w,e.childLanes);if(iu||Pt){var hn=Mw();if(hn!==null){var cn=zb(hn,w);if(cn!==M&&cn!==y.retryLane){y.retryLane=cn;var se=dr;Vo(e,cn),Ua(hn,e,cn,se)}}oC();var De=_S(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return xw(e,t,w,De)}else if(mT(p)){t.flags|=yt,t.child=e.child;var le=N7.bind(null,e);return p6(p,le),null}else{J6(t,p,y.treeContext);var je=u.children,ut=MS(t,je);return ut.flags|=Ni,ut}}}function YA(e,t,s){e.lanes=Zt(e.lanes,t);var u=e.alternate;u!==null&&(u.lanes=Zt(u.lanes,t)),AD(e.return,t,s)}function u9(e,t,s){for(var u=t;u!==null;){if(u.tag===K){var p=u.memoizedState;p!==null&&YA(u,s,e)}else if(u.tag===Ve)YA(u,s,e);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function c9(e){for(var t=e,s=null;t!==null;){var u=t.alternate;u!==null&&aw(u)===null&&(s=t),t=t.sibling}return s}function d9(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!PS[e])if(PS[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{m('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{m('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:m('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else m('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function f9(e,t){e!==void 0&&!_w[e]&&(e!=="collapsed"&&e!=="hidden"?(_w[e]=!0,m('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(_w[e]=!0,m('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function GA(e,t){{var s=Yt(e),u=!s&&typeof Et(e)=="function";if(s||u){var p=s?"array":"iterable";return m("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,t,p),!1}}return!0}function p9(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Yt(e)){for(var s=0;s<e.length;s++)if(!GA(e[s],s))return}else{var u=Et(e);if(typeof u=="function"){var p=u.call(e);if(p)for(var y=p.next(),w=0;!y.done;y=p.next()){if(!GA(y.value,w))return;w++}}else m('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function jS(e,t,s,u,p){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:p}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=u,y.tail=s,y.tailMode=p)}function KA(e,t,s){var u=t.pendingProps,p=u.revealOrder,y=u.tail,w=u.children;d9(p),f9(y,p),p9(w,p),fo(e,t,w,s);var x=nu.current,A=MD(x,sy);if(A)x=ID(x,sy),t.flags|=yt;else{var B=e!==null&&(e.flags&yt)!==Ct;B&&u9(t,t.child,s),x=rg(x)}if(Df(t,x),(t.mode&an)===_t)t.memoizedState=null;else switch(p){case"forwards":{var I=c9(t.child),re;I===null?(re=t.child,t.child=null):(re=I.sibling,I.sibling=null),jS(t,!1,re,I,y);break}case"backwards":{var te=null,ue=t.child;for(t.child=null;ue!==null;){var ge=ue.alternate;if(ge!==null&&aw(ge)===null){t.child=ue;break}var Ce=ue.sibling;ue.sibling=te,te=ue,ue=Ce}jS(t,!0,te,null,y);break}case"together":{jS(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function h9(e,t,s){RD(t,t.stateNode.containerInfo);var u=t.pendingProps;return e===null?t.child=Zm(t,null,u,s):fo(e,t,u,s),t.child}var QA=!1;function m9(e,t,s){var u=t.type,p=u._context,y=t.pendingProps,w=t.memoizedProps,x=y.value;{"value"in y||QA||(QA=!0,m("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var A=t.type.propTypes;A&&Zl(A,y,"prop","Context.Provider")}if(UT(t,p,x),w!==null){var B=w.value;if(ie(B,x)){if(w.children===y.children&&!Rk())return vd(e,t,s)}else d5(t,p,s)}var I=y.children;return fo(e,t,I,s),t.child}var XA=!1;function g9(e,t,s){var u=t.type;u._context===void 0?u!==u.Consumer&&(XA||(XA=!0,m("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):u=u._context;var p=t.pendingProps,y=p.children;typeof y!="function"&&m("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),tg(t,s);var w=Sa(u);Ja(t);var x;return gy.current=t,Ar(!0),x=y(w),Ar(!1),ea(),t.flags|=$i,fo(e,t,x,s),t.child}function by(){iu=!0}function Ew(e,t){(t.mode&an)===_t&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Fr)}function vd(e,t,s){return e!==null&&(t.dependencies=e.dependencies),xA(),Fy(t.lanes),Bi(s,t.childLanes)?(u5(e,t),t.child):null}function v9(e,t,s){{var u=t.return;if(u===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===u.child)u.child=s;else{var p=u.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==t;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var y=u.deletions;return y===null?(u.deletions=[e],u.flags|=Pi):y.push(e),s.flags|=Fr,s}}function zS(e,t){var s=e.lanes;return!!Bi(s,t)}function y9(e,t,s){switch(t.tag){case N:HA(t),t.stateNode,Jm();break;case R:QT(t);break;case T:{var u=t.type;sc(u)&&Bk(t);break}case O:RD(t,t.stateNode.containerInfo);break;case V:{var p=t.memoizedProps.value,y=t.type._context;UT(t,y,p);break}case Z:{var w=Bi(s,t.childLanes);w&&(t.flags|=mn);{var x=t.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}}break;case K:{var A=t.memoizedState;if(A!==null){if(A.dehydrated!==null)return Df(t,rg(nu.current)),t.flags|=yt,null;var B=t.child,I=B.childLanes;if(Bi(s,I))return VA(e,t,s);Df(t,rg(nu.current));var re=vd(e,t,s);return re!==null?re.sibling:null}else Df(t,rg(nu.current));break}case Ve:{var te=(e.flags&yt)!==Ct,ue=Bi(s,t.childLanes);if(te){if(ue)return KA(e,t,s);t.flags|=yt}var ge=t.memoizedState;if(ge!==null&&(ge.rendering=null,ge.tail=null,ge.lastEffect=null),Df(t,nu.current),ue)break;return null}case nt:case He:return t.lanes=E,jA(e,t,s)}return vd(e,t,s)}function JA(e,t,s){if(t._debugNeedsRemount&&e!==null)return v9(e,t,vC(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var u=e.memoizedProps,p=t.pendingProps;if(u!==p||Rk()||t.type!==e.type)iu=!0;else{var y=zS(e,s);if(!y&&(t.flags&yt)===Ct)return iu=!1,y9(e,t,s);(e.flags&ps)!==Ct?iu=!0:iu=!1}}else if(iu=!1,pi()&&H6(t)){var w=t.index,x=q6();xT(t,x,w)}switch(t.lanes=E,t.tag){case $:return Z5(e,t,t.type,s);case Te:{var A=t.elementType;return X5(e,t,A,s)}case C:{var B=t.type,I=t.pendingProps,re=t.elementType===B?I:au(B,I);return NS(e,t,B,re,s)}case T:{var te=t.type,ue=t.pendingProps,ge=t.elementType===te?ue:au(te,ue);return UA(e,t,te,ge,s)}case N:return G5(e,t,s);case R:return K5(e,t,s);case j:return Q5(e,t);case K:return VA(e,t,s);case O:return h9(e,t,s);case q:{var Ce=t.type,tt=t.pendingProps,St=t.elementType===Ce?tt:au(Ce,tt);return BA(e,t,Ce,St,s)}case Q:return V5(e,t,s);case G:return W5(e,t,s);case Z:return Y5(e,t,s);case V:return m9(e,t,s);case Se:return g9(e,t,s);case ae:{var Pt=t.type,hn=t.pendingProps,cn=au(Pt,hn);if(t.type!==t.elementType){var se=Pt.propTypes;se&&Zl(se,cn,"prop",kn(Pt))}return cn=au(Pt.type,cn),MA(e,t,Pt,cn,s)}case pe:return IA(e,t,t.type,t.pendingProps,s);case ke:{var De=t.type,le=t.pendingProps,je=t.elementType===De?le:au(De,le);return J5(e,t,De,je,s)}case Ve:return KA(e,t,s);case Ke:break;case nt:return jA(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ug(e){e.flags|=mn}function ZA(e){e.flags|=Yn,e.flags|=Bl}var eF,US,tF,nF;eF=function(e,t,s,u){for(var p=t.child;p!==null;){if(p.tag===R||p.tag===j)j8(e,p.stateNode);else if(p.tag!==O&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)return;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},US=function(e,t){},tF=function(e,t,s,u,p){var y=e.memoizedProps;if(y!==u){var w=t.stateNode,x=LD(),A=U8(w,s,y,u,p,x);t.updateQueue=A,A&&ug(t)}},nF=function(e,t,s,u){s!==u&&ug(t)};function ky(e,t){if(!pi())switch(e.tailMode){case"hidden":{for(var s=e.tail,u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?e.tail=null:u.sibling=null;break}case"collapsed":{for(var p=e.tail,y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:y.sibling=null;break}}}function mi(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=E,u=Ct;if(t){if((e.mode&En)!==_t){for(var p=e.selfBaseDuration,y=e.child;y!==null;)s=Zt(s,Zt(y.lanes,y.childLanes)),u|=y.subtreeFlags&Sr,u|=y.flags&Sr,p+=y.treeBaseDuration,y=y.sibling;e.treeBaseDuration=p}else for(var w=e.child;w!==null;)s=Zt(s,Zt(w.lanes,w.childLanes)),u|=w.subtreeFlags&Sr,u|=w.flags&Sr,w.return=e,w=w.sibling;e.subtreeFlags|=u}else{if((e.mode&En)!==_t){for(var x=e.actualDuration,A=e.selfBaseDuration,B=e.child;B!==null;)s=Zt(s,Zt(B.lanes,B.childLanes)),u|=B.subtreeFlags,u|=B.flags,x+=B.actualDuration,A+=B.treeBaseDuration,B=B.sibling;e.actualDuration=x,e.treeBaseDuration=A}else for(var I=e.child;I!==null;)s=Zt(s,Zt(I.lanes,I.childLanes)),u|=I.subtreeFlags,u|=I.flags,I.return=e,I=I.sibling;e.subtreeFlags|=u}return e.childLanes=s,t}function b9(e,t,s){if(r5()&&(t.mode&an)!==_t&&(t.flags&yt)===Ct)return NT(t),Jm(),t.flags|=ba|Uc|Ga,!1;var u=Uk(t);if(s!==null&&s.dehydrated!==null)if(e===null){if(!u)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(t5(t),mi(t),(t.mode&En)!==_t){var p=s!==null;if(p){var y=t.child;y!==null&&(t.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if(Jm(),(t.flags&yt)===Ct&&(t.memoizedState=null),t.flags|=mn,mi(t),(t.mode&En)!==_t){var w=s!==null;if(w){var x=t.child;x!==null&&(t.treeBaseDuration-=x.treeBaseDuration)}}return!1}else return OT(),!0}function rF(e,t,s){var u=t.pendingProps;switch(hD(t),t.tag){case $:case Te:case pe:case C:case q:case Q:case G:case Z:case Se:case ae:return mi(t),null;case T:{var p=t.type;return sc(p)&&Lk(t),mi(t),null}case N:{var y=t.stateNode;if(ng(t),cD(t),zD(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),e===null||e.child===null){var w=Uk(t);if(w)ug(t);else if(e!==null){var x=e.memoizedState;(!x.isDehydrated||(t.flags&ba)!==Ct)&&(t.flags|=Wr,OT())}}return US(e,t),mi(t),null}case R:{BD(t);var A=KT(),B=t.type;if(e!==null&&t.stateNode!=null)tF(e,t,B,u,A),e.ref!==t.ref&&ZA(t);else{if(!u){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mi(t),null}var I=LD(),re=Uk(t);if(re)Z6(t,A,I)&&ug(t);else{var te=I8(B,u,A,I,t);eF(te,t,!1,!1),t.stateNode=te,z8(te,B,u,A)&&ug(t)}t.ref!==null&&ZA(t)}return mi(t),null}case j:{var ue=u;if(e&&t.stateNode!=null){var ge=e.memoizedProps;nF(e,t,ge,ue)}else{if(typeof ue!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ce=KT(),tt=LD(),St=Uk(t);St?e5(t)&&ug(t):t.stateNode=H8(ue,Ce,tt,t)}return mi(t),null}case K:{ag(t);var Pt=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var hn=b9(e,t,Pt);if(!hn)return t.flags&Ga?t:null}if((t.flags&yt)!==Ct)return t.lanes=s,(t.mode&En)!==_t&&fS(t),t;var cn=Pt!==null,se=e!==null&&e.memoizedState!==null;if(cn!==se&&cn){var De=t.child;if(De.flags|=Lr,(t.mode&an)!==_t){var le=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);le||MD(nu.current,JT)?k7():oC()}}var je=t.updateQueue;if(je!==null&&(t.flags|=mn),mi(t),(t.mode&En)!==_t&&cn){var ut=t.child;ut!==null&&(t.treeBaseDuration-=ut.treeBaseDuration)}return null}case O:return ng(t),US(e,t),e===null&&L6(t.stateNode.containerInfo),mi(t),null;case V:var it=t.type._context;return TD(it,t),mi(t),null;case ke:{var It=t.type;return sc(It)&&Lk(t),mi(t),null}case Ve:{ag(t);var Qt=t.memoizedState;if(Qt===null)return mi(t),null;var rr=(t.flags&yt)!==Ct,Ln=Qt.rendering;if(Ln===null)if(rr)ky(Qt,!1);else{var fa=D7()&&(e===null||(e.flags&yt)===Ct);if(!fa)for(var Bn=t.child;Bn!==null;){var ra=aw(Bn);if(ra!==null){rr=!0,t.flags|=yt,ky(Qt,!1);var qi=ra.updateQueue;return qi!==null&&(t.updateQueue=qi,t.flags|=mn),t.subtreeFlags=Ct,c5(t,s),Df(t,ID(nu.current,sy)),t.child}Bn=Bn.sibling}Qt.tail!==null&&Br()>CF()&&(t.flags|=yt,rr=!0,ky(Qt,!1),t.lanes=fv)}else{if(!rr){var ki=aw(Ln);if(ki!==null){t.flags|=yt,rr=!0;var _s=ki.updateQueue;if(_s!==null&&(t.updateQueue=_s,t.flags|=mn),ky(Qt,!0),Qt.tail===null&&Qt.tailMode==="hidden"&&!Ln.alternate&&!pi())return mi(t),null}else Br()*2-Qt.renderingStartTime>CF()&&s!==lo&&(t.flags|=yt,rr=!0,ky(Qt,!1),t.lanes=fv)}if(Qt.isBackwards)Ln.sibling=t.child,t.child=Ln;else{var mo=Qt.last;mo!==null?mo.sibling=Ln:t.child=Ln,Qt.last=Ln}}if(Qt.tail!==null){var go=Qt.tail;Qt.rendering=go,Qt.tail=go.sibling,Qt.renderingStartTime=Br(),go.sibling=null;var Vi=nu.current;return rr?Vi=ID(Vi,sy):Vi=rg(Vi),Df(t,Vi),go}return mi(t),null}case Ke:break;case nt:case He:{iC(t);var Dd=t.memoizedState,vg=Dd!==null;if(e!==null){var Ry=e.memoizedState,mc=Ry!==null;mc!==vg&&(t.flags|=Lr)}return!vg||(t.mode&an)===_t?mi(t):Bi(hc,lo)&&(mi(t),t.subtreeFlags&(Fr|mn)&&(t.flags|=Lr)),null}case dt:return null;case Me:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function k9(e,t,s){switch(hD(t),t.tag){case T:{var u=t.type;sc(u)&&Lk(t);var p=t.flags;return p&Ga?(t.flags=p&-65537|yt,(t.mode&En)!==_t&&fS(t),t):null}case N:{t.stateNode,ng(t),cD(t),zD();var y=t.flags;return(y&Ga)!==Ct&&(y&yt)===Ct?(t.flags=y&-65537|yt,t):null}case R:return BD(t),null;case K:{ag(t);var w=t.memoizedState;if(w!==null&&w.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Jm()}var x=t.flags;return x&Ga?(t.flags=x&-65537|yt,(t.mode&En)!==_t&&fS(t),t):null}case Ve:return ag(t),null;case O:return ng(t),null;case V:var A=t.type._context;return TD(A,t),null;case nt:case He:return iC(t),null;case dt:return null;default:return null}}function aF(e,t,s){switch(hD(t),t.tag){case T:{var u=t.type.childContextTypes;u!=null&&Lk(t);break}case N:{t.stateNode,ng(t),cD(t),zD();break}case R:{BD(t);break}case O:ng(t);break;case K:ag(t);break;case Ve:ag(t);break;case V:var p=t.type._context;TD(p,t);break;case nt:case He:iC(t);break}}var iF=null;iF=new Set;var Tw=!1,gi=!1,w9=typeof WeakSet=="function"?WeakSet:Set,gt=null,cg=null,dg=null;function D9(e){ao(null,function(){throw e}),zc()}var S9=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&En)try{fc(),t.componentWillUnmount()}finally{dc(e)}else t.componentWillUnmount()};function oF(e,t){try{_f(La,e)}catch(s){yr(e,t,s)}}function HS(e,t,s){try{S9(e,s)}catch(u){yr(e,t,u)}}function C9(e,t,s){try{s.componentDidMount()}catch(u){yr(e,t,u)}}function sF(e,t){try{uF(e)}catch(s){yr(e,t,s)}}function fg(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var u;try{if(rt&&Dt&&e.mode&En)try{fc(),u=s(null)}finally{dc(e)}else u=s(null)}catch(p){yr(e,t,p)}typeof u=="function"&&m("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(e))}else s.current=null}function Aw(e,t,s){try{s()}catch(u){yr(e,t,u)}}var lF=!1;function _9(e,t){B8(e.containerInfo),gt=t,x9();var s=lF;return lF=!1,s}function x9(){for(;gt!==null;){var e=gt,t=e.child;(e.subtreeFlags&Ys)!==Ct&&t!==null?(t.return=e,gt=t):E9()}}function E9(){for(;gt!==null;){var e=gt;Fn(e);try{T9(e)}catch(s){yr(e,e.return,s)}ur();var t=e.sibling;if(t!==null){t.return=e.return,gt=t;return}gt=e.return}}function T9(e){var t=e.alternate,s=e.flags;if((s&Wr)!==Ct){switch(Fn(e),e.tag){case C:case q:case pe:break;case T:{if(t!==null){var u=t.memoizedProps,p=t.memoizedState,y=e.stateNode;e.type===e.elementType&&!ph&&(y.props!==e.memoizedProps&&m("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(e)||"instance"),y.state!==e.memoizedState&&m("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(e)||"instance"));var w=y.getSnapshotBeforeUpdate(e.elementType===e.type?u:au(e.type,u),p);{var x=iF;w===void 0&&!x.has(e.type)&&(x.add(e.type),m("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Mt(e)))}y.__reactInternalSnapshotBeforeUpdate=w}break}case N:{{var A=e.stateNode;l6(A.containerInfo)}break}case R:case j:case O:case ke:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ur()}}function ou(e,t,s){var u=t.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var y=p.next,w=y;do{if((w.tag&e)===e){var x=w.destroy;w.destroy=void 0,x!==void 0&&((e&hi)!==Wo?ms(t):(e&La)!==Wo&&Vc(t),(e&lc)!==Wo&&Py(!0),Aw(t,s,x),(e&lc)!==Wo&&Py(!1),(e&hi)!==Wo?Zs():(e&La)!==Wo&&$p())}w=w.next}while(w!==y)}}function _f(e,t){var s=t.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var p=u.next,y=p;do{if((y.tag&e)===e){(e&hi)!==Wo?qc(t):(e&La)!==Wo&&af(t);var w=y.create;(e&lc)!==Wo&&Py(!0),y.destroy=w(),(e&lc)!==Wo&&Py(!1),(e&hi)!==Wo?rf():(e&La)!==Wo&&hm();{var x=y.destroy;if(x!==void 0&&typeof x!="function"){var A=void 0;(y.tag&La)!==Ct?A="useLayoutEffect":(y.tag&lc)!==Ct?A="useInsertionEffect":A="useEffect";var B=void 0;x===null?B=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof x.then=="function"?B=`
|
|
263
|
+
Check the render method of \``+u+"`.");var p=u||"",y=e._debugSource;y&&(p=y.fileName+":"+y.lineNumber),$S[p]||($S[p]=!0,m("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(t.defaultProps!==void 0){var w=kn(t)||"Unknown";yy[w]||(m("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",w),yy[w]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var x=kn(t)||"Unknown";FS[x]||(m("%s: Function components do not support getDerivedStateFromProps.",x),FS[x]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var A=kn(t)||"Unknown";AS[A]||(m("%s: Function components do not support contextType.",A),AS[A]=!0)}}}var LS={dehydrated:null,treeContext:null,retryLane:M};function BS(e){return{baseLanes:e,cachePool:H5(),transitions:null}}function e9(e,t){var s=null;return{baseLanes:Zt(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function t9(e,t,s,u){if(t!==null){var p=t.memoizedState;if(p===null)return!1}return MD(e,sy)}function n9(e,t){return Up(e.childLanes,t)}function VA(e,t,s){var u=t.pendingProps;d7(t)&&(t.flags|=yt);var p=nu.current,y=!1,w=(t.flags&yt)!==Ct;if(w||t9(p,e)?(y=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(p=k5(p,JT)),p=rg(p),Df(t,p),e===null){yD(t);var x=t.memoizedState;if(x!==null){var A=x.dehydrated;if(A!==null)return s9(t,A)}var B=u.children,I=u.fallback;if(y){var re=r9(t,B,I,s),te=t.child;return te.memoizedState=BS(s),t.memoizedState=LS,re}else return MS(t,B)}else{var ue=e.memoizedState;if(ue!==null){var ge=ue.dehydrated;if(ge!==null)return l9(e,t,w,u,ge,ue,s)}if(y){var Ce=u.fallback,tt=u.children,St=i9(e,t,tt,Ce,s),Pt=t.child,hn=e.child.memoizedState;return Pt.memoizedState=hn===null?BS(s):e9(hn,s),Pt.childLanes=n9(e,s),t.memoizedState=LS,St}else{var cn=u.children,se=a9(e,t,cn,s);return t.memoizedState=null,se}}}function MS(e,t,s){var u=e.mode,p={mode:"visible",children:t},y=IS(p,u);return y.return=e,e.child=y,y}function r9(e,t,s,u){var p=e.mode,y=e.child,w={mode:"hidden",children:t},x,A;return(p&an)===_t&&y!==null?(x=y,x.childLanes=E,x.pendingProps=w,e.mode&En&&(x.actualDuration=0,x.actualStartTime=-1,x.selfBaseDuration=0,x.treeBaseDuration=0),A=Ff(s,p,u,null)):(x=IS(w,p),A=Ff(s,p,u,null)),x.return=e,A.return=e,x.sibling=A,e.child=x,A}function IS(e,t,s){return VF(e,t,E,null)}function WA(e,t){return yh(e,t)}function a9(e,t,s,u){var p=e.child,y=p.sibling,w=WA(p,{mode:"visible",children:s});if((t.mode&an)===_t&&(w.lanes=u),w.return=t,w.sibling=null,y!==null){var x=t.deletions;x===null?(t.deletions=[y],t.flags|=Pi):x.push(y)}return t.child=w,w}function i9(e,t,s,u,p){var y=t.mode,w=e.child,x=w.sibling,A={mode:"hidden",children:s},B;if((y&an)===_t&&t.child!==w){var I=t.child;B=I,B.childLanes=E,B.pendingProps=A,t.mode&En&&(B.actualDuration=0,B.actualStartTime=-1,B.selfBaseDuration=w.selfBaseDuration,B.treeBaseDuration=w.treeBaseDuration),t.deletions=null}else B=WA(w,A),B.subtreeFlags=w.subtreeFlags&Sr;var re;return x!==null?re=yh(x,u):(re=Ff(u,y,p,null),re.flags|=Fr),re.return=t,B.return=t,B.sibling=re,t.child=B,re}function xw(e,t,s,u){u!==null&&bD(u),Zm(t,e.child,null,s);var p=t.pendingProps,y=p.children,w=MS(t,y);return w.flags|=Fr,t.memoizedState=null,w}function o9(e,t,s,u,p){var y=t.mode,w={mode:"visible",children:s},x=IS(w,y),A=Ff(u,y,p,null);return A.flags|=Fr,x.return=t,A.return=t,x.sibling=A,t.child=x,(t.mode&an)!==_t&&Zm(t,e.child,null,p),A}function s9(e,t,s){return(e.mode&an)===_t?(m("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=U):rD(t)?e.lanes=et:e.lanes=lo,null}function l9(e,t,s,u,p,y,w){if(s)if(t.flags&ba){t.flags&=-257;var x=_S(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return xw(e,t,w,x)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=yt,null;var A=u.children,B=u.fallback,I=o9(e,t,A,B,w),re=t.child;return re.memoizedState=BS(w),t.memoizedState=LS,I}else{if(K6(),(t.mode&an)===_t)return xw(e,t,w,null);if(rD(p)){var te,ue,ge;{var Ce=f6(p);te=Ce.digest,ue=Ce.message,ge=Ce.stack}var tt;ue?tt=new Error(ue):tt=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var St=_S(tt,te,ge);return xw(e,t,w,St)}var Pt=Bi(w,e.childLanes);if(iu||Pt){var hn=Mw();if(hn!==null){var cn=zb(hn,w);if(cn!==M&&cn!==y.retryLane){y.retryLane=cn;var se=dr;Vo(e,cn),Ua(hn,e,cn,se)}}oC();var De=_S(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return xw(e,t,w,De)}else if(mT(p)){t.flags|=yt,t.child=e.child;var le=Nz.bind(null,e);return p6(p,le),null}else{J6(t,p,y.treeContext);var je=u.children,ut=MS(t,je);return ut.flags|=Ni,ut}}}function YA(e,t,s){e.lanes=Zt(e.lanes,t);var u=e.alternate;u!==null&&(u.lanes=Zt(u.lanes,t)),AD(e.return,t,s)}function u9(e,t,s){for(var u=t;u!==null;){if(u.tag===K){var p=u.memoizedState;p!==null&&YA(u,s,e)}else if(u.tag===Ve)YA(u,s,e);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function c9(e){for(var t=e,s=null;t!==null;){var u=t.alternate;u!==null&&aw(u)===null&&(s=t),t=t.sibling}return s}function d9(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!PS[e])if(PS[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{m('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{m('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:m('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else m('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function f9(e,t){e!==void 0&&!_w[e]&&(e!=="collapsed"&&e!=="hidden"?(_w[e]=!0,m('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(_w[e]=!0,m('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function GA(e,t){{var s=Yt(e),u=!s&&typeof Et(e)=="function";if(s||u){var p=s?"array":"iterable";return m("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,t,p),!1}}return!0}function p9(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Yt(e)){for(var s=0;s<e.length;s++)if(!GA(e[s],s))return}else{var u=Et(e);if(typeof u=="function"){var p=u.call(e);if(p)for(var y=p.next(),w=0;!y.done;y=p.next()){if(!GA(y.value,w))return;w++}}else m('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function jS(e,t,s,u,p){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:p}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=u,y.tail=s,y.tailMode=p)}function KA(e,t,s){var u=t.pendingProps,p=u.revealOrder,y=u.tail,w=u.children;d9(p),f9(y,p),p9(w,p),fo(e,t,w,s);var x=nu.current,A=MD(x,sy);if(A)x=ID(x,sy),t.flags|=yt;else{var B=e!==null&&(e.flags&yt)!==Ct;B&&u9(t,t.child,s),x=rg(x)}if(Df(t,x),(t.mode&an)===_t)t.memoizedState=null;else switch(p){case"forwards":{var I=c9(t.child),re;I===null?(re=t.child,t.child=null):(re=I.sibling,I.sibling=null),jS(t,!1,re,I,y);break}case"backwards":{var te=null,ue=t.child;for(t.child=null;ue!==null;){var ge=ue.alternate;if(ge!==null&&aw(ge)===null){t.child=ue;break}var Ce=ue.sibling;ue.sibling=te,te=ue,ue=Ce}jS(t,!0,te,null,y);break}case"together":{jS(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function h9(e,t,s){RD(t,t.stateNode.containerInfo);var u=t.pendingProps;return e===null?t.child=Zm(t,null,u,s):fo(e,t,u,s),t.child}var QA=!1;function m9(e,t,s){var u=t.type,p=u._context,y=t.pendingProps,w=t.memoizedProps,x=y.value;{"value"in y||QA||(QA=!0,m("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var A=t.type.propTypes;A&&Zl(A,y,"prop","Context.Provider")}if(UT(t,p,x),w!==null){var B=w.value;if(ie(B,x)){if(w.children===y.children&&!Rk())return vd(e,t,s)}else d5(t,p,s)}var I=y.children;return fo(e,t,I,s),t.child}var XA=!1;function g9(e,t,s){var u=t.type;u._context===void 0?u!==u.Consumer&&(XA||(XA=!0,m("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):u=u._context;var p=t.pendingProps,y=p.children;typeof y!="function"&&m("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),tg(t,s);var w=Sa(u);Ja(t);var x;return gy.current=t,Ar(!0),x=y(w),Ar(!1),ea(),t.flags|=$i,fo(e,t,x,s),t.child}function by(){iu=!0}function Ew(e,t){(t.mode&an)===_t&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Fr)}function vd(e,t,s){return e!==null&&(t.dependencies=e.dependencies),xA(),Fy(t.lanes),Bi(s,t.childLanes)?(u5(e,t),t.child):null}function v9(e,t,s){{var u=t.return;if(u===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===u.child)u.child=s;else{var p=u.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==t;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var y=u.deletions;return y===null?(u.deletions=[e],u.flags|=Pi):y.push(e),s.flags|=Fr,s}}function zS(e,t){var s=e.lanes;return!!Bi(s,t)}function y9(e,t,s){switch(t.tag){case N:HA(t),t.stateNode,Jm();break;case R:QT(t);break;case T:{var u=t.type;sc(u)&&Bk(t);break}case O:RD(t,t.stateNode.containerInfo);break;case V:{var p=t.memoizedProps.value,y=t.type._context;UT(t,y,p);break}case Z:{var w=Bi(s,t.childLanes);w&&(t.flags|=mn);{var x=t.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}}break;case K:{var A=t.memoizedState;if(A!==null){if(A.dehydrated!==null)return Df(t,rg(nu.current)),t.flags|=yt,null;var B=t.child,I=B.childLanes;if(Bi(s,I))return VA(e,t,s);Df(t,rg(nu.current));var re=vd(e,t,s);return re!==null?re.sibling:null}else Df(t,rg(nu.current));break}case Ve:{var te=(e.flags&yt)!==Ct,ue=Bi(s,t.childLanes);if(te){if(ue)return KA(e,t,s);t.flags|=yt}var ge=t.memoizedState;if(ge!==null&&(ge.rendering=null,ge.tail=null,ge.lastEffect=null),Df(t,nu.current),ue)break;return null}case nt:case He:return t.lanes=E,jA(e,t,s)}return vd(e,t,s)}function JA(e,t,s){if(t._debugNeedsRemount&&e!==null)return v9(e,t,vC(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var u=e.memoizedProps,p=t.pendingProps;if(u!==p||Rk()||t.type!==e.type)iu=!0;else{var y=zS(e,s);if(!y&&(t.flags&yt)===Ct)return iu=!1,y9(e,t,s);(e.flags&ps)!==Ct?iu=!0:iu=!1}}else if(iu=!1,pi()&&H6(t)){var w=t.index,x=q6();xT(t,x,w)}switch(t.lanes=E,t.tag){case $:return Z5(e,t,t.type,s);case Te:{var A=t.elementType;return X5(e,t,A,s)}case C:{var B=t.type,I=t.pendingProps,re=t.elementType===B?I:au(B,I);return NS(e,t,B,re,s)}case T:{var te=t.type,ue=t.pendingProps,ge=t.elementType===te?ue:au(te,ue);return UA(e,t,te,ge,s)}case N:return G5(e,t,s);case R:return K5(e,t,s);case j:return Q5(e,t);case K:return VA(e,t,s);case O:return h9(e,t,s);case q:{var Ce=t.type,tt=t.pendingProps,St=t.elementType===Ce?tt:au(Ce,tt);return BA(e,t,Ce,St,s)}case Q:return V5(e,t,s);case G:return W5(e,t,s);case Z:return Y5(e,t,s);case V:return m9(e,t,s);case Se:return g9(e,t,s);case ae:{var Pt=t.type,hn=t.pendingProps,cn=au(Pt,hn);if(t.type!==t.elementType){var se=Pt.propTypes;se&&Zl(se,cn,"prop",kn(Pt))}return cn=au(Pt.type,cn),MA(e,t,Pt,cn,s)}case pe:return IA(e,t,t.type,t.pendingProps,s);case ke:{var De=t.type,le=t.pendingProps,je=t.elementType===De?le:au(De,le);return J5(e,t,De,je,s)}case Ve:return KA(e,t,s);case Ke:break;case nt:return jA(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ug(e){e.flags|=mn}function ZA(e){e.flags|=Yn,e.flags|=Bl}var eF,US,tF,nF;eF=function(e,t,s,u){for(var p=t.child;p!==null;){if(p.tag===R||p.tag===j)j8(e,p.stateNode);else if(p.tag!==O&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)return;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},US=function(e,t){},tF=function(e,t,s,u,p){var y=e.memoizedProps;if(y!==u){var w=t.stateNode,x=LD(),A=U8(w,s,y,u,p,x);t.updateQueue=A,A&&ug(t)}},nF=function(e,t,s,u){s!==u&&ug(t)};function ky(e,t){if(!pi())switch(e.tailMode){case"hidden":{for(var s=e.tail,u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?e.tail=null:u.sibling=null;break}case"collapsed":{for(var p=e.tail,y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:y.sibling=null;break}}}function mi(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=E,u=Ct;if(t){if((e.mode&En)!==_t){for(var p=e.selfBaseDuration,y=e.child;y!==null;)s=Zt(s,Zt(y.lanes,y.childLanes)),u|=y.subtreeFlags&Sr,u|=y.flags&Sr,p+=y.treeBaseDuration,y=y.sibling;e.treeBaseDuration=p}else for(var w=e.child;w!==null;)s=Zt(s,Zt(w.lanes,w.childLanes)),u|=w.subtreeFlags&Sr,u|=w.flags&Sr,w.return=e,w=w.sibling;e.subtreeFlags|=u}else{if((e.mode&En)!==_t){for(var x=e.actualDuration,A=e.selfBaseDuration,B=e.child;B!==null;)s=Zt(s,Zt(B.lanes,B.childLanes)),u|=B.subtreeFlags,u|=B.flags,x+=B.actualDuration,A+=B.treeBaseDuration,B=B.sibling;e.actualDuration=x,e.treeBaseDuration=A}else for(var I=e.child;I!==null;)s=Zt(s,Zt(I.lanes,I.childLanes)),u|=I.subtreeFlags,u|=I.flags,I.return=e,I=I.sibling;e.subtreeFlags|=u}return e.childLanes=s,t}function b9(e,t,s){if(r5()&&(t.mode&an)!==_t&&(t.flags&yt)===Ct)return NT(t),Jm(),t.flags|=ba|Uc|Ga,!1;var u=Uk(t);if(s!==null&&s.dehydrated!==null)if(e===null){if(!u)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(t5(t),mi(t),(t.mode&En)!==_t){var p=s!==null;if(p){var y=t.child;y!==null&&(t.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if(Jm(),(t.flags&yt)===Ct&&(t.memoizedState=null),t.flags|=mn,mi(t),(t.mode&En)!==_t){var w=s!==null;if(w){var x=t.child;x!==null&&(t.treeBaseDuration-=x.treeBaseDuration)}}return!1}else return OT(),!0}function rF(e,t,s){var u=t.pendingProps;switch(hD(t),t.tag){case $:case Te:case pe:case C:case q:case Q:case G:case Z:case Se:case ae:return mi(t),null;case T:{var p=t.type;return sc(p)&&Lk(t),mi(t),null}case N:{var y=t.stateNode;if(ng(t),cD(t),zD(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),e===null||e.child===null){var w=Uk(t);if(w)ug(t);else if(e!==null){var x=e.memoizedState;(!x.isDehydrated||(t.flags&ba)!==Ct)&&(t.flags|=Wr,OT())}}return US(e,t),mi(t),null}case R:{BD(t);var A=KT(),B=t.type;if(e!==null&&t.stateNode!=null)tF(e,t,B,u,A),e.ref!==t.ref&&ZA(t);else{if(!u){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mi(t),null}var I=LD(),re=Uk(t);if(re)Z6(t,A,I)&&ug(t);else{var te=I8(B,u,A,I,t);eF(te,t,!1,!1),t.stateNode=te,z8(te,B,u,A)&&ug(t)}t.ref!==null&&ZA(t)}return mi(t),null}case j:{var ue=u;if(e&&t.stateNode!=null){var ge=e.memoizedProps;nF(e,t,ge,ue)}else{if(typeof ue!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ce=KT(),tt=LD(),St=Uk(t);St?e5(t)&&ug(t):t.stateNode=H8(ue,Ce,tt,t)}return mi(t),null}case K:{ag(t);var Pt=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var hn=b9(e,t,Pt);if(!hn)return t.flags&Ga?t:null}if((t.flags&yt)!==Ct)return t.lanes=s,(t.mode&En)!==_t&&fS(t),t;var cn=Pt!==null,se=e!==null&&e.memoizedState!==null;if(cn!==se&&cn){var De=t.child;if(De.flags|=Lr,(t.mode&an)!==_t){var le=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);le||MD(nu.current,JT)?kz():oC()}}var je=t.updateQueue;if(je!==null&&(t.flags|=mn),mi(t),(t.mode&En)!==_t&&cn){var ut=t.child;ut!==null&&(t.treeBaseDuration-=ut.treeBaseDuration)}return null}case O:return ng(t),US(e,t),e===null&&L6(t.stateNode.containerInfo),mi(t),null;case V:var it=t.type._context;return TD(it,t),mi(t),null;case ke:{var It=t.type;return sc(It)&&Lk(t),mi(t),null}case Ve:{ag(t);var Qt=t.memoizedState;if(Qt===null)return mi(t),null;var rr=(t.flags&yt)!==Ct,Ln=Qt.rendering;if(Ln===null)if(rr)ky(Qt,!1);else{var fa=Dz()&&(e===null||(e.flags&yt)===Ct);if(!fa)for(var Bn=t.child;Bn!==null;){var ra=aw(Bn);if(ra!==null){rr=!0,t.flags|=yt,ky(Qt,!1);var qi=ra.updateQueue;return qi!==null&&(t.updateQueue=qi,t.flags|=mn),t.subtreeFlags=Ct,c5(t,s),Df(t,ID(nu.current,sy)),t.child}Bn=Bn.sibling}Qt.tail!==null&&Br()>CF()&&(t.flags|=yt,rr=!0,ky(Qt,!1),t.lanes=fv)}else{if(!rr){var ki=aw(Ln);if(ki!==null){t.flags|=yt,rr=!0;var _s=ki.updateQueue;if(_s!==null&&(t.updateQueue=_s,t.flags|=mn),ky(Qt,!0),Qt.tail===null&&Qt.tailMode==="hidden"&&!Ln.alternate&&!pi())return mi(t),null}else Br()*2-Qt.renderingStartTime>CF()&&s!==lo&&(t.flags|=yt,rr=!0,ky(Qt,!1),t.lanes=fv)}if(Qt.isBackwards)Ln.sibling=t.child,t.child=Ln;else{var mo=Qt.last;mo!==null?mo.sibling=Ln:t.child=Ln,Qt.last=Ln}}if(Qt.tail!==null){var go=Qt.tail;Qt.rendering=go,Qt.tail=go.sibling,Qt.renderingStartTime=Br(),go.sibling=null;var Vi=nu.current;return rr?Vi=ID(Vi,sy):Vi=rg(Vi),Df(t,Vi),go}return mi(t),null}case Ke:break;case nt:case He:{iC(t);var Dd=t.memoizedState,vg=Dd!==null;if(e!==null){var Ry=e.memoizedState,mc=Ry!==null;mc!==vg&&(t.flags|=Lr)}return!vg||(t.mode&an)===_t?mi(t):Bi(hc,lo)&&(mi(t),t.subtreeFlags&(Fr|mn)&&(t.flags|=Lr)),null}case dt:return null;case Me:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function k9(e,t,s){switch(hD(t),t.tag){case T:{var u=t.type;sc(u)&&Lk(t);var p=t.flags;return p&Ga?(t.flags=p&-65537|yt,(t.mode&En)!==_t&&fS(t),t):null}case N:{t.stateNode,ng(t),cD(t),zD();var y=t.flags;return(y&Ga)!==Ct&&(y&yt)===Ct?(t.flags=y&-65537|yt,t):null}case R:return BD(t),null;case K:{ag(t);var w=t.memoizedState;if(w!==null&&w.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Jm()}var x=t.flags;return x&Ga?(t.flags=x&-65537|yt,(t.mode&En)!==_t&&fS(t),t):null}case Ve:return ag(t),null;case O:return ng(t),null;case V:var A=t.type._context;return TD(A,t),null;case nt:case He:return iC(t),null;case dt:return null;default:return null}}function aF(e,t,s){switch(hD(t),t.tag){case T:{var u=t.type.childContextTypes;u!=null&&Lk(t);break}case N:{t.stateNode,ng(t),cD(t),zD();break}case R:{BD(t);break}case O:ng(t);break;case K:ag(t);break;case Ve:ag(t);break;case V:var p=t.type._context;TD(p,t);break;case nt:case He:iC(t);break}}var iF=null;iF=new Set;var Tw=!1,gi=!1,w9=typeof WeakSet=="function"?WeakSet:Set,gt=null,cg=null,dg=null;function D9(e){ao(null,function(){throw e}),zc()}var S9=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&En)try{fc(),t.componentWillUnmount()}finally{dc(e)}else t.componentWillUnmount()};function oF(e,t){try{_f(La,e)}catch(s){yr(e,t,s)}}function HS(e,t,s){try{S9(e,s)}catch(u){yr(e,t,u)}}function C9(e,t,s){try{s.componentDidMount()}catch(u){yr(e,t,u)}}function sF(e,t){try{uF(e)}catch(s){yr(e,t,s)}}function fg(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var u;try{if(rt&&Dt&&e.mode&En)try{fc(),u=s(null)}finally{dc(e)}else u=s(null)}catch(p){yr(e,t,p)}typeof u=="function"&&m("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(e))}else s.current=null}function Aw(e,t,s){try{s()}catch(u){yr(e,t,u)}}var lF=!1;function _9(e,t){B8(e.containerInfo),gt=t,x9();var s=lF;return lF=!1,s}function x9(){for(;gt!==null;){var e=gt,t=e.child;(e.subtreeFlags&Ys)!==Ct&&t!==null?(t.return=e,gt=t):E9()}}function E9(){for(;gt!==null;){var e=gt;Fn(e);try{T9(e)}catch(s){yr(e,e.return,s)}ur();var t=e.sibling;if(t!==null){t.return=e.return,gt=t;return}gt=e.return}}function T9(e){var t=e.alternate,s=e.flags;if((s&Wr)!==Ct){switch(Fn(e),e.tag){case C:case q:case pe:break;case T:{if(t!==null){var u=t.memoizedProps,p=t.memoizedState,y=e.stateNode;e.type===e.elementType&&!ph&&(y.props!==e.memoizedProps&&m("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(e)||"instance"),y.state!==e.memoizedState&&m("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(e)||"instance"));var w=y.getSnapshotBeforeUpdate(e.elementType===e.type?u:au(e.type,u),p);{var x=iF;w===void 0&&!x.has(e.type)&&(x.add(e.type),m("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Mt(e)))}y.__reactInternalSnapshotBeforeUpdate=w}break}case N:{{var A=e.stateNode;l6(A.containerInfo)}break}case R:case j:case O:case ke:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ur()}}function ou(e,t,s){var u=t.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var y=p.next,w=y;do{if((w.tag&e)===e){var x=w.destroy;w.destroy=void 0,x!==void 0&&((e&hi)!==Wo?ms(t):(e&La)!==Wo&&Vc(t),(e&lc)!==Wo&&Py(!0),Aw(t,s,x),(e&lc)!==Wo&&Py(!1),(e&hi)!==Wo?Zs():(e&La)!==Wo&&$p())}w=w.next}while(w!==y)}}function _f(e,t){var s=t.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var p=u.next,y=p;do{if((y.tag&e)===e){(e&hi)!==Wo?qc(t):(e&La)!==Wo&&af(t);var w=y.create;(e&lc)!==Wo&&Py(!0),y.destroy=w(),(e&lc)!==Wo&&Py(!1),(e&hi)!==Wo?rf():(e&La)!==Wo&&hm();{var x=y.destroy;if(x!==void 0&&typeof x!="function"){var A=void 0;(y.tag&La)!==Ct?A="useLayoutEffect":(y.tag&lc)!==Ct?A="useInsertionEffect":A="useEffect";var B=void 0;x===null?B=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof x.then=="function"?B=`
|
|
264
264
|
|
|
265
265
|
It looks like you wrote `+A+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
266
266
|
|
|
@@ -273,11 +273,11 @@ It looks like you wrote `+A+`(async () => ...) or returned a Promise. Instead, w
|
|
|
273
273
|
fetchData();
|
|
274
274
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
275
275
|
|
|
276
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:B=" You returned: "+x,m("%s must not return anything besides a function, which is used for clean-up.%s",A,B)}}}y=y.next}while(y!==p)}}function A9(e,t){if((t.flags&mn)!==Ct)switch(t.tag){case Z:{var s=t.stateNode.passiveEffectDuration,u=t.memoizedProps,p=u.id,y=u.onPostCommit,w=CA(),x=t.alternate===null?"mount":"update";SA()&&(x="nested-update"),typeof y=="function"&&y(p,x,s,w);var A=t.return;e:for(;A!==null;){switch(A.tag){case N:var B=A.stateNode;B.passiveEffectDuration+=s;break e;case Z:var I=A.stateNode;I.passiveEffectDuration+=s;break e}A=A.return}break}}}function F9(e,t,s,u){if((s.flags&Ks)!==Ct)switch(s.tag){case C:case q:case pe:{if(!gi)if(s.mode&En)try{fc(),_f(La|Ra,s)}finally{dc(s)}else _f(La|Ra,s);break}case T:{var p=s.stateNode;if(s.flags&mn&&!gi)if(t===null)if(s.type===s.elementType&&!ph&&(p.props!==s.memoizedProps&&m("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&m("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),s.mode&En)try{fc(),p.componentDidMount()}finally{dc(s)}else p.componentDidMount();else{var y=s.elementType===s.type?t.memoizedProps:au(s.type,t.memoizedProps),w=t.memoizedState;if(s.type===s.elementType&&!ph&&(p.props!==s.memoizedProps&&m("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&m("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),s.mode&En)try{fc(),p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}finally{dc(s)}else p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}var x=s.updateQueue;x!==null&&(s.type===s.elementType&&!ph&&(p.props!==s.memoizedProps&&m("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&m("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),GT(s,x,p));break}case N:{var A=s.updateQueue;if(A!==null){var B=null;if(s.child!==null)switch(s.child.tag){case R:B=s.child.stateNode;break;case T:B=s.child.stateNode;break}GT(s,A,B)}break}case R:{var I=s.stateNode;if(t===null&&s.flags&mn){var re=s.type,te=s.memoizedProps;G8(I,re,te)}break}case j:break;case O:break;case Z:{{var ue=s.memoizedProps,ge=ue.onCommit,Ce=ue.onRender,tt=s.stateNode.effectDuration,St=CA(),Pt=t===null?"mount":"update";SA()&&(Pt="nested-update"),typeof Ce=="function"&&Ce(s.memoizedProps.id,Pt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,St);{typeof ge=="function"&&ge(s.memoizedProps.id,Pt,tt,St),E7(s);var hn=s.return;e:for(;hn!==null;){switch(hn.tag){case N:var cn=hn.stateNode;cn.effectDuration+=tt;break e;case Z:var se=hn.stateNode;se.effectDuration+=tt;break e}hn=hn.return}}}break}case K:{M9(e,s);break}case Ve:case ke:case Ke:case nt:case He:case Me:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}gi||s.flags&Yn&&uF(s)}function $9(e){switch(e.tag){case C:case q:case pe:{if(e.mode&En)try{fc(),oF(e,e.return)}finally{dc(e)}else oF(e,e.return);break}case T:{var t=e.stateNode;typeof t.componentDidMount=="function"&&C9(e,e.return,t),sF(e,e.return);break}case R:{sF(e,e.return);break}}}function P9(e,t){for(var s=null,u=e;;){if(u.tag===R){if(s===null){s=u;try{var p=u.stateNode;t?a6(p):o6(u.stateNode,u.memoizedProps)}catch(w){yr(e,e.return,w)}}}else if(u.tag===j){if(s===null)try{var y=u.stateNode;t?i6(y):s6(y,u.memoizedProps)}catch(w){yr(e,e.return,w)}}else if(!((u.tag===nt||u.tag===He)&&u.memoizedState!==null&&u!==e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;s===u&&(s=null),u=u.return}s===u&&(s=null),u.sibling.return=u.return,u=u.sibling}}function uF(e){var t=e.ref;if(t!==null){var s=e.stateNode,u;switch(e.tag){case R:u=s;break;default:u=s}if(typeof t=="function"){var p;if(e.mode&En)try{fc(),p=t(u)}finally{dc(e)}else p=t(u);typeof p=="function"&&m("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(e))}else t.hasOwnProperty("current")||m("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Mt(e)),t.current=u}}function N9(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function cF(e){var t=e.alternate;t!==null&&(e.alternate=null,cF(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===R){var s=e.stateNode;s!==null&&I6(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function O9(e){for(var t=e.return;t!==null;){if(dF(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function dF(e){return e.tag===R||e.tag===N||e.tag===O}function fF(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||dF(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==R&&t.tag!==j&&t.tag!==Ge;){if(t.flags&Fr||t.child===null||t.tag===O)continue e;t.child.return=t,t=t.child}if(!(t.flags&Fr))return t.stateNode}}function R9(e){var t=O9(e);switch(t.tag){case R:{var s=t.stateNode;t.flags&Ft&&(hT(s),t.flags&=-33);var u=fF(e);VS(e,u,s);break}case N:case O:{var p=t.stateNode.containerInfo,y=fF(e);qS(e,y,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function qS(e,t,s){var u=e.tag,p=u===R||u===j;if(p){var y=e.stateNode;t?e6(s,y,t):J8(s,y)}else if(u!==O){var w=e.child;if(w!==null){qS(w,t,s);for(var x=w.sibling;x!==null;)qS(x,t,s),x=x.sibling}}}function VS(e,t,s){var u=e.tag,p=u===R||u===j;if(p){var y=e.stateNode;t?Z8(s,y,t):X8(s,y)}else if(u!==O){var w=e.child;if(w!==null){VS(w,t,s);for(var x=w.sibling;x!==null;)VS(x,t,s),x=x.sibling}}}var vi=null,su=!1;function L9(e,t,s){{var u=t;e:for(;u!==null;){switch(u.tag){case R:{vi=u.stateNode,su=!1;break e}case N:{vi=u.stateNode.containerInfo,su=!0;break e}case O:{vi=u.stateNode.containerInfo,su=!0;break e}}u=u.return}if(vi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");pF(e,t,s),vi=null,su=!1}N9(s)}function xf(e,t,s){for(var u=s.child;u!==null;)pF(e,t,u),u=u.sibling}function pF(e,t,s){switch(Ap(s),s.tag){case R:gi||fg(s,t);case j:{{var u=vi,p=su;vi=null,xf(e,t,s),vi=u,su=p,vi!==null&&(su?n6(vi,s.stateNode):t6(vi,s.stateNode))}return}case Ge:{vi!==null&&(su?r6(vi,s.stateNode):nD(vi,s.stateNode));return}case O:{{var y=vi,w=su;vi=s.stateNode.containerInfo,su=!0,xf(e,t,s),vi=y,su=w}return}case C:case q:case ae:case pe:{if(!gi){var x=s.updateQueue;if(x!==null){var A=x.lastEffect;if(A!==null){var B=A.next,I=B;do{var re=I,te=re.destroy,ue=re.tag;te!==void 0&&((ue&lc)!==Wo?Aw(s,t,te):(ue&La)!==Wo&&(Vc(s),s.mode&En?(fc(),Aw(s,t,te),dc(s)):Aw(s,t,te),$p())),I=I.next}while(I!==B)}}}xf(e,t,s);return}case T:{if(!gi){fg(s,t);var ge=s.stateNode;typeof ge.componentWillUnmount=="function"&&HS(s,t,ge)}xf(e,t,s);return}case Ke:{xf(e,t,s);return}case nt:{if(s.mode&an){var Ce=gi;gi=Ce||s.memoizedState!==null,xf(e,t,s),gi=Ce}else xf(e,t,s);break}default:{xf(e,t,s);return}}}function B9(e){e.memoizedState}function M9(e,t){var s=t.memoizedState;if(s===null){var u=t.alternate;if(u!==null){var p=u.memoizedState;if(p!==null){var y=p.dehydrated;y!==null&&D6(y)}}}}function hF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new w9),t.forEach(function(u){var p=O7.bind(null,e,u);if(!s.has(u)){if(s.add(u),Xa)if(cg!==null&&dg!==null)$y(dg,cg);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(p,p)}})}}function I9(e,t,s){cg=s,dg=e,Fn(t),mF(t,e),Fn(t),cg=null,dg=null}function lu(e,t,s){var u=t.deletions;if(u!==null)for(var p=0;p<u.length;p++){var y=u[p];try{L9(e,t,y)}catch(A){yr(y,t,A)}}var w=si();if(t.subtreeFlags&Gs)for(var x=t.child;x!==null;)Fn(x),mF(x,e),x=x.sibling;Fn(w)}function mF(e,t,s){var u=e.alternate,p=e.flags;switch(e.tag){case C:case q:case ae:case pe:{if(lu(t,e),pc(e),p&mn){try{ou(lc|Ra,e,e.return),_f(lc|Ra,e)}catch(It){yr(e,e.return,It)}if(e.mode&En){try{fc(),ou(La|Ra,e,e.return)}catch(It){yr(e,e.return,It)}dc(e)}else try{ou(La|Ra,e,e.return)}catch(It){yr(e,e.return,It)}}return}case T:{lu(t,e),pc(e),p&Yn&&u!==null&&fg(u,u.return);return}case R:{lu(t,e),pc(e),p&Yn&&u!==null&&fg(u,u.return);{if(e.flags&Ft){var y=e.stateNode;try{hT(y)}catch(It){yr(e,e.return,It)}}if(p&mn){var w=e.stateNode;if(w!=null){var x=e.memoizedProps,A=u!==null?u.memoizedProps:x,B=e.type,I=e.updateQueue;if(e.updateQueue=null,I!==null)try{K8(w,I,B,A,x,e)}catch(It){yr(e,e.return,It)}}}}return}case j:{if(lu(t,e),pc(e),p&mn){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=e.stateNode,te=e.memoizedProps,ue=u!==null?u.memoizedProps:te;try{Q8(re,ue,te)}catch(It){yr(e,e.return,It)}}return}case N:{if(lu(t,e),pc(e),p&mn&&u!==null){var ge=u.memoizedState;if(ge.isDehydrated)try{w6(t.containerInfo)}catch(It){yr(e,e.return,It)}}return}case O:{lu(t,e),pc(e);return}case K:{lu(t,e),pc(e);var Ce=e.child;if(Ce.flags&Lr){var tt=Ce.stateNode,St=Ce.memoizedState,Pt=St!==null;if(tt.isHidden=Pt,Pt){var hn=Ce.alternate!==null&&Ce.alternate.memoizedState!==null;hn||b7()}}if(p&mn){try{B9(e)}catch(It){yr(e,e.return,It)}hF(e)}return}case nt:{var cn=u!==null&&u.memoizedState!==null;if(e.mode&an){var se=gi;gi=se||cn,lu(t,e),gi=se}else lu(t,e);if(pc(e),p&Lr){var De=e.stateNode,le=e.memoizedState,je=le!==null,ut=e;if(De.isHidden=je,je&&!cn&&(ut.mode&an)!==_t){gt=ut;for(var it=ut.child;it!==null;)gt=it,z9(it),it=it.sibling}P9(ut,je)}return}case Ve:{lu(t,e),pc(e),p&mn&&hF(e);return}case Ke:return;default:{lu(t,e),pc(e);return}}}function pc(e){var t=e.flags;if(t&Fr){try{R9(e)}catch(s){yr(e,e.return,s)}e.flags&=-3}t&Ni&&(e.flags&=-4097)}function j9(e,t,s){cg=s,dg=t,gt=e,gF(e,t,s),cg=null,dg=null}function gF(e,t,s){for(var u=(e.mode&an)!==_t;gt!==null;){var p=gt,y=p.child;if(p.tag===nt&&u){var w=p.memoizedState!==null,x=w||Tw;if(x){WS(e,t,s);continue}else{var A=p.alternate,B=A!==null&&A.memoizedState!==null,I=B||gi,re=Tw,te=gi;Tw=x,gi=I,gi&&!te&&(gt=p,U9(p));for(var ue=y;ue!==null;)gt=ue,gF(ue,t,s),ue=ue.sibling;gt=p,Tw=re,gi=te,WS(e,t,s);continue}}(p.subtreeFlags&Ks)!==Ct&&y!==null?(y.return=p,gt=y):WS(e,t,s)}}function WS(e,t,s){for(;gt!==null;){var u=gt;if((u.flags&Ks)!==Ct){var p=u.alternate;Fn(u);try{F9(t,p,u,s)}catch(w){yr(u,u.return,w)}ur()}if(u===e){gt=null;return}var y=u.sibling;if(y!==null){y.return=u.return,gt=y;return}gt=u.return}}function z9(e){for(;gt!==null;){var t=gt,s=t.child;switch(t.tag){case C:case q:case ae:case pe:{if(t.mode&En)try{fc(),ou(La,t,t.return)}finally{dc(t)}else ou(La,t,t.return);break}case T:{fg(t,t.return);var u=t.stateNode;typeof u.componentWillUnmount=="function"&&HS(t,t.return,u);break}case R:{fg(t,t.return);break}case nt:{var p=t.memoizedState!==null;if(p){vF(e);continue}break}}s!==null?(s.return=t,gt=s):vF(e)}}function vF(e){for(;gt!==null;){var t=gt;if(t===e){gt=null;return}var s=t.sibling;if(s!==null){s.return=t.return,gt=s;return}gt=t.return}}function U9(e){for(;gt!==null;){var t=gt,s=t.child;if(t.tag===nt){var u=t.memoizedState!==null;if(u){yF(e);continue}}s!==null?(s.return=t,gt=s):yF(e)}}function yF(e){for(;gt!==null;){var t=gt;Fn(t);try{$9(t)}catch(u){yr(t,t.return,u)}if(ur(),t===e){gt=null;return}var s=t.sibling;if(s!==null){s.return=t.return,gt=s;return}gt=t.return}}function H9(e,t,s,u){gt=t,q9(t,e,s,u)}function q9(e,t,s,u){for(;gt!==null;){var p=gt,y=p.child;(p.subtreeFlags&Bo)!==Ct&&y!==null?(y.return=p,gt=y):V9(e,t,s,u)}}function V9(e,t,s,u){for(;gt!==null;){var p=gt;if((p.flags&Ya)!==Ct){Fn(p);try{W9(t,p,s,u)}catch(w){yr(p,p.return,w)}ur()}if(p===e){gt=null;return}var y=p.sibling;if(y!==null){y.return=p.return,gt=y;return}gt=p.return}}function W9(e,t,s,u){switch(t.tag){case C:case q:case pe:{if(t.mode&En){dS();try{_f(hi|Ra,t)}finally{cS(t)}}else _f(hi|Ra,t);break}}}function Y9(e){gt=e,G9()}function G9(){for(;gt!==null;){var e=gt,t=e.child;if((gt.flags&Pi)!==Ct){var s=e.deletions;if(s!==null){for(var u=0;u<s.length;u++){var p=s[u];gt=p,X9(p,e)}{var y=e.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}}gt=e}}(e.subtreeFlags&Bo)!==Ct&&t!==null?(t.return=e,gt=t):K9()}}function K9(){for(;gt!==null;){var e=gt;(e.flags&Ya)!==Ct&&(Fn(e),Q9(e),ur());var t=e.sibling;if(t!==null){t.return=e.return,gt=t;return}gt=e.return}}function Q9(e){switch(e.tag){case C:case q:case pe:{e.mode&En?(dS(),ou(hi|Ra,e,e.return),cS(e)):ou(hi|Ra,e,e.return);break}}}function X9(e,t){for(;gt!==null;){var s=gt;Fn(s),Z9(s,t),ur();var u=s.child;u!==null?(u.return=s,gt=u):J9(e)}}function J9(e){for(;gt!==null;){var t=gt,s=t.sibling,u=t.return;if(cF(t),t===e){gt=null;return}if(s!==null){s.return=u,gt=s;return}gt=u}}function Z9(e,t){switch(e.tag){case C:case q:case pe:{e.mode&En?(dS(),ou(hi,e,t),cS(e)):ou(hi,e,t);break}}}function e7(e){switch(e.tag){case C:case q:case pe:{try{_f(La|Ra,e)}catch(s){yr(e,e.return,s)}break}case T:{var t=e.stateNode;try{t.componentDidMount()}catch(s){yr(e,e.return,s)}break}}}function t7(e){switch(e.tag){case C:case q:case pe:{try{_f(hi|Ra,e)}catch(t){yr(e,e.return,t)}break}}}function n7(e){switch(e.tag){case C:case q:case pe:{try{ou(La|Ra,e,e.return)}catch(s){yr(e,e.return,s)}break}case T:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&HS(e,e.return,t);break}}}function r7(e){switch(e.tag){case C:case q:case pe:try{ou(hi|Ra,e,e.return)}catch(t){yr(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var wy=Symbol.for;wy("selector.component"),wy("selector.has_pseudo_class"),wy("selector.role"),wy("selector.test_id"),wy("selector.text")}var a7=[];function i7(){a7.forEach(function(e){return e()})}var o7=i.ReactCurrentActQueue;function s7(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&t!==!1}}function bF(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&o7.current!==null&&m("The current testing environment is not configured to support act(...)"),e}}var l7=Math.ceil,YS=i.ReactCurrentDispatcher,GS=i.ReactCurrentOwner,yi=i.ReactCurrentBatchConfig,uu=i.ReactCurrentActQueue,Ia=0,kF=1,bi=2,cl=4,yd=0,Dy=1,hh=2,Fw=3,Sy=4,wF=5,KS=6,Cn=Ia,po=null,Qr=null,ja=E,hc=E,QS=gf(E),za=yd,Cy=null,$w=E,_y=E,Pw=E,xy=null,Yo=null,XS=0,DF=500,SF=1/0,u7=500,bd=null;function Ey(){SF=Br()+u7}function CF(){return SF}var Nw=!1,JS=null,pg=null,mh=!1,Ef=null,Ty=E,ZS=[],eC=null,c7=50,Ay=0,tC=null,nC=!1,Ow=!1,d7=50,hg=0,Rw=null,Lw=dr,Bw=E,_F=!1;function Mw(){return po}function ho(){return(Cn&(bi|cl))!==Ia?Br():(Lw!==dr||(Lw=Br()),Lw)}function Tf(e){var t=e.mode;if((t&an)===_t)return U;if((Cn&bi)!==Ia&&ja!==E)return zp(ja);var s=o5()!==i5;if(s){if(yi.transition!==null){var u=yi.transition;u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(e)}return Bw===M&&(Bw=yv()),Bw}var p=bs();if(p!==M)return p;var y=q8();return y}function f7(e){var t=e.mode;return(t&an)===_t?U:Ib()}function Ua(e,t,s,u){L7(),_F&&m("useInsertionEffect must not schedule updates."),nC&&(Ow=!0),td(e,s,u),(Cn&bi)!==E&&e===po?I7(t):(Xa&&_m(e,t,s),j7(t),e===po&&((Cn&bi)===Ia&&(_y=Zt(_y,s)),za===Sy&&Af(e,ja)),Go(e,u),s===U&&Cn===Ia&&(t.mode&an)===_t&&!uu.isBatchingLegacy&&(Ey(),_T()))}function p7(e,t,s){var u=e.current;u.lanes=t,td(e,t,s),Go(e,s)}function h7(e){return(Cn&bi)!==Ia}function Go(e,t){var s=e.callbackNode;wm(e,t);var u=km(e,e===po?ja:E);if(u===E){s!==null&&zF(s),e.callbackNode=null,e.callbackPriority=M;return}var p=Qu(u),y=e.callbackPriority;if(y===p&&!(uu.current!==null&&s!==uC)){s==null&&y!==U&&m("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&zF(s);var w;if(p===U)e.tag===vf?(uu.isBatchingLegacy!==null&&(uu.didScheduleLegacyUpdate=!0),U6(TF.bind(null,e))):CT(TF.bind(null,e)),uu.current!==null?uu.current.push(yf):W8(function(){(Cn&(bi|cl))===Ia&&yf()}),w=null;else{var x;switch(Pa(u)){case Mi:x=Yu;break;case ys:x=Xs;break;case tl:x=Io;break;case nd:x=hs;break;default:x=Io;break}w=cC(x,xF.bind(null,e))}e.callbackPriority=p,e.callbackNode=w}function xF(e,t){if(P5(),Lw=dr,Bw=E,(Cn&(bi|cl))!==Ia)throw new Error("Should not already be working.");var s=e.callbackNode,u=wd();if(u&&e.callbackNode!==s)return null;var p=km(e,e===po?ja:E);if(p===E)return null;var y=!Sm(e,p)&&!Mb(e,p)&&!t,w=y?C7(e,p):jw(e,p);if(w!==yd){if(w===hh){var x=Dm(e);x!==E&&(p=x,w=rC(e,x))}if(w===Dy){var A=Cy;throw gh(e,E),Af(e,p),Go(e,Br()),A}if(w===KS)Af(e,p);else{var B=!Sm(e,p),I=e.current.alternate;if(B&&!g7(I)){if(w=jw(e,p),w===hh){var re=Dm(e);re!==E&&(p=re,w=rC(e,re))}if(w===Dy){var te=Cy;throw gh(e,E),Af(e,p),Go(e,Br()),te}}e.finishedWork=I,e.finishedLanes=p,m7(e,w,p)}}return Go(e,Br()),e.callbackNode===s?xF.bind(null,e):null}function rC(e,t){var s=xy;if(xm(e)){var u=gh(e,t);u.flags|=ba,R6(e.containerInfo)}var p=jw(e,t);if(p!==hh){var y=Yo;Yo=s,y!==null&&EF(y)}return p}function EF(e){Yo===null?Yo=e:Yo.push.apply(Yo,e)}function m7(e,t,s){switch(t){case yd:case Dy:throw new Error("Root did not complete. This is a bug in React.");case hh:{vh(e,Yo,bd);break}case Fw:{if(Af(e,s),Zc(s)&&!UF()){var u=XS+DF-Br();if(u>10){var p=km(e,E);if(p!==E)break;var y=e.suspendedLanes;if(!ed(y,s)){ho(),wv(e,y);break}e.timeoutHandle=eD(vh.bind(null,e,Yo,bd),u);break}}vh(e,Yo,bd);break}case Sy:{if(Af(e,s),gv(s))break;if(!UF()){var w=vs(e,s),x=w,A=Br()-x,B=R7(A)-A;if(B>10){e.timeoutHandle=eD(vh.bind(null,e,Yo,bd),B);break}}vh(e,Yo,bd);break}case wF:{vh(e,Yo,bd);break}default:throw new Error("Unknown root exit status.")}}function g7(e){for(var t=e;;){if(t.flags&Vu){var s=t.updateQueue;if(s!==null){var u=s.stores;if(u!==null)for(var p=0;p<u.length;p++){var y=u[p],w=y.getSnapshot,x=y.value;try{if(!ie(w(),x))return!1}catch{return!1}}}}var A=t.child;if(t.subtreeFlags&Vu&&A!==null){A.return=t,t=A;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function Af(e,t){t=Up(t,Pw),t=Up(t,_y),jb(e,t)}function TF(e){if(N5(),(Cn&(bi|cl))!==Ia)throw new Error("Should not already be working.");wd();var t=km(e,E);if(!Bi(t,U))return Go(e,Br()),null;var s=jw(e,t);if(e.tag!==vf&&s===hh){var u=Dm(e);u!==E&&(t=u,s=rC(e,u))}if(s===Dy){var p=Cy;throw gh(e,E),Af(e,t),Go(e,Br()),p}if(s===KS)throw new Error("Root did not complete. This is a bug in React.");var y=e.current.alternate;return e.finishedWork=y,e.finishedLanes=t,vh(e,Yo,bd),Go(e,Br()),null}function v7(e,t){t!==E&&(Hp(e,Zt(t,U)),Go(e,Br()),(Cn&(bi|cl))===Ia&&(Ey(),yf()))}function aC(e,t){var s=Cn;Cn|=kF;try{return e(t)}finally{Cn=s,Cn===Ia&&!uu.isBatchingLegacy&&(Ey(),_T())}}function y7(e,t,s,u,p){var y=bs(),w=yi.transition;try{return yi.transition=null,ca(Mi),e(t,s,u,p)}finally{ca(y),yi.transition=w,Cn===Ia&&Ey()}}function kd(e){Ef!==null&&Ef.tag===vf&&(Cn&(bi|cl))===Ia&&wd();var t=Cn;Cn|=kF;var s=yi.transition,u=bs();try{return yi.transition=null,ca(Mi),e?e():void 0}finally{ca(u),yi.transition=s,Cn=t,(Cn&(bi|cl))===Ia&&yf()}}function AF(){return(Cn&(bi|cl))!==Ia}function Iw(e,t){Ui(QS,hc,e),hc=Zt(hc,t)}function iC(e){hc=QS.current,zi(QS,e)}function gh(e,t){e.finishedWork=null,e.finishedLanes=E;var s=e.timeoutHandle;if(s!==tD&&(e.timeoutHandle=tD,V8(s)),Qr!==null)for(var u=Qr.return;u!==null;){var p=u.alternate;aF(p,u),u=u.return}po=e;var y=yh(e.current,null);return Qr=y,ja=hc=t,za=yd,Cy=null,$w=E,_y=E,Pw=E,xy=null,Yo=null,p5(),tu.discardPendingWarnings(),y}function FF(e,t){do{var s=Qr;try{if(Gk(),eA(),ur(),GS.current=null,s===null||s.return===null){za=Dy,Cy=t,Qr=null;return}if(rt&&s.mode&En&&Sw(s,!0),ot)if(ea(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var u=t;jo(s,u,ja)}else Wc(s,t,ja);U5(e,s.return,s,t,ja),OF(s)}catch(p){t=p,Qr===s&&s!==null?(s=s.return,Qr=s):s=Qr;continue}return}while(!0)}function $F(){var e=YS.current;return YS.current=yw,e===null?yw:e}function PF(e){YS.current=e}function b7(){XS=Br()}function Fy(e){$w=Zt(e,$w)}function k7(){za===yd&&(za=Fw)}function oC(){(za===yd||za===Fw||za===hh)&&(za=Sy),po!==null&&(jp($w)||jp(_y))&&Af(po,ja)}function w7(e){za!==Sy&&(za=hh),xy===null?xy=[e]:xy.push(e)}function D7(){return za===yd}function jw(e,t){var s=Cn;Cn|=bi;var u=$F();if(po!==e||ja!==t){if(Xa){var p=e.memoizedUpdaters;p.size>0&&($y(e,ja),p.clear()),qp(e,t)}bd=Ub(),gh(e,t)}Hl(t);do try{S7();break}catch(y){FF(e,y)}while(!0);if(Gk(),Cn=s,PF(u),Qr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return of(),po=null,ja=E,za}function S7(){for(;Qr!==null;)NF(Qr)}function C7(e,t){var s=Cn;Cn|=bi;var u=$F();if(po!==e||ja!==t){if(Xa){var p=e.memoizedUpdaters;p.size>0&&($y(e,ja),p.clear()),qp(e,t)}bd=Ub(),Ey(),gh(e,t)}Hl(t);do try{_7();break}catch(y){FF(e,y)}while(!0);return Gk(),PF(u),Cn=s,Qr!==null?(Np(),yd):(of(),po=null,ja=E,za)}function _7(){for(;Qr!==null&&!_p();)NF(Qr)}function NF(e){var t=e.alternate;Fn(e);var s;(e.mode&En)!==_t?(uS(e),s=sC(t,e,hc),Sw(e,!0)):s=sC(t,e,hc),ur(),e.memoizedProps=e.pendingProps,s===null?OF(e):Qr=s,GS.current=null}function OF(e){var t=e;do{var s=t.alternate,u=t.return;if((t.flags&Uc)===Ct){Fn(t);var p=void 0;if((t.mode&En)===_t?p=rF(s,t,hc):(uS(t),p=rF(s,t,hc),Sw(t,!1)),ur(),p!==null){Qr=p;return}}else{var y=k9(s,t);if(y!==null){y.flags&=fs,Qr=y;return}if((t.mode&En)!==_t){Sw(t,!1);for(var w=t.actualDuration,x=t.child;x!==null;)w+=x.actualDuration,x=x.sibling;t.actualDuration=w}if(u!==null)u.flags|=Uc,u.subtreeFlags=Ct,u.deletions=null;else{za=KS,Qr=null;return}}var A=t.sibling;if(A!==null){Qr=A;return}t=u,Qr=t}while(t!==null);za===yd&&(za=wF)}function vh(e,t,s){var u=bs(),p=yi.transition;try{yi.transition=null,ca(Mi),x7(e,t,s,u)}finally{yi.transition=p,ca(u)}return null}function x7(e,t,s,u){do wd();while(Ef!==null);if(B7(),(Cn&(bi|cl))!==Ia)throw new Error("Should not already be working.");var p=e.finishedWork,y=e.finishedLanes;if(Fp(y),p===null)return Gu(),null;if(y===E&&m("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=E,p===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=M;var w=Zt(p.lanes,p.childLanes);Dv(e,w),e===po&&(po=null,Qr=null,ja=E),((p.subtreeFlags&Bo)!==Ct||(p.flags&Bo)!==Ct)&&(mh||(mh=!0,eC=s,cC(Io,function(){return wd(),null})));var x=(p.subtreeFlags&(Ys|Gs|Ks|Bo))!==Ct,A=(p.flags&(Ys|Gs|Ks|Bo))!==Ct;if(x||A){var B=yi.transition;yi.transition=null;var I=bs();ca(Mi);var re=Cn;Cn|=cl,GS.current=null,_9(e,p),_A(),I9(e,p,y),M8(e.containerInfo),e.current=p,zl(y),j9(p,e,y),Yc(),xp(),Cn=re,ca(I),yi.transition=B}else e.current=p,_A();var te=mh;if(mh?(mh=!1,Ef=e,Ty=y):(hg=0,Rw=null),w=e.pendingLanes,w===E&&(pg=null),te||MF(e.current,!1),nf(p.stateNode,u),Xa&&e.memoizedUpdaters.clear(),i7(),Go(e,Br()),t!==null)for(var ue=e.onRecoverableError,ge=0;ge<t.length;ge++){var Ce=t[ge],tt=Ce.stack,St=Ce.digest;ue(Ce.value,{componentStack:tt,digest:St})}if(Nw){Nw=!1;var Pt=JS;throw JS=null,Pt}return Bi(Ty,U)&&e.tag!==vf&&wd(),w=e.pendingLanes,Bi(w,U)?($5(),e===tC?Ay++:(Ay=0,tC=e)):Ay=0,yf(),Gu(),null}function wd(){if(Ef!==null){var e=Pa(Ty),t=qb(tl,e),s=yi.transition,u=bs();try{return yi.transition=null,ca(t),T7()}finally{ca(u),yi.transition=s}}return!1}function E7(e){ZS.push(e),mh||(mh=!0,cC(Io,function(){return wd(),null}))}function T7(){if(Ef===null)return!1;var e=eC;eC=null;var t=Ef,s=Ty;if(Ef=null,Ty=E,(Cn&(bi|cl))!==Ia)throw new Error("Cannot flush passive effects while already rendering.");nC=!0,Ow=!1,Ul(s);var u=Cn;Cn|=cl,Y9(t.current),H9(t,t.current,s,e);{var p=ZS;ZS=[];for(var y=0;y<p.length;y++){var w=p[y];A9(t,w)}}Pp(),MF(t.current,!0),Cn=u,yf(),Ow?t===Rw?hg++:(hg=0,Rw=t):hg=0,nC=!1,Ow=!1,Tp(t);{var x=t.current.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}return!0}function RF(e){return pg!==null&&pg.has(e)}function A7(e){pg===null?pg=new Set([e]):pg.add(e)}function F7(e){Nw||(Nw=!0,JS=e)}var $7=F7;function LF(e,t,s){var u=fh(s,t),p=NA(e,u,U),y=kf(e,p,U),w=ho();y!==null&&(td(y,U,w),Go(y,w))}function yr(e,t,s){if(D9(s),Py(!1),e.tag===N){LF(e,e,s);return}var u=null;for(u=t;u!==null;){if(u.tag===N){LF(u,e,s);return}else if(u.tag===T){var p=u.type,y=u.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!RF(y)){var w=fh(s,e),x=ES(u,w,U),A=kf(u,x,U),B=ho();A!==null&&(td(A,U,B),Go(A,B));return}}u=u.return}m(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
276
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:B=" You returned: "+x,m("%s must not return anything besides a function, which is used for clean-up.%s",A,B)}}}y=y.next}while(y!==p)}}function A9(e,t){if((t.flags&mn)!==Ct)switch(t.tag){case Z:{var s=t.stateNode.passiveEffectDuration,u=t.memoizedProps,p=u.id,y=u.onPostCommit,w=CA(),x=t.alternate===null?"mount":"update";SA()&&(x="nested-update"),typeof y=="function"&&y(p,x,s,w);var A=t.return;e:for(;A!==null;){switch(A.tag){case N:var B=A.stateNode;B.passiveEffectDuration+=s;break e;case Z:var I=A.stateNode;I.passiveEffectDuration+=s;break e}A=A.return}break}}}function F9(e,t,s,u){if((s.flags&Ks)!==Ct)switch(s.tag){case C:case q:case pe:{if(!gi)if(s.mode&En)try{fc(),_f(La|Ra,s)}finally{dc(s)}else _f(La|Ra,s);break}case T:{var p=s.stateNode;if(s.flags&mn&&!gi)if(t===null)if(s.type===s.elementType&&!ph&&(p.props!==s.memoizedProps&&m("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&m("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),s.mode&En)try{fc(),p.componentDidMount()}finally{dc(s)}else p.componentDidMount();else{var y=s.elementType===s.type?t.memoizedProps:au(s.type,t.memoizedProps),w=t.memoizedState;if(s.type===s.elementType&&!ph&&(p.props!==s.memoizedProps&&m("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&m("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),s.mode&En)try{fc(),p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}finally{dc(s)}else p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}var x=s.updateQueue;x!==null&&(s.type===s.elementType&&!ph&&(p.props!==s.memoizedProps&&m("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&m("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),GT(s,x,p));break}case N:{var A=s.updateQueue;if(A!==null){var B=null;if(s.child!==null)switch(s.child.tag){case R:B=s.child.stateNode;break;case T:B=s.child.stateNode;break}GT(s,A,B)}break}case R:{var I=s.stateNode;if(t===null&&s.flags&mn){var re=s.type,te=s.memoizedProps;G8(I,re,te)}break}case j:break;case O:break;case Z:{{var ue=s.memoizedProps,ge=ue.onCommit,Ce=ue.onRender,tt=s.stateNode.effectDuration,St=CA(),Pt=t===null?"mount":"update";SA()&&(Pt="nested-update"),typeof Ce=="function"&&Ce(s.memoizedProps.id,Pt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,St);{typeof ge=="function"&&ge(s.memoizedProps.id,Pt,tt,St),Ez(s);var hn=s.return;e:for(;hn!==null;){switch(hn.tag){case N:var cn=hn.stateNode;cn.effectDuration+=tt;break e;case Z:var se=hn.stateNode;se.effectDuration+=tt;break e}hn=hn.return}}}break}case K:{M9(e,s);break}case Ve:case ke:case Ke:case nt:case He:case Me:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}gi||s.flags&Yn&&uF(s)}function $9(e){switch(e.tag){case C:case q:case pe:{if(e.mode&En)try{fc(),oF(e,e.return)}finally{dc(e)}else oF(e,e.return);break}case T:{var t=e.stateNode;typeof t.componentDidMount=="function"&&C9(e,e.return,t),sF(e,e.return);break}case R:{sF(e,e.return);break}}}function P9(e,t){for(var s=null,u=e;;){if(u.tag===R){if(s===null){s=u;try{var p=u.stateNode;t?a6(p):o6(u.stateNode,u.memoizedProps)}catch(w){yr(e,e.return,w)}}}else if(u.tag===j){if(s===null)try{var y=u.stateNode;t?i6(y):s6(y,u.memoizedProps)}catch(w){yr(e,e.return,w)}}else if(!((u.tag===nt||u.tag===He)&&u.memoizedState!==null&&u!==e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;s===u&&(s=null),u=u.return}s===u&&(s=null),u.sibling.return=u.return,u=u.sibling}}function uF(e){var t=e.ref;if(t!==null){var s=e.stateNode,u;switch(e.tag){case R:u=s;break;default:u=s}if(typeof t=="function"){var p;if(e.mode&En)try{fc(),p=t(u)}finally{dc(e)}else p=t(u);typeof p=="function"&&m("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(e))}else t.hasOwnProperty("current")||m("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Mt(e)),t.current=u}}function N9(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function cF(e){var t=e.alternate;t!==null&&(e.alternate=null,cF(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===R){var s=e.stateNode;s!==null&&I6(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function O9(e){for(var t=e.return;t!==null;){if(dF(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function dF(e){return e.tag===R||e.tag===N||e.tag===O}function fF(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||dF(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==R&&t.tag!==j&&t.tag!==Ge;){if(t.flags&Fr||t.child===null||t.tag===O)continue e;t.child.return=t,t=t.child}if(!(t.flags&Fr))return t.stateNode}}function R9(e){var t=O9(e);switch(t.tag){case R:{var s=t.stateNode;t.flags&Ft&&(hT(s),t.flags&=-33);var u=fF(e);VS(e,u,s);break}case N:case O:{var p=t.stateNode.containerInfo,y=fF(e);qS(e,y,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function qS(e,t,s){var u=e.tag,p=u===R||u===j;if(p){var y=e.stateNode;t?e6(s,y,t):J8(s,y)}else if(u!==O){var w=e.child;if(w!==null){qS(w,t,s);for(var x=w.sibling;x!==null;)qS(x,t,s),x=x.sibling}}}function VS(e,t,s){var u=e.tag,p=u===R||u===j;if(p){var y=e.stateNode;t?Z8(s,y,t):X8(s,y)}else if(u!==O){var w=e.child;if(w!==null){VS(w,t,s);for(var x=w.sibling;x!==null;)VS(x,t,s),x=x.sibling}}}var vi=null,su=!1;function L9(e,t,s){{var u=t;e:for(;u!==null;){switch(u.tag){case R:{vi=u.stateNode,su=!1;break e}case N:{vi=u.stateNode.containerInfo,su=!0;break e}case O:{vi=u.stateNode.containerInfo,su=!0;break e}}u=u.return}if(vi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");pF(e,t,s),vi=null,su=!1}N9(s)}function xf(e,t,s){for(var u=s.child;u!==null;)pF(e,t,u),u=u.sibling}function pF(e,t,s){switch(Ap(s),s.tag){case R:gi||fg(s,t);case j:{{var u=vi,p=su;vi=null,xf(e,t,s),vi=u,su=p,vi!==null&&(su?n6(vi,s.stateNode):t6(vi,s.stateNode))}return}case Ge:{vi!==null&&(su?r6(vi,s.stateNode):nD(vi,s.stateNode));return}case O:{{var y=vi,w=su;vi=s.stateNode.containerInfo,su=!0,xf(e,t,s),vi=y,su=w}return}case C:case q:case ae:case pe:{if(!gi){var x=s.updateQueue;if(x!==null){var A=x.lastEffect;if(A!==null){var B=A.next,I=B;do{var re=I,te=re.destroy,ue=re.tag;te!==void 0&&((ue&lc)!==Wo?Aw(s,t,te):(ue&La)!==Wo&&(Vc(s),s.mode&En?(fc(),Aw(s,t,te),dc(s)):Aw(s,t,te),$p())),I=I.next}while(I!==B)}}}xf(e,t,s);return}case T:{if(!gi){fg(s,t);var ge=s.stateNode;typeof ge.componentWillUnmount=="function"&&HS(s,t,ge)}xf(e,t,s);return}case Ke:{xf(e,t,s);return}case nt:{if(s.mode&an){var Ce=gi;gi=Ce||s.memoizedState!==null,xf(e,t,s),gi=Ce}else xf(e,t,s);break}default:{xf(e,t,s);return}}}function B9(e){e.memoizedState}function M9(e,t){var s=t.memoizedState;if(s===null){var u=t.alternate;if(u!==null){var p=u.memoizedState;if(p!==null){var y=p.dehydrated;y!==null&&D6(y)}}}}function hF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new w9),t.forEach(function(u){var p=Oz.bind(null,e,u);if(!s.has(u)){if(s.add(u),Xa)if(cg!==null&&dg!==null)$y(dg,cg);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(p,p)}})}}function I9(e,t,s){cg=s,dg=e,Fn(t),mF(t,e),Fn(t),cg=null,dg=null}function lu(e,t,s){var u=t.deletions;if(u!==null)for(var p=0;p<u.length;p++){var y=u[p];try{L9(e,t,y)}catch(A){yr(y,t,A)}}var w=si();if(t.subtreeFlags&Gs)for(var x=t.child;x!==null;)Fn(x),mF(x,e),x=x.sibling;Fn(w)}function mF(e,t,s){var u=e.alternate,p=e.flags;switch(e.tag){case C:case q:case ae:case pe:{if(lu(t,e),pc(e),p&mn){try{ou(lc|Ra,e,e.return),_f(lc|Ra,e)}catch(It){yr(e,e.return,It)}if(e.mode&En){try{fc(),ou(La|Ra,e,e.return)}catch(It){yr(e,e.return,It)}dc(e)}else try{ou(La|Ra,e,e.return)}catch(It){yr(e,e.return,It)}}return}case T:{lu(t,e),pc(e),p&Yn&&u!==null&&fg(u,u.return);return}case R:{lu(t,e),pc(e),p&Yn&&u!==null&&fg(u,u.return);{if(e.flags&Ft){var y=e.stateNode;try{hT(y)}catch(It){yr(e,e.return,It)}}if(p&mn){var w=e.stateNode;if(w!=null){var x=e.memoizedProps,A=u!==null?u.memoizedProps:x,B=e.type,I=e.updateQueue;if(e.updateQueue=null,I!==null)try{K8(w,I,B,A,x,e)}catch(It){yr(e,e.return,It)}}}}return}case j:{if(lu(t,e),pc(e),p&mn){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=e.stateNode,te=e.memoizedProps,ue=u!==null?u.memoizedProps:te;try{Q8(re,ue,te)}catch(It){yr(e,e.return,It)}}return}case N:{if(lu(t,e),pc(e),p&mn&&u!==null){var ge=u.memoizedState;if(ge.isDehydrated)try{w6(t.containerInfo)}catch(It){yr(e,e.return,It)}}return}case O:{lu(t,e),pc(e);return}case K:{lu(t,e),pc(e);var Ce=e.child;if(Ce.flags&Lr){var tt=Ce.stateNode,St=Ce.memoizedState,Pt=St!==null;if(tt.isHidden=Pt,Pt){var hn=Ce.alternate!==null&&Ce.alternate.memoizedState!==null;hn||bz()}}if(p&mn){try{B9(e)}catch(It){yr(e,e.return,It)}hF(e)}return}case nt:{var cn=u!==null&&u.memoizedState!==null;if(e.mode&an){var se=gi;gi=se||cn,lu(t,e),gi=se}else lu(t,e);if(pc(e),p&Lr){var De=e.stateNode,le=e.memoizedState,je=le!==null,ut=e;if(De.isHidden=je,je&&!cn&&(ut.mode&an)!==_t){gt=ut;for(var it=ut.child;it!==null;)gt=it,z9(it),it=it.sibling}P9(ut,je)}return}case Ve:{lu(t,e),pc(e),p&mn&&hF(e);return}case Ke:return;default:{lu(t,e),pc(e);return}}}function pc(e){var t=e.flags;if(t&Fr){try{R9(e)}catch(s){yr(e,e.return,s)}e.flags&=-3}t&Ni&&(e.flags&=-4097)}function j9(e,t,s){cg=s,dg=t,gt=e,gF(e,t,s),cg=null,dg=null}function gF(e,t,s){for(var u=(e.mode&an)!==_t;gt!==null;){var p=gt,y=p.child;if(p.tag===nt&&u){var w=p.memoizedState!==null,x=w||Tw;if(x){WS(e,t,s);continue}else{var A=p.alternate,B=A!==null&&A.memoizedState!==null,I=B||gi,re=Tw,te=gi;Tw=x,gi=I,gi&&!te&&(gt=p,U9(p));for(var ue=y;ue!==null;)gt=ue,gF(ue,t,s),ue=ue.sibling;gt=p,Tw=re,gi=te,WS(e,t,s);continue}}(p.subtreeFlags&Ks)!==Ct&&y!==null?(y.return=p,gt=y):WS(e,t,s)}}function WS(e,t,s){for(;gt!==null;){var u=gt;if((u.flags&Ks)!==Ct){var p=u.alternate;Fn(u);try{F9(t,p,u,s)}catch(w){yr(u,u.return,w)}ur()}if(u===e){gt=null;return}var y=u.sibling;if(y!==null){y.return=u.return,gt=y;return}gt=u.return}}function z9(e){for(;gt!==null;){var t=gt,s=t.child;switch(t.tag){case C:case q:case ae:case pe:{if(t.mode&En)try{fc(),ou(La,t,t.return)}finally{dc(t)}else ou(La,t,t.return);break}case T:{fg(t,t.return);var u=t.stateNode;typeof u.componentWillUnmount=="function"&&HS(t,t.return,u);break}case R:{fg(t,t.return);break}case nt:{var p=t.memoizedState!==null;if(p){vF(e);continue}break}}s!==null?(s.return=t,gt=s):vF(e)}}function vF(e){for(;gt!==null;){var t=gt;if(t===e){gt=null;return}var s=t.sibling;if(s!==null){s.return=t.return,gt=s;return}gt=t.return}}function U9(e){for(;gt!==null;){var t=gt,s=t.child;if(t.tag===nt){var u=t.memoizedState!==null;if(u){yF(e);continue}}s!==null?(s.return=t,gt=s):yF(e)}}function yF(e){for(;gt!==null;){var t=gt;Fn(t);try{$9(t)}catch(u){yr(t,t.return,u)}if(ur(),t===e){gt=null;return}var s=t.sibling;if(s!==null){s.return=t.return,gt=s;return}gt=t.return}}function H9(e,t,s,u){gt=t,q9(t,e,s,u)}function q9(e,t,s,u){for(;gt!==null;){var p=gt,y=p.child;(p.subtreeFlags&Bo)!==Ct&&y!==null?(y.return=p,gt=y):V9(e,t,s,u)}}function V9(e,t,s,u){for(;gt!==null;){var p=gt;if((p.flags&Ya)!==Ct){Fn(p);try{W9(t,p,s,u)}catch(w){yr(p,p.return,w)}ur()}if(p===e){gt=null;return}var y=p.sibling;if(y!==null){y.return=p.return,gt=y;return}gt=p.return}}function W9(e,t,s,u){switch(t.tag){case C:case q:case pe:{if(t.mode&En){dS();try{_f(hi|Ra,t)}finally{cS(t)}}else _f(hi|Ra,t);break}}}function Y9(e){gt=e,G9()}function G9(){for(;gt!==null;){var e=gt,t=e.child;if((gt.flags&Pi)!==Ct){var s=e.deletions;if(s!==null){for(var u=0;u<s.length;u++){var p=s[u];gt=p,X9(p,e)}{var y=e.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}}gt=e}}(e.subtreeFlags&Bo)!==Ct&&t!==null?(t.return=e,gt=t):K9()}}function K9(){for(;gt!==null;){var e=gt;(e.flags&Ya)!==Ct&&(Fn(e),Q9(e),ur());var t=e.sibling;if(t!==null){t.return=e.return,gt=t;return}gt=e.return}}function Q9(e){switch(e.tag){case C:case q:case pe:{e.mode&En?(dS(),ou(hi|Ra,e,e.return),cS(e)):ou(hi|Ra,e,e.return);break}}}function X9(e,t){for(;gt!==null;){var s=gt;Fn(s),Z9(s,t),ur();var u=s.child;u!==null?(u.return=s,gt=u):J9(e)}}function J9(e){for(;gt!==null;){var t=gt,s=t.sibling,u=t.return;if(cF(t),t===e){gt=null;return}if(s!==null){s.return=u,gt=s;return}gt=u}}function Z9(e,t){switch(e.tag){case C:case q:case pe:{e.mode&En?(dS(),ou(hi,e,t),cS(e)):ou(hi,e,t);break}}}function ez(e){switch(e.tag){case C:case q:case pe:{try{_f(La|Ra,e)}catch(s){yr(e,e.return,s)}break}case T:{var t=e.stateNode;try{t.componentDidMount()}catch(s){yr(e,e.return,s)}break}}}function tz(e){switch(e.tag){case C:case q:case pe:{try{_f(hi|Ra,e)}catch(t){yr(e,e.return,t)}break}}}function nz(e){switch(e.tag){case C:case q:case pe:{try{ou(La|Ra,e,e.return)}catch(s){yr(e,e.return,s)}break}case T:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&HS(e,e.return,t);break}}}function rz(e){switch(e.tag){case C:case q:case pe:try{ou(hi|Ra,e,e.return)}catch(t){yr(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var wy=Symbol.for;wy("selector.component"),wy("selector.has_pseudo_class"),wy("selector.role"),wy("selector.test_id"),wy("selector.text")}var az=[];function iz(){az.forEach(function(e){return e()})}var oz=i.ReactCurrentActQueue;function sz(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&t!==!1}}function bF(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&oz.current!==null&&m("The current testing environment is not configured to support act(...)"),e}}var lz=Math.ceil,YS=i.ReactCurrentDispatcher,GS=i.ReactCurrentOwner,yi=i.ReactCurrentBatchConfig,uu=i.ReactCurrentActQueue,Ia=0,kF=1,bi=2,cl=4,yd=0,Dy=1,hh=2,Fw=3,Sy=4,wF=5,KS=6,Cn=Ia,po=null,Qr=null,ja=E,hc=E,QS=gf(E),za=yd,Cy=null,$w=E,_y=E,Pw=E,xy=null,Yo=null,XS=0,DF=500,SF=1/0,uz=500,bd=null;function Ey(){SF=Br()+uz}function CF(){return SF}var Nw=!1,JS=null,pg=null,mh=!1,Ef=null,Ty=E,ZS=[],eC=null,cz=50,Ay=0,tC=null,nC=!1,Ow=!1,dz=50,hg=0,Rw=null,Lw=dr,Bw=E,_F=!1;function Mw(){return po}function ho(){return(Cn&(bi|cl))!==Ia?Br():(Lw!==dr||(Lw=Br()),Lw)}function Tf(e){var t=e.mode;if((t&an)===_t)return U;if((Cn&bi)!==Ia&&ja!==E)return zp(ja);var s=o5()!==i5;if(s){if(yi.transition!==null){var u=yi.transition;u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(e)}return Bw===M&&(Bw=yv()),Bw}var p=bs();if(p!==M)return p;var y=q8();return y}function fz(e){var t=e.mode;return(t&an)===_t?U:Ib()}function Ua(e,t,s,u){Lz(),_F&&m("useInsertionEffect must not schedule updates."),nC&&(Ow=!0),td(e,s,u),(Cn&bi)!==E&&e===po?Iz(t):(Xa&&_m(e,t,s),jz(t),e===po&&((Cn&bi)===Ia&&(_y=Zt(_y,s)),za===Sy&&Af(e,ja)),Go(e,u),s===U&&Cn===Ia&&(t.mode&an)===_t&&!uu.isBatchingLegacy&&(Ey(),_T()))}function pz(e,t,s){var u=e.current;u.lanes=t,td(e,t,s),Go(e,s)}function hz(e){return(Cn&bi)!==Ia}function Go(e,t){var s=e.callbackNode;wm(e,t);var u=km(e,e===po?ja:E);if(u===E){s!==null&&zF(s),e.callbackNode=null,e.callbackPriority=M;return}var p=Qu(u),y=e.callbackPriority;if(y===p&&!(uu.current!==null&&s!==uC)){s==null&&y!==U&&m("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&zF(s);var w;if(p===U)e.tag===vf?(uu.isBatchingLegacy!==null&&(uu.didScheduleLegacyUpdate=!0),U6(TF.bind(null,e))):CT(TF.bind(null,e)),uu.current!==null?uu.current.push(yf):W8(function(){(Cn&(bi|cl))===Ia&&yf()}),w=null;else{var x;switch(Pa(u)){case Mi:x=Yu;break;case ys:x=Xs;break;case tl:x=Io;break;case nd:x=hs;break;default:x=Io;break}w=cC(x,xF.bind(null,e))}e.callbackPriority=p,e.callbackNode=w}function xF(e,t){if(P5(),Lw=dr,Bw=E,(Cn&(bi|cl))!==Ia)throw new Error("Should not already be working.");var s=e.callbackNode,u=wd();if(u&&e.callbackNode!==s)return null;var p=km(e,e===po?ja:E);if(p===E)return null;var y=!Sm(e,p)&&!Mb(e,p)&&!t,w=y?Cz(e,p):jw(e,p);if(w!==yd){if(w===hh){var x=Dm(e);x!==E&&(p=x,w=rC(e,x))}if(w===Dy){var A=Cy;throw gh(e,E),Af(e,p),Go(e,Br()),A}if(w===KS)Af(e,p);else{var B=!Sm(e,p),I=e.current.alternate;if(B&&!gz(I)){if(w=jw(e,p),w===hh){var re=Dm(e);re!==E&&(p=re,w=rC(e,re))}if(w===Dy){var te=Cy;throw gh(e,E),Af(e,p),Go(e,Br()),te}}e.finishedWork=I,e.finishedLanes=p,mz(e,w,p)}}return Go(e,Br()),e.callbackNode===s?xF.bind(null,e):null}function rC(e,t){var s=xy;if(xm(e)){var u=gh(e,t);u.flags|=ba,R6(e.containerInfo)}var p=jw(e,t);if(p!==hh){var y=Yo;Yo=s,y!==null&&EF(y)}return p}function EF(e){Yo===null?Yo=e:Yo.push.apply(Yo,e)}function mz(e,t,s){switch(t){case yd:case Dy:throw new Error("Root did not complete. This is a bug in React.");case hh:{vh(e,Yo,bd);break}case Fw:{if(Af(e,s),Zc(s)&&!UF()){var u=XS+DF-Br();if(u>10){var p=km(e,E);if(p!==E)break;var y=e.suspendedLanes;if(!ed(y,s)){ho(),wv(e,y);break}e.timeoutHandle=eD(vh.bind(null,e,Yo,bd),u);break}}vh(e,Yo,bd);break}case Sy:{if(Af(e,s),gv(s))break;if(!UF()){var w=vs(e,s),x=w,A=Br()-x,B=Rz(A)-A;if(B>10){e.timeoutHandle=eD(vh.bind(null,e,Yo,bd),B);break}}vh(e,Yo,bd);break}case wF:{vh(e,Yo,bd);break}default:throw new Error("Unknown root exit status.")}}function gz(e){for(var t=e;;){if(t.flags&Vu){var s=t.updateQueue;if(s!==null){var u=s.stores;if(u!==null)for(var p=0;p<u.length;p++){var y=u[p],w=y.getSnapshot,x=y.value;try{if(!ie(w(),x))return!1}catch{return!1}}}}var A=t.child;if(t.subtreeFlags&Vu&&A!==null){A.return=t,t=A;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function Af(e,t){t=Up(t,Pw),t=Up(t,_y),jb(e,t)}function TF(e){if(N5(),(Cn&(bi|cl))!==Ia)throw new Error("Should not already be working.");wd();var t=km(e,E);if(!Bi(t,U))return Go(e,Br()),null;var s=jw(e,t);if(e.tag!==vf&&s===hh){var u=Dm(e);u!==E&&(t=u,s=rC(e,u))}if(s===Dy){var p=Cy;throw gh(e,E),Af(e,t),Go(e,Br()),p}if(s===KS)throw new Error("Root did not complete. This is a bug in React.");var y=e.current.alternate;return e.finishedWork=y,e.finishedLanes=t,vh(e,Yo,bd),Go(e,Br()),null}function vz(e,t){t!==E&&(Hp(e,Zt(t,U)),Go(e,Br()),(Cn&(bi|cl))===Ia&&(Ey(),yf()))}function aC(e,t){var s=Cn;Cn|=kF;try{return e(t)}finally{Cn=s,Cn===Ia&&!uu.isBatchingLegacy&&(Ey(),_T())}}function yz(e,t,s,u,p){var y=bs(),w=yi.transition;try{return yi.transition=null,ca(Mi),e(t,s,u,p)}finally{ca(y),yi.transition=w,Cn===Ia&&Ey()}}function kd(e){Ef!==null&&Ef.tag===vf&&(Cn&(bi|cl))===Ia&&wd();var t=Cn;Cn|=kF;var s=yi.transition,u=bs();try{return yi.transition=null,ca(Mi),e?e():void 0}finally{ca(u),yi.transition=s,Cn=t,(Cn&(bi|cl))===Ia&&yf()}}function AF(){return(Cn&(bi|cl))!==Ia}function Iw(e,t){Ui(QS,hc,e),hc=Zt(hc,t)}function iC(e){hc=QS.current,zi(QS,e)}function gh(e,t){e.finishedWork=null,e.finishedLanes=E;var s=e.timeoutHandle;if(s!==tD&&(e.timeoutHandle=tD,V8(s)),Qr!==null)for(var u=Qr.return;u!==null;){var p=u.alternate;aF(p,u),u=u.return}po=e;var y=yh(e.current,null);return Qr=y,ja=hc=t,za=yd,Cy=null,$w=E,_y=E,Pw=E,xy=null,Yo=null,p5(),tu.discardPendingWarnings(),y}function FF(e,t){do{var s=Qr;try{if(Gk(),eA(),ur(),GS.current=null,s===null||s.return===null){za=Dy,Cy=t,Qr=null;return}if(rt&&s.mode&En&&Sw(s,!0),ot)if(ea(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var u=t;jo(s,u,ja)}else Wc(s,t,ja);U5(e,s.return,s,t,ja),OF(s)}catch(p){t=p,Qr===s&&s!==null?(s=s.return,Qr=s):s=Qr;continue}return}while(!0)}function $F(){var e=YS.current;return YS.current=yw,e===null?yw:e}function PF(e){YS.current=e}function bz(){XS=Br()}function Fy(e){$w=Zt(e,$w)}function kz(){za===yd&&(za=Fw)}function oC(){(za===yd||za===Fw||za===hh)&&(za=Sy),po!==null&&(jp($w)||jp(_y))&&Af(po,ja)}function wz(e){za!==Sy&&(za=hh),xy===null?xy=[e]:xy.push(e)}function Dz(){return za===yd}function jw(e,t){var s=Cn;Cn|=bi;var u=$F();if(po!==e||ja!==t){if(Xa){var p=e.memoizedUpdaters;p.size>0&&($y(e,ja),p.clear()),qp(e,t)}bd=Ub(),gh(e,t)}Hl(t);do try{Sz();break}catch(y){FF(e,y)}while(!0);if(Gk(),Cn=s,PF(u),Qr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return of(),po=null,ja=E,za}function Sz(){for(;Qr!==null;)NF(Qr)}function Cz(e,t){var s=Cn;Cn|=bi;var u=$F();if(po!==e||ja!==t){if(Xa){var p=e.memoizedUpdaters;p.size>0&&($y(e,ja),p.clear()),qp(e,t)}bd=Ub(),Ey(),gh(e,t)}Hl(t);do try{_z();break}catch(y){FF(e,y)}while(!0);return Gk(),PF(u),Cn=s,Qr!==null?(Np(),yd):(of(),po=null,ja=E,za)}function _z(){for(;Qr!==null&&!_p();)NF(Qr)}function NF(e){var t=e.alternate;Fn(e);var s;(e.mode&En)!==_t?(uS(e),s=sC(t,e,hc),Sw(e,!0)):s=sC(t,e,hc),ur(),e.memoizedProps=e.pendingProps,s===null?OF(e):Qr=s,GS.current=null}function OF(e){var t=e;do{var s=t.alternate,u=t.return;if((t.flags&Uc)===Ct){Fn(t);var p=void 0;if((t.mode&En)===_t?p=rF(s,t,hc):(uS(t),p=rF(s,t,hc),Sw(t,!1)),ur(),p!==null){Qr=p;return}}else{var y=k9(s,t);if(y!==null){y.flags&=fs,Qr=y;return}if((t.mode&En)!==_t){Sw(t,!1);for(var w=t.actualDuration,x=t.child;x!==null;)w+=x.actualDuration,x=x.sibling;t.actualDuration=w}if(u!==null)u.flags|=Uc,u.subtreeFlags=Ct,u.deletions=null;else{za=KS,Qr=null;return}}var A=t.sibling;if(A!==null){Qr=A;return}t=u,Qr=t}while(t!==null);za===yd&&(za=wF)}function vh(e,t,s){var u=bs(),p=yi.transition;try{yi.transition=null,ca(Mi),xz(e,t,s,u)}finally{yi.transition=p,ca(u)}return null}function xz(e,t,s,u){do wd();while(Ef!==null);if(Bz(),(Cn&(bi|cl))!==Ia)throw new Error("Should not already be working.");var p=e.finishedWork,y=e.finishedLanes;if(Fp(y),p===null)return Gu(),null;if(y===E&&m("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=E,p===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=M;var w=Zt(p.lanes,p.childLanes);Dv(e,w),e===po&&(po=null,Qr=null,ja=E),((p.subtreeFlags&Bo)!==Ct||(p.flags&Bo)!==Ct)&&(mh||(mh=!0,eC=s,cC(Io,function(){return wd(),null})));var x=(p.subtreeFlags&(Ys|Gs|Ks|Bo))!==Ct,A=(p.flags&(Ys|Gs|Ks|Bo))!==Ct;if(x||A){var B=yi.transition;yi.transition=null;var I=bs();ca(Mi);var re=Cn;Cn|=cl,GS.current=null,_9(e,p),_A(),I9(e,p,y),M8(e.containerInfo),e.current=p,zl(y),j9(p,e,y),Yc(),xp(),Cn=re,ca(I),yi.transition=B}else e.current=p,_A();var te=mh;if(mh?(mh=!1,Ef=e,Ty=y):(hg=0,Rw=null),w=e.pendingLanes,w===E&&(pg=null),te||MF(e.current,!1),nf(p.stateNode,u),Xa&&e.memoizedUpdaters.clear(),iz(),Go(e,Br()),t!==null)for(var ue=e.onRecoverableError,ge=0;ge<t.length;ge++){var Ce=t[ge],tt=Ce.stack,St=Ce.digest;ue(Ce.value,{componentStack:tt,digest:St})}if(Nw){Nw=!1;var Pt=JS;throw JS=null,Pt}return Bi(Ty,U)&&e.tag!==vf&&wd(),w=e.pendingLanes,Bi(w,U)?($5(),e===tC?Ay++:(Ay=0,tC=e)):Ay=0,yf(),Gu(),null}function wd(){if(Ef!==null){var e=Pa(Ty),t=qb(tl,e),s=yi.transition,u=bs();try{return yi.transition=null,ca(t),Tz()}finally{ca(u),yi.transition=s}}return!1}function Ez(e){ZS.push(e),mh||(mh=!0,cC(Io,function(){return wd(),null}))}function Tz(){if(Ef===null)return!1;var e=eC;eC=null;var t=Ef,s=Ty;if(Ef=null,Ty=E,(Cn&(bi|cl))!==Ia)throw new Error("Cannot flush passive effects while already rendering.");nC=!0,Ow=!1,Ul(s);var u=Cn;Cn|=cl,Y9(t.current),H9(t,t.current,s,e);{var p=ZS;ZS=[];for(var y=0;y<p.length;y++){var w=p[y];A9(t,w)}}Pp(),MF(t.current,!0),Cn=u,yf(),Ow?t===Rw?hg++:(hg=0,Rw=t):hg=0,nC=!1,Ow=!1,Tp(t);{var x=t.current.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}return!0}function RF(e){return pg!==null&&pg.has(e)}function Az(e){pg===null?pg=new Set([e]):pg.add(e)}function Fz(e){Nw||(Nw=!0,JS=e)}var $z=Fz;function LF(e,t,s){var u=fh(s,t),p=NA(e,u,U),y=kf(e,p,U),w=ho();y!==null&&(td(y,U,w),Go(y,w))}function yr(e,t,s){if(D9(s),Py(!1),e.tag===N){LF(e,e,s);return}var u=null;for(u=t;u!==null;){if(u.tag===N){LF(u,e,s);return}else if(u.tag===T){var p=u.type,y=u.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!RF(y)){var w=fh(s,e),x=ES(u,w,U),A=kf(u,x,U),B=ho();A!==null&&(td(A,U,B),Go(A,B));return}}u=u.return}m(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
277
277
|
|
|
278
278
|
Error message:
|
|
279
279
|
|
|
280
|
-
%s`,s)}function
|
|
280
|
+
%s`,s)}function Pz(e,t,s){var u=e.pingCache;u!==null&&u.delete(t);var p=ho();wv(e,s),zz(e),po===e&&ed(ja,s)&&(za===Sy||za===Fw&&Zc(ja)&&Br()-XS<DF?gh(e,E):Pw=Zt(Pw,s)),Go(e,p)}function BF(e,t){t===M&&(t=fz(e));var s=ho(),u=Vo(e,t);u!==null&&(td(u,t,s),Go(u,s))}function Nz(e){var t=e.memoizedState,s=M;t!==null&&(s=t.retryLane),BF(e,s)}function Oz(e,t){var s=M,u;switch(e.tag){case K:u=e.stateNode;var p=e.memoizedState;p!==null&&(s=p.retryLane);break;case Ve:u=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),BF(e,s)}function Rz(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:lz(e/1960)*1960}function Lz(){if(Ay>cz)throw Ay=0,tC=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");hg>dz&&(hg=0,Rw=null,m("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function Bz(){tu.flushLegacyContextWarning(),tu.flushPendingUnsafeLifecycleWarnings()}function MF(e,t){Fn(e),zw(e,so,nz),t&&zw(e,Lo,rz),zw(e,so,ez),t&&zw(e,Lo,tz),ur()}function zw(e,t,s){for(var u=e,p=null;u!==null;){var y=u.subtreeFlags&t;u!==p&&u.child!==null&&y!==Ct?u=u.child:((u.flags&t)!==Ct&&s(u),u.sibling!==null?u=u.sibling:u=p=u.return)}}var Uw=null;function IF(e){{if((Cn&bi)!==Ia||!(e.mode&an))return;var t=e.tag;if(t!==$&&t!==N&&t!==T&&t!==C&&t!==q&&t!==ae&&t!==pe)return;var s=Mt(e)||"ReactComponent";if(Uw!==null){if(Uw.has(s))return;Uw.add(s)}else Uw=new Set([s]);var u=la;try{Fn(e),m("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{u?Fn(e):ur()}}}var sC;{var Mz=null;sC=function(e,t,s){var u=WF(Mz,t);try{return JA(e,t,s)}catch(y){if(Q6()||y!==null&&typeof y=="object"&&typeof y.then=="function")throw y;if(Gk(),eA(),aF(e,t),WF(t,u),t.mode&En&&uS(t),ao(null,JA,null,e,t,s),ds()){var p=zc();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof y=="object"&&y!==null&&!y._suppressLogging&&(y._suppressLogging=!0)}throw y}}}var jF=!1,lC;lC=new Set;function Iz(e){if(to&&!T5())switch(e.tag){case C:case q:case pe:{var t=Qr&&Mt(Qr)||"Unknown",s=t;if(!lC.has(s)){lC.add(s);var u=Mt(e)||"Unknown";m("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",u,t,t)}break}case T:{jF||(m("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),jF=!0);break}}}function $y(e,t){if(Xa){var s=e.memoizedUpdaters;s.forEach(function(u){_m(e,u,t)})}}var uC={};function cC(e,t){{var s=uu.current;return s!==null?(s.push(t),uC):Cp(e,t)}}function zF(e){if(e!==uC)return fm(e)}function UF(){return uu.current!==null}function jz(e){{if(e.mode&an){if(!bF())return}else if(!sz()||Cn!==Ia||e.tag!==C&&e.tag!==q&&e.tag!==pe)return;if(uu.current===null){var t=la;try{Fn(e),m(`An update to %s inside a test was not wrapped in act(...).
|
|
281
281
|
|
|
282
282
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
283
283
|
|
|
@@ -286,7 +286,7 @@ act(() => {
|
|
|
286
286
|
});
|
|
287
287
|
/* assert on the output */
|
|
288
288
|
|
|
289
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Mt(e))}finally{t?Fn(e):ur()}}}}function
|
|
289
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Mt(e))}finally{t?Fn(e):ur()}}}}function zz(e){e.tag!==vf&&bF()&&uu.current===null&&m(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
290
290
|
|
|
291
291
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
292
292
|
|
|
@@ -295,15 +295,15 @@ act(() => {
|
|
|
295
295
|
});
|
|
296
296
|
/* assert on the output */
|
|
297
297
|
|
|
298
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Py(e){_F=e}var dl=null,mg=null,
|
|
298
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Py(e){_F=e}var dl=null,mg=null,Uz=function(e){dl=e};function gg(e){{if(dl===null)return e;var t=dl(e);return t===void 0?e:t.current}}function dC(e){return gg(e)}function fC(e){{if(dl===null)return e;var t=dl(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var s=gg(e.render);if(e.render!==s){var u={$$typeof:Ae,render:s};return e.displayName!==void 0&&(u.displayName=e.displayName),u}}return e}return t.current}}function HF(e,t){{if(dl===null)return!1;var s=e.elementType,u=t.type,p=!1,y=typeof u=="object"&&u!==null?u.$$typeof:null;switch(e.tag){case T:{typeof u=="function"&&(p=!0);break}case C:{(typeof u=="function"||y===jt)&&(p=!0);break}case q:{(y===Ae||y===jt)&&(p=!0);break}case ae:case pe:{(y===Ht||y===jt)&&(p=!0);break}default:return!1}if(p){var w=dl(s);if(w!==void 0&&w===dl(u))return!0}return!1}}function qF(e){{if(dl===null||typeof WeakSet!="function")return;mg===null&&(mg=new WeakSet),mg.add(e)}}var Hz=function(e,t){{if(dl===null)return;var s=t.staleFamilies,u=t.updatedFamilies;wd(),kd(function(){pC(e.current,u,s)})}},qz=function(e,t){{if(e.context!==Ss)return;wd(),kd(function(){Ny(t,e,null,null)})}};function pC(e,t,s){{var u=e.alternate,p=e.child,y=e.sibling,w=e.tag,x=e.type,A=null;switch(w){case C:case pe:case T:A=x;break;case q:A=x.render;break}if(dl===null)throw new Error("Expected resolveFamily to be set during hot reload.");var B=!1,I=!1;if(A!==null){var re=dl(A);re!==void 0&&(s.has(re)?I=!0:t.has(re)&&(w===T?I=!0:B=!0))}if(mg!==null&&(mg.has(e)||u!==null&&mg.has(u))&&(I=!0),I&&(e._debugNeedsRemount=!0),I||B){var te=Vo(e,U);te!==null&&Ua(te,e,U,dr)}p!==null&&!I&&pC(p,t,s),y!==null&&pC(y,t,s)}}var Vz=function(e,t){{var s=new Set,u=new Set(t.map(function(p){return p.current}));return hC(e.current,u,s),s}};function hC(e,t,s){{var u=e.child,p=e.sibling,y=e.tag,w=e.type,x=null;switch(y){case C:case pe:case T:x=w;break;case q:x=w.render;break}var A=!1;x!==null&&t.has(x)&&(A=!0),A?Wz(e,s):u!==null&&hC(u,t,s),p!==null&&hC(p,t,s)}}function Wz(e,t){{var s=Yz(e,t);if(s)return;for(var u=e;;){switch(u.tag){case R:t.add(u.stateNode);return;case O:t.add(u.stateNode.containerInfo);return;case N:t.add(u.stateNode.containerInfo);return}if(u.return===null)throw new Error("Expected to reach root first.");u=u.return}}}function Yz(e,t){for(var s=e,u=!1;;){if(s.tag===R)u=!0,t.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return u;for(;s.sibling===null;){if(s.return===null||s.return===e)return u;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var mC;{mC=!1;try{var LH=Object.preventExtensions({})}catch{mC=!0}}function Gz(e,t,s,u){this.tag=e,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=u,this.flags=Ct,this.subtreeFlags=Ct,this.deletions=null,this.lanes=E,this.childLanes=E,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!mC&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Cs=function(e,t,s,u){return new Gz(e,t,s,u)};function gC(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Kz(e){return typeof e=="function"&&!gC(e)&&e.defaultProps===void 0}function Qz(e){if(typeof e=="function")return gC(e)?T:C;if(e!=null){var t=e.$$typeof;if(t===Ae)return q;if(t===Ht)return ae}return $}function yh(e,t){var s=e.alternate;s===null?(s=Cs(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s._debugSource=e._debugSource,s._debugOwner=e._debugOwner,s._debugHookTypes=e._debugHookTypes,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=Ct,s.subtreeFlags=Ct,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=e.flags&Sr,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue;var u=e.dependencies;switch(s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.selfBaseDuration=e.selfBaseDuration,s.treeBaseDuration=e.treeBaseDuration,s._debugNeedsRemount=e._debugNeedsRemount,s.tag){case $:case C:case pe:s.type=gg(e.type);break;case T:s.type=dC(e.type);break;case q:s.type=fC(e.type);break}return s}function Xz(e,t){e.flags&=Sr|Fr;var s=e.alternate;if(s===null)e.childLanes=E,e.lanes=t,e.child=null,e.subtreeFlags=Ct,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=Ct,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type;var u=s.dependencies;e.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},e.selfBaseDuration=s.selfBaseDuration,e.treeBaseDuration=s.treeBaseDuration}return e}function Jz(e,t,s){var u;return e===Mk?(u=an,t===!0&&(u|=qn,u|=Tn)):u=_t,Xa&&(u|=En),Cs(N,null,null,u)}function vC(e,t,s,u,p,y){var w=$,x=e;if(typeof e=="function")gC(e)?(w=T,x=dC(x)):x=gg(x);else if(typeof e=="string")w=R;else e:switch(e){case _o:return Ff(s.children,p,y,t);case _i:w=G,p|=qn,(p&an)!==_t&&(p|=Tn);break;case xo:return Zz(s,p,y,t);case Je:return e7(s,p,y,t);case ct:return t7(s,p,y,t);case wr:return VF(s,p,y,t);case Jn:case Wt:case Zn:case Rr:case nn:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Eo:w=V;break e;case Y:w=Se;break e;case Ae:w=q,x=fC(x);break e;case Ht:w=ae;break e;case jt:w=Te,x=null;break e}var A="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=u?Mt(u):null;B&&(A+=`
|
|
299
299
|
|
|
300
|
-
Check the render method of \``+B+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+A))}}var I=Cs(w,s,t,p);return I.elementType=e,I.type=x,I.lanes=y,I._debugOwner=u,I}function yC(e,t,s){var u=null;u=e._owner;var p=e.type,y=e.key,w=e.props,x=vC(p,y,w,u,t,s);return x._debugSource=e._source,x._debugOwner=e._owner,x}function Ff(e,t,s,u){var p=Cs(Q,e,u,t);return p.lanes=s,p}function
|
|
300
|
+
Check the render method of \``+B+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+A))}}var I=Cs(w,s,t,p);return I.elementType=e,I.type=x,I.lanes=y,I._debugOwner=u,I}function yC(e,t,s){var u=null;u=e._owner;var p=e.type,y=e.key,w=e.props,x=vC(p,y,w,u,t,s);return x._debugSource=e._source,x._debugOwner=e._owner,x}function Ff(e,t,s,u){var p=Cs(Q,e,u,t);return p.lanes=s,p}function Zz(e,t,s,u){typeof e.id!="string"&&m('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var p=Cs(Z,e,u,t|En);return p.elementType=xo,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function e7(e,t,s,u){var p=Cs(K,e,u,t);return p.elementType=Je,p.lanes=s,p}function t7(e,t,s,u){var p=Cs(Ve,e,u,t);return p.elementType=ct,p.lanes=s,p}function VF(e,t,s,u){var p=Cs(nt,e,u,t);p.elementType=wr,p.lanes=s;var y={isHidden:!1};return p.stateNode=y,p}function bC(e,t,s){var u=Cs(j,e,null,t);return u.lanes=s,u}function n7(){var e=Cs(R,null,null,_t);return e.elementType="DELETED",e}function r7(e){var t=Cs(Ge,null,null,_t);return t.stateNode=e,t}function kC(e,t,s){var u=e.children!==null?e.children:[],p=Cs(O,u,e.key,t);return p.lanes=s,p.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},p}function WF(e,t){return e===null&&(e=Cs($,null,null,_t)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function a7(e,t,s,u,p){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=tD,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=M,this.eventTimes=Cm(E),this.expirationTimes=Cm(dr),this.pendingLanes=E,this.suspendedLanes=E,this.pingedLanes=E,this.expiredLanes=E,this.mutableReadLanes=E,this.finishedLanes=E,this.entangledLanes=E,this.entanglements=Cm(E),this.identifierPrefix=u,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var y=this.pendingUpdatersLaneMap=[],w=0;w<_;w++)y.push(new Set)}switch(t){case Mk:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case vf:this._debugRootType=s?"hydrate()":"render()";break}}function YF(e,t,s,u,p,y,w,x,A,B){var I=new a7(e,t,s,x,A),re=Jz(t,y);I.current=re,re.stateNode=I;{var te={element:u,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};re.memoizedState=te}return ND(re),I}var wC="18.3.1";function i7(e,t,s){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return br(u),{$$typeof:oa,key:u==null?null:""+u,children:e,containerInfo:t,implementation:s}}var DC,SC;DC=!1,SC={};function GF(e){if(!e)return Ss;var t=qu(e),s=z6(t);if(t.tag===T){var u=t.type;if(sc(u))return DT(t,u,s)}return s}function o7(e,t){{var s=qu(e);if(s===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var u=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+u)}var p=Ka(s);if(p===null)return null;if(p.mode&qn){var y=Mt(s)||"Component";if(!SC[y]){SC[y]=!0;var w=la;try{Fn(p),s.mode&qn?m("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,y):m("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,y)}finally{w?Fn(w):ur()}}}return p.stateNode}}function KF(e,t,s,u,p,y,w,x){var A=!1,B=null;return YF(e,t,A,B,s,u,p,y,w)}function QF(e,t,s,u,p,y,w,x,A,B){var I=!0,re=YF(s,u,I,e,p,y,w,x,A);re.context=GF(null);var te=re.current,ue=ho(),ge=Tf(te),Ce=gd(ue,ge);return Ce.callback=t??null,kf(te,Ce,ge),pz(re,ge,ue),re}function Ny(e,t,s,u){Ep(t,e);var p=t.current,y=ho(),w=Tf(p);hr(w);var x=GF(s);t.context===null?t.context=x:t.pendingContext=x,to&&la!==null&&!DC&&(DC=!0,m(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
301
301
|
|
|
302
|
-
Check the render method of %s.`,Mt(la)||"Unknown"));var A=gd(y,w);A.payload={element:e},u=u===void 0?null:u,u!==null&&(typeof u!="function"&&m("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",u),A.callback=u);var B=kf(p,A,w);return B!==null&&(Ua(B,p,w,y),Zk(B,p,w)),w}function Hw(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case R:return t.child.stateNode;default:return t.child.stateNode}}function
|
|
302
|
+
Check the render method of %s.`,Mt(la)||"Unknown"));var A=gd(y,w);A.payload={element:e},u=u===void 0?null:u,u!==null&&(typeof u!="function"&&m("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",u),A.callback=u);var B=kf(p,A,w);return B!==null&&(Ua(B,p,w,y),Zk(B,p,w)),w}function Hw(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case R:return t.child.stateNode;default:return t.child.stateNode}}function s7(e){switch(e.tag){case N:{var t=e.stateNode;if(xm(t)){var s=Lb(t);vz(t,s)}break}case K:{kd(function(){var p=Vo(e,U);if(p!==null){var y=ho();Ua(p,e,U,y)}});var u=U;CC(e,u);break}}}function XF(e,t){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=kv(s.retryLane,t))}function CC(e,t){XF(e,t);var s=e.alternate;s&&XF(s,t)}function l7(e){if(e.tag===K){var t=Bp,s=Vo(e,t);if(s!==null){var u=ho();Ua(s,e,t,u)}CC(e,t)}}function u7(e){if(e.tag===K){var t=Tf(e),s=Vo(e,t);if(s!==null){var u=ho();Ua(s,e,t,u)}CC(e,t)}}function JF(e){var t=cr(e);return t===null?null:t.stateNode}var ZF=function(e){return null};function c7(e){return ZF(e)}var e$=function(e){return!1};function d7(e){return e$(e)}var t$=null,n$=null,r$=null,a$=null,i$=null,o$=null,s$=null,l$=null,u$=null;{var c$=function(e,t,s){var u=t[s],p=Yt(e)?e.slice():Xt({},e);return s+1===t.length?(Yt(p)?p.splice(u,1):delete p[u],p):(p[u]=c$(e[u],t,s+1),p)},d$=function(e,t){return c$(e,t,0)},f$=function(e,t,s,u){var p=t[u],y=Yt(e)?e.slice():Xt({},e);if(u+1===t.length){var w=s[u];y[w]=y[p],Yt(y)?y.splice(p,1):delete y[p]}else y[p]=f$(e[p],t,s,u+1);return y},p$=function(e,t,s){if(t.length!==s.length){h("copyWithRename() expects paths of the same length");return}else for(var u=0;u<s.length-1;u++)if(t[u]!==s[u]){h("copyWithRename() expects paths to be the same except for the deepest key");return}return f$(e,t,s,0)},h$=function(e,t,s,u){if(s>=t.length)return u;var p=t[s],y=Yt(e)?e.slice():Xt({},e);return y[p]=h$(e[p],t,s+1,u),y},m$=function(e,t,s){return h$(e,t,0,s)},_C=function(e,t){for(var s=e.memoizedState;s!==null&&t>0;)s=s.next,t--;return s};t$=function(e,t,s,u){var p=_C(e,t);if(p!==null){var y=m$(p.memoizedState,s,u);p.memoizedState=y,p.baseState=y,e.memoizedProps=Xt({},e.memoizedProps);var w=Vo(e,U);w!==null&&Ua(w,e,U,dr)}},n$=function(e,t,s){var u=_C(e,t);if(u!==null){var p=d$(u.memoizedState,s);u.memoizedState=p,u.baseState=p,e.memoizedProps=Xt({},e.memoizedProps);var y=Vo(e,U);y!==null&&Ua(y,e,U,dr)}},r$=function(e,t,s,u){var p=_C(e,t);if(p!==null){var y=p$(p.memoizedState,s,u);p.memoizedState=y,p.baseState=y,e.memoizedProps=Xt({},e.memoizedProps);var w=Vo(e,U);w!==null&&Ua(w,e,U,dr)}},a$=function(e,t,s){e.pendingProps=m$(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var u=Vo(e,U);u!==null&&Ua(u,e,U,dr)},i$=function(e,t){e.pendingProps=d$(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Vo(e,U);s!==null&&Ua(s,e,U,dr)},o$=function(e,t,s){e.pendingProps=p$(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var u=Vo(e,U);u!==null&&Ua(u,e,U,dr)},s$=function(e){var t=Vo(e,U);t!==null&&Ua(t,e,U,dr)},l$=function(e){ZF=e},u$=function(e){e$=e}}function f7(e){var t=Ka(e);return t===null?null:t.stateNode}function p7(e){return null}function h7(){return la}function m7(e){var t=e.findFiberByHostInstance,s=i.ReactCurrentDispatcher;return Js({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:t$,overrideHookStateDeletePath:n$,overrideHookStateRenamePath:r$,overrideProps:a$,overridePropsDeletePath:i$,overridePropsRenamePath:o$,setErrorHandler:l$,setSuspenseHandler:u$,scheduleUpdate:s$,currentDispatcherRef:s,findHostInstanceByFiber:f7,findFiberByHostInstance:t||p7,findHostInstancesForRefresh:Vz,scheduleRefresh:Hz,scheduleRoot:qz,setRefreshHandler:Uz,getCurrentFiber:h7,reconcilerVersion:wC})}var g$=typeof reportError=="function"?reportError:function(e){console.error(e)};function xC(e){this._internalRoot=e}qw.prototype.render=xC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?m("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Vw(arguments[1])?m("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&m("You passed a second argument to root.render(...) but it only accepts one argument.");var s=t.containerInfo;if(s.nodeType!==er){var u=JF(t.current);u&&u.parentNode!==s&&m("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Ny(e,t,null,null)},qw.prototype.unmount=xC.prototype.unmount=function(){typeof arguments[0]=="function"&&m("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;AF()&&m("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),kd(function(){Ny(null,e,null,null)}),vT(t)}};function g7(e,t){if(!Vw(e))throw new Error("createRoot(...): Target container is not a DOM element.");v$(e);var s=!1,u=!1,p="",y=g$;t!=null&&(t.hydrate?h("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ea&&m(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
303
303
|
|
|
304
304
|
let root = createRoot(domContainer);
|
|
305
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(y=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var w=KF(e,Mk,null,s,u,p,y);$k(w.current,e);var x=e.nodeType===er?e.parentNode:e;return jv(x),new xC(w)}function qw(e){this._internalRoot=e}function
|
|
306
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TC,Ko.createPortal=Ez,Ko.createRoot=Az,Ko.findDOMNode=Dz,Ko.flushSync=$z,Ko.hydrate=Sz,Ko.hydrateRoot=Fz,Ko.render=Cz,Ko.unmountComponentAtNode=xz,Ko.unstable_batchedUpdates=aC,Ko.unstable_renderSubtreeIntoContainer=Tz,Ko.version=wC,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ko}function f_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f_)}catch(r){console.error(r)}}}process.env.NODE_ENV==="production"?(f_(),Jw.exports=oP()):Jw.exports=sP();var p_=Jw.exports,t0,Wy=p_;if(process.env.NODE_ENV==="production")t0=Wy.createRoot,Wy.hydrateRoot;else{var h_=Wy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t0=function(r,n){h_.usingClientEntryPoint=!0;try{return Wy.createRoot(r,n)}finally{h_.usingClientEntryPoint=!1}}}const lP=r=>{const n=document.createElement("div"),i=t0(n);return p_.flushSync(()=>{i.render(r)}),n.innerHTML},uP={hi:"Hei!"},cP={from:"Fra",to:"Til"},dP={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},fP={month:"Måned",year:"År",days:["Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Man","Tir","Ons","Tor","Fre","Lør","Søn"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],week:"Uke",prevMonth:"Forrige måned",nextMonth:"Neste måned"},pP={search:{placeholder:"Søk…"},labels:{optional:"Valgfritt",required:"Må fylles ut"},messages:{required:"Dette feltet er påkrevd",invalid:"Ugyldig verdi",invalidPattern:"Ugyldig format",tooShort:"For kort",tooLong:"For lang",rangeUnderflow:"For lav verdi",rangeOverflow:"For høy verdi",rangeUnderflowMin:"Verdien må være større enn eller lik {min}.",rangeOverflowMax:"Verdien må være mindre enn eller lik {max}.",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},helptext:{helptextDropdownButton:"Les mer"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},Wi={example:uP,generic:cP,calendar:dP,dates:fP,forms:pP};(function(){(function(r){const n=new WeakMap,i=new WeakMap,l=new WeakMap,c=new WeakMap,h=new WeakMap,m=new WeakMap,D=new WeakMap,C=new WeakMap,T=new WeakMap,$=new WeakMap,N=new WeakMap,O=new WeakMap,R=new WeakMap,j=new WeakMap,Q=new WeakMap,G={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},Se=(ce,ee)=>{for(let ye in G){ee[ye]=null;let Fe=null;const xe=G[ye];Object.defineProperty(ee,ye,{get(){return Fe},set(Oe){Fe=Oe,ce.isConnected?Ge(ce,xe,Oe):$.set(ce,ee)}})}};function V(ce){const ee=c.get(ce),{form:ye}=ee;X(ce,ye,ee),dt(ce,ee.labels)}const q=(ce,ee=!1)=>{const ye=document.createTreeWalker(ce,NodeFilter.SHOW_ELEMENT,{acceptNode(Oe){return c.has(Oe)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let Fe=ye.nextNode();const xe=!ee||ce.disabled;for(;Fe;)Fe.formDisabledCallback&&xe&&Ve(Fe,ce.disabled),Fe=ye.nextNode()},Z={attributes:!0,attributeFilter:["disabled","name"]},K=ht()?new MutationObserver(ce=>{for(const ee of ce){const ye=ee.target;if(ee.attributeName==="disabled"&&(ye.constructor.formAssociated?Ve(ye,ye.hasAttribute("disabled")):ye.localName==="fieldset"&&q(ye)),ee.attributeName==="name"&&ye.constructor.formAssociated){const Fe=c.get(ye),xe=T.get(ye);Fe.setFormValue(xe)}}}):{};function ae(ce){ce.forEach(ee=>{const{addedNodes:ye,removedNodes:Fe}=ee,xe=Array.from(ye),Oe=Array.from(Fe);xe.forEach(Ye=>{var xt;if(c.has(Ye)&&Ye.constructor.formAssociated&&V(Ye),$.has(Ye)){const Ut=$.get(Ye);Object.keys(G).filter(Dn=>Ut[Dn]!==null).forEach(Dn=>{Ge(Ye,G[Dn],Ut[Dn])}),$.delete(Ye)}if(Q.has(Ye)){const Ut=Q.get(Ye);Ge(Ye,"internals-valid",Ut.validity.valid.toString()),Ge(Ye,"internals-invalid",(!Ut.validity.valid).toString()),Ge(Ye,"aria-invalid",(!Ut.validity.valid).toString()),Q.delete(Ye)}if(Ye.localName==="form"){const Ut=C.get(Ye),Dn=document.createTreeWalker(Ye,NodeFilter.SHOW_ELEMENT,{acceptNode(Tr){return c.has(Tr)&&Tr.constructor.formAssociated&&!(Ut&&Ut.has(Tr))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let _n=Dn.nextNode();for(;_n;)V(_n),_n=Dn.nextNode()}Ye.localName==="fieldset"&&((xt=K.observe)===null||xt===void 0||xt.call(K,Ye,Z),q(Ye,!0))}),Oe.forEach(Ye=>{const xt=c.get(Ye);xt&&l.get(xt)&&Ke(xt),D.has(Ye)&&D.get(Ye).disconnect()})})}function pe(ce){ce.forEach(ee=>{const{removedNodes:ye}=ee;ye.forEach(Fe=>{const xe=R.get(ee.target);c.has(Fe)&&Dt(Fe),xe.disconnect()})})}const Te=ce=>{var ee,ye;const Fe=new MutationObserver(pe);!((ee=window==null?void 0:window.ShadyDOM)===null||ee===void 0)&&ee.inUse&&ce.mode&&ce.host&&(ce=ce.host),(ye=Fe.observe)===null||ye===void 0||ye.call(Fe,ce,{childList:!0}),R.set(ce,Fe)};ht()&&new MutationObserver(ae);const ke={childList:!0,subtree:!0},Ge=(ce,ee,ye)=>{ce.getAttribute(ee)!==ye&&ce.setAttribute(ee,ye)},Ve=(ce,ee)=>{ce.toggleAttribute("internals-disabled",ee),ee?Ge(ce,"aria-disabled","true"):ce.removeAttribute("aria-disabled"),ce.formDisabledCallback&&ce.formDisabledCallback.apply(ce,[ee])},Ke=ce=>{l.get(ce).forEach(ee=>{ee.remove()}),l.set(ce,[])},nt=(ce,ee)=>{const ye=document.createElement("input");return ye.type="hidden",ye.name=ce.getAttribute("name"),ce.after(ye),l.get(ee).push(ye),ye},He=(ce,ee)=>{var ye;l.set(ee,[]),(ye=K.observe)===null||ye===void 0||ye.call(K,ce,Z)},dt=(ce,ee)=>{if(ee.length){Array.from(ee).forEach(Fe=>Fe.addEventListener("click",ce.click.bind(ce)));let ye=ee[0].id;ee[0].id||(ye=`${ee[0].htmlFor}_Label`,ee[0].id=ye),Ge(ce,"aria-labelledby",ye)}},Me=ce=>{const ee=Array.from(ce.elements).filter(Oe=>!Oe.tagName.includes("-")&&Oe.validity).map(Oe=>Oe.validity.valid),ye=C.get(ce)||[],Fe=Array.from(ye).filter(Oe=>Oe.isConnected).map(Oe=>c.get(Oe).validity.valid),xe=[...ee,...Fe].includes(!1);ce.toggleAttribute("internals-invalid",xe),ce.toggleAttribute("internals-valid",!xe)},Le=ce=>{Me(he(ce.target))},de=ce=>{Me(he(ce.target))},Re=ce=>{const ee=["button[type=submit]","input[type=submit]","button:not([type])"].map(ye=>`${ye}:not([disabled])`).map(ye=>`${ye}:not([form])${ce.id?`,${ye}[form='${ce.id}']`:""}`).join(",");ce.addEventListener("click",ye=>{if(ye.target.closest(ee)){const Fe=C.get(ce);if(ce.noValidate)return;Fe.size&&Array.from(Fe).reverse().map(xe=>c.get(xe).reportValidity()).includes(!1)&&ye.preventDefault()}})},_e=ce=>{const ee=C.get(ce.target);ee&&ee.size&&ee.forEach(ye=>{ye.constructor.formAssociated&&ye.formResetCallback&&ye.formResetCallback.apply(ye)})},X=(ce,ee,ye)=>{if(ee){const Fe=C.get(ee);if(Fe)Fe.add(ce);else{const xe=new Set;xe.add(ce),C.set(ee,xe),Re(ee),ee.addEventListener("reset",_e),ee.addEventListener("input",Le),ee.addEventListener("change",de)}m.set(ee,{ref:ce,internals:ye}),ce.constructor.formAssociated&&ce.formAssociatedCallback&&setTimeout(()=>{ce.formAssociatedCallback.apply(ce,[ee])},0),Me(ee)}},he=ce=>{let ee=ce.parentNode;return ee&&ee.tagName!=="FORM"&&(ee=he(ee)),ee},ot=(ce,ee,ye=DOMException)=>{if(!ce.constructor.formAssociated)throw new ye(ee)},rt=(ce,ee,ye)=>{const Fe=C.get(ce);return Fe&&Fe.size&&Fe.forEach(xe=>{c.get(xe)[ye]()||(ee=!1)}),ee},Dt=ce=>{if(ce.constructor.formAssociated){const ee=c.get(ce),{labels:ye,form:Fe}=ee;dt(ce,ye),X(ce,Fe,ee)}};function ht(){return typeof MutationObserver<"u"}class bt{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const vt=ce=>(ce.badInput=!1,ce.customError=!1,ce.patternMismatch=!1,ce.rangeOverflow=!1,ce.rangeUnderflow=!1,ce.stepMismatch=!1,ce.tooLong=!1,ce.tooShort=!1,ce.typeMismatch=!1,ce.valid=!0,ce.valueMissing=!1,ce),Lt=(ce,ee,ye)=>(ce.valid=fn(ee),Object.keys(ee).forEach(Fe=>ce[Fe]=ee[Fe]),ye&&Me(ye),ce),fn=ce=>{let ee=!0;for(let ye in ce)ye!=="valid"&&ce[ye]!==!1&&(ee=!1);return ee},tn=new WeakMap;function Qn(ce,ee){ce.toggleAttribute(ee,!0),ce.part&&ce.part.add(ee)}class Bt extends Set{static get isPolyfilled(){return!0}constructor(ee){if(super(),!ee||!ee.tagName||ee.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");tn.set(this,ee)}add(ee){if(!/^--/.test(ee)||typeof ee!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${ee} must start with '--'.`);const ye=super.add(ee),Fe=tn.get(this),xe=`state${ee}`;return Fe.isConnected?Qn(Fe,xe):setTimeout(()=>{Qn(Fe,xe)}),ye}clear(){for(let[ee]of this.entries())this.delete(ee);super.clear()}delete(ee){const ye=super.delete(ee),Fe=tn.get(this);return Fe.isConnected?(Fe.toggleAttribute(`state${ee}`,!1),Fe.part&&Fe.part.remove(`state${ee}`)):setTimeout(()=>{Fe.toggleAttribute(`state${ee}`,!1),Fe.part&&Fe.part.remove(`state${ee}`)}),ye}}function at(ce,ee,ye,Fe){if(typeof ee=="function"?ce!==ee||!0:!ee.has(ce))throw new TypeError("Cannot read private member from an object whose class did not declare it");return ye==="m"?Fe:ye==="a"?Fe.call(ce):Fe?Fe.value:ee.get(ce)}function sr(ce,ee,ye,Fe,xe){if(typeof ee=="function"?ce!==ee||!0:!ee.has(ce))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ee.set(ce,ye),ye}var Nn;class br{constructor(ee){Nn.set(this,void 0),sr(this,Nn,ee);for(let ye=0;ye<ee.length;ye++){let Fe=ee[ye];this[ye]=Fe,Fe.hasAttribute("name")&&(this[Fe.getAttribute("name")]=Fe)}Object.freeze(this)}get length(){return at(this,Nn,"f").length}[(Nn=new WeakMap,Symbol.iterator)](){return at(this,Nn,"f")[Symbol.iterator]()}item(ee){return this[ee]==null?null:this[ee]}namedItem(ee){return this[ee]==null?null:this[ee]}}function Ki(){const ce=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=ye;const ee=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=Fe;function ye(...Oe){let Ye=ce.apply(this,Oe);return rt(this,Ye,"checkValidity")}function Fe(...Oe){let Ye=ee.apply(this,Oe);return rt(this,Ye,"reportValidity")}const{get:xe}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...Oe){const Ye=xe.call(this,...Oe),xt=Array.from(C.get(this)||[]);if(xt.length===0)return Ye;const Ut=Array.from(Ye).concat(xt).sort((Dn,_n)=>Dn.compareDocumentPosition?Dn.compareDocumentPosition(_n)&2?1:-1:0);return new br(Ut)}})}class Or{static get isPolyfilled(){return!0}constructor(ee){if(!ee||!ee.tagName||ee.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const ye=ee.getRootNode(),Fe=new bt;this.states=new Bt(ee),n.set(this,ee),i.set(this,Fe),c.set(ee,this),Se(ee,this),He(ee,this),Object.seal(this),ye instanceof DocumentFragment&&Te(ye)}checkValidity(){const ee=n.get(this);if(ot(ee,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const ye=i.get(this);if(!ye.valid){const Fe=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});ee.dispatchEvent(Fe)}return ye.valid}get form(){const ee=n.get(this);ot(ee,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let ye;return ee.constructor.formAssociated===!0&&(ye=he(ee)),ye}get labels(){const ee=n.get(this);ot(ee,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const ye=ee.getAttribute("id"),Fe=ee.getRootNode();return Fe&&ye?Fe.querySelectorAll(`[for="${ye}"]`):[]}reportValidity(){const ee=n.get(this);if(ot(ee,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const ye=this.checkValidity(),Fe=O.get(this);if(Fe&&!ee.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!ye&&Fe&&(ee.focus(),Fe.focus()),ye}setFormValue(ee){const ye=n.get(this);if(ot(ye,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),Ke(this),ee!=null&&!(ee instanceof FormData)){if(ye.getAttribute("name")){const Fe=nt(ye,this);Fe.value=ee}}else ee!=null&&ee instanceof FormData&&Array.from(ee).reverse().forEach(([Fe,xe])=>{if(typeof xe=="string"){const Oe=nt(ye,this);Oe.name=Fe,Oe.value=xe}});T.set(ye,ee)}setValidity(ee,ye,Fe){const xe=n.get(this);if(ot(xe,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!ee)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");O.set(this,Fe);const Oe=i.get(this),Ye={};for(const Dn in ee)Ye[Dn]=ee[Dn];Object.keys(Ye).length===0&&vt(Oe);const xt=Object.assign(Object.assign({},Oe),Ye);delete xt.valid;const{valid:Ut}=Lt(Oe,xt,this.form);if(!Ut&&!ye)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");h.set(this,Ut?"":ye),xe.isConnected?(xe.toggleAttribute("internals-invalid",!Ut),xe.toggleAttribute("internals-valid",Ut),Ge(xe,"aria-invalid",`${!Ut}`)):Q.set(xe,this)}get shadowRoot(){const ee=n.get(this);return N.get(ee)||null}get validationMessage(){const ee=n.get(this);return ot(ee,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),h.get(this)}get validity(){const ee=n.get(this);return ot(ee,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),i.get(this)}get willValidate(){const ee=n.get(this);return ot(ee,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(ee.disabled||ee.hasAttribute("disabled")||ee.hasAttribute("readonly"))}}function kr(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class ce extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const ee=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(ee,ce);const ye=new ce;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(Fe=>Fe in ye.internals)}let Xn=!1,un=!1;function yn(ce){un||(un=!0,window.CustomStateSet=Bt,ce&&(HTMLElement.prototype.attachInternals=function(...ee){const ye=ce.call(this,ee);return ye.states=new Bt(this),ye}))}function sn(ce=!0){if(!Xn){if(Xn=!0,typeof window<"u"&&(window.ElementInternals=Or),typeof CustomElementRegistry<"u"){const ee=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(ye,Fe,xe){if(Fe.formAssociated){const Oe=Fe.prototype.connectedCallback;Fe.prototype.connectedCallback=function(){j.has(this)||(j.set(this,!0),this.hasAttribute("disabled")&&Ve(this,!0)),Oe!=null&&Oe.apply(this),Dt(this)}}ee.call(this,ye,Fe,xe)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(c.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Or(this)}),typeof Element<"u"){let ee=function(...Fe){const xe=ye.apply(this,Fe);if(N.set(this,xe),ht()){const Oe=new MutationObserver(ae);window.ShadyDOM?Oe.observe(this,ke):Oe.observe(xe,ke),D.set(this,Oe)}return xe};const ye=Element.prototype.attachShadow;Element.prototype.attachShadow=ee}ht()&&typeof document<"u"&&new MutationObserver(ae).observe(document.documentElement,ke),typeof HTMLFormElement<"u"&&Ki(),(ce||typeof window<"u"&&!window.CustomStateSet)&&yn()}}return customElements.polyfillWrapFlushCallback||(kr()?typeof window<"u"&&!window.CustomStateSet&&yn(HTMLElement.prototype.attachInternals):sn(!1)),r.forceCustomStateSetPolyfill=yn,r.forceElementInternalsPolyfill=sn,Object.defineProperty(r,"__esModule",{value:!0}),r})({})})();var hP=Object.defineProperty,m_=(r,n,i,l)=>{for(var c=void 0,h=r.length-1,m;h>=0;h--)(m=r[h])&&(c=m(n,i,c)||c);return c&&hP(n,i,c),c};class Ur extends Sh{constructor(){super(),this.strings=Wi,this.role=null}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}update(n){n.forEach((i,l)=>{typeof l=="string"&&this[l]&&typeof this[l]=="object"&&this[l].$$typeof&&(this[l]=lP(this[l]))}),super.update(n)}}m_([z({type:Object})],Ur.prototype,"strings"),m_([z({type:String})],Ur.prototype,"role");/**
|
|
305
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(y=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var w=KF(e,Mk,null,s,u,p,y);$k(w.current,e);var x=e.nodeType===er?e.parentNode:e;return jv(x),new xC(w)}function qw(e){this._internalRoot=e}function v7(e){e&&Qb(e)}qw.prototype.unstable_scheduleHydration=v7;function y7(e,t,s){if(!Vw(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");v$(e),t===void 0&&m("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=s??null,p=s!=null&&s.hydratedSources||null,y=!1,w=!1,x="",A=g$;s!=null&&(s.unstable_strictMode===!0&&(y=!0),s.identifierPrefix!==void 0&&(x=s.identifierPrefix),s.onRecoverableError!==void 0&&(A=s.onRecoverableError));var B=QF(t,null,e,Mk,u,y,w,x,A);if($k(B.current,e),jv(e),p)for(var I=0;I<p.length;I++){var re=p[I];D5(B,re)}return new qw(B)}function Vw(e){return!!(e&&(e.nodeType===Jr||e.nodeType===ui||e.nodeType===Al))}function Oy(e){return!!(e&&(e.nodeType===Jr||e.nodeType===ui||e.nodeType===Al||e.nodeType===er&&e.nodeValue===" react-mount-point-unstable "))}function v$(e){e.nodeType===Jr&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&m("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Xv(e)&&(e._reactRootContainer?m("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):m("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var b7=i.ReactCurrentOwner,y$;y$=function(e){if(e._reactRootContainer&&e.nodeType!==er){var t=JF(e._reactRootContainer.current);t&&t.parentNode!==e&&m("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,u=EC(e),p=!!(u&&mf(u));p&&!s&&m("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===Jr&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&m("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function EC(e){return e?e.nodeType===ui?e.documentElement:e.firstChild:null}function b$(){}function k7(e,t,s,u,p){if(p){if(typeof u=="function"){var y=u;u=function(){var te=Hw(w);y.call(te)}}var w=QF(t,u,e,vf,null,!1,!1,"",b$);e._reactRootContainer=w,$k(w.current,e);var x=e.nodeType===er?e.parentNode:e;return jv(x),kd(),w}else{for(var A;A=e.lastChild;)e.removeChild(A);if(typeof u=="function"){var B=u;u=function(){var te=Hw(I);B.call(te)}}var I=KF(e,vf,null,!1,!1,"",b$);e._reactRootContainer=I,$k(I.current,e);var re=e.nodeType===er?e.parentNode:e;return jv(re),kd(function(){Ny(t,I,s,u)}),I}}function w7(e,t){e!==null&&typeof e!="function"&&m("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Ww(e,t,s,u,p){y$(s),w7(p===void 0?null:p,"render");var y=s._reactRootContainer,w;if(!y)w=k7(s,t,e,p,u);else{if(w=y,typeof p=="function"){var x=p;p=function(){var A=Hw(w);x.call(A)}}Ny(t,w,e,p)}return Hw(w)}var k$=!1;function D7(e){{k$||(k$=!0,m("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=b7.current;if(t!==null&&t.stateNode!==null){var s=t.stateNode._warnedAboutRefsInRender;s||m("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",kn(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Jr?e:o7(e,"findDOMNode")}function S7(e,t,s){if(m("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Oy(t))throw new Error("Target container is not a DOM element.");{var u=Xv(t)&&t._reactRootContainer===void 0;u&&m("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Ww(null,e,t,!0,s)}function C7(e,t,s){if(m("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Oy(t))throw new Error("Target container is not a DOM element.");{var u=Xv(t)&&t._reactRootContainer===void 0;u&&m("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Ww(null,e,t,!1,s)}function _7(e,t,s,u){if(m("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Oy(s))throw new Error("Target container is not a DOM element.");if(e==null||!cv(e))throw new Error("parentComponent must be a valid React Component");return Ww(e,t,s,!1,u)}var w$=!1;function x7(e){if(w$||(w$=!0,m("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Oy(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=Xv(e)&&e._reactRootContainer===void 0;t&&m("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=EC(e),u=s&&!mf(s);u&&m("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return kd(function(){Ww(null,null,e,!1,function(){e._reactRootContainer=null,vT(e)})}),!0}else{{var p=EC(e),y=!!(p&&mf(p)),w=e.nodeType===Jr&&Oy(e.parentNode)&&!!e.parentNode._reactRootContainer;y&&m("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",w?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Em(s7),pt(l7),Wb(u7),$2(bs),Tm(Sv),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&m("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Jd(T8),uv(aC,yz,kd);function E7(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Vw(t))throw new Error("Target container is not a DOM element.");return i7(e,t,null,s)}function T7(e,t,s,u){return _7(e,t,s,u)}var TC={usingClientEntryPoint:!1,Events:[mf,Ym,Pk,zu,Zd,aC]};function A7(e,t){return TC.usingClientEntryPoint||m('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),g7(e,t)}function F7(e,t,s){return TC.usingClientEntryPoint||m('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),y7(e,t,s)}function $7(e){return AF()&&m("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),kd(e)}var P7=m7({findFiberByHostInstance:rh,bundleType:1,version:wC,rendererPackageName:"react-dom"});if(!P7&&tn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var D$=window.location.protocol;/^(https?|file):$/.test(D$)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(D$==="file:"?`
|
|
306
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TC,Ko.createPortal=E7,Ko.createRoot=A7,Ko.findDOMNode=D7,Ko.flushSync=$7,Ko.hydrate=S7,Ko.hydrateRoot=F7,Ko.render=C7,Ko.unmountComponentAtNode=x7,Ko.unstable_batchedUpdates=aC,Ko.unstable_renderSubtreeIntoContainer=T7,Ko.version=wC,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ko}function f_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f_)}catch(r){console.error(r)}}}process.env.NODE_ENV==="production"?(f_(),Jw.exports=oP()):Jw.exports=sP();var p_=Jw.exports,t0,Wy=p_;if(process.env.NODE_ENV==="production")t0=Wy.createRoot,Wy.hydrateRoot;else{var h_=Wy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t0=function(r,n){h_.usingClientEntryPoint=!0;try{return Wy.createRoot(r,n)}finally{h_.usingClientEntryPoint=!1}}}const lP=r=>{const n=document.createElement("div"),i=t0(n);return p_.flushSync(()=>{i.render(r)}),n.innerHTML},uP={hi:"Hei!"},cP={from:"Fra",to:"Til"},dP={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},fP={month:"Måned",year:"År",days:["Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Man","Tir","Ons","Tor","Fre","Lør","Søn"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],week:"Uke",prevMonth:"Forrige måned",nextMonth:"Neste måned"},pP={search:{placeholder:"Søk…"},labels:{optional:"Valgfritt",required:"Må fylles ut"},messages:{required:"Dette feltet er påkrevd",invalid:"Ugyldig verdi",invalidPattern:"Ugyldig format",tooShort:"For kort",tooLong:"For lang",rangeUnderflow:"For lav verdi",rangeOverflow:"For høy verdi",rangeUnderflowMin:"Verdien må være større enn eller lik {min}.",rangeOverflowMax:"Verdien må være mindre enn eller lik {max}.",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},helptext:{helptextDropdownButton:"Les mer"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},Wi={example:uP,generic:cP,calendar:dP,dates:fP,forms:pP};(function(){(function(r){const n=new WeakMap,i=new WeakMap,l=new WeakMap,c=new WeakMap,h=new WeakMap,m=new WeakMap,D=new WeakMap,C=new WeakMap,T=new WeakMap,$=new WeakMap,N=new WeakMap,O=new WeakMap,R=new WeakMap,j=new WeakMap,Q=new WeakMap,G={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},Se=(ce,ee)=>{for(let ye in G){ee[ye]=null;let Fe=null;const xe=G[ye];Object.defineProperty(ee,ye,{get(){return Fe},set(Oe){Fe=Oe,ce.isConnected?Ge(ce,xe,Oe):$.set(ce,ee)}})}};function V(ce){const ee=c.get(ce),{form:ye}=ee;X(ce,ye,ee),dt(ce,ee.labels)}const q=(ce,ee=!1)=>{const ye=document.createTreeWalker(ce,NodeFilter.SHOW_ELEMENT,{acceptNode(Oe){return c.has(Oe)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let Fe=ye.nextNode();const xe=!ee||ce.disabled;for(;Fe;)Fe.formDisabledCallback&&xe&&Ve(Fe,ce.disabled),Fe=ye.nextNode()},Z={attributes:!0,attributeFilter:["disabled","name"]},K=ht()?new MutationObserver(ce=>{for(const ee of ce){const ye=ee.target;if(ee.attributeName==="disabled"&&(ye.constructor.formAssociated?Ve(ye,ye.hasAttribute("disabled")):ye.localName==="fieldset"&&q(ye)),ee.attributeName==="name"&&ye.constructor.formAssociated){const Fe=c.get(ye),xe=T.get(ye);Fe.setFormValue(xe)}}}):{};function ae(ce){ce.forEach(ee=>{const{addedNodes:ye,removedNodes:Fe}=ee,xe=Array.from(ye),Oe=Array.from(Fe);xe.forEach(Ye=>{var xt;if(c.has(Ye)&&Ye.constructor.formAssociated&&V(Ye),$.has(Ye)){const Ut=$.get(Ye);Object.keys(G).filter(Dn=>Ut[Dn]!==null).forEach(Dn=>{Ge(Ye,G[Dn],Ut[Dn])}),$.delete(Ye)}if(Q.has(Ye)){const Ut=Q.get(Ye);Ge(Ye,"internals-valid",Ut.validity.valid.toString()),Ge(Ye,"internals-invalid",(!Ut.validity.valid).toString()),Ge(Ye,"aria-invalid",(!Ut.validity.valid).toString()),Q.delete(Ye)}if(Ye.localName==="form"){const Ut=C.get(Ye),Dn=document.createTreeWalker(Ye,NodeFilter.SHOW_ELEMENT,{acceptNode(Tr){return c.has(Tr)&&Tr.constructor.formAssociated&&!(Ut&&Ut.has(Tr))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let _n=Dn.nextNode();for(;_n;)V(_n),_n=Dn.nextNode()}Ye.localName==="fieldset"&&((xt=K.observe)===null||xt===void 0||xt.call(K,Ye,Z),q(Ye,!0))}),Oe.forEach(Ye=>{const xt=c.get(Ye);xt&&l.get(xt)&&Ke(xt),D.has(Ye)&&D.get(Ye).disconnect()})})}function pe(ce){ce.forEach(ee=>{const{removedNodes:ye}=ee;ye.forEach(Fe=>{const xe=R.get(ee.target);c.has(Fe)&&Dt(Fe),xe.disconnect()})})}const Te=ce=>{var ee,ye;const Fe=new MutationObserver(pe);!((ee=window==null?void 0:window.ShadyDOM)===null||ee===void 0)&&ee.inUse&&ce.mode&&ce.host&&(ce=ce.host),(ye=Fe.observe)===null||ye===void 0||ye.call(Fe,ce,{childList:!0}),R.set(ce,Fe)};ht()&&new MutationObserver(ae);const ke={childList:!0,subtree:!0},Ge=(ce,ee,ye)=>{ce.getAttribute(ee)!==ye&&ce.setAttribute(ee,ye)},Ve=(ce,ee)=>{ce.toggleAttribute("internals-disabled",ee),ee?Ge(ce,"aria-disabled","true"):ce.removeAttribute("aria-disabled"),ce.formDisabledCallback&&ce.formDisabledCallback.apply(ce,[ee])},Ke=ce=>{l.get(ce).forEach(ee=>{ee.remove()}),l.set(ce,[])},nt=(ce,ee)=>{const ye=document.createElement("input");return ye.type="hidden",ye.name=ce.getAttribute("name"),ce.after(ye),l.get(ee).push(ye),ye},He=(ce,ee)=>{var ye;l.set(ee,[]),(ye=K.observe)===null||ye===void 0||ye.call(K,ce,Z)},dt=(ce,ee)=>{if(ee.length){Array.from(ee).forEach(Fe=>Fe.addEventListener("click",ce.click.bind(ce)));let ye=ee[0].id;ee[0].id||(ye=`${ee[0].htmlFor}_Label`,ee[0].id=ye),Ge(ce,"aria-labelledby",ye)}},Me=ce=>{const ee=Array.from(ce.elements).filter(Oe=>!Oe.tagName.includes("-")&&Oe.validity).map(Oe=>Oe.validity.valid),ye=C.get(ce)||[],Fe=Array.from(ye).filter(Oe=>Oe.isConnected).map(Oe=>c.get(Oe).validity.valid),xe=[...ee,...Fe].includes(!1);ce.toggleAttribute("internals-invalid",xe),ce.toggleAttribute("internals-valid",!xe)},Le=ce=>{Me(he(ce.target))},de=ce=>{Me(he(ce.target))},Re=ce=>{const ee=["button[type=submit]","input[type=submit]","button:not([type])"].map(ye=>`${ye}:not([disabled])`).map(ye=>`${ye}:not([form])${ce.id?`,${ye}[form='${ce.id}']`:""}`).join(",");ce.addEventListener("click",ye=>{if(ye.target.closest(ee)){const Fe=C.get(ce);if(ce.noValidate)return;Fe.size&&Array.from(Fe).reverse().map(xe=>c.get(xe).reportValidity()).includes(!1)&&ye.preventDefault()}})},_e=ce=>{const ee=C.get(ce.target);ee&&ee.size&&ee.forEach(ye=>{ye.constructor.formAssociated&&ye.formResetCallback&&ye.formResetCallback.apply(ye)})},X=(ce,ee,ye)=>{if(ee){const Fe=C.get(ee);if(Fe)Fe.add(ce);else{const xe=new Set;xe.add(ce),C.set(ee,xe),Re(ee),ee.addEventListener("reset",_e),ee.addEventListener("input",Le),ee.addEventListener("change",de)}m.set(ee,{ref:ce,internals:ye}),ce.constructor.formAssociated&&ce.formAssociatedCallback&&setTimeout(()=>{ce.formAssociatedCallback.apply(ce,[ee])},0),Me(ee)}},he=ce=>{let ee=ce.parentNode;return ee&&ee.tagName!=="FORM"&&(ee=he(ee)),ee},ot=(ce,ee,ye=DOMException)=>{if(!ce.constructor.formAssociated)throw new ye(ee)},rt=(ce,ee,ye)=>{const Fe=C.get(ce);return Fe&&Fe.size&&Fe.forEach(xe=>{c.get(xe)[ye]()||(ee=!1)}),ee},Dt=ce=>{if(ce.constructor.formAssociated){const ee=c.get(ce),{labels:ye,form:Fe}=ee;dt(ce,ye),X(ce,Fe,ee)}};function ht(){return typeof MutationObserver<"u"}class bt{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const vt=ce=>(ce.badInput=!1,ce.customError=!1,ce.patternMismatch=!1,ce.rangeOverflow=!1,ce.rangeUnderflow=!1,ce.stepMismatch=!1,ce.tooLong=!1,ce.tooShort=!1,ce.typeMismatch=!1,ce.valid=!0,ce.valueMissing=!1,ce),Lt=(ce,ee,ye)=>(ce.valid=fn(ee),Object.keys(ee).forEach(Fe=>ce[Fe]=ee[Fe]),ye&&Me(ye),ce),fn=ce=>{let ee=!0;for(let ye in ce)ye!=="valid"&&ce[ye]!==!1&&(ee=!1);return ee},tn=new WeakMap;function Qn(ce,ee){ce.toggleAttribute(ee,!0),ce.part&&ce.part.add(ee)}class Bt extends Set{static get isPolyfilled(){return!0}constructor(ee){if(super(),!ee||!ee.tagName||ee.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");tn.set(this,ee)}add(ee){if(!/^--/.test(ee)||typeof ee!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${ee} must start with '--'.`);const ye=super.add(ee),Fe=tn.get(this),xe=`state${ee}`;return Fe.isConnected?Qn(Fe,xe):setTimeout(()=>{Qn(Fe,xe)}),ye}clear(){for(let[ee]of this.entries())this.delete(ee);super.clear()}delete(ee){const ye=super.delete(ee),Fe=tn.get(this);return Fe.isConnected?(Fe.toggleAttribute(`state${ee}`,!1),Fe.part&&Fe.part.remove(`state${ee}`)):setTimeout(()=>{Fe.toggleAttribute(`state${ee}`,!1),Fe.part&&Fe.part.remove(`state${ee}`)}),ye}}function at(ce,ee,ye,Fe){if(typeof ee=="function"?ce!==ee||!0:!ee.has(ce))throw new TypeError("Cannot read private member from an object whose class did not declare it");return ye==="m"?Fe:ye==="a"?Fe.call(ce):Fe?Fe.value:ee.get(ce)}function sr(ce,ee,ye,Fe,xe){if(typeof ee=="function"?ce!==ee||!0:!ee.has(ce))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ee.set(ce,ye),ye}var Nn;class br{constructor(ee){Nn.set(this,void 0),sr(this,Nn,ee);for(let ye=0;ye<ee.length;ye++){let Fe=ee[ye];this[ye]=Fe,Fe.hasAttribute("name")&&(this[Fe.getAttribute("name")]=Fe)}Object.freeze(this)}get length(){return at(this,Nn,"f").length}[(Nn=new WeakMap,Symbol.iterator)](){return at(this,Nn,"f")[Symbol.iterator]()}item(ee){return this[ee]==null?null:this[ee]}namedItem(ee){return this[ee]==null?null:this[ee]}}function Ki(){const ce=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=ye;const ee=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=Fe;function ye(...Oe){let Ye=ce.apply(this,Oe);return rt(this,Ye,"checkValidity")}function Fe(...Oe){let Ye=ee.apply(this,Oe);return rt(this,Ye,"reportValidity")}const{get:xe}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...Oe){const Ye=xe.call(this,...Oe),xt=Array.from(C.get(this)||[]);if(xt.length===0)return Ye;const Ut=Array.from(Ye).concat(xt).sort((Dn,_n)=>Dn.compareDocumentPosition?Dn.compareDocumentPosition(_n)&2?1:-1:0);return new br(Ut)}})}class Or{static get isPolyfilled(){return!0}constructor(ee){if(!ee||!ee.tagName||ee.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const ye=ee.getRootNode(),Fe=new bt;this.states=new Bt(ee),n.set(this,ee),i.set(this,Fe),c.set(ee,this),Se(ee,this),He(ee,this),Object.seal(this),ye instanceof DocumentFragment&&Te(ye)}checkValidity(){const ee=n.get(this);if(ot(ee,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const ye=i.get(this);if(!ye.valid){const Fe=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});ee.dispatchEvent(Fe)}return ye.valid}get form(){const ee=n.get(this);ot(ee,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let ye;return ee.constructor.formAssociated===!0&&(ye=he(ee)),ye}get labels(){const ee=n.get(this);ot(ee,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const ye=ee.getAttribute("id"),Fe=ee.getRootNode();return Fe&&ye?Fe.querySelectorAll(`[for="${ye}"]`):[]}reportValidity(){const ee=n.get(this);if(ot(ee,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const ye=this.checkValidity(),Fe=O.get(this);if(Fe&&!ee.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!ye&&Fe&&(ee.focus(),Fe.focus()),ye}setFormValue(ee){const ye=n.get(this);if(ot(ye,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),Ke(this),ee!=null&&!(ee instanceof FormData)){if(ye.getAttribute("name")){const Fe=nt(ye,this);Fe.value=ee}}else ee!=null&&ee instanceof FormData&&Array.from(ee).reverse().forEach(([Fe,xe])=>{if(typeof xe=="string"){const Oe=nt(ye,this);Oe.name=Fe,Oe.value=xe}});T.set(ye,ee)}setValidity(ee,ye,Fe){const xe=n.get(this);if(ot(xe,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!ee)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");O.set(this,Fe);const Oe=i.get(this),Ye={};for(const Dn in ee)Ye[Dn]=ee[Dn];Object.keys(Ye).length===0&&vt(Oe);const xt=Object.assign(Object.assign({},Oe),Ye);delete xt.valid;const{valid:Ut}=Lt(Oe,xt,this.form);if(!Ut&&!ye)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");h.set(this,Ut?"":ye),xe.isConnected?(xe.toggleAttribute("internals-invalid",!Ut),xe.toggleAttribute("internals-valid",Ut),Ge(xe,"aria-invalid",`${!Ut}`)):Q.set(xe,this)}get shadowRoot(){const ee=n.get(this);return N.get(ee)||null}get validationMessage(){const ee=n.get(this);return ot(ee,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),h.get(this)}get validity(){const ee=n.get(this);return ot(ee,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),i.get(this)}get willValidate(){const ee=n.get(this);return ot(ee,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(ee.disabled||ee.hasAttribute("disabled")||ee.hasAttribute("readonly"))}}function kr(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class ce extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const ee=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(ee,ce);const ye=new ce;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(Fe=>Fe in ye.internals)}let Xn=!1,un=!1;function yn(ce){un||(un=!0,window.CustomStateSet=Bt,ce&&(HTMLElement.prototype.attachInternals=function(...ee){const ye=ce.call(this,ee);return ye.states=new Bt(this),ye}))}function sn(ce=!0){if(!Xn){if(Xn=!0,typeof window<"u"&&(window.ElementInternals=Or),typeof CustomElementRegistry<"u"){const ee=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(ye,Fe,xe){if(Fe.formAssociated){const Oe=Fe.prototype.connectedCallback;Fe.prototype.connectedCallback=function(){j.has(this)||(j.set(this,!0),this.hasAttribute("disabled")&&Ve(this,!0)),Oe!=null&&Oe.apply(this),Dt(this)}}ee.call(this,ye,Fe,xe)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(c.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Or(this)}),typeof Element<"u"){let ee=function(...Fe){const xe=ye.apply(this,Fe);if(N.set(this,xe),ht()){const Oe=new MutationObserver(ae);window.ShadyDOM?Oe.observe(this,ke):Oe.observe(xe,ke),D.set(this,Oe)}return xe};const ye=Element.prototype.attachShadow;Element.prototype.attachShadow=ee}ht()&&typeof document<"u"&&new MutationObserver(ae).observe(document.documentElement,ke),typeof HTMLFormElement<"u"&&Ki(),(ce||typeof window<"u"&&!window.CustomStateSet)&&yn()}}return customElements.polyfillWrapFlushCallback||(kr()?typeof window<"u"&&!window.CustomStateSet&&yn(HTMLElement.prototype.attachInternals):sn(!1)),r.forceCustomStateSetPolyfill=yn,r.forceElementInternalsPolyfill=sn,Object.defineProperty(r,"__esModule",{value:!0}),r})({})})();var hP=Object.defineProperty,m_=(r,n,i,l)=>{for(var c=void 0,h=r.length-1,m;h>=0;h--)(m=r[h])&&(c=m(n,i,c)||c);return c&&hP(n,i,c),c};class Ur extends Sh{constructor(){super(),this.strings=Wi,this.role=null}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}update(n){n.forEach((i,l)=>{typeof l=="string"&&this[l]&&typeof this[l]=="object"&&this[l].$$typeof&&(this[l]=lP(this[l]))}),super.update(n)}}m_([z({type:Object})],Ur.prototype,"strings"),m_([z({type:String})],Ur.prototype,"role");/**
|
|
307
307
|
* @license
|
|
308
308
|
* Copyright 2017 Google LLC
|
|
309
309
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1542,5 +1542,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1542
1542
|
* @public
|
|
1543
1543
|
*/var i=function(l){var c=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,h=0,m={},D={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function V(q){return q instanceof C?new C(q.type,V(q.content),q.alias):Array.isArray(q)?q.map(V):q.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(V){return Object.prototype.toString.call(V).slice(8,-1)},objId:function(V){return V.__id||Object.defineProperty(V,"__id",{value:++h}),V.__id},clone:function V(q,Z){Z=Z||{};var K,ae;switch(D.util.type(q)){case"Object":if(ae=D.util.objId(q),Z[ae])return Z[ae];K={},Z[ae]=K;for(var pe in q)q.hasOwnProperty(pe)&&(K[pe]=V(q[pe],Z));return K;case"Array":return ae=D.util.objId(q),Z[ae]?Z[ae]:(K=[],Z[ae]=K,q.forEach(function(Te,ke){K[ke]=V(Te,Z)}),K);default:return q}},getLanguage:function(V){for(;V;){var q=c.exec(V.className);if(q)return q[1].toLowerCase();V=V.parentElement}return"none"},setLanguage:function(V,q){V.className=V.className.replace(RegExp(c,"gi"),""),V.classList.add("language-"+q)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(K){var V=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(K.stack)||[])[1];if(V){var q=document.getElementsByTagName("script");for(var Z in q)if(q[Z].src==V)return q[Z]}return null}},isActive:function(V,q,Z){for(var K="no-"+q;V;){var ae=V.classList;if(ae.contains(q))return!0;if(ae.contains(K))return!1;V=V.parentElement}return!!Z}},languages:{plain:m,plaintext:m,text:m,txt:m,extend:function(V,q){var Z=D.util.clone(D.languages[V]);for(var K in q)Z[K]=q[K];return Z},insertBefore:function(V,q,Z,K){K=K||D.languages;var ae=K[V],pe={};for(var Te in ae)if(ae.hasOwnProperty(Te)){if(Te==q)for(var ke in Z)Z.hasOwnProperty(ke)&&(pe[ke]=Z[ke]);Z.hasOwnProperty(Te)||(pe[Te]=ae[Te])}var Ge=K[V];return K[V]=pe,D.languages.DFS(D.languages,function(Ve,Ke){Ke===Ge&&Ve!=V&&(this[Ve]=pe)}),pe},DFS:function V(q,Z,K,ae){ae=ae||{};var pe=D.util.objId;for(var Te in q)if(q.hasOwnProperty(Te)){Z.call(q,Te,q[Te],K||Te);var ke=q[Te],Ge=D.util.type(ke);Ge==="Object"&&!ae[pe(ke)]?(ae[pe(ke)]=!0,V(ke,Z,null,ae)):Ge==="Array"&&!ae[pe(ke)]&&(ae[pe(ke)]=!0,V(ke,Z,Te,ae))}}},plugins:{},highlightAll:function(V,q){D.highlightAllUnder(document,V,q)},highlightAllUnder:function(V,q,Z){var K={callback:Z,container:V,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};D.hooks.run("before-highlightall",K),K.elements=Array.prototype.slice.apply(K.container.querySelectorAll(K.selector)),D.hooks.run("before-all-elements-highlight",K);for(var ae=0,pe;pe=K.elements[ae++];)D.highlightElement(pe,q===!0,K.callback)},highlightElement:function(V,q,Z){var K=D.util.getLanguage(V),ae=D.languages[K];D.util.setLanguage(V,K);var pe=V.parentElement;pe&&pe.nodeName.toLowerCase()==="pre"&&D.util.setLanguage(pe,K);var Te=V.textContent,ke={element:V,language:K,grammar:ae,code:Te};function Ge(Ke){ke.highlightedCode=Ke,D.hooks.run("before-insert",ke),ke.element.innerHTML=ke.highlightedCode,D.hooks.run("after-highlight",ke),D.hooks.run("complete",ke),Z&&Z.call(ke.element)}if(D.hooks.run("before-sanity-check",ke),pe=ke.element.parentElement,pe&&pe.nodeName.toLowerCase()==="pre"&&!pe.hasAttribute("tabindex")&&pe.setAttribute("tabindex","0"),!ke.code){D.hooks.run("complete",ke),Z&&Z.call(ke.element);return}if(D.hooks.run("before-highlight",ke),!ke.grammar){Ge(D.util.encode(ke.code));return}if(q&&l.Worker){var Ve=new Worker(D.filename);Ve.onmessage=function(Ke){Ge(Ke.data)},Ve.postMessage(JSON.stringify({language:ke.language,code:ke.code,immediateClose:!0}))}else Ge(D.highlight(ke.code,ke.grammar,ke.language))},highlight:function(V,q,Z){var K={code:V,grammar:q,language:Z};if(D.hooks.run("before-tokenize",K),!K.grammar)throw new Error('The language "'+K.language+'" has no grammar.');return K.tokens=D.tokenize(K.code,K.grammar),D.hooks.run("after-tokenize",K),C.stringify(D.util.encode(K.tokens),K.language)},tokenize:function(V,q){var Z=q.rest;if(Z){for(var K in Z)q[K]=Z[K];delete q.rest}var ae=new N;return O(ae,ae.head,V),$(V,ae,q,ae.head,0),j(ae)},hooks:{all:{},add:function(V,q){var Z=D.hooks.all;Z[V]=Z[V]||[],Z[V].push(q)},run:function(V,q){var Z=D.hooks.all[V];if(!(!Z||!Z.length))for(var K=0,ae;ae=Z[K++];)ae(q)}},Token:C};l.Prism=D;function C(V,q,Z,K){this.type=V,this.content=q,this.alias=Z,this.length=(K||"").length|0}C.stringify=function V(q,Z){if(typeof q=="string")return q;if(Array.isArray(q)){var K="";return q.forEach(function(Ge){K+=V(Ge,Z)}),K}var ae={type:q.type,content:V(q.content,Z),tag:"span",classes:["token",q.type],attributes:{},language:Z},pe=q.alias;pe&&(Array.isArray(pe)?Array.prototype.push.apply(ae.classes,pe):ae.classes.push(pe)),D.hooks.run("wrap",ae);var Te="";for(var ke in ae.attributes)Te+=" "+ke+'="'+(ae.attributes[ke]||"").replace(/"/g,""")+'"';return"<"+ae.tag+' class="'+ae.classes.join(" ")+'"'+Te+">"+ae.content+"</"+ae.tag+">"};function T(V,q,Z,K){V.lastIndex=q;var ae=V.exec(Z);if(ae&&K&&ae[1]){var pe=ae[1].length;ae.index+=pe,ae[0]=ae[0].slice(pe)}return ae}function $(V,q,Z,K,ae,pe){for(var Te in Z)if(!(!Z.hasOwnProperty(Te)||!Z[Te])){var ke=Z[Te];ke=Array.isArray(ke)?ke:[ke];for(var Ge=0;Ge<ke.length;++Ge){if(pe&&pe.cause==Te+","+Ge)return;var Ve=ke[Ge],Ke=Ve.inside,nt=!!Ve.lookbehind,He=!!Ve.greedy,dt=Ve.alias;if(He&&!Ve.pattern.global){var Me=Ve.pattern.toString().match(/[imsuy]*$/)[0];Ve.pattern=RegExp(Ve.pattern.source,Me+"g")}for(var Le=Ve.pattern||Ve,de=K.next,Re=ae;de!==q.tail&&!(pe&&Re>=pe.reach);Re+=de.value.length,de=de.next){var _e=de.value;if(q.length>V.length)return;if(!(_e instanceof C)){var X=1,he;if(He){if(he=T(Le,Re,V,nt),!he||he.index>=V.length)break;var ht=he.index,ot=he.index+he[0].length,rt=Re;for(rt+=de.value.length;ht>=rt;)de=de.next,rt+=de.value.length;if(rt-=de.value.length,Re=rt,de.value instanceof C)continue;for(var Dt=de;Dt!==q.tail&&(rt<ot||typeof Dt.value=="string");Dt=Dt.next)X++,rt+=Dt.value.length;X--,_e=V.slice(Re,rt),he.index-=Re}else if(he=T(Le,0,_e,nt),!he)continue;var ht=he.index,bt=he[0],vt=_e.slice(0,ht),Lt=_e.slice(ht+bt.length),fn=Re+_e.length;pe&&fn>pe.reach&&(pe.reach=fn);var tn=de.prev;vt&&(tn=O(q,tn,vt),Re+=vt.length),R(q,tn,X);var Qn=new C(Te,Ke?D.tokenize(bt,Ke):bt,dt,bt);if(de=O(q,tn,Qn),Lt&&O(q,de,Lt),X>1){var Bt={cause:Te+","+Ge,reach:fn};$(V,q,Z,de.prev,Re,Bt),pe&&Bt.reach>pe.reach&&(pe.reach=Bt.reach)}}}}}}function N(){var V={value:null,prev:null,next:null},q={value:null,prev:V,next:null};V.next=q,this.head=V,this.tail=q,this.length=0}function O(V,q,Z){var K=q.next,ae={value:Z,prev:q,next:K};return q.next=ae,K.prev=ae,V.length++,ae}function R(V,q,Z){for(var K=q.next,ae=0;ae<Z&&K!==V.tail;ae++)K=K.next;q.next=K,K.prev=q,V.length-=ae}function j(V){for(var q=[],Z=V.head.next;Z!==V.tail;)q.push(Z.value),Z=Z.next;return q}if(!l.document)return l.addEventListener&&(D.disableWorkerMessageHandler||l.addEventListener("message",function(V){var q=JSON.parse(V.data),Z=q.language,K=q.code,ae=q.immediateClose;l.postMessage(D.highlight(K,D.languages[Z],Z)),ae&&l.close()},!1)),D;var Q=D.util.currentScript();Q&&(D.filename=Q.src,Q.hasAttribute("data-manual")&&(D.manual=!0));function G(){D.manual||D.highlightAll()}if(!D.manual){var Se=document.readyState;Se==="loading"||Se==="interactive"&&Q&&Q.defer?document.addEventListener("DOMContentLoaded",G):window.requestAnimationFrame?window.requestAnimationFrame(G):window.setTimeout(G,16)}return D}(n);r.exports&&(r.exports=i),typeof Sd<"u"&&(Sd.Prism=i)})(FE);var r4=FE.exports,a4=D2;D2.displayName="markup",D2.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function D2(r){r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(i,l){var c={};c["language-"+l]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[l]},c.cdata=/^<!\[CDATA\[|\]\]>$/i;var h={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:c}};h["language-"+l]={pattern:/[\s\S]+/,inside:r.languages[l]};var m={};m[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:h},r.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(n,i){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:r.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml}var i4=S2;S2.displayName="css",S2.aliases=[];function S2(r){(function(n){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var l=n.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))})(r)}var o4=C2;C2.displayName="clike",C2.aliases=[];function C2(r){r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var s4=_2;_2.displayName="javascript",_2.aliases=["js"];function _2(r){r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript}var Xg=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Sd=="object"?Sd:{},l4=C4();Xg.Prism={manual:!0,disableWorkerMessageHandler:!0};var u4=Dj,c4=jj,$E=r4,d4=a4,f4=i4,p4=o4,h4=s4;l4();var x2={}.hasOwnProperty;function PE(){}PE.prototype=$E;var ha=new PE,m4=ha;ha.highlight=v4,ha.register=Jg,ha.alias=g4,ha.registered=y4,ha.listLanguages=b4,Jg(d4),Jg(f4),Jg(p4),Jg(h4),ha.util.encode=D4,ha.Token.stringify=k4;function Jg(r){if(typeof r!="function"||!r.displayName)throw new Error("Expected `function` for `grammar`, got `"+r+"`");ha.languages[r.displayName]===void 0&&r(ha)}function g4(r,n){var i=ha.languages,l=r,c,h,m,D;n&&(l={},l[r]=n);for(c in l)for(h=l[c],h=typeof h=="string"?[h]:h,m=h.length,D=-1;++D<m;)i[h[D]]=i[c]}function v4(r,n){var i=$E.highlight,l;if(typeof r!="string")throw new Error("Expected `string` for `value`, got `"+r+"`");if(ha.util.type(n)==="Object")l=n,n=null;else{if(typeof n!="string")throw new Error("Expected `string` for `name`, got `"+n+"`");if(x2.call(ha.languages,n))l=ha.languages[n];else throw new Error("Unknown language: `"+n+"` is not registered")}return i.call(this,r,l,n)}function y4(r){if(typeof r!="string")throw new Error("Expected `string` for `language`, got `"+r+"`");return x2.call(ha.languages,r)}function b4(){var r=ha.languages,n=[],i;for(i in r)x2.call(r,i)&&typeof r[i]=="object"&&n.push(i);return n}function k4(r,n,i){var l;return typeof r=="string"?{type:"text",value:r}:ha.util.type(r)==="Array"?w4(r,n):(l={type:r.type,content:ha.Token.stringify(r.content,n,i),tag:"span",classes:["token",r.type],attributes:{},language:n,parent:i},r.alias&&(l.classes=l.classes.concat(r.alias)),ha.hooks.run("wrap",l),u4(l.tag+"."+l.classes.join("."),S4(l.attributes),l.content))}function w4(r,n){for(var i=[],l=r.length,c=-1,h;++c<l;)h=r[c],h!==""&&h!==null&&h!==void 0&&i.push(h);for(c=-1,l=i.length;++c<l;)h=i[c],i[c]=ha.Token.stringify(h,n,i);return i}function D4(r){return r}function S4(r){var n;for(n in r)r[n]=c4(r[n]);return r}function C4(){var r="Prism"in Xg,n=r?Xg.Prism:void 0;return i;function i(){r?Xg.Prism=n:delete Xg.Prism,r=void 0,n=void 0}}const E2=Iy(m4);var Zg=aI(E2,{});Zg.registerLanguage=function(r,n){return E2.register(n)},Zg.alias=function(r,n){return E2.alias(r,n)};const NE={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var _4=T2;T2.displayName="jsx",T2.aliases=[];function T2(r){(function(n){var i=n.util.clone(n.languages.javascript),l=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,c=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,h=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function m(T,$){return T=T.replace(/<S>/g,function(){return l}).replace(/<BRACES>/g,function(){return c}).replace(/<SPREAD>/g,function(){return h}),RegExp(T,$)}h=m(h).source,n.languages.jsx=n.languages.extend("markup",i),n.languages.jsx.tag.pattern=m(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=i.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:m(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:m(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var D=function(T){return T?typeof T=="string"?T:typeof T.content=="string"?T.content:T.content.map(D).join(""):""},C=function(T){for(var $=[],N=0;N<T.length;N++){var O=T[N],R=!1;if(typeof O!="string"&&(O.type==="tag"&&O.content[0]&&O.content[0].type==="tag"?O.content[0].content[0].content==="</"?$.length>0&&$[$.length-1].tagName===D(O.content[0].content[1])&&$.pop():O.content[O.content.length-1].content==="/>"||$.push({tagName:D(O.content[0].content[1]),openedBraces:0}):$.length>0&&O.type==="punctuation"&&O.content==="{"?$[$.length-1].openedBraces++:$.length>0&&$[$.length-1].openedBraces>0&&O.type==="punctuation"&&O.content==="}"?$[$.length-1].openedBraces--:R=!0),(R||typeof O=="string")&&$.length>0&&$[$.length-1].openedBraces===0){var j=D(O);N<T.length-1&&(typeof T[N+1]=="string"||T[N+1].type==="plain-text")&&(j+=D(T[N+1]),T.splice(N+1,1)),N>0&&(typeof T[N-1]=="string"||T[N-1].type==="plain-text")&&(j=D(T[N-1])+j,T.splice(N-1,1),N--),T[N]=new n.Token("plain-text",j,null,j)}O.content&&typeof O.content!="string"&&C(O.content)}};n.hooks.add("after-tokenize",function(T){T.language!=="jsx"&&T.language!=="tsx"||C(T.tokens)})})(r)}const x4=Iy(_4),E4=zr({tagName:"pkt-tag",elementClass:Es,react:$e,displayName:"PktTag",events:{onClose:"close"}}),Gh=$e.forwardRef(({children:r,...n},i)=>L.jsx(E4,{ref:i,...n,children:L.jsx("div",{className:"pkt-contents",children:r})}));Gh.displayName="PktTag";const OE=$e.forwardRef(({arrowNav:r=!0,tabs:n,onTabSelected:i},l)=>{const c=$e.useRef([]);$e.useEffect(()=>{c.current=c.current.slice(0,n.length)},[n]);const h=(D,C)=>{C.action&&C.action(D),i&&i(D)},m=(D,C)=>{var T,$;r&&(C.code==="ArrowLeft"&&D!==0&&((T=c.current[D-1])==null||T.focus()),C.code==="ArrowRight"&&D<n.length-1&&(($=c.current[D+1])==null||$.focus()),(C.code==="ArrowDown"||C.code==="Space")&&h(D,n[D]))};return L.jsx("div",{className:"pkt-tabs",ref:l,children:L.jsx("div",{className:"pkt-tabs__list",role:r?"tablist":"navigation",children:n.map((D,C)=>L.jsx($e.Fragment,{children:D.href?L.jsxs("a",{"aria-selected":!!D.active,role:r?"tab":void 0,href:D.href,"aria-controls":D.controls,className:`pkt-tabs__link ${D.active?"active":""}`,onKeyUp:T=>m(C,T),onClick:()=>h(C,D),tabIndex:D.active||!r?void 0:-1,ref:T=>{c.current[C]=T},children:[D.icon&&L.jsx(or,{name:D.icon,className:"pkt-icon--small"}),D.text,D.tag&&L.jsx(Gh,{skin:D.tag.skin,size:"small",children:D.tag.text})]}):L.jsxs("button",{"aria-selected":!!D.active,role:r?"tab":void 0,type:"button","aria-controls":D.controls,className:`pkt-tabs__button pkt-link-button ${D.active?"active":""}`,onKeyUp:T=>m(C,T),onClick:()=>h(C,D),tabIndex:D.active||!r?void 0:-1,ref:T=>{c.current[C]=T},children:[D.icon&&L.jsx(or,{name:D.icon,className:"pkt-icon--small"}),D.text,D.tag&&L.jsx(Gh,{skin:D.tag.skin,size:"small",children:D.tag.text})]},"b-"+C)},C))})})}),T4=zr({tagName:"pkt-textinput",elementClass:Fs,react:$e,displayName:"PktTextinput",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),ev=$e.forwardRef(({helptext:r,...n},i)=>L.jsx(T4,{...n,ref:i,children:r&&L.jsx("div",{slot:"helptext",className:"pkt-contents",children:r})}));ev.displayName="PktTextinput";const $b=({className:r,compact:n=!1,skin:i="basic",responsiveView:l=!0,children:c})=>L.jsx("table",{"data-testid":"pkt-table",className:ml(r,"pkt-table",{"pkt-table--responsive":l,"pkt-table--compact":n,"pkt-table--basic":i==="basic","pkt-table--zebra-blue":i==="zebra-blue"}),role:"table",children:c}),Pb=({className:r,children:n})=>L.jsx("thead",{className:ml(r,"pkt-table__header",{}),role:"rowgroup",children:n}),Nb=({children:r,className:n})=>L.jsx("tbody",{className:ml(n,"pkt-table__body",{}),role:"rowgroup",children:r}),ap=({className:r,children:n})=>L.jsx("tr",{className:ml(r,"pkt-table__row",{}),role:"row",children:n}),gl=({className:r,children:n})=>L.jsx("th",{className:ml(r,"pkt-table__header-cell",{}),role:"columnheader",children:n}),Zo=({children:r,className:n,dataLabel:i})=>L.jsx("td",{className:ml(n,"pkt-table__data-cell",{}),"data-label":i,role:"cell","data-testid":"pkt-table__data-cell",children:r}),A4=({specs:r})=>{const n=l=>Array.isArray(l)?l.join(`
|
|
1544
1544
|
`):l,i=l=>typeof l=="boolean"?l?"true":"false":l;return L.jsxs(L.Fragment,{children:[L.jsx("h2",{children:"Egenskaper"}),L.jsxs($b,{compact:!0,children:[L.jsx(Pb,{children:L.jsxs(ap,{children:[L.jsx(gl,{children:"Prop"}),L.jsx(gl,{children:"Navn"}),L.jsx(gl,{children:"Beskrivelse"}),L.jsx(gl,{children:"Type"}),L.jsx(gl,{children:"Standardverdi"})]})}),L.jsx(Nb,{children:Object.entries(r.props||{}).map(([l,c])=>L.jsxs(ap,{children:[L.jsx(Zo,{dataLabel:"Prop",children:L.jsx("pre",{children:l})}),L.jsx(Zo,{dataLabel:"Navn",children:!Array.isArray(c)&&c.name||l}),Array.isArray(c)?L.jsxs(L.Fragment,{children:[L.jsx(Zo,{dataLabel:"Beskrivelse"}),L.jsx(Zo,{dataLabel:"Type",children:L.jsx("pre",{children:c.join(`
|
|
1545
|
-
`)})})]}):L.jsxs(L.Fragment,{children:[L.jsx(Zo,{dataLabel:"Beskrivelse",children:L.jsx("span",{dangerouslySetInnerHTML:{__html:c.description||""}})}),L.jsx(Zo,{dataLabel:"Type",children:L.jsx("pre",{children:c.type&&n(c.type)})}),L.jsx(Zo,{dataLabel:"Standardverdi",children:L.jsx("pre",{children:i(c.default)})})]})]},l))})]}),r.events&&L.jsxs(L.Fragment,{children:[L.jsx("h2",{children:"Hendelser / handlinger"}),L.jsxs($b,{compact:!0,children:[L.jsx(Pb,{children:L.jsxs(ap,{children:[L.jsx(gl,{children:"Event"}),L.jsx(gl,{children:"Beskrivelse"}),L.jsx(gl,{children:"Type"})]})}),L.jsx(Nb,{children:Object.entries(r.events||{}).map(([l,c])=>L.jsxs(ap,{children:[L.jsx(Zo,{dataLabel:"Event",children:L.jsx("pre",{children:l})}),L.jsx(Zo,{dataLabel:"Beskrivelse",children:L.jsx("span",{dangerouslySetInnerHTML:{__html:c.description||""}})}),L.jsx(Zo,{dataLabel:"Type",children:c.type})]},l))})]})]}),r.slots&&L.jsxs(L.Fragment,{children:[L.jsx("h2",{children:"Innhold"}),L.jsxs($b,{compact:!0,children:[L.jsx(Pb,{children:L.jsxs(ap,{children:[L.jsx(gl,{children:"Slot"}),L.jsx(gl,{children:"Beskrivelse"})]})}),L.jsx(Nb,{children:Object.entries(r.slots||{}).map(([l,c])=>L.jsxs(ap,{children:[L.jsx(Zo,{dataLabel:"Slot",children:L.jsx("pre",{children:l})}),L.jsx(Zo,{dataLabel:"Beskrivelse",children:L.jsx("span",{dangerouslySetInnerHTML:{__html:c.description||""}})})]},l))})]})]})]})},F4=zr({tagName:"pkt-select",elementClass:Oh,react:$e,displayName:"PktSelect",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Ob=$e.forwardRef(({children:r,helptext:n,...i},l)=>L.jsxs(F4,{ref:l,...i,children:[n&&L.jsx("div",{slot:"helptext",className:"pkt-contents",children:n}),r]}));Ob.displayName="PktSelect";const $4=[{id:"24h",fn:"24h.svg",cat:"services"},{id:"active-person",fn:"active-person.svg",cat:"people-and-health"},{id:"adjust",fn:"adjust.svg",cat:"ui"},{id:"advice",fn:"advice.svg",cat:"ui"},{id:"alert-circle",fn:"alert-circle.svg",cat:"ui"},{id:"alert-error",fn:"alert-error.svg",cat:"ui"},{id:"alert-information",fn:"alert-information.svg",cat:"ui"},{id:"alert-success",fn:"alert-success.svg",cat:"ui"},{id:"alert-warning",fn:"alert-warning.svg",cat:"ui"},{id:"apple",fn:"apple.svg",cat:"ui"},{id:"archive",fn:"archive.svg",cat:"ui"},{id:"arrow-circle",fn:"arrow-circle.svg",cat:"ui"},{id:"arrow-return",fn:"arrow-return.svg",cat:"arrows"},{id:"arrow",fn:"arrow.svg",cat:"arrows"},{id:"attachment",fn:"attachment.svg",cat:"ui"},{id:"backpack",fn:"backpack.svg",cat:"services"},{id:"balloons",fn:"balloons.svg",cat:"ui"},{id:"books",fn:"books.svg",cat:"services"},{id:"brain-heart",fn:"brain-heart.svg",cat:"people-and-health"},{id:"brain-signal",fn:"brain-signal.svg",cat:"people-and-health"},{id:"briefcase",fn:"briefcase.svg",cat:"sign"},{id:"bullseye",fn:"bullseye.svg",cat:"ui"},{id:"bus",fn:"bus.svg",cat:"services"},{id:"cafe",fn:"cafe.svg",cat:"sign"},{id:"calendar",fn:"calendar.svg",cat:"ui"},{id:"camera",fn:"camera.svg",cat:"ui"},{id:"car",fn:"car.svg",cat:"sign"},{id:"care-room",fn:"care-room.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{id:"check-big",fn:"check-big.svg",cat:"ui"},{id:"check-circle",fn:"check-circle.svg",cat:"ui"},{id:"check-medium",fn:"check-medium.svg",cat:"ui"},{id:"check",fn:"check.svg",cat:"ui"},{id:"chevron-down",fn:"chevron-down.svg",cat:"arrows"},{id:"chevron-left",fn:"chevron-left.svg",cat:"arrows"},{id:"chevron-right",fn:"chevron-right.svg",cat:"arrows"},{id:"chevron-thin-down",fn:"chevron-thin-down.svg",cat:"arrows"},{id:"chevron-thin-left",fn:"chevron-thin-left.svg",cat:"arrows"},{id:"chevron-thin-right",fn:"chevron-thin-right.svg",cat:"arrows"},{id:"chevron-thin-up",fn:"chevron-thin-up.svg",cat:"arrows"},{id:"chevron-up-and-down",fn:"chevron-up-and-down.svg",cat:"ui"},{id:"chevron-up",fn:"chevron-up.svg",cat:"arrows"},{id:"clock-history",fn:"clock-history.svg",cat:"ui"},{id:"clock",fn:"clock.svg",cat:"ui"},{id:"close",fn:"close.svg",cat:"ui"},{id:"cloud",fn:"cloud.svg",cat:"ui"},{id:"code",fn:"code.svg",cat:"ui"},{id:"coffee",fn:"coffee.svg",cat:"sign"},{id:"cogwheel",fn:"cogwheel.svg",cat:"ui"},{id:"coin-stacks",fn:"coin-stacks.svg",cat:"services"},{id:"computer",fn:"computer.svg",cat:"ui"},{id:"cookie",fn:"cookie.svg",cat:"ui"},{id:"copy",fn:"copy.svg",cat:"ui"},{id:"crane",fn:"crane.svg",cat:"services"},{id:"cross-circle-big",fn:"cross-circle-big.svg",cat:"ui"},{id:"cross-circle-fill-large",fn:"cross-circle-fill-large.svg",cat:"none"},{id:"cross-circle-fill",fn:"cross-circle-fill.svg",cat:"ui"},{id:"cross-circle",fn:"cross-circle.svg",cat:"ui"},{id:"cross",fn:"cross.svg",cat:"ui"},{id:"data",fn:"data.svg",cat:"ui"},{id:"defibrillators",fn:"defibrillators.svg",cat:"sign"},{id:"district",fn:"district.svg",cat:"ui"},{id:"document-code",fn:"document-code.svg",cat:"ui"},{id:"document-pdf",fn:"document-pdf.svg",cat:"ui"},{id:"document-plain",fn:"document-plain.svg",cat:"ui"},{id:"document-table",fn:"document-table.svg",cat:"ui"},{id:"document-text",fn:"document-text.svg",cat:"ui"},{id:"download",fn:"download.svg",cat:"ui"},{id:"drag",fn:"drag.svg",cat:"ui"},{id:"drinking-area-refreshments",fn:"drinking-area-refreshments.svg",cat:"sign"},{id:"ecg-heart",fn:"ecg-heart.svg",cat:"people-and-health"},{id:"edit",fn:"edit.svg",cat:"ui"},{id:"email",fn:"email.svg",cat:"ui"},{id:"exclamation-mark-circle",fn:"exclamation-mark-circle.svg",cat:"ui"},{id:"exclamation-mark-square",fn:"exclamation-mark-square.svg",cat:"ui"},{id:"exit",fn:"exit.svg",cat:"ui"},{id:"expand",fn:"expand.svg",cat:"ui"},{id:"eye",fn:"eye.svg",cat:"ui"},{id:"face-almost-happy",fn:"face-almost-happy.svg",cat:"feedback"},{id:"face-almost-sad",fn:"face-almost-sad.svg",cat:"feedback"},{id:"face-happy",fn:"face-happy.svg",cat:"feedback"},{id:"face-neutral",fn:"face-neutral.svg",cat:"feedback"},{id:"face-sad",fn:"face-sad.svg",cat:"feedback"},{id:"facebook",fn:"facebook.svg",cat:"social"},{id:"factory-fill",fn:"factory-fill.svg",cat:"ui"},{id:"feedback",fn:"feedback.svg",cat:"ui"},{id:"figma",fn:"figma.svg",cat:"social"},{id:"filter",fn:"filter.svg",cat:"ui"},{id:"fire-safety",fn:"fire-safety.svg",cat:"people-and-health"},{id:"folder",fn:"folder.svg",cat:"ui"},{id:"game-console",fn:"game-console.svg",cat:"ui"},{id:"github",fn:"github.svg",cat:"social"},{id:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"headset",fn:"headset.svg",cat:"ui"},{id:"heart-hand",fn:"heart-hand.svg",cat:"people-and-health"},{id:"heart-plus",fn:"heart-plus.svg",cat:"services"},{id:"heart",fn:"heart.svg",cat:"ui"},{id:"holding-hands",fn:"holding-hands.svg",cat:"people-and-health"},{id:"home",fn:"home.svg",cat:"ui"},{id:"horizontal-menu",fn:"horizontal-menu.svg",cat:"ui"},{id:"house-heart",fn:"house-heart.svg",cat:"services"},{id:"information",fn:"information.svg",cat:"ui"},{id:"instagram",fn:"instagram.svg",cat:"social"},{id:"invoice",fn:"invoice.svg",cat:"ui"},{id:"key",fn:"key.svg",cat:"ui"},{id:"language",fn:"language.svg",cat:"ui"},{id:"law-paragraph",fn:"law-paragraph.svg",cat:"ui"},{id:"lecture-workplace",fn:"lecture-workplace.svg",cat:"sign"},{id:"link",fn:"link.svg",cat:"ui"},{id:"linkedin",fn:"linkedin.svg",cat:"social"},{id:"list",fn:"list.svg",cat:"ui"},{id:"location-pin-filled",fn:"location-pin-filled.svg",cat:"ui"},{id:"location-pin",fn:"location-pin.svg",cat:"ui"},{id:"lock-locked",fn:"lock-locked.svg",cat:"ui"},{id:"lock-unlocked",fn:"lock-unlocked.svg",cat:"ui"},{id:"magnifying-glass-big",fn:"magnifying-glass-big.svg",cat:"ui"},{id:"magnifying-glass-small",fn:"magnifying-glass-small.svg",cat:"ui"},{id:"map",fn:"map.svg",cat:"ui"},{id:"medicine-cabinet",fn:"medicine-cabinet.svg",cat:"ui"},{id:"menu",fn:"menu.svg",cat:"ui"},{id:"message",fn:"message.svg",cat:"ui"},{id:"minimize",fn:"minimize.svg",cat:"ui"},{id:"minus-circle-fill",fn:"minus-circle-fill.svg",cat:"plusminus"},{id:"minus-circle",fn:"minus-circle.svg",cat:"plusminus"},{id:"minus-sign",fn:"minus-sign.svg",cat:"plusminus"},{id:"mobile-phone",fn:"mobile-phone.svg",cat:"ui"},{id:"music-notes",fn:"music-notes.svg",cat:"ui"},{id:"new-window-small",fn:"new-window-small.svg",cat:"ui"},{id:"new-window",fn:"new-window.svg",cat:"ui"},{id:"nodejs",fn:"nodejs.svg",cat:"social"},{id:"obstacle",fn:"obstacle.svg",cat:"ui"},{id:"organization",fn:"organization.svg",cat:"ui"},{id:"paint-bucket",fn:"paint-bucket.svg",cat:"ui"},{id:"palette",fn:"palette.svg",cat:"ui"},{id:"paragraph",fn:"paragraph.svg",cat:"ui"},{id:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"paste",fn:"paste.svg",cat:"ui"},{id:"picture",fn:"picture.svg",cat:"ui"},{id:"placeholder-icon",fn:"placeholder-icon.svg",cat:"ui"},{id:"plus-circle-fill",fn:"plus-circle-fill.svg",cat:"plusminus"},{id:"plus-circle",fn:"plus-circle.svg",cat:"plusminus"},{id:"plus-sign",fn:"plus-sign.svg",cat:"plusminus"},{id:"pride-heart",fn:"pride-heart.svg",cat:"people-and-health"},{id:"print",fn:"print.svg",cat:"ui"},{id:"privacy",fn:"privacy.svg",cat:"ui"},{id:"punkt-circle-blue",fn:"punkt-circle-blue.svg",cat:"social"},{id:"qr-code",fn:"qr-code.svg",cat:"ui"},{id:"question",fn:"question.svg",cat:"ui"},{id:"react",fn:"react.svg",cat:"social"},{id:"receipt",fn:"receipt.svg",cat:"ui"},{id:"recycling",fn:"recycling.svg",cat:"services"},{id:"restaurant",fn:"restaurant.svg",cat:"sign"},{id:"ruler",fn:"ruler.svg",cat:"ui"},{id:"sass",fn:"sass.svg",cat:"social"},{id:"save",fn:"save.svg",cat:"ui"},{id:"scooter",fn:"scooter.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"shield-fire",fn:"shield-fire.svg",cat:"services"},{id:"shield-law-paragraph",fn:"shield-law-paragraph.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg-logo",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"tap",fn:"tap.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"tickets",fn:"tickets.svg",cat:"sign"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trash",fn:"trash.svg",cat:"sign"},{id:"twitter",fn:"twitter.svg",cat:"social"},{id:"two-people-dancing",fn:"two-people-dancing.svg",cat:"people-and-health"},{id:"two-people-talking",fn:"two-people-talking.svg",cat:"people-and-health"},{id:"user",fn:"user.svg",cat:"ui"},{id:"vertical-menu",fn:"vertical-menu.svg",cat:"ui"},{id:"vue",fn:"vue.svg",cat:"social"},{id:"wardrobe-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"none"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"workplace",fn:"workplace.svg",cat:"social"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],A2=({propKey:r,spec:n,props:i,handleChange:l})=>{const c={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number"},h=(T,$)=>{l(r,{...i[r],[T]:$})},m=(T,$,N)=>{const O=[...i[r]];O[T]={...O[T],[$]:N},l(r,O)},D=()=>{const T=[...i[r],{}];l(r,T)},C=T=>{const $=i[r].filter((N,O)=>O!==T);l(r,$)};if(n.type===c.BOOLEAN)return L.jsx(tx,{label:n.name||r,forId:r,helptext:n.description||null,hasFieldset:!0,requiredTag:n.required,children:L.jsx(b0,{id:r,label:r,type:"checkbox",checked:i[r]||!1,onChange:T=>l(r,T.target.checked,n.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(n.type===c.ICON)return L.jsxs(Ob,{label:n.name||r,helptext:n.description||null,id:r,value:i[r]||"",onChange:T=>l(r,T.target.value),requiredTag:n.required,children:[L.jsx("option",{value:""}),$4.map(T=>L.jsx("option",{value:T.id,children:T.id},T.id))]});if(n.type===c.DATE)return L.jsx(k0,{id:r,label:n.name||r,helptext:n.description||null,value:i[r]||"",multiple:n.variant==="multiple",maxlength:999,onChange:T=>l(r,T.target.value),requiredTag:n.required});if(Array.isArray(n)||Array.isArray(n.type)||Array.isArray(n.values)){const T=Array.isArray(n)?n:n.values||n.type;return L.jsxs(Ob,{label:n.name||r,helptext:n.description||null,id:r,value:i[r],onChange:$=>l(r,$.target.value),requiredTag:n.required,children:[L.jsx("option",{value:""}),T.map($=>L.jsx("option",{value:$,children:$},$))]})}return n.type===c.NUMBER?L.jsx(ev,{id:r,label:n.name||r,helptext:n.description||null,type:"number",value:i[r]||"",onChange:T=>l(r,parseFloat(T.currentTarget.value)),requiredTag:n.required}):n.type===c.OBJECT?(i[r]||(i[r]={}),L.jsxs("div",{children:[L.jsx("div",{className:"pkt-inputwrapper__label",children:L.jsx("h2",{children:n.name||r})}),n.description&&L.jsx("p",{children:n.description}),L.jsxs("fieldset",{children:[L.jsx("legend",{children:n.name||r}),Object.entries(n.properties).map(([T,$])=>L.jsx(A2,{propKey:T,props:i[r],spec:$,handleChange:(N,O)=>h(N,O)},T))]})]})):n.type===c.ARRAY&&n.items.type===c.OBJECT?(i[r]||(i[r]=[]),L.jsxs("div",{children:[L.jsx("div",{className:"pkt-inputwrapper__label",children:L.jsx("h2",{children:n.name||r})}),n.description&&L.jsx("p",{children:n.description}),i[r].map((T,$)=>L.jsx("div",{children:L.jsxs("fieldset",{children:[L.jsxs("legend",{children:["Item ",$+1]}),Object.entries(n.items.properties).map(([N,O])=>L.jsx(A2,{propKey:N,props:T,spec:O,handleChange:(R,j)=>m($,R,j)},N)),L.jsx($d,{onClick:()=>C($),children:"Fjern denne"})]})},$)),L.jsx($d,{onClick:D,children:"Legg til ny"})]})):L.jsx(ev,{id:r,label:n.name||r,helptext:n.description||null,type:"text",value:i[r]||"",onChange:T=>l(r,n.type==="number"?parseFloat(T.currentTarget.value):T.currentTarget.value),requiredTag:n.required})};Zg.registerLanguage("jsx",x4);const RE=({specs:r,children:n,fullWidth:i})=>{var He,dt;const l=r.props&&typeof r.props=="object"&&!Array.isArray(r.props)?Object.entries(r.props).reduce((Me,[Le,de])=>(typeof de=="object"&&!Array.isArray(de)&&de.previewDefault!==void 0&&de.previewDefault!==null?(de.previewDefault==="false"&&(de.previewDefault=!1),de.previewDefault==="true"&&(de.previewDefault=!0),Me[Le]=de.previewDefault):typeof de=="object"&&!Array.isArray(de)&&de.default!==void 0&&de.default!==null&&(de.default==="false"&&(de.default=!1),de.default==="true"&&(de.default=!0),Me[Le]=de.default),Me),{}):{},[c,h]=$e.useState(0),[m,D]=$e.useState(l),[C,T]=$e.useState("light"),[$,N]=$e.useState(""),[O,R]=$e.useState(""),[j,Q]=$e.useState(""),[G,Se]=$e.useState("Rediger innhold"),[V,q]=$e.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${r.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),Z=Me=>{Me===1&&pe(),Me===2&&ae(),Q(""),q(Le=>Le.map((de,Re)=>({...de,active:Re===Me})))},K=$e.useRef(null),ae=async()=>{if(r.isElement&&$e.isValidElement(Ke)){const Me=$e.isValidElement(Ke)?Ke.type.displayName||Ke.type.name:r.name,Le=Object.entries(m).map(([Re,_e])=>{if(_e&&!ke(_e)&&!Ge(_e))return typeof _e=="object"?`${Re}='${JSON.stringify(_e)}'`:`${Re}="${_e}"`}).join(" "),de=await xb(`<${r.name||Me} ${Le}>${G}</${r.name||Me}>`,{parser:"html",plugins:[I1]});N(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
1545
|
+
`)})})]}):L.jsxs(L.Fragment,{children:[L.jsx(Zo,{dataLabel:"Beskrivelse",children:L.jsx("span",{dangerouslySetInnerHTML:{__html:c.description||""}})}),L.jsx(Zo,{dataLabel:"Type",children:L.jsx("pre",{children:c.type&&n(c.type)})}),L.jsx(Zo,{dataLabel:"Standardverdi",children:L.jsx("pre",{children:i(c.default)})})]})]},l))})]}),r.events&&L.jsxs(L.Fragment,{children:[L.jsx("h2",{children:"Hendelser / handlinger"}),L.jsxs($b,{compact:!0,children:[L.jsx(Pb,{children:L.jsxs(ap,{children:[L.jsx(gl,{children:"Event"}),L.jsx(gl,{children:"Beskrivelse"}),L.jsx(gl,{children:"Type"})]})}),L.jsx(Nb,{children:Object.entries(r.events||{}).map(([l,c])=>L.jsxs(ap,{children:[L.jsx(Zo,{dataLabel:"Event",children:L.jsx("pre",{children:l})}),L.jsx(Zo,{dataLabel:"Beskrivelse",children:L.jsx("span",{dangerouslySetInnerHTML:{__html:c.description||""}})}),L.jsx(Zo,{dataLabel:"Type",children:c.type})]},l))})]})]}),r.slots&&L.jsxs(L.Fragment,{children:[L.jsx("h2",{children:"Innhold"}),L.jsxs($b,{compact:!0,children:[L.jsx(Pb,{children:L.jsxs(ap,{children:[L.jsx(gl,{children:"Slot"}),L.jsx(gl,{children:"Beskrivelse"})]})}),L.jsx(Nb,{children:Object.entries(r.slots||{}).map(([l,c])=>L.jsxs(ap,{children:[L.jsx(Zo,{dataLabel:"Slot",children:L.jsx("pre",{children:l})}),L.jsx(Zo,{dataLabel:"Beskrivelse",children:L.jsx("span",{dangerouslySetInnerHTML:{__html:c.description||""}})})]},l))})]})]})]})},F4=zr({tagName:"pkt-select",elementClass:Oh,react:$e,displayName:"PktSelect",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Ob=$e.forwardRef(({children:r,helptext:n,...i},l)=>L.jsxs(F4,{ref:l,...i,children:[n&&L.jsx("div",{slot:"helptext",className:"pkt-contents",children:n}),r]}));Ob.displayName="PktSelect";const $4=[{id:"24h",fn:"24h.svg",cat:"services"},{id:"access-prohibited",fn:"access-prohibited.svg",cat:"uncategorized"},{id:"accessibility",fn:"accessibility.svg",cat:"uncategorized"},{id:"accessible-water-access",fn:"accessible-water-access.svg",cat:"uncategorized"},{id:"active-person",fn:"active-person.svg",cat:"people-and-health"},{id:"adjust",fn:"adjust.svg",cat:"ui"},{id:"advice",fn:"advice.svg",cat:"ui"},{id:"alcohol-prohibited",fn:"alcohol-prohibited.svg",cat:"uncategorized"},{id:"alert-circle",fn:"alert-circle.svg",cat:"ui"},{id:"alert-error-system",fn:"alert-error-system.svg",cat:"uncategorized"},{id:"alert-error",fn:"alert-error.svg",cat:"ui"},{id:"alert-information",fn:"alert-information.svg",cat:"ui"},{id:"alert-success-system",fn:"alert-success-system.svg",cat:"uncategorized"},{id:"alert-success",fn:"alert-success.svg",cat:"ui"},{id:"alert-warning",fn:"alert-warning.svg",cat:"ui"},{id:"ambulance",fn:"ambulance.svg",cat:"uncategorized"},{id:"apple",fn:"apple.svg",cat:"ui"},{id:"archive",fn:"archive.svg",cat:"ui"},{id:"arrow-circle",fn:"arrow-circle.svg",cat:"ui"},{id:"arrow-return",fn:"arrow-return.svg",cat:"arrows"},{id:"arrow",fn:"arrow.svg",cat:"arrows"},{id:"arts-and-culture",fn:"arts-and-culture.svg",cat:"uncategorized"},{id:"attachment",fn:"attachment.svg",cat:"ui"},{id:"audioguide",fn:"audioguide.svg",cat:"uncategorized"},{id:"baby-bottle",fn:"baby-bottle.svg",cat:"uncategorized"},{id:"backpack-prohibited",fn:"backpack-prohibited.svg",cat:"uncategorized"},{id:"backpack",fn:"backpack.svg",cat:"services"},{id:"ball-sports",fn:"ball-sports.svg",cat:"uncategorized"},{id:"balloons",fn:"balloons.svg",cat:"ui"},{id:"bath",fn:"bath.svg",cat:"uncategorized"},{id:"bed",fn:"bed.svg",cat:"uncategorized"},{id:"beehive",fn:"beehive.svg",cat:"uncategorized"},{id:"bicycle-prohibited",fn:"bicycle-prohibited.svg",cat:"uncategorized"},{id:"bicycle-service",fn:"bicycle-service.svg",cat:"uncategorized"},{id:"bicycle",fn:"bicycle.svg",cat:"uncategorized"},{id:"bike-helmet",fn:"bike-helmet.svg",cat:"uncategorized"},{id:"bike-parking",fn:"bike-parking.svg",cat:"uncategorized"},{id:"bike",fn:"bike.svg",cat:"uncategorized"},{id:"blitz-prohibited",fn:"blitz-prohibited.svg",cat:"uncategorized"},{id:"books",fn:"books.svg",cat:"services"},{id:"boys-shower",fn:"boys-shower.svg",cat:"uncategorized"},{id:"boys-toilet",fn:"boys-toilet.svg",cat:"uncategorized"},{id:"brain-heart",fn:"brain-heart.svg",cat:"people-and-health"},{id:"brain-signal",fn:"brain-signal.svg",cat:"people-and-health"},{id:"brain",fn:"brain.svg",cat:"uncategorized"},{id:"briefcase",fn:"briefcase.svg",cat:"sign"},{id:"bulb",fn:"bulb.svg",cat:"uncategorized"},{id:"bullseye",fn:"bullseye.svg",cat:"ui"},{id:"bus",fn:"bus.svg",cat:"services"},{id:"cafe",fn:"cafe.svg",cat:"sign"},{id:"calendar",fn:"calendar.svg",cat:"ui"},{id:"camera-surveillance-CCTV",fn:"camera-surveillance-CCTV.svg",cat:"uncategorized"},{id:"camera",fn:"camera.svg",cat:"ui"},{id:"campfire-site",fn:"campfire-site.svg",cat:"uncategorized"},{id:"camping",fn:"camping.svg",cat:"uncategorized"},{id:"car",fn:"car.svg",cat:"sign"},{id:"care-room",fn:"care-room.svg",cat:"sign"},{id:"changing-room",fn:"changing-room.svg",cat:"uncategorized"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{id:"charging-point",fn:"charging-point.svg",cat:"uncategorized"},{id:"check-big",fn:"check-big.svg",cat:"ui"},{id:"check-box-checked",fn:"check-box-checked.svg",cat:"uncategorized"},{id:"check-box-unchecked",fn:"check-box-unchecked.svg",cat:"uncategorized"},{id:"check-circle",fn:"check-circle.svg",cat:"ui"},{id:"check-medium",fn:"check-medium.svg",cat:"ui"},{id:"check",fn:"check.svg",cat:"ui"},{id:"chevron-down",fn:"chevron-down.svg",cat:"arrows"},{id:"chevron-left",fn:"chevron-left.svg",cat:"arrows"},{id:"chevron-right",fn:"chevron-right.svg",cat:"arrows"},{id:"chevron-thin-down",fn:"chevron-thin-down.svg",cat:"arrows"},{id:"chevron-thin-left",fn:"chevron-thin-left.svg",cat:"arrows"},{id:"chevron-thin-right",fn:"chevron-thin-right.svg",cat:"arrows"},{id:"chevron-thin-up",fn:"chevron-thin-up.svg",cat:"arrows"},{id:"chevron-up-and-down",fn:"chevron-up-and-down.svg",cat:"ui"},{id:"chevron-up",fn:"chevron-up.svg",cat:"arrows"},{id:"childrens-toilet",fn:"childrens-toilet.svg",cat:"uncategorized"},{id:"circular-economy",fn:"circular-economy.svg",cat:"uncategorized"},{id:"climbing",fn:"climbing.svg",cat:"uncategorized"},{id:"clock-history",fn:"clock-history.svg",cat:"ui"},{id:"clock",fn:"clock.svg",cat:"ui"},{id:"close",fn:"close.svg",cat:"ui"},{id:"cloud",fn:"cloud.svg",cat:"ui"},{id:"code",fn:"code.svg",cat:"ui"},{id:"coffee",fn:"coffee.svg",cat:"sign"},{id:"cogwheel",fn:"cogwheel.svg",cat:"ui"},{id:"coin-stacks",fn:"coin-stacks.svg",cat:"services"},{id:"computer",fn:"computer.svg",cat:"ui"},{id:"cookie",fn:"cookie.svg",cat:"ui"},{id:"copy",fn:"copy.svg",cat:"ui"},{id:"crane",fn:"crane.svg",cat:"services"},{id:"crayfish",fn:"crayfish.svg",cat:"uncategorized"},{id:"cross-circle-big",fn:"cross-circle-big.svg",cat:"ui"},{id:"cross-circle-fill-large",fn:"cross-circle-fill-large.svg",cat:"ui"},{id:"cross-circle-fill",fn:"cross-circle-fill.svg",cat:"ui"},{id:"cross-circle",fn:"cross-circle.svg",cat:"ui"},{id:"cross",fn:"cross.svg",cat:"ui"},{id:"cupboard",fn:"cupboard.svg",cat:"uncategorized"},{id:"dancing",fn:"dancing.svg",cat:"uncategorized"},{id:"data",fn:"data.svg",cat:"ui"},{id:"deer",fn:"deer.svg",cat:"uncategorized"},{id:"defibrillators",fn:"defibrillators.svg",cat:"sign"},{id:"district",fn:"district.svg",cat:"ui"},{id:"diving-prohibited",fn:"diving-prohibited.svg",cat:"uncategorized"},{id:"dock",fn:"dock.svg",cat:"uncategorized"},{id:"document-code",fn:"document-code.svg",cat:"ui"},{id:"document-pdf",fn:"document-pdf.svg",cat:"ui"},{id:"document-plain",fn:"document-plain.svg",cat:"ui"},{id:"document-table",fn:"document-table.svg",cat:"ui"},{id:"document-text",fn:"document-text.svg",cat:"ui"},{id:"dog-forbidden",fn:"dog-forbidden.svg",cat:"uncategorized"},{id:"dog-on-a-leash",fn:"dog-on-a-leash.svg",cat:"uncategorized"},{id:"download",fn:"download.svg",cat:"ui"},{id:"drag",fn:"drag.svg",cat:"ui"},{id:"drinking-area-refreshments",fn:"drinking-area-refreshments.svg",cat:"sign"},{id:"drone",fn:"drone.svg",cat:"uncategorized"},{id:"drugs-prohibited",fn:"drugs-prohibited.svg",cat:"uncategorized"},{id:"ecg-heart",fn:"ecg-heart.svg",cat:"people-and-health"},{id:"edit",fn:"edit.svg",cat:"ui"},{id:"elderly",fn:"elderly.svg",cat:"uncategorized"},{id:"electric-car",fn:"electric-car.svg",cat:"uncategorized"},{id:"electric-van",fn:"electric-van.svg",cat:"uncategorized"},{id:"elevator",fn:"elevator.svg",cat:"uncategorized"},{id:"email",fn:"email.svg",cat:"ui"},{id:"escalator",fn:"escalator.svg",cat:"uncategorized"},{id:"exclamation-mark-circle",fn:"exclamation-mark-circle.svg",cat:"ui"},{id:"exclamation-mark-square",fn:"exclamation-mark-square.svg",cat:"ui"},{id:"exit-door",fn:"exit-door.svg",cat:"uncategorized"},{id:"exit",fn:"exit.svg",cat:"ui"},{id:"expand",fn:"expand.svg",cat:"ui"},{id:"eye",fn:"eye.svg",cat:"ui"},{id:"face-almost-happy",fn:"face-almost-happy.svg",cat:"feedback"},{id:"face-almost-sad",fn:"face-almost-sad.svg",cat:"feedback"},{id:"face-happy",fn:"face-happy.svg",cat:"feedback"},{id:"face-neutral",fn:"face-neutral.svg",cat:"feedback"},{id:"face-sad",fn:"face-sad.svg",cat:"feedback"},{id:"facebook",fn:"facebook.svg",cat:"social"},{id:"factory-fill",fn:"factory-fill.svg",cat:"ui"},{id:"feedback",fn:"feedback.svg",cat:"ui"},{id:"figma",fn:"figma.svg",cat:"social"},{id:"filming-prohibited",fn:"filming-prohibited.svg",cat:"uncategorized"},{id:"filter",fn:"filter.svg",cat:"ui"},{id:"fire-prohibited",fn:"fire-prohibited.svg",cat:"uncategorized"},{id:"fire-safety",fn:"fire-safety.svg",cat:"people-and-health"},{id:"fireworks-prohibited",fn:"fireworks-prohibited.svg",cat:"uncategorized"},{id:"fishing-prohibited",fn:"fishing-prohibited.svg",cat:"uncategorized"},{id:"fixed-bench",fn:"fixed-bench.svg",cat:"uncategorized"},{id:"fixed-grill",fn:"fixed-grill.svg",cat:"uncategorized"},{id:"flammable-waste",fn:"flammable-waste.svg",cat:"uncategorized"},{id:"folder",fn:"folder.svg",cat:"ui"},{id:"food-and-drinks-prohibited",fn:"food-and-drinks-prohibited.svg",cat:"uncategorized"},{id:"fountain",fn:"fountain.svg",cat:"uncategorized"},{id:"game-console",fn:"game-console.svg",cat:"ui"},{id:"girls-shower",fn:"girls-shower.svg",cat:"uncategorized"},{id:"girls-toilet",fn:"girls-toilet.svg",cat:"uncategorized"},{id:"github",fn:"github.svg",cat:"social"},{id:"graffiti-allowed",fn:"graffiti-allowed.svg",cat:"uncategorized"},{id:"graffiti-prohibited",fn:"graffiti-prohibited.svg",cat:"uncategorized"},{id:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"gym",fn:"gym.svg",cat:"uncategorized"},{id:"handicap-elevator",fn:"handicap-elevator.svg",cat:"uncategorized"},{id:"handicap",fn:"handicap.svg",cat:"uncategorized"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"headset",fn:"headset.svg",cat:"ui"},{id:"heart-hand",fn:"heart-hand.svg",cat:"people-and-health"},{id:"heart-plus",fn:"heart-plus.svg",cat:"services"},{id:"heart",fn:"heart.svg",cat:"ui"},{id:"height-restriction",fn:"height-restriction.svg",cat:"uncategorized"},{id:"helmet",fn:"helmet.svg",cat:"uncategorized"},{id:"hiking-trail",fn:"hiking-trail.svg",cat:"uncategorized"},{id:"holding-hands",fn:"holding-hands.svg",cat:"people-and-health"},{id:"home",fn:"home.svg",cat:"ui"},{id:"horizontal-menu",fn:"horizontal-menu.svg",cat:"ui"},{id:"house-heart",fn:"house-heart.svg",cat:"services"},{id:"ice-skating",fn:"ice-skating.svg",cat:"uncategorized"},{id:"indoor-pool",fn:"indoor-pool.svg",cat:"uncategorized"},{id:"information",fn:"information.svg",cat:"ui"},{id:"instagram",fn:"instagram.svg",cat:"social"},{id:"invoice",fn:"invoice.svg",cat:"ui"},{id:"key",fn:"key.svg",cat:"ui"},{id:"ladies-toilet",fn:"ladies-toilet.svg",cat:"uncategorized"},{id:"language",fn:"language.svg",cat:"ui"},{id:"law-paragraph",fn:"law-paragraph.svg",cat:"ui"},{id:"lecture-workplace",fn:"lecture-workplace.svg",cat:"sign"},{id:"lecture",fn:"lecture.svg",cat:"uncategorized"},{id:"life-ring",fn:"life-ring.svg",cat:"uncategorized"},{id:"link",fn:"link.svg",cat:"ui"},{id:"linkedin",fn:"linkedin.svg",cat:"social"},{id:"list",fn:"list.svg",cat:"ui"},{id:"living-room",fn:"living-room.svg",cat:"uncategorized"},{id:"location-pin-filled",fn:"location-pin-filled.svg",cat:"ui"},{id:"location-pin",fn:"location-pin.svg",cat:"ui"},{id:"lock-locked",fn:"lock-locked.svg",cat:"ui"},{id:"lock-unlocked",fn:"lock-unlocked.svg",cat:"ui"},{id:"luggage-prohibited",fn:"luggage-prohibited.svg",cat:"uncategorized"},{id:"magnifying-glass-big",fn:"magnifying-glass-big.svg",cat:"ui"},{id:"magnifying-glass-small",fn:"magnifying-glass-small.svg",cat:"ui"},{id:"map",fn:"map.svg",cat:"ui"},{id:"medicine-cabinet",fn:"medicine-cabinet.svg",cat:"ui"},{id:"megaphone",fn:"megaphone.svg",cat:"uncategorized"},{id:"memorial-stone",fn:"memorial-stone.svg",cat:"uncategorized"},{id:"mens-toilet",fn:"mens-toilet.svg",cat:"uncategorized"},{id:"menu",fn:"menu.svg",cat:"ui"},{id:"message",fn:"message.svg",cat:"ui"},{id:"minimize",fn:"minimize.svg",cat:"ui"},{id:"minus-circle-fill",fn:"minus-circle-fill.svg",cat:"plusminus"},{id:"minus-circle",fn:"minus-circle.svg",cat:"plusminus"},{id:"minus-sign",fn:"minus-sign.svg",cat:"plusminus"},{id:"mobile-phone",fn:"mobile-phone.svg",cat:"ui"},{id:"moon",fn:"moon.svg",cat:"uncategorized"},{id:"motorcycle",fn:"motorcycle.svg",cat:"uncategorized"},{id:"museum",fn:"museum.svg",cat:"uncategorized"},{id:"music-notes",fn:"music-notes.svg",cat:"ui"},{id:"nature-plant-2",fn:"nature-plant-2.svg",cat:"uncategorized"},{id:"nature-plant",fn:"nature-plant.svg",cat:"uncategorized"},{id:"new-window-small",fn:"new-window-small.svg",cat:"ui"},{id:"new-window",fn:"new-window.svg",cat:"ui"},{id:"no-walking",fn:"no-walking.svg",cat:"uncategorized"},{id:"nodejs",fn:"nodejs.svg",cat:"social"},{id:"obstacle",fn:"obstacle.svg",cat:"ui"},{id:"organization",fn:"organization.svg",cat:"ui"},{id:"package",fn:"package.svg",cat:"uncategorized"},{id:"paint-bucket",fn:"paint-bucket.svg",cat:"ui"},{id:"palette",fn:"palette.svg",cat:"ui"},{id:"paragraph",fn:"paragraph.svg",cat:"ui"},{id:"park",fn:"park.svg",cat:"services"},{id:"parking-meter",fn:"parking-meter.svg",cat:"uncategorized"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"paste",fn:"paste.svg",cat:"ui"},{id:"picnic-table",fn:"picnic-table.svg",cat:"uncategorized"},{id:"picture",fn:"picture.svg",cat:"ui"},{id:"placeholder-icon",fn:"placeholder-icon.svg",cat:"ui"},{id:"planter-box",fn:"planter-box.svg",cat:"uncategorized"},{id:"playground",fn:"playground.svg",cat:"uncategorized"},{id:"plus-circle-fill",fn:"plus-circle-fill.svg",cat:"plusminus"},{id:"plus-circle",fn:"plus-circle.svg",cat:"plusminus"},{id:"plus-sign",fn:"plus-sign.svg",cat:"plusminus"},{id:"pregnant",fn:"pregnant.svg",cat:"uncategorized"},{id:"pride-heart",fn:"pride-heart.svg",cat:"people-and-health"},{id:"print",fn:"print.svg",cat:"ui"},{id:"privacy",fn:"privacy.svg",cat:"ui"},{id:"process-back",fn:"process-back.svg",cat:"uncategorized"},{id:"process-forward",fn:"process-forward.svg",cat:"uncategorized"},{id:"process-iteration",fn:"process-iteration.svg",cat:"uncategorized"},{id:"processing",fn:"processing.svg",cat:"uncategorized"},{id:"prohibited",fn:"prohibited.svg",cat:"uncategorized"},{id:"punkt-circle-blue",fn:"punkt-circle-blue.svg",cat:"social"},{id:"qr-code",fn:"qr-code.svg",cat:"ui"},{id:"question",fn:"question.svg",cat:"ui"},{id:"radio-checked",fn:"radio-checked.svg",cat:"uncategorized"},{id:"radio-unchecked",fn:"radio-unchecked.svg",cat:"uncategorized"},{id:"react",fn:"react.svg",cat:"social"},{id:"receipt",fn:"receipt.svg",cat:"ui"},{id:"recycling",fn:"recycling.svg",cat:"services"},{id:"restaurant",fn:"restaurant.svg",cat:"sign"},{id:"roadblock",fn:"roadblock.svg",cat:"uncategorized"},{id:"ruler",fn:"ruler.svg",cat:"ui"},{id:"sass",fn:"sass.svg",cat:"social"},{id:"sauna",fn:"sauna.svg",cat:"uncategorized"},{id:"save",fn:"save.svg",cat:"ui"},{id:"scooter-prohibited",fn:"scooter-prohibited.svg",cat:"uncategorized"},{id:"scooter",fn:"scooter.svg",cat:"ui"},{id:"search-icon-round-active",fn:"search-icon-round-active.svg",cat:"uncategorized"},{id:"search-icon-round-disabled",fn:"search-icon-round-disabled.svg",cat:"uncategorized"},{id:"search-icon-round-normal",fn:"search-icon-round-normal.svg",cat:"uncategorized"},{id:"search-icon-square-active",fn:"search-icon-square-active.svg",cat:"uncategorized"},{id:"search-icon-square-disabled",fn:"search-icon-square-disabled.svg",cat:"uncategorized"},{id:"search-icon-square-normal",fn:"search-icon-square-normal.svg",cat:"uncategorized"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"shield-fire",fn:"shield-fire.svg",cat:"services"},{id:"shield-law-paragraph",fn:"shield-law-paragraph.svg",cat:"ui"},{id:"shoes-prohibited",fn:"shoes-prohibited.svg",cat:"uncategorized"},{id:"shop",fn:"shop.svg",cat:"uncategorized"},{id:"shower",fn:"shower.svg",cat:"uncategorized"},{id:"signature",fn:"signature.svg",cat:"uncategorized"},{id:"skateboarding",fn:"skateboarding.svg",cat:"uncategorized"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"sledding",fn:"sledding.svg",cat:"uncategorized"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"smoking-prohibited",fn:"smoking-prohibited.svg",cat:"uncategorized"},{id:"snow",fn:"snow.svg",cat:"uncategorized"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"stairs-down",fn:"stairs-down.svg",cat:"uncategorized"},{id:"stairs-up",fn:"stairs-up.svg",cat:"uncategorized"},{id:"stairs",fn:"stairs.svg",cat:"uncategorized"},{id:"street-vendor",fn:"street-vendor.svg",cat:"uncategorized"},{id:"stroller-prohibited",fn:"stroller-prohibited.svg",cat:"uncategorized"},{id:"stroller",fn:"stroller.svg",cat:"uncategorized"},{id:"studded-tires",fn:"studded-tires.svg",cat:"uncategorized"},{id:"svg-logo",fn:"svg.svg",cat:"social"},{id:"swimming-area",fn:"swimming-area.svg",cat:"uncategorized"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"tap",fn:"tap.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"tickets",fn:"tickets.svg",cat:"sign"},{id:"toilet-unisex",fn:"toilet-unisex.svg",cat:"uncategorized"},{id:"toilet",fn:"toilet.svg",cat:"uncategorized"},{id:"tool",fn:"tool.svg",cat:"uncategorized"},{id:"touching-prohibited",fn:"touching-prohibited.svg",cat:"uncategorized"},{id:"trail-gate",fn:"trail-gate.svg",cat:"uncategorized"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"tram",fn:"tram.svg",cat:"uncategorized"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trash",fn:"trash.svg",cat:"sign"},{id:"twitter",fn:"twitter.svg",cat:"social"},{id:"two-people-dancing",fn:"two-people-dancing.svg",cat:"people-and-health"},{id:"two-people-talking",fn:"two-people-talking.svg",cat:"people-and-health"},{id:"umbrella-prohibited",fn:"umbrella-prohibited.svg",cat:"uncategorized"},{id:"urban-landscape",fn:"urban-landscape.svg",cat:"uncategorized"},{id:"urinal",fn:"urinal.svg",cat:"uncategorized"},{id:"user",fn:"user.svg",cat:"ui"},{id:"van",fn:"van.svg",cat:"uncategorized"},{id:"vertical-menu",fn:"vertical-menu.svg",cat:"ui"},{id:"viewpoint",fn:"viewpoint.svg",cat:"uncategorized"},{id:"virus",fn:"virus.svg",cat:"uncategorized"},{id:"vue",fn:"vue.svg",cat:"social"},{id:"walking",fn:"walking.svg",cat:"uncategorized"},{id:"wardrobe-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"waste-container",fn:"waste-container.svg",cat:"uncategorized"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair-ramp",fn:"wheelchair-ramp.svg",cat:"uncategorized"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"workplace",fn:"workplace.svg",cat:"social"},{id:"wrench",fn:"wrench.svg",cat:"ui"},{id:"x",fn:"x.svg",cat:"uncategorized"}],A2=({propKey:r,spec:n,props:i,handleChange:l})=>{const c={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number"},h=(T,$)=>{l(r,{...i[r],[T]:$})},m=(T,$,N)=>{const O=[...i[r]];O[T]={...O[T],[$]:N},l(r,O)},D=()=>{const T=[...i[r],{}];l(r,T)},C=T=>{const $=i[r].filter((N,O)=>O!==T);l(r,$)};if(n.type===c.BOOLEAN)return L.jsx(tx,{label:n.name||r,forId:r,helptext:n.description||null,hasFieldset:!0,requiredTag:n.required,children:L.jsx(b0,{id:r,label:r,type:"checkbox",checked:i[r]||!1,onChange:T=>l(r,T.target.checked,n.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(n.type===c.ICON)return L.jsxs(Ob,{label:n.name||r,helptext:n.description||null,id:r,value:i[r]||"",onChange:T=>l(r,T.target.value),requiredTag:n.required,children:[L.jsx("option",{value:""}),$4.map(T=>L.jsx("option",{value:T.id,children:T.id},T.id))]});if(n.type===c.DATE)return L.jsx(k0,{id:r,label:n.name||r,helptext:n.description||null,value:i[r]||"",multiple:n.variant==="multiple",maxlength:999,onChange:T=>l(r,T.target.value),requiredTag:n.required});if(Array.isArray(n)||Array.isArray(n.type)||Array.isArray(n.values)){const T=Array.isArray(n)?n:n.values||n.type;return L.jsxs(Ob,{label:n.name||r,helptext:n.description||null,id:r,value:i[r],onChange:$=>l(r,$.target.value),requiredTag:n.required,children:[L.jsx("option",{value:""}),T.map($=>L.jsx("option",{value:$,children:$},$))]})}return n.type===c.NUMBER?L.jsx(ev,{id:r,label:n.name||r,helptext:n.description||null,type:"number",value:i[r]||"",onChange:T=>l(r,parseFloat(T.currentTarget.value)),requiredTag:n.required}):n.type===c.OBJECT?(i[r]||(i[r]={}),L.jsxs("div",{children:[L.jsx("div",{className:"pkt-inputwrapper__label",children:L.jsx("h2",{children:n.name||r})}),n.description&&L.jsx("p",{children:n.description}),L.jsxs("fieldset",{children:[L.jsx("legend",{children:n.name||r}),Object.entries(n.properties).map(([T,$])=>L.jsx(A2,{propKey:T,props:i[r],spec:$,handleChange:(N,O)=>h(N,O)},T))]})]})):n.type===c.ARRAY&&n.items.type===c.OBJECT?(i[r]||(i[r]=[]),L.jsxs("div",{children:[L.jsx("div",{className:"pkt-inputwrapper__label",children:L.jsx("h2",{children:n.name||r})}),n.description&&L.jsx("p",{children:n.description}),i[r].map((T,$)=>L.jsx("div",{children:L.jsxs("fieldset",{children:[L.jsxs("legend",{children:["Item ",$+1]}),Object.entries(n.items.properties).map(([N,O])=>L.jsx(A2,{propKey:N,props:T,spec:O,handleChange:(R,j)=>m($,R,j)},N)),L.jsx($d,{onClick:()=>C($),children:"Fjern denne"})]})},$)),L.jsx($d,{onClick:D,children:"Legg til ny"})]})):L.jsx(ev,{id:r,label:n.name||r,helptext:n.description||null,type:"text",value:i[r]||"",onChange:T=>l(r,n.type==="number"?parseFloat(T.currentTarget.value):T.currentTarget.value),requiredTag:n.required})};Zg.registerLanguage("jsx",x4);const RE=({specs:r,children:n,fullWidth:i})=>{var He,dt;const l=r.props&&typeof r.props=="object"&&!Array.isArray(r.props)?Object.entries(r.props).reduce((Me,[Le,de])=>(typeof de=="object"&&!Array.isArray(de)&&de.previewDefault!==void 0&&de.previewDefault!==null?(de.previewDefault==="false"&&(de.previewDefault=!1),de.previewDefault==="true"&&(de.previewDefault=!0),Me[Le]=de.previewDefault):typeof de=="object"&&!Array.isArray(de)&&de.default!==void 0&&de.default!==null&&(de.default==="false"&&(de.default=!1),de.default==="true"&&(de.default=!0),Me[Le]=de.default),Me),{}):{},[c,h]=$e.useState(0),[m,D]=$e.useState(l),[C,T]=$e.useState("light"),[$,N]=$e.useState(""),[O,R]=$e.useState(""),[j,Q]=$e.useState(""),[G,Se]=$e.useState("Rediger innhold"),[V,q]=$e.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${r.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),Z=Me=>{Me===1&&pe(),Me===2&&ae(),Q(""),q(Le=>Le.map((de,Re)=>({...de,active:Re===Me})))},K=$e.useRef(null),ae=async()=>{if(r.isElement&&$e.isValidElement(Ke)){const Me=$e.isValidElement(Ke)?Ke.type.displayName||Ke.type.name:r.name,Le=Object.entries(m).map(([Re,_e])=>{if(_e&&!ke(_e)&&!Ge(_e))return typeof _e=="object"?`${Re}='${JSON.stringify(_e)}'`:`${Re}="${_e}"`}).join(" "),de=await xb(`<${r.name||Me} ${Le}>${G}</${r.name||Me}>`,{parser:"html",plugins:[I1]});N(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
1546
1546
|
`+de)}else{const Me=await xb(K.current.innerHTML,{parser:"html",plugins:[I1]});N(Me.replace(/<\!--.*?-->/g,""))}},pe=async()=>{const Me=await yR(Ke);return R(Me),Promise.resolve()},Te=(Me,Le)=>{navigator.clipboard.writeText(Le).then(()=>{Q(Me),console.log("Copied to clipboard",Me)})},ke=Me=>Array.isArray(Me)&&Me.length===0,Ge=Me=>Me&&typeof Me=="object"&&!Object.keys(Me).length,Ve=(Me,Le)=>L.jsxs("div",{className:"pkt-preview__copy",children:[j===Me&&L.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),L.jsx($d,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>Te(Me,Le),children:"Kopier kode"})]}),Ke=$e.isValidElement(n)&&$e.cloneElement(n,{...m},n.props.children?n.props.children:(He=r.slots)!=null&&He.default?G:null),nt=(Me,Le,de=!1)=>{if(h(c+1),!de&&(!Le||Le=="false")){const{[Me]:Re,..._e}=m;D(_e)}else D(Re=>({...Re,[Me]:Le}))};return L.jsxs("div",{className:"pkt-preview",children:[L.jsxs("div",{className:"pkt-preview__component-container","data-mode":C,children:[r["dark-mode"]&&L.jsx("div",{className:"pkt-preview__mode",children:L.jsx(b0,{id:"mode",label:"Dark mode",type:"checkbox",checked:C==="dark",onChange:Me=>T(Me.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),L.jsx("div",{className:`pkt-preview__component ${i&&"pkt-preview__component--fullwidth"}`,ref:K,children:L.jsx("div",{children:Ke})},c)]}),L.jsx(OE,{tabs:V,onTabSelected:Z}),L.jsxs("div",{className:`pkt-grid pkt-preview__opts ${V[0].active?"":"pkt-hide"}`,children:[((dt=r.slots)==null?void 0:dt.default)&&!n.props.children&&L.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[L.jsx(Gh,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),L.jsx(ev,{id:"slot",label:"Slot",helptext:r.slots.default.description||"Innholdet i slot",type:"text",value:G,onChange:Me=>Se(Me.currentTarget.value)})]}),r.props&&typeof r.props=="object"&&!Array.isArray(r.props)?Object.entries(r.props).map(([Me,Le])=>L.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[L.jsx(Gh,{size:"small",skin:"blue-light",textStyle:"thin-text",children:Me}),L.jsx(A2,{propKey:Me,props:m,spec:Le,handleChange:nt})]},Me)):L.jsx("p",{children:"OBS! Specs mangler props!"})]}),L.jsxs("div",{className:`pkt-preview__code ${V[1].active?"":"pkt-hide"}`,children:[L.jsx(Zg,{language:"jsx",style:NE,children:O}),Ve("jsx",O)]}),L.jsxs("div",{className:`pkt-preview__code ${V[2].active?"":"pkt-hide"}`,children:[L.jsx(Zg,{language:"html",style:NE,children:$}),Ve("html",$)]}),L.jsx("div",{className:`pkt-preview__specs ${V[3].active?"":"pkt-hide"}`,children:L.jsx(A4,{specs:r})})]})};RE.displayName="PktPreview";const P4=zr({tagName:"pkt-progressbar",elementClass:ia,react:$e,displayName:"PktProgressbar",events:{}}),LE=$e.forwardRef(({children:r,...n},i)=>L.jsx(P4,{ref:i,...n,children:L.jsx("div",{className:"pkt-contents",children:r})}));LE.displayName="PktProgressbar";const N4=zr({tagName:"pkt-radiobutton",elementClass:mu,react:$e,displayName:"PktRadioButton",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange"}}),O4=$e.forwardRef(({appearance:r="local",disabled:n=!1,fullwidth:i=!1,id:l,label:c,name:h,placeholder:m="Søk…",suggestions:D,value:C="",action:T,method:$,onChange:N,onSearch:O,onSuggestionClick:R,...j},Q)=>{const G=(Z,K)=>{Z?Z():R&&R(K)},Se=Z=>{C=Z.target.value},V=`pkt-searchinput pkt-searchinput--${r} ${i?"pkt-searchinput--fullwidth":""}`;let q;return T?q=Z=>L.jsx("form",{role:"search",className:V,action:T,method:$,children:Z}):q=Z=>L.jsx("div",{role:"search",className:V,children:Z}),q(L.jsxs(L.Fragment,{children:[c&&L.jsx("label",{htmlFor:c?l:void 0,className:c?"pkt-inputwrapper__label":"",children:c}),L.jsxs("div",{className:r==="local"?"pkt-input__container":"pkt-searchinput__field",children:[L.jsx("input",{className:`pkt-input ${i?"pkt-input--fullwidth":""}`,type:"search",name:h||l,id:l,placeholder:m,defaultValue:C,disabled:n,autoComplete:"off","aria-autocomplete":"list",ref:Q,"aria-controls":`${l}-suggestions`,onChange:N||Se,onKeyUp:O&&(Z=>{Z.key==="Enter"&&(Z.preventDefault(),O(C))}),...j}),L.jsx($d,{className:`pkt-searchinput__button ${r==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:r==="local"?"tertiary":"primary",color:r==="global"?"yellow":void 0,type:"submit",disabled:n,onClick:O&&(Z=>{Z.preventDefault(),O(C)}),children:c||m})]}),D&&L.jsx("ul",{id:`${l}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:D.map((Z,K)=>L.jsx("li",{children:$e.createElement(Z.href?"a":Z.onClick?"button":"div",{href:Z.href,className:`pkt-searchinput__suggestion ${Z.onClick?"pkt-link-button":""} ${Z.href||Z.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:Z.onClick?"button":void 0,onClick:()=>G(Z.onClick,K),onKeyUp:ae=>ae.key==="Enter"&&G(Z.onClick,K)},L.jsxs(L.Fragment,{children:[Z.title&&L.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:Z.title}),Z.text&&L.jsx("p",{className:"pkt-searchinput__suggestion-text",children:Z.text})]}))},`search-suggestion-${K}`))})]}))}),R4=$e.forwardRef(({activeStep:r,className:n,children:i,hideNonActiveSteps:l=!1,hideNonActiveStepsContent:c=!0,orientation:h="vertical",...m},D)=>{const C=ml(n,"pkt-stepper",h==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),T=$e.Children.map(i,($,N)=>$e.isValidElement($)?$e.cloneElement($,{className:ml($.props.className,{"pkt-step--hideStep":l&&N!==r,"pkt-step--hideContent":c&&N!==r})}):$);return L.jsx("ol",{"data-testid":"pkt-stepper",className:C,ref:D,...m,children:T})}),L4=L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:L.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),B4=L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[L.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),L.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),M4=L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[L.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),L.jsx("path",{d:"m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z",fill:"#F1FDFF"})]}),I4=({children:r,className:n,status:i="incomplete",title:l})=>L.jsxs("li",{className:ml("pkt-step",n,`pkt-step--${i}`),"data-testid":"pkt-step",children:[L.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),L.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),L.jsx("span",{className:ml("pkt-step__indicator"),children:i==="current"?B4:i==="completed"?M4:L4}),L.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),L.jsxs("div",{className:"pkt-step__wrapper",children:[L.jsx("div",{className:"pkt-step__title",children:l}),L.jsx("div",{className:"pkt-step__content",children:r})]})]}),j4=zr({tagName:"pkt-textarea",elementClass:Wf,react:$e,displayName:"PktTextarea",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),BE=$e.forwardRef(({helptext:r,...n},i)=>L.jsx(j4,{...n,ref:i,children:r&&L.jsx("div",{slot:"helptext",className:"pkt-contents",children:r})}));BE.displayName="PktTextarea";var Kh=window.CustomEvent;(!Kh||typeof Kh=="object")&&(Kh=function(r,n){n=n||{};var i=document.createEvent("CustomEvent");return i.initCustomEvent(r,!!n.bubbles,!!n.cancelable,n.detail||null),i},Kh.prototype=window.Event.prototype);function ME(r,n){var i="on"+n.type.toLowerCase();return typeof r[i]=="function"&&r[i](n),r.dispatchEvent(n)}function z4(r){for(;r&&r!==document.body;){var n=window.getComputedStyle(r),i=function(l,c){return!(n[l]===void 0||n[l]===c)};if(n.opacity<1||i("zIndex","auto")||i("transform","none")||i("mixBlendMode","normal")||i("filter","none")||i("perspective","none")||n.isolation==="isolate"||n.position==="fixed"||n.webkitOverflowScrolling==="touch")return!0;r=r.parentElement}return!1}function tv(r){for(;r;){if(r.localName==="dialog")return r;r.parentElement?r=r.parentElement:r.parentNode?r=r.parentNode.host:r=null}return null}function IE(r){for(;r&&r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;r&&r.blur&&r!==document.body&&r.blur()}function U4(r,n){for(var i=0;i<r.length;++i)if(r[i]===n)return!0;return!1}function F2(r){return!r||!r.hasAttribute("method")?!1:r.getAttribute("method").toLowerCase()==="dialog"}function jE(r){var n=["button","input","keygen","select","textarea"],i=n.map(function(m){return m+":not([disabled])"});i.push('[tabindex]:not([disabled]):not([tabindex=""])');var l=r.querySelector(i.join(", "));if(!l&&"attachShadow"in Element.prototype)for(var c=r.querySelectorAll("*"),h=0;h<c.length&&!(c[h].tagName&&c[h].shadowRoot&&(l=jE(c[h].shadowRoot),l));h++);return l}function zE(r){return r.isConnected||document.body.contains(r)}function UE(r){if(r.submitter)return r.submitter;var n=r.target;if(!(n instanceof HTMLFormElement))return null;var i=In.formSubmitter;if(!i){var l=r.target,c="getRootNode"in l&&l.getRootNode()||document;i=c.activeElement}return!i||i.form!==n?null:i}function H4(r){if(!r.defaultPrevented){var n=r.target,i=In.imagemapUseValue,l=UE(r);i===null&&l&&(i=l.value);var c=tv(n);if(c){var h=l&&l.getAttribute("formmethod")||n.getAttribute("method");h==="dialog"&&(r.preventDefault(),i!=null?c.close(i):c.close())}}}function HE(r){if(this.dialog_=r,this.replacedStyleTop_=!1,this.openAsModal_=!1,r.hasAttribute("role")||r.setAttribute("role","dialog"),r.show=this.show.bind(this),r.showModal=this.showModal.bind(this),r.close=this.close.bind(this),r.addEventListener("submit",H4,!1),"returnValue"in r||(r.returnValue=""),"MutationObserver"in window){var n=new MutationObserver(this.maybeHideModal.bind(this));n.observe(r,{attributes:!0,attributeFilter:["open"]})}else{var i=!1,l=(function(){i?this.downgradeModal():this.maybeHideModal(),i=!1}).bind(this),c,h=function(m){if(m.target===r){var D="DOMNodeRemoved";i|=m.type.substr(0,D.length)===D,window.clearTimeout(c),c=window.setTimeout(l,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(m){r.addEventListener(m,h)})}Object.defineProperty(r,"open",{set:this.setOpen.bind(this),get:r.hasAttribute.bind(r,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}HE.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&zE(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),In.dm.removeDialog(this))},setOpen:function(r){r?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropMouseEvent_:function(r){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var n=document.createElement("div");this.dialog_.insertBefore(n,this.dialog_.firstChild),n.tabIndex=-1,n.focus(),this.dialog_.removeChild(n)}var i=document.createEvent("MouseEvents");i.initMouseEvent(r.type,r.bubbles,r.cancelable,window,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget),this.dialog_.dispatchEvent(i),r.stopPropagation()},focus_:function(){var r=this.dialog_.querySelector("[autofocus]:not([disabled])");!r&&this.dialog_.tabIndex>=0&&(r=this.dialog_),r||(r=jE(this.dialog_)),IE(document.activeElement),r&&r.focus()},updateZIndex:function(r,n){if(r<n)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=r,this.backdrop_.style.zIndex=n},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!zE(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!In.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");z4(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,In.needsCentering(this.dialog_)?(In.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(r){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),r!==void 0&&(this.dialog_.returnValue=r);var n=new Kh("close",{bubbles:!1,cancelable:!1});ME(this.dialog_,n)}};var In={};if(In.reposition=function(r){var n=document.body.scrollTop||document.documentElement.scrollTop,i=n+(window.innerHeight-r.offsetHeight)/2;r.style.top=Math.max(n,i)+"px"},In.isInlinePositionSetByStylesheet=function(r){for(var n=0;n<document.styleSheets.length;++n){var i=document.styleSheets[n],l=null;try{l=i.cssRules}catch{}if(l)for(var c=0;c<l.length;++c){var h=l[c],m=null;try{m=document.querySelectorAll(h.selectorText)}catch{}if(!(!m||!U4(m,r))){var D=h.style.getPropertyValue("top"),C=h.style.getPropertyValue("bottom");if(D&&D!=="auto"||C&&C!=="auto")return!0}}}return!1},In.needsCentering=function(r){var n=window.getComputedStyle(r);return n.position!=="absolute"||r.style.top!=="auto"&&r.style.top!==""||r.style.bottom!=="auto"&&r.style.bottom!==""?!1:!In.isInlinePositionSetByStylesheet(r)},In.forceRegisterDialog=function(r){if((window.HTMLDialogElement||r.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",r),r.localName!=="dialog")throw new Error("Failed to register dialog: The element is not a dialog.");new HE(r)},In.registerDialog=function(r){r.showModal||In.forceRegisterDialog(r)},In.DialogManager=function(){this.pendingDialogStack=[];var r=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",(function(n){this.forwardTab_=void 0,n.stopPropagation(),r([])}).bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(n){var i=[];n.forEach(function(l){for(var c=0,h;h=l.removedNodes[c];++c){if(h instanceof Element)h.localName==="dialog"&&i.push(h);else continue;i=i.concat(h.querySelectorAll("dialog"))}}),i.length&&r(i)}))},In.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},In.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},In.DialogManager.prototype.updateStacking=function(){for(var r=this.zIndexHigh_,n=0,i;i=this.pendingDialogStack[n];++n)i.updateZIndex(--r,--r),n===0&&(this.overlay.style.zIndex=--r);var l=this.pendingDialogStack[0];if(l){var c=l.dialog.parentNode||document.body;c.appendChild(this.overlay)}else this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},In.DialogManager.prototype.containedByTopDialog_=function(r){for(;r=tv(r);){for(var n=0,i;i=this.pendingDialogStack[n];++n)if(i.dialog===r)return n===0;r=r.parentElement}return!1},In.DialogManager.prototype.handleFocus_=function(r){var n=r.composedPath?r.composedPath()[0]:r.target;if(!this.containedByTopDialog_(n)&&document.activeElement!==document.documentElement&&(r.preventDefault(),r.stopPropagation(),IE(n),this.forwardTab_!==void 0)){var i=this.pendingDialogStack[0],l=i.dialog,c=l.compareDocumentPosition(n);return c&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?i.focus_():n!==document.documentElement&&document.documentElement.focus()),!1}},In.DialogManager.prototype.handleKey_=function(r){if(this.forwardTab_=void 0,r.keyCode===27){r.preventDefault(),r.stopPropagation();var n=new Kh("cancel",{bubbles:!1,cancelable:!0}),i=this.pendingDialogStack[0];i&&ME(i.dialog,n)&&i.dialog.close()}else r.keyCode===9&&(this.forwardTab_=!r.shiftKey)},In.DialogManager.prototype.checkDOM_=function(r){var n=this.pendingDialogStack.slice();n.forEach(function(i){r.indexOf(i.dialog)!==-1?i.downgradeModal():i.maybeHideModal()})},In.DialogManager.prototype.pushDialog=function(r){var n=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=n?!1:(this.pendingDialogStack.unshift(r)===1&&this.blockDocument(),this.updateStacking(),!0)},In.DialogManager.prototype.removeDialog=function(r){var n=this.pendingDialogStack.indexOf(r);n!==-1&&(this.pendingDialogStack.splice(n,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},In.dm=new In.DialogManager,In.formSubmitter=null,In.imagemapUseValue=null,window.HTMLDialogElement===void 0){var qE=document.createElement("form");if(qE.setAttribute("method","dialog"),qE.method!=="dialog"){var Qh=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(Qh){var q4=Qh.get;Qh.get=function(){return F2(this)?"dialog":q4.call(this)};var V4=Qh.set;Qh.set=function(r){return typeof r=="string"&&r.toLowerCase()==="dialog"?this.setAttribute("method",r):V4.call(this,r)},Object.defineProperty(HTMLFormElement.prototype,"method",Qh)}}document.addEventListener("click",function(r){if(In.formSubmitter=null,In.imagemapUseValue=null,!r.defaultPrevented){var n=r.target;if("composedPath"in r){var i=r.composedPath();n=i.shift()||n}if(!(!n||!F2(n.form))){var l=n.type==="submit"&&["button","input"].indexOf(n.localName)>-1;if(!l){if(!(n.localName==="input"&&n.type==="image"))return;In.imagemapUseValue=r.offsetX+","+r.offsetY}var c=tv(n);c&&(In.formSubmitter=n)}}},!1),document.addEventListener("submit",function(r){var n=r.target,i=tv(n);if(!i){var l=UE(r),c=l&&l.getAttribute("formmethod")||n.getAttribute("method");c==="dialog"&&r.preventDefault()}});var W4=HTMLFormElement.prototype.submit,Y4=function(){if(!F2(this))return W4.call(this);var r=tv(this);r&&r.close()};HTMLFormElement.prototype.submit=Y4}const G4=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"}));Ot.PktAccordion=W_,Ot.PktAccordionItem=Y_,Ot.PktAlert=G_,Ot.PktBackLink=K_,Ot.PktBreadcrumbs=pO,Ot.PktButton=$d,Ot.PktCard=Q_,Ot.PktCheckbox=b0,Ot.PktCombobox=X_,Ot.PktConsent=ab,Ot.PktDatepicker=k0,Ot.PktFooter=vO,Ot.PktFooterSimple=yO,Ot.PktHeader=kO,Ot.PktHelptext=Z_,Ot.PktIcon=or,Ot.PktInput=ex,Ot.PktInputWrapper=tx,Ot.PktLink=nx,Ot.PktLinkCard=rx,Ot.PktLoader=ax,Ot.PktMessagebox=ix,Ot.PktModal=ox,Ot.PktPreview=RE,Ot.PktProgressbar=LE,Ot.PktRadioButton=N4,Ot.PktSearchInput=O4,Ot.PktSelect=Ob,Ot.PktStep=I4,Ot.PktStepper=R4,Ot.PktTable=$b,Ot.PktTableBody=Nb,Ot.PktTableDataCell=Zo,Ot.PktTableHeader=Pb,Ot.PktTableHeaderCell=gl,Ot.PktTableRow=ap,Ot.PktTabs=OE,Ot.PktTag=Gh,Ot.PktTextarea=BE,Ot.PktTextinput=ev,Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"})});
|