1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2025-02-23 06:39:51 -06:00
dotfiles/logseq/plugins/logseq-tabs/dist/assets/index.92b35697.js
2023-01-26 23:45:42 -05:00

60 lines
238 KiB
JavaScript

(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ya={exports:{}};/*! For license information please see lsplugin.user.js.LICENSE.txt */(function(e,t){(function(n,r){e.exports=r()})(self,()=>(()=>{var n={227:(l,u,a)=>{var p=a(155);u.formatArgs=function(_){if(_[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+_[0]+(this.useColors?"%c ":" ")+"+"+l.exports.humanize(this.diff),!this.useColors)return;const E="color: "+this.color;_.splice(1,0,E,"color: inherit");let x=0,k=0;_[0].replace(/%[a-zA-Z%]/g,S=>{S!=="%%"&&(x++,S==="%c"&&(k=x))}),_.splice(k,0,E)},u.save=function(_){try{_?u.storage.setItem("debug",_):u.storage.removeItem("debug")}catch{}},u.load=function(){let _;try{_=u.storage.getItem("debug")}catch{}return!_&&p!==void 0&&"env"in p&&(_=p.env.DEBUG),_},u.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},u.storage=function(){try{return localStorage}catch{}}(),u.destroy=(()=>{let _=!1;return()=>{_||(_=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),u.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],u.log=console.debug||console.log||(()=>{}),l.exports=a(447)(u);const{formatters:v}=l.exports;v.j=function(_){try{return JSON.stringify(_)}catch(E){return"[UnexpectedJSONParseError]: "+E.message}}},447:(l,u,a)=>{l.exports=function(p){function v(x){let k,S,I,g=null;function c(...h){if(!c.enabled)return;const O=c,T=Number(new Date),A=T-(k||T);O.diff=A,O.prev=k,O.curr=T,k=T,h[0]=v.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let m=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(C,j)=>{if(C==="%%")return"%";m++;const z=v.formatters[j];if(typeof z=="function"){const K=h[m];C=z.call(O,K),h.splice(m,1),m--}return C}),v.formatArgs.call(O,h),(O.log||v.log).apply(O,h)}return c.namespace=x,c.useColors=v.useColors(),c.color=v.selectColor(x),c.extend=_,c.destroy=v.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(S!==v.namespaces&&(S=v.namespaces,I=v.enabled(x)),I),set:h=>{g=h}}),typeof v.init=="function"&&v.init(c),c}function _(x,k){const S=v(this.namespace+(k===void 0?":":k)+x);return S.log=this.log,S}function E(x){return x.toString().substring(2,x.toString().length-2).replace(/\.\*\?$/,"*")}return v.debug=v,v.default=v,v.coerce=function(x){return x instanceof Error?x.stack||x.message:x},v.disable=function(){const x=[...v.names.map(E),...v.skips.map(E).map(k=>"-"+k)].join(",");return v.enable(""),x},v.enable=function(x){let k;v.save(x),v.namespaces=x,v.names=[],v.skips=[];const S=(typeof x=="string"?x:"").split(/[\s,]+/),I=S.length;for(k=0;k<I;k++)S[k]&&((x=S[k].replace(/\*/g,".*?"))[0]==="-"?v.skips.push(new RegExp("^"+x.slice(1)+"$")):v.names.push(new RegExp("^"+x+"$")))},v.enabled=function(x){if(x[x.length-1]==="*")return!0;let k,S;for(k=0,S=v.skips.length;k<S;k++)if(v.skips[k].test(x))return!1;for(k=0,S=v.names.length;k<S;k++)if(v.names[k].test(x))return!0;return!1},v.humanize=a(824),v.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(p).forEach(x=>{v[x]=p[x]}),v.names=[],v.skips=[],v.formatters={},v.selectColor=function(x){let k=0;for(let S=0;S<x.length;S++)k=(k<<5)-k+x.charCodeAt(S),k|=0;return v.colors[Math.abs(k)%v.colors.length]},v.enable(v.load()),v}},856:function(l){l.exports=function(){function u(Y){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},u(Y)}function a(Y,U){return a=Object.setPrototypeOf||function(q,re){return q.__proto__=re,q},a(Y,U)}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v(Y,U,q){return v=p()?Reflect.construct:function(re,ye,ot){var yn=[null];yn.push.apply(yn,ye);var tn=new(Function.bind.apply(re,yn));return ot&&a(tn,ot.prototype),tn},v.apply(null,arguments)}function _(Y){return function(U){if(Array.isArray(U))return E(U)}(Y)||function(U){if(typeof Symbol<"u"&&U[Symbol.iterator]!=null||U["@@iterator"]!=null)return Array.from(U)}(Y)||function(U,q){if(U){if(typeof U=="string")return E(U,q);var re=Object.prototype.toString.call(U).slice(8,-1);return re==="Object"&&U.constructor&&(re=U.constructor.name),re==="Map"||re==="Set"?Array.from(U):re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re)?E(U,q):void 0}}(Y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E(Y,U){(U==null||U>Y.length)&&(U=Y.length);for(var q=0,re=new Array(U);q<U;q++)re[q]=Y[q];return re}var x=Object.hasOwnProperty,k=Object.setPrototypeOf,S=Object.isFrozen,I=Object.getPrototypeOf,g=Object.getOwnPropertyDescriptor,c=Object.freeze,h=Object.seal,O=Object.create,T=typeof Reflect<"u"&&Reflect,A=T.apply,m=T.construct;A||(A=function(Y,U,q){return Y.apply(U,q)}),c||(c=function(Y){return Y}),h||(h=function(Y){return Y}),m||(m=function(Y,U){return v(Y,_(U))});var C,j=N(Array.prototype.forEach),z=N(Array.prototype.pop),K=N(Array.prototype.push),J=N(String.prototype.toLowerCase),ie=N(String.prototype.match),me=N(String.prototype.replace),Qe=N(String.prototype.indexOf),je=N(String.prototype.trim),pe=N(RegExp.prototype.test),H=(C=TypeError,function(){for(var Y=arguments.length,U=new Array(Y),q=0;q<Y;q++)U[q]=arguments[q];return m(C,U)});function N(Y){return function(U){for(var q=arguments.length,re=new Array(q>1?q-1:0),ye=1;ye<q;ye++)re[ye-1]=arguments[ye];return A(Y,U,re)}}function P(Y,U){k&&k(Y,null);for(var q=U.length;q--;){var re=U[q];if(typeof re=="string"){var ye=J(re);ye!==re&&(S(U)||(U[q]=ye),re=ye)}Y[re]=!0}return Y}function D(Y){var U,q=O(null);for(U in Y)A(x,Y,[U])&&(q[U]=Y[U]);return q}function X(Y,U){for(;Y!==null;){var q=g(Y,U);if(q){if(q.get)return N(q.get);if(typeof q.value=="function")return N(q.value)}Y=I(Y)}return function(re){return console.warn("fallback value for",re),null}}var Oe=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ce=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ee=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),se=c(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_e=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Re=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zt=c(["#text"]),rt=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ne=c(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),de=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ie=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pt=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),gn=h(/<%[\w\W]*|[\w\W]*%>/gm),Jt=h(/^data-[\-\w.\u00B7-\uFFFF]/),en=h(/^aria-[\-\w]+$/),yr=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vn=h(/^(?:\w+script|data):/i),yi=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fu=h(/^html$/i),vi=function(){return typeof window>"u"?null:window},du=function(Y,U){if(u(Y)!=="object"||typeof Y.createPolicy!="function")return null;var q=null,re="data-tt-policy-suffix";U.currentScript&&U.currentScript.hasAttribute(re)&&(q=U.currentScript.getAttribute(re));var ye="dompurify"+(q?"#"+q:"");try{return Y.createPolicy(ye,{createHTML:function(ot){return ot}})}catch{return console.warn("TrustedTypes policy "+ye+" could not be created."),null}};return function Y(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vi(),q=function(y){return Y(y)};if(q.version="2.3.8",q.removed=[],!U||!U.document||U.document.nodeType!==9)return q.isSupported=!1,q;var re=U.document,ye=U.document,ot=U.DocumentFragment,yn=U.HTMLTemplateElement,tn=U.Node,wi=U.Element,ro=U.NodeFilter,vr=U.NamedNodeMap,oo=vr===void 0?U.NamedNodeMap||U.MozNamedAttrMap:vr,Si=U.HTMLFormElement,io=U.DOMParser,_i=U.trustedTypes,qn=wi.prototype,ki=X(qn,"cloneNode"),Ci=X(qn,"nextSibling"),pu=X(qn,"childNodes"),lo=X(qn,"parentNode");if(typeof yn=="function"){var wr=ye.createElement("template");wr.content&&wr.content.ownerDocument&&(ye=wr.content.ownerDocument)}var Ht=du(_i,re),Ei=Ht?Ht.createHTML(""):"",ae=ye,Sr=ae.implementation,Qn=ae.createNodeIterator,uo=ae.createDocumentFragment,xi=ae.getElementsByTagName,Ti=re.importNode,so={};try{so=D(ye).documentMode?ye.documentMode:{}}catch{}var it={};q.isSupported=typeof lo=="function"&&Sr&&Sr.createHTMLDocument!==void 0&&so!==9;var Kn,nn,ao=Pt,_r=gn,hu=Jt,mu=en,gu=Vn,Oi=yi,kr=yr,ze=null,Ni=P({},[].concat(_(Oe),_(ce),_(ee),_(_e),_(Zt))),Fe=null,co=P({},[].concat(_(rt),_(Ne),_(de),_(Ie))),Pe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vn=null,fo=null,Pi=!0,po=!0,Li=!1,wn=!1,Lt=!1,Sn=!1,ho=!1,_n=!1,Cr=!1,Gn=!1,mo=!0,kn=!0,Yn=!1,Bt={},Cn=null,Ai=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),go=null,Wt=P({},["audio","video","img","source","image","track"]),yo=null,ji=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xn="http://www.w3.org/1998/Math/MathML",vo="http://www.w3.org/2000/svg",Vt="http://www.w3.org/1999/xhtml",Er=Vt,Ii=!1,zi=["application/xhtml+xml","text/html"],wo="text/html",En=null,yu=ye.createElement("form"),Mi=function(y){return y instanceof RegExp||y instanceof Function},So=function(y){En&&En===y||(y&&u(y)==="object"||(y={}),y=D(y),ze="ALLOWED_TAGS"in y?P({},y.ALLOWED_TAGS):Ni,Fe="ALLOWED_ATTR"in y?P({},y.ALLOWED_ATTR):co,yo="ADD_URI_SAFE_ATTR"in y?P(D(ji),y.ADD_URI_SAFE_ATTR):ji,go="ADD_DATA_URI_TAGS"in y?P(D(Wt),y.ADD_DATA_URI_TAGS):Wt,Cn="FORBID_CONTENTS"in y?P({},y.FORBID_CONTENTS):Ai,vn="FORBID_TAGS"in y?P({},y.FORBID_TAGS):{},fo="FORBID_ATTR"in y?P({},y.FORBID_ATTR):{},Bt="USE_PROFILES"in y&&y.USE_PROFILES,Pi=y.ALLOW_ARIA_ATTR!==!1,po=y.ALLOW_DATA_ATTR!==!1,Li=y.ALLOW_UNKNOWN_PROTOCOLS||!1,wn=y.SAFE_FOR_TEMPLATES||!1,Lt=y.WHOLE_DOCUMENT||!1,_n=y.RETURN_DOM||!1,Cr=y.RETURN_DOM_FRAGMENT||!1,Gn=y.RETURN_TRUSTED_TYPE||!1,ho=y.FORCE_BODY||!1,mo=y.SANITIZE_DOM!==!1,kn=y.KEEP_CONTENT!==!1,Yn=y.IN_PLACE||!1,kr=y.ALLOWED_URI_REGEXP||kr,Er=y.NAMESPACE||Vt,y.CUSTOM_ELEMENT_HANDLING&&Mi(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Mi(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Pe.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Kn=Kn=zi.indexOf(y.PARSER_MEDIA_TYPE)===-1?wo:y.PARSER_MEDIA_TYPE,nn=Kn==="application/xhtml+xml"?function(B){return B}:J,wn&&(po=!1),Cr&&(_n=!0),Bt&&(ze=P({},_(Zt)),Fe=[],Bt.html===!0&&(P(ze,Oe),P(Fe,rt)),Bt.svg===!0&&(P(ze,ce),P(Fe,Ne),P(Fe,Ie)),Bt.svgFilters===!0&&(P(ze,ee),P(Fe,Ne),P(Fe,Ie)),Bt.mathMl===!0&&(P(ze,_e),P(Fe,de),P(Fe,Ie))),y.ADD_TAGS&&(ze===Ni&&(ze=D(ze)),P(ze,y.ADD_TAGS)),y.ADD_ATTR&&(Fe===co&&(Fe=D(Fe)),P(Fe,y.ADD_ATTR)),y.ADD_URI_SAFE_ATTR&&P(yo,y.ADD_URI_SAFE_ATTR),y.FORBID_CONTENTS&&(Cn===Ai&&(Cn=D(Cn)),P(Cn,y.FORBID_CONTENTS)),kn&&(ze["#text"]=!0),Lt&&P(ze,["html","head","body"]),ze.table&&(P(ze,["tbody"]),delete vn.tbody),c&&c(y),En=y)},At=P({},["mi","mo","mn","ms","mtext"]),Zn=P({},["foreignobject","desc","title","annotation-xml"]),Ri=P({},["title","style","font","a","script"]),rn=P({},ce);P(rn,ee),P(rn,se);var _o=P({},_e);P(_o,Re);var Fi=function(y){var B=lo(y);B&&B.tagName||(B={namespaceURI:Vt,tagName:"template"});var $=J(y.tagName),ue=J(B.tagName);return y.namespaceURI===vo?B.namespaceURI===Vt?$==="svg":B.namespaceURI===Xn?$==="svg"&&(ue==="annotation-xml"||At[ue]):Boolean(rn[$]):y.namespaceURI===Xn?B.namespaceURI===Vt?$==="math":B.namespaceURI===vo?$==="math"&&Zn[ue]:Boolean(_o[$]):y.namespaceURI===Vt&&!(B.namespaceURI===vo&&!Zn[ue])&&!(B.namespaceURI===Xn&&!At[ue])&&!_o[$]&&(Ri[$]||!rn[$])},jt=function(y){K(q.removed,{element:y});try{y.parentNode.removeChild(y)}catch{try{y.outerHTML=Ei}catch{y.remove()}}},ko=function(y,B){try{K(q.removed,{attribute:B.getAttributeNode(y),from:B})}catch{K(q.removed,{attribute:null,from:B})}if(B.removeAttribute(y),y==="is"&&!Fe[y])if(_n||Cr)try{jt(B)}catch{}else try{B.setAttribute(y,"")}catch{}},Di=function(y){var B,$;if(ho)y="<remove></remove>"+y;else{var ue=ie(y,/^[\r\n\t ]+/);$=ue&&ue[0]}Kn==="application/xhtml+xml"&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");var ke=Ht?Ht.createHTML(y):y;if(Er===Vt)try{B=new io().parseFromString(ke,Kn)}catch{}if(!B||!B.documentElement){B=Sr.createDocument(Er,"template",null);try{B.documentElement.innerHTML=Ii?"":ke}catch{}}var f=B.body||B.documentElement;return y&&$&&f.insertBefore(ye.createTextNode($),f.childNodes[0]||null),Er===Vt?xi.call(B,Lt?"html":"body")[0]:Lt?B.documentElement:f},xr=function(y){return Qn.call(y.ownerDocument||y,y,ro.SHOW_ELEMENT|ro.SHOW_COMMENT|ro.SHOW_TEXT,null,!1)},vu=function(y){return y instanceof Si&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof oo)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function")},Jn=function(y){return u(tn)==="object"?y instanceof tn:y&&u(y)==="object"&&typeof y.nodeType=="number"&&typeof y.nodeName=="string"},Ke=function(y,B,$){it[y]&&j(it[y],function(ue){ue.call(q,B,$,En)})},er=function(y){var B;if(Ke("beforeSanitizeElements",y,null),vu(y)||pe(/[\u0080-\uFFFF]/,y.nodeName))return jt(y),!0;var $=nn(y.nodeName);if(Ke("uponSanitizeElement",y,{tagName:$,allowedTags:ze}),y.hasChildNodes()&&!Jn(y.firstElementChild)&&(!Jn(y.content)||!Jn(y.content.firstElementChild))&&pe(/<[/\w]/g,y.innerHTML)&&pe(/<[/\w]/g,y.textContent)||$==="select"&&pe(/<template/i,y.innerHTML))return jt(y),!0;if(!ze[$]||vn[$]){if(!vn[$]&&Co($)&&(Pe.tagNameCheck instanceof RegExp&&pe(Pe.tagNameCheck,$)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck($)))return!1;if(kn&&!Cn[$]){var ue=lo(y)||y.parentNode,ke=pu(y)||y.childNodes;if(ke&&ue)for(var f=ke.length-1;f>=0;--f)ue.insertBefore(ki(ke[f],!0),Ci(y))}return jt(y),!0}return y instanceof wi&&!Fi(y)?(jt(y),!0):$!=="noscript"&&$!=="noembed"||!pe(/<\/no(script|embed)/i,y.innerHTML)?(wn&&y.nodeType===3&&(B=y.textContent,B=me(B,ao," "),B=me(B,_r," "),y.textContent!==B&&(K(q.removed,{element:y.cloneNode()}),y.textContent=B)),Ke("afterSanitizeElements",y,null),!1):(jt(y),!0)},$i=function(y,B,$){if(mo&&(B==="id"||B==="name")&&($ in ye||$ in yu))return!1;if(!(po&&!fo[B]&&pe(hu,B))){if(!(Pi&&pe(mu,B))){if(!Fe[B]||fo[B]){if(!(Co(y)&&(Pe.tagNameCheck instanceof RegExp&&pe(Pe.tagNameCheck,y)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(y))&&(Pe.attributeNameCheck instanceof RegExp&&pe(Pe.attributeNameCheck,B)||Pe.attributeNameCheck instanceof Function&&Pe.attributeNameCheck(B))||B==="is"&&Pe.allowCustomizedBuiltInElements&&(Pe.tagNameCheck instanceof RegExp&&pe(Pe.tagNameCheck,$)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck($))))return!1}else if(!yo[B]){if(!pe(kr,me($,Oi,""))){if((B!=="src"&&B!=="xlink:href"&&B!=="href"||y==="script"||Qe($,"data:")!==0||!go[y])&&!(Li&&!pe(gu,me($,Oi,"")))){if($)return!1}}}}}return!0},Co=function(y){return y.indexOf("-")>0},Ui=function(y){var B,$,ue,ke;Ke("beforeSanitizeAttributes",y,null);var f=y.attributes;if(f){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Fe};for(ke=f.length;ke--;){var d=B=f[ke],w=d.name,L=d.namespaceURI;if($=w==="value"?B.value:je(B.value),ue=nn(w),s.attrName=ue,s.attrValue=$,s.keepAttr=!0,s.forceKeepAttr=void 0,Ke("uponSanitizeAttribute",y,s),$=s.attrValue,!s.forceKeepAttr&&(ko(w,y),s.keepAttr))if(pe(/\/>/i,$))ko(w,y);else{wn&&($=me($,ao," "),$=me($,_r," "));var M=nn(y.nodeName);if($i(M,ue,$))try{L?y.setAttributeNS(L,w,$):y.setAttribute(w,$),z(q.removed)}catch{}}}Ke("afterSanitizeAttributes",y,null)}},wu=function y(B){var $,ue=xr(B);for(Ke("beforeSanitizeShadowDOM",B,null);$=ue.nextNode();)Ke("uponSanitizeShadowNode",$,null),er($)||($.content instanceof ot&&y($.content),Ui($));Ke("afterSanitizeShadowDOM",B,null)};return q.sanitize=function(y,B){var $,ue,ke,f,s;if((Ii=!y)&&(y="<!-->"),typeof y!="string"&&!Jn(y)){if(typeof y.toString!="function")throw H("toString is not a function");if(typeof(y=y.toString())!="string")throw H("dirty is not a string, aborting")}if(!q.isSupported){if(u(U.toStaticHTML)==="object"||typeof U.toStaticHTML=="function"){if(typeof y=="string")return U.toStaticHTML(y);if(Jn(y))return U.toStaticHTML(y.outerHTML)}return y}if(Sn||So(B),q.removed=[],typeof y=="string"&&(Yn=!1),Yn){if(y.nodeName){var d=nn(y.nodeName);if(!ze[d]||vn[d])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(y instanceof tn)(ue=($=Di("<!---->")).ownerDocument.importNode(y,!0)).nodeType===1&&ue.nodeName==="BODY"||ue.nodeName==="HTML"?$=ue:$.appendChild(ue);else{if(!_n&&!wn&&!Lt&&y.indexOf("<")===-1)return Ht&&Gn?Ht.createHTML(y):y;if(!($=Di(y)))return _n?null:Gn?Ei:""}$&&ho&&jt($.firstChild);for(var w=xr(Yn?y:$);ke=w.nextNode();)ke.nodeType===3&&ke===f||er(ke)||(ke.content instanceof ot&&wu(ke.content),Ui(ke),f=ke);if(f=null,Yn)return y;if(_n){if(Cr)for(s=uo.call($.ownerDocument);$.firstChild;)s.appendChild($.firstChild);else s=$;return Fe.shadowroot&&(s=Ti.call(re,s,!0)),s}var L=Lt?$.outerHTML:$.innerHTML;return Lt&&ze["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&pe(fu,$.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
`+L),wn&&(L=me(L,ao," "),L=me(L,_r," ")),Ht&&Gn?Ht.createHTML(L):L},q.setConfig=function(y){So(y),Sn=!0},q.clearConfig=function(){En=null,Sn=!1},q.isValidAttribute=function(y,B,$){En||So({});var ue=nn(y),ke=nn(B);return $i(ue,ke,$)},q.addHook=function(y,B){typeof B=="function"&&(it[y]=it[y]||[],K(it[y],B))},q.removeHook=function(y){if(it[y])return z(it[y])},q.removeHooks=function(y){it[y]&&(it[y]=[])},q.removeAllHooks=function(){it={}},q}()}()},729:l=>{var u=Object.prototype.hasOwnProperty,a="~";function p(){}function v(k,S,I){this.fn=k,this.context=S,this.once=I||!1}function _(k,S,I,g,c){if(typeof I!="function")throw new TypeError("The listener must be a function");var h=new v(I,g||k,c),O=a?a+S:S;return k._events[O]?k._events[O].fn?k._events[O]=[k._events[O],h]:k._events[O].push(h):(k._events[O]=h,k._eventsCount++),k}function E(k,S){--k._eventsCount==0?k._events=new p:delete k._events[S]}function x(){this._events=new p,this._eventsCount=0}Object.create&&(p.prototype=Object.create(null),new p().__proto__||(a=!1)),x.prototype.eventNames=function(){var k,S,I=[];if(this._eventsCount===0)return I;for(S in k=this._events)u.call(k,S)&&I.push(a?S.slice(1):S);return Object.getOwnPropertySymbols?I.concat(Object.getOwnPropertySymbols(k)):I},x.prototype.listeners=function(k){var S=a?a+k:k,I=this._events[S];if(!I)return[];if(I.fn)return[I.fn];for(var g=0,c=I.length,h=new Array(c);g<c;g++)h[g]=I[g].fn;return h},x.prototype.listenerCount=function(k){var S=a?a+k:k,I=this._events[S];return I?I.fn?1:I.length:0},x.prototype.emit=function(k,S,I,g,c,h){var O=a?a+k:k;if(!this._events[O])return!1;var T,A,m=this._events[O],C=arguments.length;if(m.fn){switch(m.once&&this.removeListener(k,m.fn,void 0,!0),C){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,S),!0;case 3:return m.fn.call(m.context,S,I),!0;case 4:return m.fn.call(m.context,S,I,g),!0;case 5:return m.fn.call(m.context,S,I,g,c),!0;case 6:return m.fn.call(m.context,S,I,g,c,h),!0}for(A=1,T=new Array(C-1);A<C;A++)T[A-1]=arguments[A];m.fn.apply(m.context,T)}else{var j,z=m.length;for(A=0;A<z;A++)switch(m[A].once&&this.removeListener(k,m[A].fn,void 0,!0),C){case 1:m[A].fn.call(m[A].context);break;case 2:m[A].fn.call(m[A].context,S);break;case 3:m[A].fn.call(m[A].context,S,I);break;case 4:m[A].fn.call(m[A].context,S,I,g);break;default:if(!T)for(j=1,T=new Array(C-1);j<C;j++)T[j-1]=arguments[j];m[A].fn.apply(m[A].context,T)}}return!0},x.prototype.on=function(k,S,I){return _(this,k,S,I,!1)},x.prototype.once=function(k,S,I){return _(this,k,S,I,!0)},x.prototype.removeListener=function(k,S,I,g){var c=a?a+k:k;if(!this._events[c])return this;if(!S)return E(this,c),this;var h=this._events[c];if(h.fn)h.fn!==S||g&&!h.once||I&&h.context!==I||E(this,c);else{for(var O=0,T=[],A=h.length;O<A;O++)(h[O].fn!==S||g&&!h[O].once||I&&h[O].context!==I)&&T.push(h[O]);T.length?this._events[c]=T.length===1?T[0]:T:E(this,c)}return this},x.prototype.removeAllListeners=function(k){var S;return k?(S=a?a+k:k,this._events[S]&&E(this,S)):(this._events=new p,this._eventsCount=0),this},x.prototype.off=x.prototype.removeListener,x.prototype.addListener=x.prototype.on,x.prefixed=a,x.EventEmitter=x,l.exports=x},824:l=>{var u=1e3,a=60*u,p=60*a,v=24*p;function _(E,x,k,S){var I=x>=1.5*k;return Math.round(E/k)+" "+S+(I?"s":"")}l.exports=function(E,x){x=x||{};var k,S,I=typeof E;if(I==="string"&&E.length>0)return function(g){if(!((g=String(g)).length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(c){var h=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"weeks":case"week":case"w":return 6048e5*h;case"days":case"day":case"d":return h*v;case"hours":case"hour":case"hrs":case"hr":case"h":return h*p;case"minutes":case"minute":case"mins":case"min":case"m":return h*a;case"seconds":case"second":case"secs":case"sec":case"s":return h*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}(E);if(I==="number"&&isFinite(E))return x.long?(k=E,(S=Math.abs(k))>=v?_(k,S,v,"day"):S>=p?_(k,S,p,"hour"):S>=a?_(k,S,a,"minute"):S>=u?_(k,S,u,"second"):k+" ms"):function(g){var c=Math.abs(g);return c>=v?Math.round(g/v)+"d":c>=p?Math.round(g/p)+"h":c>=a?Math.round(g/a)+"m":c>=u?Math.round(g/u)+"s":g+"ms"}(E);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(E))}},520:(l,u,a)=>{var p=a(155),v=p.platform==="win32",_=a(539);function E(m,C){for(var j=[],z=0;z<m.length;z++){var K=m[z];K&&K!=="."&&(K===".."?j.length&&j[j.length-1]!==".."?j.pop():C&&j.push(".."):j.push(K))}return j}function x(m){for(var C=m.length-1,j=0;j<=C&&!m[j];j++);for(var z=C;z>=0&&!m[z];z--);return j===0&&z===C?m:j>z?[]:m.slice(j,z+1)}var k=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,S=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,I={};function g(m){var C=k.exec(m),j=(C[1]||"")+(C[2]||""),z=C[3]||"",K=S.exec(z);return[j,K[1],K[2],K[3]]}function c(m){var C=k.exec(m),j=C[1]||"",z=!!j&&j[1]!==":";return{device:j,isUnc:z,isAbsolute:z||!!C[2],tail:C[3]}}function h(m){return"\\\\"+m.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}I.resolve=function(){for(var m="",C="",j=!1,z=arguments.length-1;z>=-1;z--){var K;if(z>=0?K=arguments[z]:m?(K=p.env["="+m])&&K.substr(0,3).toLowerCase()===m.toLowerCase()+"\\"||(K=m+"\\"):K=p.cwd(),!_.isString(K))throw new TypeError("Arguments to path.resolve must be strings");if(K){var J=c(K),ie=J.device,me=J.isUnc,Qe=J.isAbsolute,je=J.tail;if((!ie||!m||ie.toLowerCase()===m.toLowerCase())&&(m||(m=ie),j||(C=je+"\\"+C,j=Qe),m&&j))break}}return me&&(m=h(m)),m+(j?"\\":"")+(C=E(C.split(/[\\\/]+/),!j).join("\\"))||"."},I.normalize=function(m){var C=c(m),j=C.device,z=C.isUnc,K=C.isAbsolute,J=C.tail,ie=/[\\\/]$/.test(J);return(J=E(J.split(/[\\\/]+/),!K).join("\\"))||K||(J="."),J&&ie&&(J+="\\"),z&&(j=h(j)),j+(K?"\\":"")+J},I.isAbsolute=function(m){return c(m).isAbsolute},I.join=function(){for(var m=[],C=0;C<arguments.length;C++){var j=arguments[C];if(!_.isString(j))throw new TypeError("Arguments to path.join must be strings");j&&m.push(j)}var z=m.join("\\");return/^[\\\/]{2}[^\\\/]/.test(m[0])||(z=z.replace(/^[\\\/]{2,}/,"\\")),I.normalize(z)},I.relative=function(m,C){m=I.resolve(m),C=I.resolve(C);for(var j=m.toLowerCase(),z=C.toLowerCase(),K=x(C.split("\\")),J=x(j.split("\\")),ie=x(z.split("\\")),me=Math.min(J.length,ie.length),Qe=me,je=0;je<me;je++)if(J[je]!==ie[je]){Qe=je;break}if(Qe==0)return C;var pe=[];for(je=Qe;je<J.length;je++)pe.push("..");return(pe=pe.concat(K.slice(Qe))).join("\\")},I._makeLong=function(m){if(!_.isString(m))return m;if(!m)return"";var C=I.resolve(m);return/^[a-zA-Z]\:\\/.test(C)?"\\\\?\\"+C:/^\\\\[^?.]/.test(C)?"\\\\?\\UNC\\"+C.substring(2):m},I.dirname=function(m){var C=g(m),j=C[0],z=C[1];return j||z?(z&&(z=z.substr(0,z.length-1)),j+z):"."},I.basename=function(m,C){var j=g(m)[2];return C&&j.substr(-1*C.length)===C&&(j=j.substr(0,j.length-C.length)),j},I.extname=function(m){return g(m)[3]},I.format=function(m){if(!_.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var C=m.root||"";if(!_.isString(C))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var j=m.dir,z=m.base||"";return j?j[j.length-1]===I.sep?j+z:j+I.sep+z:z},I.parse=function(m){if(!_.isString(m))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof m);var C=g(m);if(!C||C.length!==4)throw new TypeError("Invalid path '"+m+"'");return{root:C[0],dir:C[0]+C[1].slice(0,-1),base:C[2],ext:C[3],name:C[2].slice(0,C[2].length-C[3].length)}},I.sep="\\",I.delimiter=";";var O=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,T={};function A(m){return O.exec(m).slice(1)}T.resolve=function(){for(var m="",C=!1,j=arguments.length-1;j>=-1&&!C;j--){var z=j>=0?arguments[j]:p.cwd();if(!_.isString(z))throw new TypeError("Arguments to path.resolve must be strings");z&&(m=z+"/"+m,C=z[0]==="/")}return(C?"/":"")+(m=E(m.split("/"),!C).join("/"))||"."},T.normalize=function(m){var C=T.isAbsolute(m),j=m&&m[m.length-1]==="/";return(m=E(m.split("/"),!C).join("/"))||C||(m="."),m&&j&&(m+="/"),(C?"/":"")+m},T.isAbsolute=function(m){return m.charAt(0)==="/"},T.join=function(){for(var m="",C=0;C<arguments.length;C++){var j=arguments[C];if(!_.isString(j))throw new TypeError("Arguments to path.join must be strings");j&&(m+=m?"/"+j:j)}return T.normalize(m)},T.relative=function(m,C){m=T.resolve(m).substr(1),C=T.resolve(C).substr(1);for(var j=x(m.split("/")),z=x(C.split("/")),K=Math.min(j.length,z.length),J=K,ie=0;ie<K;ie++)if(j[ie]!==z[ie]){J=ie;break}var me=[];for(ie=J;ie<j.length;ie++)me.push("..");return(me=me.concat(z.slice(J))).join("/")},T._makeLong=function(m){return m},T.dirname=function(m){var C=A(m),j=C[0],z=C[1];return j||z?(z&&(z=z.substr(0,z.length-1)),j+z):"."},T.basename=function(m,C){var j=A(m)[2];return C&&j.substr(-1*C.length)===C&&(j=j.substr(0,j.length-C.length)),j},T.extname=function(m){return A(m)[3]},T.format=function(m){if(!_.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var C=m.root||"";if(!_.isString(C))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);return(m.dir?m.dir+T.sep:"")+(m.base||"")},T.parse=function(m){if(!_.isString(m))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof m);var C=A(m);if(!C||C.length!==4)throw new TypeError("Invalid path '"+m+"'");return C[1]=C[1]||"",C[2]=C[2]||"",C[3]=C[3]||"",{root:C[0],dir:C[0]+C[1].slice(0,-1),base:C[2],ext:C[3],name:C[2].slice(0,C[2].length-C[3].length)}},T.sep="/",T.delimiter=":",l.exports=v?I:T,l.exports.posix=T,l.exports.win32=I},155:l=>{var u,a,p=l.exports={};function v(){throw new Error("setTimeout has not been defined")}function _(){throw new Error("clearTimeout has not been defined")}function E(T){if(u===setTimeout)return setTimeout(T,0);if((u===v||!u)&&setTimeout)return u=setTimeout,setTimeout(T,0);try{return u(T,0)}catch{try{return u.call(null,T,0)}catch{return u.call(this,T,0)}}}(function(){try{u=typeof setTimeout=="function"?setTimeout:v}catch{u=v}try{a=typeof clearTimeout=="function"?clearTimeout:_}catch{a=_}})();var x,k=[],S=!1,I=-1;function g(){S&&x&&(S=!1,x.length?k=x.concat(k):I=-1,k.length&&c())}function c(){if(!S){var T=E(g);S=!0;for(var A=k.length;A;){for(x=k,k=[];++I<A;)x&&x[I].run();I=-1,A=k.length}x=null,S=!1,function(m){if(a===clearTimeout)return clearTimeout(m);if((a===_||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(m);try{a(m)}catch{try{return a.call(null,m)}catch{return a.call(this,m)}}}(T)}}function h(T,A){this.fun=T,this.array=A}function O(){}p.nextTick=function(T){var A=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)A[m-1]=arguments[m];k.push(new h(T,A)),k.length!==1||S||E(c)},h.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=O,p.addListener=O,p.once=O,p.off=O,p.removeListener=O,p.removeAllListeners=O,p.emit=O,p.prependListener=O,p.prependOnceListener=O,p.listeners=function(T){return[]},p.binding=function(T){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(T){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},496:l=>{typeof Object.create=="function"?l.exports=function(u,a){u.super_=a,u.prototype=Object.create(a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:l.exports=function(u,a){u.super_=a;var p=function(){};p.prototype=a.prototype,u.prototype=new p,u.prototype.constructor=u}},384:l=>{l.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},539:(l,u,a)=>{var p=a(155),v=/%[sdj%]/g;u.format=function(N){if(!m(N)){for(var P=[],D=0;D<arguments.length;D++)P.push(x(arguments[D]));return P.join(" ")}D=1;for(var X=arguments,Oe=X.length,ce=String(N).replace(v,function(se){if(se==="%%")return"%";if(D>=Oe)return se;switch(se){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return se}}),ee=X[D];D<Oe;ee=X[++D])T(ee)||!z(ee)?ce+=" "+ee:ce+=" "+x(ee);return ce},u.deprecate=function(N,P){if(C(a.g.process))return function(){return u.deprecate(N,P).apply(this,arguments)};if(p.noDeprecation===!0)return N;var D=!1;return function(){if(!D){if(p.throwDeprecation)throw new Error(P);p.traceDeprecation?console.trace(P):console.error(P),D=!0}return N.apply(this,arguments)}};var _,E={};function x(N,P){var D={seen:[],stylize:S};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),O(P)?D.showHidden=P:P&&u._extend(D,P),C(D.showHidden)&&(D.showHidden=!1),C(D.depth)&&(D.depth=2),C(D.colors)&&(D.colors=!1),C(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=k),I(D,N,D.depth)}function k(N,P){var D=x.styles[P];return D?"\x1B["+x.colors[D][0]+"m"+N+"\x1B["+x.colors[D][1]+"m":N}function S(N,P){return N}function I(N,P,D){if(N.customInspect&&P&&ie(P.inspect)&&P.inspect!==u.inspect&&(!P.constructor||P.constructor.prototype!==P)){var X=P.inspect(D,N);return m(X)||(X=I(N,X,D)),X}var Oe=function(Ne,de){if(C(de))return Ne.stylize("undefined","undefined");if(m(de)){var Ie="'"+JSON.stringify(de).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ne.stylize(Ie,"string")}return A(de)?Ne.stylize(""+de,"number"):O(de)?Ne.stylize(""+de,"boolean"):T(de)?Ne.stylize("null","null"):void 0}(N,P);if(Oe)return Oe;var ce=Object.keys(P),ee=function(Ne){var de={};return Ne.forEach(function(Ie,Pt){de[Ie]=!0}),de}(ce);if(N.showHidden&&(ce=Object.getOwnPropertyNames(P)),J(P)&&(ce.indexOf("message")>=0||ce.indexOf("description")>=0))return g(P);if(ce.length===0){if(ie(P)){var se=P.name?": "+P.name:"";return N.stylize("[Function"+se+"]","special")}if(j(P))return N.stylize(RegExp.prototype.toString.call(P),"regexp");if(K(P))return N.stylize(Date.prototype.toString.call(P),"date");if(J(P))return g(P)}var _e,Re="",Zt=!1,rt=["{","}"];return h(P)&&(Zt=!0,rt=["[","]"]),ie(P)&&(Re=" [Function"+(P.name?": "+P.name:"")+"]"),j(P)&&(Re=" "+RegExp.prototype.toString.call(P)),K(P)&&(Re=" "+Date.prototype.toUTCString.call(P)),J(P)&&(Re=" "+g(P)),ce.length!==0||Zt&&P.length!=0?D<0?j(P)?N.stylize(RegExp.prototype.toString.call(P),"regexp"):N.stylize("[Object]","special"):(N.seen.push(P),_e=Zt?function(Ne,de,Ie,Pt,gn){for(var Jt=[],en=0,yr=de.length;en<yr;++en)H(de,String(en))?Jt.push(c(Ne,de,Ie,Pt,String(en),!0)):Jt.push("");return gn.forEach(function(Vn){Vn.match(/^\d+$/)||Jt.push(c(Ne,de,Ie,Pt,Vn,!0))}),Jt}(N,P,D,ee,ce):ce.map(function(Ne){return c(N,P,D,ee,Ne,Zt)}),N.seen.pop(),function(Ne,de,Ie){return Ne.reduce(function(Pt,gn){return gn.indexOf(`
`),Pt+gn.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Ie[0]+(de===""?"":de+`
`)+" "+Ne.join(`,
`)+" "+Ie[1]:Ie[0]+de+" "+Ne.join(", ")+" "+Ie[1]}(_e,Re,rt)):rt[0]+Re+rt[1]}function g(N){return"["+Error.prototype.toString.call(N)+"]"}function c(N,P,D,X,Oe,ce){var ee,se,_e;if((_e=Object.getOwnPropertyDescriptor(P,Oe)||{value:P[Oe]}).get?se=_e.set?N.stylize("[Getter/Setter]","special"):N.stylize("[Getter]","special"):_e.set&&(se=N.stylize("[Setter]","special")),H(X,Oe)||(ee="["+Oe+"]"),se||(N.seen.indexOf(_e.value)<0?(se=T(D)?I(N,_e.value,null):I(N,_e.value,D-1)).indexOf(`
`)>-1&&(se=ce?se.split(`
`).map(function(Re){return" "+Re}).join(`
`).substr(2):`
`+se.split(`
`).map(function(Re){return" "+Re}).join(`
`)):se=N.stylize("[Circular]","special")),C(ee)){if(ce&&Oe.match(/^\d+$/))return se;(ee=JSON.stringify(""+Oe)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ee=ee.substr(1,ee.length-2),ee=N.stylize(ee,"name")):(ee=ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ee=N.stylize(ee,"string"))}return ee+": "+se}function h(N){return Array.isArray(N)}function O(N){return typeof N=="boolean"}function T(N){return N===null}function A(N){return typeof N=="number"}function m(N){return typeof N=="string"}function C(N){return N===void 0}function j(N){return z(N)&&me(N)==="[object RegExp]"}function z(N){return typeof N=="object"&&N!==null}function K(N){return z(N)&&me(N)==="[object Date]"}function J(N){return z(N)&&(me(N)==="[object Error]"||N instanceof Error)}function ie(N){return typeof N=="function"}function me(N){return Object.prototype.toString.call(N)}function Qe(N){return N<10?"0"+N.toString(10):N.toString(10)}u.debuglog=function(N){if(C(_)&&(_=p.env.NODE_DEBUG||""),N=N.toUpperCase(),!E[N])if(new RegExp("\\b"+N+"\\b","i").test(_)){var P=p.pid;E[N]=function(){var D=u.format.apply(u,arguments);console.error("%s %d: %s",N,P,D)}}else E[N]=function(){};return E[N]},u.inspect=x,x.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},u.isArray=h,u.isBoolean=O,u.isNull=T,u.isNullOrUndefined=function(N){return N==null},u.isNumber=A,u.isString=m,u.isSymbol=function(N){return typeof N=="symbol"},u.isUndefined=C,u.isRegExp=j,u.isObject=z,u.isDate=K,u.isError=J,u.isFunction=ie,u.isPrimitive=function(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||N===void 0},u.isBuffer=a(384);var je=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pe(){var N=new Date,P=[Qe(N.getHours()),Qe(N.getMinutes()),Qe(N.getSeconds())].join(":");return[N.getDate(),je[N.getMonth()],P].join(" ")}function H(N,P){return Object.prototype.hasOwnProperty.call(N,P)}u.log=function(){console.log("%s - %s",pe(),u.format.apply(u,arguments))},u.inherits=a(496),u._extend=function(N,P){if(!P||!z(P))return N;for(var D=Object.keys(P),X=D.length;X--;)N[D[X]]=P[D[X]];return N}}},r={};function o(l){var u=r[l];if(u!==void 0)return u.exports;var a=r[l]={exports:{}};return n[l].call(a.exports,a,a.exports,o),a.exports}o.n=l=>{var u=l&&l.__esModule?()=>l.default:()=>l;return o.d(u,{a:u}),u},o.d=(l,u)=>{for(var a in u)o.o(u,a)&&!o.o(l,a)&&Object.defineProperty(l,a,{enumerable:!0,get:u[a]})},o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),o.o=(l,u)=>Object.prototype.hasOwnProperty.call(l,u),o.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{LSPluginUser:()=>ue,setupPluginUserInstance:()=>ke});var l=o(520);o(856);const u=function(f,s){return f===s||f!=f&&s!=s},a=function(f,s){for(var d=f.length;d--;)if(u(f[d][0],s))return d;return-1};var p=Array.prototype.splice;function v(f){var s=-1,d=f==null?0:f.length;for(this.clear();++s<d;){var w=f[s];this.set(w[0],w[1])}}v.prototype.clear=function(){this.__data__=[],this.size=0},v.prototype.delete=function(f){var s=this.__data__,d=a(s,f);return!(d<0||(d==s.length-1?s.pop():p.call(s,d,1),--this.size,0))},v.prototype.get=function(f){var s=this.__data__,d=a(s,f);return d<0?void 0:s[d][1]},v.prototype.has=function(f){return a(this.__data__,f)>-1},v.prototype.set=function(f,s){var d=this.__data__,w=a(d,f);return w<0?(++this.size,d.push([f,s])):d[w][1]=s,this};const _=v,E=typeof bi=="object"&&bi&&bi.Object===Object&&bi;var x=typeof self=="object"&&self&&self.Object===Object&&self;const k=E||x||Function("return this")(),S=k.Symbol;var I=Object.prototype,g=I.hasOwnProperty,c=I.toString,h=S?S.toStringTag:void 0,O=Object.prototype.toString,T=S?S.toStringTag:void 0;const A=function(f){return f==null?f===void 0?"[object Undefined]":"[object Null]":T&&T in Object(f)?function(s){var d=g.call(s,h),w=s[h];try{s[h]=void 0;var L=!0}catch{}var M=c.call(s);return L&&(d?s[h]=w:delete s[h]),M}(f):function(s){return O.call(s)}(f)},m=function(f){var s=typeof f;return f!=null&&(s=="object"||s=="function")},C=function(f){if(!m(f))return!1;var s=A(f);return s=="[object Function]"||s=="[object GeneratorFunction]"||s=="[object AsyncFunction]"||s=="[object Proxy]"},j=k["__core-js_shared__"];var z,K=(z=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",J=Function.prototype.toString,ie=/^\[object .+?Constructor\]$/,me=Function.prototype,Qe=Object.prototype,je=me.toString,pe=Qe.hasOwnProperty,H=RegExp("^"+je.call(pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const N=function(f){return!(!m(f)||(s=f,K&&K in s))&&(C(f)?H:ie).test(function(d){if(d!=null){try{return J.call(d)}catch{}try{return d+""}catch{}}return""}(f));var s},P=function(f,s){var d=function(w,L){return w?.[L]}(f,s);return N(d)?d:void 0},D=P(k,"Map"),X=P(Object,"create");var Oe=Object.prototype.hasOwnProperty,ce=Object.prototype.hasOwnProperty;function ee(f){var s=-1,d=f==null?0:f.length;for(this.clear();++s<d;){var w=f[s];this.set(w[0],w[1])}}ee.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},ee.prototype.delete=function(f){var s=this.has(f)&&delete this.__data__[f];return this.size-=s?1:0,s},ee.prototype.get=function(f){var s=this.__data__;if(X){var d=s[f];return d==="__lodash_hash_undefined__"?void 0:d}return Oe.call(s,f)?s[f]:void 0},ee.prototype.has=function(f){var s=this.__data__;return X?s[f]!==void 0:ce.call(s,f)},ee.prototype.set=function(f,s){var d=this.__data__;return this.size+=this.has(f)?0:1,d[f]=X&&s===void 0?"__lodash_hash_undefined__":s,this};const se=ee,_e=function(f,s){var d,w,L=f.__data__;return((w=typeof(d=s))=="string"||w=="number"||w=="symbol"||w=="boolean"?d!=="__proto__":d===null)?L[typeof s=="string"?"string":"hash"]:L.map};function Re(f){var s=-1,d=f==null?0:f.length;for(this.clear();++s<d;){var w=f[s];this.set(w[0],w[1])}}Re.prototype.clear=function(){this.size=0,this.__data__={hash:new se,map:new(D||_),string:new se}},Re.prototype.delete=function(f){var s=_e(this,f).delete(f);return this.size-=s?1:0,s},Re.prototype.get=function(f){return _e(this,f).get(f)},Re.prototype.has=function(f){return _e(this,f).has(f)},Re.prototype.set=function(f,s){var d=_e(this,f),w=d.size;return d.set(f,s),this.size+=d.size==w?0:1,this};const Zt=Re;function rt(f){var s=this.__data__=new _(f);this.size=s.size}rt.prototype.clear=function(){this.__data__=new _,this.size=0},rt.prototype.delete=function(f){var s=this.__data__,d=s.delete(f);return this.size=s.size,d},rt.prototype.get=function(f){return this.__data__.get(f)},rt.prototype.has=function(f){return this.__data__.has(f)},rt.prototype.set=function(f,s){var d=this.__data__;if(d instanceof _){var w=d.__data__;if(!D||w.length<199)return w.push([f,s]),this.size=++d.size,this;d=this.__data__=new Zt(w)}return d.set(f,s),this.size=d.size,this};const Ne=rt,de=function(){try{var f=P(Object,"defineProperty");return f({},"",{}),f}catch{}}(),Ie=function(f,s,d){s=="__proto__"&&de?de(f,s,{configurable:!0,enumerable:!0,value:d,writable:!0}):f[s]=d},Pt=function(f,s,d){(d!==void 0&&!u(f[s],d)||d===void 0&&!(s in f))&&Ie(f,s,d)},gn=function(f,s,d){for(var w=-1,L=Object(f),M=d(f),R=M.length;R--;){var W=M[++w];if(s(L[W],W,L)===!1)break}return f};var Jt=t&&!t.nodeType&&t,en=Jt&&!0&&e&&!e.nodeType&&e,yr=en&&en.exports===Jt?k.Buffer:void 0,Vn=yr?yr.allocUnsafe:void 0;const yi=k.Uint8Array,fu=function(f,s){var d,w,L=s?(d=f.buffer,w=new d.constructor(d.byteLength),new yi(w).set(new yi(d)),w):f.buffer;return new f.constructor(L,f.byteOffset,f.length)};var vi=Object.create;const du=function(){function f(){}return function(s){if(!m(s))return{};if(vi)return vi(s);f.prototype=s;var d=new f;return f.prototype=void 0,d}}(),Y=(U=Object.getPrototypeOf,q=Object,function(f){return U(q(f))});var U,q,re=Object.prototype;const ye=function(f){var s=f&&f.constructor;return f===(typeof s=="function"&&s.prototype||re)},ot=function(f){return f!=null&&typeof f=="object"},yn=function(f){return ot(f)&&A(f)=="[object Arguments]"};var tn=Object.prototype,wi=tn.hasOwnProperty,ro=tn.propertyIsEnumerable;const vr=yn(function(){return arguments}())?yn:function(f){return ot(f)&&wi.call(f,"callee")&&!ro.call(f,"callee")},oo=Array.isArray,Si=function(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=9007199254740991},io=function(f){return f!=null&&Si(f.length)&&!C(f)};var _i=t&&!t.nodeType&&t,qn=_i&&!0&&e&&!e.nodeType&&e,ki=qn&&qn.exports===_i?k.Buffer:void 0;const Ci=(ki?ki.isBuffer:void 0)||function(){return!1};var pu=Function.prototype,lo=Object.prototype,wr=pu.toString,Ht=lo.hasOwnProperty,Ei=wr.call(Object),ae={};ae["[object Float32Array]"]=ae["[object Float64Array]"]=ae["[object Int8Array]"]=ae["[object Int16Array]"]=ae["[object Int32Array]"]=ae["[object Uint8Array]"]=ae["[object Uint8ClampedArray]"]=ae["[object Uint16Array]"]=ae["[object Uint32Array]"]=!0,ae["[object Arguments]"]=ae["[object Array]"]=ae["[object ArrayBuffer]"]=ae["[object Boolean]"]=ae["[object DataView]"]=ae["[object Date]"]=ae["[object Error]"]=ae["[object Function]"]=ae["[object Map]"]=ae["[object Number]"]=ae["[object Object]"]=ae["[object RegExp]"]=ae["[object Set]"]=ae["[object String]"]=ae["[object WeakMap]"]=!1;var Sr=t&&!t.nodeType&&t,Qn=Sr&&!0&&e&&!e.nodeType&&e,uo=Qn&&Qn.exports===Sr&&E.process,xi=function(){try{return Qn&&Qn.require&&Qn.require("util").types||uo&&uo.binding&&uo.binding("util")}catch{}}(),Ti=xi&&xi.isTypedArray;const so=Ti?function(f){return function(s){return f(s)}}(Ti):function(f){return ot(f)&&Si(f.length)&&!!ae[A(f)]},it=function(f,s){if((s!=="constructor"||typeof f[s]!="function")&&s!="__proto__")return f[s]};var Kn=Object.prototype.hasOwnProperty;const nn=function(f,s,d){var w=f[s];Kn.call(f,s)&&u(w,d)&&(d!==void 0||s in f)||Ie(f,s,d)};var ao=/^(?:0|[1-9]\d*)$/;const _r=function(f,s){var d=typeof f;return!!(s=s??9007199254740991)&&(d=="number"||d!="symbol"&&ao.test(f))&&f>-1&&f%1==0&&f<s};var hu=Object.prototype.hasOwnProperty;const mu=function(f,s){var d=oo(f),w=!d&&vr(f),L=!d&&!w&&Ci(f),M=!d&&!w&&!L&&so(f),R=d||w||L||M,W=R?function(G,Z){for(var le=-1,he=Array(G);++le<G;)he[le]=Z(le);return he}(f.length,String):[],Q=W.length;for(var b in f)!s&&!hu.call(f,b)||R&&(b=="length"||L&&(b=="offset"||b=="parent")||M&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||_r(b,Q))||W.push(b);return W};var gu=Object.prototype.hasOwnProperty;const Oi=function(f){if(!m(f))return function(L){var M=[];if(L!=null)for(var R in Object(L))M.push(R);return M}(f);var s=ye(f),d=[];for(var w in f)(w!="constructor"||!s&&gu.call(f,w))&&d.push(w);return d},kr=function(f){return io(f)?mu(f,!0):Oi(f)},ze=function(f){return function(s,d,w,L){var M=!w;w||(w={});for(var R=-1,W=d.length;++R<W;){var Q=d[R],b=L?L(w[Q],s[Q],Q,w,s):void 0;b===void 0&&(b=s[Q]),M?Ie(w,Q,b):nn(w,Q,b)}return w}(f,kr(f))},Ni=function(f,s,d,w,L,M,R){var W,Q=it(f,d),b=it(s,d),G=R.get(b);if(G)Pt(f,d,G);else{var Z=M?M(Q,b,d+"",f,s,R):void 0,le=Z===void 0;if(le){var he=oo(b),Be=!he&&Ci(b),on=!he&&!Be&&so(b);Z=b,he||Be||on?oo(Q)?Z=Q:ot(W=Q)&&io(W)?Z=function(ve,ht){var lt=-1,Eo=ve.length;for(ht||(ht=Array(Eo));++lt<Eo;)ht[lt]=ve[lt];return ht}(Q):Be?(le=!1,Z=function(ve,ht){if(ht)return ve.slice();var lt=ve.length,Eo=Vn?Vn(lt):new ve.constructor(lt);return ve.copy(Eo),Eo}(b,!0)):on?(le=!1,Z=fu(b,!0)):Z=[]:function(ve){if(!ot(ve)||A(ve)!="[object Object]")return!1;var ht=Y(ve);if(ht===null)return!0;var lt=Ht.call(ht,"constructor")&&ht.constructor;return typeof lt=="function"&&lt instanceof lt&&wr.call(lt)==Ei}(b)||vr(b)?(Z=Q,vr(Q)?Z=ze(Q):m(Q)&&!C(Q)||(Z=function(ve){return typeof ve.constructor!="function"||ye(ve)?{}:du(Y(ve))}(b))):le=!1}le&&(R.set(b,Z),L(Z,b,w,M,R),R.delete(b)),Pt(f,d,Z)}},Fe=function f(s,d,w,L,M){s!==d&&gn(d,function(R,W){if(M||(M=new Ne),m(R))Ni(s,d,W,w,f,L,M);else{var Q=L?L(it(s,W),R,W+"",s,d,M):void 0;Q===void 0&&(Q=R),Pt(s,W,Q)}},kr)},co=function(f){return f},Pe=function(f,s,d){switch(d.length){case 0:return f.call(s);case 1:return f.call(s,d[0]);case 2:return f.call(s,d[0],d[1]);case 3:return f.call(s,d[0],d[1],d[2])}return f.apply(s,d)};var vn=Math.max;const fo=de?function(f,s){return de(f,"toString",{configurable:!0,enumerable:!1,value:(d=s,function(){return d}),writable:!0});var d}:co;var Pi=Date.now;const po=function(f){var s=0,d=0;return function(){var w=Pi(),L=16-(w-d);if(d=w,L>0){if(++s>=800)return arguments[0]}else s=0;return f.apply(void 0,arguments)}}(fo),Li=function(f,s){return po(function(d,w,L){return w=vn(w===void 0?d.length-1:w,0),function(){for(var M=arguments,R=-1,W=vn(M.length-w,0),Q=Array(W);++R<W;)Q[R]=M[w+R];R=-1;for(var b=Array(w+1);++R<w;)b[R]=M[R];return b[w]=L(Q),Pe(d,this,b)}}(f,s,co),f+"")},wn=(Lt=function(f,s,d){Fe(f,s,d)},Li(function(f,s){var d=-1,w=s.length,L=w>1?s[w-1]:void 0,M=w>2?s[2]:void 0;for(L=Lt.length>3&&typeof L=="function"?(w--,L):void 0,M&&function(W,Q,b){if(!m(b))return!1;var G=typeof Q;return!!(G=="number"?io(b)&&_r(Q,b.length):G=="string"&&Q in b)&&u(b[Q],W)}(s[0],s[1],M)&&(L=w<3?void 0:L,w=1),f=Object(f);++d<w;){var R=s[d];R&&Lt(f,R,d)}return f}));var Lt,Sn=function(){return Sn=Object.assign||function(f){for(var s,d=1,w=arguments.length;d<w;d++)for(var L in s=arguments[d])Object.prototype.hasOwnProperty.call(s,L)&&(f[L]=s[L]);return f},Sn.apply(this,arguments)};function ho(f){return f.toLowerCase()}var _n=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Cr=/[^A-Z0-9]+/gi;function Gn(f,s,d){return s instanceof RegExp?f.replace(s,d):s.reduce(function(w,L){return w.replace(L,d)},f)}const mo=navigator.platform.toLowerCase()==="win32"?l.win32:l.posix,kn=function(f,s){return s===void 0&&(s={}),function(d,w){return w===void 0&&(w={}),function(L,M){M===void 0&&(M={});for(var R=M.splitRegexp,W=R===void 0?_n:R,Q=M.stripRegexp,b=Q===void 0?Cr:Q,G=M.transform,Z=G===void 0?ho:G,le=M.delimiter,he=le===void 0?" ":le,Be=Gn(Gn(L,W,"$1\0$2"),b,"\0"),on=0,ve=Be.length;Be.charAt(on)==="\0";)on++;for(;Be.charAt(ve-1)==="\0";)ve--;return Be.slice(on,ve).split("\0").map(Z).join(he)}(d,Sn({delimiter:"."},w))}(f,Sn({delimiter:"_"},s))},Yn=wn;function Bt(f,s){let d,w,L=!1;const M=W=>Q=>{f&&clearTimeout(f),W(Q),L=!0},R=new Promise((W,Q)=>{d=M(W),w=M(Q),f&&(f=setTimeout(()=>w(new Error(`[deferred timeout] ${s}`)),f))});return{created:Date.now(),setTag:W=>s=W,resolve:d,reject:w,promise:R,get settled(){return L}}}const Cn=new Map;window.__injectedUIEffects=Cn;var Ai=o(227),go=o.n(Ai);const Wt="application/x-postmate-v1+json";let yo=0;const ji={handshake:1,"handshake-reply":1,call:1,emit:1,reply:1,request:1},Xn=(f,s)=>!(typeof s=="string"&&f.origin!==s||!f.data||typeof f.data=="object"&&!("postmate"in f.data)||f.data.type!==Wt||!ji[f.data.postmate]);class vo{parent;frame;child;events={};childOrigin;listener;constructor(s){this.parent=s.parent,this.frame=s.frame,this.child=s.child,this.childOrigin=s.childOrigin,this.listener=d=>{if(!Xn(d,this.childOrigin))return!1;const{data:w,name:L}=((d||{}).data||{}).value||{};d.data.postmate==="emit"&&L in this.events&&this.events[L].forEach(M=>{M.call(this,w)})},this.parent.addEventListener("message",this.listener,!1)}get(s){return new Promise(d=>{const w=++yo,L=M=>{M.data.uid===w&&M.data.postmate==="reply"&&(this.parent.removeEventListener("message",L,!1),d(M.data.value))};this.parent.addEventListener("message",L,!1),this.child.postMessage({postmate:"request",type:Wt,property:s,uid:w},this.childOrigin)})}call(s,d){this.child.postMessage({postmate:"call",type:Wt,property:s,data:d},this.childOrigin)}on(s,d){this.events[s]||(this.events[s]=[]),this.events[s].push(d)}destroy(){window.removeEventListener("message",this.listener,!1),this.frame.parentNode.removeChild(this.frame)}}class Vt{model;parent;parentOrigin;child;constructor(s){this.model=s.model,this.parent=s.parent,this.parentOrigin=s.parentOrigin,this.child=s.child,this.child.addEventListener("message",d=>{if(!Xn(d,this.parentOrigin))return;const{property:w,uid:L,data:M}=d.data;d.data.postmate!=="call"?((R,W)=>{const Q=typeof R[W]=="function"?R[W]():R[W];return Promise.resolve(Q)})(this.model,w).then(R=>{d.source.postMessage({property:w,postmate:"reply",type:Wt,uid:L,value:R},d.origin)}):w in this.model&&typeof this.model[w]=="function"&&this.model[w](M)})}emit(s,d){this.parent.postMessage({postmate:"emit",type:Wt,value:{name:s,data:d}},this.parentOrigin)}}class Er{static debug=!1;container;parent;frame;child;childOrigin;url;model;static Model;constructor(s){this.container=s.container,this.url=s.url,this.parent=window,this.frame=document.createElement("iframe"),s.id&&(this.frame.id=s.id),s.name&&(this.frame.name=s.name),this.frame.classList.add.apply(this.frame.classList,s.classListArray||[]),this.container.appendChild(this.frame),this.child=this.frame.contentWindow,this.model=s.model||{}}sendHandshake(s){const d=(M=>{const R=document.createElement("a");R.href=M;const W=R.protocol.length>4?R.protocol:window.location.protocol,Q=R.host.length?R.port==="80"||R.port==="443"?R.hostname:R.host:window.location.host;return R.origin||`${W}//${Q}`})(s=s||this.url);let w,L=0;return new Promise((M,R)=>{const W=b=>!!Xn(b,d)&&(b.data.postmate==="handshake-reply"?(clearInterval(w),this.parent.removeEventListener("message",W,!1),this.childOrigin=b.origin,M(new vo(this))):R("Failed handshake"));this.parent.addEventListener("message",W,!1);const Q=()=>{L++,this.child.postMessage({postmate:"handshake",type:Wt,model:this.model},d),L===5&&clearInterval(w)};this.frame.addEventListener("load",()=>{Q(),w=setInterval(Q,500)}),this.frame.src=s})}destroy(){this.frame.parentNode.removeChild(this.frame)}}class Ii{child;model;parent;parentOrigin;constructor(s){this.child=window,this.model=s,this.parent=this.child.parent}sendHandshakeReply(){return new Promise((s,d)=>{const w=L=>{if(L.data.postmate){if(L.data.postmate==="handshake"){this.child.removeEventListener("message",w,!1),L.source.postMessage({postmate:"handshake-reply",type:Wt},L.origin),this.parentOrigin=L.origin;const M=L.data.model;return M&&Object.keys(M).forEach(R=>{this.model[R]=M[R]}),s(new Vt(this))}return d("Handshake Reply Failed")}};this.child.addEventListener("message",w,!1)})}}var zi=o(729),wo=o.n(zi);const{importHTML:En,createSandboxContainer:yu}=window.QSandbox||{};function Mi(f,s){return f.startsWith("http")?fetch(f,s):(f=f.replace("file://",""),new Promise(async(d,w)=>{try{const L=await window.apis.doAction(["readFile",f]);d({text:()=>L})}catch(L){console.error(L),w(L)}}))}class So extends wo(){_pluginLocal;_frame;_root;_loaded=!1;_unmountFns=[];constructor(s){super(),this._pluginLocal=s,s._dispose(()=>{this._unmount()})}async load(){const{name:s,entry:d}=this._pluginLocal.options;if(this.loaded||!d)return;const{template:w,execScripts:L}=await En(d,{fetch:Mi});this._mount(w,document.body);const M=yu(s,{elementGetter:()=>this._root?.firstChild}).instance.proxy;M.__shadow_mode__=!0,M.LSPluginLocal=this._pluginLocal,M.LSPluginShadow=this,M.LSPluginUser=M.logseq=new ue(this._pluginLocal.toJSON(),this._pluginLocal.caller);const R=await L(M,!0);this._unmountFns.push(R.unmount),this._loaded=!0}_mount(s,d){const w=this._frame=document.createElement("div");w.classList.add("lsp-shadow-sandbox"),w.id=this._pluginLocal.id,this._root=w.attachShadow({mode:"open"}),this._root.innerHTML=`<div>${s}</div>`,d.appendChild(w),this.emit("mounted")}_unmount(){for(const s of this._unmountFns)s&&s.call(null)}destroy(){this.frame?.parentNode?.removeChild(this.frame)}get loaded(){return this._loaded}get document(){return this._root?.firstChild}get frame(){return this._frame}}const At=go()("LSPlugin:caller"),Zn="#await#response#",Ri="#lspmsg#error#",rn=f=>`#lspmsg#${f}`;class _o extends wo(){_pluginLocal;_connected=!1;_parent;_child;_shadow;_status;_userModel={};_call;_callUserModel;_debugTag="";constructor(s){super(),this._pluginLocal=s,s&&(this._debugTag=s.debugTag)}async connectToChild(){if(this._connected)return;const{shadow:s}=this._pluginLocal;s?await this._setupShadowSandbox():await this._setupIframeSandbox()}async connectToParent(s={}){if(this._connected)return;const d=this,w=this._pluginLocal!=null;let L=0;const M=new Map,R=Bt(6e4),W=this._extendUserModel({"#lspmsg#ready#":async b=>{W[rn(b?.pid)]=({type:G,payload:Z})=>{At(`[host (_call) -> *user] ${this._debugTag}`,G,Z),d.emit(G,Z)},await R.resolve()},"#lspmsg#beforeunload#":async b=>{const G=Bt(1e4);d.emit("beforeunload",Object.assign({actor:G},b)),await G.promise},"#lspmsg#settings#":async({type:b,payload:G})=>{d.emit("settings:changed",G)},"#lspmsg#":async({ns:b,type:G,payload:Z})=>{At(`[host (async) -> *user] ${this._debugTag} ns=${b} type=${G}`,Z),b&&b.startsWith("hook")?d.emit(`${b}:${G}`,Z):d.emit(G,Z)},"#lspmsg#reply#":({_sync:b,result:G})=>{if(At(`[sync host -> *user] #${b}`,G),M.has(b)){const Z=M.get(b);Z&&(G?.hasOwnProperty(Ri)?Z.reject(G[Ri]):Z.resolve(G),M.delete(b))}},...s});if(w)return await R.promise,JSON.parse(JSON.stringify(this._pluginLocal?.toJSON()));const Q=new Ii(W).sendHandshakeReply();return this._status="pending",await Q.then(b=>{this._child=b,this._connected=!0,this._call=async(G,Z={},le)=>{if(le){const he=++L;M.set(he,le),Z._sync=he,le.setTag(`async call #${he}`),At(`async call #${he}`)}return b.emit(rn(W.baseInfo.id),{type:G,payload:Z}),le?.promise},this._callUserModel=async(G,Z)=>{try{W[G](Z)}catch{At(`[model method] #${G} not existed`)}},setInterval(()=>{if(M.size>100)for(const[G,Z]of M)Z.settled&&M.delete(G)},18e5)}).finally(()=>{this._status=void 0}),await R.promise,W.baseInfo}async call(s,d={}){return this._call?.call(this,s,d)}async callAsync(s,d={}){const w=Bt(1e4);return this._call?.call(this,s,d,w)}async callUserModel(s,d={}){return this._callUserModel?.call(this,s,d)}async _setupIframeSandbox(){const s=this._pluginLocal,d=s.id,w=`${d}_lsp_main`,L=new URL(s.options.entry);L.searchParams.set("__v__",s.options.version);const M=document.querySelector(`#${w}`);M&&M.parentElement.removeChild(M);const R=document.createElement("div");R.classList.add("lsp-iframe-sandbox-container"),R.id=w,R.dataset.pid=d;try{const G=(await this._pluginLocal._loadLayoutsData())?.$$0;if(G){R.dataset.inited_layout="true";const{width:Z,height:le,left:he,top:Be}=G;Object.assign(R.style,{width:Z+"px",height:le+"px",left:he+"px",top:Be+"px"})}}catch(G){console.error("[Restore Layout Error]",G)}document.body.appendChild(R);const W=new Er({id:d+"_iframe",container:R,url:L.href,classListArray:["lsp-iframe-sandbox"],model:{baseInfo:JSON.parse(JSON.stringify(s.toJSON()))}});let Q,b=W.sendHandshake();return this._status="pending",new Promise((G,Z)=>{Q=setTimeout(()=>{Z(new Error("handshake Timeout")),W.destroy()},4e3),b.then(le=>{this._parent=le,this._connected=!0,this.emit("connected"),le.on(rn(s.id),({type:he,payload:Be})=>{At("[user -> *host] ",he,Be),this._pluginLocal?.emit(he,Be||{})}),this._call=async(...he)=>{await le.call(rn(s.id),{type:he[0],payload:Object.assign(he[1]||{},{$$pid:s.id})})},this._callUserModel=async(he,Be)=>{if(he.startsWith(Zn))return await le.get(he.replace(Zn,""));le.call(he,Be)},G(null)}).catch(le=>{Z(le)}).finally(()=>{clearTimeout(Q)})}).catch(G=>{throw At("[iframe sandbox] error",G),G}).finally(()=>{this._status=void 0})}async _setupShadowSandbox(){const s=this._pluginLocal,d=this._shadow=new So(s);try{this._status="pending",await d.load(),this._connected=!0,this.emit("connected"),this._call=async(w,L={},M)=>(M&&(L.actor=M),this._pluginLocal?.emit(w,Object.assign(L,{$$pid:s.id})),M?.promise),this._callUserModel=async(...w)=>{let L=w[0];L?.startsWith(Zn)&&(L=L.replace(Zn,""));const M=w[1]||{},R=this._userModel[L];typeof R=="function"&&await R.call(null,M)}}catch(w){throw At("[shadow sandbox] error",w),w}finally{this._status=void 0}}_extendUserModel(s){return Object.assign(this._userModel,s)}_getSandboxIframeContainer(){return this._parent?.frame.parentNode}_getSandboxShadowContainer(){return this._shadow?.frame.parentNode}_getSandboxIframeRoot(){return this._parent?.frame}_getSandboxShadowRoot(){return this._shadow?.frame}set debugTag(s){this._debugTag=s}async destroy(){let s=null;this._parent&&(s=this._getSandboxIframeContainer(),await this._parent.destroy()),this._shadow&&(s=this._getSandboxShadowContainer(),this._shadow.destroy()),s?.parentNode.removeChild(s)}}class Fi{ctx;opts;constructor(s,d){this.ctx=s,this.opts=d}get ctxId(){return this.ctx.baseInfo.id}setItem(s,d){return this.ctx.caller.callAsync("api:call",{method:"write-plugin-storage-file",args:[this.ctxId,s,d,this.opts?.assets]})}getItem(s){return this.ctx.caller.callAsync("api:call",{method:"read-plugin-storage-file",args:[this.ctxId,s,this.opts?.assets]})}removeItem(s){return this.ctx.caller.call("api:call",{method:"unlink-plugin-storage-file",args:[this.ctxId,s,this.opts?.assets]})}allKeys(){return this.ctx.caller.callAsync("api:call",{method:"list-plugin-storage-files",args:[this.ctxId,this.opts?.assets]})}clear(){return this.ctx.caller.call("api:call",{method:"clear-plugin-storage-files",args:[this.ctxId,this.opts?.assets]})}hasItem(s){return this.ctx.caller.callAsync("api:call",{method:"exist-plugin-storage-file",args:[this.ctxId,s,this.opts?.assets]})}}class jt{ctx;constructor(s){this.ctx=s}get React(){return this.ensureHostScope().React}get ReactDOM(){return this.ensureHostScope().ReactDOM}get pluginLocal(){return this.ensureHostScope().LSPluginCore.ensurePlugin(this.ctx.baseInfo.id)}invokeExperMethod(s,...d){const w=this.ensureHostScope();return s=kn(s)?.toLowerCase(),w.logseq.api["exper_"+s]?.apply(w,d)}async loadScripts(...s){(s=s.map(d=>d?.startsWith("http")?d:this.ctx.resolveResourceFullUrl(d))).unshift(this.ctx.baseInfo.id),await this.invokeExperMethod("loadScripts",...s)}registerFencedCodeRenderer(s,d){return this.ensureHostScope().logseq.api.exper_register_fenced_code_renderer(this.ctx.baseInfo.id,s,d)}registerExtensionsEnhancer(s,d){const w=this.ensureHostScope();return s==="katex"&&w.katex&&d(w.katex).catch(console.error),w.logseq.api.exper_register_extensions_enhancer(this.ctx.baseInfo.id,s,d)}ensureHostScope(){if(window===top)throw new Error("Can not access host scope!");return top}}const ko=f=>`task_callback_${f}`;class Di{_client;_requestId;_requestOptions;_promise;_aborted=!1;constructor(s,d,w={}){this._client=s,this._requestId=d,this._requestOptions=w,this._promise=new Promise((W,Q)=>{if(!this._requestId)return Q(null);this._client.once(ko(this._requestId),b=>{b&&b instanceof Error?Q(b):W(b)})});const{success:L,fail:M,final:R}=this._requestOptions;this._promise.then(W=>{L?.(W)}).catch(W=>{M?.(W)}).finally(()=>{R?.()})}abort(){this._requestOptions.abortable&&!this._aborted&&(this._client.ctx._execCallableAPI("http_request_abort",this._requestId),this._aborted=!0)}get promise(){return this._promise}get client(){return this._client}get requestId(){return this._requestId}}class xr extends zi.EventEmitter{_ctx;constructor(s){super(),this._ctx=s,this.ctx.caller.on("#lsp#request#callback",d=>{const w=d?.requestId;w&&this.emit(ko(w),d?.payload)})}static createRequestTask(s,d,w){return new Di(s,d,w)}async _request(s){const d=this.ctx.baseInfo.id,{success:w,fail:L,final:M,...R}=s,W=this.ctx.Experiments.invokeExperMethod("request",d,R),Q=xr.createRequestTask(this.ctx.Request,W,s);return R.abortable?Q:Q.promise}get ctx(){return this._ctx}}const vu=Symbol.for("proxy-continue"),Jn=go()("LSPlugin:user");function Ke(f,s,d){if(typeof d!="function")return!1;const{key:w,label:L,desc:M,palette:R,keybinding:W,extras:Q}=s,b=`SimpleCommandHook${w}${++Co}`;this.Editor["on"+b](d),this.caller?.call("api:call",{method:"register-plugin-simple-command",args:[this.baseInfo.id,[{key:w,label:L,type:f,desc:M,keybinding:W,extras:Q},["editor/hook",b]],R]})}let er=null;const $i={async getInfo(f){return er||(er=await this._execCallableAPIAsync("get-app-info")),typeof f=="string"?er[f]:er},registerCommand:Ke,registerCommandPalette(f,s){const{key:d,label:w,keybinding:L}=f;return Ke.call(this,"$palette$",{key:d,label:w,palette:!0,keybinding:L},s)},registerCommandShortcut(f,s){const{binding:d}=f,w="$shortcut$",L=w+kn(d);return Ke.call(this,w,{key:L,palette:!1,keybinding:f},s)},registerUIItem(f,s){const d=this.baseInfo.id;this.caller?.call("api:call",{method:"register-plugin-ui-item",args:[d,f,s]})},registerPageMenuItem(f,s){if(typeof s!="function")return!1;const d=f+"_"+this.baseInfo.id,w=f;Ke.call(this,"page-menu-item",{key:d,label:w},s)},setFullScreen(f){const s=(...d)=>this._callWin("setFullScreen",...d);f==="toggle"?this._callWin("isFullScreen").then(d=>{d?s():s(!0)}):f?s(!0):s()}};let Co=0;const Ui={newBlockUUID(){return this._execCallableAPIAsync("new_block_uuid")},registerSlashCommand(f,s){Jn("Register slash command #",this.baseInfo.id,f,s),typeof s=="function"&&(s=[["editor/clear-current-slash",!1],["editor/restore-saved-cursor"],["editor/hook",s]]),s=s.map(d=>{const[w,...L]=d;if(w==="editor/hook"){let M=L[0],R=()=>{this.caller?.callUserModel(M)};typeof M=="function"&&(R=M);const W=`SlashCommandHook${w}${++Co}`;d[1]=W,this.Editor["on"+W](R)}return d}),this.caller?.call("api:call",{method:"register-plugin-slash-command",args:[this.baseInfo.id,[f,s]]})},registerBlockContextMenuItem(f,s){if(typeof s!="function")return!1;const d=f+"_"+this.baseInfo.id;Ke.call(this,"block-context-menu-item",{key:d,label:f},s)},registerHighlightContextMenuItem(f,s,d){if(typeof s!="function")return!1;const w=f+"_"+this.baseInfo.id;Ke.call(this,"highlight-context-menu-item",{key:w,label:f,extras:d},s)},scrollToBlockInPage(f,s,d){const w="block-content-"+s;d?.replaceState?this.App.replaceState("page",{name:f},{anchor:w}):this.App.pushState("page",{name:f},{anchor:w})}},wu={onBlockChanged(f,s){const d=this.baseInfo.id,w=`hook:db:${kn(`block:${f}`)}`,L=({block:M,txData:R,txMeta:W})=>{M.uuid===f&&s(M,R,W)};return this.caller.on(w,L),this.App._installPluginHook(d,w),()=>{this.caller.off(w,L),this.App._uninstallPluginHook(d,w)}}},y={},B={},$={makeSandboxStorage(){return new Fi(this,{assets:!0})}};class ue extends wo(){_baseInfo;_caller;_version="0.0.10";_debugTag="";_settingsSchema;_connected=!1;_ui=new Map;_mFileStorage;_mRequest;_mExperiments;_beforeunloadCallback;constructor(s,d){super(),this._baseInfo=s,this._caller=d,d.on("sys:ui:visible",w=>{w?.toggle&&this.toggleMainUI()}),d.on("settings:changed",w=>{const L=Object.assign({},this.settings),M=Object.assign(this._baseInfo.settings,w);this.emit("settings:changed",{...M},L)}),d.on("beforeunload",async w=>{const{actor:L,...M}=w,R=this._beforeunloadCallback;try{R&&await R(M),L?.resolve(null)}catch(W){console.debug(`${d.debugTag} [beforeunload] `,W),L?.reject(W)}})}async ready(s,d){if(!this._connected)try{typeof s=="function"&&(d=s,s={});let w=await this._caller.connectToParent(s);this._connected=!0,w=Yn(this._baseInfo,w),this._settingsSchema&&(w.settings=function(L,M){const R=(M||[]).reduce((W,Q)=>("default"in Q&&(W[Q.key]=Q.default),W),{});return Object.assign(R,L)}(w.settings,this._settingsSchema),await this.useSettingsSchema(this._settingsSchema)),w?.id&&(this._debugTag=this._caller.debugTag=`#${w.id} [${w.name}]`);try{await this._execCallableAPIAsync("setSDKMetadata",{version:this._version})}catch(L){console.warn(L)}d&&d.call(this,w)}catch(w){console.error(`${this._debugTag} [Ready Error]`,w)}}ensureConnected(){if(!this._connected)throw new Error("not connected")}beforeunload(s){typeof s=="function"&&(this._beforeunloadCallback=s)}provideModel(s){return this.caller._extendUserModel(s),this}provideTheme(s){return this.caller.call("provider:theme",s),this}provideStyle(s){return this.caller.call("provider:style",s),this}provideUI(s){return this.caller.call("provider:ui",s),this}useSettingsSchema(s){return this.connected&&this.caller.call("settings:schema",{schema:s,isSync:!0}),this._settingsSchema=s,this}updateSettings(s){this.caller.call("settings:update",s)}onSettingsChanged(s){const d="settings:changed";return this.on(d,s),()=>this.off(d,s)}showSettingsUI(){this.caller.call("settings:visible:changed",{visible:!0})}hideSettingsUI(){this.caller.call("settings:visible:changed",{visible:!1})}setMainUIAttrs(s){this.caller.call("main-ui:attrs",s)}setMainUIInlineStyle(s){this.caller.call("main-ui:style",s)}hideMainUI(s){const d={key:0,visible:!1,cursor:s?.restoreEditingCursor};this.caller.call("main-ui:visible",d),this.emit("ui:visible:changed",d),this._ui.set(d.key,d)}showMainUI(s){const d={key:0,visible:!0,autoFocus:s?.autoFocus};this.caller.call("main-ui:visible",d),this.emit("ui:visible:changed",d),this._ui.set(d.key,d)}toggleMainUI(){const s=this._ui.get(0);s&&s.visible?this.hideMainUI():this.showMainUI()}get version(){return this._version}get isMainUIVisible(){const s=this._ui.get(0);return Boolean(s&&s.visible)}get connected(){return this._connected}get baseInfo(){return this._baseInfo}get settings(){return this.baseInfo?.settings}get caller(){return this._caller}resolveResourceFullUrl(s){if(this.ensureConnected(),s)return s=s.replace(/^[.\\/]+/,""),function(d,...w){try{const L=new URL(d);if(!L.origin)throw new Error(null);const M=mo.join(d.substr(L.origin.length),...w);return L.origin+M}catch{return mo.join(d,...w)}}(this._baseInfo.lsr,s)}_makeUserProxy(s,d){const w=this,L=this.caller;return new Proxy(s,{get(M,R,W){const Q=M[R];return function(...b){if(Q){const Z=Q.apply(w,b.concat(d));if(Z!==vu)return Z}if(d){const Z=R.toString().match(/^(once|off|on)/i);if(Z!=null){const le=Z[0].toLowerCase(),he=Z.input.slice(le.length),Be=le==="off",on=w.baseInfo.id,ve=`hook:${d}:${kn(he)}`,ht=b[0];L[le](ve,ht);const lt=()=>{L.off(ve,ht),L.listenerCount(ve)||w.App._uninstallPluginHook(on,ve)};return Be?void lt():(w.App._installPluginHook(on,ve),lt)}}let G=R;return["git","ui","assets"].includes(d)&&(G=d+"_"+G),L.callAsync("api:call",{tag:d,method:G,args:b})}}})}_execCallableAPIAsync(s,...d){return this._caller.callAsync("api:call",{method:s,args:d})}_execCallableAPI(s,...d){this._caller.call("api:call",{method:s,args:d})}_callWin(...s){return this._execCallableAPIAsync("_callMainWin",...s)}get App(){return this._makeUserProxy($i,"app")}get Editor(){return this._makeUserProxy(Ui,"editor")}get DB(){return this._makeUserProxy(wu,"db")}get Git(){return this._makeUserProxy(y,"git")}get UI(){return this._makeUserProxy(B,"ui")}get Assets(){return this._makeUserProxy($,"assets")}get FileStorage(){let s=this._mFileStorage;return s||(s=this._mFileStorage=new Fi(this)),s}get Request(){let s=this._mRequest;return s||(s=this._mRequest=new xr(this)),s}get Experiments(){let s=this._mExperiments;return s||(s=this._mExperiments=new jt(this)),s}}function ke(f,s){return new ue(f,s)}if(window.__LSP__HOST__==null){const f=new _o(null);window.logseq=ke({},f)}})(),i})())})(Ya,Ya.exports);var ct={exports:{}},ne={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var di=Symbol.for("react.element"),Hp=Symbol.for("react.portal"),Bp=Symbol.for("react.fragment"),Wp=Symbol.for("react.strict_mode"),Vp=Symbol.for("react.profiler"),qp=Symbol.for("react.provider"),Qp=Symbol.for("react.context"),Kp=Symbol.for("react.forward_ref"),Gp=Symbol.for("react.suspense"),Yp=Symbol.for("react.memo"),Xp=Symbol.for("react.lazy"),Xa=Symbol.iterator;function Zp(e){return e===null||typeof e!="object"?null:(e=Xa&&e[Xa]||e["@@iterator"],typeof e=="function"?e:null)}var Cf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ef=Object.assign,xf={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=xf,this.updater=n||Cf}Jr.prototype.isReactComponent={};Jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tf(){}Tf.prototype=Jr.prototype;function Ks(e,t,n){this.props=e,this.context=t,this.refs=xf,this.updater=n||Cf}var Gs=Ks.prototype=new Tf;Gs.constructor=Ks;Ef(Gs,Jr.prototype);Gs.isPureReactComponent=!0;var Za=Array.isArray,Of=Object.prototype.hasOwnProperty,Ys={current:null},Nf={key:!0,ref:!0,__self:!0,__source:!0};function Pf(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Of.call(t,r)&&!Nf.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var a=Array(u),p=0;p<u;p++)a[p]=arguments[p+2];o.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:di,type:e,key:i,ref:l,props:o,_owner:Ys.current}}function Jp(e,t){return{$$typeof:di,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xs(e){return typeof e=="object"&&e!==null&&e.$$typeof===di}function eh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ja=/\/+/g;function Su(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eh(""+e.key):t.toString(36)}function sl(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case di:case Hp:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Su(l,0):r,Za(o)?(n="",e!=null&&(n=e.replace(Ja,"$&/")+"/"),sl(o,t,n,"",function(p){return p})):o!=null&&(Xs(o)&&(o=Jp(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Ja,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Za(e))for(var u=0;u<e.length;u++){i=e[u];var a=r+Su(i,u);l+=sl(i,t,n,a,o)}else if(a=Zp(e),typeof a=="function")for(e=a.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+Su(i,u++),l+=sl(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Hi(e,t,n){if(e==null)return e;var r=[],o=0;return sl(e,r,"","",function(i){return t.call(n,i,o++)}),r}function th(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tt={current:null},al={transition:null},nh={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:al,ReactCurrentOwner:Ys};ne.Children={map:Hi,forEach:function(e,t,n){Hi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Hi(e,function(){t++}),t},toArray:function(e){return Hi(e,function(t){return t})||[]},only:function(e){if(!Xs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=Jr;ne.Fragment=Bp;ne.Profiler=Vp;ne.PureComponent=Ks;ne.StrictMode=Wp;ne.Suspense=Gp;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nh;ne.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ef({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Ys.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in t)Of.call(t,a)&&!Nf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&u!==void 0?u[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){u=Array(a);for(var p=0;p<a;p++)u[p]=arguments[p+2];r.children=u}return{$$typeof:di,type:e.type,key:o,ref:i,props:r,_owner:l}};ne.createContext=function(e){return e={$$typeof:Qp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:qp,_context:e},e.Consumer=e};ne.createElement=Pf;ne.createFactory=function(e){var t=Pf.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:Kp,render:e}};ne.isValidElement=Xs;ne.lazy=function(e){return{$$typeof:Xp,_payload:{_status:-1,_result:e},_init:th}};ne.memo=function(e,t){return{$$typeof:Yp,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=al.transition;al.transition={};try{e()}finally{al.transition=t}};ne.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ne.useCallback=function(e,t){return tt.current.useCallback(e,t)};ne.useContext=function(e){return tt.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};ne.useEffect=function(e,t){return tt.current.useEffect(e,t)};ne.useId=function(){return tt.current.useId()};ne.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return tt.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};ne.useRef=function(e){return tt.current.useRef(e)};ne.useState=function(e){return tt.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return tt.current.useTransition()};ne.version="18.2.0";(function(e){e.exports=ne})(ct);const te=bp(ct.exports);var Lf={exports:{}},_t={},Af={exports:{}},jf={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(H,N){var P=H.length;H.push(N);e:for(;0<P;){var D=P-1>>>1,X=H[D];if(0<o(X,N))H[D]=N,H[P]=X,P=D;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var N=H[0],P=H.pop();if(P!==N){H[0]=P;e:for(var D=0,X=H.length,Oe=X>>>1;D<Oe;){var ce=2*(D+1)-1,ee=H[ce],se=ce+1,_e=H[se];if(0>o(ee,P))se<X&&0>o(_e,ee)?(H[D]=_e,H[se]=P,D=se):(H[D]=ee,H[ce]=P,D=ce);else if(se<X&&0>o(_e,P))H[D]=_e,H[se]=P,D=se;else break e}}return N}function o(H,N){var P=H.sortIndex-N.sortIndex;return P!==0?P:H.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var a=[],p=[],v=1,_=null,E=3,x=!1,k=!1,S=!1,I=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(H){for(var N=n(p);N!==null;){if(N.callback===null)r(p);else if(N.startTime<=H)r(p),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(p)}}function O(H){if(S=!1,h(H),!k)if(n(a)!==null)k=!0,je(T);else{var N=n(p);N!==null&&pe(O,N.startTime-H)}}function T(H,N){k=!1,S&&(S=!1,g(C),C=-1),x=!0;var P=E;try{for(h(N),_=n(a);_!==null&&(!(_.expirationTime>N)||H&&!K());){var D=_.callback;if(typeof D=="function"){_.callback=null,E=_.priorityLevel;var X=D(_.expirationTime<=N);N=e.unstable_now(),typeof X=="function"?_.callback=X:_===n(a)&&r(a),h(N)}else r(a);_=n(a)}if(_!==null)var Oe=!0;else{var ce=n(p);ce!==null&&pe(O,ce.startTime-N),Oe=!1}return Oe}finally{_=null,E=P,x=!1}}var A=!1,m=null,C=-1,j=5,z=-1;function K(){return!(e.unstable_now()-z<j)}function J(){if(m!==null){var H=e.unstable_now();z=H;var N=!0;try{N=m(!0,H)}finally{N?ie():(A=!1,m=null)}}else A=!1}var ie;if(typeof c=="function")ie=function(){c(J)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,Qe=me.port2;me.port1.onmessage=J,ie=function(){Qe.postMessage(null)}}else ie=function(){I(J,0)};function je(H){m=H,A||(A=!0,ie())}function pe(H,N){C=I(function(){H(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_continueExecution=function(){k||x||(k=!0,je(T))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(H){switch(E){case 1:case 2:case 3:var N=3;break;default:N=E}var P=E;E=N;try{return H()}finally{E=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,N){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var P=E;E=H;try{return N()}finally{E=P}},e.unstable_scheduleCallback=function(H,N,P){var D=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?D+P:D):P=D,H){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=P+X,H={id:v++,callback:N,priorityLevel:H,startTime:P,expirationTime:X,sortIndex:-1},P>D?(H.sortIndex=P,t(p,H),n(a)===null&&H===n(p)&&(S?(g(C),C=-1):S=!0,pe(O,P-D))):(H.sortIndex=X,t(a,H),k||x||(k=!0,je(T))),H},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(H){var N=E;return function(){var P=E;E=N;try{return H.apply(this,arguments)}finally{E=P}}}})(jf);(function(e){e.exports=jf})(Af);/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var If=ct.exports,vt=Af.exports;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zf=new Set,Qo={};function mr(e,t){Vr(e,t),Vr(e+"Capture",t)}function Vr(e,t){for(Qo[e]=t,e=0;e<t.length;e++)zf.add(t[e])}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=Object.prototype.hasOwnProperty,rh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ec={},tc={};function oh(e){return Yu.call(tc,e)?!0:Yu.call(ec,e)?!1:rh.test(e)?tc[e]=!0:(ec[e]=!0,!1)}function ih(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lh(e,t,n,r){if(t===null||typeof t>"u"||ih(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zs=/[\-:]([a-z])/g;function Js(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zs,Js);qe[t]=new nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zs,Js);qe[t]=new nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zs,Js);qe[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ea(e,t,n,r){var o=qe.hasOwnProperty(t)?qe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(lh(t,n,o,r)&&(n=null),r||o===null?oh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var mn=If.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bi=Symbol.for("react.element"),Or=Symbol.for("react.portal"),Nr=Symbol.for("react.fragment"),ta=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Mf=Symbol.for("react.provider"),Rf=Symbol.for("react.context"),na=Symbol.for("react.forward_ref"),Zu=Symbol.for("react.suspense"),Ju=Symbol.for("react.suspense_list"),ra=Symbol.for("react.memo"),Tn=Symbol.for("react.lazy"),Ff=Symbol.for("react.offscreen"),nc=Symbol.iterator;function xo(e){return e===null||typeof e!="object"?null:(e=nc&&e[nc]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,_u;function Io(e){if(_u===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_u=t&&t[1]||""}return`
`+_u+e}var ku=!1;function Cu(e,t){if(!e||ku)return"";ku=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var o=p.stack.split(`
`),i=r.stack.split(`
`),l=o.length-1,u=i.length-1;1<=l&&0<=u&&o[l]!==i[u];)u--;for(;1<=l&&0<=u;l--,u--)if(o[l]!==i[u]){if(l!==1||u!==1)do if(l--,u--,0>u||o[l]!==i[u]){var a=`
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=u);break}}}finally{ku=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Io(e):""}function uh(e){switch(e.tag){case 5:return Io(e.type);case 16:return Io("Lazy");case 13:return Io("Suspense");case 19:return Io("SuspenseList");case 0:case 2:case 15:return e=Cu(e.type,!1),e;case 11:return e=Cu(e.type.render,!1),e;case 1:return e=Cu(e.type,!0),e;default:return""}}function es(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nr:return"Fragment";case Or:return"Portal";case Xu:return"Profiler";case ta:return"StrictMode";case Zu:return"Suspense";case Ju:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rf:return(e.displayName||"Context")+".Consumer";case Mf:return(e._context.displayName||"Context")+".Provider";case na:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ra:return t=e.displayName||null,t!==null?t:es(e.type)||"Memo";case Tn:t=e._payload,e=e._init;try{return es(e(t))}catch{}}return null}function sh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return es(t);case 8:return t===ta?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ah(e){var t=Df(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wi(e){e._valueTracker||(e._valueTracker=ah(e))}function $f(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Df(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ts(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Un(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Uf(e,t){t=t.checked,t!=null&&ea(e,"checked",t,!1)}function ns(e,t){Uf(e,t);var n=Un(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rs(e,t.type,n):t.hasOwnProperty("defaultValue")&&rs(e,t.type,Un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rs(e,t,n){(t!=="number"||Sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function $r(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Un(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function os(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ic(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(zo(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Un(n)}}function bf(e,t){var n=Un(t.value),r=Un(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function lc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Hf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function is(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Hf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vi,Bf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vi=Vi||document.createElement("div"),Vi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ko(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Do={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ch=["Webkit","ms","Moz","O"];Object.keys(Do).forEach(function(e){ch.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Do[t]=Do[e]})});function Wf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Do.hasOwnProperty(e)&&Do[e]?(""+t).trim():t+"px"}function Vf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var fh=Te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ls(e,t){if(t){if(fh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function us(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ss=null;function oa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var as=null,Ur=null,br=null;function uc(e){if(e=mi(e)){if(typeof as!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Jl(t),as(e.stateNode,e.type,t))}}function qf(e){Ur?br?br.push(e):br=[e]:Ur=e}function Qf(){if(Ur){var e=Ur,t=br;if(br=Ur=null,uc(e),t)for(e=0;e<t.length;e++)uc(t[e])}}function Kf(e,t){return e(t)}function Gf(){}var Eu=!1;function Yf(e,t,n){if(Eu)return e(t,n);Eu=!0;try{return Kf(e,t,n)}finally{Eu=!1,(Ur!==null||br!==null)&&(Gf(),Qf())}}function Go(e,t){var n=e.stateNode;if(n===null)return null;var r=Jl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var cs=!1;if(fn)try{var To={};Object.defineProperty(To,"passive",{get:function(){cs=!0}}),window.addEventListener("test",To,To),window.removeEventListener("test",To,To)}catch{cs=!1}function dh(e,t,n,r,o,i,l,u,a){var p=Array.prototype.slice.call(arguments,3);try{t.apply(n,p)}catch(v){this.onError(v)}}var $o=!1,_l=null,kl=!1,fs=null,ph={onError:function(e){$o=!0,_l=e}};function hh(e,t,n,r,o,i,l,u,a){$o=!1,_l=null,dh.apply(ph,arguments)}function mh(e,t,n,r,o,i,l,u,a){if(hh.apply(this,arguments),$o){if($o){var p=_l;$o=!1,_l=null}else throw Error(F(198));kl||(kl=!0,fs=p)}}function gr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Xf(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function sc(e){if(gr(e)!==e)throw Error(F(188))}function gh(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return sc(o),e;if(i===r)return sc(o),t;i=i.sibling}throw Error(F(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function Zf(e){return e=gh(e),e!==null?Jf(e):null}function Jf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jf(e);if(t!==null)return t;e=e.sibling}return null}var ed=vt.unstable_scheduleCallback,ac=vt.unstable_cancelCallback,yh=vt.unstable_shouldYield,vh=vt.unstable_requestPaint,Ae=vt.unstable_now,wh=vt.unstable_getCurrentPriorityLevel,ia=vt.unstable_ImmediatePriority,td=vt.unstable_UserBlockingPriority,Cl=vt.unstable_NormalPriority,Sh=vt.unstable_LowPriority,nd=vt.unstable_IdlePriority,Gl=null,Gt=null;function _h(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Gl,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:Eh,kh=Math.log,Ch=Math.LN2;function Eh(e){return e>>>=0,e===0?32:31-(kh(e)/Ch|0)|0}var qi=64,Qi=4194304;function Mo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function El(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~o;u!==0?r=Mo(u):(i&=l,i!==0&&(r=Mo(i)))}else l=n&~o,l!==0?r=Mo(l):i!==0&&(r=Mo(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-$t(t),o=1<<n,r|=e[n],t&=~o;return r}function xh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Th(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-$t(i),u=1<<l,a=o[l];a===-1?((u&n)===0||(u&r)!==0)&&(o[l]=xh(u,t)):a<=t&&(e.expiredLanes|=u),i&=~u}}function ds(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rd(){var e=qi;return qi<<=1,(qi&4194240)===0&&(qi=64),e}function xu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=n}function Oh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-$t(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function la(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var fe=0;function od(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var id,ua,ld,ud,sd,ps=!1,Ki=[],jn=null,In=null,zn=null,Yo=new Map,Xo=new Map,Nn=[],Nh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function cc(e,t){switch(e){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":Yo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xo.delete(t.pointerId)}}function Oo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=mi(t),t!==null&&ua(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ph(e,t,n,r,o){switch(t){case"focusin":return jn=Oo(jn,e,t,n,r,o),!0;case"dragenter":return In=Oo(In,e,t,n,r,o),!0;case"mouseover":return zn=Oo(zn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Yo.set(i,Oo(Yo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Xo.set(i,Oo(Xo.get(i)||null,e,t,n,r,o)),!0}return!1}function ad(e){var t=or(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=Xf(n),t!==null){e.blockedOn=t,sd(e.priority,function(){ld(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ss=r,n.target.dispatchEvent(r),ss=null}else return t=mi(n),t!==null&&ua(t),e.blockedOn=n,!1;t.shift()}return!0}function fc(e,t,n){cl(e)&&n.delete(t)}function Lh(){ps=!1,jn!==null&&cl(jn)&&(jn=null),In!==null&&cl(In)&&(In=null),zn!==null&&cl(zn)&&(zn=null),Yo.forEach(fc),Xo.forEach(fc)}function No(e,t){e.blockedOn===t&&(e.blockedOn=null,ps||(ps=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,Lh)))}function Zo(e){function t(o){return No(o,e)}if(0<Ki.length){No(Ki[0],e);for(var n=1;n<Ki.length;n++){var r=Ki[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jn!==null&&No(jn,e),In!==null&&No(In,e),zn!==null&&No(zn,e),Yo.forEach(t),Xo.forEach(t),n=0;n<Nn.length;n++)r=Nn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Nn.length&&(n=Nn[0],n.blockedOn===null);)ad(n),n.blockedOn===null&&Nn.shift()}var Hr=mn.ReactCurrentBatchConfig,xl=!0;function Ah(e,t,n,r){var o=fe,i=Hr.transition;Hr.transition=null;try{fe=1,sa(e,t,n,r)}finally{fe=o,Hr.transition=i}}function jh(e,t,n,r){var o=fe,i=Hr.transition;Hr.transition=null;try{fe=4,sa(e,t,n,r)}finally{fe=o,Hr.transition=i}}function sa(e,t,n,r){if(xl){var o=hs(e,t,n,r);if(o===null)Mu(e,t,r,Tl,n),cc(e,r);else if(Ph(o,e,t,n,r))r.stopPropagation();else if(cc(e,r),t&4&&-1<Nh.indexOf(e)){for(;o!==null;){var i=mi(o);if(i!==null&&id(i),i=hs(e,t,n,r),i===null&&Mu(e,t,r,Tl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Mu(e,t,r,null,n)}}var Tl=null;function hs(e,t,n,r){if(Tl=null,e=oa(r),e=or(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Tl=e,null}function cd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wh()){case ia:return 1;case td:return 4;case Cl:case Sh:return 16;case nd:return 536870912;default:return 16}default:return 16}}var Ln=null,aa=null,fl=null;function fd(){if(fl)return fl;var e,t=aa,n=t.length,r,o="value"in Ln?Ln.value:Ln.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return fl=o.slice(e,1<r?1-r:void 0)}function dl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gi(){return!0}function dc(){return!1}function kt(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Gi:dc,this.isPropagationStopped=dc,this}return Te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),t}var eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ca=kt(eo),hi=Te({},eo,{view:0,detail:0}),Ih=kt(hi),Tu,Ou,Po,Yl=Te({},hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Po&&(Po&&e.type==="mousemove"?(Tu=e.screenX-Po.screenX,Ou=e.screenY-Po.screenY):Ou=Tu=0,Po=e),Tu)},movementY:function(e){return"movementY"in e?e.movementY:Ou}}),pc=kt(Yl),zh=Te({},Yl,{dataTransfer:0}),Mh=kt(zh),Rh=Te({},hi,{relatedTarget:0}),Nu=kt(Rh),Fh=Te({},eo,{animationName:0,elapsedTime:0,pseudoElement:0}),Dh=kt(Fh),$h=Te({},eo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uh=kt($h),bh=Te({},eo,{data:0}),hc=kt(bh),Hh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Wh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wh[e])?!!t[e]:!1}function fa(){return Vh}var qh=Te({},hi,{key:function(e){if(e.key){var t=Hh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=dl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fa,charCode:function(e){return e.type==="keypress"?dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qh=kt(qh),Kh=Te({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mc=kt(Kh),Gh=Te({},hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fa}),Yh=kt(Gh),Xh=Te({},eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zh=kt(Xh),Jh=Te({},Yl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),em=kt(Jh),tm=[9,13,27,32],da=fn&&"CompositionEvent"in window,Uo=null;fn&&"documentMode"in document&&(Uo=document.documentMode);var nm=fn&&"TextEvent"in window&&!Uo,dd=fn&&(!da||Uo&&8<Uo&&11>=Uo),gc=String.fromCharCode(32),yc=!1;function pd(e,t){switch(e){case"keyup":return tm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pr=!1;function rm(e,t){switch(e){case"compositionend":return hd(t);case"keypress":return t.which!==32?null:(yc=!0,gc);case"textInput":return e=t.data,e===gc&&yc?null:e;default:return null}}function om(e,t){if(Pr)return e==="compositionend"||!da&&pd(e,t)?(e=fd(),fl=aa=Ln=null,Pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dd&&t.locale!=="ko"?null:t.data;default:return null}}var im={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!im[e.type]:t==="textarea"}function md(e,t,n,r){qf(r),t=Ol(t,"onChange"),0<t.length&&(n=new ca("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var bo=null,Jo=null;function lm(e){Td(e,0)}function Xl(e){var t=jr(e);if($f(t))return e}function um(e,t){if(e==="change")return t}var gd=!1;if(fn){var Pu;if(fn){var Lu="oninput"in document;if(!Lu){var wc=document.createElement("div");wc.setAttribute("oninput","return;"),Lu=typeof wc.oninput=="function"}Pu=Lu}else Pu=!1;gd=Pu&&(!document.documentMode||9<document.documentMode)}function Sc(){bo&&(bo.detachEvent("onpropertychange",yd),Jo=bo=null)}function yd(e){if(e.propertyName==="value"&&Xl(Jo)){var t=[];md(t,Jo,e,oa(e)),Yf(lm,t)}}function sm(e,t,n){e==="focusin"?(Sc(),bo=t,Jo=n,bo.attachEvent("onpropertychange",yd)):e==="focusout"&&Sc()}function am(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xl(Jo)}function cm(e,t){if(e==="click")return Xl(t)}function fm(e,t){if(e==="input"||e==="change")return Xl(t)}function dm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:dm;function ei(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Yu.call(t,o)||!bt(e[o],t[o]))return!1}return!0}function _c(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kc(e,t){var n=_c(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_c(n)}}function vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wd(){for(var e=window,t=Sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sl(e.document)}return t}function pa(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 pm(e){var t=wd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vd(n.ownerDocument.documentElement,n)){if(r!==null&&pa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=kc(n,i);var l=kc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hm=fn&&"documentMode"in document&&11>=document.documentMode,Lr=null,ms=null,Ho=null,gs=!1;function Cc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gs||Lr==null||Lr!==Sl(r)||(r=Lr,"selectionStart"in r&&pa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ho&&ei(Ho,r)||(Ho=r,r=Ol(ms,"onSelect"),0<r.length&&(t=new ca("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Lr)))}function Yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ar={animationend:Yi("Animation","AnimationEnd"),animationiteration:Yi("Animation","AnimationIteration"),animationstart:Yi("Animation","AnimationStart"),transitionend:Yi("Transition","TransitionEnd")},Au={},Sd={};fn&&(Sd=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);function Zl(e){if(Au[e])return Au[e];if(!Ar[e])return e;var t=Ar[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Sd)return Au[e]=t[n];return e}var _d=Zl("animationend"),kd=Zl("animationiteration"),Cd=Zl("animationstart"),Ed=Zl("transitionend"),xd=new Map,Ec="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Hn(e,t){xd.set(e,t),mr(t,[e])}for(var ju=0;ju<Ec.length;ju++){var Iu=Ec[ju],mm=Iu.toLowerCase(),gm=Iu[0].toUpperCase()+Iu.slice(1);Hn(mm,"on"+gm)}Hn(_d,"onAnimationEnd");Hn(kd,"onAnimationIteration");Hn(Cd,"onAnimationStart");Hn("dblclick","onDoubleClick");Hn("focusin","onFocus");Hn("focusout","onBlur");Hn(Ed,"onTransitionEnd");Vr("onMouseEnter",["mouseout","mouseover"]);Vr("onMouseLeave",["mouseout","mouseover"]);Vr("onPointerEnter",["pointerout","pointerover"]);Vr("onPointerLeave",["pointerout","pointerover"]);mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));mr("onBeforeInput",["compositionend","keypress","textInput","paste"]);mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ro="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ym=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ro));function xc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,mh(r,t,void 0,e),e.currentTarget=null}function Td(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var u=r[l],a=u.instance,p=u.currentTarget;if(u=u.listener,a!==i&&o.isPropagationStopped())break e;xc(o,u,p),i=a}else for(l=0;l<r.length;l++){if(u=r[l],a=u.instance,p=u.currentTarget,u=u.listener,a!==i&&o.isPropagationStopped())break e;xc(o,u,p),i=a}}}if(kl)throw e=fs,kl=!1,fs=null,e}function we(e,t){var n=t[_s];n===void 0&&(n=t[_s]=new Set);var r=e+"__bubble";n.has(r)||(Od(t,e,2,!1),n.add(r))}function zu(e,t,n){var r=0;t&&(r|=4),Od(n,e,r,t)}var Xi="_reactListening"+Math.random().toString(36).slice(2);function ti(e){if(!e[Xi]){e[Xi]=!0,zf.forEach(function(n){n!=="selectionchange"&&(ym.has(n)||zu(n,!1,e),zu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xi]||(t[Xi]=!0,zu("selectionchange",!1,t))}}function Od(e,t,n,r){switch(cd(t)){case 1:var o=Ah;break;case 4:o=jh;break;default:o=sa}n=o.bind(null,t,n,e),o=void 0,!cs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Mu(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var u=r.stateNode.containerInfo;if(u===o||u.nodeType===8&&u.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;u!==null;){if(l=or(u),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}u=u.parentNode}}r=r.return}Yf(function(){var p=i,v=oa(n),_=[];e:{var E=xd.get(e);if(E!==void 0){var x=ca,k=e;switch(e){case"keypress":if(dl(n)===0)break e;case"keydown":case"keyup":x=Qh;break;case"focusin":k="focus",x=Nu;break;case"focusout":k="blur",x=Nu;break;case"beforeblur":case"afterblur":x=Nu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Yh;break;case _d:case kd:case Cd:x=Dh;break;case Ed:x=Zh;break;case"scroll":x=Ih;break;case"wheel":x=em;break;case"copy":case"cut":case"paste":x=Uh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=mc}var S=(t&4)!==0,I=!S&&e==="scroll",g=S?E!==null?E+"Capture":null:E;S=[];for(var c=p,h;c!==null;){h=c;var O=h.stateNode;if(h.tag===5&&O!==null&&(h=O,g!==null&&(O=Go(c,g),O!=null&&S.push(ni(c,O,h)))),I)break;c=c.return}0<S.length&&(E=new x(E,k,null,n,v),_.push({event:E,listeners:S}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",E&&n!==ss&&(k=n.relatedTarget||n.fromElement)&&(or(k)||k[dn]))break e;if((x||E)&&(E=v.window===v?v:(E=v.ownerDocument)?E.defaultView||E.parentWindow:window,x?(k=n.relatedTarget||n.toElement,x=p,k=k?or(k):null,k!==null&&(I=gr(k),k!==I||k.tag!==5&&k.tag!==6)&&(k=null)):(x=null,k=p),x!==k)){if(S=pc,O="onMouseLeave",g="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(S=mc,O="onPointerLeave",g="onPointerEnter",c="pointer"),I=x==null?E:jr(x),h=k==null?E:jr(k),E=new S(O,c+"leave",x,n,v),E.target=I,E.relatedTarget=h,O=null,or(v)===p&&(S=new S(g,c+"enter",k,n,v),S.target=h,S.relatedTarget=I,O=S),I=O,x&&k)t:{for(S=x,g=k,c=0,h=S;h;h=Tr(h))c++;for(h=0,O=g;O;O=Tr(O))h++;for(;0<c-h;)S=Tr(S),c--;for(;0<h-c;)g=Tr(g),h--;for(;c--;){if(S===g||g!==null&&S===g.alternate)break t;S=Tr(S),g=Tr(g)}S=null}else S=null;x!==null&&Tc(_,E,x,S,!1),k!==null&&I!==null&&Tc(_,I,k,S,!0)}}e:{if(E=p?jr(p):window,x=E.nodeName&&E.nodeName.toLowerCase(),x==="select"||x==="input"&&E.type==="file")var T=um;else if(vc(E))if(gd)T=fm;else{T=am;var A=sm}else(x=E.nodeName)&&x.toLowerCase()==="input"&&(E.type==="checkbox"||E.type==="radio")&&(T=cm);if(T&&(T=T(e,p))){md(_,T,n,v);break e}A&&A(e,E,p),e==="focusout"&&(A=E._wrapperState)&&A.controlled&&E.type==="number"&&rs(E,"number",E.value)}switch(A=p?jr(p):window,e){case"focusin":(vc(A)||A.contentEditable==="true")&&(Lr=A,ms=p,Ho=null);break;case"focusout":Ho=ms=Lr=null;break;case"mousedown":gs=!0;break;case"contextmenu":case"mouseup":case"dragend":gs=!1,Cc(_,n,v);break;case"selectionchange":if(hm)break;case"keydown":case"keyup":Cc(_,n,v)}var m;if(da)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Pr?pd(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(dd&&n.locale!=="ko"&&(Pr||C!=="onCompositionStart"?C==="onCompositionEnd"&&Pr&&(m=fd()):(Ln=v,aa="value"in Ln?Ln.value:Ln.textContent,Pr=!0)),A=Ol(p,C),0<A.length&&(C=new hc(C,e,null,n,v),_.push({event:C,listeners:A}),m?C.data=m:(m=hd(n),m!==null&&(C.data=m)))),(m=nm?rm(e,n):om(e,n))&&(p=Ol(p,"onBeforeInput"),0<p.length&&(v=new hc("onBeforeInput","beforeinput",null,n,v),_.push({event:v,listeners:p}),v.data=m))}Td(_,t)})}function ni(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ol(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Go(e,n),i!=null&&r.unshift(ni(e,i,o)),i=Go(e,t),i!=null&&r.push(ni(e,i,o))),e=e.return}return r}function Tr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Tc(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var u=n,a=u.alternate,p=u.stateNode;if(a!==null&&a===r)break;u.tag===5&&p!==null&&(u=p,o?(a=Go(n,i),a!=null&&l.unshift(ni(n,a,u))):o||(a=Go(n,i),a!=null&&l.push(ni(n,a,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var vm=/\r\n?/g,wm=/\u0000|\uFFFD/g;function Oc(e){return(typeof e=="string"?e:""+e).replace(vm,`
`).replace(wm,"")}function Zi(e,t,n){if(t=Oc(t),Oc(e)!==t&&n)throw Error(F(425))}function Nl(){}var ys=null,vs=null;function ws(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}var Ss=typeof setTimeout=="function"?setTimeout:void 0,Sm=typeof clearTimeout=="function"?clearTimeout:void 0,Nc=typeof Promise=="function"?Promise:void 0,_m=typeof queueMicrotask=="function"?queueMicrotask:typeof Nc<"u"?function(e){return Nc.resolve(null).then(e).catch(km)}:Ss;function km(e){setTimeout(function(){throw e})}function Ru(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Zo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Zo(t)}function Mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Pc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var to=Math.random().toString(36).slice(2),Kt="__reactFiber$"+to,ri="__reactProps$"+to,dn="__reactContainer$"+to,_s="__reactEvents$"+to,Cm="__reactListeners$"+to,Em="__reactHandles$"+to;function or(e){var t=e[Kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dn]||n[Kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pc(e);e!==null;){if(n=e[Kt])return n;e=Pc(e)}return t}e=n,n=e.parentNode}return null}function mi(e){return e=e[Kt]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Jl(e){return e[ri]||null}var ks=[],Ir=-1;function Bn(e){return{current:e}}function Se(e){0>Ir||(e.current=ks[Ir],ks[Ir]=null,Ir--)}function ge(e,t){Ir++,ks[Ir]=e.current,e.current=t}var bn={},Ze=Bn(bn),ft=Bn(!1),ar=bn;function qr(e,t){var n=e.type.contextTypes;if(!n)return bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Pl(){Se(ft),Se(Ze)}function Lc(e,t,n){if(Ze.current!==bn)throw Error(F(168));ge(Ze,t),ge(ft,n)}function Nd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,sh(e)||"Unknown",o));return Te({},n,r)}function Ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bn,ar=Ze.current,ge(Ze,e),ge(ft,ft.current),!0}function Ac(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=Nd(e,t,ar),r.__reactInternalMemoizedMergedChildContext=e,Se(ft),Se(Ze),ge(Ze,e)):Se(ft),ge(ft,n)}var un=null,eu=!1,Fu=!1;function Pd(e){un===null?un=[e]:un.push(e)}function xm(e){eu=!0,Pd(e)}function Wn(){if(!Fu&&un!==null){Fu=!0;var e=0,t=fe;try{var n=un;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}un=null,eu=!1}catch(o){throw un!==null&&(un=un.slice(e+1)),ed(ia,Wn),o}finally{fe=t,Fu=!1}}return null}var zr=[],Mr=0,Al=null,jl=0,Ct=[],Et=0,cr=null,sn=1,an="";function tr(e,t){zr[Mr++]=jl,zr[Mr++]=Al,Al=e,jl=t}function Ld(e,t,n){Ct[Et++]=sn,Ct[Et++]=an,Ct[Et++]=cr,cr=e;var r=sn;e=an;var o=32-$t(r)-1;r&=~(1<<o),n+=1;var i=32-$t(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,sn=1<<32-$t(t)+o|n<<o|r,an=i+e}else sn=1<<i|n<<o|r,an=e}function ha(e){e.return!==null&&(tr(e,1),Ld(e,1,0))}function ma(e){for(;e===Al;)Al=zr[--Mr],zr[Mr]=null,jl=zr[--Mr],zr[Mr]=null;for(;e===cr;)cr=Ct[--Et],Ct[Et]=null,an=Ct[--Et],Ct[Et]=null,sn=Ct[--Et],Ct[Et]=null}var yt=null,gt=null,Ce=!1,Rt=null;function Ad(e,t){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function jc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,yt=e,gt=Mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,yt=e,gt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cr!==null?{id:sn,overflow:an}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,yt=e,gt=null,!0):!1;default:return!1}}function Cs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Es(e){if(Ce){var t=gt;if(t){var n=t;if(!jc(e,t)){if(Cs(e))throw Error(F(418));t=Mn(n.nextSibling);var r=yt;t&&jc(e,t)?Ad(r,n):(e.flags=e.flags&-4097|2,Ce=!1,yt=e)}}else{if(Cs(e))throw Error(F(418));e.flags=e.flags&-4097|2,Ce=!1,yt=e}}}function Ic(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function Ji(e){if(e!==yt)return!1;if(!Ce)return Ic(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ws(e.type,e.memoizedProps)),t&&(t=gt)){if(Cs(e))throw jd(),Error(F(418));for(;t;)Ad(e,t),t=Mn(t.nextSibling)}if(Ic(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gt=Mn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=yt?Mn(e.stateNode.nextSibling):null;return!0}function jd(){for(var e=gt;e;)e=Mn(e.nextSibling)}function Qr(){gt=yt=null,Ce=!1}function ga(e){Rt===null?Rt=[e]:Rt.push(e)}var Tm=mn.ReactCurrentBatchConfig;function zt(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Il=Bn(null),zl=null,Rr=null,ya=null;function va(){ya=Rr=zl=null}function wa(e){var t=Il.current;Se(Il),e._currentValue=t}function xs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Br(e,t){zl=e,ya=Rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(at=!0),e.firstContext=null)}function Ot(e){var t=e._currentValue;if(ya!==e)if(e={context:e,memoizedValue:t,next:null},Rr===null){if(zl===null)throw Error(F(308));Rr=e,zl.dependencies={lanes:0,firstContext:e}}else Rr=Rr.next=e;return t}var ir=null;function Sa(e){ir===null?ir=[e]:ir.push(e)}function Id(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Sa(t)):(n.next=o.next,o.next=n),t.interleaved=n,pn(e,r)}function pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function _a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(oe&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,pn(e,n)}return o=r.interleaved,o===null?(t.next=t,Sa(r)):(t.next=o.next,o.next=t),r.interleaved=t,pn(e,n)}function pl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,la(e,n)}}function zc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ml(e,t,n,r){var o=e.updateQueue;On=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var a=u,p=a.next;a.next=null,l===null?i=p:l.next=p,l=a;var v=e.alternate;v!==null&&(v=v.updateQueue,u=v.lastBaseUpdate,u!==l&&(u===null?v.firstBaseUpdate=p:u.next=p,v.lastBaseUpdate=a))}if(i!==null){var _=o.baseState;l=0,v=p=a=null,u=i;do{var E=u.lane,x=u.eventTime;if((r&E)===E){v!==null&&(v=v.next={eventTime:x,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var k=e,S=u;switch(E=t,x=n,S.tag){case 1:if(k=S.payload,typeof k=="function"){_=k.call(x,_,E);break e}_=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=S.payload,E=typeof k=="function"?k.call(x,_,E):k,E==null)break e;_=Te({},_,E);break e;case 2:On=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,E=o.effects,E===null?o.effects=[u]:E.push(u))}else x={eventTime:x,lane:E,tag:u.tag,payload:u.payload,callback:u.callback,next:null},v===null?(p=v=x,a=_):v=v.next=x,l|=E;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;E=u,u=E.next,E.next=null,o.lastBaseUpdate=E,o.shared.pending=null}}while(1);if(v===null&&(a=_),o.baseState=a,o.firstBaseUpdate=p,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);dr|=l,e.lanes=l,e.memoizedState=_}}function Mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(F(191,o));o.call(r)}}}var Md=new If.Component().refs;function Ts(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var tu={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=et(),o=Dn(e),i=cn(r,o);i.payload=t,n!=null&&(i.callback=n),t=Rn(e,i,o),t!==null&&(Ut(t,e,o,r),pl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=et(),o=Dn(e),i=cn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Rn(e,i,o),t!==null&&(Ut(t,e,o,r),pl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=et(),r=Dn(e),o=cn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Rn(e,o,r),t!==null&&(Ut(t,e,r,n),pl(t,e,r))}};function Rc(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!ei(n,r)||!ei(o,i):!0}function Rd(e,t,n){var r=!1,o=bn,i=t.contextType;return typeof i=="object"&&i!==null?i=Ot(i):(o=dt(t)?ar:Ze.current,r=t.contextTypes,i=(r=r!=null)?qr(e,o):bn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Fc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&tu.enqueueReplaceState(t,t.state,null)}function Os(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Md,_a(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ot(i):(i=dt(t)?ar:Ze.current,o.context=qr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ts(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&tu.enqueueReplaceState(o,o.state,null),Ml(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Lo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var u=o.refs;u===Md&&(u=o.refs={}),l===null?delete u[i]:u[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function el(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Dc(e){var t=e._init;return t(e._payload)}function Fd(e){function t(g,c){if(e){var h=g.deletions;h===null?(g.deletions=[c],g.flags|=16):h.push(c)}}function n(g,c){if(!e)return null;for(;c!==null;)t(g,c),c=c.sibling;return null}function r(g,c){for(g=new Map;c!==null;)c.key!==null?g.set(c.key,c):g.set(c.index,c),c=c.sibling;return g}function o(g,c){return g=$n(g,c),g.index=0,g.sibling=null,g}function i(g,c,h){return g.index=h,e?(h=g.alternate,h!==null?(h=h.index,h<c?(g.flags|=2,c):h):(g.flags|=2,c)):(g.flags|=1048576,c)}function l(g){return e&&g.alternate===null&&(g.flags|=2),g}function u(g,c,h,O){return c===null||c.tag!==6?(c=Wu(h,g.mode,O),c.return=g,c):(c=o(c,h),c.return=g,c)}function a(g,c,h,O){var T=h.type;return T===Nr?v(g,c,h.props.children,O,h.key):c!==null&&(c.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Tn&&Dc(T)===c.type)?(O=o(c,h.props),O.ref=Lo(g,c,h),O.return=g,O):(O=wl(h.type,h.key,h.props,null,g.mode,O),O.ref=Lo(g,c,h),O.return=g,O)}function p(g,c,h,O){return c===null||c.tag!==4||c.stateNode.containerInfo!==h.containerInfo||c.stateNode.implementation!==h.implementation?(c=Vu(h,g.mode,O),c.return=g,c):(c=o(c,h.children||[]),c.return=g,c)}function v(g,c,h,O,T){return c===null||c.tag!==7?(c=sr(h,g.mode,O,T),c.return=g,c):(c=o(c,h),c.return=g,c)}function _(g,c,h){if(typeof c=="string"&&c!==""||typeof c=="number")return c=Wu(""+c,g.mode,h),c.return=g,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Bi:return h=wl(c.type,c.key,c.props,null,g.mode,h),h.ref=Lo(g,null,c),h.return=g,h;case Or:return c=Vu(c,g.mode,h),c.return=g,c;case Tn:var O=c._init;return _(g,O(c._payload),h)}if(zo(c)||xo(c))return c=sr(c,g.mode,h,null),c.return=g,c;el(g,c)}return null}function E(g,c,h,O){var T=c!==null?c.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return T!==null?null:u(g,c,""+h,O);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Bi:return h.key===T?a(g,c,h,O):null;case Or:return h.key===T?p(g,c,h,O):null;case Tn:return T=h._init,E(g,c,T(h._payload),O)}if(zo(h)||xo(h))return T!==null?null:v(g,c,h,O,null);el(g,h)}return null}function x(g,c,h,O,T){if(typeof O=="string"&&O!==""||typeof O=="number")return g=g.get(h)||null,u(c,g,""+O,T);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Bi:return g=g.get(O.key===null?h:O.key)||null,a(c,g,O,T);case Or:return g=g.get(O.key===null?h:O.key)||null,p(c,g,O,T);case Tn:var A=O._init;return x(g,c,h,A(O._payload),T)}if(zo(O)||xo(O))return g=g.get(h)||null,v(c,g,O,T,null);el(c,O)}return null}function k(g,c,h,O){for(var T=null,A=null,m=c,C=c=0,j=null;m!==null&&C<h.length;C++){m.index>C?(j=m,m=null):j=m.sibling;var z=E(g,m,h[C],O);if(z===null){m===null&&(m=j);break}e&&m&&z.alternate===null&&t(g,m),c=i(z,c,C),A===null?T=z:A.sibling=z,A=z,m=j}if(C===h.length)return n(g,m),Ce&&tr(g,C),T;if(m===null){for(;C<h.length;C++)m=_(g,h[C],O),m!==null&&(c=i(m,c,C),A===null?T=m:A.sibling=m,A=m);return Ce&&tr(g,C),T}for(m=r(g,m);C<h.length;C++)j=x(m,g,C,h[C],O),j!==null&&(e&&j.alternate!==null&&m.delete(j.key===null?C:j.key),c=i(j,c,C),A===null?T=j:A.sibling=j,A=j);return e&&m.forEach(function(K){return t(g,K)}),Ce&&tr(g,C),T}function S(g,c,h,O){var T=xo(h);if(typeof T!="function")throw Error(F(150));if(h=T.call(h),h==null)throw Error(F(151));for(var A=T=null,m=c,C=c=0,j=null,z=h.next();m!==null&&!z.done;C++,z=h.next()){m.index>C?(j=m,m=null):j=m.sibling;var K=E(g,m,z.value,O);if(K===null){m===null&&(m=j);break}e&&m&&K.alternate===null&&t(g,m),c=i(K,c,C),A===null?T=K:A.sibling=K,A=K,m=j}if(z.done)return n(g,m),Ce&&tr(g,C),T;if(m===null){for(;!z.done;C++,z=h.next())z=_(g,z.value,O),z!==null&&(c=i(z,c,C),A===null?T=z:A.sibling=z,A=z);return Ce&&tr(g,C),T}for(m=r(g,m);!z.done;C++,z=h.next())z=x(m,g,C,z.value,O),z!==null&&(e&&z.alternate!==null&&m.delete(z.key===null?C:z.key),c=i(z,c,C),A===null?T=z:A.sibling=z,A=z);return e&&m.forEach(function(J){return t(g,J)}),Ce&&tr(g,C),T}function I(g,c,h,O){if(typeof h=="object"&&h!==null&&h.type===Nr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Bi:e:{for(var T=h.key,A=c;A!==null;){if(A.key===T){if(T=h.type,T===Nr){if(A.tag===7){n(g,A.sibling),c=o(A,h.props.children),c.return=g,g=c;break e}}else if(A.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Tn&&Dc(T)===A.type){n(g,A.sibling),c=o(A,h.props),c.ref=Lo(g,A,h),c.return=g,g=c;break e}n(g,A);break}else t(g,A);A=A.sibling}h.type===Nr?(c=sr(h.props.children,g.mode,O,h.key),c.return=g,g=c):(O=wl(h.type,h.key,h.props,null,g.mode,O),O.ref=Lo(g,c,h),O.return=g,g=O)}return l(g);case Or:e:{for(A=h.key;c!==null;){if(c.key===A)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(g,c.sibling),c=o(c,h.children||[]),c.return=g,g=c;break e}else{n(g,c);break}else t(g,c);c=c.sibling}c=Vu(h,g.mode,O),c.return=g,g=c}return l(g);case Tn:return A=h._init,I(g,c,A(h._payload),O)}if(zo(h))return k(g,c,h,O);if(xo(h))return S(g,c,h,O);el(g,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(g,c.sibling),c=o(c,h),c.return=g,g=c):(n(g,c),c=Wu(h,g.mode,O),c.return=g,g=c),l(g)):n(g,c)}return I}var Kr=Fd(!0),Dd=Fd(!1),gi={},Yt=Bn(gi),oi=Bn(gi),ii=Bn(gi);function lr(e){if(e===gi)throw Error(F(174));return e}function ka(e,t){switch(ge(ii,t),ge(oi,e),ge(Yt,gi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:is(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=is(t,e)}Se(Yt),ge(Yt,t)}function Gr(){Se(Yt),Se(oi),Se(ii)}function $d(e){lr(ii.current);var t=lr(Yt.current),n=is(t,e.type);t!==n&&(ge(oi,e),ge(Yt,n))}function Ca(e){oi.current===e&&(Se(Yt),Se(oi))}var Ee=Bn(0);function Rl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;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 Du=[];function Ea(){for(var e=0;e<Du.length;e++)Du[e]._workInProgressVersionPrimary=null;Du.length=0}var hl=mn.ReactCurrentDispatcher,$u=mn.ReactCurrentBatchConfig,fr=0,xe=null,$e=null,be=null,Fl=!1,Bo=!1,li=0,Om=0;function Ge(){throw Error(F(321))}function xa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bt(e[n],t[n]))return!1;return!0}function Ta(e,t,n,r,o,i){if(fr=i,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hl.current=e===null||e.memoizedState===null?Am:jm,e=n(r,o),Bo){i=0;do{if(Bo=!1,li=0,25<=i)throw Error(F(301));i+=1,be=$e=null,t.updateQueue=null,hl.current=Im,e=n(r,o)}while(Bo)}if(hl.current=Dl,t=$e!==null&&$e.next!==null,fr=0,be=$e=xe=null,Fl=!1,t)throw Error(F(300));return e}function Oa(){var e=li!==0;return li=0,e}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return be===null?xe.memoizedState=be=e:be=be.next=e,be}function Nt(){if($e===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=be===null?xe.memoizedState:be.next;if(t!==null)be=t,$e=e;else{if(e===null)throw Error(F(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},be===null?xe.memoizedState=be=e:be=be.next=e}return be}function ui(e,t){return typeof t=="function"?t(e):t}function Uu(e){var t=Nt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=$e,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var u=l=null,a=null,p=i;do{var v=p.lane;if((fr&v)===v)a!==null&&(a=a.next={lane:0,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),r=p.hasEagerState?p.eagerState:e(r,p.action);else{var _={lane:v,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null};a===null?(u=a=_,l=r):a=a.next=_,xe.lanes|=v,dr|=v}p=p.next}while(p!==null&&p!==i);a===null?l=r:a.next=u,bt(r,t.memoizedState)||(at=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,xe.lanes|=i,dr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bu(e){var t=Nt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);bt(i,t.memoizedState)||(at=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ud(){}function bd(e,t){var n=xe,r=Nt(),o=t(),i=!bt(r.memoizedState,o);if(i&&(r.memoizedState=o,at=!0),r=r.queue,Na(Wd.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||be!==null&&be.memoizedState.tag&1){if(n.flags|=2048,si(9,Bd.bind(null,n,r,o,t),void 0,null),He===null)throw Error(F(349));(fr&30)!==0||Hd(n,t,o)}return o}function Hd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bd(e,t,n,r){t.value=n,t.getSnapshot=r,Vd(t)&&qd(e)}function Wd(e,t,n){return n(function(){Vd(t)&&qd(e)})}function Vd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bt(e,n)}catch{return!0}}function qd(e){var t=pn(e,1);t!==null&&Ut(t,e,1,-1)}function $c(e){var t=Qt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:e},t.queue=e,e=e.dispatch=Lm.bind(null,xe,e),[t.memoizedState,e]}function si(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Qd(){return Nt().memoizedState}function ml(e,t,n,r){var o=Qt();xe.flags|=e,o.memoizedState=si(1|t,n,void 0,r===void 0?null:r)}function nu(e,t,n,r){var o=Nt();r=r===void 0?null:r;var i=void 0;if($e!==null){var l=$e.memoizedState;if(i=l.destroy,r!==null&&xa(r,l.deps)){o.memoizedState=si(t,n,i,r);return}}xe.flags|=e,o.memoizedState=si(1|t,n,i,r)}function Uc(e,t){return ml(8390656,8,e,t)}function Na(e,t){return nu(2048,8,e,t)}function Kd(e,t){return nu(4,2,e,t)}function Gd(e,t){return nu(4,4,e,t)}function Yd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Xd(e,t,n){return n=n!=null?n.concat([e]):null,nu(4,4,Yd.bind(null,t,e),n)}function Pa(){}function Zd(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Jd(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ep(e,t,n){return(fr&21)===0?(e.baseState&&(e.baseState=!1,at=!0),e.memoizedState=n):(bt(n,t)||(n=rd(),xe.lanes|=n,dr|=n,e.baseState=!0),t)}function Nm(e,t){var n=fe;fe=n!==0&&4>n?n:4,e(!0);var r=$u.transition;$u.transition={};try{e(!1),t()}finally{fe=n,$u.transition=r}}function tp(){return Nt().memoizedState}function Pm(e,t,n){var r=Dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},np(e))rp(t,n);else if(n=Id(e,t,n,r),n!==null){var o=et();Ut(n,e,r,o),op(n,t,r)}}function Lm(e,t,n){var r=Dn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(np(e))rp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,u=i(l,n);if(o.hasEagerState=!0,o.eagerState=u,bt(u,l)){var a=t.interleaved;a===null?(o.next=o,Sa(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Id(e,t,o,r),n!==null&&(o=et(),Ut(n,e,r,o),op(n,t,r))}}function np(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function rp(e,t){Bo=Fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function op(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,la(e,n)}}var Dl={readContext:Ot,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Am={readContext:Ot,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Uc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ml(4194308,4,Yd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return ml(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Pm.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:$c,useDebugValue:Pa,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=$c(!1),t=e[0];return e=Nm.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=Qt();if(Ce){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),He===null)throw Error(F(349));(fr&30)!==0||Hd(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Uc(Wd.bind(null,r,i,e),[e]),r.flags|=2048,si(9,Bd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Qt(),t=He.identifierPrefix;if(Ce){var n=an,r=sn;n=(r&~(1<<32-$t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=li++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Om++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jm={readContext:Ot,useCallback:Zd,useContext:Ot,useEffect:Na,useImperativeHandle:Xd,useInsertionEffect:Kd,useLayoutEffect:Gd,useMemo:Jd,useReducer:Uu,useRef:Qd,useState:function(){return Uu(ui)},useDebugValue:Pa,useDeferredValue:function(e){var t=Nt();return ep(t,$e.memoizedState,e)},useTransition:function(){var e=Uu(ui)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Ud,useSyncExternalStore:bd,useId:tp,unstable_isNewReconciler:!1},Im={readContext:Ot,useCallback:Zd,useContext:Ot,useEffect:Na,useImperativeHandle:Xd,useInsertionEffect:Kd,useLayoutEffect:Gd,useMemo:Jd,useReducer:bu,useRef:Qd,useState:function(){return bu(ui)},useDebugValue:Pa,useDeferredValue:function(e){var t=Nt();return $e===null?t.memoizedState=e:ep(t,$e.memoizedState,e)},useTransition:function(){var e=bu(ui)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Ud,useSyncExternalStore:bd,useId:tp,unstable_isNewReconciler:!1};function Yr(e,t){try{var n="",r=t;do n+=uh(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Hu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ns(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zm=typeof WeakMap=="function"?WeakMap:Map;function ip(e,t,n){n=cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Ds=r),Ns(e,t)},n}function lp(e,t,n){n=cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ns(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ns(e,t),typeof r!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function bc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zm;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Km.bind(null,e,t,n),t.then(e,e))}function Hc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Bc(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=cn(-1,1),t.tag=2,Rn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Mm=mn.ReactCurrentOwner,at=!1;function Je(e,t,n,r){t.child=e===null?Dd(t,null,n,r):Kr(t,e.child,n,r)}function Wc(e,t,n,r,o){n=n.render;var i=t.ref;return Br(t,o),r=Ta(e,t,n,r,i,o),n=Oa(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Ce&&n&&ha(t),t.flags|=1,Je(e,t,r,o),t.child)}function Vc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Fa(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,up(e,t,i,r,o)):(e=wl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:ei,n(l,r)&&e.ref===t.ref)return hn(e,t,o)}return t.flags|=1,e=$n(i,r),e.ref=t.ref,e.return=t,t.child=e}function up(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ei(i,r)&&e.ref===t.ref)if(at=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,hn(e,t,o)}return Ps(e,t,n,r,o)}function sp(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Dr,mt),mt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Dr,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ge(Dr,mt),mt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ge(Dr,mt),mt|=r;return Je(e,t,o,n),t.child}function ap(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,o){var i=dt(n)?ar:Ze.current;return i=qr(t,i),Br(t,o),n=Ta(e,t,n,r,i,o),r=Oa(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Ce&&r&&ha(t),t.flags|=1,Je(e,t,n,o),t.child)}function qc(e,t,n,r,o){if(dt(n)){var i=!0;Ll(t)}else i=!1;if(Br(t,o),t.stateNode===null)gl(e,t),Rd(t,n,r),Os(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,u=t.memoizedProps;l.props=u;var a=l.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ot(p):(p=dt(n)?ar:Ze.current,p=qr(t,p));var v=n.getDerivedStateFromProps,_=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function";_||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==r||a!==p)&&Fc(t,l,r,p),On=!1;var E=t.memoizedState;l.state=E,Ml(t,r,l,o),a=t.memoizedState,u!==r||E!==a||ft.current||On?(typeof v=="function"&&(Ts(t,n,v,r),a=t.memoizedState),(u=On||Rc(t,n,u,r,E,a,p))?(_||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=p,r=u):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,zd(e,t),u=t.memoizedProps,p=t.type===t.elementType?u:zt(t.type,u),l.props=p,_=t.pendingProps,E=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ot(a):(a=dt(n)?ar:Ze.current,a=qr(t,a));var x=n.getDerivedStateFromProps;(v=typeof x=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==_||E!==a)&&Fc(t,l,r,a),On=!1,E=t.memoizedState,l.state=E,Ml(t,r,l,o);var k=t.memoizedState;u!==_||E!==k||ft.current||On?(typeof x=="function"&&(Ts(t,n,x,r),k=t.memoizedState),(p=On||Rc(t,n,p,r,E,k,a)||!1)?(v||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,k,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,k,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),l.props=r,l.state=k,l.context=a,r=p):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),r=!1)}return Ls(e,t,n,r,i,o)}function Ls(e,t,n,r,o,i){ap(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Ac(t,n,!1),hn(e,t,i);r=t.stateNode,Mm.current=t;var u=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Kr(t,e.child,null,i),t.child=Kr(t,null,u,i)):Je(e,t,u,i),t.memoizedState=r.state,o&&Ac(t,n,!0),t.child}function cp(e){var t=e.stateNode;t.pendingContext?Lc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lc(e,t.context,!1),ka(e,t.containerInfo)}function Qc(e,t,n,r,o){return Qr(),ga(o),t.flags|=256,Je(e,t,n,r),t.child}var As={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function fp(e,t,n){var r=t.pendingProps,o=Ee.current,i=!1,l=(t.flags&128)!==0,u;if((u=l)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(Ee,o&1),e===null)return Es(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=l):i=iu(l,r,0,null),e=sr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=js(n),t.memoizedState=As,e):La(t,l));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return Rm(e,t,l,r,u,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,u=o.sibling;var a={mode:"hidden",children:r.children};return(l&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=$n(o,a),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?i=$n(u,i):(i=sr(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=As,r}return i=e.child,e=i.sibling,r=$n(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function La(e,t){return t=iu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function tl(e,t,n,r){return r!==null&&ga(r),Kr(t,e.child,null,n),e=La(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rm(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Hu(Error(F(422))),tl(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=iu({mode:"visible",children:r.children},o,0,null),i=sr(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Kr(t,e.child,null,l),t.child.memoizedState=js(l),t.memoizedState=As,i);if((t.mode&1)===0)return tl(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(F(419)),r=Hu(i,r,void 0),tl(e,t,l,r)}if(u=(l&e.childLanes)!==0,at||u){if(r=He,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|l))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,pn(e,o),Ut(r,e,o,-1))}return Ra(),r=Hu(Error(F(421))),tl(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Gm.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,gt=Mn(o.nextSibling),yt=t,Ce=!0,Rt=null,e!==null&&(Ct[Et++]=sn,Ct[Et++]=an,Ct[Et++]=cr,sn=e.id,an=e.overflow,cr=t),t=La(t,r.children),t.flags|=4096,t)}function Kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xs(e.return,t,n)}function Bu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function dp(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Je(e,t,r.children,n),r=Ee.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kc(e,n,t);else if(e.tag===19)Kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ge(Ee,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Rl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Rl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bu(t,!0,n,null,i);break;case"together":Bu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=$n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fm(e,t,n){switch(t.tag){case 3:cp(t),Qr();break;case 5:$d(t);break;case 1:dt(t.type)&&Ll(t);break;case 4:ka(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(Il,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(Ee,Ee.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?fp(e,t,n):(ge(Ee,Ee.current&1),e=hn(e,t,n),e!==null?e.sibling:null);ge(Ee,Ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return dp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(Ee,Ee.current),r)break;return null;case 22:case 23:return t.lanes=0,sp(e,t,n)}return hn(e,t,n)}var pp,Is,hp,mp;pp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Is=function(){};hp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,lr(Yt.current);var i=null;switch(n){case"input":o=ts(e,o),r=ts(e,r),i=[];break;case"select":o=Te({},o,{value:void 0}),r=Te({},r,{value:void 0}),i=[];break;case"textarea":o=os(e,o),r=os(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Nl)}ls(n,r);var l;n=null;for(p in o)if(!r.hasOwnProperty(p)&&o.hasOwnProperty(p)&&o[p]!=null)if(p==="style"){var u=o[p];for(l in u)u.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(Qo.hasOwnProperty(p)?i||(i=[]):(i=i||[]).push(p,null));for(p in r){var a=r[p];if(u=o?.[p],r.hasOwnProperty(p)&&a!==u&&(a!=null||u!=null))if(p==="style")if(u){for(l in u)!u.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&u[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(p,n)),n=a;else p==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(i=i||[]).push(p,a)):p==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(p,""+a):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&(Qo.hasOwnProperty(p)?(a!=null&&p==="onScroll"&&we("scroll",e),i||u===a||(i=[])):(i=i||[]).push(p,a))}n&&(i=i||[]).push("style",n);var p=i;(t.updateQueue=p)&&(t.flags|=4)}};mp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ao(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Dm(e,t,n){var r=t.pendingProps;switch(ma(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return dt(t.type)&&Pl(),Ye(t),null;case 3:return r=t.stateNode,Gr(),Se(ft),Se(Ze),Ea(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rt!==null&&(bs(Rt),Rt=null))),Is(e,t),Ye(t),null;case 5:Ca(t);var o=lr(ii.current);if(n=t.type,e!==null&&t.stateNode!=null)hp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return Ye(t),null}if(e=lr(Yt.current),Ji(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Kt]=t,r[ri]=i,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(o=0;o<Ro.length;o++)we(Ro[o],r);break;case"source":we("error",r);break;case"img":case"image":case"link":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"input":rc(r,i),we("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},we("invalid",r);break;case"textarea":ic(r,i),we("invalid",r)}ls(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var u=i[l];l==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&Zi(r.textContent,u,e),o=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&Zi(r.textContent,u,e),o=["children",""+u]):Qo.hasOwnProperty(l)&&u!=null&&l==="onScroll"&&we("scroll",r)}switch(n){case"input":Wi(r),oc(r,i,!0);break;case"textarea":Wi(r),lc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Nl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Hf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Kt]=t,e[ri]=r,pp(e,t,!1,!1),t.stateNode=e;e:{switch(l=us(n,r),n){case"dialog":we("cancel",e),we("close",e),o=r;break;case"iframe":case"object":case"embed":we("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ro.length;o++)we(Ro[o],e);o=r;break;case"source":we("error",e),o=r;break;case"img":case"image":case"link":we("error",e),we("load",e),o=r;break;case"details":we("toggle",e),o=r;break;case"input":rc(e,r),o=ts(e,r),we("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Te({},r,{value:void 0}),we("invalid",e);break;case"textarea":ic(e,r),o=os(e,r),we("invalid",e);break;default:o=r}ls(n,o),u=o;for(i in u)if(u.hasOwnProperty(i)){var a=u[i];i==="style"?Vf(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Bf(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Ko(e,a):typeof a=="number"&&Ko(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qo.hasOwnProperty(i)?a!=null&&i==="onScroll"&&we("scroll",e):a!=null&&ea(e,i,a,l))}switch(n){case"input":Wi(e),oc(e,r,!1);break;case"textarea":Wi(e),lc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Un(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?$r(e,!!r.multiple,i,!1):r.defaultValue!=null&&$r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Nl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ye(t),null;case 6:if(e&&t.stateNode!=null)mp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=lr(ii.current),lr(Yt.current),Ji(t)){if(r=t.stateNode,n=t.memoizedProps,r[Kt]=t,(i=r.nodeValue!==n)&&(e=yt,e!==null))switch(e.tag){case 3:Zi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Kt]=t,t.stateNode=r}return Ye(t),null;case 13:if(Se(Ee),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&gt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)jd(),Qr(),t.flags|=98560,i=!1;else if(i=Ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(F(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(F(317));i[Kt]=t}else Qr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),i=!1}else Rt!==null&&(bs(Rt),Rt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ee.current&1)!==0?Ue===0&&(Ue=3):Ra())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return Gr(),Is(e,t),e===null&&ti(t.stateNode.containerInfo),Ye(t),null;case 10:return wa(t.type._context),Ye(t),null;case 17:return dt(t.type)&&Pl(),Ye(t),null;case 19:if(Se(Ee),i=t.memoizedState,i===null)return Ye(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)Ao(i,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=Rl(e),l!==null){for(t.flags|=128,Ao(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(Ee,Ee.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>Xr&&(t.flags|=128,r=!0,Ao(i,!1),t.lanes=4194304)}else{if(!r)if(e=Rl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ao(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Ce)return Ye(t),null}else 2*Ae()-i.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,Ao(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=Ee.current,ge(Ee,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return Ma(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(mt&1073741824)!==0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function $m(e,t){switch(ma(t),t.tag){case 1:return dt(t.type)&&Pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),Se(ft),Se(Ze),Ea(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ca(t),null;case 13:if(Se(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ee),null;case 4:return Gr(),null;case 10:return wa(t.type._context),null;case 22:case 23:return Ma(),null;case 24:return null;default:return null}}var nl=!1,Xe=!1,Um=typeof WeakSet=="function"?WeakSet:Set,V=null;function Fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function zs(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Gc=!1;function bm(e,t){if(ys=xl,e=wd(),pa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,u=-1,a=-1,p=0,v=0,_=e,E=null;t:for(;;){for(var x;_!==n||o!==0&&_.nodeType!==3||(u=l+o),_!==i||r!==0&&_.nodeType!==3||(a=l+r),_.nodeType===3&&(l+=_.nodeValue.length),(x=_.firstChild)!==null;)E=_,_=x;for(;;){if(_===e)break t;if(E===n&&++p===o&&(u=l),E===i&&++v===r&&(a=l),(x=_.nextSibling)!==null)break;_=E,E=_.parentNode}_=x}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(vs={focusedElem:e,selectionRange:n},xl=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var k=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var S=k.memoizedProps,I=k.memoizedState,g=t.stateNode,c=g.getSnapshotBeforeUpdate(t.elementType===t.type?S:zt(t.type,S),I);g.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(O){Le(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return k=Gc,Gc=!1,k}function Wo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&zs(t,n,i)}o=o.next}while(o!==r)}}function ru(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ms(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gp(e){var t=e.alternate;t!==null&&(e.alternate=null,gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kt],delete t[ri],delete t[_s],delete t[Cm],delete t[Em])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yp(e){return e.tag===5||e.tag===3||e.tag===4}function Yc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Nl));else if(r!==4&&(e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}function Fs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fs(e,t,n),e=e.sibling;e!==null;)Fs(e,t,n),e=e.sibling}var We=null,Mt=!1;function xn(e,t,n){for(n=n.child;n!==null;)vp(e,t,n),n=n.sibling}function vp(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Gl,n)}catch{}switch(n.tag){case 5:Xe||Fr(n,t);case 6:var r=We,o=Mt;We=null,xn(e,t,n),We=r,Mt=o,We!==null&&(Mt?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(Mt?(e=We,n=n.stateNode,e.nodeType===8?Ru(e.parentNode,n):e.nodeType===1&&Ru(e,n),Zo(e)):Ru(We,n.stateNode));break;case 4:r=We,o=Mt,We=n.stateNode.containerInfo,Mt=!0,xn(e,t,n),We=r,Mt=o;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&((i&2)!==0||(i&4)!==0)&&zs(n,t,l),o=o.next}while(o!==r)}xn(e,t,n);break;case 1:if(!Xe&&(Fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Le(n,t,u)}xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,xn(e,t,n),Xe=r):xn(e,t,n);break;default:xn(e,t,n)}}function Xc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Um),t.forEach(function(r){var o=Ym.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,u=l;e:for(;u!==null;){switch(u.tag){case 5:We=u.stateNode,Mt=!1;break e;case 3:We=u.stateNode.containerInfo,Mt=!0;break e;case 4:We=u.stateNode.containerInfo,Mt=!0;break e}u=u.return}if(We===null)throw Error(F(160));vp(i,l,o),We=null,Mt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(p){Le(o,t,p)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wp(t,e),t=t.sibling}function wp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(It(t,e),qt(e),r&4){try{Wo(3,e,e.return),ru(3,e)}catch(S){Le(e,e.return,S)}try{Wo(5,e,e.return)}catch(S){Le(e,e.return,S)}}break;case 1:It(t,e),qt(e),r&512&&n!==null&&Fr(n,n.return);break;case 5:if(It(t,e),qt(e),r&512&&n!==null&&Fr(n,n.return),e.flags&32){var o=e.stateNode;try{Ko(o,"")}catch(S){Le(e,e.return,S)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,u=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&Uf(o,i),us(u,l);var p=us(u,i);for(l=0;l<a.length;l+=2){var v=a[l],_=a[l+1];v==="style"?Vf(o,_):v==="dangerouslySetInnerHTML"?Bf(o,_):v==="children"?Ko(o,_):ea(o,v,_,p)}switch(u){case"input":ns(o,i);break;case"textarea":bf(o,i);break;case"select":var E=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var x=i.value;x!=null?$r(o,!!i.multiple,x,!1):E!==!!i.multiple&&(i.defaultValue!=null?$r(o,!!i.multiple,i.defaultValue,!0):$r(o,!!i.multiple,i.multiple?[]:"",!1))}o[ri]=i}catch(S){Le(e,e.return,S)}}break;case 6:if(It(t,e),qt(e),r&4){if(e.stateNode===null)throw Error(F(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(S){Le(e,e.return,S)}}break;case 3:if(It(t,e),qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zo(t.containerInfo)}catch(S){Le(e,e.return,S)}break;case 4:It(t,e),qt(e);break;case 13:It(t,e),qt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Ia=Ae())),r&4&&Xc(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(p=Xe)||v,It(t,e),Xe=p):It(t,e),qt(e),r&8192){if(p=e.memoizedState!==null,(e.stateNode.isHidden=p)&&!v&&(e.mode&1)!==0)for(V=e,v=e.child;v!==null;){for(_=V=v;V!==null;){switch(E=V,x=E.child,E.tag){case 0:case 11:case 14:case 15:Wo(4,E,E.return);break;case 1:Fr(E,E.return);var k=E.stateNode;if(typeof k.componentWillUnmount=="function"){r=E,n=E.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(S){Le(r,n,S)}}break;case 5:Fr(E,E.return);break;case 22:if(E.memoizedState!==null){Jc(_);continue}}x!==null?(x.return=E,V=x):Jc(_)}v=v.sibling}e:for(v=null,_=e;;){if(_.tag===5){if(v===null){v=_;try{o=_.stateNode,p?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=_.stateNode,a=_.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,u.style.display=Wf("display",l))}catch(S){Le(e,e.return,S)}}}else if(_.tag===6){if(v===null)try{_.stateNode.nodeValue=p?"":_.memoizedProps}catch(S){Le(e,e.return,S)}}else if((_.tag!==22&&_.tag!==23||_.memoizedState===null||_===e)&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===e)break e;for(;_.sibling===null;){if(_.return===null||_.return===e)break e;v===_&&(v=null),_=_.return}v===_&&(v=null),_.sibling.return=_.return,_=_.sibling}}break;case 19:It(t,e),qt(e),r&4&&Xc(e);break;case 21:break;default:It(t,e),qt(e)}}function qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yp(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ko(o,""),r.flags&=-33);var i=Yc(e);Fs(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,u=Yc(e);Rs(e,u,l);break;default:throw Error(F(161))}}catch(a){Le(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hm(e,t,n){V=e,Sp(e)}function Sp(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var o=V,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||nl;if(!l){var u=o.alternate,a=u!==null&&u.memoizedState!==null||Xe;u=nl;var p=Xe;if(nl=l,(Xe=a)&&!p)for(V=o;V!==null;)l=V,a=l.child,l.tag===22&&l.memoizedState!==null?ef(o):a!==null?(a.return=l,V=a):ef(o);for(;i!==null;)V=i,Sp(i),i=i.sibling;V=o,nl=u,Xe=p}Zc(e)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,V=i):Zc(e)}}function Zc(e){for(;V!==null;){var t=V;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Xe||ru(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:zt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Mc(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mc(t,l,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var p=t.alternate;if(p!==null){var v=p.memoizedState;if(v!==null){var _=v.dehydrated;_!==null&&Zo(_)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}Xe||t.flags&512&&Ms(t)}catch(E){Le(t,t.return,E)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function Jc(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function ef(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(a){Le(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Le(t,o,a)}}var i=t.return;try{Ms(t)}catch(a){Le(t,i,a)}break;case 5:var l=t.return;try{Ms(t)}catch(a){Le(t,l,a)}}}catch(a){Le(t,t.return,a)}if(t===e){V=null;break}var u=t.sibling;if(u!==null){u.return=t.return,V=u;break}V=t.return}}var Bm=Math.ceil,$l=mn.ReactCurrentDispatcher,Aa=mn.ReactCurrentOwner,Tt=mn.ReactCurrentBatchConfig,oe=0,He=null,Me=null,Ve=0,mt=0,Dr=Bn(0),Ue=0,ai=null,dr=0,ou=0,ja=0,Vo=null,st=null,Ia=0,Xr=1/0,ln=null,Ul=!1,Ds=null,Fn=null,rl=!1,An=null,bl=0,qo=0,$s=null,yl=-1,vl=0;function et(){return(oe&6)!==0?Ae():yl!==-1?yl:yl=Ae()}function Dn(e){return(e.mode&1)===0?1:(oe&2)!==0&&Ve!==0?Ve&-Ve:Tm.transition!==null?(vl===0&&(vl=rd()),vl):(e=fe,e!==0||(e=window.event,e=e===void 0?16:cd(e.type)),e)}function Ut(e,t,n,r){if(50<qo)throw qo=0,$s=null,Error(F(185));pi(e,n,r),((oe&2)===0||e!==He)&&(e===He&&((oe&2)===0&&(ou|=n),Ue===4&&Pn(e,Ve)),pt(e,r),n===1&&oe===0&&(t.mode&1)===0&&(Xr=Ae()+500,eu&&Wn()))}function pt(e,t){var n=e.callbackNode;Th(e,t);var r=El(e,e===He?Ve:0);if(r===0)n!==null&&ac(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ac(n),t===1)e.tag===0?xm(tf.bind(null,e)):Pd(tf.bind(null,e)),_m(function(){(oe&6)===0&&Wn()}),n=null;else{switch(od(r)){case 1:n=ia;break;case 4:n=td;break;case 16:n=Cl;break;case 536870912:n=nd;break;default:n=Cl}n=Np(n,_p.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _p(e,t){if(yl=-1,vl=0,(oe&6)!==0)throw Error(F(327));var n=e.callbackNode;if(Wr()&&e.callbackNode!==n)return null;var r=El(e,e===He?Ve:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Hl(e,r);else{t=r;var o=oe;oe|=2;var i=Cp();(He!==e||Ve!==t)&&(ln=null,Xr=Ae()+500,ur(e,t));do try{qm();break}catch(u){kp(e,u)}while(1);va(),$l.current=i,oe=o,Me!==null?t=0:(He=null,Ve=0,t=Ue)}if(t!==0){if(t===2&&(o=ds(e),o!==0&&(r=o,t=Us(e,o))),t===1)throw n=ai,ur(e,0),Pn(e,r),pt(e,Ae()),n;if(t===6)Pn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Wm(o)&&(t=Hl(e,r),t===2&&(i=ds(e),i!==0&&(r=i,t=Us(e,i))),t===1))throw n=ai,ur(e,0),Pn(e,r),pt(e,Ae()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:nr(e,st,ln);break;case 3:if(Pn(e,r),(r&130023424)===r&&(t=Ia+500-Ae(),10<t)){if(El(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){et(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ss(nr.bind(null,e,st,ln),t);break}nr(e,st,ln);break;case 4:if(Pn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-$t(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bm(r/1960))-r,10<r){e.timeoutHandle=Ss(nr.bind(null,e,st,ln),r);break}nr(e,st,ln);break;case 5:nr(e,st,ln);break;default:throw Error(F(329))}}}return pt(e,Ae()),e.callbackNode===n?_p.bind(null,e):null}function Us(e,t){var n=Vo;return e.current.memoizedState.isDehydrated&&(ur(e,t).flags|=256),e=Hl(e,t),e!==2&&(t=st,st=n,t!==null&&bs(t)),e}function bs(e){st===null?st=e:st.push.apply(st,e)}function Wm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!bt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;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 Pn(e,t){for(t&=~ja,t&=~ou,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),r=1<<n;e[n]=-1,t&=~r}}function tf(e){if((oe&6)!==0)throw Error(F(327));Wr();var t=El(e,0);if((t&1)===0)return pt(e,Ae()),null;var n=Hl(e,t);if(e.tag!==0&&n===2){var r=ds(e);r!==0&&(t=r,n=Us(e,r))}if(n===1)throw n=ai,ur(e,0),Pn(e,t),pt(e,Ae()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nr(e,st,ln),pt(e,Ae()),null}function za(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Xr=Ae()+500,eu&&Wn())}}function pr(e){An!==null&&An.tag===0&&(oe&6)===0&&Wr();var t=oe;oe|=1;var n=Tt.transition,r=fe;try{if(Tt.transition=null,fe=1,e)return e()}finally{fe=r,Tt.transition=n,oe=t,(oe&6)===0&&Wn()}}function Ma(){mt=Dr.current,Se(Dr)}function ur(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sm(n)),Me!==null)for(n=Me.return;n!==null;){var r=n;switch(ma(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pl();break;case 3:Gr(),Se(ft),Se(Ze),Ea();break;case 5:Ca(r);break;case 4:Gr();break;case 13:Se(Ee);break;case 19:Se(Ee);break;case 10:wa(r.type._context);break;case 22:case 23:Ma()}n=n.return}if(He=e,Me=e=$n(e.current,null),Ve=mt=t,Ue=0,ai=null,ja=ou=dr=0,st=Vo=null,ir!==null){for(t=0;t<ir.length;t++)if(n=ir[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}ir=null}return e}function kp(e,t){do{var n=Me;try{if(va(),hl.current=Dl,Fl){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Fl=!1}if(fr=0,be=$e=xe=null,Bo=!1,li=0,Aa.current=null,n===null||n.return===null){Ue=1,ai=t,Me=null;break}e:{var i=e,l=n.return,u=n,a=t;if(t=Ve,u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var p=a,v=u,_=v.tag;if((v.mode&1)===0&&(_===0||_===11||_===15)){var E=v.alternate;E?(v.updateQueue=E.updateQueue,v.memoizedState=E.memoizedState,v.lanes=E.lanes):(v.updateQueue=null,v.memoizedState=null)}var x=Hc(l);if(x!==null){x.flags&=-257,Bc(x,l,u,i,t),x.mode&1&&bc(i,p,t),t=x,a=p;var k=t.updateQueue;if(k===null){var S=new Set;S.add(a),t.updateQueue=S}else k.add(a);break e}else{if((t&1)===0){bc(i,p,t),Ra();break e}a=Error(F(426))}}else if(Ce&&u.mode&1){var I=Hc(l);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),Bc(I,l,u,i,t),ga(Yr(a,u));break e}}i=a=Yr(a,u),Ue!==4&&(Ue=2),Vo===null?Vo=[i]:Vo.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=ip(i,a,t);zc(i,g);break e;case 1:u=a;var c=i.type,h=i.stateNode;if((i.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Fn===null||!Fn.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var O=lp(i,u,t);zc(i,O);break e}}i=i.return}while(i!==null)}xp(n)}catch(T){t=T,Me===n&&n!==null&&(Me=n=n.return);continue}break}while(1)}function Cp(){var e=$l.current;return $l.current=Dl,e===null?Dl:e}function Ra(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),He===null||(dr&268435455)===0&&(ou&268435455)===0||Pn(He,Ve)}function Hl(e,t){var n=oe;oe|=2;var r=Cp();(He!==e||Ve!==t)&&(ln=null,ur(e,t));do try{Vm();break}catch(o){kp(e,o)}while(1);if(va(),oe=n,$l.current=r,Me!==null)throw Error(F(261));return He=null,Ve=0,Ue}function Vm(){for(;Me!==null;)Ep(Me)}function qm(){for(;Me!==null&&!yh();)Ep(Me)}function Ep(e){var t=Op(e.alternate,e,mt);e.memoizedProps=e.pendingProps,t===null?xp(e):Me=t,Aa.current=null}function xp(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Dm(n,t,mt),n!==null){Me=n;return}}else{if(n=$m(n,t),n!==null){n.flags&=32767,Me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Me=null;return}}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Ue===0&&(Ue=5)}function nr(e,t,n){var r=fe,o=Tt.transition;try{Tt.transition=null,fe=1,Qm(e,t,n,r)}finally{Tt.transition=o,fe=r}return null}function Qm(e,t,n,r){do Wr();while(An!==null);if((oe&6)!==0)throw Error(F(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Oh(e,i),e===He&&(Me=He=null,Ve=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||rl||(rl=!0,Np(Cl,function(){return Wr(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=Tt.transition,Tt.transition=null;var l=fe;fe=1;var u=oe;oe|=4,Aa.current=null,bm(e,n),wp(n,e),pm(vs),xl=!!ys,vs=ys=null,e.current=n,Hm(n),vh(),oe=u,fe=l,Tt.transition=i}else e.current=n;if(rl&&(rl=!1,An=e,bl=o),i=e.pendingLanes,i===0&&(Fn=null),_h(n.stateNode),pt(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=Ds,Ds=null,e;return(bl&1)!==0&&e.tag!==0&&Wr(),i=e.pendingLanes,(i&1)!==0?e===$s?qo++:(qo=0,$s=e):qo=0,Wn(),null}function Wr(){if(An!==null){var e=od(bl),t=Tt.transition,n=fe;try{if(Tt.transition=null,fe=16>e?16:e,An===null)var r=!1;else{if(e=An,An=null,bl=0,(oe&6)!==0)throw Error(F(331));var o=oe;for(oe|=4,V=e.current;V!==null;){var i=V,l=i.child;if((V.flags&16)!==0){var u=i.deletions;if(u!==null){for(var a=0;a<u.length;a++){var p=u[a];for(V=p;V!==null;){var v=V;switch(v.tag){case 0:case 11:case 15:Wo(8,v,i)}var _=v.child;if(_!==null)_.return=v,V=_;else for(;V!==null;){v=V;var E=v.sibling,x=v.return;if(gp(v),v===p){V=null;break}if(E!==null){E.return=x,V=E;break}V=x}}}var k=i.alternate;if(k!==null){var S=k.child;if(S!==null){k.child=null;do{var I=S.sibling;S.sibling=null,S=I}while(S!==null)}}V=i}}if((i.subtreeFlags&2064)!==0&&l!==null)l.return=i,V=l;else e:for(;V!==null;){if(i=V,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Wo(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,V=g;break e}V=i.return}}var c=e.current;for(V=c;V!==null;){l=V;var h=l.child;if((l.subtreeFlags&2064)!==0&&h!==null)h.return=l,V=h;else e:for(l=c;V!==null;){if(u=V,(u.flags&2048)!==0)try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(T){Le(u,u.return,T)}if(u===l){V=null;break e}var O=u.sibling;if(O!==null){O.return=u.return,V=O;break e}V=u.return}}if(oe=o,Wn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Gl,e)}catch{}r=!0}return r}finally{fe=n,Tt.transition=t}}return!1}function nf(e,t,n){t=Yr(n,t),t=ip(e,t,1),e=Rn(e,t,1),t=et(),e!==null&&(pi(e,1,t),pt(e,t))}function Le(e,t,n){if(e.tag===3)nf(e,e,n);else for(;t!==null;){if(t.tag===3){nf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fn===null||!Fn.has(r))){e=Yr(n,e),e=lp(t,e,1),t=Rn(t,e,1),e=et(),t!==null&&(pi(t,1,e),pt(t,e));break}}t=t.return}}function Km(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=et(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Ve&n)===n&&(Ue===4||Ue===3&&(Ve&130023424)===Ve&&500>Ae()-Ia?ur(e,0):ja|=n),pt(e,t)}function Tp(e,t){t===0&&((e.mode&1)===0?t=1:(t=Qi,Qi<<=1,(Qi&130023424)===0&&(Qi=4194304)));var n=et();e=pn(e,t),e!==null&&(pi(e,t,n),pt(e,n))}function Gm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tp(e,n)}function Ym(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),Tp(e,n)}var Op;Op=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)at=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return at=!1,Fm(e,t,n);at=(e.flags&131072)!==0}else at=!1,Ce&&(t.flags&1048576)!==0&&Ld(t,jl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gl(e,t),e=t.pendingProps;var o=qr(t,Ze.current);Br(t,n),o=Ta(null,t,r,e,o,n);var i=Oa();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,Ll(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,_a(t),o.updater=tu,t.stateNode=o,o._reactInternals=t,Os(t,r,e,n),t=Ls(null,t,r,!0,i,n)):(t.tag=0,Ce&&i&&ha(t),Je(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zm(r),e=zt(r,e),o){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=qc(null,t,r,e,n);break e;case 11:t=Wc(null,t,r,e,n);break e;case 14:t=Vc(null,t,r,zt(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Ps(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),qc(e,t,r,o,n);case 3:e:{if(cp(t),e===null)throw Error(F(387));r=t.pendingProps,i=t.memoizedState,o=i.element,zd(e,t),Ml(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yr(Error(F(423)),t),t=Qc(e,t,r,n,o);break e}else if(r!==o){o=Yr(Error(F(424)),t),t=Qc(e,t,r,n,o);break e}else for(gt=Mn(t.stateNode.containerInfo.firstChild),yt=t,Ce=!0,Rt=null,n=Dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qr(),r===o){t=hn(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return $d(t),e===null&&Es(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,ws(r,o)?l=null:i!==null&&ws(r,i)&&(t.flags|=32),ap(e,t),Je(e,t,l,n),t.child;case 6:return e===null&&Es(t),null;case 13:return fp(e,t,n);case 4:return ka(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kr(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Wc(e,t,r,o,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ge(Il,r._currentValue),r._currentValue=l,i!==null)if(bt(i.value,l)){if(i.children===o.children&&!ft.current){t=hn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){l=i.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=cn(-1,n&-n),a.tag=2;var p=i.updateQueue;if(p!==null){p=p.shared;var v=p.pending;v===null?a.next=a:(a.next=v.next,v.next=a),p.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),xs(i.return,n,t),u.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(F(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),xs(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Je(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Br(t,n),o=Ot(o),r=r(o),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,o=zt(r,t.pendingProps),o=zt(r.type,o),Vc(e,t,r,o,n);case 15:return up(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),gl(e,t),t.tag=1,dt(r)?(e=!0,Ll(t)):e=!1,Br(t,n),Rd(t,r,o),Os(t,r,o,n),Ls(null,t,r,!0,e,n);case 19:return dp(e,t,n);case 22:return sp(e,t,n)}throw Error(F(156,t.tag))};function Np(e,t){return ed(e,t)}function Xm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,r){return new Xm(e,t,n,r)}function Fa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zm(e){if(typeof e=="function")return Fa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===na)return 11;if(e===ra)return 14}return 2}function $n(e,t){var n=e.alternate;return n===null?(n=xt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Fa(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Nr:return sr(n.children,o,i,t);case ta:l=8,o|=8;break;case Xu:return e=xt(12,n,t,o|2),e.elementType=Xu,e.lanes=i,e;case Zu:return e=xt(13,n,t,o),e.elementType=Zu,e.lanes=i,e;case Ju:return e=xt(19,n,t,o),e.elementType=Ju,e.lanes=i,e;case Ff:return iu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mf:l=10;break e;case Rf:l=9;break e;case na:l=11;break e;case ra:l=14;break e;case Tn:l=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=xt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function sr(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function iu(e,t,n,r){return e=xt(22,e,r,t),e.elementType=Ff,e.lanes=n,e.stateNode={isHidden:!1},e}function Wu(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function Vu(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jm(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xu(0),this.expirationTimes=xu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Da(e,t,n,r,o,i,l,u,a){return e=new Jm(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=xt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_a(i),e}function eg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Or,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Pp(e){if(!e)return bn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(dt(n))return Nd(e,n,t)}return t}function Lp(e,t,n,r,o,i,l,u,a){return e=Da(n,r,!0,e,o,i,l,u,a),e.context=Pp(null),n=e.current,r=et(),o=Dn(n),i=cn(r,o),i.callback=t??null,Rn(n,i,o),e.current.lanes=o,pi(e,o,r),pt(e,r),e}function lu(e,t,n,r){var o=t.current,i=et(),l=Dn(o);return n=Pp(n),t.context===null?t.context=n:t.pendingContext=n,t=cn(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Rn(o,t,l),e!==null&&(Ut(e,o,l,i),pl(e,o,l)),l}function Bl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function rf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $a(e,t){rf(e,t),(e=e.alternate)&&rf(e,t)}function tg(){return null}var Ap=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ua(e){this._internalRoot=e}uu.prototype.render=Ua.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));lu(e,t,null,null)};uu.prototype.unmount=Ua.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pr(function(){lu(null,e,null,null)}),t[dn]=null}};function uu(e){this._internalRoot=e}uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ud();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nn.length&&t!==0&&t<Nn[n].priority;n++);Nn.splice(n,0,e),n===0&&ad(e)}};function ba(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function of(){}function ng(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var p=Bl(l);i.call(p)}}var l=Lp(t,r,e,0,null,!1,!1,"",of);return e._reactRootContainer=l,e[dn]=l.current,ti(e.nodeType===8?e.parentNode:e),pr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var u=r;r=function(){var p=Bl(a);u.call(p)}}var a=Da(e,0,!1,null,null,!1,!1,"",of);return e._reactRootContainer=a,e[dn]=a.current,ti(e.nodeType===8?e.parentNode:e),pr(function(){lu(t,a,n,r)}),a}function au(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var u=o;o=function(){var a=Bl(l);u.call(a)}}lu(t,l,e,o)}else l=ng(n,t,e,o,r);return Bl(l)}id=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mo(t.pendingLanes);n!==0&&(la(t,n|1),pt(t,Ae()),(oe&6)===0&&(Xr=Ae()+500,Wn()))}break;case 13:pr(function(){var r=pn(e,1);if(r!==null){var o=et();Ut(r,e,1,o)}}),$a(e,1)}};ua=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=et();Ut(t,e,134217728,n)}$a(e,134217728)}};ld=function(e){if(e.tag===13){var t=Dn(e),n=pn(e,t);if(n!==null){var r=et();Ut(n,e,t,r)}$a(e,t)}};ud=function(){return fe};sd=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}};as=function(e,t,n){switch(t){case"input":if(ns(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Jl(r);if(!o)throw Error(F(90));$f(r),ns(r,o)}}}break;case"textarea":bf(e,n);break;case"select":t=n.value,t!=null&&$r(e,!!n.multiple,t,!1)}};Kf=za;Gf=pr;var rg={usingClientEntryPoint:!1,Events:[mi,jr,Jl,qf,Qf,za]},jo={findFiberByHostInstance:or,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},og={bundleType:jo.bundleType,version:jo.version,rendererPackageName:jo.rendererPackageName,rendererConfig:jo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zf(e),e===null?null:e.stateNode},findFiberByHostInstance:jo.findFiberByHostInstance||tg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{Gl=ol.inject(og),Gt=ol}catch{}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rg;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ba(t))throw Error(F(200));return eg(e,t,null,n)};_t.createRoot=function(e,t){if(!ba(e))throw Error(F(299));var n=!1,r="",o=Ap;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Da(e,1,!1,null,null,n,!1,r,o),e[dn]=t.current,ti(e.nodeType===8?e.parentNode:e),new Ua(t)};_t.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=Zf(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return pr(e)};_t.hydrate=function(e,t,n){if(!su(t))throw Error(F(200));return au(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!ba(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Ap;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Lp(t,null,e,1,n??null,o,!1,i,l),e[dn]=t.current,ti(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new uu(t)};_t.render=function(e,t,n){if(!su(t))throw Error(F(200));return au(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!su(e))throw Error(F(40));return e._reactRootContainer?(pr(function(){au(null,null,e,!1,function(){e._reactRootContainer=null,e[dn]=null})}),!0):!1};_t.unstable_batchedUpdates=za;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!su(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return au(e,t,n,!1,r)};_t.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=_t})(Lf);var jp,lf=Lf.exports;jp=lf.createRoot,lf.hydrateRoot;const Ip={"tabs:toggle-pin":{label:"Toggle Tab Pin Status",binding:""},"tabs:close":{label:"Close Tab",binding:"mod+shift+w"},"tabs:select-next":{label:"Select Next Tab",binding:"ctrl+tab"},"tabs:select-prev":{label:"Select Previous Tab",binding:"ctrl+shift+tab"}},ig=Object.entries(Ip).map(([e,t])=>({key:e,title:t.label,type:"string",default:t.binding,description:"Keybinding: "+t.label+". Default: `"+t.binding+"`. You need to restart the app for the changes to take effect."})),zp={key:"tabs:inherit-custom-css",title:"Advanced: inherit custom.css styles",default:!1,description:"When turning this on, this plugin will also applies styles in custom.css. You need to restart the app for the changes to take effect.",type:"boolean"},lg={key:"tabs:show-single-tab",title:"Show single tab?",description:"When turned on the tab bar will only show if at least two tabs are open.",type:"boolean",default:!0},ug={key:"tabs:close-button-left",title:"Close tab button on left side?",description:"When turned on the close button will be on the left side of the tab.",type:"boolean",default:!1},sg={key:"tabs:hide-close-all-button",title:"Hide 'Close All' button?",description:"When turned on 'Close All' button at the end of tabs list will be hidden.",type:"boolean",default:!1},ag=[...ig,zp,lg,ug,sg];function Ft(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Zr(e){return!!e&&!!e[wt]}function hr(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===yg}(e)||Array.isArray(e)||!!e[hf]||!!(!((t=e.constructor)===null||t===void 0)&&t[hf])||Ha(e)||Ba(e))}function ci(e,t,n){n===void 0&&(n=!1),no(e)===0?(n?Object.keys:Ka)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function no(e){var t=e[wt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ha(e)?2:Ba(e)?3:0}function Hs(e,t){return no(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cg(e,t){return no(e)===2?e.get(t):e[t]}function Mp(e,t,n){var r=no(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function fg(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ha(e){return mg&&e instanceof Map}function Ba(e){return gg&&e instanceof Set}function rr(e){return e.o||e.t}function Wa(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=vg(e);delete t[wt];for(var n=Ka(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Va(e,t){return t===void 0&&(t=!1),qa(e)||Zr(e)||!hr(e)||(no(e)>1&&(e.set=e.add=e.clear=e.delete=dg),Object.freeze(e),t&&ci(e,function(n,r){return Va(r,!0)},!0)),e}function dg(){Ft(2)}function qa(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Xt(e){var t=wg[e];return t||Ft(18,e),t}function uf(){return fi}function qu(e,t){t&&(Xt("Patches"),e.u=[],e.s=[],e.v=t)}function Wl(e){Bs(e),e.p.forEach(pg),e.p=null}function Bs(e){e===fi&&(fi=e.l)}function sf(e){return fi={p:[],l:fi,h:e,m:!0,_:0}}function pg(e){var t=e[wt];t.i===0||t.i===1?t.j():t.O=!0}function Qu(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Xt("ES5").S(t,e,r),r?(n[wt].P&&(Wl(t),Ft(4)),hr(e)&&(e=Vl(t,e),t.l||ql(t,e)),t.u&&Xt("Patches").M(n[wt].t,e,t.u,t.s)):e=Vl(t,n,[]),Wl(t),t.u&&t.v(t.u,t.s),e!==Rp?e:void 0}function Vl(e,t,n){if(qa(t))return t;var r=t[wt];if(!r)return ci(t,function(i,l){return af(e,r,t,i,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ql(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Wa(r.k):r.o;ci(r.i===3?new Set(o):o,function(i,l){return af(e,r,o,i,l,n)}),ql(e,o,!1),n&&e.u&&Xt("Patches").R(r,n,e.u,e.s)}return r.o}function af(e,t,n,r,o,i){if(Zr(o)){var l=Vl(e,o,i&&t&&t.i!==3&&!Hs(t.D,r)?i.concat(r):void 0);if(Mp(n,r,l),!Zr(l))return;e.m=!1}if(hr(o)&&!qa(o)){if(!e.h.F&&e._<1)return;Vl(e,o),t&&t.A.l||ql(e,o)}}function ql(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Va(t,n)}function Ku(e,t){var n=e[wt];return(n?rr(n):e)[t]}function cf(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ws(e){e.P||(e.P=!0,e.l&&Ws(e.l))}function Gu(e){e.o||(e.o=Wa(e.t))}function Vs(e,t,n){var r=Ha(t)?Xt("MapSet").N(t,n):Ba(t)?Xt("MapSet").T(t,n):e.g?function(o,i){var l=Array.isArray(o),u={i:l?1:0,A:i?i.A:uf(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},a=u,p=qs;l&&(a=[u],p=Fo);var v=Proxy.revocable(a,p),_=v.revoke,E=v.proxy;return u.k=E,u.j=_,E}(t,n):Xt("ES5").J(t,n);return(n?n.A:uf()).p.push(r),r}function hg(e){return Zr(e)||Ft(22,e),function t(n){if(!hr(n))return n;var r,o=n[wt],i=no(n);if(o){if(!o.P&&(o.i<4||!Xt("ES5").K(o)))return o.t;o.I=!0,r=ff(n,i),o.I=!1}else r=ff(n,i);return ci(r,function(l,u){o&&cg(o.t,l)===u||Mp(r,l,t(u))}),i===3?new Set(r):r}(e)}function ff(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Wa(e)}var df,fi,Qa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mg=typeof Map<"u",gg=typeof Set<"u",pf=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rp=Qa?Symbol.for("immer-nothing"):((df={})["immer-nothing"]=!0,df),hf=Qa?Symbol.for("immer-draftable"):"__$immer_draftable",wt=Qa?Symbol.for("immer-state"):"__$immer_state",yg=""+Object.prototype.constructor,Ka=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,vg=Object.getOwnPropertyDescriptors||function(e){var t={};return Ka(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},wg={},qs={get:function(e,t){if(t===wt)return e;var n=rr(e);if(!Hs(n,t))return function(o,i,l){var u,a=cf(i,l);return a?"value"in a?a.value:(u=a.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!hr(r)?r:r===Ku(e.t,t)?(Gu(e),e.o[t]=Vs(e.A.h,r,e)):r},has:function(e,t){return t in rr(e)},ownKeys:function(e){return Reflect.ownKeys(rr(e))},set:function(e,t,n){var r=cf(rr(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Ku(rr(e),t),i=o?.[wt];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(fg(n,o)&&(n!==void 0||Hs(e.t,t)))return!0;Gu(e),Ws(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Ku(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Gu(e),Ws(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=rr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Ft(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ft(12)}},Fo={};ci(qs,function(e,t){Fo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Fo.deleteProperty=function(e,t){return Fo.set.call(this,e,t,void 0)},Fo.set=function(e,t,n){return qs.set.call(this,e[0],t,n,e[0])};var Sg=function(){function e(n){var r=this;this.g=pf,this.F=!0,this.produce=function(o,i,l){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var a=r;return function(S){var I=this;S===void 0&&(S=u);for(var g=arguments.length,c=Array(g>1?g-1:0),h=1;h<g;h++)c[h-1]=arguments[h];return a.produce(S,function(O){var T;return(T=i).call.apply(T,[I,O].concat(c))})}}var p;if(typeof i!="function"&&Ft(6),l!==void 0&&typeof l!="function"&&Ft(7),hr(o)){var v=sf(r),_=Vs(r,o,void 0),E=!0;try{p=i(_),E=!1}finally{E?Wl(v):Bs(v)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return qu(v,l),Qu(S,v)},function(S){throw Wl(v),S}):(qu(v,l),Qu(p,v))}if(!o||typeof o!="object"){if((p=i(o))===void 0&&(p=o),p===Rp&&(p=void 0),r.F&&Va(p,!0),l){var x=[],k=[];Xt("Patches").M(o,p,x,k),l(x,k)}return p}Ft(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(p){for(var v=arguments.length,_=Array(v>1?v-1:0),E=1;E<v;E++)_[E-1]=arguments[E];return r.produceWithPatches(p,function(x){return o.apply(void 0,[x].concat(_))})};var l,u,a=r.produce(o,i,function(p,v){l=p,u=v});return typeof Promise<"u"&&a instanceof Promise?a.then(function(p){return[p,l,u]}):[a,l,u]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){hr(n)||Ft(8),Zr(n)&&(n=hg(n));var r=sf(this),o=Vs(this,n,void 0);return o[wt].C=!0,Bs(r),o},t.finishDraft=function(n,r){var o=n&&n[wt],i=o.A;return qu(i,r),Qu(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!pf&&Ft(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var l=Xt("Patches").$;return Zr(n)?l(n,r):this.produce(n,function(u){return l(u,r)})},e}(),St=new Sg,_g=St.produce;St.produceWithPatches.bind(St);St.setAutoFreeze.bind(St);St.setUseProxies.bind(St);St.applyPatches.bind(St);St.createDraft.bind(St);St.finishDraft.bind(St);const il=_g;function kg(){var e=ct.exports.useRef(!1),t=ct.exports.useCallback(function(){return e.current},[]);return ct.exports.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function mf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function gf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Cg=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var l=i[o];if(!(l==="_owner"&&t.$$typeof)&&!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n};const Eg=Cg;var xg=function(e,t,n){var r=ct.exports.useRef(void 0);(!r.current||!n(t,r.current))&&(r.current=t),ct.exports.useEffect(e,r.current)};const Tg=xg;var Og=function(e,t){Tg(e,t,Eg)};const Ng=Og;var Pg=function(e,t){t===void 0&&(t=!0);var n=ct.exports.useState(!1),r=n[0],o=n[1];return ct.exports.useEffect(function(){var i=function(){return o(!0)},l=function(){return o(!1)};t&&e&&e.current&&(mf(e.current,"mouseover",i),mf(e.current,"mouseout",l));var u=e.current;return function(){t&&u&&(gf(u,"mouseover",i),gf(u,"mouseout",l))}},[t,e]),r};const Lg=Pg;var Ag=function(e){var t=ct.exports.useRef(e);return t.current=e,t};const jg=Ag;var Ga={exports:{}},cu={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ig=ct.exports,zg=Symbol.for("react.element"),Mg=Symbol.for("react.fragment"),Rg=Object.prototype.hasOwnProperty,Fg=Ig.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dg={key:!0,ref:!0,__self:!0,__source:!0};function Fp(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Rg.call(t,r)&&!Dg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:zg,type:e,key:i,ref:l,props:o,_owner:Fg.current}}cu.Fragment=Mg;cu.jsx=Fp;cu.jsxs=Fp;(function(e){e.exports=cu})(Ga);const De=Ga.exports.jsx,ll=Ga.exports.jsxs;var $g=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var l=i[o];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n};const Ug="1.0.0",bg=()=>{const e=kg(),[t,n]=te.useState("light");return te.useEffect(()=>(n(top.document.querySelector("html")?.getAttribute("data-theme")??(matchMedia("prefers-color-scheme: dark").matches?"dark":"light")),logseq.App.onThemeModeChanged(r=>{e()&&n(r.mode)})),[e]),t};async function Hg(e){if(!e)return null;const t=await logseq.Editor.getPage(e);if(t&&t.alias?.length>0&&!(t.properties?.alias.length>0)){const n=t.alias[0]?.id;if(n)return await logseq.Editor.getPage(n)}return t}const Bg=e=>new Promise(t=>setTimeout(t,e));function Dp(e){return"logseq-plugin-tabs:"+Ug+"/"+e}const Wg=e=>{const t=localStorage.getItem(Dp(e));if(t)try{return JSON.parse(t)}catch{}return null},Vg=(e,t)=>{localStorage.setItem(Dp(t),JSON.stringify(e))};function qg(){const[e,t]=ct.exports.useState(null),n=async()=>{const r=await logseq.App.getCurrentGraph();t(r?.path??null)};return te.useEffect(()=>(n(),logseq.App.onCurrentGraphChanged(()=>{n()})),[]),e}function Qg(){const[e,t]=te.useState([]),n=qg();return te.useEffect(()=>{if(n){const o=Wg(n);t(o??[])}},[n]),[e,o=>{if(n&&!$g(e,o))return Vg(o,n),t(o)}]}function Kg(e,t){let n=null;return(...r)=>{n&&clearTimeout(n),n=window.setTimeout(()=>{e(...r),n=null},t)}}function $p(e,t=300){const n=Dt(e);return ct.exports.useMemo(()=>Kg(n,t),[n,t])}function Gg(){const[e,t]=te.useState(top?.logseq.api.get_state_from_store("route-match"));return te.useEffect(()=>logseq.App.onRouteChanged(t),[]),e}function Yg(e){const[t,n]=te.useState(logseq.settings?.[e]);return te.useEffect(()=>logseq.onSettingsChanged(()=>{n(logseq.settings?.[e])})),t}function Xg(){const e=Yg(zp.key);te.useEffect(()=>{const t=top?.document.head;if(t&&e){const n=()=>{let o=document.getElementById("logseq-custom-theme-id");o||(o=document.createElement("link"),o.id="logseq-custom-theme-id",o.rel="stylesheet",o.media="all",document.head.append(o));const i=top?.document.querySelector("#logseq-custom-theme-id")?.href;i&&(o.href=i)},r=new MutationObserver(o=>{for(const i of o)for(const l of i.addedNodes)if(l.nodeName==="LINK"&&l.id==="logseq-custom-theme-id"){n();break}});return r.observe(t,{childList:!0}),n(),()=>{r.disconnect()}}e||document.getElementById("logseq-custom-theme-id")?.remove()})}function Zg(e,t){const n=Gg();Xg();const r=e&&(!n?.template||["/","/all-journals","/page/:name","/file/:path"].includes(n?.template)),o=te.useRef(document.documentElement),i=Lg(o);te.useEffect(()=>{logseq.provideStyle({key:"tabs--top-padding",style:`
#main-content-container {
padding-top: ${r?"64px":""};
}`}),logseq.showMainUI({autoFocus:!1});const l=top.document.querySelector("#head.cp__header"),u=top.document.querySelector("#main-content-container");if(!u)return;const a=()=>{const{left:v,width:_}=u.getBoundingClientRect(),E=_-10;logseq.setMainUIInlineStyle({zIndex:9,userSelect:"none",position:"fixed",left:`${v}px`,top:`${l.offsetHeight+2}px`,height:r?"28px":"0px",width:i?"100%":t+"px",maxWidth:E+"px",WebkitAppRegion:"drag"})};a();const p=new ResizeObserver(a);return p.observe(u),()=>{p.disconnect()}},[r,t,i])}const Qs=()=>navigator.userAgent.includes("Mac");function Dt(e){const t=te.useRef();return te.useLayoutEffect(()=>{t.current=e}),te.useCallback((...n)=>t.current.apply(void 0,n),[])}const Jg=e=>{const[t,n]=te.useState();return te.useEffect(()=>{const r=()=>n(e.current?.scrollWidth||0),o=new MutationObserver(()=>{r(),setTimeout(r,100),setTimeout(r,200),setTimeout(r,300)});return e.current&&(n(e.current.scrollWidth||0),o.observe(e.current,{childList:!0,subtree:!0,attributes:!0})),()=>o.disconnect()},[e]),t},ey=e=>{top?.document.querySelector("#main-container")?.scrollTo(e)},Ql=e=>Boolean(e.page),ty=()=>{const e=$p(Dt(()=>{window.document.hasFocus()&&(top.focus(),logseq.Editor.restoreEditingCursor())}),10);te.useEffect(()=>{let t=0;return t=setInterval(e,1e3),window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e),clearInterval(t)}})},yf=()=>De("svg",{height:"1em",width:"1em",viewBox:"0 0 122.878 122.88",fill:"currentColor",children:De("g",{children:De("path",{d:"M1.426,8.313c-1.901-1.901-1.901-4.984,0-6.886c1.901-1.902,4.984-1.902,6.886,0l53.127,53.127l53.127-53.127 c1.901-1.902,4.984-1.902,6.887,0c1.901,1.901,1.901,4.985,0,6.886L68.324,61.439l53.128,53.128c1.901,1.901,1.901,4.984,0,6.886 c-1.902,1.902-4.985,1.902-6.887,0L61.438,68.326L8.312,121.453c-1.901,1.902-4.984,1.902-6.886,0 c-1.901-1.901-1.901-4.984,0-6.886l53.127-53.128L1.426,8.313L1.426,8.313z"})})});function ut(e,t){function n(r,o){return r!=null&&o!=null&&r.toLowerCase()===o.toLowerCase()}return e?.page||t?.page?n(e?.uuid,t?.uuid):Boolean(n(e?.originalName,t?.originalName)||n(e?.name,t?.name)||e?.alias?.includes(t?.id))}const ny=te.forwardRef(({activeTab:e,onClickTab:t,tabs:n,closeButtonLeft:r,hideCloseAllButton:o,showSingleTab:i,onCloseTab:l,onCloseAllTabs:u,onPinTab:a,onSwapTab:p},v)=>{const[_,E]=te.useState();te.useEffect(()=>{const S=()=>{E(void 0)};return document.addEventListener("dragend",S),()=>{document.removeEventListener("dragend",S)}},[]);const x=$p(p,0);return i||0<n.filter(S=>S.pinned).length||1<n.length?ll("div",{ref:v,"data-dragging":_!=null,className:"logseq-tab-wrapper flex items-center h-full px-1",style:{width:"fit-content"},onMouseDown:S=>{S.button===1&&S.preventDefault()},children:[n.map(S=>{const I=ut(S,e),g=T=>{T.stopPropagation(),l(S)},c=T=>{_&&(T.preventDefault(),T.dataTransfer.dropEffect="move",x(S,_))},h=T=>{T.dataTransfer.effectAllowed="move",E(S),T.stopPropagation()},O=S.properties?.icon?S.properties?.icon:Ql(S)?"B":"P";return ll("div",{onClick:()=>t(S),onAuxClick:g,onDoubleClick:()=>a(S),onContextMenu:T=>{T.preventDefault(),console.log("Not implemented yet")},"data-active":I,"data-pinned":S.pinned,"data-dragging":_===S,draggable:!0,onDragOver:c,onDragStart:h,className:"logseq-tab group",children:[De("div",{className:"text-xs rounded border mr-1 px-1 inline light:bg-white dark:bg-dark",children:O}),r&&S.pinned?De("span",{children:"\u{1F4CC}"}):r&&De("button",{className:"close-button",onClick:g,children:De(yf,{})}),ll("span",{className:"logseq-tab-title",children:[S.originalName??S.name," ",Ql(S)&&ll("span",{title:S.content,children:[De("strong",{className:"text-blue-600",children:"\u2022"}),De("span",{className:"mx-1",children:S.content})]})]}),!r&&S.pinned?De("span",{children:"\u{1F4CC}"}):!r&&De("button",{className:"close-button",onClick:g,children:De(yf,{})})]},[S.originalName,S.uuid].join("-"))}),!o&&De("div",{onClick:()=>u(!0),draggable:!1,className:"logseq-tab close-all group",children:De("span",{className:"logseq-tab-title",children:"Close All"})},"Close All")]}):null});function vf(e){const t=e;return ry(t)??oy(t)??iy(t)??ly(t)}function ry(e){const t=e;if(t.tagName==="A"&&t.hasAttribute("data-ref")&&(t.className.includes("page-ref")||t.className.includes("tag")))return e.getAttribute("data-ref")}function oy(e){const t=e;if(t.tagName==="A"&&t.querySelector(".page-icon"))return Array.from(e.childNodes).find(n=>n.nodeName==="#text")?.textContent?.trim()}function iy(e){const t=e;if(t.tagName==="A"&&t.closest(".references")&&t.getAttribute("href")?.startsWith("#/page/"))return Array.from(e.childNodes).find(n=>n.nodeName==="#text")?.textContent?.trim()}function Up(e){return e.closest(".search-results-wrap .menu-link")}function ly(e){return Up(e)?.querySelector("[data-page-ref]")?.dataset.pageRef}function uy(e){return Up(e)?.querySelector("[data-block-ref]")?.dataset.blockRef}function wf(e){return e.getAttribute("blockid")??e.querySelector("[blockid]")?.getAttribute("blockid")??uy(e)}function Sf(e){e.stopPropagation(),e.stopImmediatePropagation()}function sy(e){const t=te.useCallback(async(n,r)=>{let o=null;if(vf(r)){Sf(n);const i=await Hg(vf(r));i&&(o=i)}else if(wf(r)){Sf(n);const i=wf(r);if(i){const l=await logseq.Editor.getBlock(i);if(l){const u=await logseq.Editor.getPage(l?.page.id);setTimeout(async()=>{await logseq.Editor.getBlockProperty(i,"id")||logseq.Editor.upsertBlockProperty(i,"id",i)},100),u&&(o={...u,...l})}}}o&&e(o,!1)},[e]);te.useEffect(()=>{const n=async r=>{const o=r.composedPath()[0],i=Qs()?r.metaKey:r.ctrlKey,l=r.button==1;(i||l)&&t(r,o)};return top?.document.addEventListener("mousedown",n,!0),()=>{top?.document.removeEventListener("mousedown",n,!0)}},[t]),te.useEffect(()=>{const n=async r=>{const o=Qs()?r.metaKey:r.ctrlKey;if(r.key==="Enter"&&o){const i=top?.document.querySelector(".search-results-wrap .menu-link.chosen");i&&t(r,i)}};return top?.document.addEventListener("keydown",n,!0),()=>{top?.document.removeEventListener("keydown",n,!0)}},[t])}function ay(e){const[t,n]=te.useState(null),r=te.useRef(t),o=Dt(async()=>{const i=await logseq.Editor.getCurrentPage();let l=null;i&&(l=e.find(u=>ut(u,i))??null,l||(l=await logseq.Editor.getPage(i.name??i?.page.id)),l={...l,...i},l.scrollTop&&ey({top:l.scrollTop}),r.current=l),n(l)});return te.useEffect(()=>logseq.App.onRouteChanged(o),[o]),te.useEffect(()=>{let i=!1;async function l(){await Bg(1500),!r.current&&!i&&(await o(),await l())}return l(),()=>{i=!0}},[o]),[t,n]}const _f=e=>{e.sort((t,n)=>t.pinned&&!n.pinned?-1:!t.pinned&&n.pinned?1:0)},kf=new Set;function Kl(e,t){kf.has(e.key)||(kf.add(e.key),logseq.App.registerCommandPalette(e,t))}const ul=(e,t)=>{const n=Dt(t);te.useEffect(()=>{if((logseq.settings?.[e]).trim()!==""){const o={key:e,label:Ip[e].label,keybinding:{binding:logseq.settings?.[e],mode:"global"}};Kl(o,n)}},[])},cy=e=>{const t=Dt(e);te.useEffect(()=>{for(let n=1;n<=9;n++){const o={key:`tabs-select-nth-tab-${n}`,label:`Select tab ${n}`,keybinding:{binding:`mod+${n}`,mode:"non-editing"}};Kl(o,()=>{t(n)})}},[])},fy=e=>{const t=Dt(e);te.useEffect(()=>{Kl({key:"tabs-close-all",label:"Close all tabs"},()=>{t(!1)})},[]),te.useEffect(()=>{Kl({key:"tabs-close-others",label:"Close other tabs"},()=>{t(!0)})},[])};function dy(){const[e,t]=Qg(),[n,r]=ay(e),o=te.useRef(),i=jg(e),l=!!logseq.settings?.["tabs:show-single-tab"],u=!!logseq.settings?.["tabs:close-button-left"],a=!!logseq.settings?.["tabs:hide-close-all-button"],p=Dt((c,h)=>{const O=e.findIndex(A=>ut(A,c));if(e[O]?.pinned&&!h)return;const T=[...e];if(T.splice(O,1),t(T),T.length===0)logseq.App.pushState("home");else if(ut(c,n)){const A=T[Math.min(T.length-1,O)];r(A)}}),v=()=>e.findIndex(c=>ut(c,o.current)),_=Dt(c=>{const h=e.filter(O=>O.pinned||c&&ut(O,o.current));t(h),c||logseq.App.pushState("home")}),E=Dt(async c=>{if(Ql(c)&&c.uuid&&!await logseq.Editor.getBlock(c.uuid)){logseq.UI.showMsg(`The target block ${c.content} is not found!`,"error",{timeout:1e3}),p(c,!0);return}r(c);const h=v();if(h!==-1){const O=top?.document.querySelector("#main-container")?.scrollTop;t(il(e,T=>{T[h].scrollTop=O}))}}),x=Dt((c,h=!1)=>{if(c){const O=e.find(T=>ut(c,T));O?h=!0:t([...e,c]),h&&E({...c,pinned:O?.pinned})}});sy(x),Ng(()=>{let c=0,h=i.current;const O=o.current;return n&&(h=il(e,T=>{if(e.every(A=>!ut(A,n))){const A=T.findIndex(C=>ut(C,O)),m=T[A]?.pinned;A===-1||m?T.push(n):T[A]=n}else{const A=T.findIndex(m=>ut(m,n));T[A]=n}}),c=setTimeout(async()=>{const T=await logseq.Editor.getCurrentPage();ut(n,T)||logseq.App.pushState("page",{name:Ql(n)?n.uuid:n.originalName??n.name})},200)),o.current=n,t(h),()=>{c&&clearTimeout(c)}},[n??{}]);const k=Dt(c=>{t(il(e,h=>{const O=h.findIndex(T=>ut(T,c));h[O].pinned=!h[O].pinned,_f(h)}))}),S=(c,h)=>{t(il(e,O=>{const T=O.findIndex(m=>ut(m,c)),A=O.findIndex(m=>ut(m,h));O[T]=h,O[A]=c,_f(O)}))},I=te.useRef(null),g=Jg(I);return Zg(e.length>0,g),te.useEffect(()=>{n&&I&&setTimeout(()=>{I.current?.querySelector('[data-active="true"]')?.scrollIntoView({behavior:"smooth"})},100)},[n,I]),ul("tabs:toggle-pin",()=>{o.current&&k(o.current)}),ul("tabs:close",()=>{o.current&&p(o.current)}),ul("tabs:select-next",()=>{let c=v()??-1;c=(c+1)%e.length,E(e[c])}),ul("tabs:select-prev",()=>{let c=v()??-1;c=(c-1+e.length)%e.length,E(e[c])}),cy(c=>{c>0&&c<=e.length&&E(e[c-1])}),fy(_),De(ny,{ref:I,onClickTab:E,activeTab:n,tabs:e,closeButtonLeft:u,hideCloseAllButton:a,showSingleTab:l,onSwapTab:S,onPinTab:k,onCloseTab:p,onCloseAllTabs:_})}function py(){const e=bg();return ty(),De("main",{style:{width:"100vw",height:"100vh",WebkitAppRegion:"drag"},className:`${e}`,children:De(dy,{})})}function hy(){const e=logseq.baseInfo.id;console.info(`#${e}: MAIN`);const t=Qs();logseq.provideStyle(`
[data-active-keystroke=${t?"Meta":"Control"} i]
:is(.block-ref,.page-ref,a.tag) {
cursor: n-resize
}
`),jp(document.getElementById("app")).render(De(te.StrictMode,{children:De(py,{})})),parent.document.body.classList.add("is-plugin-tabs-enabled"),logseq.beforeunload(async()=>{parent.document.body.classList.remove("is-plugin-tabs-enabled")}),console.info(`#${e}: MAIN DONE`)}logseq.useSettingsSchema(ag).ready(hy).catch(console.error);