@morphql/playground 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var BT=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports);var P2=BT((rn,ln)=>{(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(u){if(u.ep)return;u.ep=!0;const c=s(u);fetch(u.href,c)}})();function no(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jf={exports:{}},Ar={};var om;function jT(){if(om)return Ar;om=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function s(r,u,c){var h=null;if(c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),"key"in u){c={};for(var p in u)p!=="key"&&(c[p]=u[p])}else c=u;return u=c.ref,{$$typeof:i,type:r,key:h,ref:u!==void 0?u:null,props:c}}return Ar.Fragment=n,Ar.jsx=s,Ar.jsxs=s,Ar}var cm;function DT(){return cm||(cm=1,jf.exports=jT()),jf.exports}var et=DT(),Df={exports:{}},Tt={};var fm;function PT(){if(fm)return Tt;fm=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),R=Symbol.iterator;function q(A){return A===null||typeof A!="object"?null:(A=R&&A[R]||A["@@iterator"],typeof A=="function"?A:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,O={};function b(A,j,$){this.props=A,this.context=j,this.refs=O,this.updater=$||K}b.prototype.isReactComponent={},b.prototype.setState=function(A,j){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,j,"setState")},b.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function N(){}N.prototype=b.prototype;function P(A,j,$){this.props=A,this.context=j,this.refs=O,this.updater=$||K}var z=P.prototype=new N;z.constructor=P,Q(z,b.prototype),z.isPureReactComponent=!0;var Z=Array.isArray;function I(){}var C={H:null,A:null,T:null,S:null},y=Object.prototype.hasOwnProperty;function S(A,j,$){var J=$.ref;return{$$typeof:i,type:A,key:j,ref:J!==void 0?J:null,props:$}}function m(A,j){return S(A.type,j,A.props)}function L(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function M(A){var j={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function($){return j[$]})}var W=/\/+/g;function at(A,j){return typeof A=="object"&&A!==null&&A.key!=null?M(""+A.key):j.toString(36)}function it(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(I,I):(A.status="pending",A.then(function(j){A.status==="pending"&&(A.status="fulfilled",A.value=j)},function(j){A.status==="pending"&&(A.status="rejected",A.reason=j)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function k(A,j,$,J,lt){var st=typeof A;(st==="undefined"||st==="boolean")&&(A=null);var ht=!1;if(A===null)ht=!0;else switch(st){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(A.$$typeof){case i:case n:ht=!0;break;case T:return ht=A._init,k(ht(A._payload),j,$,J,lt)}}if(ht)return lt=lt(A),ht=J===""?"."+at(A,0):J,Z(lt)?($="",ht!=null&&($=ht.replace(W,"$&/")+"/"),k(lt,j,$,"",function(Nt){return Nt})):lt!=null&&(L(lt)&&(lt=m(lt,$+(lt.key==null||A&&A.key===lt.key?"":(""+lt.key).replace(W,"$&/")+"/")+ht)),j.push(lt)),1;ht=0;var ct=J===""?".":J+":";if(Z(A))for(var rt=0;rt<A.length;rt++)J=A[rt],st=ct+at(J,rt),ht+=k(J,j,$,st,lt);else if(rt=q(A),typeof rt=="function")for(A=rt.call(A),rt=0;!(J=A.next()).done;)J=J.value,st=ct+at(J,rt++),ht+=k(J,j,$,st,lt);else if(st==="object"){if(typeof A.then=="function")return k(it(A),j,$,J,lt);throw j=String(A),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return ht}function F(A,j,$){if(A==null)return A;var J=[],lt=0;return k(A,J,"","",function(st){return j.call($,st,lt++)}),J}function nt(A){if(A._status===-1){var j=A._result;j=j(),j.then(function($){(A._status===0||A._status===-1)&&(A._status=1,A._result=$)},function($){(A._status===0||A._status===-1)&&(A._status=2,A._result=$)}),A._status===-1&&(A._status=0,A._result=j)}if(A._status===1)return A._result.default;throw A._result}var tt=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},_t={map:F,forEach:function(A,j,$){F(A,function(){j.apply(this,arguments)},$)},count:function(A){var j=0;return F(A,function(){j++}),j},toArray:function(A){return F(A,function(j){return j})||[]},only:function(A){if(!L(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Tt.Activity=v,Tt.Children=_t,Tt.Component=b,Tt.Fragment=s,Tt.Profiler=u,Tt.PureComponent=P,Tt.StrictMode=r,Tt.Suspense=d,Tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Tt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return C.H.useMemoCache(A)}},Tt.cache=function(A){return function(){return A.apply(null,arguments)}},Tt.cacheSignal=function(){return null},Tt.cloneElement=function(A,j,$){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var J=Q({},A.props),lt=A.key;if(j!=null)for(st in j.key!==void 0&&(lt=""+j.key),j)!y.call(j,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&j.ref===void 0||(J[st]=j[st]);var st=arguments.length-2;if(st===1)J.children=$;else if(1<st){for(var ht=Array(st),ct=0;ct<st;ct++)ht[ct]=arguments[ct+2];J.children=ht}return S(A.type,lt,J)},Tt.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},Tt.createElement=function(A,j,$){var J,lt={},st=null;if(j!=null)for(J in j.key!==void 0&&(st=""+j.key),j)y.call(j,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(lt[J]=j[J]);var ht=arguments.length-2;if(ht===1)lt.children=$;else if(1<ht){for(var ct=Array(ht),rt=0;rt<ht;rt++)ct[rt]=arguments[rt+2];lt.children=ct}if(A&&A.defaultProps)for(J in ht=A.defaultProps,ht)lt[J]===void 0&&(lt[J]=ht[J]);return S(A,st,lt)},Tt.createRef=function(){return{current:null}},Tt.forwardRef=function(A){return{$$typeof:p,render:A}},Tt.isValidElement=L,Tt.lazy=function(A){return{$$typeof:T,_payload:{_status:-1,_result:A},_init:nt}},Tt.memo=function(A,j){return{$$typeof:_,type:A,compare:j===void 0?null:j}},Tt.startTransition=function(A){var j=C.T,$={};C.T=$;try{var J=A(),lt=C.S;lt!==null&<($,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,tt)}catch(st){tt(st)}finally{j!==null&&$.types!==null&&(j.types=$.types),C.T=j}},Tt.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Tt.use=function(A){return C.H.use(A)},Tt.useActionState=function(A,j,$){return C.H.useActionState(A,j,$)},Tt.useCallback=function(A,j){return C.H.useCallback(A,j)},Tt.useContext=function(A){return C.H.useContext(A)},Tt.useDebugValue=function(){},Tt.useDeferredValue=function(A,j){return C.H.useDeferredValue(A,j)},Tt.useEffect=function(A,j){return C.H.useEffect(A,j)},Tt.useEffectEvent=function(A){return C.H.useEffectEvent(A)},Tt.useId=function(){return C.H.useId()},Tt.useImperativeHandle=function(A,j,$){return C.H.useImperativeHandle(A,j,$)},Tt.useInsertionEffect=function(A,j){return C.H.useInsertionEffect(A,j)},Tt.useLayoutEffect=function(A,j){return C.H.useLayoutEffect(A,j)},Tt.useMemo=function(A,j){return C.H.useMemo(A,j)},Tt.useOptimistic=function(A,j){return C.H.useOptimistic(A,j)},Tt.useReducer=function(A,j,$){return C.H.useReducer(A,j,$)},Tt.useRef=function(A){return C.H.useRef(A)},Tt.useState=function(A){return C.H.useState(A)},Tt.useSyncExternalStore=function(A,j,$){return C.H.useSyncExternalStore(A,j,$)},Tt.useTransition=function(){return C.H.useTransition()},Tt.version="19.2.4",Tt}var hm;function jh(){return hm||(hm=1,Df.exports=PT()),Df.exports}var pt=jh();const Ra=no(pt);var Pf={exports:{}},Or={},qf={exports:{}},Gf={};var dm;function qT(){return dm||(dm=1,(function(i){function n(k,F){var nt=k.length;k.push(F);t:for(;0<nt;){var tt=nt-1>>>1,_t=k[tt];if(0<u(_t,F))k[tt]=F,k[nt]=_t,nt=tt;else break t}}function s(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var F=k[0],nt=k.pop();if(nt!==F){k[0]=nt;t:for(var tt=0,_t=k.length,A=_t>>>1;tt<A;){var j=2*(tt+1)-1,$=k[j],J=j+1,lt=k[J];if(0>u($,nt))J<_t&&0>u(lt,$)?(k[tt]=lt,k[J]=nt,tt=J):(k[tt]=$,k[j]=nt,tt=j);else if(J<_t&&0>u(lt,nt))k[tt]=lt,k[J]=nt,tt=J;else break t}}return F}function u(k,F){var nt=k.sortIndex-F.sortIndex;return nt!==0?nt:k.id-F.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;i.unstable_now=function(){return c.now()}}else{var h=Date,p=h.now();i.unstable_now=function(){return h.now()-p}}var d=[],_=[],T=1,v=null,R=3,q=!1,K=!1,Q=!1,O=!1,b=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function z(k){for(var F=s(_);F!==null;){if(F.callback===null)r(_);else if(F.startTime<=k)r(_),F.sortIndex=F.expirationTime,n(d,F);else break;F=s(_)}}function Z(k){if(Q=!1,z(k),!K)if(s(d)!==null)K=!0,I||(I=!0,M());else{var F=s(_);F!==null&&it(Z,F.startTime-k)}}var I=!1,C=-1,y=5,S=-1;function m(){return O?!0:!(i.unstable_now()-S<y)}function L(){if(O=!1,I){var k=i.unstable_now();S=k;var F=!0;try{t:{K=!1,Q&&(Q=!1,N(C),C=-1),q=!0;var nt=R;try{e:{for(z(k),v=s(d);v!==null&&!(v.expirationTime>k&&m());){var tt=v.callback;if(typeof tt=="function"){v.callback=null,R=v.priorityLevel;var _t=tt(v.expirationTime<=k);if(k=i.unstable_now(),typeof _t=="function"){v.callback=_t,z(k),F=!0;break e}v===s(d)&&r(d),z(k)}else r(d);v=s(d)}if(v!==null)F=!0;else{var A=s(_);A!==null&&it(Z,A.startTime-k),F=!1}}break t}finally{v=null,R=nt,q=!1}F=void 0}}finally{F?M():I=!1}}}var M;if(typeof P=="function")M=function(){P(L)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,at=W.port2;W.port1.onmessage=L,M=function(){at.postMessage(null)}}else M=function(){b(L,0)};function it(k,F){C=b(function(){k(i.unstable_now())},F)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(k){k.callback=null},i.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<k?Math.floor(1e3/k):5},i.unstable_getCurrentPriorityLevel=function(){return R},i.unstable_next=function(k){switch(R){case 1:case 2:case 3:var F=3;break;default:F=R}var nt=R;R=F;try{return k()}finally{R=nt}},i.unstable_requestPaint=function(){O=!0},i.unstable_runWithPriority=function(k,F){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var nt=R;R=k;try{return F()}finally{R=nt}},i.unstable_scheduleCallback=function(k,F,nt){var tt=i.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?tt+nt:tt):nt=tt,k){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=nt+_t,k={id:T++,callback:F,priorityLevel:k,startTime:nt,expirationTime:_t,sortIndex:-1},nt>tt?(k.sortIndex=nt,n(_,k),s(d)===null&&k===s(_)&&(Q?(N(C),C=-1):Q=!0,it(Z,nt-tt))):(k.sortIndex=_t,n(d,k),K||q||(K=!0,I||(I=!0,M()))),k},i.unstable_shouldYield=m,i.unstable_wrapCallback=function(k){var F=R;return function(){var nt=R;R=F;try{return k.apply(this,arguments)}finally{R=nt}}}})(Gf)),Gf}var pm;function GT(){return pm||(pm=1,qf.exports=qT()),qf.exports}var Hf={exports:{}},Me={};var _m;function HT(){if(_m)return Me;_m=1;var i=jh();function n(d){var _="https://react.dev/errors/"+d;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)_+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+d+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(n(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(d,_,T){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:d,containerInfo:_,implementation:T}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(d,_){if(d==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}return Me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Me.createPortal=function(d,_){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(n(299));return c(d,_,null,T)},Me.flushSync=function(d){var _=h.T,T=r.p;try{if(h.T=null,r.p=2,d)return d()}finally{h.T=_,r.p=T,r.d.f()}},Me.preconnect=function(d,_){typeof d=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,r.d.C(d,_))},Me.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Me.preinit=function(d,_){if(typeof d=="string"&&_&&typeof _.as=="string"){var T=_.as,v=p(T,_.crossOrigin),R=typeof _.integrity=="string"?_.integrity:void 0,q=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;T==="style"?r.d.S(d,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:v,integrity:R,fetchPriority:q}):T==="script"&&r.d.X(d,{crossOrigin:v,integrity:R,fetchPriority:q,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},Me.preinitModule=function(d,_){if(typeof d=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var T=p(_.as,_.crossOrigin);r.d.M(d,{crossOrigin:T,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _==null&&r.d.M(d)},Me.preload=function(d,_){if(typeof d=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var T=_.as,v=p(T,_.crossOrigin);r.d.L(d,T,{crossOrigin:v,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},Me.preloadModule=function(d,_){if(typeof d=="string")if(_){var T=p(_.as,_.crossOrigin);r.d.m(d,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:T,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else r.d.m(d)},Me.requestFormReset=function(d){r.d.r(d)},Me.unstable_batchedUpdates=function(d,_){return d(_)},Me.useFormState=function(d,_,T){return h.H.useFormState(d,_,T)},Me.useFormStatus=function(){return h.H.useHostTransitionStatus()},Me.version="19.2.4",Me}var gm;function $T(){if(gm)return Hf.exports;gm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Hf.exports=HT(),Hf.exports}var mm;function KT(){if(mm)return Or;mm=1;var i=GT(),n=jh(),s=$T();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function d(t){if(c(t)!==t)throw Error(r(188))}function _(t){var e=t.alternate;if(!e){if(e=c(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return d(o),t;if(f===l)return d(o),e;f=f.sibling}throw Error(r(188))}if(a.return!==l.return)a=o,l=f;else{for(var g=!1,E=o.child;E;){if(E===a){g=!0,a=o,l=f;break}if(E===l){g=!0,l=o,a=f;break}E=E.sibling}if(!g){for(E=f.child;E;){if(E===a){g=!0,a=f,l=o;break}if(E===l){g=!0,l=f,a=o;break}E=E.sibling}if(!g)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function T(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=T(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,R=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),P=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),m=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function M(t){return t===null||typeof t!="object"?null:(t=L&&t[L]||t["@@iterator"],typeof t=="function"?t:null)}var W=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===W?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Q:return"Fragment";case b:return"Profiler";case O:return"StrictMode";case Z:return"Suspense";case I:return"SuspenseList";case S:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case K:return"Portal";case P:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case z:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case C:return e=t.displayName||null,e!==null?e:at(t.type)||"Memo";case y:e=t._payload,t=t._init;try{return at(t(e))}catch{}}return null}var it=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},tt=[],_t=-1;function A(t){return{current:t}}function j(t){0>_t||(t.current=tt[_t],tt[_t]=null,_t--)}function $(t,e){_t++,tt[_t]=t.current,t.current=e}var J=A(null),lt=A(null),st=A(null),ht=A(null);function ct(t,e){switch($(st,e),$(lt,t),$(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Mg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Mg(e),t=kg(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(J),$(J,t)}function rt(){j(J),j(lt),j(st)}function Nt(t){t.memoizedState!==null&&$(ht,t);var e=J.current,a=kg(e,t.type);e!==a&&($(lt,t),$(J,a))}function gt(t){lt.current===t&&(j(J),j(lt)),ht.current===t&&(j(ht),Er._currentValue=nt)}var Rt,qt;function wt(t){if(Rt===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);Rt=e&&e[1]||"",qt=-1<a.stack.indexOf(`
|
|
1
|
+
var jT=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports);var q2=jT((rn,ln)=>{(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(u){if(u.ep)return;u.ep=!0;const c=s(u);fetch(u.href,c)}})();function no(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jf={exports:{}},Ar={};var om;function DT(){if(om)return Ar;om=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function s(r,u,c){var h=null;if(c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),"key"in u){c={};for(var p in u)p!=="key"&&(c[p]=u[p])}else c=u;return u=c.ref,{$$typeof:i,type:r,key:h,ref:u!==void 0?u:null,props:c}}return Ar.Fragment=n,Ar.jsx=s,Ar.jsxs=s,Ar}var cm;function PT(){return cm||(cm=1,jf.exports=DT()),jf.exports}var et=PT(),Df={exports:{}},Tt={};var fm;function qT(){if(fm)return Tt;fm=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),R=Symbol.iterator;function q(A){return A===null||typeof A!="object"?null:(A=R&&A[R]||A["@@iterator"],typeof A=="function"?A:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,O={};function b(A,j,$){this.props=A,this.context=j,this.refs=O,this.updater=$||K}b.prototype.isReactComponent={},b.prototype.setState=function(A,j){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,j,"setState")},b.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function N(){}N.prototype=b.prototype;function P(A,j,$){this.props=A,this.context=j,this.refs=O,this.updater=$||K}var z=P.prototype=new N;z.constructor=P,Q(z,b.prototype),z.isPureReactComponent=!0;var Z=Array.isArray;function I(){}var C={H:null,A:null,T:null,S:null},y=Object.prototype.hasOwnProperty;function S(A,j,$){var J=$.ref;return{$$typeof:i,type:A,key:j,ref:J!==void 0?J:null,props:$}}function m(A,j){return S(A.type,j,A.props)}function L(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function M(A){var j={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function($){return j[$]})}var W=/\/+/g;function at(A,j){return typeof A=="object"&&A!==null&&A.key!=null?M(""+A.key):j.toString(36)}function it(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(I,I):(A.status="pending",A.then(function(j){A.status==="pending"&&(A.status="fulfilled",A.value=j)},function(j){A.status==="pending"&&(A.status="rejected",A.reason=j)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function k(A,j,$,J,lt){var st=typeof A;(st==="undefined"||st==="boolean")&&(A=null);var ht=!1;if(A===null)ht=!0;else switch(st){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(A.$$typeof){case i:case n:ht=!0;break;case T:return ht=A._init,k(ht(A._payload),j,$,J,lt)}}if(ht)return lt=lt(A),ht=J===""?"."+at(A,0):J,Z(lt)?($="",ht!=null&&($=ht.replace(W,"$&/")+"/"),k(lt,j,$,"",function(Nt){return Nt})):lt!=null&&(L(lt)&&(lt=m(lt,$+(lt.key==null||A&&A.key===lt.key?"":(""+lt.key).replace(W,"$&/")+"/")+ht)),j.push(lt)),1;ht=0;var ct=J===""?".":J+":";if(Z(A))for(var rt=0;rt<A.length;rt++)J=A[rt],st=ct+at(J,rt),ht+=k(J,j,$,st,lt);else if(rt=q(A),typeof rt=="function")for(A=rt.call(A),rt=0;!(J=A.next()).done;)J=J.value,st=ct+at(J,rt++),ht+=k(J,j,$,st,lt);else if(st==="object"){if(typeof A.then=="function")return k(it(A),j,$,J,lt);throw j=String(A),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return ht}function F(A,j,$){if(A==null)return A;var J=[],lt=0;return k(A,J,"","",function(st){return j.call($,st,lt++)}),J}function nt(A){if(A._status===-1){var j=A._result;j=j(),j.then(function($){(A._status===0||A._status===-1)&&(A._status=1,A._result=$)},function($){(A._status===0||A._status===-1)&&(A._status=2,A._result=$)}),A._status===-1&&(A._status=0,A._result=j)}if(A._status===1)return A._result.default;throw A._result}var tt=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},_t={map:F,forEach:function(A,j,$){F(A,function(){j.apply(this,arguments)},$)},count:function(A){var j=0;return F(A,function(){j++}),j},toArray:function(A){return F(A,function(j){return j})||[]},only:function(A){if(!L(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Tt.Activity=v,Tt.Children=_t,Tt.Component=b,Tt.Fragment=s,Tt.Profiler=u,Tt.PureComponent=P,Tt.StrictMode=r,Tt.Suspense=d,Tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Tt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return C.H.useMemoCache(A)}},Tt.cache=function(A){return function(){return A.apply(null,arguments)}},Tt.cacheSignal=function(){return null},Tt.cloneElement=function(A,j,$){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var J=Q({},A.props),lt=A.key;if(j!=null)for(st in j.key!==void 0&&(lt=""+j.key),j)!y.call(j,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&j.ref===void 0||(J[st]=j[st]);var st=arguments.length-2;if(st===1)J.children=$;else if(1<st){for(var ht=Array(st),ct=0;ct<st;ct++)ht[ct]=arguments[ct+2];J.children=ht}return S(A.type,lt,J)},Tt.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},Tt.createElement=function(A,j,$){var J,lt={},st=null;if(j!=null)for(J in j.key!==void 0&&(st=""+j.key),j)y.call(j,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(lt[J]=j[J]);var ht=arguments.length-2;if(ht===1)lt.children=$;else if(1<ht){for(var ct=Array(ht),rt=0;rt<ht;rt++)ct[rt]=arguments[rt+2];lt.children=ct}if(A&&A.defaultProps)for(J in ht=A.defaultProps,ht)lt[J]===void 0&&(lt[J]=ht[J]);return S(A,st,lt)},Tt.createRef=function(){return{current:null}},Tt.forwardRef=function(A){return{$$typeof:p,render:A}},Tt.isValidElement=L,Tt.lazy=function(A){return{$$typeof:T,_payload:{_status:-1,_result:A},_init:nt}},Tt.memo=function(A,j){return{$$typeof:_,type:A,compare:j===void 0?null:j}},Tt.startTransition=function(A){var j=C.T,$={};C.T=$;try{var J=A(),lt=C.S;lt!==null&<($,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,tt)}catch(st){tt(st)}finally{j!==null&&$.types!==null&&(j.types=$.types),C.T=j}},Tt.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Tt.use=function(A){return C.H.use(A)},Tt.useActionState=function(A,j,$){return C.H.useActionState(A,j,$)},Tt.useCallback=function(A,j){return C.H.useCallback(A,j)},Tt.useContext=function(A){return C.H.useContext(A)},Tt.useDebugValue=function(){},Tt.useDeferredValue=function(A,j){return C.H.useDeferredValue(A,j)},Tt.useEffect=function(A,j){return C.H.useEffect(A,j)},Tt.useEffectEvent=function(A){return C.H.useEffectEvent(A)},Tt.useId=function(){return C.H.useId()},Tt.useImperativeHandle=function(A,j,$){return C.H.useImperativeHandle(A,j,$)},Tt.useInsertionEffect=function(A,j){return C.H.useInsertionEffect(A,j)},Tt.useLayoutEffect=function(A,j){return C.H.useLayoutEffect(A,j)},Tt.useMemo=function(A,j){return C.H.useMemo(A,j)},Tt.useOptimistic=function(A,j){return C.H.useOptimistic(A,j)},Tt.useReducer=function(A,j,$){return C.H.useReducer(A,j,$)},Tt.useRef=function(A){return C.H.useRef(A)},Tt.useState=function(A){return C.H.useState(A)},Tt.useSyncExternalStore=function(A,j,$){return C.H.useSyncExternalStore(A,j,$)},Tt.useTransition=function(){return C.H.useTransition()},Tt.version="19.2.4",Tt}var hm;function jh(){return hm||(hm=1,Df.exports=qT()),Df.exports}var pt=jh();const Ra=no(pt);var Pf={exports:{}},Or={},qf={exports:{}},Gf={};var dm;function GT(){return dm||(dm=1,(function(i){function n(k,F){var nt=k.length;k.push(F);t:for(;0<nt;){var tt=nt-1>>>1,_t=k[tt];if(0<u(_t,F))k[tt]=F,k[nt]=_t,nt=tt;else break t}}function s(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var F=k[0],nt=k.pop();if(nt!==F){k[0]=nt;t:for(var tt=0,_t=k.length,A=_t>>>1;tt<A;){var j=2*(tt+1)-1,$=k[j],J=j+1,lt=k[J];if(0>u($,nt))J<_t&&0>u(lt,$)?(k[tt]=lt,k[J]=nt,tt=J):(k[tt]=$,k[j]=nt,tt=j);else if(J<_t&&0>u(lt,nt))k[tt]=lt,k[J]=nt,tt=J;else break t}}return F}function u(k,F){var nt=k.sortIndex-F.sortIndex;return nt!==0?nt:k.id-F.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;i.unstable_now=function(){return c.now()}}else{var h=Date,p=h.now();i.unstable_now=function(){return h.now()-p}}var d=[],_=[],T=1,v=null,R=3,q=!1,K=!1,Q=!1,O=!1,b=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function z(k){for(var F=s(_);F!==null;){if(F.callback===null)r(_);else if(F.startTime<=k)r(_),F.sortIndex=F.expirationTime,n(d,F);else break;F=s(_)}}function Z(k){if(Q=!1,z(k),!K)if(s(d)!==null)K=!0,I||(I=!0,M());else{var F=s(_);F!==null&&it(Z,F.startTime-k)}}var I=!1,C=-1,y=5,S=-1;function m(){return O?!0:!(i.unstable_now()-S<y)}function L(){if(O=!1,I){var k=i.unstable_now();S=k;var F=!0;try{t:{K=!1,Q&&(Q=!1,N(C),C=-1),q=!0;var nt=R;try{e:{for(z(k),v=s(d);v!==null&&!(v.expirationTime>k&&m());){var tt=v.callback;if(typeof tt=="function"){v.callback=null,R=v.priorityLevel;var _t=tt(v.expirationTime<=k);if(k=i.unstable_now(),typeof _t=="function"){v.callback=_t,z(k),F=!0;break e}v===s(d)&&r(d),z(k)}else r(d);v=s(d)}if(v!==null)F=!0;else{var A=s(_);A!==null&&it(Z,A.startTime-k),F=!1}}break t}finally{v=null,R=nt,q=!1}F=void 0}}finally{F?M():I=!1}}}var M;if(typeof P=="function")M=function(){P(L)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,at=W.port2;W.port1.onmessage=L,M=function(){at.postMessage(null)}}else M=function(){b(L,0)};function it(k,F){C=b(function(){k(i.unstable_now())},F)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(k){k.callback=null},i.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<k?Math.floor(1e3/k):5},i.unstable_getCurrentPriorityLevel=function(){return R},i.unstable_next=function(k){switch(R){case 1:case 2:case 3:var F=3;break;default:F=R}var nt=R;R=F;try{return k()}finally{R=nt}},i.unstable_requestPaint=function(){O=!0},i.unstable_runWithPriority=function(k,F){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var nt=R;R=k;try{return F()}finally{R=nt}},i.unstable_scheduleCallback=function(k,F,nt){var tt=i.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?tt+nt:tt):nt=tt,k){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=nt+_t,k={id:T++,callback:F,priorityLevel:k,startTime:nt,expirationTime:_t,sortIndex:-1},nt>tt?(k.sortIndex=nt,n(_,k),s(d)===null&&k===s(_)&&(Q?(N(C),C=-1):Q=!0,it(Z,nt-tt))):(k.sortIndex=_t,n(d,k),K||q||(K=!0,I||(I=!0,M()))),k},i.unstable_shouldYield=m,i.unstable_wrapCallback=function(k){var F=R;return function(){var nt=R;R=F;try{return k.apply(this,arguments)}finally{R=nt}}}})(Gf)),Gf}var pm;function HT(){return pm||(pm=1,qf.exports=GT()),qf.exports}var Hf={exports:{}},Me={};var _m;function $T(){if(_m)return Me;_m=1;var i=jh();function n(d){var _="https://react.dev/errors/"+d;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)_+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+d+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(n(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(d,_,T){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:d,containerInfo:_,implementation:T}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(d,_){if(d==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}return Me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Me.createPortal=function(d,_){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(n(299));return c(d,_,null,T)},Me.flushSync=function(d){var _=h.T,T=r.p;try{if(h.T=null,r.p=2,d)return d()}finally{h.T=_,r.p=T,r.d.f()}},Me.preconnect=function(d,_){typeof d=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,r.d.C(d,_))},Me.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Me.preinit=function(d,_){if(typeof d=="string"&&_&&typeof _.as=="string"){var T=_.as,v=p(T,_.crossOrigin),R=typeof _.integrity=="string"?_.integrity:void 0,q=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;T==="style"?r.d.S(d,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:v,integrity:R,fetchPriority:q}):T==="script"&&r.d.X(d,{crossOrigin:v,integrity:R,fetchPriority:q,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},Me.preinitModule=function(d,_){if(typeof d=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var T=p(_.as,_.crossOrigin);r.d.M(d,{crossOrigin:T,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _==null&&r.d.M(d)},Me.preload=function(d,_){if(typeof d=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var T=_.as,v=p(T,_.crossOrigin);r.d.L(d,T,{crossOrigin:v,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},Me.preloadModule=function(d,_){if(typeof d=="string")if(_){var T=p(_.as,_.crossOrigin);r.d.m(d,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:T,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else r.d.m(d)},Me.requestFormReset=function(d){r.d.r(d)},Me.unstable_batchedUpdates=function(d,_){return d(_)},Me.useFormState=function(d,_,T){return h.H.useFormState(d,_,T)},Me.useFormStatus=function(){return h.H.useHostTransitionStatus()},Me.version="19.2.4",Me}var gm;function KT(){if(gm)return Hf.exports;gm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Hf.exports=$T(),Hf.exports}var mm;function FT(){if(mm)return Or;mm=1;var i=HT(),n=jh(),s=KT();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function d(t){if(c(t)!==t)throw Error(r(188))}function _(t){var e=t.alternate;if(!e){if(e=c(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return d(o),t;if(f===l)return d(o),e;f=f.sibling}throw Error(r(188))}if(a.return!==l.return)a=o,l=f;else{for(var g=!1,E=o.child;E;){if(E===a){g=!0,a=o,l=f;break}if(E===l){g=!0,l=o,a=f;break}E=E.sibling}if(!g){for(E=f.child;E;){if(E===a){g=!0,a=f,l=o;break}if(E===l){g=!0,l=f,a=o;break}E=E.sibling}if(!g)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function T(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=T(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,R=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),P=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),m=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function M(t){return t===null||typeof t!="object"?null:(t=L&&t[L]||t["@@iterator"],typeof t=="function"?t:null)}var W=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===W?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Q:return"Fragment";case b:return"Profiler";case O:return"StrictMode";case Z:return"Suspense";case I:return"SuspenseList";case S:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case K:return"Portal";case P:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case z:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case C:return e=t.displayName||null,e!==null?e:at(t.type)||"Memo";case y:e=t._payload,t=t._init;try{return at(t(e))}catch{}}return null}var it=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},tt=[],_t=-1;function A(t){return{current:t}}function j(t){0>_t||(t.current=tt[_t],tt[_t]=null,_t--)}function $(t,e){_t++,tt[_t]=t.current,t.current=e}var J=A(null),lt=A(null),st=A(null),ht=A(null);function ct(t,e){switch($(st,e),$(lt,t),$(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Mg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Mg(e),t=kg(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(J),$(J,t)}function rt(){j(J),j(lt),j(st)}function Nt(t){t.memoizedState!==null&&$(ht,t);var e=J.current,a=kg(e,t.type);e!==a&&($(lt,t),$(J,a))}function gt(t){lt.current===t&&(j(J),j(lt)),ht.current===t&&(j(ht),Er._currentValue=nt)}var Rt,qt;function wt(t){if(Rt===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);Rt=e&&e[1]||"",qt=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Rt+t+qt}var kt=!1;function At(t,e){if(!t||kt)return"";kt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(H){var G=H}Reflect.construct(t,[],X)}else{try{X.call()}catch(H){G=H}t.call(X.prototype)}}else{try{throw Error()}catch(H){G=H}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(H){if(H&&G&&typeof H.stack=="string")return[H.stack,G.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),g=f[0],E=f[1];if(g&&E){var x=g.split(`
|
|
4
4
|
`),D=E.split(`
|
|
5
5
|
`);for(o=l=0;l<x.length&&!x[l].includes("DetermineComponentFrameRoot");)l++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(l===x.length||o===D.length)for(l=x.length-1,o=D.length-1;1<=l&&0<=o&&x[l]!==D[o];)o--;for(;1<=l&&0<=o;l--,o--)if(x[l]!==D[o]){if(l!==1||o!==1)do if(l--,o--,0>o||x[l]!==D[o]){var V=`
|
|
6
6
|
`+x[l].replace(" at new "," at ");return t.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",t.displayName)),V}while(1<=l&&0<=o);break}}}finally{kt=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?wt(a):""}function Ee(t,e){switch(t.tag){case 26:case 27:case 5:return wt(t.type);case 16:return wt("Lazy");case 13:return t.child!==e&&e!==null?wt("Suspense Fallback"):wt("Suspense");case 19:return wt("SuspenseList");case 0:case 15:return At(t.type,!1);case 11:return At(t.type.render,!1);case 1:return At(t.type,!0);case 31:return wt("Activity");default:return""}}function It(t){try{var e="",a=null;do e+=Ee(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
|
-
`+l.stack}}var $t=Object.prototype.hasOwnProperty,ee=i.unstable_scheduleCallback,qn=i.unstable_cancelCallback,fn=i.unstable_shouldYield,aa=i.unstable_requestPaint,Pt=i.unstable_now,hn=i.unstable_getCurrentPriorityLevel,le=i.unstable_ImmediatePriority,Se=i.unstable_UserBlockingPriority,je=i.unstable_NormalPriority,Ls=i.unstable_LowPriority,Ms=i.unstable_IdlePriority,Ri=i.log,dn=i.unstable_setDisableYieldValue,wn=null,Le=null;function xi(t){if(typeof Ri=="function"&&dn(t),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(wn,t)}catch{}}var Qe=Math.clz32?Math.clz32:SE,bE=Math.log,TE=Math.LN2;function SE(t){return t>>>=0,t===0?32:31-(bE(t)/TE|0)|0}var el=256,nl=262144,il=4194304;function sa(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function al(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var o=0,f=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var E=l&134217727;return E!==0?(l=E&~f,l!==0?o=sa(l):(g&=E,g!==0?o=sa(g):a||(a=E&~t,a!==0&&(o=sa(a))))):(E=l&~f,E!==0?o=sa(E):g!==0?o=sa(g):a||(a=l&~t,a!==0&&(o=sa(a)))),o===0?0:e!==0&&e!==o&&(e&f)===0&&(f=o&-o,a=e&-e,f>=a||f===32&&(a&4194048)!==0)?e:o}function ks(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function AE(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dd(){var t=il;return il<<=1,(il&62914560)===0&&(il=4194304),t}function Oo(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Us(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function OE(t,e,a,l,o,f){var g=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var E=t.entanglements,x=t.expirationTimes,D=t.hiddenUpdates;for(a=g&~a;0<a;){var V=31-Qe(a),X=1<<V;E[V]=0,x[V]=-1;var G=D[V];if(G!==null)for(D[V]=null,V=0;V<G.length;V++){var H=G[V];H!==null&&(H.lane&=-536870913)}a&=~X}l!==0&&pd(t,l,0),f!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=f&~(g&~e))}function pd(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Qe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function _d(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-Qe(a),o=1<<l;o&e|t[l]&e&&(t[l]|=e),a&=~o}}function gd(t,e){var a=e&-e;return a=(a&42)!==0?1:No(a),(a&(t.suspendedLanes|e))!==0?0:a}function No(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ro(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function md(){var t=F.p;return t!==0?t:(t=window.event,t===void 0?32:nm(t.type))}function yd(t,e){var a=F.p;try{return F.p=t,e()}finally{F.p=a}}var Ci=Math.random().toString(36).slice(2),Ae="__reactFiber$"+Ci,De="__reactProps$"+Ci,za="__reactContainer$"+Ci,xo="__reactEvents$"+Ci,NE="__reactListeners$"+Ci,RE="__reactHandles$"+Ci,vd="__reactResources$"+Ci,Is="__reactMarker$"+Ci;function Co(t){delete t[Ae],delete t[De],delete t[xo],delete t[NE],delete t[RE]}function Ba(t){var e=t[Ae];if(e)return e;for(var a=t.parentNode;a;){if(e=a[za]||a[Ae]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Pg(t);t!==null;){if(a=t[Ae])return a;t=Pg(t)}return e}t=a,a=t.parentNode}return null}function ja(t){if(t=t[Ae]||t[za]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function zs(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Da(t){var e=t[vd];return e||(e=t[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function be(t){t[Is]=!0}var Ed=new Set,bd={};function ra(t,e){Pa(t,e),Pa(t+"Capture",e)}function Pa(t,e){for(bd[t]=e,t=0;t<e.length;t++)Ed.add(e[t])}var xE=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Td={},Sd={};function CE(t){return $t.call(Sd,t)?!0:$t.call(Td,t)?!1:xE.test(t)?Sd[t]=!0:(Td[t]=!0,!1)}function sl(t,e,a){if(CE(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function rl(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function ei(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function pn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ad(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function wE(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,f=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function wo(t){if(!t._valueTracker){var e=Ad(t)?"checked":"value";t._valueTracker=wE(t,e,""+t[e])}}function Od(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=Ad(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function ll(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var LE=/[\n"\\]/g;function _n(t){return t.replace(LE,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Lo(t,e,a,l,o,f,g,E){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+pn(e)):t.value!==""+pn(e)&&(t.value=""+pn(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?Mo(t,g,pn(e)):a!=null?Mo(t,g,pn(a)):l!=null&&t.removeAttribute("value"),o==null&&f!=null&&(t.defaultChecked=!!f),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?t.name=""+pn(E):t.removeAttribute("name")}function Nd(t,e,a,l,o,f,g,E){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.type=f),e!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||e!=null)){wo(t);return}a=a!=null?""+pn(a):"",e=e!=null?""+pn(e):a,E||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=E?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),wo(t)}function Mo(t,e,a){e==="number"&&ll(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function qa(t,e,a,l){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&l&&(t[a].defaultSelected=!0)}else{for(a=""+pn(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Rd(t,e,a){if(e!=null&&(e=""+pn(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+pn(a):""}function xd(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(it(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=pn(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),wo(t)}function Ga(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var ME=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cd(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||ME.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function wd(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&a[o]!==l&&Cd(t,o,l)}else for(var f in e)e.hasOwnProperty(f)&&Cd(t,f,e[f])}function ko(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),UE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ul(t){return UE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ni(){}var Uo=null;function Io(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,$a=null;function Ld(t){var e=ja(t);if(e&&(t=e.stateNode)){var a=t[De]||null;t:switch(t=e.stateNode,e.type){case"input":if(Lo(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+_n(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var o=l[De]||null;if(!o)throw Error(r(90));Lo(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&Od(l)}break t;case"textarea":Rd(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&qa(t,!!a.multiple,e,!1)}}}var zo=!1;function Md(t,e,a){if(zo)return t(e,a);zo=!0;try{var l=t(e);return l}finally{if(zo=!1,(Ha!==null||$a!==null)&&(Xl(),Ha&&(e=Ha,t=$a,$a=Ha=null,Ld(e),t)))for(e=0;e<t.length;e++)Ld(t[e])}}function Bs(t,e){var a=t.stateNode;if(a===null)return null;var l=a[De]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bo=!1;if(ii)try{var js={};Object.defineProperty(js,"passive",{get:function(){Bo=!0}}),window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{Bo=!1}var wi=null,jo=null,ol=null;function kd(){if(ol)return ol;var t,e=jo,a=e.length,l,o="value"in wi?wi.value:wi.textContent,f=o.length;for(t=0;t<a&&e[t]===o[t];t++);var g=a-t;for(l=1;l<=g&&e[a-l]===o[f-l];l++);return ol=o.slice(t,1<l?1-l:void 0)}function cl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function fl(){return!0}function Ud(){return!1}function Pe(t){function e(a,l,o,f,g){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var E in t)t.hasOwnProperty(E)&&(a=t[E],this[E]=a?a(f):f[E]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?fl:Ud,this.isPropagationStopped=Ud,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=fl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),e}var la={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hl=Pe(la),Ds=v({},la,{view:0,detail:0}),IE=Pe(Ds),Do,Po,Ps,dl=v({},Ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Go,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ps&&(Ps&&t.type==="mousemove"?(Do=t.screenX-Ps.screenX,Po=t.screenY-Ps.screenY):Po=Do=0,Ps=t),Do)},movementY:function(t){return"movementY"in t?t.movementY:Po}}),Id=Pe(dl),zE=v({},dl,{dataTransfer:0}),BE=Pe(zE),jE=v({},Ds,{relatedTarget:0}),qo=Pe(jE),DE=v({},la,{animationName:0,elapsedTime:0,pseudoElement:0}),PE=Pe(DE),qE=v({},la,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),GE=Pe(qE),HE=v({},la,{data:0}),zd=Pe(HE),$E={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KE={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"},FE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=FE[t])?!!e[t]:!1}function Go(){return VE}var YE=v({},Ds,{key:function(t){if(t.key){var e=$E[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=cl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?KE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Go,charCode:function(t){return t.type==="keypress"?cl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?cl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),XE=Pe(YE),QE=v({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bd=Pe(QE),ZE=v({},Ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Go}),WE=Pe(ZE),JE=v({},la,{propertyName:0,elapsedTime:0,pseudoElement:0}),tb=Pe(JE),eb=v({},dl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),nb=Pe(eb),ib=v({},la,{newState:0,oldState:0}),ab=Pe(ib),sb=[9,13,27,32],Ho=ii&&"CompositionEvent"in window,qs=null;ii&&"documentMode"in document&&(qs=document.documentMode);var rb=ii&&"TextEvent"in window&&!qs,jd=ii&&(!Ho||qs&&8<qs&&11>=qs),Dd=" ",Pd=!1;function qd(t,e){switch(t){case"keyup":return sb.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ka=!1;function lb(t,e){switch(t){case"compositionend":return Gd(e);case"keypress":return e.which!==32?null:(Pd=!0,Dd);case"textInput":return t=e.data,t===Dd&&Pd?null:t;default:return null}}function ub(t,e){if(Ka)return t==="compositionend"||!Ho&&qd(t,e)?(t=kd(),ol=jo=wi=null,Ka=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return jd&&e.locale!=="ko"?null:e.data;default:return null}}var ob={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 Hd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ob[t.type]:e==="textarea"}function $d(t,e,a,l){Ha?$a?$a.push(l):$a=[l]:Ha=l,e=nu(e,"onChange"),0<e.length&&(a=new hl("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Gs=null,Hs=null;function cb(t){Ng(t,0)}function pl(t){var e=zs(t);if(Od(e))return t}function Kd(t,e){if(t==="change")return e}var Fd=!1;if(ii){var $o;if(ii){var Ko="oninput"in document;if(!Ko){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Ko=typeof Vd.oninput=="function"}$o=Ko}else $o=!1;Fd=$o&&(!document.documentMode||9<document.documentMode)}function Yd(){Gs&&(Gs.detachEvent("onpropertychange",Xd),Hs=Gs=null)}function Xd(t){if(t.propertyName==="value"&&pl(Hs)){var e=[];$d(e,Hs,t,Io(t)),Md(cb,e)}}function fb(t,e,a){t==="focusin"?(Yd(),Gs=e,Hs=a,Gs.attachEvent("onpropertychange",Xd)):t==="focusout"&&Yd()}function hb(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return pl(Hs)}function db(t,e){if(t==="click")return pl(e)}function pb(t,e){if(t==="input"||t==="change")return pl(e)}function _b(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ze=typeof Object.is=="function"?Object.is:_b;function $s(t,e){if(Ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!$t.call(e,o)||!Ze(t[o],e[o]))return!1}return!0}function Qd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Zd(t,e){var a=Qd(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Qd(a)}}function Wd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Wd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Jd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ll(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=ll(t.document)}return e}function Fo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var gb=ii&&"documentMode"in document&&11>=document.documentMode,Fa=null,Vo=null,Ks=null,Yo=!1;function tp(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Yo||Fa==null||Fa!==ll(l)||(l=Fa,"selectionStart"in l&&Fo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ks&&$s(Ks,l)||(Ks=l,l=nu(Vo,"onSelect"),0<l.length&&(e=new hl("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=Fa)))}function ua(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Va={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},Xo={},ep={};ii&&(ep=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function oa(t){if(Xo[t])return Xo[t];if(!Va[t])return t;var e=Va[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in ep)return Xo[t]=e[a];return t}var np=oa("animationend"),ip=oa("animationiteration"),ap=oa("animationstart"),mb=oa("transitionrun"),yb=oa("transitionstart"),vb=oa("transitioncancel"),sp=oa("transitionend"),rp=new Map,Qo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Qo.push("scrollEnd");function Ln(t,e){rp.set(t,e),ra(e,[t])}var _l=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},gn=[],Ya=0,Zo=0;function gl(){for(var t=Ya,e=Zo=Ya=0;e<t;){var a=gn[e];gn[e++]=null;var l=gn[e];gn[e++]=null;var o=gn[e];gn[e++]=null;var f=gn[e];if(gn[e++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}f!==0&&lp(a,o,f)}}function ml(t,e,a,l){gn[Ya++]=t,gn[Ya++]=e,gn[Ya++]=a,gn[Ya++]=l,Zo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Wo(t,e,a,l){return ml(t,e,a,l),yl(t)}function ca(t,e){return ml(t,null,null,e),yl(t)}function lp(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=t.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(t=f.stateNode,t===null||t._visibility&1||(o=!0)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,o&&e!==null&&(o=31-Qe(a),t=f.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=a|536870912),f):null}function yl(t){if(50<dr)throw dr=0,uf=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Xa={};function Eb(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(t,e,a,l){return new Eb(t,e,a,l)}function Jo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ai(t,e){var a=t.alternate;return a===null?(a=We(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function up(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function vl(t,e,a,l,o,f){var g=0;if(l=t,typeof t=="function")Jo(t)&&(g=1);else if(typeof t=="string")g=OT(t,a,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case S:return t=We(31,a,e,o),t.elementType=S,t.lanes=f,t;case Q:return fa(a.children,o,f,e);case O:g=8,o|=24;break;case b:return t=We(12,a,e,o|2),t.elementType=b,t.lanes=f,t;case Z:return t=We(13,a,e,o),t.elementType=Z,t.lanes=f,t;case I:return t=We(19,a,e,o),t.elementType=I,t.lanes=f,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:g=10;break t;case N:g=9;break t;case z:g=11;break t;case C:g=14;break t;case y:g=16,l=null;break t}g=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=We(g,a,e,o),e.elementType=t,e.type=l,e.lanes=f,e}function fa(t,e,a,l){return t=We(7,t,l,e),t.lanes=a,t}function tc(t,e,a){return t=We(6,t,null,e),t.lanes=a,t}function op(t){var e=We(18,null,null,0);return e.stateNode=t,e}function ec(t,e,a){return e=We(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var cp=new WeakMap;function mn(t,e){if(typeof t=="object"&&t!==null){var a=cp.get(t);return a!==void 0?a:(e={value:t,source:e,stack:It(e)},cp.set(t,e),e)}return{value:t,source:e,stack:It(e)}}var Qa=[],Za=0,El=null,Fs=0,yn=[],vn=0,Li=null,Gn=1,Hn="";function si(t,e){Qa[Za++]=Fs,Qa[Za++]=El,El=t,Fs=e}function fp(t,e,a){yn[vn++]=Gn,yn[vn++]=Hn,yn[vn++]=Li,Li=t;var l=Gn;t=Hn;var o=32-Qe(l)-1;l&=~(1<<o),a+=1;var f=32-Qe(e)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,Gn=1<<32-Qe(e)+o|a<<o|l,Hn=f+t}else Gn=1<<f|a<<o|l,Hn=t}function nc(t){t.return!==null&&(si(t,1),fp(t,1,0))}function ic(t){for(;t===El;)El=Qa[--Za],Qa[Za]=null,Fs=Qa[--Za],Qa[Za]=null;for(;t===Li;)Li=yn[--vn],yn[vn]=null,Hn=yn[--vn],yn[vn]=null,Gn=yn[--vn],yn[vn]=null}function hp(t,e){yn[vn++]=Gn,yn[vn++]=Hn,yn[vn++]=Li,Gn=e.id,Hn=e.overflow,Li=t}var Oe=null,Zt=null,Ut=!1,Mi=null,En=!1,ac=Error(r(519));function ki(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vs(mn(e,t)),ac}function dp(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[Ae]=t,e[De]=l,a){case"dialog":Ct("cancel",e),Ct("close",e);break;case"iframe":case"object":case"embed":Ct("load",e);break;case"video":case"audio":for(a=0;a<_r.length;a++)Ct(_r[a],e);break;case"source":Ct("error",e);break;case"img":case"image":case"link":Ct("error",e),Ct("load",e);break;case"details":Ct("toggle",e);break;case"input":Ct("invalid",e),Nd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ct("invalid",e);break;case"textarea":Ct("invalid",e),xd(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||wg(e.textContent,a)?(l.popover!=null&&(Ct("beforetoggle",e),Ct("toggle",e)),l.onScroll!=null&&Ct("scroll",e),l.onScrollEnd!=null&&Ct("scrollend",e),l.onClick!=null&&(e.onclick=ni),e=!0):e=!1,e||ki(t,!0)}function pp(t){for(Oe=t.return;Oe;)switch(Oe.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Oe=Oe.return}}function Wa(t){if(t!==Oe)return!1;if(!Ut)return pp(t),Ut=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Sf(t.type,t.memoizedProps)),a=!a),a&&Zt&&ki(t),pp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Zt=Dg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Zt=Dg(t)}else e===27?(e=Zt,Vi(t.type)?(t=xf,xf=null,Zt=t):Zt=e):Zt=Oe?Tn(t.stateNode.nextSibling):null;return!0}function ha(){Zt=Oe=null,Ut=!1}function sc(){var t=Mi;return t!==null&&($e===null?$e=t:$e.push.apply($e,t),Mi=null),t}function Vs(t){Mi===null?Mi=[t]:Mi.push(t)}var rc=A(null),da=null,ri=null;function Ui(t,e,a){$(rc,e._currentValue),e._currentValue=a}function li(t){t._currentValue=rc.current,j(rc)}function lc(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function uc(t,e,a,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var f=o.dependencies;if(f!==null){var g=o.child;f=f.firstContext;t:for(;f!==null;){var E=f;f=o;for(var x=0;x<e.length;x++)if(E.context===e[x]){f.lanes|=a,E=f.alternate,E!==null&&(E.lanes|=a),lc(f.return,a,t),l||(g=null);break t}f=E.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(r(341));g.lanes|=a,f=g.alternate,f!==null&&(f.lanes|=a),lc(g,a,t),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===t){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Ja(t,e,a,l){t=null;for(var o=e,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var E=o.type;Ze(o.pendingProps.value,g.value)||(t!==null?t.push(E):t=[E])}}else if(o===ht.current){if(g=o.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Er):t=[Er])}o=o.return}t!==null&&uc(e,t,a,l),e.flags|=262144}function bl(t){for(t=t.firstContext;t!==null;){if(!Ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function pa(t){da=t,ri=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ne(t){return _p(da,t)}function Tl(t,e){return da===null&&pa(t),_p(t,e)}function _p(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},ri===null){if(t===null)throw Error(r(308));ri=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ri=ri.next=e;return a}var bb=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},Tb=i.unstable_scheduleCallback,Sb=i.unstable_NormalPriority,fe={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new bb,data:new Map,refCount:0}}function Ys(t){t.refCount--,t.refCount===0&&Tb(Sb,function(){t.controller.abort()})}var Xs=null,cc=0,ts=0,es=null;function Ab(t,e){if(Xs===null){var a=Xs=[];cc=0,ts=pf(),es={status:"pending",value:void 0,then:function(l){a.push(l)}}}return cc++,e.then(gp,gp),e}function gp(){if(--cc===0&&Xs!==null){es!==null&&(es.status="fulfilled");var t=Xs;Xs=null,ts=0,es=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Ob(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var mp=k.S;k.S=function(t,e){tg=Pt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Ab(t,e),mp!==null&&mp(t,e)};var _a=A(null);function fc(){var t=_a.current;return t!==null?t:Yt.pooledCache}function Sl(t,e){e===null?$(_a,_a.current):$(_a,e.pool)}function yp(){var t=fc();return t===null?null:{parent:fe._currentValue,pool:t}}var ns=Error(r(460)),hc=Error(r(474)),Al=Error(r(542)),Ol={then:function(){}};function vp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ep(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(ni,ni),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Tp(t),t;default:if(typeof e.status=="string")e.then(ni,ni);else{if(t=Yt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Tp(t),t}throw ma=e,ns}}function ga(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ma=a,ns):a}}var ma=null;function bp(){if(ma===null)throw Error(r(459));var t=ma;return ma=null,t}function Tp(t){if(t===ns||t===Al)throw Error(r(483))}var is=null,Qs=0;function Nl(t){var e=Qs;return Qs+=1,is===null&&(is=[]),Ep(is,t,e)}function Zs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Rl(t,e){throw e.$$typeof===R?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Sp(t){function e(U,w){if(t){var B=U.deletions;B===null?(U.deletions=[w],U.flags|=16):B.push(w)}}function a(U,w){if(!t)return null;for(;w!==null;)e(U,w),w=w.sibling;return null}function l(U){for(var w=new Map;U!==null;)U.key!==null?w.set(U.key,U):w.set(U.index,U),U=U.sibling;return w}function o(U,w){return U=ai(U,w),U.index=0,U.sibling=null,U}function f(U,w,B){return U.index=B,t?(B=U.alternate,B!==null?(B=B.index,B<w?(U.flags|=67108866,w):B):(U.flags|=67108866,w)):(U.flags|=1048576,w)}function g(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function E(U,w,B,Y){return w===null||w.tag!==6?(w=tc(B,U.mode,Y),w.return=U,w):(w=o(w,B),w.return=U,w)}function x(U,w,B,Y){var dt=B.type;return dt===Q?V(U,w,B.props.children,Y,B.key):w!==null&&(w.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===y&&ga(dt)===w.type)?(w=o(w,B.props),Zs(w,B),w.return=U,w):(w=vl(B.type,B.key,B.props,null,U.mode,Y),Zs(w,B),w.return=U,w)}function D(U,w,B,Y){return w===null||w.tag!==4||w.stateNode.containerInfo!==B.containerInfo||w.stateNode.implementation!==B.implementation?(w=ec(B,U.mode,Y),w.return=U,w):(w=o(w,B.children||[]),w.return=U,w)}function V(U,w,B,Y,dt){return w===null||w.tag!==7?(w=fa(B,U.mode,Y,dt),w.return=U,w):(w=o(w,B),w.return=U,w)}function X(U,w,B){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=tc(""+w,U.mode,B),w.return=U,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case q:return B=vl(w.type,w.key,w.props,null,U.mode,B),Zs(B,w),B.return=U,B;case K:return w=ec(w,U.mode,B),w.return=U,w;case y:return w=ga(w),X(U,w,B)}if(it(w)||M(w))return w=fa(w,U.mode,B,null),w.return=U,w;if(typeof w.then=="function")return X(U,Nl(w),B);if(w.$$typeof===P)return X(U,Tl(U,w),B);Rl(U,w)}return null}function G(U,w,B,Y){var dt=w!==null?w.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return dt!==null?null:E(U,w,""+B,Y);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case q:return B.key===dt?x(U,w,B,Y):null;case K:return B.key===dt?D(U,w,B,Y):null;case y:return B=ga(B),G(U,w,B,Y)}if(it(B)||M(B))return dt!==null?null:V(U,w,B,Y,null);if(typeof B.then=="function")return G(U,w,Nl(B),Y);if(B.$$typeof===P)return G(U,w,Tl(U,B),Y);Rl(U,B)}return null}function H(U,w,B,Y,dt){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return U=U.get(B)||null,E(w,U,""+Y,dt);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case q:return U=U.get(Y.key===null?B:Y.key)||null,x(w,U,Y,dt);case K:return U=U.get(Y.key===null?B:Y.key)||null,D(w,U,Y,dt);case y:return Y=ga(Y),H(U,w,B,Y,dt)}if(it(Y)||M(Y))return U=U.get(B)||null,V(w,U,Y,dt,null);if(typeof Y.then=="function")return H(U,w,B,Nl(Y),dt);if(Y.$$typeof===P)return H(U,w,B,Tl(w,Y),dt);Rl(w,Y)}return null}function ut(U,w,B,Y){for(var dt=null,Bt=null,ot=w,Ot=w=0,Mt=null;ot!==null&&Ot<B.length;Ot++){ot.index>Ot?(Mt=ot,ot=null):Mt=ot.sibling;var jt=G(U,ot,B[Ot],Y);if(jt===null){ot===null&&(ot=Mt);break}t&&ot&&jt.alternate===null&&e(U,ot),w=f(jt,w,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt,ot=Mt}if(Ot===B.length)return a(U,ot),Ut&&si(U,Ot),dt;if(ot===null){for(;Ot<B.length;Ot++)ot=X(U,B[Ot],Y),ot!==null&&(w=f(ot,w,Ot),Bt===null?dt=ot:Bt.sibling=ot,Bt=ot);return Ut&&si(U,Ot),dt}for(ot=l(ot);Ot<B.length;Ot++)Mt=H(ot,U,Ot,B[Ot],Y),Mt!==null&&(t&&Mt.alternate!==null&&ot.delete(Mt.key===null?Ot:Mt.key),w=f(Mt,w,Ot),Bt===null?dt=Mt:Bt.sibling=Mt,Bt=Mt);return t&&ot.forEach(function(Wi){return e(U,Wi)}),Ut&&si(U,Ot),dt}function mt(U,w,B,Y){if(B==null)throw Error(r(151));for(var dt=null,Bt=null,ot=w,Ot=w=0,Mt=null,jt=B.next();ot!==null&&!jt.done;Ot++,jt=B.next()){ot.index>Ot?(Mt=ot,ot=null):Mt=ot.sibling;var Wi=G(U,ot,jt.value,Y);if(Wi===null){ot===null&&(ot=Mt);break}t&&ot&&Wi.alternate===null&&e(U,ot),w=f(Wi,w,Ot),Bt===null?dt=Wi:Bt.sibling=Wi,Bt=Wi,ot=Mt}if(jt.done)return a(U,ot),Ut&&si(U,Ot),dt;if(ot===null){for(;!jt.done;Ot++,jt=B.next())jt=X(U,jt.value,Y),jt!==null&&(w=f(jt,w,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt);return Ut&&si(U,Ot),dt}for(ot=l(ot);!jt.done;Ot++,jt=B.next())jt=H(ot,U,Ot,jt.value,Y),jt!==null&&(t&&jt.alternate!==null&&ot.delete(jt.key===null?Ot:jt.key),w=f(jt,w,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt);return t&&ot.forEach(function(zT){return e(U,zT)}),Ut&&si(U,Ot),dt}function Vt(U,w,B,Y){if(typeof B=="object"&&B!==null&&B.type===Q&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case q:t:{for(var dt=B.key;w!==null;){if(w.key===dt){if(dt=B.type,dt===Q){if(w.tag===7){a(U,w.sibling),Y=o(w,B.props.children),Y.return=U,U=Y;break t}}else if(w.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===y&&ga(dt)===w.type){a(U,w.sibling),Y=o(w,B.props),Zs(Y,B),Y.return=U,U=Y;break t}a(U,w);break}else e(U,w);w=w.sibling}B.type===Q?(Y=fa(B.props.children,U.mode,Y,B.key),Y.return=U,U=Y):(Y=vl(B.type,B.key,B.props,null,U.mode,Y),Zs(Y,B),Y.return=U,U=Y)}return g(U);case K:t:{for(dt=B.key;w!==null;){if(w.key===dt)if(w.tag===4&&w.stateNode.containerInfo===B.containerInfo&&w.stateNode.implementation===B.implementation){a(U,w.sibling),Y=o(w,B.children||[]),Y.return=U,U=Y;break t}else{a(U,w);break}else e(U,w);w=w.sibling}Y=ec(B,U.mode,Y),Y.return=U,U=Y}return g(U);case y:return B=ga(B),Vt(U,w,B,Y)}if(it(B))return ut(U,w,B,Y);if(M(B)){if(dt=M(B),typeof dt!="function")throw Error(r(150));return B=dt.call(B),mt(U,w,B,Y)}if(typeof B.then=="function")return Vt(U,w,Nl(B),Y);if(B.$$typeof===P)return Vt(U,w,Tl(U,B),Y);Rl(U,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,w!==null&&w.tag===6?(a(U,w.sibling),Y=o(w,B),Y.return=U,U=Y):(a(U,w),Y=tc(B,U.mode,Y),Y.return=U,U=Y),g(U)):a(U,w)}return function(U,w,B,Y){try{Qs=0;var dt=Vt(U,w,B,Y);return is=null,dt}catch(ot){if(ot===ns||ot===Al)throw ot;var Bt=We(29,ot,null,U.mode);return Bt.lanes=Y,Bt.return=U,Bt}}}var ya=Sp(!0),Ap=Sp(!1),Ii=!1;function dc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=yl(t),lp(t,null,a),e}return ml(t,l,e,a),yl(t)}function Ws(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,_d(t,a)}}function _c(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?o=f=e:f=f.next=e}else o=f=e;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var gc=!1;function Js(){if(gc){var t=es;if(t!==null)throw t}}function tr(t,e,a,l){gc=!1;var o=t.updateQueue;Ii=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var x=E,D=x.next;x.next=null,g===null?f=D:g.next=D,g=x;var V=t.alternate;V!==null&&(V=V.updateQueue,E=V.lastBaseUpdate,E!==g&&(E===null?V.firstBaseUpdate=D:E.next=D,V.lastBaseUpdate=x))}if(f!==null){var X=o.baseState;g=0,V=D=x=null,E=f;do{var G=E.lane&-536870913,H=G!==E.lane;if(H?(Lt&G)===G:(l&G)===G){G!==0&&G===ts&&(gc=!0),V!==null&&(V=V.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});t:{var ut=t,mt=E;G=e;var Vt=a;switch(mt.tag){case 1:if(ut=mt.payload,typeof ut=="function"){X=ut.call(Vt,X,G);break t}X=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=mt.payload,G=typeof ut=="function"?ut.call(Vt,X,G):ut,G==null)break t;X=v({},X,G);break t;case 2:Ii=!0}}G=E.callback,G!==null&&(t.flags|=64,H&&(t.flags|=8192),H=o.callbacks,H===null?o.callbacks=[G]:H.push(G))}else H={lane:G,tag:E.tag,payload:E.payload,callback:E.callback,next:null},V===null?(D=V=H,x=X):V=V.next=H,g|=G;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;H=E,E=H.next,H.next=null,o.lastBaseUpdate=H,o.shared.pending=null}}while(!0);V===null&&(x=X),o.baseState=x,o.firstBaseUpdate=D,o.lastBaseUpdate=V,f===null&&(o.shared.lanes=0),Gi|=g,t.lanes=g,t.memoizedState=X}}function Op(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Np(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Op(a[t],e)}var as=A(null),xl=A(0);function Rp(t,e){t=gi,$(xl,t),$(as,e),gi=t|e.baseLanes}function mc(){$(xl,gi),$(as,as.current)}function yc(){gi=xl.current,j(as),j(xl)}var Je=A(null),bn=null;function ji(t){var e=t.alternate;$(ue,ue.current&1),$(Je,t),bn===null&&(e===null||as.current!==null||e.memoizedState!==null)&&(bn=t)}function vc(t){$(ue,ue.current),$(Je,t),bn===null&&(bn=t)}function xp(t){t.tag===22?($(ue,ue.current),$(Je,t),bn===null&&(bn=t)):Di()}function Di(){$(ue,ue.current),$(Je,Je.current)}function tn(t){j(Je),bn===t&&(bn=null),j(ue)}var ue=A(0);function Cl(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Nf(a)||Rf(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ui=0,St=null,Kt=null,he=null,wl=!1,ss=!1,va=!1,Ll=0,er=0,rs=null,Nb=0;function ie(){throw Error(r(321))}function Ec(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ze(t[a],e[a]))return!1;return!0}function bc(t,e,a,l,o,f){return ui=f,St=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,k.H=t===null||t.memoizedState===null?f_:zc,va=!1,f=a(l,o),va=!1,ss&&(f=wp(e,a,l,o)),Cp(t),f}function Cp(t){k.H=ar;var e=Kt!==null&&Kt.next!==null;if(ui=0,he=Kt=St=null,wl=!1,er=0,rs=null,e)throw Error(r(300));t===null||de||(t=t.dependencies,t!==null&&bl(t)&&(de=!0))}function wp(t,e,a,l){St=t;var o=0;do{if(ss&&(rs=null),er=0,ss=!1,25<=o)throw Error(r(301));if(o+=1,he=Kt=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=h_,f=e(a,l)}while(ss);return f}function Rb(){var t=k.H,e=t.useState()[0];return e=typeof e.then=="function"?nr(e):e,t=t.useState()[0],(Kt!==null?Kt.memoizedState:null)!==t&&(St.flags|=1024),e}function Tc(){var t=Ll!==0;return Ll=0,t}function Sc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Ac(t){if(wl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}wl=!1}ui=0,he=Kt=St=null,ss=!1,er=Ll=0,rs=null}function Ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return he===null?St.memoizedState=he=t:he=he.next=t,he}function oe(){if(Kt===null){var t=St.alternate;t=t!==null?t.memoizedState:null}else t=Kt.next;var e=he===null?St.memoizedState:he.next;if(e!==null)he=e,Kt=t;else{if(t===null)throw St.alternate===null?Error(r(467)):Error(r(310));Kt=t,t={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},he===null?St.memoizedState=he=t:he=he.next=t}return he}function Ml(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nr(t){var e=er;return er+=1,rs===null&&(rs=[]),t=Ep(rs,t,e),e=St,(he===null?e.memoizedState:he.next)===null&&(e=e.alternate,k.H=e===null||e.memoizedState===null?f_:zc),t}function kl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return nr(t);if(t.$$typeof===P)return Ne(t)}throw Error(r(438,String(t)))}function Oc(t){var e=null,a=St.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=St.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Ml(),St.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=m;return e.index++,a}function oi(t,e){return typeof e=="function"?e(t):e}function Ul(t){var e=oe();return Nc(e,Kt,t)}function Nc(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var o=t.baseQueue,f=l.pending;if(f!==null){if(o!==null){var g=o.next;o.next=f.next,f.next=g}e.baseQueue=o=f,l.pending=null}if(f=t.baseState,o===null)t.memoizedState=f;else{e=o.next;var E=g=null,x=null,D=e,V=!1;do{var X=D.lane&-536870913;if(X!==D.lane?(Lt&X)===X:(ui&X)===X){var G=D.revertLane;if(G===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),X===ts&&(V=!0);else if((ui&G)===G){D=D.next,G===ts&&(V=!0);continue}else X={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=X,g=f):x=x.next=X,St.lanes|=G,Gi|=G;X=D.action,va&&a(f,X),f=D.hasEagerState?D.eagerState:a(f,X)}else G={lane:X,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=G,g=f):x=x.next=G,St.lanes|=X,Gi|=X;D=D.next}while(D!==null&&D!==e);if(x===null?g=f:x.next=E,!Ze(f,t.memoizedState)&&(de=!0,V&&(a=es,a!==null)))throw a;t.memoizedState=f,t.baseState=g,t.baseQueue=x,l.lastRenderedState=f}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Rc(t){var e=oe(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,o=a.pending,f=e.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do f=t(f,g.action),g=g.next;while(g!==o);Ze(f,e.memoizedState)||(de=!0),e.memoizedState=f,e.baseQueue===null&&(e.baseState=f),a.lastRenderedState=f}return[f,l]}function Lp(t,e,a){var l=St,o=oe(),f=Ut;if(f){if(a===void 0)throw Error(r(407));a=a()}else a=e();var g=!Ze((Kt||o).memoizedState,a);if(g&&(o.memoizedState=a,de=!0),o=o.queue,wc(Up.bind(null,l,o,t),[t]),o.getSnapshot!==e||g||he!==null&&he.memoizedState.tag&1){if(l.flags|=2048,ls(9,{destroy:void 0},kp.bind(null,l,o,a,e),null),Yt===null)throw Error(r(349));f||(ui&127)!==0||Mp(l,e,a)}return a}function Mp(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=St.updateQueue,e===null?(e=Ml(),St.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function kp(t,e,a,l){e.value=a,e.getSnapshot=l,Ip(e)&&zp(t)}function Up(t,e,a){return a(function(){Ip(e)&&zp(t)})}function Ip(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ze(t,a)}catch{return!0}}function zp(t){var e=ca(t,2);e!==null&&Ke(e,t,2)}function xc(t){var e=Ue();if(typeof t=="function"){var a=t;if(t=a(),va){xi(!0);try{a()}finally{xi(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:t},e}function Bp(t,e,a,l){return t.baseState=a,Nc(t,Kt,typeof l=="function"?l:oi)}function xb(t,e,a,l,o){if(Bl(t))throw Error(r(485));if(t=e.action,t!==null){var f={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};k.T!==null?a(!0):f.isTransition=!1,l(f),a=e.pending,a===null?(f.next=e.pending=f,jp(e,f)):(f.next=a.next,e.pending=a.next=f)}}function jp(t,e){var a=e.action,l=e.payload,o=t.state;if(e.isTransition){var f=k.T,g={};k.T=g;try{var E=a(o,l),x=k.S;x!==null&&x(g,E),Dp(t,e,E)}catch(D){Cc(t,e,D)}finally{f!==null&&g.types!==null&&(f.types=g.types),k.T=f}}else try{f=a(o,l),Dp(t,e,f)}catch(D){Cc(t,e,D)}}function Dp(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Pp(t,e,l)},function(l){return Cc(t,e,l)}):Pp(t,e,a)}function Pp(t,e,a){e.status="fulfilled",e.value=a,qp(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,jp(t,a)))}function Cc(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,qp(e),e=e.next;while(e!==l)}t.action=null}function qp(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Gp(t,e){return e}function Hp(t,e){if(Ut){var a=Yt.formState;if(a!==null){t:{var l=St;if(Ut){if(Zt){e:{for(var o=Zt,f=En;o.nodeType!==8;){if(!f){o=null;break e}if(o=Tn(o.nextSibling),o===null){o=null;break e}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Zt=Tn(o.nextSibling),l=o.data==="F!";break t}}ki(l)}l=!1}l&&(e=a[0])}}return a=Ue(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gp,lastRenderedState:e},a.queue=l,a=u_.bind(null,St,l),l.dispatch=a,l=xc(!1),f=Ic.bind(null,St,!1,l.queue),l=Ue(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,a=xb.bind(null,St,o,f,a),o.dispatch=a,l.memoizedState=t,[e,a,!1]}function $p(t){var e=oe();return Kp(e,Kt,t)}function Kp(t,e,a){if(e=Nc(t,e,Gp)[0],t=Ul(oi)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=nr(e)}catch(g){throw g===ns?Al:g}else l=e;e=oe();var o=e.queue,f=o.dispatch;return a!==e.memoizedState&&(St.flags|=2048,ls(9,{destroy:void 0},Cb.bind(null,o,a),null)),[l,f,t]}function Cb(t,e){t.action=e}function Fp(t){var e=oe(),a=Kt;if(a!==null)return Kp(e,a,t);oe(),e=e.memoizedState,a=oe();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function ls(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=St.updateQueue,e===null&&(e=Ml(),St.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Vp(){return oe().memoizedState}function Il(t,e,a,l){var o=Ue();St.flags|=t,o.memoizedState=ls(1|e,{destroy:void 0},a,l===void 0?null:l)}function zl(t,e,a,l){var o=oe();l=l===void 0?null:l;var f=o.memoizedState.inst;Kt!==null&&l!==null&&Ec(l,Kt.memoizedState.deps)?o.memoizedState=ls(e,f,a,l):(St.flags|=t,o.memoizedState=ls(1|e,f,a,l))}function Yp(t,e){Il(8390656,8,t,e)}function wc(t,e){zl(2048,8,t,e)}function wb(t){St.flags|=4;var e=St.updateQueue;if(e===null)e=Ml(),St.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Xp(t){var e=oe().memoizedState;return wb({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Qp(t,e){return zl(4,2,t,e)}function Zp(t,e){return zl(4,4,t,e)}function Wp(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Jp(t,e,a){a=a!=null?a.concat([t]):null,zl(4,4,Wp.bind(null,e,t),a)}function Lc(){}function t_(t,e){var a=oe();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&Ec(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function e_(t,e){var a=oe();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&Ec(e,l[1]))return l[0];if(l=t(),va){xi(!0);try{t()}finally{xi(!1)}}return a.memoizedState=[l,e],l}function Mc(t,e,a){return a===void 0||(ui&1073741824)!==0&&(Lt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=ng(),St.lanes|=t,Gi|=t,a)}function n_(t,e,a,l){return Ze(a,e)?a:as.current!==null?(t=Mc(t,a,l),Ze(t,e)||(de=!0),t):(ui&42)===0||(ui&1073741824)!==0&&(Lt&261930)===0?(de=!0,t.memoizedState=a):(t=ng(),St.lanes|=t,Gi|=t,e)}function i_(t,e,a,l,o){var f=F.p;F.p=f!==0&&8>f?f:8;var g=k.T,E={};k.T=E,Ic(t,!1,e,a);try{var x=o(),D=k.S;if(D!==null&&D(E,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var V=Ob(x,l);ir(t,e,V,an(t))}else ir(t,e,l,an(t))}catch(X){ir(t,e,{then:function(){},status:"rejected",reason:X},an())}finally{F.p=f,g!==null&&E.types!==null&&(g.types=E.types),k.T=g}}function Lb(){}function kc(t,e,a,l){if(t.tag!==5)throw Error(r(476));var o=a_(t).queue;i_(t,o,e,nt,a===null?Lb:function(){return s_(t),a(l)})}function a_(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:nt},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function s_(t){var e=a_(t);e.next===null&&(e=t.alternate.memoizedState),ir(t,e.next.queue,{},an())}function Uc(){return Ne(Er)}function r_(){return oe().memoizedState}function l_(){return oe().memoizedState}function Mb(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=an();t=zi(a);var l=Bi(e,t,a);l!==null&&(Ke(l,e,a),Ws(l,e,a)),e={cache:oc()},t.payload=e;return}e=e.return}}function kb(t,e,a){var l=an();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bl(t)?o_(e,a):(a=Wo(t,e,a,l),a!==null&&(Ke(a,t,l),c_(a,e,l)))}function u_(t,e,a){var l=an();ir(t,e,a,l)}function ir(t,e,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bl(t))o_(e,o);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=e.lastRenderedReducer,f!==null))try{var g=e.lastRenderedState,E=f(g,a);if(o.hasEagerState=!0,o.eagerState=E,Ze(E,g))return ml(t,e,o,0),Yt===null&&gl(),!1}catch{}if(a=Wo(t,e,o,l),a!==null)return Ke(a,t,l),c_(a,e,l),!0}return!1}function Ic(t,e,a,l){if(l={lane:2,revertLane:pf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bl(t)){if(e)throw Error(r(479))}else e=Wo(t,a,l,2),e!==null&&Ke(e,t,2)}function Bl(t){var e=t.alternate;return t===St||e!==null&&e===St}function o_(t,e){ss=wl=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function c_(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,_d(t,a)}}var ar={readContext:Ne,use:kl,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useLayoutEffect:ie,useInsertionEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useSyncExternalStore:ie,useId:ie,useHostTransitionStatus:ie,useFormState:ie,useActionState:ie,useOptimistic:ie,useMemoCache:ie,useCacheRefresh:ie};ar.useEffectEvent=ie;var f_={readContext:Ne,use:kl,useCallback:function(t,e){return Ue().memoizedState=[t,e===void 0?null:e],t},useContext:Ne,useEffect:Yp,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Il(4194308,4,Wp.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Il(4194308,4,t,e)},useInsertionEffect:function(t,e){Il(4,2,t,e)},useMemo:function(t,e){var a=Ue();e=e===void 0?null:e;var l=t();if(va){xi(!0);try{t()}finally{xi(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=Ue();if(a!==void 0){var o=a(e);if(va){xi(!0);try{a(e)}finally{xi(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=kb.bind(null,St,t),[l.memoizedState,t]},useRef:function(t){var e=Ue();return t={current:t},e.memoizedState=t},useState:function(t){t=xc(t);var e=t.queue,a=u_.bind(null,St,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Lc,useDeferredValue:function(t,e){var a=Ue();return Mc(a,t,e)},useTransition:function(){var t=xc(!1);return t=i_.bind(null,St,t.queue,!0,!1),Ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=St,o=Ue();if(Ut){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Yt===null)throw Error(r(349));(Lt&127)!==0||Mp(l,e,a)}o.memoizedState=a;var f={value:a,getSnapshot:e};return o.queue=f,Yp(Up.bind(null,l,f,t),[t]),l.flags|=2048,ls(9,{destroy:void 0},kp.bind(null,l,f,a,e),null),a},useId:function(){var t=Ue(),e=Yt.identifierPrefix;if(Ut){var a=Hn,l=Gn;a=(l&~(1<<32-Qe(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Ll++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=Nb++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Uc,useFormState:Hp,useActionState:Hp,useOptimistic:function(t){var e=Ue();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Ic.bind(null,St,!0,a),a.dispatch=e,[t,e]},useMemoCache:Oc,useCacheRefresh:function(){return Ue().memoizedState=Mb.bind(null,St)},useEffectEvent:function(t){var e=Ue(),a={impl:t};return e.memoizedState=a,function(){if((Dt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},zc={readContext:Ne,use:kl,useCallback:t_,useContext:Ne,useEffect:wc,useImperativeHandle:Jp,useInsertionEffect:Qp,useLayoutEffect:Zp,useMemo:e_,useReducer:Ul,useRef:Vp,useState:function(){return Ul(oi)},useDebugValue:Lc,useDeferredValue:function(t,e){var a=oe();return n_(a,Kt.memoizedState,t,e)},useTransition:function(){var t=Ul(oi)[0],e=oe().memoizedState;return[typeof t=="boolean"?t:nr(t),e]},useSyncExternalStore:Lp,useId:r_,useHostTransitionStatus:Uc,useFormState:$p,useActionState:$p,useOptimistic:function(t,e){var a=oe();return Bp(a,Kt,t,e)},useMemoCache:Oc,useCacheRefresh:l_};zc.useEffectEvent=Xp;var h_={readContext:Ne,use:kl,useCallback:t_,useContext:Ne,useEffect:wc,useImperativeHandle:Jp,useInsertionEffect:Qp,useLayoutEffect:Zp,useMemo:e_,useReducer:Rc,useRef:Vp,useState:function(){return Rc(oi)},useDebugValue:Lc,useDeferredValue:function(t,e){var a=oe();return Kt===null?Mc(a,t,e):n_(a,Kt.memoizedState,t,e)},useTransition:function(){var t=Rc(oi)[0],e=oe().memoizedState;return[typeof t=="boolean"?t:nr(t),e]},useSyncExternalStore:Lp,useId:r_,useHostTransitionStatus:Uc,useFormState:Fp,useActionState:Fp,useOptimistic:function(t,e){var a=oe();return Kt!==null?Bp(a,Kt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Oc,useCacheRefresh:l_};h_.useEffectEvent=Xp;function Bc(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:v({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var jc={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=an(),o=zi(l);o.payload=e,a!=null&&(o.callback=a),e=Bi(t,o,l),e!==null&&(Ke(e,t,l),Ws(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=an(),o=zi(l);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=Bi(t,o,l),e!==null&&(Ke(e,t,l),Ws(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=an(),l=zi(a);l.tag=2,e!=null&&(l.callback=e),e=Bi(t,l,a),e!==null&&(Ke(e,t,a),Ws(e,t,a))}};function d_(t,e,a,l,o,f,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,f,g):e.prototype&&e.prototype.isPureReactComponent?!$s(a,l)||!$s(o,f):!0}function p_(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&jc.enqueueReplaceState(e,e.state,null)}function Ea(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=v({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}function __(t){_l(t)}function g_(t){console.error(t)}function m_(t){_l(t)}function jl(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function y_(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Dc(t,e,a){return a=zi(a),a.tag=3,a.payload={element:null},a.callback=function(){jl(t,e)},a}function v_(t){return t=zi(t),t.tag=3,t}function E_(t,e,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;t.payload=function(){return o(f)},t.callback=function(){y_(e,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){y_(e,a,l),typeof o!="function"&&(Hi===null?Hi=new Set([this]):Hi.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Ub(t,e,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Ja(e,a,o,!0),a=Je.current,a!==null){switch(a.tag){case 31:case 13:return bn===null?Ql():a.alternate===null&&ae===0&&(ae=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Ol?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),ff(t,l,o)),!1;case 22:return a.flags|=65536,l===Ol?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),ff(t,l,o)),!1}throw Error(r(435,a.tag))}return ff(t,l,o),Ql(),!1}if(Ut)return e=Je.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==ac&&(t=Error(r(422),{cause:l}),Vs(mn(t,a)))):(l!==ac&&(e=Error(r(423),{cause:l}),Vs(mn(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=mn(l,a),o=Dc(t.stateNode,l,o),_c(t,o),ae!==4&&(ae=2)),!1;var f=Error(r(520),{cause:l});if(f=mn(f,a),hr===null?hr=[f]:hr.push(f),ae!==4&&(ae=2),e===null)return!0;l=mn(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=Dc(a.stateNode,l,t),_c(a,t),!1;case 1:if(e=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Hi===null||!Hi.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=v_(o),E_(o,t,a,l),_c(a,o),!1}a=a.return}while(a!==null);return!1}var Pc=Error(r(461)),de=!1;function Re(t,e,a,l){e.child=t===null?Ap(e,null,a,l):ya(e,t.child,a,l)}function b_(t,e,a,l,o){a=a.render;var f=e.ref;if("ref"in l){var g={};for(var E in l)E!=="ref"&&(g[E]=l[E])}else g=l;return pa(e),l=bc(t,e,a,g,f,o),E=Tc(),t!==null&&!de?(Sc(t,e,o),ci(t,e,o)):(Ut&&E&&nc(e),e.flags|=1,Re(t,e,l,o),e.child)}function T_(t,e,a,l,o){if(t===null){var f=a.type;return typeof f=="function"&&!Jo(f)&&f.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=f,S_(t,e,f,l,o)):(t=vl(a.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(f=t.child,!Yc(t,o)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:$s,a(g,l)&&t.ref===e.ref)return ci(t,e,o)}return e.flags|=1,t=ai(f,l),t.ref=e.ref,t.return=e,e.child=t}function S_(t,e,a,l,o){if(t!==null){var f=t.memoizedProps;if($s(f,l)&&t.ref===e.ref)if(de=!1,e.pendingProps=l=f,Yc(t,o))(t.flags&131072)!==0&&(de=!0);else return e.lanes=t.lanes,ci(t,e,o)}return qc(t,e,a,l,o)}function A_(t,e,a,l){var o=l.children,f=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~f}else l=0,e.child=null;return O_(t,e,f,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Sl(e,f!==null?f.cachePool:null),f!==null?Rp(e,f):mc(),xp(e);else return l=e.lanes=536870912,O_(t,e,f!==null?f.baseLanes|a:a,a,l)}else f!==null?(Sl(e,f.cachePool),Rp(e,f),Di(),e.memoizedState=null):(t!==null&&Sl(e,null),mc(),Di());return Re(t,e,o,a),e.child}function sr(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function O_(t,e,a,l,o){var f=fc();return f=f===null?null:{parent:fe._currentValue,pool:f},e.memoizedState={baseLanes:a,cachePool:f},t!==null&&Sl(e,null),mc(),xp(e),t!==null&&Ja(t,e,l,!0),e.childLanes=o,null}function Dl(t,e){return e=ql({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function N_(t,e,a){return ya(e,t.child,null,a),t=Dl(e,e.pendingProps),t.flags|=2,tn(e),e.memoizedState=null,t}function Ib(t,e,a){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ut){if(l.mode==="hidden")return t=Dl(e,l),e.lanes=536870912,sr(null,t);if(vc(e),(t=Zt)?(t=jg(t,En),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Li!==null?{id:Gn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},a=op(t),a.return=e,e.child=a,Oe=e,Zt=null)):t=null,t===null)throw ki(e);return e.lanes=536870912,null}return Dl(e,l)}var f=t.memoizedState;if(f!==null){var g=f.dehydrated;if(vc(e),o)if(e.flags&256)e.flags&=-257,e=N_(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(de||Ja(t,e,a,!1),o=(a&t.childLanes)!==0,de||o){if(l=Yt,l!==null&&(g=gd(l,a),g!==0&&g!==f.retryLane))throw f.retryLane=g,ca(t,g),Ke(l,t,g),Pc;Ql(),e=N_(t,e,a)}else t=f.treeContext,Zt=Tn(g.nextSibling),Oe=e,Ut=!0,Mi=null,En=!1,t!==null&&hp(e,t),e=Dl(e,l),e.flags|=4096;return e}return t=ai(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Pl(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function qc(t,e,a,l,o){return pa(e),a=bc(t,e,a,l,void 0,o),l=Tc(),t!==null&&!de?(Sc(t,e,o),ci(t,e,o)):(Ut&&l&&nc(e),e.flags|=1,Re(t,e,a,o),e.child)}function R_(t,e,a,l,o,f){return pa(e),e.updateQueue=null,a=wp(e,l,a,o),Cp(t),l=Tc(),t!==null&&!de?(Sc(t,e,f),ci(t,e,f)):(Ut&&l&&nc(e),e.flags|=1,Re(t,e,a,f),e.child)}function x_(t,e,a,l,o){if(pa(e),e.stateNode===null){var f=Xa,g=a.contextType;typeof g=="object"&&g!==null&&(f=Ne(g)),f=new a(l,f),e.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=jc,e.stateNode=f,f._reactInternals=e,f=e.stateNode,f.props=l,f.state=e.memoizedState,f.refs={},dc(e),g=a.contextType,f.context=typeof g=="object"&&g!==null?Ne(g):Xa,f.state=e.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Bc(e,a,g,l),f.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&jc.enqueueReplaceState(f,f.state,null),tr(e,l,f,o),Js(),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){f=e.stateNode;var E=e.memoizedProps,x=Ea(a,E);f.props=x;var D=f.context,V=a.contextType;g=Xa,typeof V=="object"&&V!==null&&(g=Ne(V));var X=a.getDerivedStateFromProps;V=typeof X=="function"||typeof f.getSnapshotBeforeUpdate=="function",E=e.pendingProps!==E,V||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(E||D!==g)&&p_(e,f,l,g),Ii=!1;var G=e.memoizedState;f.state=G,tr(e,l,f,o),Js(),D=e.memoizedState,E||G!==D||Ii?(typeof X=="function"&&(Bc(e,a,X,l),D=e.memoizedState),(x=Ii||d_(e,a,x,l,G,D,g))?(V||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(e.flags|=4194308)):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=D),f.props=l,f.state=D,f.context=g,l=x):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{f=e.stateNode,pc(t,e),g=e.memoizedProps,V=Ea(a,g),f.props=V,X=e.pendingProps,G=f.context,D=a.contextType,x=Xa,typeof D=="object"&&D!==null&&(x=Ne(D)),E=a.getDerivedStateFromProps,(D=typeof E=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==X||G!==x)&&p_(e,f,l,x),Ii=!1,G=e.memoizedState,f.state=G,tr(e,l,f,o),Js();var H=e.memoizedState;g!==X||G!==H||Ii||t!==null&&t.dependencies!==null&&bl(t.dependencies)?(typeof E=="function"&&(Bc(e,a,E,l),H=e.memoizedState),(V=Ii||d_(e,a,V,l,G,H,x)||t!==null&&t.dependencies!==null&&bl(t.dependencies))?(D||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,H,x),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,H,x)),typeof f.componentDidUpdate=="function"&&(e.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===t.memoizedProps&&G===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&G===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=H),f.props=l,f.state=H,f.context=x,l=V):(typeof f.componentDidUpdate!="function"||g===t.memoizedProps&&G===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&G===t.memoizedState||(e.flags|=1024),l=!1)}return f=l,Pl(t,e),l=(e.flags&128)!==0,f||l?(f=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),e.flags|=1,t!==null&&l?(e.child=ya(e,t.child,null,o),e.child=ya(e,null,a,o)):Re(t,e,a,o),e.memoizedState=f.state,t=e.child):t=ci(t,e,o),t}function C_(t,e,a,l){return ha(),e.flags|=256,Re(t,e,a,l),e.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(t){return{baseLanes:t,cachePool:yp()}}function $c(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=nn),t}function w_(t,e,a){var l=e.pendingProps,o=!1,f=(e.flags&128)!==0,g;if((g=f)||(g=t!==null&&t.memoizedState===null?!1:(ue.current&2)!==0),g&&(o=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ut){if(o?ji(e):Di(),(t=Zt)?(t=jg(t,En),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Li!==null?{id:Gn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},a=op(t),a.return=e,e.child=a,Oe=e,Zt=null)):t=null,t===null)throw ki(e);return Rf(t)?e.lanes=32:e.lanes=536870912,null}var E=l.children;return l=l.fallback,o?(Di(),o=e.mode,E=ql({mode:"hidden",children:E},o),l=fa(l,o,a,null),E.return=e,l.return=e,E.sibling=l,e.child=E,l=e.child,l.memoizedState=Hc(a),l.childLanes=$c(t,g,a),e.memoizedState=Gc,sr(null,l)):(ji(e),Kc(e,E))}var x=t.memoizedState;if(x!==null&&(E=x.dehydrated,E!==null)){if(f)e.flags&256?(ji(e),e.flags&=-257,e=Fc(t,e,a)):e.memoizedState!==null?(Di(),e.child=t.child,e.flags|=128,e=null):(Di(),E=l.fallback,o=e.mode,l=ql({mode:"visible",children:l.children},o),E=fa(E,o,a,null),E.flags|=2,l.return=e,E.return=e,l.sibling=E,e.child=l,ya(e,t.child,null,a),l=e.child,l.memoizedState=Hc(a),l.childLanes=$c(t,g,a),e.memoizedState=Gc,e=sr(null,l));else if(ji(e),Rf(E)){if(g=E.nextSibling&&E.nextSibling.dataset,g)var D=g.dgst;g=D,l=Error(r(419)),l.stack="",l.digest=g,Vs({value:l,source:null,stack:null}),e=Fc(t,e,a)}else if(de||Ja(t,e,a,!1),g=(a&t.childLanes)!==0,de||g){if(g=Yt,g!==null&&(l=gd(g,a),l!==0&&l!==x.retryLane))throw x.retryLane=l,ca(t,l),Ke(g,t,l),Pc;Nf(E)||Ql(),e=Fc(t,e,a)}else Nf(E)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,Zt=Tn(E.nextSibling),Oe=e,Ut=!0,Mi=null,En=!1,t!==null&&hp(e,t),e=Kc(e,l.children),e.flags|=4096);return e}return o?(Di(),E=l.fallback,o=e.mode,x=t.child,D=x.sibling,l=ai(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&65011712,D!==null?E=ai(D,E):(E=fa(E,o,a,null),E.flags|=2),E.return=e,l.return=e,l.sibling=E,e.child=l,sr(null,l),l=e.child,E=t.child.memoizedState,E===null?E=Hc(a):(o=E.cachePool,o!==null?(x=fe._currentValue,o=o.parent!==x?{parent:x,pool:x}:o):o=yp(),E={baseLanes:E.baseLanes|a,cachePool:o}),l.memoizedState=E,l.childLanes=$c(t,g,a),e.memoizedState=Gc,sr(t.child,l)):(ji(e),a=t.child,t=a.sibling,a=ai(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=a,e.memoizedState=null,a)}function Kc(t,e){return e=ql({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ql(t,e){return t=We(22,t,null,e),t.lanes=0,t}function Fc(t,e,a){return ya(e,t.child,null,a),t=Kc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function L_(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),lc(t.return,e,a)}function Vc(t,e,a,l,o,f){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:f}:(g.isBackwards=e,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=a,g.tailMode=o,g.treeForkCount=f)}function M_(t,e,a){var l=e.pendingProps,o=l.revealOrder,f=l.tail;l=l.children;var g=ue.current,E=(g&2)!==0;if(E?(g=g&1|2,e.flags|=128):g&=1,$(ue,g),Re(t,e,l,a),l=Ut?Fs:0,!E&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&L_(t,a,e);else if(t.tag===19)L_(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&Cl(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),Vc(e,!1,o,a,f,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Cl(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}Vc(e,!0,a,null,f,l);break;case"together":Vc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function ci(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Gi|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Ja(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=ai(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=ai(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Yc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&bl(t)))}function zb(t,e,a){switch(e.tag){case 3:ct(e,e.stateNode.containerInfo),Ui(e,fe,t.memoizedState.cache),ha();break;case 27:case 5:Nt(e);break;case 4:ct(e,e.stateNode.containerInfo);break;case 10:Ui(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,vc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(ji(e),e.flags|=128,null):(a&e.child.childLanes)!==0?w_(t,e,a):(ji(e),t=ci(t,e,a),t!==null?t.sibling:null);ji(e);break;case 19:var o=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Ja(t,e,a,!1),l=(a&e.childLanes)!==0),o){if(l)return M_(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$(ue,ue.current),l)break;return null;case 22:return e.lanes=0,A_(t,e,a,e.pendingProps);case 24:Ui(e,fe,t.memoizedState.cache)}return ci(t,e,a)}function k_(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)de=!0;else{if(!Yc(t,a)&&(e.flags&128)===0)return de=!1,zb(t,e,a);de=(t.flags&131072)!==0}else de=!1,Ut&&(e.flags&1048576)!==0&&fp(e,Fs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ga(e.elementType),e.type=t,typeof t=="function")Jo(t)?(l=Ea(t,l),e.tag=1,e=x_(null,e,t,l,a)):(e.tag=0,e=qc(null,e,t,l,a));else{if(t!=null){var o=t.$$typeof;if(o===z){e.tag=11,e=b_(null,e,t,l,a);break t}else if(o===C){e.tag=14,e=T_(null,e,t,l,a);break t}}throw e=at(t)||t,Error(r(306,e,""))}}return e;case 0:return qc(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,o=Ea(l,e.pendingProps),x_(t,e,l,o,a);case 3:t:{if(ct(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var f=e.memoizedState;o=f.element,pc(t,e),tr(e,l,null,a);var g=e.memoizedState;if(l=g.cache,Ui(e,fe,l),l!==f.cache&&uc(e,[fe],a,!0),Js(),l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=f,e.memoizedState=f,e.flags&256){e=C_(t,e,l,a);break t}else if(l!==o){o=mn(Error(r(424)),e),Vs(o),e=C_(t,e,l,a);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Zt=Tn(t.firstChild),Oe=e,Ut=!0,Mi=null,En=!0,a=Ap(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ha(),l===o){e=ci(t,e,a);break t}Re(t,e,l,a)}e=e.child}return e;case 26:return Pl(t,e),t===null?(a=$g(e.type,null,e.pendingProps,null))?e.memoizedState=a:Ut||(a=e.type,t=e.pendingProps,l=iu(st.current).createElement(a),l[Ae]=e,l[De]=t,xe(l,a,t),be(l),e.stateNode=l):e.memoizedState=$g(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Nt(e),t===null&&Ut&&(l=e.stateNode=qg(e.type,e.pendingProps,st.current),Oe=e,En=!0,o=Zt,Vi(e.type)?(xf=o,Zt=Tn(l.firstChild)):Zt=o),Re(t,e,e.pendingProps.children,a),Pl(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ut&&((o=l=Zt)&&(l=hT(l,e.type,e.pendingProps,En),l!==null?(e.stateNode=l,Oe=e,Zt=Tn(l.firstChild),En=!1,o=!0):o=!1),o||ki(e)),Nt(e),o=e.type,f=e.pendingProps,g=t!==null?t.memoizedProps:null,l=f.children,Sf(o,f)?l=null:g!==null&&Sf(o,g)&&(e.flags|=32),e.memoizedState!==null&&(o=bc(t,e,Rb,null,null,a),Er._currentValue=o),Pl(t,e),Re(t,e,l,a),e.child;case 6:return t===null&&Ut&&((t=a=Zt)&&(a=dT(a,e.pendingProps,En),a!==null?(e.stateNode=a,Oe=e,Zt=null,t=!0):t=!1),t||ki(e)),null;case 13:return w_(t,e,a);case 4:return ct(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ya(e,null,l,a):Re(t,e,l,a),e.child;case 11:return b_(t,e,e.type,e.pendingProps,a);case 7:return Re(t,e,e.pendingProps,a),e.child;case 8:return Re(t,e,e.pendingProps.children,a),e.child;case 12:return Re(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Ui(e,e.type,l.value),Re(t,e,l.children,a),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,pa(e),o=Ne(o),l=l(o),e.flags|=1,Re(t,e,l,a),e.child;case 14:return T_(t,e,e.type,e.pendingProps,a);case 15:return S_(t,e,e.type,e.pendingProps,a);case 19:return M_(t,e,a);case 31:return Ib(t,e,a);case 22:return A_(t,e,a,e.pendingProps);case 24:return pa(e),l=Ne(fe),t===null?(o=fc(),o===null&&(o=Yt,f=oc(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),e.memoizedState={parent:l,cache:o},dc(e),Ui(e,fe,o)):((t.lanes&a)!==0&&(pc(t,e),tr(e,null,null,a),Js()),o=t.memoizedState,f=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Ui(e,fe,l)):(l=f.cache,Ui(e,fe,l),l!==o.cache&&uc(e,[fe],a,!0))),Re(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function fi(t){t.flags|=4}function Xc(t,e,a,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(rg())t.flags|=8192;else throw ma=Ol,hc}else t.flags&=-16777217}function U_(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Xg(e))if(rg())t.flags|=8192;else throw ma=Ol,hc}function Gl(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?dd():536870912,t.lanes|=e,fs|=e)}function rr(t,e){if(!Ut)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Wt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function Bb(t,e,a){var l=e.pendingProps;switch(ic(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(e),null;case 1:return Wt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),li(fe),rt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Wa(e)?fi(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,sc())),Wt(e),null;case 26:var o=e.type,f=e.memoizedState;return t===null?(fi(e),f!==null?(Wt(e),U_(e,f)):(Wt(e),Xc(e,o,null,l,a))):f?f!==t.memoizedState?(fi(e),Wt(e),U_(e,f)):(Wt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&fi(e),Wt(e),Xc(e,o,t,l,a)),null;case 27:if(gt(e),a=st.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&fi(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Wt(e),null}t=J.current,Wa(e)?dp(e):(t=qg(o,l,a),e.stateNode=t,fi(e))}return Wt(e),null;case 5:if(gt(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&fi(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Wt(e),null}if(f=J.current,Wa(e))dp(e);else{var g=iu(st.current);switch(f){case 1:f=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:f=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":f=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":f=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":f=g.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}f[Ae]=e,f[De]=l;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=f;t:switch(xe(f,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&fi(e)}}return Wt(e),Xc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&fi(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=st.current,Wa(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,o=Oe,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[Ae]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||wg(t.nodeValue,a)),t||ki(e,!0)}else t=iu(t).createTextNode(l),t[Ae]=e,e.stateNode=t}return Wt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Wa(e),a!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Ae]=e}else ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Wt(e),t=!1}else a=sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(tn(e),e):(tn(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Wt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Wa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[Ae]=e}else ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Wt(e),o=!1}else o=sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(tn(e),e):(tn(e),null)}return tn(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Gl(e,e.updateQueue),Wt(e),null);case 4:return rt(),t===null&&yf(e.stateNode.containerInfo),Wt(e),null;case 10:return li(e.type),Wt(e),null;case 19:if(j(ue),l=e.memoizedState,l===null)return Wt(e),null;if(o=(e.flags&128)!==0,f=l.rendering,f===null)if(o)rr(l,!1);else{if(ae!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(f=Cl(t),f!==null){for(e.flags|=128,rr(l,!1),t=f.updateQueue,e.updateQueue=t,Gl(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)up(a,t),a=a.sibling;return $(ue,ue.current&1|2),Ut&&si(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Pt()>Vl&&(e.flags|=128,o=!0,rr(l,!1),e.lanes=4194304)}else{if(!o)if(t=Cl(f),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Gl(e,t),rr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Ut)return Wt(e),null}else 2*Pt()-l.renderingStartTime>Vl&&a!==536870912&&(e.flags|=128,o=!0,rr(l,!1),e.lanes=4194304);l.isBackwards?(f.sibling=e.child,e.child=f):(t=l.last,t!==null?t.sibling=f:e.child=f,l.last=f)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Pt(),t.sibling=null,a=ue.current,$(ue,o?a&1|2:a&1),Ut&&si(e,l.treeForkCount),t):(Wt(e),null);case 22:case 23:return tn(e),yc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Wt(e),e.subtreeFlags&6&&(e.flags|=8192)):Wt(e),a=e.updateQueue,a!==null&&Gl(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&j(_a),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),li(fe),Wt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function jb(t,e){switch(ic(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return li(fe),rt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return gt(e),null;case 31:if(e.memoizedState!==null){if(tn(e),e.alternate===null)throw Error(r(340));ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(tn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(ue),null;case 4:return rt(),null;case 10:return li(e.type),null;case 22:case 23:return tn(e),yc(),t!==null&&j(_a),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return li(fe),null;case 25:return null;default:return null}}function I_(t,e){switch(ic(e),e.tag){case 3:li(fe),rt();break;case 26:case 27:case 5:gt(e);break;case 4:rt();break;case 31:e.memoizedState!==null&&tn(e);break;case 13:tn(e);break;case 19:j(ue);break;case 10:li(e.type);break;case 22:case 23:tn(e),yc(),t!==null&&j(_a);break;case 24:li(fe)}}function lr(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&t)===t){l=void 0;var f=a.create,g=a.inst;l=f(),g.destroy=l}a=a.next}while(a!==o)}}catch(E){Ht(e,e.return,E)}}function Pi(t,e,a){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&t)===t){var g=l.inst,E=g.destroy;if(E!==void 0){g.destroy=void 0,o=e;var x=a,D=E;try{D()}catch(V){Ht(o,x,V)}}}l=l.next}while(l!==f)}}catch(V){Ht(e,e.return,V)}}function z_(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{Np(e,a)}catch(l){Ht(t,t.return,l)}}}function B_(t,e,a){a.props=Ea(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Ht(t,e,l)}}function ur(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(o){Ht(t,e,o)}}function $n(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Ht(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ht(t,e,o)}else a.current=null}function j_(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Ht(t,t.return,o)}}function Qc(t,e,a){try{var l=t.stateNode;rT(l,t.type,a,e),l[De]=e}catch(o){Ht(t,t.return,o)}}function D_(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Vi(t.type)||t.tag===4}function Zc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||D_(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Vi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Wc(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=ni));else if(l!==4&&(l===27&&Vi(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(Wc(t,e,a),t=t.sibling;t!==null;)Wc(t,e,a),t=t.sibling}function Hl(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&Vi(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Hl(t,e,a),t=t.sibling;t!==null;)Hl(t,e,a),t=t.sibling}function P_(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);xe(e,l,a),e[Ae]=t,e[De]=a}catch(f){Ht(t,t.return,f)}}var hi=!1,pe=!1,Jc=!1,q_=typeof WeakSet=="function"?WeakSet:Set,Te=null;function Db(t,e){if(t=t.containerInfo,bf=cu,t=Jd(t),Fo(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break t}var g=0,E=-1,x=-1,D=0,V=0,X=t,G=null;e:for(;;){for(var H;X!==a||o!==0&&X.nodeType!==3||(E=g+o),X!==f||l!==0&&X.nodeType!==3||(x=g+l),X.nodeType===3&&(g+=X.nodeValue.length),(H=X.firstChild)!==null;)G=X,X=H;for(;;){if(X===t)break e;if(G===a&&++D===o&&(E=g),G===f&&++V===l&&(x=g),(H=X.nextSibling)!==null)break;X=G,G=X.parentNode}X=H}a=E===-1||x===-1?null:{start:E,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Tf={focusedElem:t,selectionRange:a},cu=!1,Te=e;Te!==null;)if(e=Te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Te=t;else for(;Te!==null;){switch(e=Te,f=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)o=t[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&f!==null){t=void 0,a=e,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var ut=Ea(a.type,o);t=l.getSnapshotBeforeUpdate(ut,f),l.__reactInternalSnapshotBeforeUpdate=t}catch(mt){Ht(a,a.return,mt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Of(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Of(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Te=t;break}Te=e.return}}function G_(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pi(t,a),l&4&&lr(5,a);break;case 1:if(pi(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(g){Ht(a,a.return,g)}else{var o=Ea(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){Ht(a,a.return,g)}}l&64&&z_(a),l&512&&ur(a,a.return);break;case 3:if(pi(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Np(t,e)}catch(g){Ht(a,a.return,g)}}break;case 27:e===null&&l&4&&P_(a);case 26:case 5:pi(t,a),e===null&&l&4&&j_(a),l&512&&ur(a,a.return);break;case 12:pi(t,a);break;case 31:pi(t,a),l&4&&K_(t,a);break;case 13:pi(t,a),l&4&&F_(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Yb.bind(null,a),pT(t,a))));break;case 22:if(l=a.memoizedState!==null||hi,!l){e=e!==null&&e.memoizedState!==null||pe,o=hi;var f=pe;hi=l,(pe=e)&&!f?_i(t,a,(a.subtreeFlags&8772)!==0):pi(t,a),hi=o,pe=f}break;case 30:break;default:pi(t,a)}}function H_(t){var e=t.alternate;e!==null&&(t.alternate=null,H_(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Co(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var te=null,qe=!1;function di(t,e,a){for(a=a.child;a!==null;)$_(t,e,a),a=a.sibling}function $_(t,e,a){if(Le&&typeof Le.onCommitFiberUnmount=="function")try{Le.onCommitFiberUnmount(wn,a)}catch{}switch(a.tag){case 26:pe||$n(a,e),di(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pe||$n(a,e);var l=te,o=qe;Vi(a.type)&&(te=a.stateNode,qe=!1),di(t,e,a),mr(a.stateNode),te=l,qe=o;break;case 5:pe||$n(a,e);case 6:if(l=te,o=qe,te=null,di(t,e,a),te=l,qe=o,te!==null)if(qe)try{(te.nodeType===9?te.body:te.nodeName==="HTML"?te.ownerDocument.body:te).removeChild(a.stateNode)}catch(f){Ht(a,e,f)}else try{te.removeChild(a.stateNode)}catch(f){Ht(a,e,f)}break;case 18:te!==null&&(qe?(t=te,zg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),vs(t)):zg(te,a.stateNode));break;case 4:l=te,o=qe,te=a.stateNode.containerInfo,qe=!0,di(t,e,a),te=l,qe=o;break;case 0:case 11:case 14:case 15:Pi(2,a,e),pe||Pi(4,a,e),di(t,e,a);break;case 1:pe||($n(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&B_(a,e,l)),di(t,e,a);break;case 21:di(t,e,a);break;case 22:pe=(l=pe)||a.memoizedState!==null,di(t,e,a),pe=l;break;default:di(t,e,a)}}function K_(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vs(t)}catch(a){Ht(e,e.return,a)}}}function F_(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vs(t)}catch(a){Ht(e,e.return,a)}}function Pb(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new q_),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new q_),e;default:throw Error(r(435,t.tag))}}function $l(t,e){var a=Pb(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var o=Xb.bind(null,t,l);l.then(o,o)}})}function Ge(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=t,g=e,E=g;t:for(;E!==null;){switch(E.tag){case 27:if(Vi(E.type)){te=E.stateNode,qe=!1;break t}break;case 5:te=E.stateNode,qe=!1;break t;case 3:case 4:te=E.stateNode.containerInfo,qe=!0;break t}E=E.return}if(te===null)throw Error(r(160));$_(f,g,o),te=null,qe=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)V_(e,t),e=e.sibling}var Mn=null;function V_(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ge(e,t),He(t),l&4&&(Pi(3,t,t.return),lr(3,t),Pi(5,t,t.return));break;case 1:Ge(e,t),He(t),l&512&&(pe||a===null||$n(a,a.return)),l&64&&hi&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Mn;if(Ge(e,t),He(t),l&512&&(pe||a===null||$n(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Is]||f[Ae]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),xe(f,l,a),f[Ae]=t,be(f),l=f;break t;case"link":var g=Vg("link","href",o).get(l+(a.href||""));if(g){for(var E=0;E<g.length;E++)if(f=g[E],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(E,1);break e}}f=o.createElement(l),xe(f,l,a),o.head.appendChild(f);break;case"meta":if(g=Vg("meta","content",o).get(l+(a.content||""))){for(E=0;E<g.length;E++)if(f=g[E],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(E,1);break e}}f=o.createElement(l),xe(f,l,a),o.head.appendChild(f);break;default:throw Error(r(468,l))}f[Ae]=t,be(f),l=f}t.stateNode=l}else Yg(o,t.type,t.stateNode);else t.stateNode=Fg(o,l,t.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Yg(o,t.type,t.stateNode):Fg(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Qc(t,t.memoizedProps,a.memoizedProps)}break;case 27:Ge(e,t),He(t),l&512&&(pe||a===null||$n(a,a.return)),a!==null&&l&4&&Qc(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Ge(e,t),He(t),l&512&&(pe||a===null||$n(a,a.return)),t.flags&32){o=t.stateNode;try{Ga(o,"")}catch(ut){Ht(t,t.return,ut)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,Qc(t,o,a!==null?a.memoizedProps:o)),l&1024&&(Jc=!0);break;case 6:if(Ge(e,t),He(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(ut){Ht(t,t.return,ut)}}break;case 3:if(ru=null,o=Mn,Mn=au(e.containerInfo),Ge(e,t),Mn=o,He(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{vs(e.containerInfo)}catch(ut){Ht(t,t.return,ut)}Jc&&(Jc=!1,Y_(t));break;case 4:l=Mn,Mn=au(t.stateNode.containerInfo),Ge(e,t),He(t),Mn=l;break;case 12:Ge(e,t),He(t);break;case 31:Ge(e,t),He(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$l(t,l)));break;case 13:Ge(e,t),He(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Fl=Pt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$l(t,l)));break;case 22:o=t.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,D=hi,V=pe;if(hi=D||o,pe=V||x,Ge(e,t),pe=V,hi=D,He(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||x||hi||pe||ba(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){x=a=e;try{if(f=x.stateNode,o)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{E=x.stateNode;var X=x.memoizedProps.style,G=X!=null&&X.hasOwnProperty("display")?X.display:null;E.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(ut){Ht(x,x.return,ut)}}}else if(e.tag===6){if(a===null){x=e;try{x.stateNode.nodeValue=o?"":x.memoizedProps}catch(ut){Ht(x,x.return,ut)}}}else if(e.tag===18){if(a===null){x=e;try{var H=x.stateNode;o?Bg(H,!0):Bg(x.stateNode,!1)}catch(ut){Ht(x,x.return,ut)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,$l(t,a))));break;case 19:Ge(e,t),He(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$l(t,l)));break;case 30:break;case 21:break;default:Ge(e,t),He(t)}}function He(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(D_(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,f=Zc(t);Hl(t,f,o);break;case 5:var g=a.stateNode;a.flags&32&&(Ga(g,""),a.flags&=-33);var E=Zc(t);Hl(t,E,g);break;case 3:case 4:var x=a.stateNode.containerInfo,D=Zc(t);Wc(t,D,x);break;default:throw Error(r(161))}}catch(V){Ht(t,t.return,V)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Y_(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Y_(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function pi(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)G_(t,e.alternate,e),e=e.sibling}function ba(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Pi(4,e,e.return),ba(e);break;case 1:$n(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&B_(e,e.return,a),ba(e);break;case 27:mr(e.stateNode);case 26:case 5:$n(e,e.return),ba(e);break;case 22:e.memoizedState===null&&ba(e);break;case 30:ba(e);break;default:ba(e)}t=t.sibling}}function _i(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,f=e,g=f.flags;switch(f.tag){case 0:case 11:case 15:_i(o,f,a),lr(4,f);break;case 1:if(_i(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Ht(l,l.return,D)}if(l=f,o=l.updateQueue,o!==null){var E=l.stateNode;try{var x=o.shared.hiddenCallbacks;if(x!==null)for(o.shared.hiddenCallbacks=null,o=0;o<x.length;o++)Op(x[o],E)}catch(D){Ht(l,l.return,D)}}a&&g&64&&z_(f),ur(f,f.return);break;case 27:P_(f);case 26:case 5:_i(o,f,a),a&&l===null&&g&4&&j_(f),ur(f,f.return);break;case 12:_i(o,f,a);break;case 31:_i(o,f,a),a&&g&4&&K_(o,f);break;case 13:_i(o,f,a),a&&g&4&&F_(o,f);break;case 22:f.memoizedState===null&&_i(o,f,a),ur(f,f.return);break;case 30:break;default:_i(o,f,a)}e=e.sibling}}function tf(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Ys(a))}function ef(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ys(t))}function kn(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)X_(t,e,a,l),e=e.sibling}function X_(t,e,a,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:kn(t,e,a,l),o&2048&&lr(9,e);break;case 1:kn(t,e,a,l);break;case 3:kn(t,e,a,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ys(t)));break;case 12:if(o&2048){kn(t,e,a,l),t=e.stateNode;try{var f=e.memoizedProps,g=f.id,E=f.onPostCommit;typeof E=="function"&&E(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(x){Ht(e,e.return,x)}}else kn(t,e,a,l);break;case 31:kn(t,e,a,l);break;case 13:kn(t,e,a,l);break;case 23:break;case 22:f=e.stateNode,g=e.alternate,e.memoizedState!==null?f._visibility&2?kn(t,e,a,l):or(t,e):f._visibility&2?kn(t,e,a,l):(f._visibility|=2,us(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&tf(g,e);break;case 24:kn(t,e,a,l),o&2048&&ef(e.alternate,e);break;default:kn(t,e,a,l)}}function us(t,e,a,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var f=t,g=e,E=a,x=l,D=g.flags;switch(g.tag){case 0:case 11:case 15:us(f,g,E,x,o),lr(8,g);break;case 23:break;case 22:var V=g.stateNode;g.memoizedState!==null?V._visibility&2?us(f,g,E,x,o):or(f,g):(V._visibility|=2,us(f,g,E,x,o)),o&&D&2048&&tf(g.alternate,g);break;case 24:us(f,g,E,x,o),o&&D&2048&&ef(g.alternate,g);break;default:us(f,g,E,x,o)}e=e.sibling}}function or(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,o=l.flags;switch(l.tag){case 22:or(a,l),o&2048&&tf(l.alternate,l);break;case 24:or(a,l),o&2048&&ef(l.alternate,l);break;default:or(a,l)}e=e.sibling}}var cr=8192;function os(t,e,a){if(t.subtreeFlags&cr)for(t=t.child;t!==null;)Q_(t,e,a),t=t.sibling}function Q_(t,e,a){switch(t.tag){case 26:os(t,e,a),t.flags&cr&&t.memoizedState!==null&&NT(a,Mn,t.memoizedState,t.memoizedProps);break;case 5:os(t,e,a);break;case 3:case 4:var l=Mn;Mn=au(t.stateNode.containerInfo),os(t,e,a),Mn=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=cr,cr=16777216,os(t,e,a),cr=l):os(t,e,a));break;default:os(t,e,a)}}function Z_(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function fr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];Te=l,J_(l,t)}Z_(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)W_(t),t=t.sibling}function W_(t){switch(t.tag){case 0:case 11:case 15:fr(t),t.flags&2048&&Pi(9,t,t.return);break;case 3:fr(t);break;case 12:fr(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Kl(t)):fr(t);break;default:fr(t)}}function Kl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];Te=l,J_(l,t)}Z_(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Pi(8,e,e.return),Kl(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Kl(e));break;default:Kl(e)}t=t.sibling}}function J_(t,e){for(;Te!==null;){var a=Te;switch(a.tag){case 0:case 11:case 15:Pi(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ys(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Te=l;else t:for(a=t;Te!==null;){l=Te;var o=l.sibling,f=l.return;if(H_(l),l===a){Te=null;break t}if(o!==null){o.return=f,Te=o;break t}Te=f}}}var qb={getCacheForType:function(t){var e=Ne(fe),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return Ne(fe).controller.signal}},Gb=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Yt=null,xt=null,Lt=0,Gt=0,en=null,qi=!1,cs=!1,nf=!1,gi=0,ae=0,Gi=0,Ta=0,af=0,nn=0,fs=0,hr=null,$e=null,sf=!1,Fl=0,tg=0,Vl=1/0,Yl=null,Hi=null,ge=0,$i=null,hs=null,mi=0,rf=0,lf=null,eg=null,dr=0,uf=null;function an(){return(Dt&2)!==0&&Lt!==0?Lt&-Lt:k.T!==null?pf():md()}function ng(){if(nn===0)if((Lt&536870912)===0||Ut){var t=nl;nl<<=1,(nl&3932160)===0&&(nl=262144),nn=t}else nn=536870912;return t=Je.current,t!==null&&(t.flags|=32),nn}function Ke(t,e,a){(t===Yt&&(Gt===2||Gt===9)||t.cancelPendingCommit!==null)&&(ds(t,0),Ki(t,Lt,nn,!1)),Us(t,a),((Dt&2)===0||t!==Yt)&&(t===Yt&&((Dt&2)===0&&(Ta|=a),ae===4&&Ki(t,Lt,nn,!1)),Kn(t))}function ig(t,e,a){if((Dt&6)!==0)throw Error(r(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||ks(t,e),o=l?Kb(t,e):cf(t,e,!0),f=l;do{if(o===0){cs&&!l&&Ki(t,e,0,!1);break}else{if(a=t.current.alternate,f&&!Hb(a)){o=cf(t,e,!1),f=!1;continue}if(o===2){if(f=e,t.errorRecoveryDisabledLanes&f)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var E=t;o=hr;var x=E.current.memoizedState.isDehydrated;if(x&&(ds(E,g).flags|=256),g=cf(E,g,!1),g!==2){if(nf&&!x){E.errorRecoveryDisabledLanes|=f,Ta|=f,o=4;break t}f=$e,$e=o,f!==null&&($e===null?$e=f:$e.push.apply($e,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){ds(t,0),Ki(t,e,0,!0);break}t:{switch(l=t,f=o,f){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Ki(l,e,nn,!qi);break t;case 2:$e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=Fl+300-Pt(),10<o)){if(Ki(l,e,nn,!qi),al(l,0,!0)!==0)break t;mi=e,l.timeoutHandle=Ug(ag.bind(null,l,a,$e,Yl,sf,e,nn,Ta,fs,qi,f,"Throttled",-0,0),o);break t}ag(l,a,$e,Yl,sf,e,nn,Ta,fs,qi,f,null,-0,0)}}break}while(!0);Kn(t)}function ag(t,e,a,l,o,f,g,E,x,D,V,X,G,H){if(t.timeoutHandle=-1,X=e.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ni},Q_(e,f,X);var ut=(f&62914560)===f?Fl-Pt():(f&4194048)===f?tg-Pt():0;if(ut=RT(X,ut),ut!==null){mi=f,t.cancelPendingCommit=ut(hg.bind(null,t,e,f,a,l,o,g,E,x,V,X,null,G,H)),Ki(t,f,g,!D);return}}hg(t,e,f,a,l,o,g,E,x)}function Hb(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Ze(f(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ki(t,e,a,l){e&=~af,e&=~Ta,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var f=31-Qe(o),g=1<<f;l[f]=-1,o&=~g}a!==0&&pd(t,a,e)}function Xl(){return(Dt&6)===0?(pr(0),!1):!0}function of(){if(xt!==null){if(Gt===0)var t=xt.return;else t=xt,ri=da=null,Ac(t),is=null,Qs=0,t=xt;for(;t!==null;)I_(t.alternate,t),t=t.return;xt=null}}function ds(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,oT(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),mi=0,of(),Yt=t,xt=a=ai(t.current,null),Lt=e,Gt=0,en=null,qi=!1,cs=ks(t,e),nf=!1,fs=nn=af=Ta=Gi=ae=0,$e=hr=null,sf=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-Qe(l),f=1<<o;e|=t[o],l&=~f}return gi=e,gl(),a}function sg(t,e){St=null,k.H=ar,e===ns||e===Al?(e=bp(),Gt=3):e===hc?(e=bp(),Gt=4):Gt=e===Pc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,en=e,xt===null&&(ae=1,jl(t,mn(e,t.current)))}function rg(){var t=Je.current;return t===null?!0:(Lt&4194048)===Lt?bn===null:(Lt&62914560)===Lt||(Lt&536870912)!==0?t===bn:!1}function lg(){var t=k.H;return k.H=ar,t===null?ar:t}function ug(){var t=k.A;return k.A=qb,t}function Ql(){ae=4,qi||(Lt&4194048)!==Lt&&Je.current!==null||(cs=!0),(Gi&134217727)===0&&(Ta&134217727)===0||Yt===null||Ki(Yt,Lt,nn,!1)}function cf(t,e,a){var l=Dt;Dt|=2;var o=lg(),f=ug();(Yt!==t||Lt!==e)&&(Yl=null,ds(t,e)),e=!1;var g=ae;t:do try{if(Gt!==0&&xt!==null){var E=xt,x=en;switch(Gt){case 8:of(),g=6;break t;case 3:case 2:case 9:case 6:Je.current===null&&(e=!0);var D=Gt;if(Gt=0,en=null,ps(t,E,x,D),a&&cs){g=0;break t}break;default:D=Gt,Gt=0,en=null,ps(t,E,x,D)}}$b(),g=ae;break}catch(V){sg(t,V)}while(!0);return e&&t.shellSuspendCounter++,ri=da=null,Dt=l,k.H=o,k.A=f,xt===null&&(Yt=null,Lt=0,gl()),g}function $b(){for(;xt!==null;)og(xt)}function Kb(t,e){var a=Dt;Dt|=2;var l=lg(),o=ug();Yt!==t||Lt!==e?(Yl=null,Vl=Pt()+500,ds(t,e)):cs=ks(t,e);t:do try{if(Gt!==0&&xt!==null){e=xt;var f=en;e:switch(Gt){case 1:Gt=0,en=null,ps(t,e,f,1);break;case 2:case 9:if(vp(f)){Gt=0,en=null,cg(e);break}e=function(){Gt!==2&&Gt!==9||Yt!==t||(Gt=7),Kn(t)},f.then(e,e);break t;case 3:Gt=7;break t;case 4:Gt=5;break t;case 7:vp(f)?(Gt=0,en=null,cg(e)):(Gt=0,en=null,ps(t,e,f,7));break;case 5:var g=null;switch(xt.tag){case 26:g=xt.memoizedState;case 5:case 27:var E=xt;if(g?Xg(g):E.stateNode.complete){Gt=0,en=null;var x=E.sibling;if(x!==null)xt=x;else{var D=E.return;D!==null?(xt=D,Zl(D)):xt=null}break e}}Gt=0,en=null,ps(t,e,f,5);break;case 6:Gt=0,en=null,ps(t,e,f,6);break;case 8:of(),ae=6;break t;default:throw Error(r(462))}}Fb();break}catch(V){sg(t,V)}while(!0);return ri=da=null,k.H=l,k.A=o,Dt=a,xt!==null?0:(Yt=null,Lt=0,gl(),ae)}function Fb(){for(;xt!==null&&!fn();)og(xt)}function og(t){var e=k_(t.alternate,t,gi);t.memoizedProps=t.pendingProps,e===null?Zl(t):xt=e}function cg(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=R_(a,e,e.pendingProps,e.type,void 0,Lt);break;case 11:e=R_(a,e,e.pendingProps,e.type.render,e.ref,Lt);break;case 5:Ac(e);default:I_(a,e),e=xt=up(e,gi),e=k_(a,e,gi)}t.memoizedProps=t.pendingProps,e===null?Zl(t):xt=e}function ps(t,e,a,l){ri=da=null,Ac(e),is=null,Qs=0;var o=e.return;try{if(Ub(t,o,e,a,Lt)){ae=1,jl(t,mn(a,t.current)),xt=null;return}}catch(f){if(o!==null)throw xt=o,f;ae=1,jl(t,mn(a,t.current)),xt=null;return}e.flags&32768?(Ut||l===1?t=!0:cs||(Lt&536870912)!==0?t=!1:(qi=t=!0,(l===2||l===9||l===3||l===6)&&(l=Je.current,l!==null&&l.tag===13&&(l.flags|=16384))),fg(e,t)):Zl(e)}function Zl(t){var e=t;do{if((e.flags&32768)!==0){fg(e,qi);return}t=e.return;var a=Bb(e.alternate,e,gi);if(a!==null){xt=a;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);ae===0&&(ae=5)}function fg(t,e){do{var a=jb(t.alternate,t);if(a!==null){a.flags&=32767,xt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=a}while(t!==null);ae=6,xt=null}function hg(t,e,a,l,o,f,g,E,x){t.cancelPendingCommit=null;do Wl();while(ge!==0);if((Dt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(f=e.lanes|e.childLanes,f|=Zo,OE(t,a,f,g,E,x),t===Yt&&(xt=Yt=null,Lt=0),hs=e,$i=t,mi=a,rf=f,lf=o,eg=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Qb(je,function(){return mg(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,o=F.p,F.p=2,g=Dt,Dt|=4;try{Db(t,e,a)}finally{Dt=g,F.p=o,k.T=l}}ge=1,dg(),pg(),_g()}}function dg(){if(ge===1){ge=0;var t=$i,e=hs,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var l=F.p;F.p=2;var o=Dt;Dt|=4;try{V_(e,t);var f=Tf,g=Jd(t.containerInfo),E=f.focusedElem,x=f.selectionRange;if(g!==E&&E&&E.ownerDocument&&Wd(E.ownerDocument.documentElement,E)){if(x!==null&&Fo(E)){var D=x.start,V=x.end;if(V===void 0&&(V=D),"selectionStart"in E)E.selectionStart=D,E.selectionEnd=Math.min(V,E.value.length);else{var X=E.ownerDocument||document,G=X&&X.defaultView||window;if(G.getSelection){var H=G.getSelection(),ut=E.textContent.length,mt=Math.min(x.start,ut),Vt=x.end===void 0?mt:Math.min(x.end,ut);!H.extend&&mt>Vt&&(g=Vt,Vt=mt,mt=g);var U=Zd(E,mt),w=Zd(E,Vt);if(U&&w&&(H.rangeCount!==1||H.anchorNode!==U.node||H.anchorOffset!==U.offset||H.focusNode!==w.node||H.focusOffset!==w.offset)){var B=X.createRange();B.setStart(U.node,U.offset),H.removeAllRanges(),mt>Vt?(H.addRange(B),H.extend(w.node,w.offset)):(B.setEnd(w.node,w.offset),H.addRange(B))}}}}for(X=[],H=E;H=H.parentNode;)H.nodeType===1&&X.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<X.length;E++){var Y=X[E];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}cu=!!bf,Tf=bf=null}finally{Dt=o,F.p=l,k.T=a}}t.current=e,ge=2}}function pg(){if(ge===2){ge=0;var t=$i,e=hs,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var l=F.p;F.p=2;var o=Dt;Dt|=4;try{G_(t,e.alternate,e)}finally{Dt=o,F.p=l,k.T=a}}ge=3}}function _g(){if(ge===4||ge===3){ge=0,aa();var t=$i,e=hs,a=mi,l=eg;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ge=5:(ge=0,hs=$i=null,gg(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Hi=null),Ro(a),e=e.stateNode,Le&&typeof Le.onCommitFiberRoot=="function")try{Le.onCommitFiberRoot(wn,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=k.T,o=F.p,F.p=2,k.T=null;try{for(var f=t.onRecoverableError,g=0;g<l.length;g++){var E=l[g];f(E.value,{componentStack:E.stack})}}finally{k.T=e,F.p=o}}(mi&3)!==0&&Wl(),Kn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===uf?dr++:(dr=0,uf=t):dr=0,pr(0)}}function gg(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ys(e)))}function Wl(){return dg(),pg(),_g(),mg()}function mg(){if(ge!==5)return!1;var t=$i,e=rf;rf=0;var a=Ro(mi),l=k.T,o=F.p;try{F.p=32>a?32:a,k.T=null,a=lf,lf=null;var f=$i,g=mi;if(ge=0,hs=$i=null,mi=0,(Dt&6)!==0)throw Error(r(331));var E=Dt;if(Dt|=4,W_(f.current),X_(f,f.current,g,a),Dt=E,pr(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(wn,f)}catch{}return!0}finally{F.p=o,k.T=l,gg(t,e)}}function yg(t,e,a){e=mn(a,e),e=Dc(t.stateNode,e,2),t=Bi(t,e,2),t!==null&&(Us(t,2),Kn(t))}function Ht(t,e,a){if(t.tag===3)yg(t,t,a);else for(;e!==null;){if(e.tag===3){yg(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Hi===null||!Hi.has(l))){t=mn(a,t),a=v_(2),l=Bi(e,a,2),l!==null&&(E_(a,l,e,t),Us(l,2),Kn(l));break}}e=e.return}}function ff(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new Gb;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(a)||(nf=!0,o.add(a),t=Vb.bind(null,t,e,a),e.then(t,t))}function Vb(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Yt===t&&(Lt&a)===a&&(ae===4||ae===3&&(Lt&62914560)===Lt&&300>Pt()-Fl?(Dt&2)===0&&ds(t,0):af|=a,fs===Lt&&(fs=0)),Kn(t)}function vg(t,e){e===0&&(e=dd()),t=ca(t,e),t!==null&&(Us(t,e),Kn(t))}function Yb(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),vg(t,a)}function Xb(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),vg(t,a)}function Qb(t,e){return ee(t,e)}var Jl=null,_s=null,hf=!1,tu=!1,df=!1,Fi=0;function Kn(t){t!==_s&&t.next===null&&(_s===null?Jl=_s=t:_s=_s.next=t),tu=!0,hf||(hf=!0,Wb())}function pr(t,e){if(!df&&tu){df=!0;do for(var a=!1,l=Jl;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,E=l.pingedLanes;f=(1<<31-Qe(42|t)+1)-1,f&=o&~(g&~E),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Sg(l,f))}else f=Lt,f=al(l,l===Yt?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||ks(l,f)||(a=!0,Sg(l,f));l=l.next}while(a);df=!1}}function Zb(){Eg()}function Eg(){tu=hf=!1;var t=0;Fi!==0&&uT()&&(t=Fi);for(var e=Pt(),a=null,l=Jl;l!==null;){var o=l.next,f=bg(l,e);f===0?(l.next=null,a===null?Jl=o:a.next=o,o===null&&(_s=a)):(a=l,(t!==0||(f&3)!==0)&&(tu=!0)),l=o}ge!==0&&ge!==5||pr(t),Fi!==0&&(Fi=0)}function bg(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var g=31-Qe(f),E=1<<g,x=o[g];x===-1?((E&a)===0||(E&l)!==0)&&(o[g]=AE(E,e)):x<=e&&(t.expiredLanes|=E),f&=~E}if(e=Yt,a=Lt,a=al(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Gt===2||Gt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&qn(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||ks(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&qn(l),Ro(a)){case 2:case 8:a=Se;break;case 32:a=je;break;case 268435456:a=Ms;break;default:a=je}return l=Tg.bind(null,t),a=ee(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&qn(l),t.callbackPriority=2,t.callbackNode=null,2}function Tg(t,e){if(ge!==0&&ge!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Wl()&&t.callbackNode!==a)return null;var l=Lt;return l=al(t,t===Yt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(ig(t,l,e),bg(t,Pt()),t.callbackNode!=null&&t.callbackNode===a?Tg.bind(null,t):null)}function Sg(t,e){if(Wl())return null;ig(t,e,!0)}function Wb(){cT(function(){(Dt&6)!==0?ee(le,Zb):Eg()})}function pf(){if(Fi===0){var t=ts;t===0&&(t=el,el<<=1,(el&261888)===0&&(el=256)),Fi=t}return Fi}function Ag(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ul(""+t)}function Og(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function Jb(t,e,a,l,o){if(e==="submit"&&a&&a.stateNode===o){var f=Ag((o[De]||null).action),g=l.submitter;g&&(e=(e=g[De]||null)?Ag(e.formAction):g.getAttribute("formAction"),e!==null&&(f=e,g=null));var E=new hl("action","action",null,l,o);t.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Fi!==0){var x=g?Og(o,g):new FormData(o);kc(a,{pending:!0,data:x,method:o.method,action:f},null,x)}}else typeof f=="function"&&(E.preventDefault(),x=g?Og(o,g):new FormData(o),kc(a,{pending:!0,data:x,method:o.method,action:f},f,x))},currentTarget:o}]})}}for(var _f=0;_f<Qo.length;_f++){var gf=Qo[_f],tT=gf.toLowerCase(),eT=gf[0].toUpperCase()+gf.slice(1);Ln(tT,"on"+eT)}Ln(np,"onAnimationEnd"),Ln(ip,"onAnimationIteration"),Ln(ap,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(mb,"onTransitionRun"),Ln(yb,"onTransitionStart"),Ln(vb,"onTransitionCancel"),Ln(sp,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="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(" "),nT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_r));function Ng(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],o=l.event;l=l.listeners;t:{var f=void 0;if(e)for(var g=l.length-1;0<=g;g--){var E=l[g],x=E.instance,D=E.currentTarget;if(E=E.listener,x!==f&&o.isPropagationStopped())break t;f=E,o.currentTarget=D;try{f(o)}catch(V){_l(V)}o.currentTarget=null,f=x}else for(g=0;g<l.length;g++){if(E=l[g],x=E.instance,D=E.currentTarget,E=E.listener,x!==f&&o.isPropagationStopped())break t;f=E,o.currentTarget=D;try{f(o)}catch(V){_l(V)}o.currentTarget=null,f=x}}}}function Ct(t,e){var a=e[xo];a===void 0&&(a=e[xo]=new Set);var l=t+"__bubble";a.has(l)||(Rg(e,t,2,!1),a.add(l))}function mf(t,e,a){var l=0;e&&(l|=4),Rg(a,t,l,e)}var eu="_reactListening"+Math.random().toString(36).slice(2);function yf(t){if(!t[eu]){t[eu]=!0,Ed.forEach(function(a){a!=="selectionchange"&&(nT.has(a)||mf(a,!1,t),mf(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[eu]||(e[eu]=!0,mf("selectionchange",!1,e))}}function Rg(t,e,a,l){switch(nm(e)){case 2:var o=wT;break;case 8:o=LT;break;default:o=kf}a=o.bind(null,e,a,t),o=void 0,!Bo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function vf(t,e,a,l,o){var f=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var E=l.stateNode.containerInfo;if(E===o)break;if(g===4)for(g=l.return;g!==null;){var x=g.tag;if((x===3||x===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;E!==null;){if(g=Ba(E),g===null)return;if(x=g.tag,x===5||x===6||x===26||x===27){l=f=g;continue t}E=E.parentNode}}l=l.return}Md(function(){var D=f,V=Io(a),X=[];t:{var G=rp.get(t);if(G!==void 0){var H=hl,ut=t;switch(t){case"keypress":if(cl(a)===0)break t;case"keydown":case"keyup":H=XE;break;case"focusin":ut="focus",H=qo;break;case"focusout":ut="blur",H=qo;break;case"beforeblur":case"afterblur":H=qo;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=BE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=WE;break;case np:case ip:case ap:H=PE;break;case sp:H=tb;break;case"scroll":case"scrollend":H=IE;break;case"wheel":H=nb;break;case"copy":case"cut":case"paste":H=GE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Bd;break;case"toggle":case"beforetoggle":H=ab}var mt=(e&4)!==0,Vt=!mt&&(t==="scroll"||t==="scrollend"),U=mt?G!==null?G+"Capture":null:G;mt=[];for(var w=D,B;w!==null;){var Y=w;if(B=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||B===null||U===null||(Y=Bs(w,U),Y!=null&&mt.push(gr(w,Y,B))),Vt)break;w=w.return}0<mt.length&&(G=new H(G,ut,null,a,V),X.push({event:G,listeners:mt}))}}if((e&7)===0){t:{if(G=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",G&&a!==Uo&&(ut=a.relatedTarget||a.fromElement)&&(Ba(ut)||ut[za]))break t;if((H||G)&&(G=V.window===V?V:(G=V.ownerDocument)?G.defaultView||G.parentWindow:window,H?(ut=a.relatedTarget||a.toElement,H=D,ut=ut?Ba(ut):null,ut!==null&&(Vt=c(ut),mt=ut.tag,ut!==Vt||mt!==5&&mt!==27&&mt!==6)&&(ut=null)):(H=null,ut=D),H!==ut)){if(mt=Id,Y="onMouseLeave",U="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(mt=Bd,Y="onPointerLeave",U="onPointerEnter",w="pointer"),Vt=H==null?G:zs(H),B=ut==null?G:zs(ut),G=new mt(Y,w+"leave",H,a,V),G.target=Vt,G.relatedTarget=B,Y=null,Ba(V)===D&&(mt=new mt(U,w+"enter",ut,a,V),mt.target=B,mt.relatedTarget=Vt,Y=mt),Vt=Y,H&&ut)e:{for(mt=iT,U=H,w=ut,B=0,Y=U;Y;Y=mt(Y))B++;Y=0;for(var dt=w;dt;dt=mt(dt))Y++;for(;0<B-Y;)U=mt(U),B--;for(;0<Y-B;)w=mt(w),Y--;for(;B--;){if(U===w||w!==null&&U===w.alternate){mt=U;break e}U=mt(U),w=mt(w)}mt=null}else mt=null;H!==null&&xg(X,G,H,mt,!1),ut!==null&&Vt!==null&&xg(X,Vt,ut,mt,!0)}}t:{if(G=D?zs(D):window,H=G.nodeName&&G.nodeName.toLowerCase(),H==="select"||H==="input"&&G.type==="file")var Bt=Kd;else if(Hd(G))if(Fd)Bt=pb;else{Bt=hb;var ot=fb}else H=G.nodeName,!H||H.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?D&&ko(D.elementType)&&(Bt=Kd):Bt=db;if(Bt&&(Bt=Bt(t,D))){$d(X,Bt,a,V);break t}ot&&ot(t,G,D),t==="focusout"&&D&&G.type==="number"&&D.memoizedProps.value!=null&&Mo(G,"number",G.value)}switch(ot=D?zs(D):window,t){case"focusin":(Hd(ot)||ot.contentEditable==="true")&&(Fa=ot,Vo=D,Ks=null);break;case"focusout":Ks=Vo=Fa=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":Yo=!1,tp(X,a,V);break;case"selectionchange":if(gb)break;case"keydown":case"keyup":tp(X,a,V)}var Ot;if(Ho)t:{switch(t){case"compositionstart":var Mt="onCompositionStart";break t;case"compositionend":Mt="onCompositionEnd";break t;case"compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0}else Ka?qd(t,a)&&(Mt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Mt="onCompositionStart");Mt&&(jd&&a.locale!=="ko"&&(Ka||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&Ka&&(Ot=kd()):(wi=V,jo="value"in wi?wi.value:wi.textContent,Ka=!0)),ot=nu(D,Mt),0<ot.length&&(Mt=new zd(Mt,t,null,a,V),X.push({event:Mt,listeners:ot}),Ot?Mt.data=Ot:(Ot=Gd(a),Ot!==null&&(Mt.data=Ot)))),(Ot=rb?lb(t,a):ub(t,a))&&(Mt=nu(D,"onBeforeInput"),0<Mt.length&&(ot=new zd("onBeforeInput","beforeinput",null,a,V),X.push({event:ot,listeners:Mt}),ot.data=Ot)),Jb(X,t,D,a,V)}Ng(X,e)})}function gr(t,e,a){return{instance:t,listener:e,currentTarget:a}}function nu(t,e){for(var a=e+"Capture",l=[];t!==null;){var o=t,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=Bs(t,a),o!=null&&l.unshift(gr(t,o,f)),o=Bs(t,e),o!=null&&l.push(gr(t,o,f))),t.tag===3)return l;t=t.return}return[]}function iT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function xg(t,e,a,l,o){for(var f=e._reactName,g=[];a!==null&&a!==l;){var E=a,x=E.alternate,D=E.stateNode;if(E=E.tag,x!==null&&x===l)break;E!==5&&E!==26&&E!==27||D===null||(x=D,o?(D=Bs(a,f),D!=null&&g.unshift(gr(a,D,x))):o||(D=Bs(a,f),D!=null&&g.push(gr(a,D,x)))),a=a.return}g.length!==0&&t.push({event:e,listeners:g})}var aT=/\r\n?/g,sT=/\u0000|\uFFFD/g;function Cg(t){return(typeof t=="string"?t:""+t).replace(aT,`
|
|
9
|
-
`).replace(sT,"")}function wg(t,e){return e=Cg(e),Cg(t)===e}function Ft(t,e,a,l,o,f){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ga(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ga(t,""+l);break;case"className":rl(t,"class",l);break;case"tabIndex":rl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":rl(t,a,l);break;case"style":wd(t,l,f);break;case"data":if(e!=="object"){rl(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=ul(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(e!=="input"&&Ft(t,e,"name",o.name,o,null),Ft(t,e,"formEncType",o.formEncType,o,null),Ft(t,e,"formMethod",o.formMethod,o,null),Ft(t,e,"formTarget",o.formTarget,o,null)):(Ft(t,e,"encType",o.encType,o,null),Ft(t,e,"method",o.method,o,null),Ft(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=ul(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=ni);break;case"onScroll":l!=null&&Ct("scroll",t);break;case"onScrollEnd":l!=null&&Ct("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=ul(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":Ct("beforetoggle",t),Ct("toggle",t),sl(t,"popover",l);break;case"xlinkActuate":ei(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ei(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ei(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ei(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ei(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ei(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ei(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ei(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ei(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":sl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=kE.get(a)||a,sl(t,a,l))}}function Ef(t,e,a,l,o,f){switch(a){case"style":wd(t,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?Ga(t,l):(typeof l=="number"||typeof l=="bigint")&&Ga(t,""+l);break;case"onScroll":l!=null&&Ct("scroll",t);break;case"onScrollEnd":l!=null&&Ct("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ni);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bd.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),f=t[De]||null,f=f!=null?f[a]:null,typeof f=="function"&&t.removeEventListener(e,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,o);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):sl(t,a,l)}}}function xe(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",t),Ct("load",t);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];if(g!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ft(t,e,f,g,a,null)}}o&&Ft(t,e,"srcSet",a.srcSet,a,null),l&&Ft(t,e,"src",a.src,a,null);return;case"input":Ct("invalid",t);var E=f=g=o=null,x=null,D=null;for(l in a)if(a.hasOwnProperty(l)){var V=a[l];if(V!=null)switch(l){case"name":o=V;break;case"type":g=V;break;case"checked":x=V;break;case"defaultChecked":D=V;break;case"value":f=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:Ft(t,e,l,V,a,null)}}Nd(t,f,E,x,D,g,o,!1);return;case"select":Ct("invalid",t),l=g=f=null;for(o in a)if(a.hasOwnProperty(o)&&(E=a[o],E!=null))switch(o){case"value":f=E;break;case"defaultValue":g=E;break;case"multiple":l=E;default:Ft(t,e,o,E,a,null)}e=f,a=g,t.multiple=!!l,e!=null?qa(t,!!l,e,!1):a!=null&&qa(t,!!l,a,!0);return;case"textarea":Ct("invalid",t),f=o=l=null;for(g in a)if(a.hasOwnProperty(g)&&(E=a[g],E!=null))switch(g){case"value":l=E;break;case"defaultValue":o=E;break;case"children":f=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:Ft(t,e,g,E,a,null)}xd(t,l,o,f);return;case"option":for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null)&&(x==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Ft(t,e,x,l,a,null));return;case"dialog":Ct("beforetoggle",t),Ct("toggle",t),Ct("cancel",t),Ct("close",t);break;case"iframe":case"object":Ct("load",t);break;case"video":case"audio":for(l=0;l<_r.length;l++)Ct(_r[l],t);break;case"image":Ct("error",t),Ct("load",t);break;case"details":Ct("toggle",t);break;case"embed":case"source":case"link":Ct("error",t),Ct("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(l=a[D],l!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ft(t,e,D,l,a,null)}return;default:if(ko(e)){for(V in a)a.hasOwnProperty(V)&&(l=a[V],l!==void 0&&Ef(t,e,V,l,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(l=a[E],l!=null&&Ft(t,e,E,l,a,null))}function rT(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,g=null,E=null,x=null,D=null,V=null;for(H in a){var X=a[H];if(a.hasOwnProperty(H)&&X!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":x=X;default:l.hasOwnProperty(H)||Ft(t,e,H,null,l,X)}}for(var G in l){var H=l[G];if(X=a[G],l.hasOwnProperty(G)&&(H!=null||X!=null))switch(G){case"type":f=H;break;case"name":o=H;break;case"checked":D=H;break;case"defaultChecked":V=H;break;case"value":g=H;break;case"defaultValue":E=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,e));break;default:H!==X&&Ft(t,e,G,H,l,X)}}Lo(t,g,E,x,D,V,f,o);return;case"select":H=g=E=G=null;for(f in a)if(x=a[f],a.hasOwnProperty(f)&&x!=null)switch(f){case"value":break;case"multiple":H=x;default:l.hasOwnProperty(f)||Ft(t,e,f,null,l,x)}for(o in l)if(f=l[o],x=a[o],l.hasOwnProperty(o)&&(f!=null||x!=null))switch(o){case"value":G=f;break;case"defaultValue":E=f;break;case"multiple":g=f;default:f!==x&&Ft(t,e,o,f,l,x)}e=E,a=g,l=H,G!=null?qa(t,!!a,G,!1):!!l!=!!a&&(e!=null?qa(t,!!a,e,!0):qa(t,!!a,a?[]:"",!1));return;case"textarea":H=G=null;for(E in a)if(o=a[E],a.hasOwnProperty(E)&&o!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Ft(t,e,E,null,l,o)}for(g in l)if(o=l[g],f=a[g],l.hasOwnProperty(g)&&(o!=null||f!=null))switch(g){case"value":G=o;break;case"defaultValue":H=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==f&&Ft(t,e,g,o,l,f)}Rd(t,G,H);return;case"option":for(var ut in a)G=a[ut],a.hasOwnProperty(ut)&&G!=null&&!l.hasOwnProperty(ut)&&(ut==="selected"?t.selected=!1:Ft(t,e,ut,null,l,G));for(x in l)G=l[x],H=a[x],l.hasOwnProperty(x)&&G!==H&&(G!=null||H!=null)&&(x==="selected"?t.selected=G&&typeof G!="function"&&typeof G!="symbol":Ft(t,e,x,G,l,H));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var mt in a)G=a[mt],a.hasOwnProperty(mt)&&G!=null&&!l.hasOwnProperty(mt)&&Ft(t,e,mt,null,l,G);for(D in l)if(G=l[D],H=a[D],l.hasOwnProperty(D)&&G!==H&&(G!=null||H!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,e));break;default:Ft(t,e,D,G,l,H)}return;default:if(ko(e)){for(var Vt in a)G=a[Vt],a.hasOwnProperty(Vt)&&G!==void 0&&!l.hasOwnProperty(Vt)&&Ef(t,e,Vt,void 0,l,G);for(V in l)G=l[V],H=a[V],!l.hasOwnProperty(V)||G===H||G===void 0&&H===void 0||Ef(t,e,V,G,l,H);return}}for(var U in a)G=a[U],a.hasOwnProperty(U)&&G!=null&&!l.hasOwnProperty(U)&&Ft(t,e,U,null,l,G);for(X in l)G=l[X],H=a[X],!l.hasOwnProperty(X)||G===H||G==null&&H==null||Ft(t,e,X,G,l,H)}function Lg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lT(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],f=o.transferSize,g=o.initiatorType,E=o.duration;if(f&&E&&Lg(g)){for(g=0,E=o.responseEnd,l+=1;l<a.length;l++){var x=a[l],D=x.startTime;if(D>E)break;var V=x.transferSize,X=x.initiatorType;V&&Lg(X)&&(x=x.responseEnd,g+=V*(x<E?1:(E-D)/(x-D)))}if(--l,e+=8*(f+g)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var bf=null,Tf=null;function iu(t){return t.nodeType===9?t:t.ownerDocument}function Mg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kg(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Sf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Af=null;function uT(){var t=window.event;return t&&t.type==="popstate"?t===Af?!1:(Af=t,!0):(Af=null,!1)}var Ug=typeof setTimeout=="function"?setTimeout:void 0,oT=typeof clearTimeout=="function"?clearTimeout:void 0,Ig=typeof Promise=="function"?Promise:void 0,cT=typeof queueMicrotask=="function"?queueMicrotask:typeof Ig<"u"?function(t){return Ig.resolve(null).then(t).catch(fT)}:Ug;function fT(t){setTimeout(function(){throw t})}function Vi(t){return t==="head"}function zg(t,e){var a=e,l=0;do{var o=a.nextSibling;if(t.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(o),vs(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")mr(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,mr(a);for(var f=a.firstChild;f;){var g=f.nextSibling,E=f.nodeName;f[Is]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=g}}else a==="body"&&mr(t.ownerDocument.body);a=o}while(a);vs(e)}function Bg(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function Of(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Of(a),Co(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function hT(t,e,a,l){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Is])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(f=t.getAttribute("src"),(f!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=Tn(t.nextSibling),t===null)break}return null}function dT(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Tn(t.nextSibling),t===null))return null;return t}function jg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Tn(t.nextSibling),t===null))return null;return t}function Nf(t){return t.data==="$?"||t.data==="$~"}function Rf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function pT(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Tn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var xf=null;function Dg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Tn(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Pg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function qg(t,e,a){switch(e=iu(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function mr(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Co(t)}var Sn=new Map,Gg=new Set;function au(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yi=F.d;F.d={f:_T,r:gT,D:mT,C:yT,L:vT,m:ET,X:TT,S:bT,M:ST};function _T(){var t=yi.f(),e=Xl();return t||e}function gT(t){var e=ja(t);e!==null&&e.tag===5&&e.type==="form"?s_(e):yi.r(t)}var gs=typeof document>"u"?null:document;function Hg(t,e,a){var l=gs;if(l&&typeof e=="string"&&e){var o=_n(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Gg.has(o)||(Gg.add(o),t={rel:t,crossOrigin:a,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),xe(e,"link",t),be(e),l.head.appendChild(e)))}}function mT(t){yi.D(t),Hg("dns-prefetch",t,null)}function yT(t,e){yi.C(t,e),Hg("preconnect",t,e)}function vT(t,e,a){yi.L(t,e,a);var l=gs;if(l&&t&&e){var o='link[rel="preload"][as="'+_n(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+_n(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+_n(a.imageSizes)+'"]')):o+='[href="'+_n(t)+'"]';var f=o;switch(e){case"style":f=ms(t);break;case"script":f=ys(t)}Sn.has(f)||(t=v({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Sn.set(f,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(yr(f))||e==="script"&&l.querySelector(vr(f))||(e=l.createElement("link"),xe(e,"link",t),be(e),l.head.appendChild(e)))}}function ET(t,e){yi.m(t,e);var a=gs;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+_n(l)+'"][href="'+_n(t)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ys(t)}if(!Sn.has(f)&&(t=v({rel:"modulepreload",href:t},e),Sn.set(f,t),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(vr(f)))return}l=a.createElement("link"),xe(l,"link",t),be(l),a.head.appendChild(l)}}}function bT(t,e,a){yi.S(t,e,a);var l=gs;if(l&&t){var o=Da(l).hoistableStyles,f=ms(t);e=e||"default";var g=o.get(f);if(!g){var E={loading:0,preload:null};if(g=l.querySelector(yr(f)))E.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Sn.get(f))&&Cf(t,a);var x=g=l.createElement("link");be(x),xe(x,"link",t),x._p=new Promise(function(D,V){x.onload=D,x.onerror=V}),x.addEventListener("load",function(){E.loading|=1}),x.addEventListener("error",function(){E.loading|=2}),E.loading|=4,su(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:E},o.set(f,g)}}}function TT(t,e){yi.X(t,e);var a=gs;if(a&&t){var l=Da(a).hoistableScripts,o=ys(t),f=l.get(o);f||(f=a.querySelector(vr(o)),f||(t=v({src:t,async:!0},e),(e=Sn.get(o))&&wf(t,e),f=a.createElement("script"),be(f),xe(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function ST(t,e){yi.M(t,e);var a=gs;if(a&&t){var l=Da(a).hoistableScripts,o=ys(t),f=l.get(o);f||(f=a.querySelector(vr(o)),f||(t=v({src:t,async:!0,type:"module"},e),(e=Sn.get(o))&&wf(t,e),f=a.createElement("script"),be(f),xe(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function $g(t,e,a,l){var o=(o=st.current)?au(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=ms(a.href),a=Da(o).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ms(a.href);var f=Da(o).hoistableStyles,g=f.get(t);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(t,g),(f=o.querySelector(yr(t)))&&!f._p&&(g.instance=f,g.state.loading=5),Sn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Sn.set(t,a),f||AT(o,t,a,g.state))),e&&l===null)throw Error(r(528,""));return g}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ys(a),a=Da(o).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ms(t){return'href="'+_n(t)+'"'}function yr(t){return'link[rel="stylesheet"]['+t+"]"}function Kg(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function AT(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),xe(e,"link",a),be(e),t.head.appendChild(e))}function ys(t){return'[src="'+_n(t)+'"]'}function vr(t){return"script[async]"+t}function Fg(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_n(a.href)+'"]');if(l)return e.instance=l,be(l),l;var o=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),be(l),xe(l,"style",o),su(l,a.precedence,t),e.instance=l;case"stylesheet":o=ms(a.href);var f=t.querySelector(yr(o));if(f)return e.state.loading|=4,e.instance=f,be(f),f;l=Kg(a),(o=Sn.get(o))&&Cf(l,o),f=(t.ownerDocument||t).createElement("link"),be(f);var g=f;return g._p=new Promise(function(E,x){g.onload=E,g.onerror=x}),xe(f,"link",l),e.state.loading|=4,su(f,a.precedence,t),e.instance=f;case"script":return f=ys(a.src),(o=t.querySelector(vr(f)))?(e.instance=o,be(o),o):(l=a,(o=Sn.get(f))&&(l=v({},a),wf(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),be(o),xe(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,su(l,a.precedence,t));return e.instance}function su(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,g=0;g<l.length;g++){var E=l[g];if(E.dataset.precedence===e)f=E;else if(f!==o)break}f?f.parentNode.insertBefore(t,f.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Cf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function wf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ru=null;function Vg(t,e,a){if(ru===null){var l=new Map,o=ru=new Map;o.set(a,l)}else o=ru,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var f=a[o];if(!(f[Is]||f[Ae]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(e)||"";g=t+g;var E=l.get(g);E?E.push(f):l.set(g,[f])}}return l}function Yg(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function OT(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Xg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function NT(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=ms(l.href),f=e.querySelector(yr(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=lu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=f,be(f);return}f=e.ownerDocument||e,l=Kg(l),(o=Sn.get(o))&&Cf(l,o),f=f.createElement("link"),be(f);var g=f;g._p=new Promise(function(E,x){g.onload=E,g.onerror=x}),xe(f,"link",l),a.instance=f}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=lu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Lf=0;function RT(t,e){return t.stylesheets&&t.count===0&&ou(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&ou(t,t.stylesheets),t.unsuspend){var f=t.unsuspend;t.unsuspend=null,f()}},6e4+e);0<t.imgBytes&&Lf===0&&(Lf=62500*lT());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ou(t,t.stylesheets),t.unsuspend)){var f=t.unsuspend;t.unsuspend=null,f()}},(t.imgBytes>Lf?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function lu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ou(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var uu=null;function ou(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,uu=new Map,e.forEach(xT,t),uu=null,lu.call(t))}function xT(t,e){if(!(e.state.loading&4)){var a=uu.get(t);if(a)var l=a.get(null);else{a=new Map,uu.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var g=o[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}o=e.instance,g=o.getAttribute("data-precedence"),f=a.get(g)||l,f===l&&a.set(null,o),a.set(g,o),this.count++,l=lu.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var Er={$$typeof:P,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function CT(t,e,a,l,o,f,g,E,x){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oo(0),this.hiddenUpdates=Oo(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Qg(t,e,a,l,o,f,g,E,x,D,V,X){return t=new CT(t,e,a,g,x,D,V,X,E),e=1,f===!0&&(e|=24),f=We(3,null,null,e),t.current=f,f.stateNode=t,e=oc(),e.refCount++,t.pooledCache=e,e.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:e},dc(f),t}function Zg(t){return t?(t=Xa,t):Xa}function Wg(t,e,a,l,o,f){o=Zg(o),l.context===null?l.context=o:l.pendingContext=o,l=zi(e),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Bi(t,l,e),a!==null&&(Ke(a,t,e),Ws(a,t,e))}function Jg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Mf(t,e){Jg(t,e),(t=t.alternate)&&Jg(t,e)}function tm(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&Ke(e,t,67108864),Mf(t,67108864)}}function em(t){if(t.tag===13||t.tag===31){var e=an();e=No(e);var a=ca(t,e);a!==null&&Ke(a,t,e),Mf(t,e)}}var cu=!0;function wT(t,e,a,l){var o=k.T;k.T=null;var f=F.p;try{F.p=2,kf(t,e,a,l)}finally{F.p=f,k.T=o}}function LT(t,e,a,l){var o=k.T;k.T=null;var f=F.p;try{F.p=8,kf(t,e,a,l)}finally{F.p=f,k.T=o}}function kf(t,e,a,l){if(cu){var o=Uf(l);if(o===null)vf(t,e,l,fu,a),im(t,l);else if(kT(o,t,e,a,l))l.stopPropagation();else if(im(t,l),e&4&&-1<MT.indexOf(t)){for(;o!==null;){var f=ja(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=sa(f.pendingLanes);if(g!==0){var E=f;for(E.pendingLanes|=2,E.entangledLanes|=2;g;){var x=1<<31-Qe(g);E.entanglements[1]|=x,g&=~x}Kn(f),(Dt&6)===0&&(Vl=Pt()+500,pr(0))}}break;case 31:case 13:E=ca(f,2),E!==null&&Ke(E,f,2),Xl(),Mf(f,2)}if(f=Uf(l),f===null&&vf(t,e,l,fu,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else vf(t,e,l,null,a)}}function Uf(t){return t=Io(t),If(t)}var fu=null;function If(t){if(fu=null,t=Ba(t),t!==null){var e=c(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=p(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return fu=t,null}function nm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(hn()){case le:return 2;case Se:return 8;case je:case Ls:return 32;case Ms:return 268435456;default:return 32}default:return 32}}var zf=!1,Yi=null,Xi=null,Qi=null,br=new Map,Tr=new Map,Zi=[],MT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function im(t,e){switch(t){case"focusin":case"focusout":Yi=null;break;case"dragenter":case"dragleave":Xi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":br.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tr.delete(e.pointerId)}}function Sr(t,e,a,l,o,f){return t===null||t.nativeEvent!==f?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},e!==null&&(e=ja(e),e!==null&&tm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function kT(t,e,a,l,o){switch(e){case"focusin":return Yi=Sr(Yi,t,e,a,l,o),!0;case"dragenter":return Xi=Sr(Xi,t,e,a,l,o),!0;case"mouseover":return Qi=Sr(Qi,t,e,a,l,o),!0;case"pointerover":var f=o.pointerId;return br.set(f,Sr(br.get(f)||null,t,e,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Tr.set(f,Sr(Tr.get(f)||null,t,e,a,l,o)),!0}return!1}function am(t){var e=Ba(t.target);if(e!==null){var a=c(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,yd(t.priority,function(){em(a)});return}}else if(e===31){if(e=p(a),e!==null){t.blockedOn=e,yd(t.priority,function(){em(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function hu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Uf(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);Uo=l,a.target.dispatchEvent(l),Uo=null}else return e=ja(a),e!==null&&tm(e),t.blockedOn=a,!1;e.shift()}return!0}function sm(t,e,a){hu(t)&&a.delete(e)}function UT(){zf=!1,Yi!==null&&hu(Yi)&&(Yi=null),Xi!==null&&hu(Xi)&&(Xi=null),Qi!==null&&hu(Qi)&&(Qi=null),br.forEach(sm),Tr.forEach(sm)}function du(t,e){t.blockedOn===e&&(t.blockedOn=null,zf||(zf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,UT)))}var pu=null;function rm(t){pu!==t&&(pu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){pu===t&&(pu=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(If(l||a)===null)continue;break}var f=ja(a);f!==null&&(t.splice(e,3),e-=3,kc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function vs(t){function e(x){return du(x,t)}Yi!==null&&du(Yi,t),Xi!==null&&du(Xi,t),Qi!==null&&du(Qi,t),br.forEach(e),Tr.forEach(e);for(var a=0;a<Zi.length;a++){var l=Zi[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Zi.length&&(a=Zi[0],a.blockedOn===null);)am(a),a.blockedOn===null&&Zi.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],g=o[De]||null;if(typeof f=="function")g||rm(a);else if(g){var E=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[De]||null)E=g.formAction;else if(If(o)!==null)continue}else E=g.action;typeof E=="function"?a[l+1]=E:(a.splice(l,3),l-=3),rm(a)}}}function lm(){function t(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Bf(t){this._internalRoot=t}_u.prototype.render=Bf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=an();Wg(a,l,t,e,null,null)},_u.prototype.unmount=Bf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Wg(t.current,2,null,t,null,null),Xl(),e[za]=null}};function _u(t){this._internalRoot=t}_u.prototype.unstable_scheduleHydration=function(t){if(t){var e=md();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Zi.length&&e!==0&&e<Zi[a].priority;a++);Zi.splice(a,0,t),a===0&&am(t)}};var um=n.version;if(um!=="19.2.4")throw Error(r(527,um,"19.2.4"));F.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=_(e),t=t!==null?T(t):null,t=t===null?null:t.stateNode,t};var IT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{wn=gu.inject(IT),Le=gu}catch{}}return Or.createRoot=function(t,e){if(!u(t))throw Error(r(299));var a=!1,l="",o=__,f=g_,g=m_;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(f=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError)),e=Qg(t,1,!1,null,null,a,l,null,o,f,g,lm),t[za]=e.current,yf(t),new Bf(e)},Or.hydrateRoot=function(t,e,a){if(!u(t))throw Error(r(299));var l=!1,o="",f=__,g=g_,E=m_,x=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),e=Qg(t,1,!0,e,a??null,l,o,x,f,g,E,lm),e.context=Zg(null),a=e.current,l=an(),l=No(l),o=zi(l),o.callback=null,Bi(a,o,l),a=l,e.current.lanes=a,Us(e,a),Kn(e),t[za]=e.current,yf(t),new _u(e)},Or.version="19.2.4",Or}var ym;function FT(){if(ym)return Pf.exports;ym=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Pf.exports=KT(),Pf.exports}var VT=FT();const YT=no(VT);function vm(i,n){(n==null||n>i.length)&&(n=i.length);for(var s=0,r=Array(n);s<n;s++)r[s]=i[s];return r}function XT(i){if(Array.isArray(i))return i}function QT(i,n,s){return(n=i1(n))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function ZT(i,n){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var r,u,c,h,p=[],d=!0,_=!1;try{if(c=(s=s.call(i)).next,n!==0)for(;!(d=(r=c.call(s)).done)&&(p.push(r.value),p.length!==n);d=!0);}catch(T){_=!0,u=T}finally{try{if(!d&&s.return!=null&&(h=s.return(),Object(h)!==h))return}finally{if(_)throw u}}return p}}function WT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Em(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,r)}return s}function bm(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Em(Object(s),!0).forEach(function(r){
|
|
8
|
+
`+l.stack}}var $t=Object.prototype.hasOwnProperty,ee=i.unstable_scheduleCallback,qn=i.unstable_cancelCallback,fn=i.unstable_shouldYield,aa=i.unstable_requestPaint,Pt=i.unstable_now,hn=i.unstable_getCurrentPriorityLevel,le=i.unstable_ImmediatePriority,Se=i.unstable_UserBlockingPriority,je=i.unstable_NormalPriority,Ls=i.unstable_LowPriority,Ms=i.unstable_IdlePriority,Ri=i.log,dn=i.unstable_setDisableYieldValue,wn=null,Le=null;function xi(t){if(typeof Ri=="function"&&dn(t),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(wn,t)}catch{}}var Qe=Math.clz32?Math.clz32:AE,TE=Math.log,SE=Math.LN2;function AE(t){return t>>>=0,t===0?32:31-(TE(t)/SE|0)|0}var el=256,nl=262144,il=4194304;function sa(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function al(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var o=0,f=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var E=l&134217727;return E!==0?(l=E&~f,l!==0?o=sa(l):(g&=E,g!==0?o=sa(g):a||(a=E&~t,a!==0&&(o=sa(a))))):(E=l&~f,E!==0?o=sa(E):g!==0?o=sa(g):a||(a=l&~t,a!==0&&(o=sa(a)))),o===0?0:e!==0&&e!==o&&(e&f)===0&&(f=o&-o,a=e&-e,f>=a||f===32&&(a&4194048)!==0)?e:o}function ks(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function OE(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dd(){var t=il;return il<<=1,(il&62914560)===0&&(il=4194304),t}function Oo(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Us(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function NE(t,e,a,l,o,f){var g=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var E=t.entanglements,x=t.expirationTimes,D=t.hiddenUpdates;for(a=g&~a;0<a;){var V=31-Qe(a),X=1<<V;E[V]=0,x[V]=-1;var G=D[V];if(G!==null)for(D[V]=null,V=0;V<G.length;V++){var H=G[V];H!==null&&(H.lane&=-536870913)}a&=~X}l!==0&&pd(t,l,0),f!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=f&~(g&~e))}function pd(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Qe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function _d(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-Qe(a),o=1<<l;o&e|t[l]&e&&(t[l]|=e),a&=~o}}function gd(t,e){var a=e&-e;return a=(a&42)!==0?1:No(a),(a&(t.suspendedLanes|e))!==0?0:a}function No(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ro(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function md(){var t=F.p;return t!==0?t:(t=window.event,t===void 0?32:nm(t.type))}function yd(t,e){var a=F.p;try{return F.p=t,e()}finally{F.p=a}}var Ci=Math.random().toString(36).slice(2),Ae="__reactFiber$"+Ci,De="__reactProps$"+Ci,za="__reactContainer$"+Ci,xo="__reactEvents$"+Ci,RE="__reactListeners$"+Ci,xE="__reactHandles$"+Ci,vd="__reactResources$"+Ci,Is="__reactMarker$"+Ci;function Co(t){delete t[Ae],delete t[De],delete t[xo],delete t[RE],delete t[xE]}function Ba(t){var e=t[Ae];if(e)return e;for(var a=t.parentNode;a;){if(e=a[za]||a[Ae]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Pg(t);t!==null;){if(a=t[Ae])return a;t=Pg(t)}return e}t=a,a=t.parentNode}return null}function ja(t){if(t=t[Ae]||t[za]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function zs(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Da(t){var e=t[vd];return e||(e=t[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function be(t){t[Is]=!0}var Ed=new Set,bd={};function ra(t,e){Pa(t,e),Pa(t+"Capture",e)}function Pa(t,e){for(bd[t]=e,t=0;t<e.length;t++)Ed.add(e[t])}var CE=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Td={},Sd={};function wE(t){return $t.call(Sd,t)?!0:$t.call(Td,t)?!1:CE.test(t)?Sd[t]=!0:(Td[t]=!0,!1)}function sl(t,e,a){if(wE(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function rl(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function ei(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function pn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ad(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function LE(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,f=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function wo(t){if(!t._valueTracker){var e=Ad(t)?"checked":"value";t._valueTracker=LE(t,e,""+t[e])}}function Od(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=Ad(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function ll(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ME=/[\n"\\]/g;function _n(t){return t.replace(ME,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Lo(t,e,a,l,o,f,g,E){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+pn(e)):t.value!==""+pn(e)&&(t.value=""+pn(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?Mo(t,g,pn(e)):a!=null?Mo(t,g,pn(a)):l!=null&&t.removeAttribute("value"),o==null&&f!=null&&(t.defaultChecked=!!f),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?t.name=""+pn(E):t.removeAttribute("name")}function Nd(t,e,a,l,o,f,g,E){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.type=f),e!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||e!=null)){wo(t);return}a=a!=null?""+pn(a):"",e=e!=null?""+pn(e):a,E||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=E?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),wo(t)}function Mo(t,e,a){e==="number"&&ll(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function qa(t,e,a,l){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&l&&(t[a].defaultSelected=!0)}else{for(a=""+pn(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Rd(t,e,a){if(e!=null&&(e=""+pn(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+pn(a):""}function xd(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(it(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=pn(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),wo(t)}function Ga(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var kE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cd(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||kE.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function wd(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&a[o]!==l&&Cd(t,o,l)}else for(var f in e)e.hasOwnProperty(f)&&Cd(t,f,e[f])}function ko(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var UE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),IE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ul(t){return IE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ni(){}var Uo=null;function Io(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,$a=null;function Ld(t){var e=ja(t);if(e&&(t=e.stateNode)){var a=t[De]||null;t:switch(t=e.stateNode,e.type){case"input":if(Lo(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+_n(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var o=l[De]||null;if(!o)throw Error(r(90));Lo(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&Od(l)}break t;case"textarea":Rd(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&qa(t,!!a.multiple,e,!1)}}}var zo=!1;function Md(t,e,a){if(zo)return t(e,a);zo=!0;try{var l=t(e);return l}finally{if(zo=!1,(Ha!==null||$a!==null)&&(Xl(),Ha&&(e=Ha,t=$a,$a=Ha=null,Ld(e),t)))for(e=0;e<t.length;e++)Ld(t[e])}}function Bs(t,e){var a=t.stateNode;if(a===null)return null;var l=a[De]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bo=!1;if(ii)try{var js={};Object.defineProperty(js,"passive",{get:function(){Bo=!0}}),window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{Bo=!1}var wi=null,jo=null,ol=null;function kd(){if(ol)return ol;var t,e=jo,a=e.length,l,o="value"in wi?wi.value:wi.textContent,f=o.length;for(t=0;t<a&&e[t]===o[t];t++);var g=a-t;for(l=1;l<=g&&e[a-l]===o[f-l];l++);return ol=o.slice(t,1<l?1-l:void 0)}function cl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function fl(){return!0}function Ud(){return!1}function Pe(t){function e(a,l,o,f,g){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var E in t)t.hasOwnProperty(E)&&(a=t[E],this[E]=a?a(f):f[E]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?fl:Ud,this.isPropagationStopped=Ud,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=fl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),e}var la={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hl=Pe(la),Ds=v({},la,{view:0,detail:0}),zE=Pe(Ds),Do,Po,Ps,dl=v({},Ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Go,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ps&&(Ps&&t.type==="mousemove"?(Do=t.screenX-Ps.screenX,Po=t.screenY-Ps.screenY):Po=Do=0,Ps=t),Do)},movementY:function(t){return"movementY"in t?t.movementY:Po}}),Id=Pe(dl),BE=v({},dl,{dataTransfer:0}),jE=Pe(BE),DE=v({},Ds,{relatedTarget:0}),qo=Pe(DE),PE=v({},la,{animationName:0,elapsedTime:0,pseudoElement:0}),qE=Pe(PE),GE=v({},la,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),HE=Pe(GE),$E=v({},la,{data:0}),zd=Pe($E),KE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FE={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"},VE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=VE[t])?!!e[t]:!1}function Go(){return YE}var XE=v({},Ds,{key:function(t){if(t.key){var e=KE[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=cl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?FE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Go,charCode:function(t){return t.type==="keypress"?cl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?cl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),QE=Pe(XE),ZE=v({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bd=Pe(ZE),WE=v({},Ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Go}),JE=Pe(WE),tb=v({},la,{propertyName:0,elapsedTime:0,pseudoElement:0}),eb=Pe(tb),nb=v({},dl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),ib=Pe(nb),ab=v({},la,{newState:0,oldState:0}),sb=Pe(ab),rb=[9,13,27,32],Ho=ii&&"CompositionEvent"in window,qs=null;ii&&"documentMode"in document&&(qs=document.documentMode);var lb=ii&&"TextEvent"in window&&!qs,jd=ii&&(!Ho||qs&&8<qs&&11>=qs),Dd=" ",Pd=!1;function qd(t,e){switch(t){case"keyup":return rb.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ka=!1;function ub(t,e){switch(t){case"compositionend":return Gd(e);case"keypress":return e.which!==32?null:(Pd=!0,Dd);case"textInput":return t=e.data,t===Dd&&Pd?null:t;default:return null}}function ob(t,e){if(Ka)return t==="compositionend"||!Ho&&qd(t,e)?(t=kd(),ol=jo=wi=null,Ka=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return jd&&e.locale!=="ko"?null:e.data;default:return null}}var cb={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 Hd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!cb[t.type]:e==="textarea"}function $d(t,e,a,l){Ha?$a?$a.push(l):$a=[l]:Ha=l,e=nu(e,"onChange"),0<e.length&&(a=new hl("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Gs=null,Hs=null;function fb(t){Ng(t,0)}function pl(t){var e=zs(t);if(Od(e))return t}function Kd(t,e){if(t==="change")return e}var Fd=!1;if(ii){var $o;if(ii){var Ko="oninput"in document;if(!Ko){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Ko=typeof Vd.oninput=="function"}$o=Ko}else $o=!1;Fd=$o&&(!document.documentMode||9<document.documentMode)}function Yd(){Gs&&(Gs.detachEvent("onpropertychange",Xd),Hs=Gs=null)}function Xd(t){if(t.propertyName==="value"&&pl(Hs)){var e=[];$d(e,Hs,t,Io(t)),Md(fb,e)}}function hb(t,e,a){t==="focusin"?(Yd(),Gs=e,Hs=a,Gs.attachEvent("onpropertychange",Xd)):t==="focusout"&&Yd()}function db(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return pl(Hs)}function pb(t,e){if(t==="click")return pl(e)}function _b(t,e){if(t==="input"||t==="change")return pl(e)}function gb(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ze=typeof Object.is=="function"?Object.is:gb;function $s(t,e){if(Ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!$t.call(e,o)||!Ze(t[o],e[o]))return!1}return!0}function Qd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Zd(t,e){var a=Qd(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Qd(a)}}function Wd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Wd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Jd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ll(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=ll(t.document)}return e}function Fo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var mb=ii&&"documentMode"in document&&11>=document.documentMode,Fa=null,Vo=null,Ks=null,Yo=!1;function tp(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Yo||Fa==null||Fa!==ll(l)||(l=Fa,"selectionStart"in l&&Fo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ks&&$s(Ks,l)||(Ks=l,l=nu(Vo,"onSelect"),0<l.length&&(e=new hl("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=Fa)))}function ua(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Va={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},Xo={},ep={};ii&&(ep=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function oa(t){if(Xo[t])return Xo[t];if(!Va[t])return t;var e=Va[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in ep)return Xo[t]=e[a];return t}var np=oa("animationend"),ip=oa("animationiteration"),ap=oa("animationstart"),yb=oa("transitionrun"),vb=oa("transitionstart"),Eb=oa("transitioncancel"),sp=oa("transitionend"),rp=new Map,Qo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Qo.push("scrollEnd");function Ln(t,e){rp.set(t,e),ra(e,[t])}var _l=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},gn=[],Ya=0,Zo=0;function gl(){for(var t=Ya,e=Zo=Ya=0;e<t;){var a=gn[e];gn[e++]=null;var l=gn[e];gn[e++]=null;var o=gn[e];gn[e++]=null;var f=gn[e];if(gn[e++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}f!==0&&lp(a,o,f)}}function ml(t,e,a,l){gn[Ya++]=t,gn[Ya++]=e,gn[Ya++]=a,gn[Ya++]=l,Zo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Wo(t,e,a,l){return ml(t,e,a,l),yl(t)}function ca(t,e){return ml(t,null,null,e),yl(t)}function lp(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=t.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(t=f.stateNode,t===null||t._visibility&1||(o=!0)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,o&&e!==null&&(o=31-Qe(a),t=f.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=a|536870912),f):null}function yl(t){if(50<dr)throw dr=0,uf=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Xa={};function bb(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(t,e,a,l){return new bb(t,e,a,l)}function Jo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ai(t,e){var a=t.alternate;return a===null?(a=We(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function up(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function vl(t,e,a,l,o,f){var g=0;if(l=t,typeof t=="function")Jo(t)&&(g=1);else if(typeof t=="string")g=NT(t,a,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case S:return t=We(31,a,e,o),t.elementType=S,t.lanes=f,t;case Q:return fa(a.children,o,f,e);case O:g=8,o|=24;break;case b:return t=We(12,a,e,o|2),t.elementType=b,t.lanes=f,t;case Z:return t=We(13,a,e,o),t.elementType=Z,t.lanes=f,t;case I:return t=We(19,a,e,o),t.elementType=I,t.lanes=f,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:g=10;break t;case N:g=9;break t;case z:g=11;break t;case C:g=14;break t;case y:g=16,l=null;break t}g=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=We(g,a,e,o),e.elementType=t,e.type=l,e.lanes=f,e}function fa(t,e,a,l){return t=We(7,t,l,e),t.lanes=a,t}function tc(t,e,a){return t=We(6,t,null,e),t.lanes=a,t}function op(t){var e=We(18,null,null,0);return e.stateNode=t,e}function ec(t,e,a){return e=We(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var cp=new WeakMap;function mn(t,e){if(typeof t=="object"&&t!==null){var a=cp.get(t);return a!==void 0?a:(e={value:t,source:e,stack:It(e)},cp.set(t,e),e)}return{value:t,source:e,stack:It(e)}}var Qa=[],Za=0,El=null,Fs=0,yn=[],vn=0,Li=null,Gn=1,Hn="";function si(t,e){Qa[Za++]=Fs,Qa[Za++]=El,El=t,Fs=e}function fp(t,e,a){yn[vn++]=Gn,yn[vn++]=Hn,yn[vn++]=Li,Li=t;var l=Gn;t=Hn;var o=32-Qe(l)-1;l&=~(1<<o),a+=1;var f=32-Qe(e)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,Gn=1<<32-Qe(e)+o|a<<o|l,Hn=f+t}else Gn=1<<f|a<<o|l,Hn=t}function nc(t){t.return!==null&&(si(t,1),fp(t,1,0))}function ic(t){for(;t===El;)El=Qa[--Za],Qa[Za]=null,Fs=Qa[--Za],Qa[Za]=null;for(;t===Li;)Li=yn[--vn],yn[vn]=null,Hn=yn[--vn],yn[vn]=null,Gn=yn[--vn],yn[vn]=null}function hp(t,e){yn[vn++]=Gn,yn[vn++]=Hn,yn[vn++]=Li,Gn=e.id,Hn=e.overflow,Li=t}var Oe=null,Zt=null,Ut=!1,Mi=null,En=!1,ac=Error(r(519));function ki(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vs(mn(e,t)),ac}function dp(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[Ae]=t,e[De]=l,a){case"dialog":Ct("cancel",e),Ct("close",e);break;case"iframe":case"object":case"embed":Ct("load",e);break;case"video":case"audio":for(a=0;a<_r.length;a++)Ct(_r[a],e);break;case"source":Ct("error",e);break;case"img":case"image":case"link":Ct("error",e),Ct("load",e);break;case"details":Ct("toggle",e);break;case"input":Ct("invalid",e),Nd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ct("invalid",e);break;case"textarea":Ct("invalid",e),xd(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||wg(e.textContent,a)?(l.popover!=null&&(Ct("beforetoggle",e),Ct("toggle",e)),l.onScroll!=null&&Ct("scroll",e),l.onScrollEnd!=null&&Ct("scrollend",e),l.onClick!=null&&(e.onclick=ni),e=!0):e=!1,e||ki(t,!0)}function pp(t){for(Oe=t.return;Oe;)switch(Oe.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Oe=Oe.return}}function Wa(t){if(t!==Oe)return!1;if(!Ut)return pp(t),Ut=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Sf(t.type,t.memoizedProps)),a=!a),a&&Zt&&ki(t),pp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Zt=Dg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Zt=Dg(t)}else e===27?(e=Zt,Vi(t.type)?(t=xf,xf=null,Zt=t):Zt=e):Zt=Oe?Tn(t.stateNode.nextSibling):null;return!0}function ha(){Zt=Oe=null,Ut=!1}function sc(){var t=Mi;return t!==null&&($e===null?$e=t:$e.push.apply($e,t),Mi=null),t}function Vs(t){Mi===null?Mi=[t]:Mi.push(t)}var rc=A(null),da=null,ri=null;function Ui(t,e,a){$(rc,e._currentValue),e._currentValue=a}function li(t){t._currentValue=rc.current,j(rc)}function lc(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function uc(t,e,a,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var f=o.dependencies;if(f!==null){var g=o.child;f=f.firstContext;t:for(;f!==null;){var E=f;f=o;for(var x=0;x<e.length;x++)if(E.context===e[x]){f.lanes|=a,E=f.alternate,E!==null&&(E.lanes|=a),lc(f.return,a,t),l||(g=null);break t}f=E.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(r(341));g.lanes|=a,f=g.alternate,f!==null&&(f.lanes|=a),lc(g,a,t),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===t){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Ja(t,e,a,l){t=null;for(var o=e,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var E=o.type;Ze(o.pendingProps.value,g.value)||(t!==null?t.push(E):t=[E])}}else if(o===ht.current){if(g=o.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Er):t=[Er])}o=o.return}t!==null&&uc(e,t,a,l),e.flags|=262144}function bl(t){for(t=t.firstContext;t!==null;){if(!Ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function pa(t){da=t,ri=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ne(t){return _p(da,t)}function Tl(t,e){return da===null&&pa(t),_p(t,e)}function _p(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},ri===null){if(t===null)throw Error(r(308));ri=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ri=ri.next=e;return a}var Tb=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},Sb=i.unstable_scheduleCallback,Ab=i.unstable_NormalPriority,fe={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new Tb,data:new Map,refCount:0}}function Ys(t){t.refCount--,t.refCount===0&&Sb(Ab,function(){t.controller.abort()})}var Xs=null,cc=0,ts=0,es=null;function Ob(t,e){if(Xs===null){var a=Xs=[];cc=0,ts=pf(),es={status:"pending",value:void 0,then:function(l){a.push(l)}}}return cc++,e.then(gp,gp),e}function gp(){if(--cc===0&&Xs!==null){es!==null&&(es.status="fulfilled");var t=Xs;Xs=null,ts=0,es=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Nb(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var mp=k.S;k.S=function(t,e){tg=Pt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Ob(t,e),mp!==null&&mp(t,e)};var _a=A(null);function fc(){var t=_a.current;return t!==null?t:Yt.pooledCache}function Sl(t,e){e===null?$(_a,_a.current):$(_a,e.pool)}function yp(){var t=fc();return t===null?null:{parent:fe._currentValue,pool:t}}var ns=Error(r(460)),hc=Error(r(474)),Al=Error(r(542)),Ol={then:function(){}};function vp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ep(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(ni,ni),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Tp(t),t;default:if(typeof e.status=="string")e.then(ni,ni);else{if(t=Yt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Tp(t),t}throw ma=e,ns}}function ga(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ma=a,ns):a}}var ma=null;function bp(){if(ma===null)throw Error(r(459));var t=ma;return ma=null,t}function Tp(t){if(t===ns||t===Al)throw Error(r(483))}var is=null,Qs=0;function Nl(t){var e=Qs;return Qs+=1,is===null&&(is=[]),Ep(is,t,e)}function Zs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Rl(t,e){throw e.$$typeof===R?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Sp(t){function e(U,w){if(t){var B=U.deletions;B===null?(U.deletions=[w],U.flags|=16):B.push(w)}}function a(U,w){if(!t)return null;for(;w!==null;)e(U,w),w=w.sibling;return null}function l(U){for(var w=new Map;U!==null;)U.key!==null?w.set(U.key,U):w.set(U.index,U),U=U.sibling;return w}function o(U,w){return U=ai(U,w),U.index=0,U.sibling=null,U}function f(U,w,B){return U.index=B,t?(B=U.alternate,B!==null?(B=B.index,B<w?(U.flags|=67108866,w):B):(U.flags|=67108866,w)):(U.flags|=1048576,w)}function g(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function E(U,w,B,Y){return w===null||w.tag!==6?(w=tc(B,U.mode,Y),w.return=U,w):(w=o(w,B),w.return=U,w)}function x(U,w,B,Y){var dt=B.type;return dt===Q?V(U,w,B.props.children,Y,B.key):w!==null&&(w.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===y&&ga(dt)===w.type)?(w=o(w,B.props),Zs(w,B),w.return=U,w):(w=vl(B.type,B.key,B.props,null,U.mode,Y),Zs(w,B),w.return=U,w)}function D(U,w,B,Y){return w===null||w.tag!==4||w.stateNode.containerInfo!==B.containerInfo||w.stateNode.implementation!==B.implementation?(w=ec(B,U.mode,Y),w.return=U,w):(w=o(w,B.children||[]),w.return=U,w)}function V(U,w,B,Y,dt){return w===null||w.tag!==7?(w=fa(B,U.mode,Y,dt),w.return=U,w):(w=o(w,B),w.return=U,w)}function X(U,w,B){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=tc(""+w,U.mode,B),w.return=U,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case q:return B=vl(w.type,w.key,w.props,null,U.mode,B),Zs(B,w),B.return=U,B;case K:return w=ec(w,U.mode,B),w.return=U,w;case y:return w=ga(w),X(U,w,B)}if(it(w)||M(w))return w=fa(w,U.mode,B,null),w.return=U,w;if(typeof w.then=="function")return X(U,Nl(w),B);if(w.$$typeof===P)return X(U,Tl(U,w),B);Rl(U,w)}return null}function G(U,w,B,Y){var dt=w!==null?w.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return dt!==null?null:E(U,w,""+B,Y);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case q:return B.key===dt?x(U,w,B,Y):null;case K:return B.key===dt?D(U,w,B,Y):null;case y:return B=ga(B),G(U,w,B,Y)}if(it(B)||M(B))return dt!==null?null:V(U,w,B,Y,null);if(typeof B.then=="function")return G(U,w,Nl(B),Y);if(B.$$typeof===P)return G(U,w,Tl(U,B),Y);Rl(U,B)}return null}function H(U,w,B,Y,dt){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return U=U.get(B)||null,E(w,U,""+Y,dt);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case q:return U=U.get(Y.key===null?B:Y.key)||null,x(w,U,Y,dt);case K:return U=U.get(Y.key===null?B:Y.key)||null,D(w,U,Y,dt);case y:return Y=ga(Y),H(U,w,B,Y,dt)}if(it(Y)||M(Y))return U=U.get(B)||null,V(w,U,Y,dt,null);if(typeof Y.then=="function")return H(U,w,B,Nl(Y),dt);if(Y.$$typeof===P)return H(U,w,B,Tl(w,Y),dt);Rl(w,Y)}return null}function ut(U,w,B,Y){for(var dt=null,Bt=null,ot=w,Ot=w=0,Mt=null;ot!==null&&Ot<B.length;Ot++){ot.index>Ot?(Mt=ot,ot=null):Mt=ot.sibling;var jt=G(U,ot,B[Ot],Y);if(jt===null){ot===null&&(ot=Mt);break}t&&ot&&jt.alternate===null&&e(U,ot),w=f(jt,w,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt,ot=Mt}if(Ot===B.length)return a(U,ot),Ut&&si(U,Ot),dt;if(ot===null){for(;Ot<B.length;Ot++)ot=X(U,B[Ot],Y),ot!==null&&(w=f(ot,w,Ot),Bt===null?dt=ot:Bt.sibling=ot,Bt=ot);return Ut&&si(U,Ot),dt}for(ot=l(ot);Ot<B.length;Ot++)Mt=H(ot,U,Ot,B[Ot],Y),Mt!==null&&(t&&Mt.alternate!==null&&ot.delete(Mt.key===null?Ot:Mt.key),w=f(Mt,w,Ot),Bt===null?dt=Mt:Bt.sibling=Mt,Bt=Mt);return t&&ot.forEach(function(Wi){return e(U,Wi)}),Ut&&si(U,Ot),dt}function mt(U,w,B,Y){if(B==null)throw Error(r(151));for(var dt=null,Bt=null,ot=w,Ot=w=0,Mt=null,jt=B.next();ot!==null&&!jt.done;Ot++,jt=B.next()){ot.index>Ot?(Mt=ot,ot=null):Mt=ot.sibling;var Wi=G(U,ot,jt.value,Y);if(Wi===null){ot===null&&(ot=Mt);break}t&&ot&&Wi.alternate===null&&e(U,ot),w=f(Wi,w,Ot),Bt===null?dt=Wi:Bt.sibling=Wi,Bt=Wi,ot=Mt}if(jt.done)return a(U,ot),Ut&&si(U,Ot),dt;if(ot===null){for(;!jt.done;Ot++,jt=B.next())jt=X(U,jt.value,Y),jt!==null&&(w=f(jt,w,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt);return Ut&&si(U,Ot),dt}for(ot=l(ot);!jt.done;Ot++,jt=B.next())jt=H(ot,U,Ot,jt.value,Y),jt!==null&&(t&&jt.alternate!==null&&ot.delete(jt.key===null?Ot:jt.key),w=f(jt,w,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt);return t&&ot.forEach(function(BT){return e(U,BT)}),Ut&&si(U,Ot),dt}function Vt(U,w,B,Y){if(typeof B=="object"&&B!==null&&B.type===Q&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case q:t:{for(var dt=B.key;w!==null;){if(w.key===dt){if(dt=B.type,dt===Q){if(w.tag===7){a(U,w.sibling),Y=o(w,B.props.children),Y.return=U,U=Y;break t}}else if(w.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===y&&ga(dt)===w.type){a(U,w.sibling),Y=o(w,B.props),Zs(Y,B),Y.return=U,U=Y;break t}a(U,w);break}else e(U,w);w=w.sibling}B.type===Q?(Y=fa(B.props.children,U.mode,Y,B.key),Y.return=U,U=Y):(Y=vl(B.type,B.key,B.props,null,U.mode,Y),Zs(Y,B),Y.return=U,U=Y)}return g(U);case K:t:{for(dt=B.key;w!==null;){if(w.key===dt)if(w.tag===4&&w.stateNode.containerInfo===B.containerInfo&&w.stateNode.implementation===B.implementation){a(U,w.sibling),Y=o(w,B.children||[]),Y.return=U,U=Y;break t}else{a(U,w);break}else e(U,w);w=w.sibling}Y=ec(B,U.mode,Y),Y.return=U,U=Y}return g(U);case y:return B=ga(B),Vt(U,w,B,Y)}if(it(B))return ut(U,w,B,Y);if(M(B)){if(dt=M(B),typeof dt!="function")throw Error(r(150));return B=dt.call(B),mt(U,w,B,Y)}if(typeof B.then=="function")return Vt(U,w,Nl(B),Y);if(B.$$typeof===P)return Vt(U,w,Tl(U,B),Y);Rl(U,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,w!==null&&w.tag===6?(a(U,w.sibling),Y=o(w,B),Y.return=U,U=Y):(a(U,w),Y=tc(B,U.mode,Y),Y.return=U,U=Y),g(U)):a(U,w)}return function(U,w,B,Y){try{Qs=0;var dt=Vt(U,w,B,Y);return is=null,dt}catch(ot){if(ot===ns||ot===Al)throw ot;var Bt=We(29,ot,null,U.mode);return Bt.lanes=Y,Bt.return=U,Bt}}}var ya=Sp(!0),Ap=Sp(!1),Ii=!1;function dc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=yl(t),lp(t,null,a),e}return ml(t,l,e,a),yl(t)}function Ws(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,_d(t,a)}}function _c(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?o=f=e:f=f.next=e}else o=f=e;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var gc=!1;function Js(){if(gc){var t=es;if(t!==null)throw t}}function tr(t,e,a,l){gc=!1;var o=t.updateQueue;Ii=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var x=E,D=x.next;x.next=null,g===null?f=D:g.next=D,g=x;var V=t.alternate;V!==null&&(V=V.updateQueue,E=V.lastBaseUpdate,E!==g&&(E===null?V.firstBaseUpdate=D:E.next=D,V.lastBaseUpdate=x))}if(f!==null){var X=o.baseState;g=0,V=D=x=null,E=f;do{var G=E.lane&-536870913,H=G!==E.lane;if(H?(Lt&G)===G:(l&G)===G){G!==0&&G===ts&&(gc=!0),V!==null&&(V=V.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});t:{var ut=t,mt=E;G=e;var Vt=a;switch(mt.tag){case 1:if(ut=mt.payload,typeof ut=="function"){X=ut.call(Vt,X,G);break t}X=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=mt.payload,G=typeof ut=="function"?ut.call(Vt,X,G):ut,G==null)break t;X=v({},X,G);break t;case 2:Ii=!0}}G=E.callback,G!==null&&(t.flags|=64,H&&(t.flags|=8192),H=o.callbacks,H===null?o.callbacks=[G]:H.push(G))}else H={lane:G,tag:E.tag,payload:E.payload,callback:E.callback,next:null},V===null?(D=V=H,x=X):V=V.next=H,g|=G;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;H=E,E=H.next,H.next=null,o.lastBaseUpdate=H,o.shared.pending=null}}while(!0);V===null&&(x=X),o.baseState=x,o.firstBaseUpdate=D,o.lastBaseUpdate=V,f===null&&(o.shared.lanes=0),Gi|=g,t.lanes=g,t.memoizedState=X}}function Op(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Np(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Op(a[t],e)}var as=A(null),xl=A(0);function Rp(t,e){t=gi,$(xl,t),$(as,e),gi=t|e.baseLanes}function mc(){$(xl,gi),$(as,as.current)}function yc(){gi=xl.current,j(as),j(xl)}var Je=A(null),bn=null;function ji(t){var e=t.alternate;$(ue,ue.current&1),$(Je,t),bn===null&&(e===null||as.current!==null||e.memoizedState!==null)&&(bn=t)}function vc(t){$(ue,ue.current),$(Je,t),bn===null&&(bn=t)}function xp(t){t.tag===22?($(ue,ue.current),$(Je,t),bn===null&&(bn=t)):Di()}function Di(){$(ue,ue.current),$(Je,Je.current)}function tn(t){j(Je),bn===t&&(bn=null),j(ue)}var ue=A(0);function Cl(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Nf(a)||Rf(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ui=0,St=null,Kt=null,he=null,wl=!1,ss=!1,va=!1,Ll=0,er=0,rs=null,Rb=0;function ie(){throw Error(r(321))}function Ec(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ze(t[a],e[a]))return!1;return!0}function bc(t,e,a,l,o,f){return ui=f,St=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,k.H=t===null||t.memoizedState===null?f_:zc,va=!1,f=a(l,o),va=!1,ss&&(f=wp(e,a,l,o)),Cp(t),f}function Cp(t){k.H=ar;var e=Kt!==null&&Kt.next!==null;if(ui=0,he=Kt=St=null,wl=!1,er=0,rs=null,e)throw Error(r(300));t===null||de||(t=t.dependencies,t!==null&&bl(t)&&(de=!0))}function wp(t,e,a,l){St=t;var o=0;do{if(ss&&(rs=null),er=0,ss=!1,25<=o)throw Error(r(301));if(o+=1,he=Kt=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=h_,f=e(a,l)}while(ss);return f}function xb(){var t=k.H,e=t.useState()[0];return e=typeof e.then=="function"?nr(e):e,t=t.useState()[0],(Kt!==null?Kt.memoizedState:null)!==t&&(St.flags|=1024),e}function Tc(){var t=Ll!==0;return Ll=0,t}function Sc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Ac(t){if(wl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}wl=!1}ui=0,he=Kt=St=null,ss=!1,er=Ll=0,rs=null}function Ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return he===null?St.memoizedState=he=t:he=he.next=t,he}function oe(){if(Kt===null){var t=St.alternate;t=t!==null?t.memoizedState:null}else t=Kt.next;var e=he===null?St.memoizedState:he.next;if(e!==null)he=e,Kt=t;else{if(t===null)throw St.alternate===null?Error(r(467)):Error(r(310));Kt=t,t={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},he===null?St.memoizedState=he=t:he=he.next=t}return he}function Ml(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nr(t){var e=er;return er+=1,rs===null&&(rs=[]),t=Ep(rs,t,e),e=St,(he===null?e.memoizedState:he.next)===null&&(e=e.alternate,k.H=e===null||e.memoizedState===null?f_:zc),t}function kl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return nr(t);if(t.$$typeof===P)return Ne(t)}throw Error(r(438,String(t)))}function Oc(t){var e=null,a=St.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=St.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Ml(),St.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=m;return e.index++,a}function oi(t,e){return typeof e=="function"?e(t):e}function Ul(t){var e=oe();return Nc(e,Kt,t)}function Nc(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var o=t.baseQueue,f=l.pending;if(f!==null){if(o!==null){var g=o.next;o.next=f.next,f.next=g}e.baseQueue=o=f,l.pending=null}if(f=t.baseState,o===null)t.memoizedState=f;else{e=o.next;var E=g=null,x=null,D=e,V=!1;do{var X=D.lane&-536870913;if(X!==D.lane?(Lt&X)===X:(ui&X)===X){var G=D.revertLane;if(G===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),X===ts&&(V=!0);else if((ui&G)===G){D=D.next,G===ts&&(V=!0);continue}else X={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=X,g=f):x=x.next=X,St.lanes|=G,Gi|=G;X=D.action,va&&a(f,X),f=D.hasEagerState?D.eagerState:a(f,X)}else G={lane:X,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=G,g=f):x=x.next=G,St.lanes|=X,Gi|=X;D=D.next}while(D!==null&&D!==e);if(x===null?g=f:x.next=E,!Ze(f,t.memoizedState)&&(de=!0,V&&(a=es,a!==null)))throw a;t.memoizedState=f,t.baseState=g,t.baseQueue=x,l.lastRenderedState=f}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Rc(t){var e=oe(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,o=a.pending,f=e.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do f=t(f,g.action),g=g.next;while(g!==o);Ze(f,e.memoizedState)||(de=!0),e.memoizedState=f,e.baseQueue===null&&(e.baseState=f),a.lastRenderedState=f}return[f,l]}function Lp(t,e,a){var l=St,o=oe(),f=Ut;if(f){if(a===void 0)throw Error(r(407));a=a()}else a=e();var g=!Ze((Kt||o).memoizedState,a);if(g&&(o.memoizedState=a,de=!0),o=o.queue,wc(Up.bind(null,l,o,t),[t]),o.getSnapshot!==e||g||he!==null&&he.memoizedState.tag&1){if(l.flags|=2048,ls(9,{destroy:void 0},kp.bind(null,l,o,a,e),null),Yt===null)throw Error(r(349));f||(ui&127)!==0||Mp(l,e,a)}return a}function Mp(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=St.updateQueue,e===null?(e=Ml(),St.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function kp(t,e,a,l){e.value=a,e.getSnapshot=l,Ip(e)&&zp(t)}function Up(t,e,a){return a(function(){Ip(e)&&zp(t)})}function Ip(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ze(t,a)}catch{return!0}}function zp(t){var e=ca(t,2);e!==null&&Ke(e,t,2)}function xc(t){var e=Ue();if(typeof t=="function"){var a=t;if(t=a(),va){xi(!0);try{a()}finally{xi(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:t},e}function Bp(t,e,a,l){return t.baseState=a,Nc(t,Kt,typeof l=="function"?l:oi)}function Cb(t,e,a,l,o){if(Bl(t))throw Error(r(485));if(t=e.action,t!==null){var f={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};k.T!==null?a(!0):f.isTransition=!1,l(f),a=e.pending,a===null?(f.next=e.pending=f,jp(e,f)):(f.next=a.next,e.pending=a.next=f)}}function jp(t,e){var a=e.action,l=e.payload,o=t.state;if(e.isTransition){var f=k.T,g={};k.T=g;try{var E=a(o,l),x=k.S;x!==null&&x(g,E),Dp(t,e,E)}catch(D){Cc(t,e,D)}finally{f!==null&&g.types!==null&&(f.types=g.types),k.T=f}}else try{f=a(o,l),Dp(t,e,f)}catch(D){Cc(t,e,D)}}function Dp(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Pp(t,e,l)},function(l){return Cc(t,e,l)}):Pp(t,e,a)}function Pp(t,e,a){e.status="fulfilled",e.value=a,qp(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,jp(t,a)))}function Cc(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,qp(e),e=e.next;while(e!==l)}t.action=null}function qp(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Gp(t,e){return e}function Hp(t,e){if(Ut){var a=Yt.formState;if(a!==null){t:{var l=St;if(Ut){if(Zt){e:{for(var o=Zt,f=En;o.nodeType!==8;){if(!f){o=null;break e}if(o=Tn(o.nextSibling),o===null){o=null;break e}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Zt=Tn(o.nextSibling),l=o.data==="F!";break t}}ki(l)}l=!1}l&&(e=a[0])}}return a=Ue(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gp,lastRenderedState:e},a.queue=l,a=u_.bind(null,St,l),l.dispatch=a,l=xc(!1),f=Ic.bind(null,St,!1,l.queue),l=Ue(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,a=Cb.bind(null,St,o,f,a),o.dispatch=a,l.memoizedState=t,[e,a,!1]}function $p(t){var e=oe();return Kp(e,Kt,t)}function Kp(t,e,a){if(e=Nc(t,e,Gp)[0],t=Ul(oi)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=nr(e)}catch(g){throw g===ns?Al:g}else l=e;e=oe();var o=e.queue,f=o.dispatch;return a!==e.memoizedState&&(St.flags|=2048,ls(9,{destroy:void 0},wb.bind(null,o,a),null)),[l,f,t]}function wb(t,e){t.action=e}function Fp(t){var e=oe(),a=Kt;if(a!==null)return Kp(e,a,t);oe(),e=e.memoizedState,a=oe();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function ls(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=St.updateQueue,e===null&&(e=Ml(),St.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Vp(){return oe().memoizedState}function Il(t,e,a,l){var o=Ue();St.flags|=t,o.memoizedState=ls(1|e,{destroy:void 0},a,l===void 0?null:l)}function zl(t,e,a,l){var o=oe();l=l===void 0?null:l;var f=o.memoizedState.inst;Kt!==null&&l!==null&&Ec(l,Kt.memoizedState.deps)?o.memoizedState=ls(e,f,a,l):(St.flags|=t,o.memoizedState=ls(1|e,f,a,l))}function Yp(t,e){Il(8390656,8,t,e)}function wc(t,e){zl(2048,8,t,e)}function Lb(t){St.flags|=4;var e=St.updateQueue;if(e===null)e=Ml(),St.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Xp(t){var e=oe().memoizedState;return Lb({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Qp(t,e){return zl(4,2,t,e)}function Zp(t,e){return zl(4,4,t,e)}function Wp(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Jp(t,e,a){a=a!=null?a.concat([t]):null,zl(4,4,Wp.bind(null,e,t),a)}function Lc(){}function t_(t,e){var a=oe();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&Ec(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function e_(t,e){var a=oe();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&Ec(e,l[1]))return l[0];if(l=t(),va){xi(!0);try{t()}finally{xi(!1)}}return a.memoizedState=[l,e],l}function Mc(t,e,a){return a===void 0||(ui&1073741824)!==0&&(Lt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=ng(),St.lanes|=t,Gi|=t,a)}function n_(t,e,a,l){return Ze(a,e)?a:as.current!==null?(t=Mc(t,a,l),Ze(t,e)||(de=!0),t):(ui&42)===0||(ui&1073741824)!==0&&(Lt&261930)===0?(de=!0,t.memoizedState=a):(t=ng(),St.lanes|=t,Gi|=t,e)}function i_(t,e,a,l,o){var f=F.p;F.p=f!==0&&8>f?f:8;var g=k.T,E={};k.T=E,Ic(t,!1,e,a);try{var x=o(),D=k.S;if(D!==null&&D(E,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var V=Nb(x,l);ir(t,e,V,an(t))}else ir(t,e,l,an(t))}catch(X){ir(t,e,{then:function(){},status:"rejected",reason:X},an())}finally{F.p=f,g!==null&&E.types!==null&&(g.types=E.types),k.T=g}}function Mb(){}function kc(t,e,a,l){if(t.tag!==5)throw Error(r(476));var o=a_(t).queue;i_(t,o,e,nt,a===null?Mb:function(){return s_(t),a(l)})}function a_(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:nt},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function s_(t){var e=a_(t);e.next===null&&(e=t.alternate.memoizedState),ir(t,e.next.queue,{},an())}function Uc(){return Ne(Er)}function r_(){return oe().memoizedState}function l_(){return oe().memoizedState}function kb(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=an();t=zi(a);var l=Bi(e,t,a);l!==null&&(Ke(l,e,a),Ws(l,e,a)),e={cache:oc()},t.payload=e;return}e=e.return}}function Ub(t,e,a){var l=an();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bl(t)?o_(e,a):(a=Wo(t,e,a,l),a!==null&&(Ke(a,t,l),c_(a,e,l)))}function u_(t,e,a){var l=an();ir(t,e,a,l)}function ir(t,e,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bl(t))o_(e,o);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=e.lastRenderedReducer,f!==null))try{var g=e.lastRenderedState,E=f(g,a);if(o.hasEagerState=!0,o.eagerState=E,Ze(E,g))return ml(t,e,o,0),Yt===null&&gl(),!1}catch{}if(a=Wo(t,e,o,l),a!==null)return Ke(a,t,l),c_(a,e,l),!0}return!1}function Ic(t,e,a,l){if(l={lane:2,revertLane:pf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bl(t)){if(e)throw Error(r(479))}else e=Wo(t,a,l,2),e!==null&&Ke(e,t,2)}function Bl(t){var e=t.alternate;return t===St||e!==null&&e===St}function o_(t,e){ss=wl=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function c_(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,_d(t,a)}}var ar={readContext:Ne,use:kl,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useLayoutEffect:ie,useInsertionEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useSyncExternalStore:ie,useId:ie,useHostTransitionStatus:ie,useFormState:ie,useActionState:ie,useOptimistic:ie,useMemoCache:ie,useCacheRefresh:ie};ar.useEffectEvent=ie;var f_={readContext:Ne,use:kl,useCallback:function(t,e){return Ue().memoizedState=[t,e===void 0?null:e],t},useContext:Ne,useEffect:Yp,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Il(4194308,4,Wp.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Il(4194308,4,t,e)},useInsertionEffect:function(t,e){Il(4,2,t,e)},useMemo:function(t,e){var a=Ue();e=e===void 0?null:e;var l=t();if(va){xi(!0);try{t()}finally{xi(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=Ue();if(a!==void 0){var o=a(e);if(va){xi(!0);try{a(e)}finally{xi(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=Ub.bind(null,St,t),[l.memoizedState,t]},useRef:function(t){var e=Ue();return t={current:t},e.memoizedState=t},useState:function(t){t=xc(t);var e=t.queue,a=u_.bind(null,St,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Lc,useDeferredValue:function(t,e){var a=Ue();return Mc(a,t,e)},useTransition:function(){var t=xc(!1);return t=i_.bind(null,St,t.queue,!0,!1),Ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=St,o=Ue();if(Ut){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Yt===null)throw Error(r(349));(Lt&127)!==0||Mp(l,e,a)}o.memoizedState=a;var f={value:a,getSnapshot:e};return o.queue=f,Yp(Up.bind(null,l,f,t),[t]),l.flags|=2048,ls(9,{destroy:void 0},kp.bind(null,l,f,a,e),null),a},useId:function(){var t=Ue(),e=Yt.identifierPrefix;if(Ut){var a=Hn,l=Gn;a=(l&~(1<<32-Qe(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Ll++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=Rb++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Uc,useFormState:Hp,useActionState:Hp,useOptimistic:function(t){var e=Ue();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Ic.bind(null,St,!0,a),a.dispatch=e,[t,e]},useMemoCache:Oc,useCacheRefresh:function(){return Ue().memoizedState=kb.bind(null,St)},useEffectEvent:function(t){var e=Ue(),a={impl:t};return e.memoizedState=a,function(){if((Dt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},zc={readContext:Ne,use:kl,useCallback:t_,useContext:Ne,useEffect:wc,useImperativeHandle:Jp,useInsertionEffect:Qp,useLayoutEffect:Zp,useMemo:e_,useReducer:Ul,useRef:Vp,useState:function(){return Ul(oi)},useDebugValue:Lc,useDeferredValue:function(t,e){var a=oe();return n_(a,Kt.memoizedState,t,e)},useTransition:function(){var t=Ul(oi)[0],e=oe().memoizedState;return[typeof t=="boolean"?t:nr(t),e]},useSyncExternalStore:Lp,useId:r_,useHostTransitionStatus:Uc,useFormState:$p,useActionState:$p,useOptimistic:function(t,e){var a=oe();return Bp(a,Kt,t,e)},useMemoCache:Oc,useCacheRefresh:l_};zc.useEffectEvent=Xp;var h_={readContext:Ne,use:kl,useCallback:t_,useContext:Ne,useEffect:wc,useImperativeHandle:Jp,useInsertionEffect:Qp,useLayoutEffect:Zp,useMemo:e_,useReducer:Rc,useRef:Vp,useState:function(){return Rc(oi)},useDebugValue:Lc,useDeferredValue:function(t,e){var a=oe();return Kt===null?Mc(a,t,e):n_(a,Kt.memoizedState,t,e)},useTransition:function(){var t=Rc(oi)[0],e=oe().memoizedState;return[typeof t=="boolean"?t:nr(t),e]},useSyncExternalStore:Lp,useId:r_,useHostTransitionStatus:Uc,useFormState:Fp,useActionState:Fp,useOptimistic:function(t,e){var a=oe();return Kt!==null?Bp(a,Kt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Oc,useCacheRefresh:l_};h_.useEffectEvent=Xp;function Bc(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:v({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var jc={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=an(),o=zi(l);o.payload=e,a!=null&&(o.callback=a),e=Bi(t,o,l),e!==null&&(Ke(e,t,l),Ws(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=an(),o=zi(l);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=Bi(t,o,l),e!==null&&(Ke(e,t,l),Ws(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=an(),l=zi(a);l.tag=2,e!=null&&(l.callback=e),e=Bi(t,l,a),e!==null&&(Ke(e,t,a),Ws(e,t,a))}};function d_(t,e,a,l,o,f,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,f,g):e.prototype&&e.prototype.isPureReactComponent?!$s(a,l)||!$s(o,f):!0}function p_(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&jc.enqueueReplaceState(e,e.state,null)}function Ea(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=v({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}function __(t){_l(t)}function g_(t){console.error(t)}function m_(t){_l(t)}function jl(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function y_(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Dc(t,e,a){return a=zi(a),a.tag=3,a.payload={element:null},a.callback=function(){jl(t,e)},a}function v_(t){return t=zi(t),t.tag=3,t}function E_(t,e,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;t.payload=function(){return o(f)},t.callback=function(){y_(e,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){y_(e,a,l),typeof o!="function"&&(Hi===null?Hi=new Set([this]):Hi.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Ib(t,e,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Ja(e,a,o,!0),a=Je.current,a!==null){switch(a.tag){case 31:case 13:return bn===null?Ql():a.alternate===null&&ae===0&&(ae=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Ol?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),ff(t,l,o)),!1;case 22:return a.flags|=65536,l===Ol?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),ff(t,l,o)),!1}throw Error(r(435,a.tag))}return ff(t,l,o),Ql(),!1}if(Ut)return e=Je.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==ac&&(t=Error(r(422),{cause:l}),Vs(mn(t,a)))):(l!==ac&&(e=Error(r(423),{cause:l}),Vs(mn(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=mn(l,a),o=Dc(t.stateNode,l,o),_c(t,o),ae!==4&&(ae=2)),!1;var f=Error(r(520),{cause:l});if(f=mn(f,a),hr===null?hr=[f]:hr.push(f),ae!==4&&(ae=2),e===null)return!0;l=mn(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=Dc(a.stateNode,l,t),_c(a,t),!1;case 1:if(e=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Hi===null||!Hi.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=v_(o),E_(o,t,a,l),_c(a,o),!1}a=a.return}while(a!==null);return!1}var Pc=Error(r(461)),de=!1;function Re(t,e,a,l){e.child=t===null?Ap(e,null,a,l):ya(e,t.child,a,l)}function b_(t,e,a,l,o){a=a.render;var f=e.ref;if("ref"in l){var g={};for(var E in l)E!=="ref"&&(g[E]=l[E])}else g=l;return pa(e),l=bc(t,e,a,g,f,o),E=Tc(),t!==null&&!de?(Sc(t,e,o),ci(t,e,o)):(Ut&&E&&nc(e),e.flags|=1,Re(t,e,l,o),e.child)}function T_(t,e,a,l,o){if(t===null){var f=a.type;return typeof f=="function"&&!Jo(f)&&f.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=f,S_(t,e,f,l,o)):(t=vl(a.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(f=t.child,!Yc(t,o)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:$s,a(g,l)&&t.ref===e.ref)return ci(t,e,o)}return e.flags|=1,t=ai(f,l),t.ref=e.ref,t.return=e,e.child=t}function S_(t,e,a,l,o){if(t!==null){var f=t.memoizedProps;if($s(f,l)&&t.ref===e.ref)if(de=!1,e.pendingProps=l=f,Yc(t,o))(t.flags&131072)!==0&&(de=!0);else return e.lanes=t.lanes,ci(t,e,o)}return qc(t,e,a,l,o)}function A_(t,e,a,l){var o=l.children,f=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~f}else l=0,e.child=null;return O_(t,e,f,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Sl(e,f!==null?f.cachePool:null),f!==null?Rp(e,f):mc(),xp(e);else return l=e.lanes=536870912,O_(t,e,f!==null?f.baseLanes|a:a,a,l)}else f!==null?(Sl(e,f.cachePool),Rp(e,f),Di(),e.memoizedState=null):(t!==null&&Sl(e,null),mc(),Di());return Re(t,e,o,a),e.child}function sr(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function O_(t,e,a,l,o){var f=fc();return f=f===null?null:{parent:fe._currentValue,pool:f},e.memoizedState={baseLanes:a,cachePool:f},t!==null&&Sl(e,null),mc(),xp(e),t!==null&&Ja(t,e,l,!0),e.childLanes=o,null}function Dl(t,e){return e=ql({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function N_(t,e,a){return ya(e,t.child,null,a),t=Dl(e,e.pendingProps),t.flags|=2,tn(e),e.memoizedState=null,t}function zb(t,e,a){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ut){if(l.mode==="hidden")return t=Dl(e,l),e.lanes=536870912,sr(null,t);if(vc(e),(t=Zt)?(t=jg(t,En),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Li!==null?{id:Gn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},a=op(t),a.return=e,e.child=a,Oe=e,Zt=null)):t=null,t===null)throw ki(e);return e.lanes=536870912,null}return Dl(e,l)}var f=t.memoizedState;if(f!==null){var g=f.dehydrated;if(vc(e),o)if(e.flags&256)e.flags&=-257,e=N_(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(de||Ja(t,e,a,!1),o=(a&t.childLanes)!==0,de||o){if(l=Yt,l!==null&&(g=gd(l,a),g!==0&&g!==f.retryLane))throw f.retryLane=g,ca(t,g),Ke(l,t,g),Pc;Ql(),e=N_(t,e,a)}else t=f.treeContext,Zt=Tn(g.nextSibling),Oe=e,Ut=!0,Mi=null,En=!1,t!==null&&hp(e,t),e=Dl(e,l),e.flags|=4096;return e}return t=ai(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Pl(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function qc(t,e,a,l,o){return pa(e),a=bc(t,e,a,l,void 0,o),l=Tc(),t!==null&&!de?(Sc(t,e,o),ci(t,e,o)):(Ut&&l&&nc(e),e.flags|=1,Re(t,e,a,o),e.child)}function R_(t,e,a,l,o,f){return pa(e),e.updateQueue=null,a=wp(e,l,a,o),Cp(t),l=Tc(),t!==null&&!de?(Sc(t,e,f),ci(t,e,f)):(Ut&&l&&nc(e),e.flags|=1,Re(t,e,a,f),e.child)}function x_(t,e,a,l,o){if(pa(e),e.stateNode===null){var f=Xa,g=a.contextType;typeof g=="object"&&g!==null&&(f=Ne(g)),f=new a(l,f),e.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=jc,e.stateNode=f,f._reactInternals=e,f=e.stateNode,f.props=l,f.state=e.memoizedState,f.refs={},dc(e),g=a.contextType,f.context=typeof g=="object"&&g!==null?Ne(g):Xa,f.state=e.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Bc(e,a,g,l),f.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&jc.enqueueReplaceState(f,f.state,null),tr(e,l,f,o),Js(),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){f=e.stateNode;var E=e.memoizedProps,x=Ea(a,E);f.props=x;var D=f.context,V=a.contextType;g=Xa,typeof V=="object"&&V!==null&&(g=Ne(V));var X=a.getDerivedStateFromProps;V=typeof X=="function"||typeof f.getSnapshotBeforeUpdate=="function",E=e.pendingProps!==E,V||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(E||D!==g)&&p_(e,f,l,g),Ii=!1;var G=e.memoizedState;f.state=G,tr(e,l,f,o),Js(),D=e.memoizedState,E||G!==D||Ii?(typeof X=="function"&&(Bc(e,a,X,l),D=e.memoizedState),(x=Ii||d_(e,a,x,l,G,D,g))?(V||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(e.flags|=4194308)):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=D),f.props=l,f.state=D,f.context=g,l=x):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{f=e.stateNode,pc(t,e),g=e.memoizedProps,V=Ea(a,g),f.props=V,X=e.pendingProps,G=f.context,D=a.contextType,x=Xa,typeof D=="object"&&D!==null&&(x=Ne(D)),E=a.getDerivedStateFromProps,(D=typeof E=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==X||G!==x)&&p_(e,f,l,x),Ii=!1,G=e.memoizedState,f.state=G,tr(e,l,f,o),Js();var H=e.memoizedState;g!==X||G!==H||Ii||t!==null&&t.dependencies!==null&&bl(t.dependencies)?(typeof E=="function"&&(Bc(e,a,E,l),H=e.memoizedState),(V=Ii||d_(e,a,V,l,G,H,x)||t!==null&&t.dependencies!==null&&bl(t.dependencies))?(D||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,H,x),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,H,x)),typeof f.componentDidUpdate=="function"&&(e.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===t.memoizedProps&&G===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&G===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=H),f.props=l,f.state=H,f.context=x,l=V):(typeof f.componentDidUpdate!="function"||g===t.memoizedProps&&G===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&G===t.memoizedState||(e.flags|=1024),l=!1)}return f=l,Pl(t,e),l=(e.flags&128)!==0,f||l?(f=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),e.flags|=1,t!==null&&l?(e.child=ya(e,t.child,null,o),e.child=ya(e,null,a,o)):Re(t,e,a,o),e.memoizedState=f.state,t=e.child):t=ci(t,e,o),t}function C_(t,e,a,l){return ha(),e.flags|=256,Re(t,e,a,l),e.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(t){return{baseLanes:t,cachePool:yp()}}function $c(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=nn),t}function w_(t,e,a){var l=e.pendingProps,o=!1,f=(e.flags&128)!==0,g;if((g=f)||(g=t!==null&&t.memoizedState===null?!1:(ue.current&2)!==0),g&&(o=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ut){if(o?ji(e):Di(),(t=Zt)?(t=jg(t,En),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Li!==null?{id:Gn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},a=op(t),a.return=e,e.child=a,Oe=e,Zt=null)):t=null,t===null)throw ki(e);return Rf(t)?e.lanes=32:e.lanes=536870912,null}var E=l.children;return l=l.fallback,o?(Di(),o=e.mode,E=ql({mode:"hidden",children:E},o),l=fa(l,o,a,null),E.return=e,l.return=e,E.sibling=l,e.child=E,l=e.child,l.memoizedState=Hc(a),l.childLanes=$c(t,g,a),e.memoizedState=Gc,sr(null,l)):(ji(e),Kc(e,E))}var x=t.memoizedState;if(x!==null&&(E=x.dehydrated,E!==null)){if(f)e.flags&256?(ji(e),e.flags&=-257,e=Fc(t,e,a)):e.memoizedState!==null?(Di(),e.child=t.child,e.flags|=128,e=null):(Di(),E=l.fallback,o=e.mode,l=ql({mode:"visible",children:l.children},o),E=fa(E,o,a,null),E.flags|=2,l.return=e,E.return=e,l.sibling=E,e.child=l,ya(e,t.child,null,a),l=e.child,l.memoizedState=Hc(a),l.childLanes=$c(t,g,a),e.memoizedState=Gc,e=sr(null,l));else if(ji(e),Rf(E)){if(g=E.nextSibling&&E.nextSibling.dataset,g)var D=g.dgst;g=D,l=Error(r(419)),l.stack="",l.digest=g,Vs({value:l,source:null,stack:null}),e=Fc(t,e,a)}else if(de||Ja(t,e,a,!1),g=(a&t.childLanes)!==0,de||g){if(g=Yt,g!==null&&(l=gd(g,a),l!==0&&l!==x.retryLane))throw x.retryLane=l,ca(t,l),Ke(g,t,l),Pc;Nf(E)||Ql(),e=Fc(t,e,a)}else Nf(E)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,Zt=Tn(E.nextSibling),Oe=e,Ut=!0,Mi=null,En=!1,t!==null&&hp(e,t),e=Kc(e,l.children),e.flags|=4096);return e}return o?(Di(),E=l.fallback,o=e.mode,x=t.child,D=x.sibling,l=ai(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&65011712,D!==null?E=ai(D,E):(E=fa(E,o,a,null),E.flags|=2),E.return=e,l.return=e,l.sibling=E,e.child=l,sr(null,l),l=e.child,E=t.child.memoizedState,E===null?E=Hc(a):(o=E.cachePool,o!==null?(x=fe._currentValue,o=o.parent!==x?{parent:x,pool:x}:o):o=yp(),E={baseLanes:E.baseLanes|a,cachePool:o}),l.memoizedState=E,l.childLanes=$c(t,g,a),e.memoizedState=Gc,sr(t.child,l)):(ji(e),a=t.child,t=a.sibling,a=ai(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=a,e.memoizedState=null,a)}function Kc(t,e){return e=ql({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ql(t,e){return t=We(22,t,null,e),t.lanes=0,t}function Fc(t,e,a){return ya(e,t.child,null,a),t=Kc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function L_(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),lc(t.return,e,a)}function Vc(t,e,a,l,o,f){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:f}:(g.isBackwards=e,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=a,g.tailMode=o,g.treeForkCount=f)}function M_(t,e,a){var l=e.pendingProps,o=l.revealOrder,f=l.tail;l=l.children;var g=ue.current,E=(g&2)!==0;if(E?(g=g&1|2,e.flags|=128):g&=1,$(ue,g),Re(t,e,l,a),l=Ut?Fs:0,!E&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&L_(t,a,e);else if(t.tag===19)L_(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&Cl(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),Vc(e,!1,o,a,f,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Cl(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}Vc(e,!0,a,null,f,l);break;case"together":Vc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function ci(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Gi|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Ja(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=ai(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=ai(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Yc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&bl(t)))}function Bb(t,e,a){switch(e.tag){case 3:ct(e,e.stateNode.containerInfo),Ui(e,fe,t.memoizedState.cache),ha();break;case 27:case 5:Nt(e);break;case 4:ct(e,e.stateNode.containerInfo);break;case 10:Ui(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,vc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(ji(e),e.flags|=128,null):(a&e.child.childLanes)!==0?w_(t,e,a):(ji(e),t=ci(t,e,a),t!==null?t.sibling:null);ji(e);break;case 19:var o=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Ja(t,e,a,!1),l=(a&e.childLanes)!==0),o){if(l)return M_(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$(ue,ue.current),l)break;return null;case 22:return e.lanes=0,A_(t,e,a,e.pendingProps);case 24:Ui(e,fe,t.memoizedState.cache)}return ci(t,e,a)}function k_(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)de=!0;else{if(!Yc(t,a)&&(e.flags&128)===0)return de=!1,Bb(t,e,a);de=(t.flags&131072)!==0}else de=!1,Ut&&(e.flags&1048576)!==0&&fp(e,Fs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ga(e.elementType),e.type=t,typeof t=="function")Jo(t)?(l=Ea(t,l),e.tag=1,e=x_(null,e,t,l,a)):(e.tag=0,e=qc(null,e,t,l,a));else{if(t!=null){var o=t.$$typeof;if(o===z){e.tag=11,e=b_(null,e,t,l,a);break t}else if(o===C){e.tag=14,e=T_(null,e,t,l,a);break t}}throw e=at(t)||t,Error(r(306,e,""))}}return e;case 0:return qc(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,o=Ea(l,e.pendingProps),x_(t,e,l,o,a);case 3:t:{if(ct(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var f=e.memoizedState;o=f.element,pc(t,e),tr(e,l,null,a);var g=e.memoizedState;if(l=g.cache,Ui(e,fe,l),l!==f.cache&&uc(e,[fe],a,!0),Js(),l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=f,e.memoizedState=f,e.flags&256){e=C_(t,e,l,a);break t}else if(l!==o){o=mn(Error(r(424)),e),Vs(o),e=C_(t,e,l,a);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Zt=Tn(t.firstChild),Oe=e,Ut=!0,Mi=null,En=!0,a=Ap(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ha(),l===o){e=ci(t,e,a);break t}Re(t,e,l,a)}e=e.child}return e;case 26:return Pl(t,e),t===null?(a=$g(e.type,null,e.pendingProps,null))?e.memoizedState=a:Ut||(a=e.type,t=e.pendingProps,l=iu(st.current).createElement(a),l[Ae]=e,l[De]=t,xe(l,a,t),be(l),e.stateNode=l):e.memoizedState=$g(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Nt(e),t===null&&Ut&&(l=e.stateNode=qg(e.type,e.pendingProps,st.current),Oe=e,En=!0,o=Zt,Vi(e.type)?(xf=o,Zt=Tn(l.firstChild)):Zt=o),Re(t,e,e.pendingProps.children,a),Pl(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ut&&((o=l=Zt)&&(l=dT(l,e.type,e.pendingProps,En),l!==null?(e.stateNode=l,Oe=e,Zt=Tn(l.firstChild),En=!1,o=!0):o=!1),o||ki(e)),Nt(e),o=e.type,f=e.pendingProps,g=t!==null?t.memoizedProps:null,l=f.children,Sf(o,f)?l=null:g!==null&&Sf(o,g)&&(e.flags|=32),e.memoizedState!==null&&(o=bc(t,e,xb,null,null,a),Er._currentValue=o),Pl(t,e),Re(t,e,l,a),e.child;case 6:return t===null&&Ut&&((t=a=Zt)&&(a=pT(a,e.pendingProps,En),a!==null?(e.stateNode=a,Oe=e,Zt=null,t=!0):t=!1),t||ki(e)),null;case 13:return w_(t,e,a);case 4:return ct(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ya(e,null,l,a):Re(t,e,l,a),e.child;case 11:return b_(t,e,e.type,e.pendingProps,a);case 7:return Re(t,e,e.pendingProps,a),e.child;case 8:return Re(t,e,e.pendingProps.children,a),e.child;case 12:return Re(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Ui(e,e.type,l.value),Re(t,e,l.children,a),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,pa(e),o=Ne(o),l=l(o),e.flags|=1,Re(t,e,l,a),e.child;case 14:return T_(t,e,e.type,e.pendingProps,a);case 15:return S_(t,e,e.type,e.pendingProps,a);case 19:return M_(t,e,a);case 31:return zb(t,e,a);case 22:return A_(t,e,a,e.pendingProps);case 24:return pa(e),l=Ne(fe),t===null?(o=fc(),o===null&&(o=Yt,f=oc(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),e.memoizedState={parent:l,cache:o},dc(e),Ui(e,fe,o)):((t.lanes&a)!==0&&(pc(t,e),tr(e,null,null,a),Js()),o=t.memoizedState,f=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Ui(e,fe,l)):(l=f.cache,Ui(e,fe,l),l!==o.cache&&uc(e,[fe],a,!0))),Re(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function fi(t){t.flags|=4}function Xc(t,e,a,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(rg())t.flags|=8192;else throw ma=Ol,hc}else t.flags&=-16777217}function U_(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Xg(e))if(rg())t.flags|=8192;else throw ma=Ol,hc}function Gl(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?dd():536870912,t.lanes|=e,fs|=e)}function rr(t,e){if(!Ut)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Wt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function jb(t,e,a){var l=e.pendingProps;switch(ic(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(e),null;case 1:return Wt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),li(fe),rt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Wa(e)?fi(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,sc())),Wt(e),null;case 26:var o=e.type,f=e.memoizedState;return t===null?(fi(e),f!==null?(Wt(e),U_(e,f)):(Wt(e),Xc(e,o,null,l,a))):f?f!==t.memoizedState?(fi(e),Wt(e),U_(e,f)):(Wt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&fi(e),Wt(e),Xc(e,o,t,l,a)),null;case 27:if(gt(e),a=st.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&fi(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Wt(e),null}t=J.current,Wa(e)?dp(e):(t=qg(o,l,a),e.stateNode=t,fi(e))}return Wt(e),null;case 5:if(gt(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&fi(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Wt(e),null}if(f=J.current,Wa(e))dp(e);else{var g=iu(st.current);switch(f){case 1:f=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:f=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":f=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":f=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":f=g.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}f[Ae]=e,f[De]=l;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=f;t:switch(xe(f,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&fi(e)}}return Wt(e),Xc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&fi(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=st.current,Wa(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,o=Oe,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[Ae]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||wg(t.nodeValue,a)),t||ki(e,!0)}else t=iu(t).createTextNode(l),t[Ae]=e,e.stateNode=t}return Wt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Wa(e),a!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Ae]=e}else ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Wt(e),t=!1}else a=sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(tn(e),e):(tn(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Wt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Wa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[Ae]=e}else ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Wt(e),o=!1}else o=sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(tn(e),e):(tn(e),null)}return tn(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Gl(e,e.updateQueue),Wt(e),null);case 4:return rt(),t===null&&yf(e.stateNode.containerInfo),Wt(e),null;case 10:return li(e.type),Wt(e),null;case 19:if(j(ue),l=e.memoizedState,l===null)return Wt(e),null;if(o=(e.flags&128)!==0,f=l.rendering,f===null)if(o)rr(l,!1);else{if(ae!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(f=Cl(t),f!==null){for(e.flags|=128,rr(l,!1),t=f.updateQueue,e.updateQueue=t,Gl(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)up(a,t),a=a.sibling;return $(ue,ue.current&1|2),Ut&&si(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Pt()>Vl&&(e.flags|=128,o=!0,rr(l,!1),e.lanes=4194304)}else{if(!o)if(t=Cl(f),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Gl(e,t),rr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Ut)return Wt(e),null}else 2*Pt()-l.renderingStartTime>Vl&&a!==536870912&&(e.flags|=128,o=!0,rr(l,!1),e.lanes=4194304);l.isBackwards?(f.sibling=e.child,e.child=f):(t=l.last,t!==null?t.sibling=f:e.child=f,l.last=f)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Pt(),t.sibling=null,a=ue.current,$(ue,o?a&1|2:a&1),Ut&&si(e,l.treeForkCount),t):(Wt(e),null);case 22:case 23:return tn(e),yc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Wt(e),e.subtreeFlags&6&&(e.flags|=8192)):Wt(e),a=e.updateQueue,a!==null&&Gl(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&j(_a),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),li(fe),Wt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Db(t,e){switch(ic(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return li(fe),rt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return gt(e),null;case 31:if(e.memoizedState!==null){if(tn(e),e.alternate===null)throw Error(r(340));ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(tn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(ue),null;case 4:return rt(),null;case 10:return li(e.type),null;case 22:case 23:return tn(e),yc(),t!==null&&j(_a),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return li(fe),null;case 25:return null;default:return null}}function I_(t,e){switch(ic(e),e.tag){case 3:li(fe),rt();break;case 26:case 27:case 5:gt(e);break;case 4:rt();break;case 31:e.memoizedState!==null&&tn(e);break;case 13:tn(e);break;case 19:j(ue);break;case 10:li(e.type);break;case 22:case 23:tn(e),yc(),t!==null&&j(_a);break;case 24:li(fe)}}function lr(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&t)===t){l=void 0;var f=a.create,g=a.inst;l=f(),g.destroy=l}a=a.next}while(a!==o)}}catch(E){Ht(e,e.return,E)}}function Pi(t,e,a){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&t)===t){var g=l.inst,E=g.destroy;if(E!==void 0){g.destroy=void 0,o=e;var x=a,D=E;try{D()}catch(V){Ht(o,x,V)}}}l=l.next}while(l!==f)}}catch(V){Ht(e,e.return,V)}}function z_(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{Np(e,a)}catch(l){Ht(t,t.return,l)}}}function B_(t,e,a){a.props=Ea(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Ht(t,e,l)}}function ur(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(o){Ht(t,e,o)}}function $n(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Ht(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ht(t,e,o)}else a.current=null}function j_(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Ht(t,t.return,o)}}function Qc(t,e,a){try{var l=t.stateNode;lT(l,t.type,a,e),l[De]=e}catch(o){Ht(t,t.return,o)}}function D_(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Vi(t.type)||t.tag===4}function Zc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||D_(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Vi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Wc(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=ni));else if(l!==4&&(l===27&&Vi(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(Wc(t,e,a),t=t.sibling;t!==null;)Wc(t,e,a),t=t.sibling}function Hl(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&Vi(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Hl(t,e,a),t=t.sibling;t!==null;)Hl(t,e,a),t=t.sibling}function P_(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);xe(e,l,a),e[Ae]=t,e[De]=a}catch(f){Ht(t,t.return,f)}}var hi=!1,pe=!1,Jc=!1,q_=typeof WeakSet=="function"?WeakSet:Set,Te=null;function Pb(t,e){if(t=t.containerInfo,bf=cu,t=Jd(t),Fo(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break t}var g=0,E=-1,x=-1,D=0,V=0,X=t,G=null;e:for(;;){for(var H;X!==a||o!==0&&X.nodeType!==3||(E=g+o),X!==f||l!==0&&X.nodeType!==3||(x=g+l),X.nodeType===3&&(g+=X.nodeValue.length),(H=X.firstChild)!==null;)G=X,X=H;for(;;){if(X===t)break e;if(G===a&&++D===o&&(E=g),G===f&&++V===l&&(x=g),(H=X.nextSibling)!==null)break;X=G,G=X.parentNode}X=H}a=E===-1||x===-1?null:{start:E,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Tf={focusedElem:t,selectionRange:a},cu=!1,Te=e;Te!==null;)if(e=Te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Te=t;else for(;Te!==null;){switch(e=Te,f=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)o=t[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&f!==null){t=void 0,a=e,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var ut=Ea(a.type,o);t=l.getSnapshotBeforeUpdate(ut,f),l.__reactInternalSnapshotBeforeUpdate=t}catch(mt){Ht(a,a.return,mt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Of(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Of(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Te=t;break}Te=e.return}}function G_(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pi(t,a),l&4&&lr(5,a);break;case 1:if(pi(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(g){Ht(a,a.return,g)}else{var o=Ea(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){Ht(a,a.return,g)}}l&64&&z_(a),l&512&&ur(a,a.return);break;case 3:if(pi(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Np(t,e)}catch(g){Ht(a,a.return,g)}}break;case 27:e===null&&l&4&&P_(a);case 26:case 5:pi(t,a),e===null&&l&4&&j_(a),l&512&&ur(a,a.return);break;case 12:pi(t,a);break;case 31:pi(t,a),l&4&&K_(t,a);break;case 13:pi(t,a),l&4&&F_(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Xb.bind(null,a),_T(t,a))));break;case 22:if(l=a.memoizedState!==null||hi,!l){e=e!==null&&e.memoizedState!==null||pe,o=hi;var f=pe;hi=l,(pe=e)&&!f?_i(t,a,(a.subtreeFlags&8772)!==0):pi(t,a),hi=o,pe=f}break;case 30:break;default:pi(t,a)}}function H_(t){var e=t.alternate;e!==null&&(t.alternate=null,H_(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Co(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var te=null,qe=!1;function di(t,e,a){for(a=a.child;a!==null;)$_(t,e,a),a=a.sibling}function $_(t,e,a){if(Le&&typeof Le.onCommitFiberUnmount=="function")try{Le.onCommitFiberUnmount(wn,a)}catch{}switch(a.tag){case 26:pe||$n(a,e),di(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pe||$n(a,e);var l=te,o=qe;Vi(a.type)&&(te=a.stateNode,qe=!1),di(t,e,a),mr(a.stateNode),te=l,qe=o;break;case 5:pe||$n(a,e);case 6:if(l=te,o=qe,te=null,di(t,e,a),te=l,qe=o,te!==null)if(qe)try{(te.nodeType===9?te.body:te.nodeName==="HTML"?te.ownerDocument.body:te).removeChild(a.stateNode)}catch(f){Ht(a,e,f)}else try{te.removeChild(a.stateNode)}catch(f){Ht(a,e,f)}break;case 18:te!==null&&(qe?(t=te,zg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),vs(t)):zg(te,a.stateNode));break;case 4:l=te,o=qe,te=a.stateNode.containerInfo,qe=!0,di(t,e,a),te=l,qe=o;break;case 0:case 11:case 14:case 15:Pi(2,a,e),pe||Pi(4,a,e),di(t,e,a);break;case 1:pe||($n(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&B_(a,e,l)),di(t,e,a);break;case 21:di(t,e,a);break;case 22:pe=(l=pe)||a.memoizedState!==null,di(t,e,a),pe=l;break;default:di(t,e,a)}}function K_(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vs(t)}catch(a){Ht(e,e.return,a)}}}function F_(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vs(t)}catch(a){Ht(e,e.return,a)}}function qb(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new q_),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new q_),e;default:throw Error(r(435,t.tag))}}function $l(t,e){var a=qb(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var o=Qb.bind(null,t,l);l.then(o,o)}})}function Ge(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=t,g=e,E=g;t:for(;E!==null;){switch(E.tag){case 27:if(Vi(E.type)){te=E.stateNode,qe=!1;break t}break;case 5:te=E.stateNode,qe=!1;break t;case 3:case 4:te=E.stateNode.containerInfo,qe=!0;break t}E=E.return}if(te===null)throw Error(r(160));$_(f,g,o),te=null,qe=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)V_(e,t),e=e.sibling}var Mn=null;function V_(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ge(e,t),He(t),l&4&&(Pi(3,t,t.return),lr(3,t),Pi(5,t,t.return));break;case 1:Ge(e,t),He(t),l&512&&(pe||a===null||$n(a,a.return)),l&64&&hi&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Mn;if(Ge(e,t),He(t),l&512&&(pe||a===null||$n(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Is]||f[Ae]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),xe(f,l,a),f[Ae]=t,be(f),l=f;break t;case"link":var g=Vg("link","href",o).get(l+(a.href||""));if(g){for(var E=0;E<g.length;E++)if(f=g[E],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(E,1);break e}}f=o.createElement(l),xe(f,l,a),o.head.appendChild(f);break;case"meta":if(g=Vg("meta","content",o).get(l+(a.content||""))){for(E=0;E<g.length;E++)if(f=g[E],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(E,1);break e}}f=o.createElement(l),xe(f,l,a),o.head.appendChild(f);break;default:throw Error(r(468,l))}f[Ae]=t,be(f),l=f}t.stateNode=l}else Yg(o,t.type,t.stateNode);else t.stateNode=Fg(o,l,t.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Yg(o,t.type,t.stateNode):Fg(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Qc(t,t.memoizedProps,a.memoizedProps)}break;case 27:Ge(e,t),He(t),l&512&&(pe||a===null||$n(a,a.return)),a!==null&&l&4&&Qc(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Ge(e,t),He(t),l&512&&(pe||a===null||$n(a,a.return)),t.flags&32){o=t.stateNode;try{Ga(o,"")}catch(ut){Ht(t,t.return,ut)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,Qc(t,o,a!==null?a.memoizedProps:o)),l&1024&&(Jc=!0);break;case 6:if(Ge(e,t),He(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(ut){Ht(t,t.return,ut)}}break;case 3:if(ru=null,o=Mn,Mn=au(e.containerInfo),Ge(e,t),Mn=o,He(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{vs(e.containerInfo)}catch(ut){Ht(t,t.return,ut)}Jc&&(Jc=!1,Y_(t));break;case 4:l=Mn,Mn=au(t.stateNode.containerInfo),Ge(e,t),He(t),Mn=l;break;case 12:Ge(e,t),He(t);break;case 31:Ge(e,t),He(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$l(t,l)));break;case 13:Ge(e,t),He(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Fl=Pt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$l(t,l)));break;case 22:o=t.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,D=hi,V=pe;if(hi=D||o,pe=V||x,Ge(e,t),pe=V,hi=D,He(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||x||hi||pe||ba(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){x=a=e;try{if(f=x.stateNode,o)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{E=x.stateNode;var X=x.memoizedProps.style,G=X!=null&&X.hasOwnProperty("display")?X.display:null;E.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(ut){Ht(x,x.return,ut)}}}else if(e.tag===6){if(a===null){x=e;try{x.stateNode.nodeValue=o?"":x.memoizedProps}catch(ut){Ht(x,x.return,ut)}}}else if(e.tag===18){if(a===null){x=e;try{var H=x.stateNode;o?Bg(H,!0):Bg(x.stateNode,!1)}catch(ut){Ht(x,x.return,ut)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,$l(t,a))));break;case 19:Ge(e,t),He(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$l(t,l)));break;case 30:break;case 21:break;default:Ge(e,t),He(t)}}function He(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(D_(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,f=Zc(t);Hl(t,f,o);break;case 5:var g=a.stateNode;a.flags&32&&(Ga(g,""),a.flags&=-33);var E=Zc(t);Hl(t,E,g);break;case 3:case 4:var x=a.stateNode.containerInfo,D=Zc(t);Wc(t,D,x);break;default:throw Error(r(161))}}catch(V){Ht(t,t.return,V)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Y_(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Y_(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function pi(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)G_(t,e.alternate,e),e=e.sibling}function ba(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Pi(4,e,e.return),ba(e);break;case 1:$n(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&B_(e,e.return,a),ba(e);break;case 27:mr(e.stateNode);case 26:case 5:$n(e,e.return),ba(e);break;case 22:e.memoizedState===null&&ba(e);break;case 30:ba(e);break;default:ba(e)}t=t.sibling}}function _i(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,f=e,g=f.flags;switch(f.tag){case 0:case 11:case 15:_i(o,f,a),lr(4,f);break;case 1:if(_i(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Ht(l,l.return,D)}if(l=f,o=l.updateQueue,o!==null){var E=l.stateNode;try{var x=o.shared.hiddenCallbacks;if(x!==null)for(o.shared.hiddenCallbacks=null,o=0;o<x.length;o++)Op(x[o],E)}catch(D){Ht(l,l.return,D)}}a&&g&64&&z_(f),ur(f,f.return);break;case 27:P_(f);case 26:case 5:_i(o,f,a),a&&l===null&&g&4&&j_(f),ur(f,f.return);break;case 12:_i(o,f,a);break;case 31:_i(o,f,a),a&&g&4&&K_(o,f);break;case 13:_i(o,f,a),a&&g&4&&F_(o,f);break;case 22:f.memoizedState===null&&_i(o,f,a),ur(f,f.return);break;case 30:break;default:_i(o,f,a)}e=e.sibling}}function tf(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Ys(a))}function ef(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ys(t))}function kn(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)X_(t,e,a,l),e=e.sibling}function X_(t,e,a,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:kn(t,e,a,l),o&2048&&lr(9,e);break;case 1:kn(t,e,a,l);break;case 3:kn(t,e,a,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ys(t)));break;case 12:if(o&2048){kn(t,e,a,l),t=e.stateNode;try{var f=e.memoizedProps,g=f.id,E=f.onPostCommit;typeof E=="function"&&E(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(x){Ht(e,e.return,x)}}else kn(t,e,a,l);break;case 31:kn(t,e,a,l);break;case 13:kn(t,e,a,l);break;case 23:break;case 22:f=e.stateNode,g=e.alternate,e.memoizedState!==null?f._visibility&2?kn(t,e,a,l):or(t,e):f._visibility&2?kn(t,e,a,l):(f._visibility|=2,us(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&tf(g,e);break;case 24:kn(t,e,a,l),o&2048&&ef(e.alternate,e);break;default:kn(t,e,a,l)}}function us(t,e,a,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var f=t,g=e,E=a,x=l,D=g.flags;switch(g.tag){case 0:case 11:case 15:us(f,g,E,x,o),lr(8,g);break;case 23:break;case 22:var V=g.stateNode;g.memoizedState!==null?V._visibility&2?us(f,g,E,x,o):or(f,g):(V._visibility|=2,us(f,g,E,x,o)),o&&D&2048&&tf(g.alternate,g);break;case 24:us(f,g,E,x,o),o&&D&2048&&ef(g.alternate,g);break;default:us(f,g,E,x,o)}e=e.sibling}}function or(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,o=l.flags;switch(l.tag){case 22:or(a,l),o&2048&&tf(l.alternate,l);break;case 24:or(a,l),o&2048&&ef(l.alternate,l);break;default:or(a,l)}e=e.sibling}}var cr=8192;function os(t,e,a){if(t.subtreeFlags&cr)for(t=t.child;t!==null;)Q_(t,e,a),t=t.sibling}function Q_(t,e,a){switch(t.tag){case 26:os(t,e,a),t.flags&cr&&t.memoizedState!==null&&RT(a,Mn,t.memoizedState,t.memoizedProps);break;case 5:os(t,e,a);break;case 3:case 4:var l=Mn;Mn=au(t.stateNode.containerInfo),os(t,e,a),Mn=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=cr,cr=16777216,os(t,e,a),cr=l):os(t,e,a));break;default:os(t,e,a)}}function Z_(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function fr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];Te=l,J_(l,t)}Z_(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)W_(t),t=t.sibling}function W_(t){switch(t.tag){case 0:case 11:case 15:fr(t),t.flags&2048&&Pi(9,t,t.return);break;case 3:fr(t);break;case 12:fr(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Kl(t)):fr(t);break;default:fr(t)}}function Kl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];Te=l,J_(l,t)}Z_(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Pi(8,e,e.return),Kl(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Kl(e));break;default:Kl(e)}t=t.sibling}}function J_(t,e){for(;Te!==null;){var a=Te;switch(a.tag){case 0:case 11:case 15:Pi(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ys(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Te=l;else t:for(a=t;Te!==null;){l=Te;var o=l.sibling,f=l.return;if(H_(l),l===a){Te=null;break t}if(o!==null){o.return=f,Te=o;break t}Te=f}}}var Gb={getCacheForType:function(t){var e=Ne(fe),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return Ne(fe).controller.signal}},Hb=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Yt=null,xt=null,Lt=0,Gt=0,en=null,qi=!1,cs=!1,nf=!1,gi=0,ae=0,Gi=0,Ta=0,af=0,nn=0,fs=0,hr=null,$e=null,sf=!1,Fl=0,tg=0,Vl=1/0,Yl=null,Hi=null,ge=0,$i=null,hs=null,mi=0,rf=0,lf=null,eg=null,dr=0,uf=null;function an(){return(Dt&2)!==0&&Lt!==0?Lt&-Lt:k.T!==null?pf():md()}function ng(){if(nn===0)if((Lt&536870912)===0||Ut){var t=nl;nl<<=1,(nl&3932160)===0&&(nl=262144),nn=t}else nn=536870912;return t=Je.current,t!==null&&(t.flags|=32),nn}function Ke(t,e,a){(t===Yt&&(Gt===2||Gt===9)||t.cancelPendingCommit!==null)&&(ds(t,0),Ki(t,Lt,nn,!1)),Us(t,a),((Dt&2)===0||t!==Yt)&&(t===Yt&&((Dt&2)===0&&(Ta|=a),ae===4&&Ki(t,Lt,nn,!1)),Kn(t))}function ig(t,e,a){if((Dt&6)!==0)throw Error(r(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||ks(t,e),o=l?Fb(t,e):cf(t,e,!0),f=l;do{if(o===0){cs&&!l&&Ki(t,e,0,!1);break}else{if(a=t.current.alternate,f&&!$b(a)){o=cf(t,e,!1),f=!1;continue}if(o===2){if(f=e,t.errorRecoveryDisabledLanes&f)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var E=t;o=hr;var x=E.current.memoizedState.isDehydrated;if(x&&(ds(E,g).flags|=256),g=cf(E,g,!1),g!==2){if(nf&&!x){E.errorRecoveryDisabledLanes|=f,Ta|=f,o=4;break t}f=$e,$e=o,f!==null&&($e===null?$e=f:$e.push.apply($e,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){ds(t,0),Ki(t,e,0,!0);break}t:{switch(l=t,f=o,f){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Ki(l,e,nn,!qi);break t;case 2:$e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=Fl+300-Pt(),10<o)){if(Ki(l,e,nn,!qi),al(l,0,!0)!==0)break t;mi=e,l.timeoutHandle=Ug(ag.bind(null,l,a,$e,Yl,sf,e,nn,Ta,fs,qi,f,"Throttled",-0,0),o);break t}ag(l,a,$e,Yl,sf,e,nn,Ta,fs,qi,f,null,-0,0)}}break}while(!0);Kn(t)}function ag(t,e,a,l,o,f,g,E,x,D,V,X,G,H){if(t.timeoutHandle=-1,X=e.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ni},Q_(e,f,X);var ut=(f&62914560)===f?Fl-Pt():(f&4194048)===f?tg-Pt():0;if(ut=xT(X,ut),ut!==null){mi=f,t.cancelPendingCommit=ut(hg.bind(null,t,e,f,a,l,o,g,E,x,V,X,null,G,H)),Ki(t,f,g,!D);return}}hg(t,e,f,a,l,o,g,E,x)}function $b(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Ze(f(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ki(t,e,a,l){e&=~af,e&=~Ta,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var f=31-Qe(o),g=1<<f;l[f]=-1,o&=~g}a!==0&&pd(t,a,e)}function Xl(){return(Dt&6)===0?(pr(0),!1):!0}function of(){if(xt!==null){if(Gt===0)var t=xt.return;else t=xt,ri=da=null,Ac(t),is=null,Qs=0,t=xt;for(;t!==null;)I_(t.alternate,t),t=t.return;xt=null}}function ds(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,cT(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),mi=0,of(),Yt=t,xt=a=ai(t.current,null),Lt=e,Gt=0,en=null,qi=!1,cs=ks(t,e),nf=!1,fs=nn=af=Ta=Gi=ae=0,$e=hr=null,sf=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-Qe(l),f=1<<o;e|=t[o],l&=~f}return gi=e,gl(),a}function sg(t,e){St=null,k.H=ar,e===ns||e===Al?(e=bp(),Gt=3):e===hc?(e=bp(),Gt=4):Gt=e===Pc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,en=e,xt===null&&(ae=1,jl(t,mn(e,t.current)))}function rg(){var t=Je.current;return t===null?!0:(Lt&4194048)===Lt?bn===null:(Lt&62914560)===Lt||(Lt&536870912)!==0?t===bn:!1}function lg(){var t=k.H;return k.H=ar,t===null?ar:t}function ug(){var t=k.A;return k.A=Gb,t}function Ql(){ae=4,qi||(Lt&4194048)!==Lt&&Je.current!==null||(cs=!0),(Gi&134217727)===0&&(Ta&134217727)===0||Yt===null||Ki(Yt,Lt,nn,!1)}function cf(t,e,a){var l=Dt;Dt|=2;var o=lg(),f=ug();(Yt!==t||Lt!==e)&&(Yl=null,ds(t,e)),e=!1;var g=ae;t:do try{if(Gt!==0&&xt!==null){var E=xt,x=en;switch(Gt){case 8:of(),g=6;break t;case 3:case 2:case 9:case 6:Je.current===null&&(e=!0);var D=Gt;if(Gt=0,en=null,ps(t,E,x,D),a&&cs){g=0;break t}break;default:D=Gt,Gt=0,en=null,ps(t,E,x,D)}}Kb(),g=ae;break}catch(V){sg(t,V)}while(!0);return e&&t.shellSuspendCounter++,ri=da=null,Dt=l,k.H=o,k.A=f,xt===null&&(Yt=null,Lt=0,gl()),g}function Kb(){for(;xt!==null;)og(xt)}function Fb(t,e){var a=Dt;Dt|=2;var l=lg(),o=ug();Yt!==t||Lt!==e?(Yl=null,Vl=Pt()+500,ds(t,e)):cs=ks(t,e);t:do try{if(Gt!==0&&xt!==null){e=xt;var f=en;e:switch(Gt){case 1:Gt=0,en=null,ps(t,e,f,1);break;case 2:case 9:if(vp(f)){Gt=0,en=null,cg(e);break}e=function(){Gt!==2&&Gt!==9||Yt!==t||(Gt=7),Kn(t)},f.then(e,e);break t;case 3:Gt=7;break t;case 4:Gt=5;break t;case 7:vp(f)?(Gt=0,en=null,cg(e)):(Gt=0,en=null,ps(t,e,f,7));break;case 5:var g=null;switch(xt.tag){case 26:g=xt.memoizedState;case 5:case 27:var E=xt;if(g?Xg(g):E.stateNode.complete){Gt=0,en=null;var x=E.sibling;if(x!==null)xt=x;else{var D=E.return;D!==null?(xt=D,Zl(D)):xt=null}break e}}Gt=0,en=null,ps(t,e,f,5);break;case 6:Gt=0,en=null,ps(t,e,f,6);break;case 8:of(),ae=6;break t;default:throw Error(r(462))}}Vb();break}catch(V){sg(t,V)}while(!0);return ri=da=null,k.H=l,k.A=o,Dt=a,xt!==null?0:(Yt=null,Lt=0,gl(),ae)}function Vb(){for(;xt!==null&&!fn();)og(xt)}function og(t){var e=k_(t.alternate,t,gi);t.memoizedProps=t.pendingProps,e===null?Zl(t):xt=e}function cg(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=R_(a,e,e.pendingProps,e.type,void 0,Lt);break;case 11:e=R_(a,e,e.pendingProps,e.type.render,e.ref,Lt);break;case 5:Ac(e);default:I_(a,e),e=xt=up(e,gi),e=k_(a,e,gi)}t.memoizedProps=t.pendingProps,e===null?Zl(t):xt=e}function ps(t,e,a,l){ri=da=null,Ac(e),is=null,Qs=0;var o=e.return;try{if(Ib(t,o,e,a,Lt)){ae=1,jl(t,mn(a,t.current)),xt=null;return}}catch(f){if(o!==null)throw xt=o,f;ae=1,jl(t,mn(a,t.current)),xt=null;return}e.flags&32768?(Ut||l===1?t=!0:cs||(Lt&536870912)!==0?t=!1:(qi=t=!0,(l===2||l===9||l===3||l===6)&&(l=Je.current,l!==null&&l.tag===13&&(l.flags|=16384))),fg(e,t)):Zl(e)}function Zl(t){var e=t;do{if((e.flags&32768)!==0){fg(e,qi);return}t=e.return;var a=jb(e.alternate,e,gi);if(a!==null){xt=a;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);ae===0&&(ae=5)}function fg(t,e){do{var a=Db(t.alternate,t);if(a!==null){a.flags&=32767,xt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=a}while(t!==null);ae=6,xt=null}function hg(t,e,a,l,o,f,g,E,x){t.cancelPendingCommit=null;do Wl();while(ge!==0);if((Dt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(f=e.lanes|e.childLanes,f|=Zo,NE(t,a,f,g,E,x),t===Yt&&(xt=Yt=null,Lt=0),hs=e,$i=t,mi=a,rf=f,lf=o,eg=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Zb(je,function(){return mg(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,o=F.p,F.p=2,g=Dt,Dt|=4;try{Pb(t,e,a)}finally{Dt=g,F.p=o,k.T=l}}ge=1,dg(),pg(),_g()}}function dg(){if(ge===1){ge=0;var t=$i,e=hs,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var l=F.p;F.p=2;var o=Dt;Dt|=4;try{V_(e,t);var f=Tf,g=Jd(t.containerInfo),E=f.focusedElem,x=f.selectionRange;if(g!==E&&E&&E.ownerDocument&&Wd(E.ownerDocument.documentElement,E)){if(x!==null&&Fo(E)){var D=x.start,V=x.end;if(V===void 0&&(V=D),"selectionStart"in E)E.selectionStart=D,E.selectionEnd=Math.min(V,E.value.length);else{var X=E.ownerDocument||document,G=X&&X.defaultView||window;if(G.getSelection){var H=G.getSelection(),ut=E.textContent.length,mt=Math.min(x.start,ut),Vt=x.end===void 0?mt:Math.min(x.end,ut);!H.extend&&mt>Vt&&(g=Vt,Vt=mt,mt=g);var U=Zd(E,mt),w=Zd(E,Vt);if(U&&w&&(H.rangeCount!==1||H.anchorNode!==U.node||H.anchorOffset!==U.offset||H.focusNode!==w.node||H.focusOffset!==w.offset)){var B=X.createRange();B.setStart(U.node,U.offset),H.removeAllRanges(),mt>Vt?(H.addRange(B),H.extend(w.node,w.offset)):(B.setEnd(w.node,w.offset),H.addRange(B))}}}}for(X=[],H=E;H=H.parentNode;)H.nodeType===1&&X.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<X.length;E++){var Y=X[E];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}cu=!!bf,Tf=bf=null}finally{Dt=o,F.p=l,k.T=a}}t.current=e,ge=2}}function pg(){if(ge===2){ge=0;var t=$i,e=hs,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var l=F.p;F.p=2;var o=Dt;Dt|=4;try{G_(t,e.alternate,e)}finally{Dt=o,F.p=l,k.T=a}}ge=3}}function _g(){if(ge===4||ge===3){ge=0,aa();var t=$i,e=hs,a=mi,l=eg;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ge=5:(ge=0,hs=$i=null,gg(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Hi=null),Ro(a),e=e.stateNode,Le&&typeof Le.onCommitFiberRoot=="function")try{Le.onCommitFiberRoot(wn,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=k.T,o=F.p,F.p=2,k.T=null;try{for(var f=t.onRecoverableError,g=0;g<l.length;g++){var E=l[g];f(E.value,{componentStack:E.stack})}}finally{k.T=e,F.p=o}}(mi&3)!==0&&Wl(),Kn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===uf?dr++:(dr=0,uf=t):dr=0,pr(0)}}function gg(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ys(e)))}function Wl(){return dg(),pg(),_g(),mg()}function mg(){if(ge!==5)return!1;var t=$i,e=rf;rf=0;var a=Ro(mi),l=k.T,o=F.p;try{F.p=32>a?32:a,k.T=null,a=lf,lf=null;var f=$i,g=mi;if(ge=0,hs=$i=null,mi=0,(Dt&6)!==0)throw Error(r(331));var E=Dt;if(Dt|=4,W_(f.current),X_(f,f.current,g,a),Dt=E,pr(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(wn,f)}catch{}return!0}finally{F.p=o,k.T=l,gg(t,e)}}function yg(t,e,a){e=mn(a,e),e=Dc(t.stateNode,e,2),t=Bi(t,e,2),t!==null&&(Us(t,2),Kn(t))}function Ht(t,e,a){if(t.tag===3)yg(t,t,a);else for(;e!==null;){if(e.tag===3){yg(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Hi===null||!Hi.has(l))){t=mn(a,t),a=v_(2),l=Bi(e,a,2),l!==null&&(E_(a,l,e,t),Us(l,2),Kn(l));break}}e=e.return}}function ff(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new Hb;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(a)||(nf=!0,o.add(a),t=Yb.bind(null,t,e,a),e.then(t,t))}function Yb(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Yt===t&&(Lt&a)===a&&(ae===4||ae===3&&(Lt&62914560)===Lt&&300>Pt()-Fl?(Dt&2)===0&&ds(t,0):af|=a,fs===Lt&&(fs=0)),Kn(t)}function vg(t,e){e===0&&(e=dd()),t=ca(t,e),t!==null&&(Us(t,e),Kn(t))}function Xb(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),vg(t,a)}function Qb(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),vg(t,a)}function Zb(t,e){return ee(t,e)}var Jl=null,_s=null,hf=!1,tu=!1,df=!1,Fi=0;function Kn(t){t!==_s&&t.next===null&&(_s===null?Jl=_s=t:_s=_s.next=t),tu=!0,hf||(hf=!0,Jb())}function pr(t,e){if(!df&&tu){df=!0;do for(var a=!1,l=Jl;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,E=l.pingedLanes;f=(1<<31-Qe(42|t)+1)-1,f&=o&~(g&~E),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Sg(l,f))}else f=Lt,f=al(l,l===Yt?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||ks(l,f)||(a=!0,Sg(l,f));l=l.next}while(a);df=!1}}function Wb(){Eg()}function Eg(){tu=hf=!1;var t=0;Fi!==0&&oT()&&(t=Fi);for(var e=Pt(),a=null,l=Jl;l!==null;){var o=l.next,f=bg(l,e);f===0?(l.next=null,a===null?Jl=o:a.next=o,o===null&&(_s=a)):(a=l,(t!==0||(f&3)!==0)&&(tu=!0)),l=o}ge!==0&&ge!==5||pr(t),Fi!==0&&(Fi=0)}function bg(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var g=31-Qe(f),E=1<<g,x=o[g];x===-1?((E&a)===0||(E&l)!==0)&&(o[g]=OE(E,e)):x<=e&&(t.expiredLanes|=E),f&=~E}if(e=Yt,a=Lt,a=al(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Gt===2||Gt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&qn(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||ks(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&qn(l),Ro(a)){case 2:case 8:a=Se;break;case 32:a=je;break;case 268435456:a=Ms;break;default:a=je}return l=Tg.bind(null,t),a=ee(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&qn(l),t.callbackPriority=2,t.callbackNode=null,2}function Tg(t,e){if(ge!==0&&ge!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Wl()&&t.callbackNode!==a)return null;var l=Lt;return l=al(t,t===Yt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(ig(t,l,e),bg(t,Pt()),t.callbackNode!=null&&t.callbackNode===a?Tg.bind(null,t):null)}function Sg(t,e){if(Wl())return null;ig(t,e,!0)}function Jb(){fT(function(){(Dt&6)!==0?ee(le,Wb):Eg()})}function pf(){if(Fi===0){var t=ts;t===0&&(t=el,el<<=1,(el&261888)===0&&(el=256)),Fi=t}return Fi}function Ag(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ul(""+t)}function Og(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function tT(t,e,a,l,o){if(e==="submit"&&a&&a.stateNode===o){var f=Ag((o[De]||null).action),g=l.submitter;g&&(e=(e=g[De]||null)?Ag(e.formAction):g.getAttribute("formAction"),e!==null&&(f=e,g=null));var E=new hl("action","action",null,l,o);t.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Fi!==0){var x=g?Og(o,g):new FormData(o);kc(a,{pending:!0,data:x,method:o.method,action:f},null,x)}}else typeof f=="function"&&(E.preventDefault(),x=g?Og(o,g):new FormData(o),kc(a,{pending:!0,data:x,method:o.method,action:f},f,x))},currentTarget:o}]})}}for(var _f=0;_f<Qo.length;_f++){var gf=Qo[_f],eT=gf.toLowerCase(),nT=gf[0].toUpperCase()+gf.slice(1);Ln(eT,"on"+nT)}Ln(np,"onAnimationEnd"),Ln(ip,"onAnimationIteration"),Ln(ap,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(yb,"onTransitionRun"),Ln(vb,"onTransitionStart"),Ln(Eb,"onTransitionCancel"),Ln(sp,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="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(" "),iT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_r));function Ng(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],o=l.event;l=l.listeners;t:{var f=void 0;if(e)for(var g=l.length-1;0<=g;g--){var E=l[g],x=E.instance,D=E.currentTarget;if(E=E.listener,x!==f&&o.isPropagationStopped())break t;f=E,o.currentTarget=D;try{f(o)}catch(V){_l(V)}o.currentTarget=null,f=x}else for(g=0;g<l.length;g++){if(E=l[g],x=E.instance,D=E.currentTarget,E=E.listener,x!==f&&o.isPropagationStopped())break t;f=E,o.currentTarget=D;try{f(o)}catch(V){_l(V)}o.currentTarget=null,f=x}}}}function Ct(t,e){var a=e[xo];a===void 0&&(a=e[xo]=new Set);var l=t+"__bubble";a.has(l)||(Rg(e,t,2,!1),a.add(l))}function mf(t,e,a){var l=0;e&&(l|=4),Rg(a,t,l,e)}var eu="_reactListening"+Math.random().toString(36).slice(2);function yf(t){if(!t[eu]){t[eu]=!0,Ed.forEach(function(a){a!=="selectionchange"&&(iT.has(a)||mf(a,!1,t),mf(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[eu]||(e[eu]=!0,mf("selectionchange",!1,e))}}function Rg(t,e,a,l){switch(nm(e)){case 2:var o=LT;break;case 8:o=MT;break;default:o=kf}a=o.bind(null,e,a,t),o=void 0,!Bo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function vf(t,e,a,l,o){var f=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var E=l.stateNode.containerInfo;if(E===o)break;if(g===4)for(g=l.return;g!==null;){var x=g.tag;if((x===3||x===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;E!==null;){if(g=Ba(E),g===null)return;if(x=g.tag,x===5||x===6||x===26||x===27){l=f=g;continue t}E=E.parentNode}}l=l.return}Md(function(){var D=f,V=Io(a),X=[];t:{var G=rp.get(t);if(G!==void 0){var H=hl,ut=t;switch(t){case"keypress":if(cl(a)===0)break t;case"keydown":case"keyup":H=QE;break;case"focusin":ut="focus",H=qo;break;case"focusout":ut="blur",H=qo;break;case"beforeblur":case"afterblur":H=qo;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=jE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=JE;break;case np:case ip:case ap:H=qE;break;case sp:H=eb;break;case"scroll":case"scrollend":H=zE;break;case"wheel":H=ib;break;case"copy":case"cut":case"paste":H=HE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Bd;break;case"toggle":case"beforetoggle":H=sb}var mt=(e&4)!==0,Vt=!mt&&(t==="scroll"||t==="scrollend"),U=mt?G!==null?G+"Capture":null:G;mt=[];for(var w=D,B;w!==null;){var Y=w;if(B=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||B===null||U===null||(Y=Bs(w,U),Y!=null&&mt.push(gr(w,Y,B))),Vt)break;w=w.return}0<mt.length&&(G=new H(G,ut,null,a,V),X.push({event:G,listeners:mt}))}}if((e&7)===0){t:{if(G=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",G&&a!==Uo&&(ut=a.relatedTarget||a.fromElement)&&(Ba(ut)||ut[za]))break t;if((H||G)&&(G=V.window===V?V:(G=V.ownerDocument)?G.defaultView||G.parentWindow:window,H?(ut=a.relatedTarget||a.toElement,H=D,ut=ut?Ba(ut):null,ut!==null&&(Vt=c(ut),mt=ut.tag,ut!==Vt||mt!==5&&mt!==27&&mt!==6)&&(ut=null)):(H=null,ut=D),H!==ut)){if(mt=Id,Y="onMouseLeave",U="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(mt=Bd,Y="onPointerLeave",U="onPointerEnter",w="pointer"),Vt=H==null?G:zs(H),B=ut==null?G:zs(ut),G=new mt(Y,w+"leave",H,a,V),G.target=Vt,G.relatedTarget=B,Y=null,Ba(V)===D&&(mt=new mt(U,w+"enter",ut,a,V),mt.target=B,mt.relatedTarget=Vt,Y=mt),Vt=Y,H&&ut)e:{for(mt=aT,U=H,w=ut,B=0,Y=U;Y;Y=mt(Y))B++;Y=0;for(var dt=w;dt;dt=mt(dt))Y++;for(;0<B-Y;)U=mt(U),B--;for(;0<Y-B;)w=mt(w),Y--;for(;B--;){if(U===w||w!==null&&U===w.alternate){mt=U;break e}U=mt(U),w=mt(w)}mt=null}else mt=null;H!==null&&xg(X,G,H,mt,!1),ut!==null&&Vt!==null&&xg(X,Vt,ut,mt,!0)}}t:{if(G=D?zs(D):window,H=G.nodeName&&G.nodeName.toLowerCase(),H==="select"||H==="input"&&G.type==="file")var Bt=Kd;else if(Hd(G))if(Fd)Bt=_b;else{Bt=db;var ot=hb}else H=G.nodeName,!H||H.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?D&&ko(D.elementType)&&(Bt=Kd):Bt=pb;if(Bt&&(Bt=Bt(t,D))){$d(X,Bt,a,V);break t}ot&&ot(t,G,D),t==="focusout"&&D&&G.type==="number"&&D.memoizedProps.value!=null&&Mo(G,"number",G.value)}switch(ot=D?zs(D):window,t){case"focusin":(Hd(ot)||ot.contentEditable==="true")&&(Fa=ot,Vo=D,Ks=null);break;case"focusout":Ks=Vo=Fa=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":Yo=!1,tp(X,a,V);break;case"selectionchange":if(mb)break;case"keydown":case"keyup":tp(X,a,V)}var Ot;if(Ho)t:{switch(t){case"compositionstart":var Mt="onCompositionStart";break t;case"compositionend":Mt="onCompositionEnd";break t;case"compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0}else Ka?qd(t,a)&&(Mt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Mt="onCompositionStart");Mt&&(jd&&a.locale!=="ko"&&(Ka||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&Ka&&(Ot=kd()):(wi=V,jo="value"in wi?wi.value:wi.textContent,Ka=!0)),ot=nu(D,Mt),0<ot.length&&(Mt=new zd(Mt,t,null,a,V),X.push({event:Mt,listeners:ot}),Ot?Mt.data=Ot:(Ot=Gd(a),Ot!==null&&(Mt.data=Ot)))),(Ot=lb?ub(t,a):ob(t,a))&&(Mt=nu(D,"onBeforeInput"),0<Mt.length&&(ot=new zd("onBeforeInput","beforeinput",null,a,V),X.push({event:ot,listeners:Mt}),ot.data=Ot)),tT(X,t,D,a,V)}Ng(X,e)})}function gr(t,e,a){return{instance:t,listener:e,currentTarget:a}}function nu(t,e){for(var a=e+"Capture",l=[];t!==null;){var o=t,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=Bs(t,a),o!=null&&l.unshift(gr(t,o,f)),o=Bs(t,e),o!=null&&l.push(gr(t,o,f))),t.tag===3)return l;t=t.return}return[]}function aT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function xg(t,e,a,l,o){for(var f=e._reactName,g=[];a!==null&&a!==l;){var E=a,x=E.alternate,D=E.stateNode;if(E=E.tag,x!==null&&x===l)break;E!==5&&E!==26&&E!==27||D===null||(x=D,o?(D=Bs(a,f),D!=null&&g.unshift(gr(a,D,x))):o||(D=Bs(a,f),D!=null&&g.push(gr(a,D,x)))),a=a.return}g.length!==0&&t.push({event:e,listeners:g})}var sT=/\r\n?/g,rT=/\u0000|\uFFFD/g;function Cg(t){return(typeof t=="string"?t:""+t).replace(sT,`
|
|
9
|
+
`).replace(rT,"")}function wg(t,e){return e=Cg(e),Cg(t)===e}function Ft(t,e,a,l,o,f){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ga(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ga(t,""+l);break;case"className":rl(t,"class",l);break;case"tabIndex":rl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":rl(t,a,l);break;case"style":wd(t,l,f);break;case"data":if(e!=="object"){rl(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=ul(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(e!=="input"&&Ft(t,e,"name",o.name,o,null),Ft(t,e,"formEncType",o.formEncType,o,null),Ft(t,e,"formMethod",o.formMethod,o,null),Ft(t,e,"formTarget",o.formTarget,o,null)):(Ft(t,e,"encType",o.encType,o,null),Ft(t,e,"method",o.method,o,null),Ft(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=ul(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=ni);break;case"onScroll":l!=null&&Ct("scroll",t);break;case"onScrollEnd":l!=null&&Ct("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=ul(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":Ct("beforetoggle",t),Ct("toggle",t),sl(t,"popover",l);break;case"xlinkActuate":ei(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ei(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ei(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ei(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ei(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ei(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ei(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ei(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ei(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":sl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=UE.get(a)||a,sl(t,a,l))}}function Ef(t,e,a,l,o,f){switch(a){case"style":wd(t,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?Ga(t,l):(typeof l=="number"||typeof l=="bigint")&&Ga(t,""+l);break;case"onScroll":l!=null&&Ct("scroll",t);break;case"onScrollEnd":l!=null&&Ct("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ni);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bd.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),f=t[De]||null,f=f!=null?f[a]:null,typeof f=="function"&&t.removeEventListener(e,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,o);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):sl(t,a,l)}}}function xe(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",t),Ct("load",t);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];if(g!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ft(t,e,f,g,a,null)}}o&&Ft(t,e,"srcSet",a.srcSet,a,null),l&&Ft(t,e,"src",a.src,a,null);return;case"input":Ct("invalid",t);var E=f=g=o=null,x=null,D=null;for(l in a)if(a.hasOwnProperty(l)){var V=a[l];if(V!=null)switch(l){case"name":o=V;break;case"type":g=V;break;case"checked":x=V;break;case"defaultChecked":D=V;break;case"value":f=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:Ft(t,e,l,V,a,null)}}Nd(t,f,E,x,D,g,o,!1);return;case"select":Ct("invalid",t),l=g=f=null;for(o in a)if(a.hasOwnProperty(o)&&(E=a[o],E!=null))switch(o){case"value":f=E;break;case"defaultValue":g=E;break;case"multiple":l=E;default:Ft(t,e,o,E,a,null)}e=f,a=g,t.multiple=!!l,e!=null?qa(t,!!l,e,!1):a!=null&&qa(t,!!l,a,!0);return;case"textarea":Ct("invalid",t),f=o=l=null;for(g in a)if(a.hasOwnProperty(g)&&(E=a[g],E!=null))switch(g){case"value":l=E;break;case"defaultValue":o=E;break;case"children":f=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:Ft(t,e,g,E,a,null)}xd(t,l,o,f);return;case"option":for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null)&&(x==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Ft(t,e,x,l,a,null));return;case"dialog":Ct("beforetoggle",t),Ct("toggle",t),Ct("cancel",t),Ct("close",t);break;case"iframe":case"object":Ct("load",t);break;case"video":case"audio":for(l=0;l<_r.length;l++)Ct(_r[l],t);break;case"image":Ct("error",t),Ct("load",t);break;case"details":Ct("toggle",t);break;case"embed":case"source":case"link":Ct("error",t),Ct("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(l=a[D],l!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ft(t,e,D,l,a,null)}return;default:if(ko(e)){for(V in a)a.hasOwnProperty(V)&&(l=a[V],l!==void 0&&Ef(t,e,V,l,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(l=a[E],l!=null&&Ft(t,e,E,l,a,null))}function lT(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,g=null,E=null,x=null,D=null,V=null;for(H in a){var X=a[H];if(a.hasOwnProperty(H)&&X!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":x=X;default:l.hasOwnProperty(H)||Ft(t,e,H,null,l,X)}}for(var G in l){var H=l[G];if(X=a[G],l.hasOwnProperty(G)&&(H!=null||X!=null))switch(G){case"type":f=H;break;case"name":o=H;break;case"checked":D=H;break;case"defaultChecked":V=H;break;case"value":g=H;break;case"defaultValue":E=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,e));break;default:H!==X&&Ft(t,e,G,H,l,X)}}Lo(t,g,E,x,D,V,f,o);return;case"select":H=g=E=G=null;for(f in a)if(x=a[f],a.hasOwnProperty(f)&&x!=null)switch(f){case"value":break;case"multiple":H=x;default:l.hasOwnProperty(f)||Ft(t,e,f,null,l,x)}for(o in l)if(f=l[o],x=a[o],l.hasOwnProperty(o)&&(f!=null||x!=null))switch(o){case"value":G=f;break;case"defaultValue":E=f;break;case"multiple":g=f;default:f!==x&&Ft(t,e,o,f,l,x)}e=E,a=g,l=H,G!=null?qa(t,!!a,G,!1):!!l!=!!a&&(e!=null?qa(t,!!a,e,!0):qa(t,!!a,a?[]:"",!1));return;case"textarea":H=G=null;for(E in a)if(o=a[E],a.hasOwnProperty(E)&&o!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Ft(t,e,E,null,l,o)}for(g in l)if(o=l[g],f=a[g],l.hasOwnProperty(g)&&(o!=null||f!=null))switch(g){case"value":G=o;break;case"defaultValue":H=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==f&&Ft(t,e,g,o,l,f)}Rd(t,G,H);return;case"option":for(var ut in a)G=a[ut],a.hasOwnProperty(ut)&&G!=null&&!l.hasOwnProperty(ut)&&(ut==="selected"?t.selected=!1:Ft(t,e,ut,null,l,G));for(x in l)G=l[x],H=a[x],l.hasOwnProperty(x)&&G!==H&&(G!=null||H!=null)&&(x==="selected"?t.selected=G&&typeof G!="function"&&typeof G!="symbol":Ft(t,e,x,G,l,H));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var mt in a)G=a[mt],a.hasOwnProperty(mt)&&G!=null&&!l.hasOwnProperty(mt)&&Ft(t,e,mt,null,l,G);for(D in l)if(G=l[D],H=a[D],l.hasOwnProperty(D)&&G!==H&&(G!=null||H!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,e));break;default:Ft(t,e,D,G,l,H)}return;default:if(ko(e)){for(var Vt in a)G=a[Vt],a.hasOwnProperty(Vt)&&G!==void 0&&!l.hasOwnProperty(Vt)&&Ef(t,e,Vt,void 0,l,G);for(V in l)G=l[V],H=a[V],!l.hasOwnProperty(V)||G===H||G===void 0&&H===void 0||Ef(t,e,V,G,l,H);return}}for(var U in a)G=a[U],a.hasOwnProperty(U)&&G!=null&&!l.hasOwnProperty(U)&&Ft(t,e,U,null,l,G);for(X in l)G=l[X],H=a[X],!l.hasOwnProperty(X)||G===H||G==null&&H==null||Ft(t,e,X,G,l,H)}function Lg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uT(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],f=o.transferSize,g=o.initiatorType,E=o.duration;if(f&&E&&Lg(g)){for(g=0,E=o.responseEnd,l+=1;l<a.length;l++){var x=a[l],D=x.startTime;if(D>E)break;var V=x.transferSize,X=x.initiatorType;V&&Lg(X)&&(x=x.responseEnd,g+=V*(x<E?1:(E-D)/(x-D)))}if(--l,e+=8*(f+g)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var bf=null,Tf=null;function iu(t){return t.nodeType===9?t:t.ownerDocument}function Mg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kg(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Sf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Af=null;function oT(){var t=window.event;return t&&t.type==="popstate"?t===Af?!1:(Af=t,!0):(Af=null,!1)}var Ug=typeof setTimeout=="function"?setTimeout:void 0,cT=typeof clearTimeout=="function"?clearTimeout:void 0,Ig=typeof Promise=="function"?Promise:void 0,fT=typeof queueMicrotask=="function"?queueMicrotask:typeof Ig<"u"?function(t){return Ig.resolve(null).then(t).catch(hT)}:Ug;function hT(t){setTimeout(function(){throw t})}function Vi(t){return t==="head"}function zg(t,e){var a=e,l=0;do{var o=a.nextSibling;if(t.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(o),vs(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")mr(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,mr(a);for(var f=a.firstChild;f;){var g=f.nextSibling,E=f.nodeName;f[Is]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=g}}else a==="body"&&mr(t.ownerDocument.body);a=o}while(a);vs(e)}function Bg(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function Of(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Of(a),Co(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function dT(t,e,a,l){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Is])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(f=t.getAttribute("src"),(f!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=Tn(t.nextSibling),t===null)break}return null}function pT(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Tn(t.nextSibling),t===null))return null;return t}function jg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Tn(t.nextSibling),t===null))return null;return t}function Nf(t){return t.data==="$?"||t.data==="$~"}function Rf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function _T(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Tn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var xf=null;function Dg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Tn(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Pg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function qg(t,e,a){switch(e=iu(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function mr(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Co(t)}var Sn=new Map,Gg=new Set;function au(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yi=F.d;F.d={f:gT,r:mT,D:yT,C:vT,L:ET,m:bT,X:ST,S:TT,M:AT};function gT(){var t=yi.f(),e=Xl();return t||e}function mT(t){var e=ja(t);e!==null&&e.tag===5&&e.type==="form"?s_(e):yi.r(t)}var gs=typeof document>"u"?null:document;function Hg(t,e,a){var l=gs;if(l&&typeof e=="string"&&e){var o=_n(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Gg.has(o)||(Gg.add(o),t={rel:t,crossOrigin:a,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),xe(e,"link",t),be(e),l.head.appendChild(e)))}}function yT(t){yi.D(t),Hg("dns-prefetch",t,null)}function vT(t,e){yi.C(t,e),Hg("preconnect",t,e)}function ET(t,e,a){yi.L(t,e,a);var l=gs;if(l&&t&&e){var o='link[rel="preload"][as="'+_n(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+_n(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+_n(a.imageSizes)+'"]')):o+='[href="'+_n(t)+'"]';var f=o;switch(e){case"style":f=ms(t);break;case"script":f=ys(t)}Sn.has(f)||(t=v({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Sn.set(f,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(yr(f))||e==="script"&&l.querySelector(vr(f))||(e=l.createElement("link"),xe(e,"link",t),be(e),l.head.appendChild(e)))}}function bT(t,e){yi.m(t,e);var a=gs;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+_n(l)+'"][href="'+_n(t)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ys(t)}if(!Sn.has(f)&&(t=v({rel:"modulepreload",href:t},e),Sn.set(f,t),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(vr(f)))return}l=a.createElement("link"),xe(l,"link",t),be(l),a.head.appendChild(l)}}}function TT(t,e,a){yi.S(t,e,a);var l=gs;if(l&&t){var o=Da(l).hoistableStyles,f=ms(t);e=e||"default";var g=o.get(f);if(!g){var E={loading:0,preload:null};if(g=l.querySelector(yr(f)))E.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Sn.get(f))&&Cf(t,a);var x=g=l.createElement("link");be(x),xe(x,"link",t),x._p=new Promise(function(D,V){x.onload=D,x.onerror=V}),x.addEventListener("load",function(){E.loading|=1}),x.addEventListener("error",function(){E.loading|=2}),E.loading|=4,su(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:E},o.set(f,g)}}}function ST(t,e){yi.X(t,e);var a=gs;if(a&&t){var l=Da(a).hoistableScripts,o=ys(t),f=l.get(o);f||(f=a.querySelector(vr(o)),f||(t=v({src:t,async:!0},e),(e=Sn.get(o))&&wf(t,e),f=a.createElement("script"),be(f),xe(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function AT(t,e){yi.M(t,e);var a=gs;if(a&&t){var l=Da(a).hoistableScripts,o=ys(t),f=l.get(o);f||(f=a.querySelector(vr(o)),f||(t=v({src:t,async:!0,type:"module"},e),(e=Sn.get(o))&&wf(t,e),f=a.createElement("script"),be(f),xe(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function $g(t,e,a,l){var o=(o=st.current)?au(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=ms(a.href),a=Da(o).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ms(a.href);var f=Da(o).hoistableStyles,g=f.get(t);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(t,g),(f=o.querySelector(yr(t)))&&!f._p&&(g.instance=f,g.state.loading=5),Sn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Sn.set(t,a),f||OT(o,t,a,g.state))),e&&l===null)throw Error(r(528,""));return g}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ys(a),a=Da(o).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ms(t){return'href="'+_n(t)+'"'}function yr(t){return'link[rel="stylesheet"]['+t+"]"}function Kg(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function OT(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),xe(e,"link",a),be(e),t.head.appendChild(e))}function ys(t){return'[src="'+_n(t)+'"]'}function vr(t){return"script[async]"+t}function Fg(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_n(a.href)+'"]');if(l)return e.instance=l,be(l),l;var o=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),be(l),xe(l,"style",o),su(l,a.precedence,t),e.instance=l;case"stylesheet":o=ms(a.href);var f=t.querySelector(yr(o));if(f)return e.state.loading|=4,e.instance=f,be(f),f;l=Kg(a),(o=Sn.get(o))&&Cf(l,o),f=(t.ownerDocument||t).createElement("link"),be(f);var g=f;return g._p=new Promise(function(E,x){g.onload=E,g.onerror=x}),xe(f,"link",l),e.state.loading|=4,su(f,a.precedence,t),e.instance=f;case"script":return f=ys(a.src),(o=t.querySelector(vr(f)))?(e.instance=o,be(o),o):(l=a,(o=Sn.get(f))&&(l=v({},a),wf(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),be(o),xe(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,su(l,a.precedence,t));return e.instance}function su(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,g=0;g<l.length;g++){var E=l[g];if(E.dataset.precedence===e)f=E;else if(f!==o)break}f?f.parentNode.insertBefore(t,f.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Cf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function wf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ru=null;function Vg(t,e,a){if(ru===null){var l=new Map,o=ru=new Map;o.set(a,l)}else o=ru,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var f=a[o];if(!(f[Is]||f[Ae]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(e)||"";g=t+g;var E=l.get(g);E?E.push(f):l.set(g,[f])}}return l}function Yg(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function NT(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Xg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function RT(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=ms(l.href),f=e.querySelector(yr(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=lu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=f,be(f);return}f=e.ownerDocument||e,l=Kg(l),(o=Sn.get(o))&&Cf(l,o),f=f.createElement("link"),be(f);var g=f;g._p=new Promise(function(E,x){g.onload=E,g.onerror=x}),xe(f,"link",l),a.instance=f}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=lu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Lf=0;function xT(t,e){return t.stylesheets&&t.count===0&&ou(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&ou(t,t.stylesheets),t.unsuspend){var f=t.unsuspend;t.unsuspend=null,f()}},6e4+e);0<t.imgBytes&&Lf===0&&(Lf=62500*uT());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ou(t,t.stylesheets),t.unsuspend)){var f=t.unsuspend;t.unsuspend=null,f()}},(t.imgBytes>Lf?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function lu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ou(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var uu=null;function ou(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,uu=new Map,e.forEach(CT,t),uu=null,lu.call(t))}function CT(t,e){if(!(e.state.loading&4)){var a=uu.get(t);if(a)var l=a.get(null);else{a=new Map,uu.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var g=o[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}o=e.instance,g=o.getAttribute("data-precedence"),f=a.get(g)||l,f===l&&a.set(null,o),a.set(g,o),this.count++,l=lu.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var Er={$$typeof:P,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function wT(t,e,a,l,o,f,g,E,x){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oo(0),this.hiddenUpdates=Oo(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Qg(t,e,a,l,o,f,g,E,x,D,V,X){return t=new wT(t,e,a,g,x,D,V,X,E),e=1,f===!0&&(e|=24),f=We(3,null,null,e),t.current=f,f.stateNode=t,e=oc(),e.refCount++,t.pooledCache=e,e.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:e},dc(f),t}function Zg(t){return t?(t=Xa,t):Xa}function Wg(t,e,a,l,o,f){o=Zg(o),l.context===null?l.context=o:l.pendingContext=o,l=zi(e),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Bi(t,l,e),a!==null&&(Ke(a,t,e),Ws(a,t,e))}function Jg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Mf(t,e){Jg(t,e),(t=t.alternate)&&Jg(t,e)}function tm(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&Ke(e,t,67108864),Mf(t,67108864)}}function em(t){if(t.tag===13||t.tag===31){var e=an();e=No(e);var a=ca(t,e);a!==null&&Ke(a,t,e),Mf(t,e)}}var cu=!0;function LT(t,e,a,l){var o=k.T;k.T=null;var f=F.p;try{F.p=2,kf(t,e,a,l)}finally{F.p=f,k.T=o}}function MT(t,e,a,l){var o=k.T;k.T=null;var f=F.p;try{F.p=8,kf(t,e,a,l)}finally{F.p=f,k.T=o}}function kf(t,e,a,l){if(cu){var o=Uf(l);if(o===null)vf(t,e,l,fu,a),im(t,l);else if(UT(o,t,e,a,l))l.stopPropagation();else if(im(t,l),e&4&&-1<kT.indexOf(t)){for(;o!==null;){var f=ja(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=sa(f.pendingLanes);if(g!==0){var E=f;for(E.pendingLanes|=2,E.entangledLanes|=2;g;){var x=1<<31-Qe(g);E.entanglements[1]|=x,g&=~x}Kn(f),(Dt&6)===0&&(Vl=Pt()+500,pr(0))}}break;case 31:case 13:E=ca(f,2),E!==null&&Ke(E,f,2),Xl(),Mf(f,2)}if(f=Uf(l),f===null&&vf(t,e,l,fu,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else vf(t,e,l,null,a)}}function Uf(t){return t=Io(t),If(t)}var fu=null;function If(t){if(fu=null,t=Ba(t),t!==null){var e=c(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=p(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return fu=t,null}function nm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(hn()){case le:return 2;case Se:return 8;case je:case Ls:return 32;case Ms:return 268435456;default:return 32}default:return 32}}var zf=!1,Yi=null,Xi=null,Qi=null,br=new Map,Tr=new Map,Zi=[],kT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function im(t,e){switch(t){case"focusin":case"focusout":Yi=null;break;case"dragenter":case"dragleave":Xi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":br.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tr.delete(e.pointerId)}}function Sr(t,e,a,l,o,f){return t===null||t.nativeEvent!==f?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},e!==null&&(e=ja(e),e!==null&&tm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function UT(t,e,a,l,o){switch(e){case"focusin":return Yi=Sr(Yi,t,e,a,l,o),!0;case"dragenter":return Xi=Sr(Xi,t,e,a,l,o),!0;case"mouseover":return Qi=Sr(Qi,t,e,a,l,o),!0;case"pointerover":var f=o.pointerId;return br.set(f,Sr(br.get(f)||null,t,e,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Tr.set(f,Sr(Tr.get(f)||null,t,e,a,l,o)),!0}return!1}function am(t){var e=Ba(t.target);if(e!==null){var a=c(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,yd(t.priority,function(){em(a)});return}}else if(e===31){if(e=p(a),e!==null){t.blockedOn=e,yd(t.priority,function(){em(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function hu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Uf(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);Uo=l,a.target.dispatchEvent(l),Uo=null}else return e=ja(a),e!==null&&tm(e),t.blockedOn=a,!1;e.shift()}return!0}function sm(t,e,a){hu(t)&&a.delete(e)}function IT(){zf=!1,Yi!==null&&hu(Yi)&&(Yi=null),Xi!==null&&hu(Xi)&&(Xi=null),Qi!==null&&hu(Qi)&&(Qi=null),br.forEach(sm),Tr.forEach(sm)}function du(t,e){t.blockedOn===e&&(t.blockedOn=null,zf||(zf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,IT)))}var pu=null;function rm(t){pu!==t&&(pu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){pu===t&&(pu=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(If(l||a)===null)continue;break}var f=ja(a);f!==null&&(t.splice(e,3),e-=3,kc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function vs(t){function e(x){return du(x,t)}Yi!==null&&du(Yi,t),Xi!==null&&du(Xi,t),Qi!==null&&du(Qi,t),br.forEach(e),Tr.forEach(e);for(var a=0;a<Zi.length;a++){var l=Zi[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Zi.length&&(a=Zi[0],a.blockedOn===null);)am(a),a.blockedOn===null&&Zi.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],g=o[De]||null;if(typeof f=="function")g||rm(a);else if(g){var E=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[De]||null)E=g.formAction;else if(If(o)!==null)continue}else E=g.action;typeof E=="function"?a[l+1]=E:(a.splice(l,3),l-=3),rm(a)}}}function lm(){function t(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Bf(t){this._internalRoot=t}_u.prototype.render=Bf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=an();Wg(a,l,t,e,null,null)},_u.prototype.unmount=Bf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Wg(t.current,2,null,t,null,null),Xl(),e[za]=null}};function _u(t){this._internalRoot=t}_u.prototype.unstable_scheduleHydration=function(t){if(t){var e=md();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Zi.length&&e!==0&&e<Zi[a].priority;a++);Zi.splice(a,0,t),a===0&&am(t)}};var um=n.version;if(um!=="19.2.4")throw Error(r(527,um,"19.2.4"));F.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=_(e),t=t!==null?T(t):null,t=t===null?null:t.stateNode,t};var zT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{wn=gu.inject(zT),Le=gu}catch{}}return Or.createRoot=function(t,e){if(!u(t))throw Error(r(299));var a=!1,l="",o=__,f=g_,g=m_;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(f=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError)),e=Qg(t,1,!1,null,null,a,l,null,o,f,g,lm),t[za]=e.current,yf(t),new Bf(e)},Or.hydrateRoot=function(t,e,a){if(!u(t))throw Error(r(299));var l=!1,o="",f=__,g=g_,E=m_,x=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),e=Qg(t,1,!0,e,a??null,l,o,x,f,g,E,lm),e.context=Zg(null),a=e.current,l=an(),l=No(l),o=zi(l),o.callback=null,Bi(a,o,l),a=l,e.current.lanes=a,Us(e,a),Kn(e),t[za]=e.current,yf(t),new _u(e)},Or.version="19.2.4",Or}var ym;function VT(){if(ym)return Pf.exports;ym=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Pf.exports=FT(),Pf.exports}var YT=VT();const XT=no(YT);function vm(i,n){(n==null||n>i.length)&&(n=i.length);for(var s=0,r=Array(n);s<n;s++)r[s]=i[s];return r}function QT(i){if(Array.isArray(i))return i}function ZT(i,n,s){return(n=a1(n))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function WT(i,n){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var r,u,c,h,p=[],d=!0,_=!1;try{if(c=(s=s.call(i)).next,n!==0)for(;!(d=(r=c.call(s)).done)&&(p.push(r.value),p.length!==n);d=!0);}catch(T){_=!0,u=T}finally{try{if(!d&&s.return!=null&&(h=s.return(),Object(h)!==h))return}finally{if(_)throw u}}return p}}function JT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Em(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,r)}return s}function bm(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Em(Object(s),!0).forEach(function(r){ZT(i,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):Em(Object(s)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(s,r))})}return i}function t1(i,n){if(i==null)return{};var s,r,u=e1(i,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);for(r=0;r<c.length;r++)s=c[r],n.indexOf(s)===-1&&{}.propertyIsEnumerable.call(i,s)&&(u[s]=i[s])}return u}function e1(i,n){if(i==null)return{};var s={};for(var r in i)if({}.hasOwnProperty.call(i,r)){if(n.indexOf(r)!==-1)continue;s[r]=i[r]}return s}function n1(i,n){return QT(i)||WT(i,n)||s1(i,n)||JT()}function i1(i,n){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var r=s.call(i,n);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function a1(i){var n=i1(i,"string");return typeof n=="symbol"?n:n+""}function s1(i,n){if(i){if(typeof i=="string")return vm(i,n);var s={}.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?vm(i,n):void 0}}function r1(i,n,s){return n in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function Tm(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,r)}return s}function Sm(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Tm(Object(s),!0).forEach(function(r){r1(i,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):Tm(Object(s)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(s,r))})}return i}function l1(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return function(r){return n.reduceRight(function(u,c){return c(u)},r)}}function kr(i){return function n(){for(var s=this,r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return u.length>=i.length?i.apply(this,u):function(){for(var h=arguments.length,p=new Array(h),d=0;d<h;d++)p[d]=arguments[d];return n.apply(s,[].concat(u,p))}}}function qu(i){return{}.toString.call(i).includes("Object")}function u1(i){return!Object.keys(i).length}function qr(i){return typeof i=="function"}function o1(i,n){return Object.prototype.hasOwnProperty.call(i,n)}function c1(i,n){return qu(n)||Ji("changeType"),Object.keys(n).some(function(s){return!o1(i,s)})&&Ji("changeField"),n}function f1(i){qr(i)||Ji("selectorType")}function h1(i){qr(i)||qu(i)||Ji("handlerType"),qu(i)&&Object.values(i).some(function(n){return!qr(n)})&&Ji("handlersType")}function d1(i){i||Ji("initialIsRequired"),qu(i)||Ji("initialType"),u1(i)&&Ji("initialContent")}function p1(i,n){throw new Error(i[n]||i.default)}var _1={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Ji=kr(p1)(_1),mu={changes:c1,selector:f1,handler:h1,initial:d1};function g1(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};mu.initial(i),mu.handler(n);var s={current:i},r=kr(v1)(s,n),u=kr(y1)(s),c=kr(mu.changes)(i),h=kr(m1)(s);function p(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(T){return T};return mu.selector(_),_(s.current)}function d(_){l1(r,u,c,h)(_)}return[p,d]}function m1(i,n){return qr(n)?n(i.current):n}function y1(i,n){return i.current=Sm(Sm({},i.current),n),n}function v1(i,n,s){return qr(n)?n(i.current):Object.keys(s).forEach(function(r){var u;return(u=n[r])===null||u===void 0?void 0:u.call(n,i.current[r])}),s}var E1={create:g1},b1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function T1(i){return function n(){for(var s=this,r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return u.length>=i.length?i.apply(this,u):function(){for(var h=arguments.length,p=new Array(h),d=0;d<h;d++)p[d]=arguments[d];return n.apply(s,[].concat(u,p))}}}function S1(i){return{}.toString.call(i).includes("Object")}function A1(i){return i||Am("configIsRequired"),S1(i)||Am("configType"),i.urls?(O1(),{paths:{vs:i.urls.monacoBase}}):i}function O1(){console.warn(p0.deprecation)}function N1(i,n){throw new Error(i[n]||i.default)}var p0={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
11
11
|
You are using deprecated way of configuration.
|
|
12
12
|
|
|
13
13
|
Instead of using
|
|
@@ -16,16 +16,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16
16
|
monaco.config({ paths: { vs: '...' } })
|
|
17
17
|
|
|
18
18
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
19
|
-
`},Am=b1(O1)(d0),N1={config:S1},R1=function(){for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return function(u){return s.reduceRight(function(c,h){return h(c)},u)}};function p0(i,n){return Object.keys(n).forEach(function(s){n[s]instanceof Object&&i[s]&&Object.assign(n[s],p0(i[s],n[s]))}),bm(bm({},i),n)}var x1={type:"cancelation",msg:"operation is manually canceled"};function $f(i){var n=!1,s=new Promise(function(r,u){i.then(function(c){return n?u(x1):r(c)}),i.catch(u)});return s.cancel=function(){return n=!0},s}var C1=["monaco"],w1=v1.create({config:E1,isInitialized:!1,resolve:null,reject:null,monaco:null}),_0=e1(w1,2),Fr=_0[0],io=_0[1];function L1(i){var n=N1.config(i),s=n.monaco,r=JT(n,C1);io(function(u){return{config:p0(u.config,r),monaco:s}})}function M1(){var i=Fr(function(n){var s=n.monaco,r=n.isInitialized,u=n.resolve;return{monaco:s,isInitialized:r,resolve:u}});if(!i.isInitialized){if(io({isInitialized:!0}),i.monaco)return i.resolve(i.monaco),$f(Kf);if(window.monaco&&window.monaco.editor)return g0(window.monaco),i.resolve(window.monaco),$f(Kf);R1(k1,I1)(z1)}return $f(Kf)}function k1(i){return document.body.appendChild(i)}function U1(i){var n=document.createElement("script");return i&&(n.src=i),n}function I1(i){var n=Fr(function(r){var u=r.config,c=r.reject;return{config:u,reject:c}}),s=U1("".concat(n.config.paths.vs,"/loader.js"));return s.onload=function(){return i()},s.onerror=n.reject,s}function z1(){var i=Fr(function(s){var r=s.config,u=s.resolve,c=s.reject;return{config:r,resolve:u,reject:c}}),n=window.require;n.config(i.config),n(["vs/editor/editor.main"],function(s){var r=s.m||s;g0(r),i.resolve(r)},function(s){i.reject(s)})}function g0(i){Fr().monaco||io({monaco:i})}function B1(){return Fr(function(i){var n=i.monaco;return n})}var Kf=new Promise(function(i,n){return io({resolve:i,reject:n})}),m0={config:L1,init:M1,__getMonacoInstance:B1},j1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Ff=j1,D1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},P1=D1;function q1({children:i}){return Ra.createElement("div",{style:P1.container},i)}var G1=q1,H1=G1;function $1({width:i,height:n,isEditorReady:s,loading:r,_ref:u,className:c,wrapperProps:h}){return Ra.createElement("section",{style:{...Ff.wrapper,width:i,height:n},...h},!s&&Ra.createElement(H1,null,r),Ra.createElement("div",{ref:u,style:{...Ff.fullWidth,...!s&&Ff.hide},className:c}))}var K1=$1,y0=pt.memo(K1);function F1(i){pt.useEffect(i,[])}var v0=F1;function V1(i,n,s=!0){let r=pt.useRef(!0);pt.useEffect(r.current||!s?()=>{r.current=!1}:i,n)}var sn=V1;function jr(){}function Ss(i,n,s,r){return Y1(i,r)||X1(i,n,s,r)}function Y1(i,n){return i.editor.getModel(E0(i,n))}function X1(i,n,s,r){return i.editor.createModel(n,s,r?E0(i,r):void 0)}function E0(i,n){return i.Uri.parse(n)}function Q1({original:i,modified:n,language:s,originalLanguage:r,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:h,keepCurrentOriginalModel:p=!1,keepCurrentModifiedModel:d=!1,theme:_="light",loading:T="Loading...",options:v={},height:R="100%",width:q="100%",className:K,wrapperProps:Q={},beforeMount:O=jr,onMount:b=jr}){let[N,P]=pt.useState(!1),[z,Z]=pt.useState(!0),I=pt.useRef(null),C=pt.useRef(null),y=pt.useRef(null),S=pt.useRef(b),m=pt.useRef(O),L=pt.useRef(!1);v0(()=>{let it=m0.init();return it.then(k=>(C.current=k)&&Z(!1)).catch(k=>k?.type!=="cancelation"&&console.error("Monaco initialization: error:",k)),()=>I.current?at():it.cancel()}),sn(()=>{if(I.current&&C.current){let it=I.current.getOriginalEditor(),k=Ss(C.current,i||"",r||s||"text",c||"");k!==it.getModel()&&it.setModel(k)}},[c],N),sn(()=>{if(I.current&&C.current){let it=I.current.getModifiedEditor(),k=Ss(C.current,n||"",u||s||"text",h||"");k!==it.getModel()&&it.setModel(k)}},[h],N),sn(()=>{let it=I.current.getModifiedEditor();it.getOption(C.current.editor.EditorOption.readOnly)?it.setValue(n||""):n!==it.getValue()&&(it.executeEdits("",[{range:it.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),it.pushUndoStop())},[n],N),sn(()=>{I.current?.getModel()?.original.setValue(i||"")},[i],N),sn(()=>{let{original:it,modified:k}=I.current.getModel();C.current.editor.setModelLanguage(it,r||s||"text"),C.current.editor.setModelLanguage(k,u||s||"text")},[s,r,u],N),sn(()=>{C.current?.editor.setTheme(_)},[_],N),sn(()=>{I.current?.updateOptions(v)},[v],N);let M=pt.useCallback(()=>{if(!C.current)return;m.current(C.current);let it=Ss(C.current,i||"",r||s||"text",c||""),k=Ss(C.current,n||"",u||s||"text",h||"");I.current?.setModel({original:it,modified:k})},[s,n,u,i,r,c,h]),W=pt.useCallback(()=>{!L.current&&y.current&&(I.current=C.current.editor.createDiffEditor(y.current,{automaticLayout:!0,...v}),M(),C.current?.editor.setTheme(_),P(!0),L.current=!0)},[v,_,M]);pt.useEffect(()=>{N&&S.current(I.current,C.current)},[N]),pt.useEffect(()=>{!z&&!N&&W()},[z,N,W]);function at(){let it=I.current?.getModel();p||it?.original?.dispose(),d||it?.modified?.dispose(),I.current?.dispose()}return Ra.createElement(y0,{width:q,height:R,isEditorReady:N,loading:T,_ref:y,className:K,wrapperProps:Q})}var Z1=Q1;pt.memo(Z1);function W1(i){let n=pt.useRef();return pt.useEffect(()=>{n.current=i},[i]),n.current}var J1=W1,yu=new Map;function tS({defaultValue:i,defaultLanguage:n,defaultPath:s,value:r,language:u,path:c,theme:h="light",line:p,loading:d="Loading...",options:_={},overrideServices:T={},saveViewState:v=!0,keepCurrentModel:R=!1,width:q="100%",height:K="100%",className:Q,wrapperProps:O={},beforeMount:b=jr,onMount:N=jr,onChange:P,onValidate:z=jr}){let[Z,I]=pt.useState(!1),[C,y]=pt.useState(!0),S=pt.useRef(null),m=pt.useRef(null),L=pt.useRef(null),M=pt.useRef(N),W=pt.useRef(b),at=pt.useRef(),it=pt.useRef(r),k=J1(c),F=pt.useRef(!1),nt=pt.useRef(!1);v0(()=>{let A=m0.init();return A.then(j=>(S.current=j)&&y(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>m.current?_t():A.cancel()}),sn(()=>{let A=Ss(S.current,i||r||"",n||u||"",c||s||"");A!==m.current?.getModel()&&(v&&yu.set(k,m.current?.saveViewState()),m.current?.setModel(A),v&&m.current?.restoreViewState(yu.get(c)))},[c],Z),sn(()=>{m.current?.updateOptions(_)},[_],Z),sn(()=>{!m.current||r===void 0||(m.current.getOption(S.current.editor.EditorOption.readOnly)?m.current.setValue(r):r!==m.current.getValue()&&(nt.current=!0,m.current.executeEdits("",[{range:m.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),m.current.pushUndoStop(),nt.current=!1))},[r],Z),sn(()=>{let A=m.current?.getModel();A&&u&&S.current?.editor.setModelLanguage(A,u)},[u],Z),sn(()=>{p!==void 0&&m.current?.revealLine(p)},[p],Z),sn(()=>{S.current?.editor.setTheme(h)},[h],Z);let tt=pt.useCallback(()=>{if(!(!L.current||!S.current)&&!F.current){W.current(S.current);let A=c||s,j=Ss(S.current,r||i||"",n||u||"",A||"");m.current=S.current?.editor.create(L.current,{model:j,automaticLayout:!0,..._},T),v&&m.current.restoreViewState(yu.get(A)),S.current.editor.setTheme(h),p!==void 0&&m.current.revealLine(p),I(!0),F.current=!0}},[i,n,s,r,u,c,_,T,v,h,p]);pt.useEffect(()=>{Z&&M.current(m.current,S.current)},[Z]),pt.useEffect(()=>{!C&&!Z&&tt()},[C,Z,tt]),it.current=r,pt.useEffect(()=>{Z&&P&&(at.current?.dispose(),at.current=m.current?.onDidChangeModelContent(A=>{nt.current||P(m.current.getValue(),A)}))},[Z,P]),pt.useEffect(()=>{if(Z){let A=S.current.editor.onDidChangeMarkers(j=>{let $=m.current.getModel()?.uri;if($&&j.find(J=>J.path===$.path)){let J=S.current.editor.getModelMarkers({resource:$});z?.(J)}});return()=>{A?.dispose()}}return()=>{}},[Z,z]);function _t(){at.current?.dispose(),R?v&&yu.set(c,m.current.saveViewState()):m.current.getModel()?.dispose(),m.current.dispose()}return Ra.createElement(y0,{width:q,height:K,isEditorReady:Z,loading:d,_ref:L,className:Q,wrapperProps:O})}var eS=tS,nS=pt.memo(eS),vu=nS;const iS=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aS=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,r)=>r?r.toUpperCase():s.toLowerCase()),Om=i=>{const n=aS(i);return n.charAt(0).toUpperCase()+n.slice(1)},b0=(...i)=>i.filter((n,s,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===s).join(" ").trim(),sS=i=>{for(const n in i)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var rS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const lS=pt.forwardRef(({color:i="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:u="",children:c,iconNode:h,...p},d)=>pt.createElement("svg",{ref:d,...rS,width:n,height:n,stroke:i,strokeWidth:r?Number(s)*24/Number(n):s,className:b0("lucide",u),...!c&&!sS(p)&&{"aria-hidden":"true"},...p},[...h.map(([_,T])=>pt.createElement(_,T)),...Array.isArray(c)?c:[c]]));const Ma=(i,n)=>{const s=pt.forwardRef(({className:r,...u},c)=>pt.createElement(lS,{ref:c,iconNode:n,className:b0(`lucide-${iS(Om(i))}`,`lucide-${i}`,r),...u}));return s.displayName=Om(i),s};const uS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],oS=Ma("check",uS);const cS=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],fS=Ma("code",cS);const hS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],dS=Ma("copy",hS);const pS=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Nm=Ma("database",pS);const _S=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],gS=Ma("file-code",_S);const mS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Rm=Ma("info",mS);const yS=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Lu=Ma("play",yS);var T0=typeof global=="object"&&global&&global.Object===Object&&global,vS=typeof self=="object"&&self&&self.Object===Object&&self,Xn=T0||vS||Function("return this")(),Nn=Xn.Symbol,S0=Object.prototype,ES=S0.hasOwnProperty,bS=S0.toString,Nr=Nn?Nn.toStringTag:void 0;function TS(i){var n=ES.call(i,Nr),s=i[Nr];try{i[Nr]=void 0;var r=!0}catch{}var u=bS.call(i);return r&&(n?i[Nr]=s:delete i[Nr]),u}var SS=Object.prototype,AS=SS.toString;function OS(i){return AS.call(i)}var NS="[object Null]",RS="[object Undefined]",xm=Nn?Nn.toStringTag:void 0;function na(i){return i==null?i===void 0?RS:NS:xm&&xm in Object(i)?TS(i):OS(i)}function zn(i){return i!=null&&typeof i=="object"}var xS="[object Symbol]";function ao(i){return typeof i=="symbol"||zn(i)&&na(i)==xS}function so(i,n){for(var s=-1,r=i==null?0:i.length,u=Array(r);++s<r;)u[s]=n(i[s],s,i);return u}var zt=Array.isArray,Cm=Nn?Nn.prototype:void 0,wm=Cm?Cm.toString:void 0;function A0(i){if(typeof i=="string")return i;if(zt(i))return so(i,A0)+"";if(ao(i))return wm?wm.call(i):"";var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}var CS=/\s/;function wS(i){for(var n=i.length;n--&&CS.test(i.charAt(n)););return n}var LS=/^\s+/;function MS(i){return i&&i.slice(0,wS(i)+1).replace(LS,"")}function Rn(i){var n=typeof i;return i!=null&&(n=="object"||n=="function")}var Lm=NaN,kS=/^[-+]0x[0-9a-f]+$/i,US=/^0b[01]+$/i,IS=/^0o[0-7]+$/i,zS=parseInt;function BS(i){if(typeof i=="number")return i;if(ao(i))return Lm;if(Rn(i)){var n=typeof i.valueOf=="function"?i.valueOf():i;i=Rn(n)?n+"":n}if(typeof i!="string")return i===0?i:+i;i=MS(i);var s=US.test(i);return s||IS.test(i)?zS(i.slice(2),s?2:8):kS.test(i)?Lm:+i}var Mm=1/0,jS=17976931348623157e292;function DS(i){if(!i)return i===0?i:0;if(i=BS(i),i===Mm||i===-Mm){var n=i<0?-1:1;return n*jS}return i===i?i:0}function ro(i){var n=DS(i),s=n%1;return n===n?s?n-s:n:0}function Ns(i){return i}var PS="[object AsyncFunction]",qS="[object Function]",GS="[object GeneratorFunction]",HS="[object Proxy]";function Si(i){if(!Rn(i))return!1;var n=na(i);return n==qS||n==GS||n==PS||n==HS}var Vf=Xn["__core-js_shared__"],km=(function(){var i=/[^.]+$/.exec(Vf&&Vf.keys&&Vf.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function $S(i){return!!km&&km in i}var KS=Function.prototype,FS=KS.toString;function ka(i){if(i!=null){try{return FS.call(i)}catch{}try{return i+""}catch{}}return""}var VS=/[\\^$.*+?()[\]{}|]/g,YS=/^\[object .+?Constructor\]$/,XS=Function.prototype,QS=Object.prototype,ZS=XS.toString,WS=QS.hasOwnProperty,JS=RegExp("^"+ZS.call(WS).replace(VS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tA(i){if(!Rn(i)||$S(i))return!1;var n=Si(i)?JS:YS;return n.test(ka(i))}function eA(i,n){return i?.[n]}function Ua(i,n){var s=eA(i,n);return tA(s)?s:void 0}var vh=Ua(Xn,"WeakMap"),Um=Object.create,nA=(function(){function i(){}return function(n){if(!Rn(n))return{};if(Um)return Um(n);i.prototype=n;var s=new i;return i.prototype=void 0,s}})();function iA(i,n,s){switch(s.length){case 0:return i.call(n);case 1:return i.call(n,s[0]);case 2:return i.call(n,s[0],s[1]);case 3:return i.call(n,s[0],s[1],s[2])}return i.apply(n,s)}function me(){}function aA(i,n){var s=-1,r=i.length;for(n||(n=Array(r));++s<r;)n[s]=i[s];return n}var sA=800,rA=16,lA=Date.now;function uA(i){var n=0,s=0;return function(){var r=lA(),u=rA-(r-s);if(s=r,u>0){if(++n>=sA)return arguments[0]}else n=0;return i.apply(void 0,arguments)}}function oA(i){return function(){return i}}var Gu=(function(){try{var i=Ua(Object,"defineProperty");return i({},"",{}),i}catch{}})(),cA=Gu?function(i,n){return Gu(i,"toString",{configurable:!0,enumerable:!1,value:oA(n),writable:!0})}:Ns,fA=uA(cA);function O0(i,n){for(var s=-1,r=i==null?0:i.length;++s<r&&n(i[s],s,i)!==!1;);return i}function N0(i,n,s,r){for(var u=i.length,c=s+-1;++c<u;)if(n(i[c],c,i))return c;return-1}function hA(i){return i!==i}function dA(i,n,s){for(var r=s-1,u=i.length;++r<u;)if(i[r]===n)return r;return-1}function Dh(i,n,s){return n===n?dA(i,n,s):N0(i,hA,s)}function R0(i,n){var s=i==null?0:i.length;return!!s&&Dh(i,n,0)>-1}var pA=9007199254740991,_A=/^(?:0|[1-9]\d*)$/;function lo(i,n){var s=typeof i;return n=n??pA,!!n&&(s=="number"||s!="symbol"&&_A.test(i))&&i>-1&&i%1==0&&i<n}function Ph(i,n,s){n=="__proto__"&&Gu?Gu(i,n,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[n]=s}function Vr(i,n){return i===n||i!==i&&n!==n}var gA=Object.prototype,mA=gA.hasOwnProperty;function uo(i,n,s){var r=i[n];(!(mA.call(i,n)&&Vr(r,s))||s===void 0&&!(n in i))&&Ph(i,n,s)}function qh(i,n,s,r){var u=!s;s||(s={});for(var c=-1,h=n.length;++c<h;){var p=n[c],d=void 0;d===void 0&&(d=i[p]),u?Ph(s,p,d):uo(s,p,d)}return s}var Im=Math.max;function yA(i,n,s){return n=Im(n===void 0?i.length-1:n,0),function(){for(var r=arguments,u=-1,c=Im(r.length-n,0),h=Array(c);++u<c;)h[u]=r[n+u];u=-1;for(var p=Array(n+1);++u<n;)p[u]=r[u];return p[n]=s(h),iA(i,this,p)}}function Gh(i,n){return fA(yA(i,n,Ns),i+"")}var vA=9007199254740991;function Hh(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=vA}function Qn(i){return i!=null&&Hh(i.length)&&!Si(i)}function x0(i,n,s){if(!Rn(s))return!1;var r=typeof n;return(r=="number"?Qn(s)&&lo(n,s.length):r=="string"&&n in s)?Vr(s[n],i):!1}function EA(i){return Gh(function(n,s){var r=-1,u=s.length,c=u>1?s[u-1]:void 0,h=u>2?s[2]:void 0;for(c=i.length>3&&typeof c=="function"?(u--,c):void 0,h&&x0(s[0],s[1],h)&&(c=u<3?void 0:c,u=1),n=Object(n);++r<u;){var p=s[r];p&&i(n,p,r,c)}return n})}var bA=Object.prototype;function Yr(i){var n=i&&i.constructor,s=typeof n=="function"&&n.prototype||bA;return i===s}function TA(i,n){for(var s=-1,r=Array(i);++s<i;)r[s]=n(s);return r}var SA="[object Arguments]";function zm(i){return zn(i)&&na(i)==SA}var C0=Object.prototype,AA=C0.hasOwnProperty,OA=C0.propertyIsEnumerable,oo=zm((function(){return arguments})())?zm:function(i){return zn(i)&&AA.call(i,"callee")&&!OA.call(i,"callee")};function NA(){return!1}var w0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,Bm=w0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,RA=Bm&&Bm.exports===w0,jm=RA?Xn.Buffer:void 0,xA=jm?jm.isBuffer:void 0,Gr=xA||NA,CA="[object Arguments]",wA="[object Array]",LA="[object Boolean]",MA="[object Date]",kA="[object Error]",UA="[object Function]",IA="[object Map]",zA="[object Number]",BA="[object Object]",jA="[object RegExp]",DA="[object Set]",PA="[object String]",qA="[object WeakMap]",GA="[object ArrayBuffer]",HA="[object DataView]",$A="[object Float32Array]",KA="[object Float64Array]",FA="[object Int8Array]",VA="[object Int16Array]",YA="[object Int32Array]",XA="[object Uint8Array]",QA="[object Uint8ClampedArray]",ZA="[object Uint16Array]",WA="[object Uint32Array]",Jt={};Jt[$A]=Jt[KA]=Jt[FA]=Jt[VA]=Jt[YA]=Jt[XA]=Jt[QA]=Jt[ZA]=Jt[WA]=!0;Jt[CA]=Jt[wA]=Jt[GA]=Jt[LA]=Jt[HA]=Jt[MA]=Jt[kA]=Jt[UA]=Jt[IA]=Jt[zA]=Jt[BA]=Jt[jA]=Jt[DA]=Jt[PA]=Jt[qA]=!1;function JA(i){return zn(i)&&Hh(i.length)&&!!Jt[na(i)]}function co(i){return function(n){return i(n)}}var L0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,Dr=L0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,tO=Dr&&Dr.exports===L0,Yf=tO&&T0.process,ta=(function(){try{var i=Dr&&Dr.require&&Dr.require("util").types;return i||Yf&&Yf.binding&&Yf.binding("util")}catch{}})(),Dm=ta&&ta.isTypedArray,$h=Dm?co(Dm):JA,eO=Object.prototype,nO=eO.hasOwnProperty;function M0(i,n){var s=zt(i),r=!s&&oo(i),u=!s&&!r&&Gr(i),c=!s&&!r&&!u&&$h(i),h=s||r||u||c,p=h?TA(i.length,String):[],d=p.length;for(var _ in i)(n||nO.call(i,_))&&!(h&&(_=="length"||u&&(_=="offset"||_=="parent")||c&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||lo(_,d)))&&p.push(_);return p}function k0(i,n){return function(s){return i(n(s))}}var iO=k0(Object.keys,Object),aO=Object.prototype,sO=aO.hasOwnProperty;function U0(i){if(!Yr(i))return iO(i);var n=[];for(var s in Object(i))sO.call(i,s)&&s!="constructor"&&n.push(s);return n}function xn(i){return Qn(i)?M0(i):U0(i)}var rO=Object.prototype,lO=rO.hasOwnProperty,un=EA(function(i,n){if(Yr(n)||Qn(n)){qh(n,xn(n),i);return}for(var s in n)lO.call(n,s)&&uo(i,s,n[s])});function uO(i){var n=[];if(i!=null)for(var s in Object(i))n.push(s);return n}var oO=Object.prototype,cO=oO.hasOwnProperty;function fO(i){if(!Rn(i))return uO(i);var n=Yr(i),s=[];for(var r in i)r=="constructor"&&(n||!cO.call(i,r))||s.push(r);return s}function I0(i){return Qn(i)?M0(i,!0):fO(i)}var hO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dO=/^\w*$/;function Kh(i,n){if(zt(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||ao(i)?!0:dO.test(i)||!hO.test(i)||n!=null&&i in Object(n)}var Hr=Ua(Object,"create");function pO(){this.__data__=Hr?Hr(null):{},this.size=0}function _O(i){var n=this.has(i)&&delete this.__data__[i];return this.size-=n?1:0,n}var gO="__lodash_hash_undefined__",mO=Object.prototype,yO=mO.hasOwnProperty;function vO(i){var n=this.__data__;if(Hr){var s=n[i];return s===gO?void 0:s}return yO.call(n,i)?n[i]:void 0}var EO=Object.prototype,bO=EO.hasOwnProperty;function TO(i){var n=this.__data__;return Hr?n[i]!==void 0:bO.call(n,i)}var SO="__lodash_hash_undefined__";function AO(i,n){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=Hr&&n===void 0?SO:n,this}function xa(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}xa.prototype.clear=pO;xa.prototype.delete=_O;xa.prototype.get=vO;xa.prototype.has=TO;xa.prototype.set=AO;function OO(){this.__data__=[],this.size=0}function fo(i,n){for(var s=i.length;s--;)if(Vr(i[s][0],n))return s;return-1}var NO=Array.prototype,RO=NO.splice;function xO(i){var n=this.__data__,s=fo(n,i);if(s<0)return!1;var r=n.length-1;return s==r?n.pop():RO.call(n,s,1),--this.size,!0}function CO(i){var n=this.__data__,s=fo(n,i);return s<0?void 0:n[s][1]}function wO(i){return fo(this.__data__,i)>-1}function LO(i,n){var s=this.__data__,r=fo(s,i);return r<0?(++this.size,s.push([i,n])):s[r][1]=n,this}function Ai(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}Ai.prototype.clear=OO;Ai.prototype.delete=xO;Ai.prototype.get=CO;Ai.prototype.has=wO;Ai.prototype.set=LO;var $r=Ua(Xn,"Map");function MO(){this.size=0,this.__data__={hash:new xa,map:new($r||Ai),string:new xa}}function kO(i){var n=typeof i;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?i!=="__proto__":i===null}function ho(i,n){var s=i.__data__;return kO(n)?s[typeof n=="string"?"string":"hash"]:s.map}function UO(i){var n=ho(this,i).delete(i);return this.size-=n?1:0,n}function IO(i){return ho(this,i).get(i)}function zO(i){return ho(this,i).has(i)}function BO(i,n){var s=ho(this,i),r=s.size;return s.set(i,n),this.size+=s.size==r?0:1,this}function Oi(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}Oi.prototype.clear=MO;Oi.prototype.delete=UO;Oi.prototype.get=IO;Oi.prototype.has=zO;Oi.prototype.set=BO;var jO="Expected a function";function Fh(i,n){if(typeof i!="function"||n!=null&&typeof n!="function")throw new TypeError(jO);var s=function(){var r=arguments,u=n?n.apply(this,r):r[0],c=s.cache;if(c.has(u))return c.get(u);var h=i.apply(this,r);return s.cache=c.set(u,h)||c,h};return s.cache=new(Fh.Cache||Oi),s}Fh.Cache=Oi;var DO=500;function PO(i){var n=Fh(i,function(r){return s.size===DO&&s.clear(),r}),s=n.cache;return n}var qO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GO=/\\(\\)?/g,HO=PO(function(i){var n=[];return i.charCodeAt(0)===46&&n.push(""),i.replace(qO,function(s,r,u,c){n.push(u?c.replace(GO,"$1"):r||s)}),n});function $O(i){return i==null?"":A0(i)}function po(i,n){return zt(i)?i:Kh(i,n)?[i]:HO($O(i))}function Xr(i){if(typeof i=="string"||ao(i))return i;var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}function Vh(i,n){n=po(n,i);for(var s=0,r=n.length;i!=null&&s<r;)i=i[Xr(n[s++])];return s&&s==r?i:void 0}function KO(i,n,s){var r=i==null?void 0:Vh(i,n);return r===void 0?s:r}function Yh(i,n){for(var s=-1,r=n.length,u=i.length;++s<r;)i[u+s]=n[s];return i}var Pm=Nn?Nn.isConcatSpreadable:void 0;function FO(i){return zt(i)||oo(i)||!!(Pm&&i&&i[Pm])}function Xh(i,n,s,r,u){var c=-1,h=i.length;for(s||(s=FO),u||(u=[]);++c<h;){var p=i[c];s(p)?Yh(u,p):r||(u[u.length]=p)}return u}function Un(i){var n=i==null?0:i.length;return n?Xh(i):[]}var z0=k0(Object.getPrototypeOf,Object);function B0(i,n,s){var r=-1,u=i.length;n<0&&(n=-n>u?0:u+n),s=s>u?u:s,s<0&&(s+=u),u=n>s?0:s-n>>>0,n>>>=0;for(var c=Array(u);++r<u;)c[r]=i[r+n];return c}function VO(i,n,s,r){var u=-1,c=i==null?0:i.length;for(r&&c&&(s=i[++u]);++u<c;)s=n(s,i[u],u,i);return s}function YO(){this.__data__=new Ai,this.size=0}function XO(i){var n=this.__data__,s=n.delete(i);return this.size=n.size,s}function QO(i){return this.__data__.get(i)}function ZO(i){return this.__data__.has(i)}var WO=200;function JO(i,n){var s=this.__data__;if(s instanceof Ai){var r=s.__data__;if(!$r||r.length<WO-1)return r.push([i,n]),this.size=++s.size,this;s=this.__data__=new Oi(r)}return s.set(i,n),this.size=s.size,this}function Yn(i){var n=this.__data__=new Ai(i);this.size=n.size}Yn.prototype.clear=YO;Yn.prototype.delete=XO;Yn.prototype.get=QO;Yn.prototype.has=ZO;Yn.prototype.set=JO;function tN(i,n){return i&&qh(n,xn(n),i)}var j0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,qm=j0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,eN=qm&&qm.exports===j0,Gm=eN?Xn.Buffer:void 0,Hm=Gm?Gm.allocUnsafe:void 0;function nN(i,n){var s=i.length,r=Hm?Hm(s):new i.constructor(s);return i.copy(r),r}function Qh(i,n){for(var s=-1,r=i==null?0:i.length,u=0,c=[];++s<r;){var h=i[s];n(h,s,i)&&(c[u++]=h)}return c}function D0(){return[]}var iN=Object.prototype,aN=iN.propertyIsEnumerable,$m=Object.getOwnPropertySymbols,Zh=$m?function(i){return i==null?[]:(i=Object(i),Qh($m(i),function(n){return aN.call(i,n)}))}:D0;function sN(i,n){return qh(i,Zh(i),n)}var rN=Object.getOwnPropertySymbols,lN=rN?function(i){for(var n=[];i;)Yh(n,Zh(i)),i=z0(i);return n}:D0;function P0(i,n,s){var r=n(i);return zt(i)?r:Yh(r,s(i))}function Eh(i){return P0(i,xn,Zh)}function uN(i){return P0(i,I0,lN)}var bh=Ua(Xn,"DataView"),Th=Ua(Xn,"Promise"),Os=Ua(Xn,"Set"),Km="[object Map]",oN="[object Object]",Fm="[object Promise]",Vm="[object Set]",Ym="[object WeakMap]",Xm="[object DataView]",cN=ka(bh),fN=ka($r),hN=ka(Th),dN=ka(Os),pN=ka(vh),An=na;(bh&&An(new bh(new ArrayBuffer(1)))!=Xm||$r&&An(new $r)!=Km||Th&&An(Th.resolve())!=Fm||Os&&An(new Os)!=Vm||vh&&An(new vh)!=Ym)&&(An=function(i){var n=na(i),s=n==oN?i.constructor:void 0,r=s?ka(s):"";if(r)switch(r){case cN:return Xm;case fN:return Km;case hN:return Fm;case dN:return Vm;case pN:return Ym}return n});var _N=Object.prototype,gN=_N.hasOwnProperty;function mN(i){var n=i.length,s=new i.constructor(n);return n&&typeof i[0]=="string"&&gN.call(i,"index")&&(s.index=i.index,s.input=i.input),s}var Hu=Xn.Uint8Array;function yN(i){var n=new i.constructor(i.byteLength);return new Hu(n).set(new Hu(i)),n}function vN(i,n){var s=i.buffer;return new i.constructor(s,i.byteOffset,i.byteLength)}var EN=/\w*$/;function bN(i){var n=new i.constructor(i.source,EN.exec(i));return n.lastIndex=i.lastIndex,n}var Qm=Nn?Nn.prototype:void 0,Zm=Qm?Qm.valueOf:void 0;function TN(i){return Zm?Object(Zm.call(i)):{}}function SN(i,n){var s=i.buffer;return new i.constructor(s,i.byteOffset,i.length)}var AN="[object Boolean]",ON="[object Date]",NN="[object Map]",RN="[object Number]",xN="[object RegExp]",CN="[object Set]",wN="[object String]",LN="[object Symbol]",MN="[object ArrayBuffer]",kN="[object DataView]",UN="[object Float32Array]",IN="[object Float64Array]",zN="[object Int8Array]",BN="[object Int16Array]",jN="[object Int32Array]",DN="[object Uint8Array]",PN="[object Uint8ClampedArray]",qN="[object Uint16Array]",GN="[object Uint32Array]";function HN(i,n,s){var r=i.constructor;switch(n){case MN:return yN(i);case AN:case ON:return new r(+i);case kN:return vN(i);case UN:case IN:case zN:case BN:case jN:case DN:case PN:case qN:case GN:return SN(i);case NN:return new r;case RN:case wN:return new r(i);case xN:return bN(i);case CN:return new r;case LN:return TN(i)}}function $N(i){return typeof i.constructor=="function"&&!Yr(i)?nA(z0(i)):{}}var KN="[object Map]";function FN(i){return zn(i)&&An(i)==KN}var Wm=ta&&ta.isMap,VN=Wm?co(Wm):FN,YN="[object Set]";function XN(i){return zn(i)&&An(i)==YN}var Jm=ta&&ta.isSet,QN=Jm?co(Jm):XN,q0="[object Arguments]",ZN="[object Array]",WN="[object Boolean]",JN="[object Date]",tR="[object Error]",G0="[object Function]",eR="[object GeneratorFunction]",nR="[object Map]",iR="[object Number]",H0="[object Object]",aR="[object RegExp]",sR="[object Set]",rR="[object String]",lR="[object Symbol]",uR="[object WeakMap]",oR="[object ArrayBuffer]",cR="[object DataView]",fR="[object Float32Array]",hR="[object Float64Array]",dR="[object Int8Array]",pR="[object Int16Array]",_R="[object Int32Array]",gR="[object Uint8Array]",mR="[object Uint8ClampedArray]",yR="[object Uint16Array]",vR="[object Uint32Array]",Xt={};Xt[q0]=Xt[ZN]=Xt[oR]=Xt[cR]=Xt[WN]=Xt[JN]=Xt[fR]=Xt[hR]=Xt[dR]=Xt[pR]=Xt[_R]=Xt[nR]=Xt[iR]=Xt[H0]=Xt[aR]=Xt[sR]=Xt[rR]=Xt[lR]=Xt[gR]=Xt[mR]=Xt[yR]=Xt[vR]=!0;Xt[tR]=Xt[G0]=Xt[uR]=!1;function Mu(i,n,s,r,u,c){var h;if(h!==void 0)return h;if(!Rn(i))return i;var p=zt(i);if(p)return h=mN(i),aA(i,h);var d=An(i),_=d==G0||d==eR;if(Gr(i))return nN(i);if(d==H0||d==q0||_&&!u)return h=_?{}:$N(i),sN(i,tN(h,i));if(!Xt[d])return u?i:{};h=HN(i,d),c||(c=new Yn);var T=c.get(i);if(T)return T;c.set(i,h),QN(i)?i.forEach(function(q){h.add(Mu(q,n,s,q,i,c))}):VN(i)&&i.forEach(function(q,K){h.set(K,Mu(q,n,s,K,i,c))});var v=Eh,R=p?void 0:v(i);return O0(R||i,function(q,K){R&&(K=q,q=i[K]),uo(h,K,Mu(q,n,s,K,i,c))}),h}var ER=4;function we(i){return Mu(i,ER)}function Qr(i){for(var n=-1,s=i==null?0:i.length,r=0,u=[];++n<s;){var c=i[n];c&&(u[r++]=c)}return u}var bR="__lodash_hash_undefined__";function TR(i){return this.__data__.set(i,bR),this}function SR(i){return this.__data__.has(i)}function Rs(i){var n=-1,s=i==null?0:i.length;for(this.__data__=new Oi;++n<s;)this.add(i[n])}Rs.prototype.add=Rs.prototype.push=TR;Rs.prototype.has=SR;function $0(i,n){for(var s=-1,r=i==null?0:i.length;++s<r;)if(n(i[s],s,i))return!0;return!1}function Wh(i,n){return i.has(n)}var AR=1,OR=2;function K0(i,n,s,r,u,c){var h=s&AR,p=i.length,d=n.length;if(p!=d&&!(h&&d>p))return!1;var _=c.get(i),T=c.get(n);if(_&&T)return _==n&&T==i;var v=-1,R=!0,q=s&OR?new Rs:void 0;for(c.set(i,n),c.set(n,i);++v<p;){var K=i[v],Q=n[v];if(r)var O=h?r(Q,K,v,n,i,c):r(K,Q,v,i,n,c);if(O!==void 0){if(O)continue;R=!1;break}if(q){if(!$0(n,function(b,N){if(!Wh(q,N)&&(K===b||u(K,b,s,r,c)))return q.push(N)})){R=!1;break}}else if(!(K===Q||u(K,Q,s,r,c))){R=!1;break}}return c.delete(i),c.delete(n),R}function NR(i){var n=-1,s=Array(i.size);return i.forEach(function(r,u){s[++n]=[u,r]}),s}function Jh(i){var n=-1,s=Array(i.size);return i.forEach(function(r){s[++n]=r}),s}var RR=1,xR=2,CR="[object Boolean]",wR="[object Date]",LR="[object Error]",MR="[object Map]",kR="[object Number]",UR="[object RegExp]",IR="[object Set]",zR="[object String]",BR="[object Symbol]",jR="[object ArrayBuffer]",DR="[object DataView]",ty=Nn?Nn.prototype:void 0,Xf=ty?ty.valueOf:void 0;function PR(i,n,s,r,u,c,h){switch(s){case DR:if(i.byteLength!=n.byteLength||i.byteOffset!=n.byteOffset)return!1;i=i.buffer,n=n.buffer;case jR:return!(i.byteLength!=n.byteLength||!c(new Hu(i),new Hu(n)));case CR:case wR:case kR:return Vr(+i,+n);case LR:return i.name==n.name&&i.message==n.message;case UR:case zR:return i==n+"";case MR:var p=NR;case IR:var d=r&RR;if(p||(p=Jh),i.size!=n.size&&!d)return!1;var _=h.get(i);if(_)return _==n;r|=xR,h.set(i,n);var T=K0(p(i),p(n),r,u,c,h);return h.delete(i),T;case BR:if(Xf)return Xf.call(i)==Xf.call(n)}return!1}var qR=1,GR=Object.prototype,HR=GR.hasOwnProperty;function $R(i,n,s,r,u,c){var h=s&qR,p=Eh(i),d=p.length,_=Eh(n),T=_.length;if(d!=T&&!h)return!1;for(var v=d;v--;){var R=p[v];if(!(h?R in n:HR.call(n,R)))return!1}var q=c.get(i),K=c.get(n);if(q&&K)return q==n&&K==i;var Q=!0;c.set(i,n),c.set(n,i);for(var O=h;++v<d;){R=p[v];var b=i[R],N=n[R];if(r)var P=h?r(N,b,R,n,i,c):r(b,N,R,i,n,c);if(!(P===void 0?b===N||u(b,N,s,r,c):P)){Q=!1;break}O||(O=R=="constructor")}if(Q&&!O){var z=i.constructor,Z=n.constructor;z!=Z&&"constructor"in i&&"constructor"in n&&!(typeof z=="function"&&z instanceof z&&typeof Z=="function"&&Z instanceof Z)&&(Q=!1)}return c.delete(i),c.delete(n),Q}var KR=1,ey="[object Arguments]",ny="[object Array]",Eu="[object Object]",FR=Object.prototype,iy=FR.hasOwnProperty;function VR(i,n,s,r,u,c){var h=zt(i),p=zt(n),d=h?ny:An(i),_=p?ny:An(n);d=d==ey?Eu:d,_=_==ey?Eu:_;var T=d==Eu,v=_==Eu,R=d==_;if(R&&Gr(i)){if(!Gr(n))return!1;h=!0,T=!1}if(R&&!T)return c||(c=new Yn),h||$h(i)?K0(i,n,s,r,u,c):PR(i,n,d,s,r,u,c);if(!(s&KR)){var q=T&&iy.call(i,"__wrapped__"),K=v&&iy.call(n,"__wrapped__");if(q||K){var Q=q?i.value():i,O=K?n.value():n;return c||(c=new Yn),u(Q,O,s,r,c)}}return R?(c||(c=new Yn),$R(i,n,s,r,u,c)):!1}function td(i,n,s,r,u){return i===n?!0:i==null||n==null||!zn(i)&&!zn(n)?i!==i&&n!==n:VR(i,n,s,r,td,u)}var YR=1,XR=2;function QR(i,n,s,r){var u=s.length,c=u;if(i==null)return!c;for(i=Object(i);u--;){var h=s[u];if(h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++u<c;){h=s[u];var p=h[0],d=i[p],_=h[1];if(h[2]){if(d===void 0&&!(p in i))return!1}else{var T=new Yn,v;if(!(v===void 0?td(_,d,YR|XR,r,T):v))return!1}}return!0}function F0(i){return i===i&&!Rn(i)}function ZR(i){for(var n=xn(i),s=n.length;s--;){var r=n[s],u=i[r];n[s]=[r,u,F0(u)]}return n}function V0(i,n){return function(s){return s==null?!1:s[i]===n&&(n!==void 0||i in Object(s))}}function WR(i){var n=ZR(i);return n.length==1&&n[0][2]?V0(n[0][0],n[0][1]):function(s){return s===i||QR(s,i,n)}}function JR(i,n){return i!=null&&n in Object(i)}function Y0(i,n,s){n=po(n,i);for(var r=-1,u=n.length,c=!1;++r<u;){var h=Xr(n[r]);if(!(c=i!=null&&s(i,h)))break;i=i[h]}return c||++r!=u?c:(u=i==null?0:i.length,!!u&&Hh(u)&&lo(h,u)&&(zt(i)||oo(i)))}function tx(i,n){return i!=null&&Y0(i,n,JR)}var ex=1,nx=2;function ix(i,n){return Kh(i)&&F0(n)?V0(Xr(i),n):function(s){var r=KO(s,i);return r===void 0&&r===n?tx(s,i):td(n,r,ex|nx)}}function ax(i){return function(n){return n?.[i]}}function sx(i){return function(n){return Vh(n,i)}}function rx(i){return Kh(i)?ax(Xr(i)):sx(i)}function Zn(i){return typeof i=="function"?i:i==null?Ns:typeof i=="object"?zt(i)?ix(i[0],i[1]):WR(i):rx(i)}function lx(i,n,s,r){for(var u=-1,c=i==null?0:i.length;++u<c;){var h=i[u];n(r,h,s(h),i)}return r}function ux(i){return function(n,s,r){for(var u=-1,c=Object(n),h=r(n),p=h.length;p--;){var d=h[++u];if(s(c[d],d,c)===!1)break}return n}}var ox=ux();function cx(i,n){return i&&ox(i,n,xn)}function fx(i,n){return function(s,r){if(s==null)return s;if(!Qn(s))return i(s,r);for(var u=s.length,c=-1,h=Object(s);++c<u&&r(h[c],c,h)!==!1;);return s}}var Ia=fx(cx);function hx(i,n,s,r){return Ia(i,function(u,c,h){n(r,u,s(u),h)}),r}function dx(i,n){return function(s,r){var u=zt(s)?lx:hx,c=n?n():{};return u(s,i,Zn(r),c)}}var X0=Object.prototype,px=X0.hasOwnProperty,ed=Gh(function(i,n){i=Object(i);var s=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&x0(n[0],n[1],u)&&(r=1);++s<r;)for(var c=n[s],h=I0(c),p=-1,d=h.length;++p<d;){var _=h[p],T=i[_];(T===void 0||Vr(T,X0[_])&&!px.call(i,_))&&(i[_]=c[_])}return i});function ay(i){return zn(i)&&Qn(i)}var _x=200;function gx(i,n,s,r){var u=-1,c=R0,h=!0,p=i.length,d=[],_=n.length;if(!p)return d;n.length>=_x&&(c=Wh,h=!1,n=new Rs(n));t:for(;++u<p;){var T=i[u],v=T;if(T=T!==0?T:0,h&&v===v){for(var R=_;R--;)if(n[R]===v)continue t;d.push(T)}else c(n,v,r)||d.push(T)}return d}var _o=Gh(function(i,n){return ay(i)?gx(i,Xh(n,1,ay,!0)):[]});function Ca(i){var n=i==null?0:i.length;return n?i[n-1]:void 0}function Ce(i,n,s){var r=i==null?0:i.length;return r?(n=n===void 0?1:ro(n),B0(i,n<0?0:n,r)):[]}function Kr(i,n,s){var r=i==null?0:i.length;return r?(n=n===void 0?1:ro(n),n=r-n,B0(i,0,n<0?0:n)):[]}function mx(i){return typeof i=="function"?i:Ns}function vt(i,n){var s=zt(i)?O0:Ia;return s(i,mx(n))}function yx(i,n){for(var s=-1,r=i==null?0:i.length;++s<r;)if(!n(i[s],s,i))return!1;return!0}function vx(i,n){var s=!0;return Ia(i,function(r,u,c){return s=!!n(r,u,c),s}),s}function In(i,n,s){var r=zt(i)?yx:vx;return r(i,Zn(n))}function Q0(i,n){var s=[];return Ia(i,function(r,u,c){n(r,u,c)&&s.push(r)}),s}function Cn(i,n){var s=zt(i)?Qh:Q0;return s(i,Zn(n))}function Ex(i){return function(n,s,r){var u=Object(n);if(!Qn(n)){var c=Zn(s);n=xn(n),s=function(p){return c(u[p],p,u)}}var h=i(n,s,r);return h>-1?u[c?n[h]:h]:void 0}}var bx=Math.max;function Tx(i,n,s){var r=i==null?0:i.length;if(!r)return-1;var u=s==null?0:ro(s);return u<0&&(u=bx(r+u,0)),N0(i,Zn(n),u)}var xs=Ex(Tx);function Bn(i){return i&&i.length?i[0]:void 0}function Sx(i,n){var s=-1,r=Qn(i)?Array(i.length):[];return Ia(i,function(u,c,h){r[++s]=n(u,c,h)}),r}function ft(i,n){var s=zt(i)?so:Sx;return s(i,Zn(n))}function On(i,n){return Xh(ft(i,n))}var Ax=Object.prototype,Ox=Ax.hasOwnProperty,Nx=dx(function(i,n,s){Ox.call(i,s)?i[s].push(n):Ph(i,s,[n])}),Rx=Object.prototype,xx=Rx.hasOwnProperty;function Cx(i,n){return i!=null&&xx.call(i,n)}function yt(i,n){return i!=null&&Y0(i,n,Cx)}var wx="[object String]";function Ye(i){return typeof i=="string"||!zt(i)&&zn(i)&&na(i)==wx}function Lx(i,n){return so(n,function(s){return i[s]})}function ye(i){return i==null?[]:Lx(i,xn(i))}var Mx=Math.max;function Be(i,n,s,r){i=Qn(i)?i:ye(i),s=s?ro(s):0;var u=i.length;return s<0&&(s=Mx(u+s,0)),Ye(i)?s<=u&&i.indexOf(n,s)>-1:!!u&&Dh(i,n,s)>-1}function sy(i,n,s){var r=i==null?0:i.length;if(!r)return-1;var u=0;return Dh(i,n,u)}var kx="[object Map]",Ux="[object Set]",Ix=Object.prototype,zx=Ix.hasOwnProperty;function Qt(i){if(i==null)return!0;if(Qn(i)&&(zt(i)||typeof i=="string"||typeof i.splice=="function"||Gr(i)||$h(i)||oo(i)))return!i.length;var n=An(i);if(n==kx||n==Ux)return!i.size;if(Yr(i))return!U0(i).length;for(var s in i)if(zx.call(i,s))return!1;return!0}var Bx="[object RegExp]";function jx(i){return zn(i)&&na(i)==Bx}var ry=ta&&ta.isRegExp,Ei=ry?co(ry):jx;function bi(i){return i===void 0}var Dx="Expected a function";function Px(i){if(typeof i!="function")throw new TypeError(Dx);return function(){var n=arguments;switch(n.length){case 0:return!i.call(this);case 1:return!i.call(this,n[0]);case 2:return!i.call(this,n[0],n[1]);case 3:return!i.call(this,n[0],n[1],n[2])}return!i.apply(this,n)}}function qx(i,n,s,r){if(!Rn(i))return i;n=po(n,i);for(var u=-1,c=n.length,h=c-1,p=i;p!=null&&++u<c;){var d=Xr(n[u]),_=s;if(d==="__proto__"||d==="constructor"||d==="prototype")return i;if(u!=h){var T=p[d];_=void 0,_===void 0&&(_=Rn(T)?T:lo(n[u+1])?[]:{})}uo(p,d,_),p=p[d]}return i}function Gx(i,n,s){for(var r=-1,u=n.length,c={};++r<u;){var h=n[r],p=Vh(i,h);s(p,h)&&qx(c,po(h,i),p)}return c}function jn(i,n){if(i==null)return{};var s=so(uN(i),function(r){return[r]});return n=Zn(n),Gx(i,s,function(r,u){return n(r,u[0])})}function Hx(i,n,s,r,u){return u(i,function(c,h,p){s=r?(r=!1,c):n(s,c,h,p)}),s}function on(i,n,s){var r=zt(i)?VO:Hx,u=arguments.length<3;return r(i,Zn(n),s,u,Ia)}function go(i,n){var s=zt(i)?Qh:Q0;return s(i,Px(Zn(n)))}function $x(i,n){var s;return Ia(i,function(r,u,c){return s=n(r,u,c),!s}),!!s}function Z0(i,n,s){var r=zt(i)?$0:$x;return r(i,Zn(n))}var Kx=1/0,Fx=Os&&1/Jh(new Os([,-0]))[1]==Kx?function(i){return new Os(i)}:me,Vx=200;function Yx(i,n,s){var r=-1,u=R0,c=i.length,h=!0,p=[],d=p;if(c>=Vx){var _=Fx(i);if(_)return Jh(_);h=!1,u=Wh,d=new Rs}else d=p;t:for(;++r<c;){var T=i[r],v=T;if(T=T!==0?T:0,h&&v===v){for(var R=d.length;R--;)if(d[R]===v)continue t;p.push(T)}else u(d,v,s)||(d!==p&&d.push(v),p.push(T))}return p}function nd(i){return i&&i.length?Yx(i):[]}function Sh(i){console&&console.error&&console.error(`Error: ${i}`)}function W0(i){console&&console.warn&&console.warn(`Warning: ${i}`)}function J0(i){const n=new Date().getTime(),s=i();return{time:new Date().getTime()-n,value:s}}function tv(i){function n(){}n.prototype=i;const s=new n;function r(){return typeof s.bar}return r(),r(),i}function Xx(i){return Qx(i)?i.LABEL:i.name}function Qx(i){return Ye(i.LABEL)&&i.LABEL!==""}class Wn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){this._definition=n}accept(n){n.visit(this),vt(this.definition,s=>{s.accept(n)})}}class cn extends Wn{constructor(n){super([]),this.idx=1,un(this,jn(n,s=>s!==void 0))}set definition(n){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(n){n.visit(this)}}class Cs extends Wn{constructor(n){super(n.definition),this.orgText="",un(this,jn(n,s=>s!==void 0))}}class Xe extends Wn{constructor(n){super(n.definition),this.ignoreAmbiguities=!1,un(this,jn(n,s=>s!==void 0))}}class Ve extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class Jn extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class ti extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class ve extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class Dn extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class Pn extends Wn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){super(n.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,un(this,jn(n,s=>s!==void 0))}}class ne{constructor(n){this.idx=1,un(this,jn(n,s=>s!==void 0))}accept(n){n.visit(this)}}function Zx(i){return ft(i,ku)}function ku(i){function n(s){return ft(s,ku)}if(i instanceof cn){const s={type:"NonTerminal",name:i.nonTerminalName,idx:i.idx};return Ye(i.label)&&(s.label=i.label),s}else{if(i instanceof Xe)return{type:"Alternative",definition:n(i.definition)};if(i instanceof Ve)return{type:"Option",idx:i.idx,definition:n(i.definition)};if(i instanceof Jn)return{type:"RepetitionMandatory",idx:i.idx,definition:n(i.definition)};if(i instanceof ti)return{type:"RepetitionMandatoryWithSeparator",idx:i.idx,separator:ku(new ne({terminalType:i.separator})),definition:n(i.definition)};if(i instanceof Dn)return{type:"RepetitionWithSeparator",idx:i.idx,separator:ku(new ne({terminalType:i.separator})),definition:n(i.definition)};if(i instanceof ve)return{type:"Repetition",idx:i.idx,definition:n(i.definition)};if(i instanceof Pn)return{type:"Alternation",idx:i.idx,definition:n(i.definition)};if(i instanceof ne){const s={type:"Terminal",name:i.terminalType.name,label:Xx(i.terminalType),idx:i.idx};Ye(i.label)&&(s.terminalLabel=i.label);const r=i.terminalType.PATTERN;return i.terminalType.PATTERN&&(s.pattern=Ei(r)?r.source:r),s}else{if(i instanceof Cs)return{type:"Rule",name:i.name,orgText:i.orgText,definition:n(i.definition)};throw Error("non exhaustive match")}}}class ws{visit(n){const s=n;switch(s.constructor){case cn:return this.visitNonTerminal(s);case Xe:return this.visitAlternative(s);case Ve:return this.visitOption(s);case Jn:return this.visitRepetitionMandatory(s);case ti:return this.visitRepetitionMandatoryWithSeparator(s);case Dn:return this.visitRepetitionWithSeparator(s);case ve:return this.visitRepetition(s);case Pn:return this.visitAlternation(s);case ne:return this.visitTerminal(s);case Cs:return this.visitRule(s);default:throw Error("non exhaustive match")}}visitNonTerminal(n){}visitAlternative(n){}visitOption(n){}visitRepetition(n){}visitRepetitionMandatory(n){}visitRepetitionMandatoryWithSeparator(n){}visitRepetitionWithSeparator(n){}visitAlternation(n){}visitTerminal(n){}visitRule(n){}}function Wx(i){return i instanceof Xe||i instanceof Ve||i instanceof ve||i instanceof Jn||i instanceof ti||i instanceof Dn||i instanceof ne||i instanceof Cs}function $u(i,n=[]){return i instanceof Ve||i instanceof ve||i instanceof Dn?!0:i instanceof Pn?Z0(i.definition,r=>$u(r,n)):i instanceof cn&&Be(n,i)?!1:i instanceof Wn?(i instanceof cn&&n.push(i),In(i.definition,r=>$u(r,n))):!1}function Jx(i){return i instanceof Pn}function Vn(i){if(i instanceof cn)return"SUBRULE";if(i instanceof Ve)return"OPTION";if(i instanceof Pn)return"OR";if(i instanceof Jn)return"AT_LEAST_ONE";if(i instanceof ti)return"AT_LEAST_ONE_SEP";if(i instanceof Dn)return"MANY_SEP";if(i instanceof ve)return"MANY";if(i instanceof ne)return"CONSUME";throw Error("non exhaustive match")}class mo{walk(n,s=[]){vt(n.definition,(r,u)=>{const c=Ce(n.definition,u+1);if(r instanceof cn)this.walkProdRef(r,c,s);else if(r instanceof ne)this.walkTerminal(r,c,s);else if(r instanceof Xe)this.walkFlat(r,c,s);else if(r instanceof Ve)this.walkOption(r,c,s);else if(r instanceof Jn)this.walkAtLeastOne(r,c,s);else if(r instanceof ti)this.walkAtLeastOneSep(r,c,s);else if(r instanceof Dn)this.walkManySep(r,c,s);else if(r instanceof ve)this.walkMany(r,c,s);else if(r instanceof Pn)this.walkOr(r,c,s);else throw Error("non exhaustive match")})}walkTerminal(n,s,r){}walkProdRef(n,s,r){}walkFlat(n,s,r){const u=s.concat(r);this.walk(n,u)}walkOption(n,s,r){const u=s.concat(r);this.walk(n,u)}walkAtLeastOne(n,s,r){const u=[new Ve({definition:n.definition})].concat(s,r);this.walk(n,u)}walkAtLeastOneSep(n,s,r){const u=ly(n,s,r);this.walk(n,u)}walkMany(n,s,r){const u=[new Ve({definition:n.definition})].concat(s,r);this.walk(n,u)}walkManySep(n,s,r){const u=ly(n,s,r);this.walk(n,u)}walkOr(n,s,r){const u=s.concat(r);vt(n.definition,c=>{const h=new Xe({definition:[c]});this.walk(h,u)})}}function ly(i,n,s){return[new Ve({definition:[new ne({terminalType:i.separator})].concat(i.definition)})].concat(n,s)}function Zr(i){if(i instanceof cn)return Zr(i.referencedRule);if(i instanceof ne)return nC(i);if(Wx(i))return tC(i);if(Jx(i))return eC(i);throw Error("non exhaustive match")}function tC(i){let n=[];const s=i.definition;let r=0,u=s.length>r,c,h=!0;for(;u&&h;)c=s[r],h=$u(c),n=n.concat(Zr(c)),r=r+1,u=s.length>r;return nd(n)}function eC(i){const n=ft(i.definition,s=>Zr(s));return nd(Un(n))}function nC(i){return[i.terminalType]}const ev="_~IN~_";class iC extends mo{constructor(n){super(),this.topProd=n,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(n,s,r){}walkProdRef(n,s,r){const u=sC(n.referencedRule,n.idx)+this.topProd.name,c=s.concat(r),h=new Xe({definition:c}),p=Zr(h);this.follows[u]=p}}function aC(i){const n={};return vt(i,s=>{const r=new iC(s).startWalking();un(n,r)}),n}function sC(i,n){return i.name+n+ev}function Et(i){return i.charCodeAt(0)}function Qf(i,n){Array.isArray(i)?i.forEach(function(s){n.push(s)}):n.push(i)}function Rr(i,n){if(i[n]===!0)throw"duplicate flag "+n;i[n],i[n]=!0}function Es(i){if(i===void 0)throw Error("Internal Error - Should never get here!");return!0}function rC(){throw Error("Internal Error - Should never get here!")}function uy(i){return i.type==="Character"}const Ku=[];for(let i=Et("0");i<=Et("9");i++)Ku.push(i);const Fu=[Et("_")].concat(Ku);for(let i=Et("a");i<=Et("z");i++)Fu.push(i);for(let i=Et("A");i<=Et("Z");i++)Fu.push(i);const oy=[Et(" "),Et("\f"),Et(`
|
|
20
|
-
`),Et("\r"),Et(" "),Et("\v"),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et("\u2028"),Et("\u2029"),Et(" "),Et(" "),Et(" "),Et("\uFEFF")],
|
|
19
|
+
`},Am=T1(N1)(p0),R1={config:A1},x1=function(){for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return function(u){return s.reduceRight(function(c,h){return h(c)},u)}};function _0(i,n){return Object.keys(n).forEach(function(s){n[s]instanceof Object&&i[s]&&Object.assign(n[s],_0(i[s],n[s]))}),bm(bm({},i),n)}var C1={type:"cancelation",msg:"operation is manually canceled"};function $f(i){var n=!1,s=new Promise(function(r,u){i.then(function(c){return n?u(C1):r(c)}),i.catch(u)});return s.cancel=function(){return n=!0},s}var w1=["monaco"],L1=E1.create({config:b1,isInitialized:!1,resolve:null,reject:null,monaco:null}),g0=n1(L1,2),Fr=g0[0],io=g0[1];function M1(i){var n=R1.config(i),s=n.monaco,r=t1(n,w1);io(function(u){return{config:_0(u.config,r),monaco:s}})}function k1(){var i=Fr(function(n){var s=n.monaco,r=n.isInitialized,u=n.resolve;return{monaco:s,isInitialized:r,resolve:u}});if(!i.isInitialized){if(io({isInitialized:!0}),i.monaco)return i.resolve(i.monaco),$f(Kf);if(window.monaco&&window.monaco.editor)return m0(window.monaco),i.resolve(window.monaco),$f(Kf);x1(U1,z1)(B1)}return $f(Kf)}function U1(i){return document.body.appendChild(i)}function I1(i){var n=document.createElement("script");return i&&(n.src=i),n}function z1(i){var n=Fr(function(r){var u=r.config,c=r.reject;return{config:u,reject:c}}),s=I1("".concat(n.config.paths.vs,"/loader.js"));return s.onload=function(){return i()},s.onerror=n.reject,s}function B1(){var i=Fr(function(s){var r=s.config,u=s.resolve,c=s.reject;return{config:r,resolve:u,reject:c}}),n=window.require;n.config(i.config),n(["vs/editor/editor.main"],function(s){var r=s.m||s;m0(r),i.resolve(r)},function(s){i.reject(s)})}function m0(i){Fr().monaco||io({monaco:i})}function j1(){return Fr(function(i){var n=i.monaco;return n})}var Kf=new Promise(function(i,n){return io({resolve:i,reject:n})}),y0={config:M1,init:k1,__getMonacoInstance:j1},D1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Ff=D1,P1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},q1=P1;function G1({children:i}){return Ra.createElement("div",{style:q1.container},i)}var H1=G1,$1=H1;function K1({width:i,height:n,isEditorReady:s,loading:r,_ref:u,className:c,wrapperProps:h}){return Ra.createElement("section",{style:{...Ff.wrapper,width:i,height:n},...h},!s&&Ra.createElement($1,null,r),Ra.createElement("div",{ref:u,style:{...Ff.fullWidth,...!s&&Ff.hide},className:c}))}var F1=K1,v0=pt.memo(F1);function V1(i){pt.useEffect(i,[])}var E0=V1;function Y1(i,n,s=!0){let r=pt.useRef(!0);pt.useEffect(r.current||!s?()=>{r.current=!1}:i,n)}var sn=Y1;function jr(){}function Ss(i,n,s,r){return X1(i,r)||Q1(i,n,s,r)}function X1(i,n){return i.editor.getModel(b0(i,n))}function Q1(i,n,s,r){return i.editor.createModel(n,s,r?b0(i,r):void 0)}function b0(i,n){return i.Uri.parse(n)}function Z1({original:i,modified:n,language:s,originalLanguage:r,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:h,keepCurrentOriginalModel:p=!1,keepCurrentModifiedModel:d=!1,theme:_="light",loading:T="Loading...",options:v={},height:R="100%",width:q="100%",className:K,wrapperProps:Q={},beforeMount:O=jr,onMount:b=jr}){let[N,P]=pt.useState(!1),[z,Z]=pt.useState(!0),I=pt.useRef(null),C=pt.useRef(null),y=pt.useRef(null),S=pt.useRef(b),m=pt.useRef(O),L=pt.useRef(!1);E0(()=>{let it=y0.init();return it.then(k=>(C.current=k)&&Z(!1)).catch(k=>k?.type!=="cancelation"&&console.error("Monaco initialization: error:",k)),()=>I.current?at():it.cancel()}),sn(()=>{if(I.current&&C.current){let it=I.current.getOriginalEditor(),k=Ss(C.current,i||"",r||s||"text",c||"");k!==it.getModel()&&it.setModel(k)}},[c],N),sn(()=>{if(I.current&&C.current){let it=I.current.getModifiedEditor(),k=Ss(C.current,n||"",u||s||"text",h||"");k!==it.getModel()&&it.setModel(k)}},[h],N),sn(()=>{let it=I.current.getModifiedEditor();it.getOption(C.current.editor.EditorOption.readOnly)?it.setValue(n||""):n!==it.getValue()&&(it.executeEdits("",[{range:it.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),it.pushUndoStop())},[n],N),sn(()=>{I.current?.getModel()?.original.setValue(i||"")},[i],N),sn(()=>{let{original:it,modified:k}=I.current.getModel();C.current.editor.setModelLanguage(it,r||s||"text"),C.current.editor.setModelLanguage(k,u||s||"text")},[s,r,u],N),sn(()=>{C.current?.editor.setTheme(_)},[_],N),sn(()=>{I.current?.updateOptions(v)},[v],N);let M=pt.useCallback(()=>{if(!C.current)return;m.current(C.current);let it=Ss(C.current,i||"",r||s||"text",c||""),k=Ss(C.current,n||"",u||s||"text",h||"");I.current?.setModel({original:it,modified:k})},[s,n,u,i,r,c,h]),W=pt.useCallback(()=>{!L.current&&y.current&&(I.current=C.current.editor.createDiffEditor(y.current,{automaticLayout:!0,...v}),M(),C.current?.editor.setTheme(_),P(!0),L.current=!0)},[v,_,M]);pt.useEffect(()=>{N&&S.current(I.current,C.current)},[N]),pt.useEffect(()=>{!z&&!N&&W()},[z,N,W]);function at(){let it=I.current?.getModel();p||it?.original?.dispose(),d||it?.modified?.dispose(),I.current?.dispose()}return Ra.createElement(v0,{width:q,height:R,isEditorReady:N,loading:T,_ref:y,className:K,wrapperProps:Q})}var W1=Z1;pt.memo(W1);function J1(i){let n=pt.useRef();return pt.useEffect(()=>{n.current=i},[i]),n.current}var tS=J1,yu=new Map;function eS({defaultValue:i,defaultLanguage:n,defaultPath:s,value:r,language:u,path:c,theme:h="light",line:p,loading:d="Loading...",options:_={},overrideServices:T={},saveViewState:v=!0,keepCurrentModel:R=!1,width:q="100%",height:K="100%",className:Q,wrapperProps:O={},beforeMount:b=jr,onMount:N=jr,onChange:P,onValidate:z=jr}){let[Z,I]=pt.useState(!1),[C,y]=pt.useState(!0),S=pt.useRef(null),m=pt.useRef(null),L=pt.useRef(null),M=pt.useRef(N),W=pt.useRef(b),at=pt.useRef(),it=pt.useRef(r),k=tS(c),F=pt.useRef(!1),nt=pt.useRef(!1);E0(()=>{let A=y0.init();return A.then(j=>(S.current=j)&&y(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>m.current?_t():A.cancel()}),sn(()=>{let A=Ss(S.current,i||r||"",n||u||"",c||s||"");A!==m.current?.getModel()&&(v&&yu.set(k,m.current?.saveViewState()),m.current?.setModel(A),v&&m.current?.restoreViewState(yu.get(c)))},[c],Z),sn(()=>{m.current?.updateOptions(_)},[_],Z),sn(()=>{!m.current||r===void 0||(m.current.getOption(S.current.editor.EditorOption.readOnly)?m.current.setValue(r):r!==m.current.getValue()&&(nt.current=!0,m.current.executeEdits("",[{range:m.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),m.current.pushUndoStop(),nt.current=!1))},[r],Z),sn(()=>{let A=m.current?.getModel();A&&u&&S.current?.editor.setModelLanguage(A,u)},[u],Z),sn(()=>{p!==void 0&&m.current?.revealLine(p)},[p],Z),sn(()=>{S.current?.editor.setTheme(h)},[h],Z);let tt=pt.useCallback(()=>{if(!(!L.current||!S.current)&&!F.current){W.current(S.current);let A=c||s,j=Ss(S.current,r||i||"",n||u||"",A||"");m.current=S.current?.editor.create(L.current,{model:j,automaticLayout:!0,..._},T),v&&m.current.restoreViewState(yu.get(A)),S.current.editor.setTheme(h),p!==void 0&&m.current.revealLine(p),I(!0),F.current=!0}},[i,n,s,r,u,c,_,T,v,h,p]);pt.useEffect(()=>{Z&&M.current(m.current,S.current)},[Z]),pt.useEffect(()=>{!C&&!Z&&tt()},[C,Z,tt]),it.current=r,pt.useEffect(()=>{Z&&P&&(at.current?.dispose(),at.current=m.current?.onDidChangeModelContent(A=>{nt.current||P(m.current.getValue(),A)}))},[Z,P]),pt.useEffect(()=>{if(Z){let A=S.current.editor.onDidChangeMarkers(j=>{let $=m.current.getModel()?.uri;if($&&j.find(J=>J.path===$.path)){let J=S.current.editor.getModelMarkers({resource:$});z?.(J)}});return()=>{A?.dispose()}}return()=>{}},[Z,z]);function _t(){at.current?.dispose(),R?v&&yu.set(c,m.current.saveViewState()):m.current.getModel()?.dispose(),m.current.dispose()}return Ra.createElement(v0,{width:q,height:K,isEditorReady:Z,loading:d,_ref:L,className:Q,wrapperProps:O})}var nS=eS,iS=pt.memo(nS),vu=iS;const aS=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sS=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,r)=>r?r.toUpperCase():s.toLowerCase()),Om=i=>{const n=sS(i);return n.charAt(0).toUpperCase()+n.slice(1)},T0=(...i)=>i.filter((n,s,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===s).join(" ").trim(),rS=i=>{for(const n in i)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var lS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const uS=pt.forwardRef(({color:i="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:u="",children:c,iconNode:h,...p},d)=>pt.createElement("svg",{ref:d,...lS,width:n,height:n,stroke:i,strokeWidth:r?Number(s)*24/Number(n):s,className:T0("lucide",u),...!c&&!rS(p)&&{"aria-hidden":"true"},...p},[...h.map(([_,T])=>pt.createElement(_,T)),...Array.isArray(c)?c:[c]]));const Ma=(i,n)=>{const s=pt.forwardRef(({className:r,...u},c)=>pt.createElement(uS,{ref:c,iconNode:n,className:T0(`lucide-${aS(Om(i))}`,`lucide-${i}`,r),...u}));return s.displayName=Om(i),s};const oS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cS=Ma("check",oS);const fS=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],hS=Ma("code",fS);const dS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],pS=Ma("copy",dS);const _S=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Nm=Ma("database",_S);const gS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],mS=Ma("file-code",gS);const yS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Rm=Ma("info",yS);const vS=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Lu=Ma("play",vS);var S0=typeof global=="object"&&global&&global.Object===Object&&global,ES=typeof self=="object"&&self&&self.Object===Object&&self,Xn=S0||ES||Function("return this")(),Nn=Xn.Symbol,A0=Object.prototype,bS=A0.hasOwnProperty,TS=A0.toString,Nr=Nn?Nn.toStringTag:void 0;function SS(i){var n=bS.call(i,Nr),s=i[Nr];try{i[Nr]=void 0;var r=!0}catch{}var u=TS.call(i);return r&&(n?i[Nr]=s:delete i[Nr]),u}var AS=Object.prototype,OS=AS.toString;function NS(i){return OS.call(i)}var RS="[object Null]",xS="[object Undefined]",xm=Nn?Nn.toStringTag:void 0;function na(i){return i==null?i===void 0?xS:RS:xm&&xm in Object(i)?SS(i):NS(i)}function zn(i){return i!=null&&typeof i=="object"}var CS="[object Symbol]";function ao(i){return typeof i=="symbol"||zn(i)&&na(i)==CS}function so(i,n){for(var s=-1,r=i==null?0:i.length,u=Array(r);++s<r;)u[s]=n(i[s],s,i);return u}var zt=Array.isArray,Cm=Nn?Nn.prototype:void 0,wm=Cm?Cm.toString:void 0;function O0(i){if(typeof i=="string")return i;if(zt(i))return so(i,O0)+"";if(ao(i))return wm?wm.call(i):"";var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}var wS=/\s/;function LS(i){for(var n=i.length;n--&&wS.test(i.charAt(n)););return n}var MS=/^\s+/;function kS(i){return i&&i.slice(0,LS(i)+1).replace(MS,"")}function Rn(i){var n=typeof i;return i!=null&&(n=="object"||n=="function")}var Lm=NaN,US=/^[-+]0x[0-9a-f]+$/i,IS=/^0b[01]+$/i,zS=/^0o[0-7]+$/i,BS=parseInt;function jS(i){if(typeof i=="number")return i;if(ao(i))return Lm;if(Rn(i)){var n=typeof i.valueOf=="function"?i.valueOf():i;i=Rn(n)?n+"":n}if(typeof i!="string")return i===0?i:+i;i=kS(i);var s=IS.test(i);return s||zS.test(i)?BS(i.slice(2),s?2:8):US.test(i)?Lm:+i}var Mm=1/0,DS=17976931348623157e292;function PS(i){if(!i)return i===0?i:0;if(i=jS(i),i===Mm||i===-Mm){var n=i<0?-1:1;return n*DS}return i===i?i:0}function ro(i){var n=PS(i),s=n%1;return n===n?s?n-s:n:0}function Ns(i){return i}var qS="[object AsyncFunction]",GS="[object Function]",HS="[object GeneratorFunction]",$S="[object Proxy]";function Si(i){if(!Rn(i))return!1;var n=na(i);return n==GS||n==HS||n==qS||n==$S}var Vf=Xn["__core-js_shared__"],km=(function(){var i=/[^.]+$/.exec(Vf&&Vf.keys&&Vf.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function KS(i){return!!km&&km in i}var FS=Function.prototype,VS=FS.toString;function ka(i){if(i!=null){try{return VS.call(i)}catch{}try{return i+""}catch{}}return""}var YS=/[\\^$.*+?()[\]{}|]/g,XS=/^\[object .+?Constructor\]$/,QS=Function.prototype,ZS=Object.prototype,WS=QS.toString,JS=ZS.hasOwnProperty,tA=RegExp("^"+WS.call(JS).replace(YS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eA(i){if(!Rn(i)||KS(i))return!1;var n=Si(i)?tA:XS;return n.test(ka(i))}function nA(i,n){return i?.[n]}function Ua(i,n){var s=nA(i,n);return eA(s)?s:void 0}var vh=Ua(Xn,"WeakMap"),Um=Object.create,iA=(function(){function i(){}return function(n){if(!Rn(n))return{};if(Um)return Um(n);i.prototype=n;var s=new i;return i.prototype=void 0,s}})();function aA(i,n,s){switch(s.length){case 0:return i.call(n);case 1:return i.call(n,s[0]);case 2:return i.call(n,s[0],s[1]);case 3:return i.call(n,s[0],s[1],s[2])}return i.apply(n,s)}function me(){}function sA(i,n){var s=-1,r=i.length;for(n||(n=Array(r));++s<r;)n[s]=i[s];return n}var rA=800,lA=16,uA=Date.now;function oA(i){var n=0,s=0;return function(){var r=uA(),u=lA-(r-s);if(s=r,u>0){if(++n>=rA)return arguments[0]}else n=0;return i.apply(void 0,arguments)}}function cA(i){return function(){return i}}var Gu=(function(){try{var i=Ua(Object,"defineProperty");return i({},"",{}),i}catch{}})(),fA=Gu?function(i,n){return Gu(i,"toString",{configurable:!0,enumerable:!1,value:cA(n),writable:!0})}:Ns,hA=oA(fA);function N0(i,n){for(var s=-1,r=i==null?0:i.length;++s<r&&n(i[s],s,i)!==!1;);return i}function R0(i,n,s,r){for(var u=i.length,c=s+-1;++c<u;)if(n(i[c],c,i))return c;return-1}function dA(i){return i!==i}function pA(i,n,s){for(var r=s-1,u=i.length;++r<u;)if(i[r]===n)return r;return-1}function Dh(i,n,s){return n===n?pA(i,n,s):R0(i,dA,s)}function x0(i,n){var s=i==null?0:i.length;return!!s&&Dh(i,n,0)>-1}var _A=9007199254740991,gA=/^(?:0|[1-9]\d*)$/;function lo(i,n){var s=typeof i;return n=n??_A,!!n&&(s=="number"||s!="symbol"&&gA.test(i))&&i>-1&&i%1==0&&i<n}function Ph(i,n,s){n=="__proto__"&&Gu?Gu(i,n,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[n]=s}function Vr(i,n){return i===n||i!==i&&n!==n}var mA=Object.prototype,yA=mA.hasOwnProperty;function uo(i,n,s){var r=i[n];(!(yA.call(i,n)&&Vr(r,s))||s===void 0&&!(n in i))&&Ph(i,n,s)}function qh(i,n,s,r){var u=!s;s||(s={});for(var c=-1,h=n.length;++c<h;){var p=n[c],d=void 0;d===void 0&&(d=i[p]),u?Ph(s,p,d):uo(s,p,d)}return s}var Im=Math.max;function vA(i,n,s){return n=Im(n===void 0?i.length-1:n,0),function(){for(var r=arguments,u=-1,c=Im(r.length-n,0),h=Array(c);++u<c;)h[u]=r[n+u];u=-1;for(var p=Array(n+1);++u<n;)p[u]=r[u];return p[n]=s(h),aA(i,this,p)}}function Gh(i,n){return hA(vA(i,n,Ns),i+"")}var EA=9007199254740991;function Hh(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=EA}function Qn(i){return i!=null&&Hh(i.length)&&!Si(i)}function C0(i,n,s){if(!Rn(s))return!1;var r=typeof n;return(r=="number"?Qn(s)&&lo(n,s.length):r=="string"&&n in s)?Vr(s[n],i):!1}function bA(i){return Gh(function(n,s){var r=-1,u=s.length,c=u>1?s[u-1]:void 0,h=u>2?s[2]:void 0;for(c=i.length>3&&typeof c=="function"?(u--,c):void 0,h&&C0(s[0],s[1],h)&&(c=u<3?void 0:c,u=1),n=Object(n);++r<u;){var p=s[r];p&&i(n,p,r,c)}return n})}var TA=Object.prototype;function Yr(i){var n=i&&i.constructor,s=typeof n=="function"&&n.prototype||TA;return i===s}function SA(i,n){for(var s=-1,r=Array(i);++s<i;)r[s]=n(s);return r}var AA="[object Arguments]";function zm(i){return zn(i)&&na(i)==AA}var w0=Object.prototype,OA=w0.hasOwnProperty,NA=w0.propertyIsEnumerable,oo=zm((function(){return arguments})())?zm:function(i){return zn(i)&&OA.call(i,"callee")&&!NA.call(i,"callee")};function RA(){return!1}var L0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,Bm=L0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,xA=Bm&&Bm.exports===L0,jm=xA?Xn.Buffer:void 0,CA=jm?jm.isBuffer:void 0,Gr=CA||RA,wA="[object Arguments]",LA="[object Array]",MA="[object Boolean]",kA="[object Date]",UA="[object Error]",IA="[object Function]",zA="[object Map]",BA="[object Number]",jA="[object Object]",DA="[object RegExp]",PA="[object Set]",qA="[object String]",GA="[object WeakMap]",HA="[object ArrayBuffer]",$A="[object DataView]",KA="[object Float32Array]",FA="[object Float64Array]",VA="[object Int8Array]",YA="[object Int16Array]",XA="[object Int32Array]",QA="[object Uint8Array]",ZA="[object Uint8ClampedArray]",WA="[object Uint16Array]",JA="[object Uint32Array]",Jt={};Jt[KA]=Jt[FA]=Jt[VA]=Jt[YA]=Jt[XA]=Jt[QA]=Jt[ZA]=Jt[WA]=Jt[JA]=!0;Jt[wA]=Jt[LA]=Jt[HA]=Jt[MA]=Jt[$A]=Jt[kA]=Jt[UA]=Jt[IA]=Jt[zA]=Jt[BA]=Jt[jA]=Jt[DA]=Jt[PA]=Jt[qA]=Jt[GA]=!1;function tO(i){return zn(i)&&Hh(i.length)&&!!Jt[na(i)]}function co(i){return function(n){return i(n)}}var M0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,Dr=M0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,eO=Dr&&Dr.exports===M0,Yf=eO&&S0.process,ta=(function(){try{var i=Dr&&Dr.require&&Dr.require("util").types;return i||Yf&&Yf.binding&&Yf.binding("util")}catch{}})(),Dm=ta&&ta.isTypedArray,$h=Dm?co(Dm):tO,nO=Object.prototype,iO=nO.hasOwnProperty;function k0(i,n){var s=zt(i),r=!s&&oo(i),u=!s&&!r&&Gr(i),c=!s&&!r&&!u&&$h(i),h=s||r||u||c,p=h?SA(i.length,String):[],d=p.length;for(var _ in i)(n||iO.call(i,_))&&!(h&&(_=="length"||u&&(_=="offset"||_=="parent")||c&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||lo(_,d)))&&p.push(_);return p}function U0(i,n){return function(s){return i(n(s))}}var aO=U0(Object.keys,Object),sO=Object.prototype,rO=sO.hasOwnProperty;function I0(i){if(!Yr(i))return aO(i);var n=[];for(var s in Object(i))rO.call(i,s)&&s!="constructor"&&n.push(s);return n}function xn(i){return Qn(i)?k0(i):I0(i)}var lO=Object.prototype,uO=lO.hasOwnProperty,un=bA(function(i,n){if(Yr(n)||Qn(n)){qh(n,xn(n),i);return}for(var s in n)uO.call(n,s)&&uo(i,s,n[s])});function oO(i){var n=[];if(i!=null)for(var s in Object(i))n.push(s);return n}var cO=Object.prototype,fO=cO.hasOwnProperty;function hO(i){if(!Rn(i))return oO(i);var n=Yr(i),s=[];for(var r in i)r=="constructor"&&(n||!fO.call(i,r))||s.push(r);return s}function z0(i){return Qn(i)?k0(i,!0):hO(i)}var dO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pO=/^\w*$/;function Kh(i,n){if(zt(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||ao(i)?!0:pO.test(i)||!dO.test(i)||n!=null&&i in Object(n)}var Hr=Ua(Object,"create");function _O(){this.__data__=Hr?Hr(null):{},this.size=0}function gO(i){var n=this.has(i)&&delete this.__data__[i];return this.size-=n?1:0,n}var mO="__lodash_hash_undefined__",yO=Object.prototype,vO=yO.hasOwnProperty;function EO(i){var n=this.__data__;if(Hr){var s=n[i];return s===mO?void 0:s}return vO.call(n,i)?n[i]:void 0}var bO=Object.prototype,TO=bO.hasOwnProperty;function SO(i){var n=this.__data__;return Hr?n[i]!==void 0:TO.call(n,i)}var AO="__lodash_hash_undefined__";function OO(i,n){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=Hr&&n===void 0?AO:n,this}function xa(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}xa.prototype.clear=_O;xa.prototype.delete=gO;xa.prototype.get=EO;xa.prototype.has=SO;xa.prototype.set=OO;function NO(){this.__data__=[],this.size=0}function fo(i,n){for(var s=i.length;s--;)if(Vr(i[s][0],n))return s;return-1}var RO=Array.prototype,xO=RO.splice;function CO(i){var n=this.__data__,s=fo(n,i);if(s<0)return!1;var r=n.length-1;return s==r?n.pop():xO.call(n,s,1),--this.size,!0}function wO(i){var n=this.__data__,s=fo(n,i);return s<0?void 0:n[s][1]}function LO(i){return fo(this.__data__,i)>-1}function MO(i,n){var s=this.__data__,r=fo(s,i);return r<0?(++this.size,s.push([i,n])):s[r][1]=n,this}function Ai(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}Ai.prototype.clear=NO;Ai.prototype.delete=CO;Ai.prototype.get=wO;Ai.prototype.has=LO;Ai.prototype.set=MO;var $r=Ua(Xn,"Map");function kO(){this.size=0,this.__data__={hash:new xa,map:new($r||Ai),string:new xa}}function UO(i){var n=typeof i;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?i!=="__proto__":i===null}function ho(i,n){var s=i.__data__;return UO(n)?s[typeof n=="string"?"string":"hash"]:s.map}function IO(i){var n=ho(this,i).delete(i);return this.size-=n?1:0,n}function zO(i){return ho(this,i).get(i)}function BO(i){return ho(this,i).has(i)}function jO(i,n){var s=ho(this,i),r=s.size;return s.set(i,n),this.size+=s.size==r?0:1,this}function Oi(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}Oi.prototype.clear=kO;Oi.prototype.delete=IO;Oi.prototype.get=zO;Oi.prototype.has=BO;Oi.prototype.set=jO;var DO="Expected a function";function Fh(i,n){if(typeof i!="function"||n!=null&&typeof n!="function")throw new TypeError(DO);var s=function(){var r=arguments,u=n?n.apply(this,r):r[0],c=s.cache;if(c.has(u))return c.get(u);var h=i.apply(this,r);return s.cache=c.set(u,h)||c,h};return s.cache=new(Fh.Cache||Oi),s}Fh.Cache=Oi;var PO=500;function qO(i){var n=Fh(i,function(r){return s.size===PO&&s.clear(),r}),s=n.cache;return n}var GO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HO=/\\(\\)?/g,$O=qO(function(i){var n=[];return i.charCodeAt(0)===46&&n.push(""),i.replace(GO,function(s,r,u,c){n.push(u?c.replace(HO,"$1"):r||s)}),n});function KO(i){return i==null?"":O0(i)}function po(i,n){return zt(i)?i:Kh(i,n)?[i]:$O(KO(i))}function Xr(i){if(typeof i=="string"||ao(i))return i;var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}function Vh(i,n){n=po(n,i);for(var s=0,r=n.length;i!=null&&s<r;)i=i[Xr(n[s++])];return s&&s==r?i:void 0}function FO(i,n,s){var r=i==null?void 0:Vh(i,n);return r===void 0?s:r}function Yh(i,n){for(var s=-1,r=n.length,u=i.length;++s<r;)i[u+s]=n[s];return i}var Pm=Nn?Nn.isConcatSpreadable:void 0;function VO(i){return zt(i)||oo(i)||!!(Pm&&i&&i[Pm])}function Xh(i,n,s,r,u){var c=-1,h=i.length;for(s||(s=VO),u||(u=[]);++c<h;){var p=i[c];s(p)?Yh(u,p):r||(u[u.length]=p)}return u}function Un(i){var n=i==null?0:i.length;return n?Xh(i):[]}var B0=U0(Object.getPrototypeOf,Object);function j0(i,n,s){var r=-1,u=i.length;n<0&&(n=-n>u?0:u+n),s=s>u?u:s,s<0&&(s+=u),u=n>s?0:s-n>>>0,n>>>=0;for(var c=Array(u);++r<u;)c[r]=i[r+n];return c}function YO(i,n,s,r){var u=-1,c=i==null?0:i.length;for(r&&c&&(s=i[++u]);++u<c;)s=n(s,i[u],u,i);return s}function XO(){this.__data__=new Ai,this.size=0}function QO(i){var n=this.__data__,s=n.delete(i);return this.size=n.size,s}function ZO(i){return this.__data__.get(i)}function WO(i){return this.__data__.has(i)}var JO=200;function tN(i,n){var s=this.__data__;if(s instanceof Ai){var r=s.__data__;if(!$r||r.length<JO-1)return r.push([i,n]),this.size=++s.size,this;s=this.__data__=new Oi(r)}return s.set(i,n),this.size=s.size,this}function Yn(i){var n=this.__data__=new Ai(i);this.size=n.size}Yn.prototype.clear=XO;Yn.prototype.delete=QO;Yn.prototype.get=ZO;Yn.prototype.has=WO;Yn.prototype.set=tN;function eN(i,n){return i&&qh(n,xn(n),i)}var D0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,qm=D0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,nN=qm&&qm.exports===D0,Gm=nN?Xn.Buffer:void 0,Hm=Gm?Gm.allocUnsafe:void 0;function iN(i,n){var s=i.length,r=Hm?Hm(s):new i.constructor(s);return i.copy(r),r}function Qh(i,n){for(var s=-1,r=i==null?0:i.length,u=0,c=[];++s<r;){var h=i[s];n(h,s,i)&&(c[u++]=h)}return c}function P0(){return[]}var aN=Object.prototype,sN=aN.propertyIsEnumerable,$m=Object.getOwnPropertySymbols,Zh=$m?function(i){return i==null?[]:(i=Object(i),Qh($m(i),function(n){return sN.call(i,n)}))}:P0;function rN(i,n){return qh(i,Zh(i),n)}var lN=Object.getOwnPropertySymbols,uN=lN?function(i){for(var n=[];i;)Yh(n,Zh(i)),i=B0(i);return n}:P0;function q0(i,n,s){var r=n(i);return zt(i)?r:Yh(r,s(i))}function Eh(i){return q0(i,xn,Zh)}function oN(i){return q0(i,z0,uN)}var bh=Ua(Xn,"DataView"),Th=Ua(Xn,"Promise"),Os=Ua(Xn,"Set"),Km="[object Map]",cN="[object Object]",Fm="[object Promise]",Vm="[object Set]",Ym="[object WeakMap]",Xm="[object DataView]",fN=ka(bh),hN=ka($r),dN=ka(Th),pN=ka(Os),_N=ka(vh),An=na;(bh&&An(new bh(new ArrayBuffer(1)))!=Xm||$r&&An(new $r)!=Km||Th&&An(Th.resolve())!=Fm||Os&&An(new Os)!=Vm||vh&&An(new vh)!=Ym)&&(An=function(i){var n=na(i),s=n==cN?i.constructor:void 0,r=s?ka(s):"";if(r)switch(r){case fN:return Xm;case hN:return Km;case dN:return Fm;case pN:return Vm;case _N:return Ym}return n});var gN=Object.prototype,mN=gN.hasOwnProperty;function yN(i){var n=i.length,s=new i.constructor(n);return n&&typeof i[0]=="string"&&mN.call(i,"index")&&(s.index=i.index,s.input=i.input),s}var Hu=Xn.Uint8Array;function vN(i){var n=new i.constructor(i.byteLength);return new Hu(n).set(new Hu(i)),n}function EN(i,n){var s=i.buffer;return new i.constructor(s,i.byteOffset,i.byteLength)}var bN=/\w*$/;function TN(i){var n=new i.constructor(i.source,bN.exec(i));return n.lastIndex=i.lastIndex,n}var Qm=Nn?Nn.prototype:void 0,Zm=Qm?Qm.valueOf:void 0;function SN(i){return Zm?Object(Zm.call(i)):{}}function AN(i,n){var s=i.buffer;return new i.constructor(s,i.byteOffset,i.length)}var ON="[object Boolean]",NN="[object Date]",RN="[object Map]",xN="[object Number]",CN="[object RegExp]",wN="[object Set]",LN="[object String]",MN="[object Symbol]",kN="[object ArrayBuffer]",UN="[object DataView]",IN="[object Float32Array]",zN="[object Float64Array]",BN="[object Int8Array]",jN="[object Int16Array]",DN="[object Int32Array]",PN="[object Uint8Array]",qN="[object Uint8ClampedArray]",GN="[object Uint16Array]",HN="[object Uint32Array]";function $N(i,n,s){var r=i.constructor;switch(n){case kN:return vN(i);case ON:case NN:return new r(+i);case UN:return EN(i);case IN:case zN:case BN:case jN:case DN:case PN:case qN:case GN:case HN:return AN(i);case RN:return new r;case xN:case LN:return new r(i);case CN:return TN(i);case wN:return new r;case MN:return SN(i)}}function KN(i){return typeof i.constructor=="function"&&!Yr(i)?iA(B0(i)):{}}var FN="[object Map]";function VN(i){return zn(i)&&An(i)==FN}var Wm=ta&&ta.isMap,YN=Wm?co(Wm):VN,XN="[object Set]";function QN(i){return zn(i)&&An(i)==XN}var Jm=ta&&ta.isSet,ZN=Jm?co(Jm):QN,G0="[object Arguments]",WN="[object Array]",JN="[object Boolean]",tR="[object Date]",eR="[object Error]",H0="[object Function]",nR="[object GeneratorFunction]",iR="[object Map]",aR="[object Number]",$0="[object Object]",sR="[object RegExp]",rR="[object Set]",lR="[object String]",uR="[object Symbol]",oR="[object WeakMap]",cR="[object ArrayBuffer]",fR="[object DataView]",hR="[object Float32Array]",dR="[object Float64Array]",pR="[object Int8Array]",_R="[object Int16Array]",gR="[object Int32Array]",mR="[object Uint8Array]",yR="[object Uint8ClampedArray]",vR="[object Uint16Array]",ER="[object Uint32Array]",Xt={};Xt[G0]=Xt[WN]=Xt[cR]=Xt[fR]=Xt[JN]=Xt[tR]=Xt[hR]=Xt[dR]=Xt[pR]=Xt[_R]=Xt[gR]=Xt[iR]=Xt[aR]=Xt[$0]=Xt[sR]=Xt[rR]=Xt[lR]=Xt[uR]=Xt[mR]=Xt[yR]=Xt[vR]=Xt[ER]=!0;Xt[eR]=Xt[H0]=Xt[oR]=!1;function Mu(i,n,s,r,u,c){var h;if(h!==void 0)return h;if(!Rn(i))return i;var p=zt(i);if(p)return h=yN(i),sA(i,h);var d=An(i),_=d==H0||d==nR;if(Gr(i))return iN(i);if(d==$0||d==G0||_&&!u)return h=_?{}:KN(i),rN(i,eN(h,i));if(!Xt[d])return u?i:{};h=$N(i,d),c||(c=new Yn);var T=c.get(i);if(T)return T;c.set(i,h),ZN(i)?i.forEach(function(q){h.add(Mu(q,n,s,q,i,c))}):YN(i)&&i.forEach(function(q,K){h.set(K,Mu(q,n,s,K,i,c))});var v=Eh,R=p?void 0:v(i);return N0(R||i,function(q,K){R&&(K=q,q=i[K]),uo(h,K,Mu(q,n,s,K,i,c))}),h}var bR=4;function we(i){return Mu(i,bR)}function Qr(i){for(var n=-1,s=i==null?0:i.length,r=0,u=[];++n<s;){var c=i[n];c&&(u[r++]=c)}return u}var TR="__lodash_hash_undefined__";function SR(i){return this.__data__.set(i,TR),this}function AR(i){return this.__data__.has(i)}function Rs(i){var n=-1,s=i==null?0:i.length;for(this.__data__=new Oi;++n<s;)this.add(i[n])}Rs.prototype.add=Rs.prototype.push=SR;Rs.prototype.has=AR;function K0(i,n){for(var s=-1,r=i==null?0:i.length;++s<r;)if(n(i[s],s,i))return!0;return!1}function Wh(i,n){return i.has(n)}var OR=1,NR=2;function F0(i,n,s,r,u,c){var h=s&OR,p=i.length,d=n.length;if(p!=d&&!(h&&d>p))return!1;var _=c.get(i),T=c.get(n);if(_&&T)return _==n&&T==i;var v=-1,R=!0,q=s&NR?new Rs:void 0;for(c.set(i,n),c.set(n,i);++v<p;){var K=i[v],Q=n[v];if(r)var O=h?r(Q,K,v,n,i,c):r(K,Q,v,i,n,c);if(O!==void 0){if(O)continue;R=!1;break}if(q){if(!K0(n,function(b,N){if(!Wh(q,N)&&(K===b||u(K,b,s,r,c)))return q.push(N)})){R=!1;break}}else if(!(K===Q||u(K,Q,s,r,c))){R=!1;break}}return c.delete(i),c.delete(n),R}function RR(i){var n=-1,s=Array(i.size);return i.forEach(function(r,u){s[++n]=[u,r]}),s}function Jh(i){var n=-1,s=Array(i.size);return i.forEach(function(r){s[++n]=r}),s}var xR=1,CR=2,wR="[object Boolean]",LR="[object Date]",MR="[object Error]",kR="[object Map]",UR="[object Number]",IR="[object RegExp]",zR="[object Set]",BR="[object String]",jR="[object Symbol]",DR="[object ArrayBuffer]",PR="[object DataView]",ty=Nn?Nn.prototype:void 0,Xf=ty?ty.valueOf:void 0;function qR(i,n,s,r,u,c,h){switch(s){case PR:if(i.byteLength!=n.byteLength||i.byteOffset!=n.byteOffset)return!1;i=i.buffer,n=n.buffer;case DR:return!(i.byteLength!=n.byteLength||!c(new Hu(i),new Hu(n)));case wR:case LR:case UR:return Vr(+i,+n);case MR:return i.name==n.name&&i.message==n.message;case IR:case BR:return i==n+"";case kR:var p=RR;case zR:var d=r&xR;if(p||(p=Jh),i.size!=n.size&&!d)return!1;var _=h.get(i);if(_)return _==n;r|=CR,h.set(i,n);var T=F0(p(i),p(n),r,u,c,h);return h.delete(i),T;case jR:if(Xf)return Xf.call(i)==Xf.call(n)}return!1}var GR=1,HR=Object.prototype,$R=HR.hasOwnProperty;function KR(i,n,s,r,u,c){var h=s&GR,p=Eh(i),d=p.length,_=Eh(n),T=_.length;if(d!=T&&!h)return!1;for(var v=d;v--;){var R=p[v];if(!(h?R in n:$R.call(n,R)))return!1}var q=c.get(i),K=c.get(n);if(q&&K)return q==n&&K==i;var Q=!0;c.set(i,n),c.set(n,i);for(var O=h;++v<d;){R=p[v];var b=i[R],N=n[R];if(r)var P=h?r(N,b,R,n,i,c):r(b,N,R,i,n,c);if(!(P===void 0?b===N||u(b,N,s,r,c):P)){Q=!1;break}O||(O=R=="constructor")}if(Q&&!O){var z=i.constructor,Z=n.constructor;z!=Z&&"constructor"in i&&"constructor"in n&&!(typeof z=="function"&&z instanceof z&&typeof Z=="function"&&Z instanceof Z)&&(Q=!1)}return c.delete(i),c.delete(n),Q}var FR=1,ey="[object Arguments]",ny="[object Array]",Eu="[object Object]",VR=Object.prototype,iy=VR.hasOwnProperty;function YR(i,n,s,r,u,c){var h=zt(i),p=zt(n),d=h?ny:An(i),_=p?ny:An(n);d=d==ey?Eu:d,_=_==ey?Eu:_;var T=d==Eu,v=_==Eu,R=d==_;if(R&&Gr(i)){if(!Gr(n))return!1;h=!0,T=!1}if(R&&!T)return c||(c=new Yn),h||$h(i)?F0(i,n,s,r,u,c):qR(i,n,d,s,r,u,c);if(!(s&FR)){var q=T&&iy.call(i,"__wrapped__"),K=v&&iy.call(n,"__wrapped__");if(q||K){var Q=q?i.value():i,O=K?n.value():n;return c||(c=new Yn),u(Q,O,s,r,c)}}return R?(c||(c=new Yn),KR(i,n,s,r,u,c)):!1}function td(i,n,s,r,u){return i===n?!0:i==null||n==null||!zn(i)&&!zn(n)?i!==i&&n!==n:YR(i,n,s,r,td,u)}var XR=1,QR=2;function ZR(i,n,s,r){var u=s.length,c=u;if(i==null)return!c;for(i=Object(i);u--;){var h=s[u];if(h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++u<c;){h=s[u];var p=h[0],d=i[p],_=h[1];if(h[2]){if(d===void 0&&!(p in i))return!1}else{var T=new Yn,v;if(!(v===void 0?td(_,d,XR|QR,r,T):v))return!1}}return!0}function V0(i){return i===i&&!Rn(i)}function WR(i){for(var n=xn(i),s=n.length;s--;){var r=n[s],u=i[r];n[s]=[r,u,V0(u)]}return n}function Y0(i,n){return function(s){return s==null?!1:s[i]===n&&(n!==void 0||i in Object(s))}}function JR(i){var n=WR(i);return n.length==1&&n[0][2]?Y0(n[0][0],n[0][1]):function(s){return s===i||ZR(s,i,n)}}function tx(i,n){return i!=null&&n in Object(i)}function X0(i,n,s){n=po(n,i);for(var r=-1,u=n.length,c=!1;++r<u;){var h=Xr(n[r]);if(!(c=i!=null&&s(i,h)))break;i=i[h]}return c||++r!=u?c:(u=i==null?0:i.length,!!u&&Hh(u)&&lo(h,u)&&(zt(i)||oo(i)))}function ex(i,n){return i!=null&&X0(i,n,tx)}var nx=1,ix=2;function ax(i,n){return Kh(i)&&V0(n)?Y0(Xr(i),n):function(s){var r=FO(s,i);return r===void 0&&r===n?ex(s,i):td(n,r,nx|ix)}}function sx(i){return function(n){return n?.[i]}}function rx(i){return function(n){return Vh(n,i)}}function lx(i){return Kh(i)?sx(Xr(i)):rx(i)}function Zn(i){return typeof i=="function"?i:i==null?Ns:typeof i=="object"?zt(i)?ax(i[0],i[1]):JR(i):lx(i)}function ux(i,n,s,r){for(var u=-1,c=i==null?0:i.length;++u<c;){var h=i[u];n(r,h,s(h),i)}return r}function ox(i){return function(n,s,r){for(var u=-1,c=Object(n),h=r(n),p=h.length;p--;){var d=h[++u];if(s(c[d],d,c)===!1)break}return n}}var cx=ox();function fx(i,n){return i&&cx(i,n,xn)}function hx(i,n){return function(s,r){if(s==null)return s;if(!Qn(s))return i(s,r);for(var u=s.length,c=-1,h=Object(s);++c<u&&r(h[c],c,h)!==!1;);return s}}var Ia=hx(fx);function dx(i,n,s,r){return Ia(i,function(u,c,h){n(r,u,s(u),h)}),r}function px(i,n){return function(s,r){var u=zt(s)?ux:dx,c=n?n():{};return u(s,i,Zn(r),c)}}var Q0=Object.prototype,_x=Q0.hasOwnProperty,ed=Gh(function(i,n){i=Object(i);var s=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&C0(n[0],n[1],u)&&(r=1);++s<r;)for(var c=n[s],h=z0(c),p=-1,d=h.length;++p<d;){var _=h[p],T=i[_];(T===void 0||Vr(T,Q0[_])&&!_x.call(i,_))&&(i[_]=c[_])}return i});function ay(i){return zn(i)&&Qn(i)}var gx=200;function mx(i,n,s,r){var u=-1,c=x0,h=!0,p=i.length,d=[],_=n.length;if(!p)return d;n.length>=gx&&(c=Wh,h=!1,n=new Rs(n));t:for(;++u<p;){var T=i[u],v=T;if(T=T!==0?T:0,h&&v===v){for(var R=_;R--;)if(n[R]===v)continue t;d.push(T)}else c(n,v,r)||d.push(T)}return d}var _o=Gh(function(i,n){return ay(i)?mx(i,Xh(n,1,ay,!0)):[]});function Ca(i){var n=i==null?0:i.length;return n?i[n-1]:void 0}function Ce(i,n,s){var r=i==null?0:i.length;return r?(n=n===void 0?1:ro(n),j0(i,n<0?0:n,r)):[]}function Kr(i,n,s){var r=i==null?0:i.length;return r?(n=n===void 0?1:ro(n),n=r-n,j0(i,0,n<0?0:n)):[]}function yx(i){return typeof i=="function"?i:Ns}function vt(i,n){var s=zt(i)?N0:Ia;return s(i,yx(n))}function vx(i,n){for(var s=-1,r=i==null?0:i.length;++s<r;)if(!n(i[s],s,i))return!1;return!0}function Ex(i,n){var s=!0;return Ia(i,function(r,u,c){return s=!!n(r,u,c),s}),s}function In(i,n,s){var r=zt(i)?vx:Ex;return r(i,Zn(n))}function Z0(i,n){var s=[];return Ia(i,function(r,u,c){n(r,u,c)&&s.push(r)}),s}function Cn(i,n){var s=zt(i)?Qh:Z0;return s(i,Zn(n))}function bx(i){return function(n,s,r){var u=Object(n);if(!Qn(n)){var c=Zn(s);n=xn(n),s=function(p){return c(u[p],p,u)}}var h=i(n,s,r);return h>-1?u[c?n[h]:h]:void 0}}var Tx=Math.max;function Sx(i,n,s){var r=i==null?0:i.length;if(!r)return-1;var u=s==null?0:ro(s);return u<0&&(u=Tx(r+u,0)),R0(i,Zn(n),u)}var xs=bx(Sx);function Bn(i){return i&&i.length?i[0]:void 0}function Ax(i,n){var s=-1,r=Qn(i)?Array(i.length):[];return Ia(i,function(u,c,h){r[++s]=n(u,c,h)}),r}function ft(i,n){var s=zt(i)?so:Ax;return s(i,Zn(n))}function On(i,n){return Xh(ft(i,n))}var Ox=Object.prototype,Nx=Ox.hasOwnProperty,Rx=px(function(i,n,s){Nx.call(i,s)?i[s].push(n):Ph(i,s,[n])}),xx=Object.prototype,Cx=xx.hasOwnProperty;function wx(i,n){return i!=null&&Cx.call(i,n)}function yt(i,n){return i!=null&&X0(i,n,wx)}var Lx="[object String]";function Ye(i){return typeof i=="string"||!zt(i)&&zn(i)&&na(i)==Lx}function Mx(i,n){return so(n,function(s){return i[s]})}function ye(i){return i==null?[]:Mx(i,xn(i))}var kx=Math.max;function Be(i,n,s,r){i=Qn(i)?i:ye(i),s=s?ro(s):0;var u=i.length;return s<0&&(s=kx(u+s,0)),Ye(i)?s<=u&&i.indexOf(n,s)>-1:!!u&&Dh(i,n,s)>-1}function sy(i,n,s){var r=i==null?0:i.length;if(!r)return-1;var u=0;return Dh(i,n,u)}var Ux="[object Map]",Ix="[object Set]",zx=Object.prototype,Bx=zx.hasOwnProperty;function Qt(i){if(i==null)return!0;if(Qn(i)&&(zt(i)||typeof i=="string"||typeof i.splice=="function"||Gr(i)||$h(i)||oo(i)))return!i.length;var n=An(i);if(n==Ux||n==Ix)return!i.size;if(Yr(i))return!I0(i).length;for(var s in i)if(Bx.call(i,s))return!1;return!0}var jx="[object RegExp]";function Dx(i){return zn(i)&&na(i)==jx}var ry=ta&&ta.isRegExp,Ei=ry?co(ry):Dx;function bi(i){return i===void 0}var Px="Expected a function";function qx(i){if(typeof i!="function")throw new TypeError(Px);return function(){var n=arguments;switch(n.length){case 0:return!i.call(this);case 1:return!i.call(this,n[0]);case 2:return!i.call(this,n[0],n[1]);case 3:return!i.call(this,n[0],n[1],n[2])}return!i.apply(this,n)}}function Gx(i,n,s,r){if(!Rn(i))return i;n=po(n,i);for(var u=-1,c=n.length,h=c-1,p=i;p!=null&&++u<c;){var d=Xr(n[u]),_=s;if(d==="__proto__"||d==="constructor"||d==="prototype")return i;if(u!=h){var T=p[d];_=void 0,_===void 0&&(_=Rn(T)?T:lo(n[u+1])?[]:{})}uo(p,d,_),p=p[d]}return i}function Hx(i,n,s){for(var r=-1,u=n.length,c={};++r<u;){var h=n[r],p=Vh(i,h);s(p,h)&&Gx(c,po(h,i),p)}return c}function jn(i,n){if(i==null)return{};var s=so(oN(i),function(r){return[r]});return n=Zn(n),Hx(i,s,function(r,u){return n(r,u[0])})}function $x(i,n,s,r,u){return u(i,function(c,h,p){s=r?(r=!1,c):n(s,c,h,p)}),s}function on(i,n,s){var r=zt(i)?YO:$x,u=arguments.length<3;return r(i,Zn(n),s,u,Ia)}function go(i,n){var s=zt(i)?Qh:Z0;return s(i,qx(Zn(n)))}function Kx(i,n){var s;return Ia(i,function(r,u,c){return s=n(r,u,c),!s}),!!s}function W0(i,n,s){var r=zt(i)?K0:Kx;return r(i,Zn(n))}var Fx=1/0,Vx=Os&&1/Jh(new Os([,-0]))[1]==Fx?function(i){return new Os(i)}:me,Yx=200;function Xx(i,n,s){var r=-1,u=x0,c=i.length,h=!0,p=[],d=p;if(c>=Yx){var _=Vx(i);if(_)return Jh(_);h=!1,u=Wh,d=new Rs}else d=p;t:for(;++r<c;){var T=i[r],v=T;if(T=T!==0?T:0,h&&v===v){for(var R=d.length;R--;)if(d[R]===v)continue t;p.push(T)}else u(d,v,s)||(d!==p&&d.push(v),p.push(T))}return p}function nd(i){return i&&i.length?Xx(i):[]}function Sh(i){console&&console.error&&console.error(`Error: ${i}`)}function J0(i){console&&console.warn&&console.warn(`Warning: ${i}`)}function tv(i){const n=new Date().getTime(),s=i();return{time:new Date().getTime()-n,value:s}}function ev(i){function n(){}n.prototype=i;const s=new n;function r(){return typeof s.bar}return r(),r(),i}function Qx(i){return Zx(i)?i.LABEL:i.name}function Zx(i){return Ye(i.LABEL)&&i.LABEL!==""}class Wn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){this._definition=n}accept(n){n.visit(this),vt(this.definition,s=>{s.accept(n)})}}class cn extends Wn{constructor(n){super([]),this.idx=1,un(this,jn(n,s=>s!==void 0))}set definition(n){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(n){n.visit(this)}}class Cs extends Wn{constructor(n){super(n.definition),this.orgText="",un(this,jn(n,s=>s!==void 0))}}class Xe extends Wn{constructor(n){super(n.definition),this.ignoreAmbiguities=!1,un(this,jn(n,s=>s!==void 0))}}class Ve extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class Jn extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class ti extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class ve extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class Dn extends Wn{constructor(n){super(n.definition),this.idx=1,un(this,jn(n,s=>s!==void 0))}}class Pn extends Wn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){super(n.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,un(this,jn(n,s=>s!==void 0))}}class ne{constructor(n){this.idx=1,un(this,jn(n,s=>s!==void 0))}accept(n){n.visit(this)}}function Wx(i){return ft(i,ku)}function ku(i){function n(s){return ft(s,ku)}if(i instanceof cn){const s={type:"NonTerminal",name:i.nonTerminalName,idx:i.idx};return Ye(i.label)&&(s.label=i.label),s}else{if(i instanceof Xe)return{type:"Alternative",definition:n(i.definition)};if(i instanceof Ve)return{type:"Option",idx:i.idx,definition:n(i.definition)};if(i instanceof Jn)return{type:"RepetitionMandatory",idx:i.idx,definition:n(i.definition)};if(i instanceof ti)return{type:"RepetitionMandatoryWithSeparator",idx:i.idx,separator:ku(new ne({terminalType:i.separator})),definition:n(i.definition)};if(i instanceof Dn)return{type:"RepetitionWithSeparator",idx:i.idx,separator:ku(new ne({terminalType:i.separator})),definition:n(i.definition)};if(i instanceof ve)return{type:"Repetition",idx:i.idx,definition:n(i.definition)};if(i instanceof Pn)return{type:"Alternation",idx:i.idx,definition:n(i.definition)};if(i instanceof ne){const s={type:"Terminal",name:i.terminalType.name,label:Qx(i.terminalType),idx:i.idx};Ye(i.label)&&(s.terminalLabel=i.label);const r=i.terminalType.PATTERN;return i.terminalType.PATTERN&&(s.pattern=Ei(r)?r.source:r),s}else{if(i instanceof Cs)return{type:"Rule",name:i.name,orgText:i.orgText,definition:n(i.definition)};throw Error("non exhaustive match")}}}class ws{visit(n){const s=n;switch(s.constructor){case cn:return this.visitNonTerminal(s);case Xe:return this.visitAlternative(s);case Ve:return this.visitOption(s);case Jn:return this.visitRepetitionMandatory(s);case ti:return this.visitRepetitionMandatoryWithSeparator(s);case Dn:return this.visitRepetitionWithSeparator(s);case ve:return this.visitRepetition(s);case Pn:return this.visitAlternation(s);case ne:return this.visitTerminal(s);case Cs:return this.visitRule(s);default:throw Error("non exhaustive match")}}visitNonTerminal(n){}visitAlternative(n){}visitOption(n){}visitRepetition(n){}visitRepetitionMandatory(n){}visitRepetitionMandatoryWithSeparator(n){}visitRepetitionWithSeparator(n){}visitAlternation(n){}visitTerminal(n){}visitRule(n){}}function Jx(i){return i instanceof Xe||i instanceof Ve||i instanceof ve||i instanceof Jn||i instanceof ti||i instanceof Dn||i instanceof ne||i instanceof Cs}function $u(i,n=[]){return i instanceof Ve||i instanceof ve||i instanceof Dn?!0:i instanceof Pn?W0(i.definition,r=>$u(r,n)):i instanceof cn&&Be(n,i)?!1:i instanceof Wn?(i instanceof cn&&n.push(i),In(i.definition,r=>$u(r,n))):!1}function tC(i){return i instanceof Pn}function Vn(i){if(i instanceof cn)return"SUBRULE";if(i instanceof Ve)return"OPTION";if(i instanceof Pn)return"OR";if(i instanceof Jn)return"AT_LEAST_ONE";if(i instanceof ti)return"AT_LEAST_ONE_SEP";if(i instanceof Dn)return"MANY_SEP";if(i instanceof ve)return"MANY";if(i instanceof ne)return"CONSUME";throw Error("non exhaustive match")}class mo{walk(n,s=[]){vt(n.definition,(r,u)=>{const c=Ce(n.definition,u+1);if(r instanceof cn)this.walkProdRef(r,c,s);else if(r instanceof ne)this.walkTerminal(r,c,s);else if(r instanceof Xe)this.walkFlat(r,c,s);else if(r instanceof Ve)this.walkOption(r,c,s);else if(r instanceof Jn)this.walkAtLeastOne(r,c,s);else if(r instanceof ti)this.walkAtLeastOneSep(r,c,s);else if(r instanceof Dn)this.walkManySep(r,c,s);else if(r instanceof ve)this.walkMany(r,c,s);else if(r instanceof Pn)this.walkOr(r,c,s);else throw Error("non exhaustive match")})}walkTerminal(n,s,r){}walkProdRef(n,s,r){}walkFlat(n,s,r){const u=s.concat(r);this.walk(n,u)}walkOption(n,s,r){const u=s.concat(r);this.walk(n,u)}walkAtLeastOne(n,s,r){const u=[new Ve({definition:n.definition})].concat(s,r);this.walk(n,u)}walkAtLeastOneSep(n,s,r){const u=ly(n,s,r);this.walk(n,u)}walkMany(n,s,r){const u=[new Ve({definition:n.definition})].concat(s,r);this.walk(n,u)}walkManySep(n,s,r){const u=ly(n,s,r);this.walk(n,u)}walkOr(n,s,r){const u=s.concat(r);vt(n.definition,c=>{const h=new Xe({definition:[c]});this.walk(h,u)})}}function ly(i,n,s){return[new Ve({definition:[new ne({terminalType:i.separator})].concat(i.definition)})].concat(n,s)}function Zr(i){if(i instanceof cn)return Zr(i.referencedRule);if(i instanceof ne)return iC(i);if(Jx(i))return eC(i);if(tC(i))return nC(i);throw Error("non exhaustive match")}function eC(i){let n=[];const s=i.definition;let r=0,u=s.length>r,c,h=!0;for(;u&&h;)c=s[r],h=$u(c),n=n.concat(Zr(c)),r=r+1,u=s.length>r;return nd(n)}function nC(i){const n=ft(i.definition,s=>Zr(s));return nd(Un(n))}function iC(i){return[i.terminalType]}const nv="_~IN~_";class aC extends mo{constructor(n){super(),this.topProd=n,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(n,s,r){}walkProdRef(n,s,r){const u=rC(n.referencedRule,n.idx)+this.topProd.name,c=s.concat(r),h=new Xe({definition:c}),p=Zr(h);this.follows[u]=p}}function sC(i){const n={};return vt(i,s=>{const r=new aC(s).startWalking();un(n,r)}),n}function rC(i,n){return i.name+n+nv}function Et(i){return i.charCodeAt(0)}function Qf(i,n){Array.isArray(i)?i.forEach(function(s){n.push(s)}):n.push(i)}function Rr(i,n){if(i[n]===!0)throw"duplicate flag "+n;i[n],i[n]=!0}function Es(i){if(i===void 0)throw Error("Internal Error - Should never get here!");return!0}function lC(){throw Error("Internal Error - Should never get here!")}function uy(i){return i.type==="Character"}const Ku=[];for(let i=Et("0");i<=Et("9");i++)Ku.push(i);const Fu=[Et("_")].concat(Ku);for(let i=Et("a");i<=Et("z");i++)Fu.push(i);for(let i=Et("A");i<=Et("Z");i++)Fu.push(i);const oy=[Et(" "),Et("\f"),Et(`
|
|
20
|
+
`),Et("\r"),Et(" "),Et("\v"),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et("\u2028"),Et("\u2029"),Et(" "),Et(" "),Et(" "),Et("\uFEFF")],uC=/[0-9a-fA-F]/,bu=/[0-9]/,oC=/[1-9]/;class cC{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(n){this.idx=n.idx,this.input=n.input,this.groupIdx=n.groupIdx}pattern(n){this.idx=0,this.input=n,this.groupIdx=0,this.consumeChar("/");const s=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:n.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Rr(r,"global");break;case"i":Rr(r,"ignoreCase");break;case"m":Rr(r,"multiLine");break;case"u":Rr(r,"unicode");break;case"y":Rr(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:s,loc:this.loc(0)}}disjunction(){const n=[],s=this.idx;for(n.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),n.push(this.alternative());return{type:"Disjunction",value:n,loc:this.loc(s)}}alternative(){const n=[],s=this.idx;for(;this.isTerm();)n.push(this.term());return{type:"Alternative",value:n,loc:this.loc(s)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const n=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(n)};case"$":return{type:"EndAnchor",loc:this.loc(n)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(n)};case"B":return{type:"NonWordBoundary",loc:this.loc(n)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let s;switch(this.popChar()){case"=":s="Lookahead";break;case"!":s="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":s="Lookbehind";break;case"!":s="NegativeLookbehind"}break}}Es(s);const r=this.disjunction();return this.consumeChar(")"),{type:s,value:r,loc:this.loc(n)}}return lC()}quantifier(n=!1){let s;const r=this.idx;switch(this.popChar()){case"*":s={atLeast:0,atMost:1/0};break;case"+":s={atLeast:1,atMost:1/0};break;case"?":s={atLeast:0,atMost:1};break;case"{":const u=this.integerIncludingZero();switch(this.popChar()){case"}":s={atLeast:u,atMost:u};break;case",":let c;this.isDigit()?(c=this.integerIncludingZero(),s={atLeast:u,atMost:c}):s={atLeast:u,atMost:1/0},this.consumeChar("}");break}if(n===!0&&s===void 0)return;Es(s);break}if(!(n===!0&&s===void 0)&&Es(s))return this.peekChar(0)==="?"?(this.consumeChar("?"),s.greedy=!1):s.greedy=!0,s.type="Quantifier",s.loc=this.loc(r),s}atom(){let n;const s=this.idx;switch(this.peekChar()){case".":n=this.dotAll();break;case"\\":n=this.atomEscape();break;case"[":n=this.characterClass();break;case"(":n=this.group();break}if(n===void 0&&this.isPatternCharacter()&&(n=this.patternCharacter()),Es(n))return n.loc=this.loc(s),this.isQuantifier()&&(n.quantifier=this.quantifier()),n}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Et(`
|
|
21
21
|
`),Et("\r"),Et("\u2028"),Et("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let n,s=!1;switch(this.popChar()){case"d":n=Ku;break;case"D":n=Ku,s=!0;break;case"s":n=oy;break;case"S":n=oy,s=!0;break;case"w":n=Fu;break;case"W":n=Fu,s=!0;break}if(Es(n))return{type:"Set",value:n,complement:s}}controlEscapeAtom(){let n;switch(this.popChar()){case"f":n=Et("\f");break;case"n":n=Et(`
|
|
22
22
|
`);break;case"r":n=Et("\r");break;case"t":n=Et(" ");break;case"v":n=Et("\v");break}if(Es(n))return{type:"Character",value:n}}controlLetterEscapeAtom(){this.consumeChar("c");const n=this.popChar();if(/[a-zA-Z]/.test(n)===!1)throw Error("Invalid ");return{type:"Character",value:n.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Et("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const n=this.popChar();return{type:"Character",value:Et(n)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
23
23
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const n=this.popChar();return{type:"Character",value:Et(n)}}}characterClass(){const n=[];let s=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),s=!0);this.isClassAtom();){const r=this.classAtom();if(r.type,uy(r)&&this.isRangeDash()){this.consumeChar("-");const u=this.classAtom();if(u.type,uy(u)){if(u.value<r.value)throw Error("Range out of order in character class");n.push({from:r.value,to:u.value})}else Qf(r.value,n),n.push(Et("-")),Qf(u.value,n)}else Qf(r.value,n)}return this.consumeChar("]"),{type:"Set",complement:s,value:n}}classAtom(){switch(this.peekChar()){case"]":case`
|
|
24
|
-
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:Et("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let n=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),n=!1):this.groupIdx++;const s=this.disjunction();this.consumeChar(")");const r={type:"Group",capturing:n,value:s};return n&&(r.idx=this.groupIdx),r}positiveInteger(){let n=this.popChar();if(
|
|
24
|
+
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:Et("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let n=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),n=!1):this.groupIdx++;const s=this.disjunction();this.consumeChar(")");const r={type:"Group",capturing:n,value:s};return n&&(r.idx=this.groupIdx),r}positiveInteger(){let n=this.popChar();if(oC.test(n)===!1)throw Error("Expecting a positive integer");for(;bu.test(this.peekChar(0));)n+=this.popChar();return parseInt(n,10)}integerIncludingZero(){let n=this.popChar();if(bu.test(n)===!1)throw Error("Expecting an integer");for(;bu.test(this.peekChar(0));)n+=this.popChar();return parseInt(n,10)}patternCharacter(){const n=this.popChar();switch(n){case`
|
|
25
25
|
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:Et(n)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return bu.test(this.peekChar(0))}isClassAtom(n=0){switch(this.peekChar(n)){case"]":case`
|
|
26
26
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){const n=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(n)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
27
|
-
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(n){let s="";for(let u=0;u<n;u++){const c=this.popChar();if(
|
|
28
|
-
`;function
|
|
27
|
+
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(n){let s="";for(let u=0;u<n;u++){const c=this.popChar();if(uC.test(c)===!1)throw Error("Expecting a HexDecimal digits");s+=c}return{type:"Character",value:parseInt(s,16)}}peekChar(n=0){return this.input[this.idx+n]}popChar(){const n=this.peekChar(0);return this.consumeChar(void 0),n}consumeChar(n){if(n!==void 0&&this.input[this.idx]!==n)throw Error("Expected: '"+n+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(n){return{begin:n,end:this.idx}}}class id{visitChildren(n){for(const s in n){const r=n[s];n.hasOwnProperty(s)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(u=>{this.visit(u)},this))}}visit(n){switch(n.type){case"Pattern":this.visitPattern(n);break;case"Flags":this.visitFlags(n);break;case"Disjunction":this.visitDisjunction(n);break;case"Alternative":this.visitAlternative(n);break;case"StartAnchor":this.visitStartAnchor(n);break;case"EndAnchor":this.visitEndAnchor(n);break;case"WordBoundary":this.visitWordBoundary(n);break;case"NonWordBoundary":this.visitNonWordBoundary(n);break;case"Lookahead":this.visitLookahead(n);break;case"NegativeLookahead":this.visitNegativeLookahead(n);break;case"Lookbehind":this.visitLookbehind(n);break;case"NegativeLookbehind":this.visitNegativeLookbehind(n);break;case"Character":this.visitCharacter(n);break;case"Set":this.visitSet(n);break;case"Group":this.visitGroup(n);break;case"GroupBackReference":this.visitGroupBackReference(n);break;case"Quantifier":this.visitQuantifier(n);break}this.visitChildren(n)}visitPattern(n){}visitFlags(n){}visitDisjunction(n){}visitAlternative(n){}visitStartAnchor(n){}visitEndAnchor(n){}visitWordBoundary(n){}visitNonWordBoundary(n){}visitLookahead(n){}visitNegativeLookahead(n){}visitLookbehind(n){}visitNegativeLookbehind(n){}visitCharacter(n){}visitSet(n){}visitGroup(n){}visitGroupBackReference(n){}visitQuantifier(n){}}let Uu={};const fC=new cC;function yo(i){const n=i.toString();if(Uu.hasOwnProperty(n))return Uu[n];{const s=fC.pattern(n);return Uu[n]=s,s}}function hC(){Uu={}}const iv="Complement Sets are not supported for first char optimization",Vu=`Unable to use "first char" lexer optimizations:
|
|
28
|
+
`;function dC(i,n=!1){try{const s=yo(i);return Ah(s.value,{},s.flags.ignoreCase)}catch(s){if(s.message===iv)n&&J0(`${Vu} Unable to optimize: < ${i.toString()} >
|
|
29
29
|
Complement Sets cannot be automatically optimized.
|
|
30
30
|
This will disable the lexer's first char optimizations.
|
|
31
31
|
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let r="";n&&(r=`
|
|
@@ -33,48 +33,48 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33
33
|
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Sh(`${Vu}
|
|
34
34
|
Failed parsing: < ${i.toString()} >
|
|
35
35
|
Using the @chevrotain/regexp-to-ast library
|
|
36
|
-
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function Ah(i,n,s){switch(i.type){case"Disjunction":for(let u=0;u<i.value.length;u++)Ah(i.value[u],n,s);break;case"Alternative":const r=i.value;for(let u=0;u<r.length;u++){const c=r[u];switch(c.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const h=c;switch(h.type){case"Character":Tu(h.value,n,s);break;case"Set":if(h.complement===!0)throw Error(
|
|
37
|
-
`],tracer:(N,P)=>P()});const s=n.tracer;s("initCharCodeToOptimizedIndexMap",()=>{
|
|
36
|
+
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function Ah(i,n,s){switch(i.type){case"Disjunction":for(let u=0;u<i.value.length;u++)Ah(i.value[u],n,s);break;case"Alternative":const r=i.value;for(let u=0;u<r.length;u++){const c=r[u];switch(c.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const h=c;switch(h.type){case"Character":Tu(h.value,n,s);break;case"Set":if(h.complement===!0)throw Error(iv);vt(h.value,d=>{if(typeof d=="number")Tu(d,n,s);else{const _=d;if(s===!0)for(let T=_.from;T<=_.to;T++)Tu(T,n,s);else{for(let T=_.from;T<=_.to&&T<Ir;T++)Tu(T,n,s);if(_.to>=Ir){const T=_.from>=Ir?_.from:Ir,v=_.to,R=ea(T),q=ea(v);for(let K=R;K<=q;K++)n[K]=K}}}});break;case"Group":Ah(h.value,n,s);break;default:throw Error("Non Exhaustive Match")}const p=h.quantifier!==void 0&&h.quantifier.atLeast===0;if(h.type==="Group"&&Oh(h)===!1||h.type!=="Group"&&p===!1)break}break;default:throw Error("non exhaustive match!")}return ye(n)}function Tu(i,n,s){const r=ea(i);n[r]=r,s===!0&&pC(i,n)}function pC(i,n){const s=String.fromCharCode(i),r=s.toUpperCase();if(r!==s){const u=ea(r.charCodeAt(0));n[u]=u}else{const u=s.toLowerCase();if(u!==s){const c=ea(u.charCodeAt(0));n[c]=c}}}function cy(i,n){return xs(i.value,s=>{if(typeof s=="number")return Be(n,s);{const r=s;return xs(n,u=>r.from<=u&&u<=r.to)!==void 0}})}function Oh(i){const n=i.quantifier;return n&&n.atLeast===0?!0:i.value?zt(i.value)?In(i.value,Oh):Oh(i.value):!1}class _C extends id{constructor(n){super(),this.targetCharCodes=n,this.found=!1}visitChildren(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return;case"Lookbehind":this.visitLookbehind(n);return;case"NegativeLookbehind":this.visitNegativeLookbehind(n);return}super.visitChildren(n)}}visitCharacter(n){Be(this.targetCharCodes,n.value)&&(this.found=!0)}visitSet(n){n.complement?cy(n,this.targetCharCodes)===void 0&&(this.found=!0):cy(n,this.targetCharCodes)!==void 0&&(this.found=!0)}}function ad(i,n){if(n instanceof RegExp){const s=yo(n),r=new _C(i);return r.visit(s),r.found}else return xs(n,s=>Be(i,s.charCodeAt(0)))!==void 0}const wa="PATTERN",Ur="defaultMode",Su="modes";let av=typeof new RegExp("(?:)").sticky=="boolean";function gC(i,n){n=ed(n,{useSticky:av,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
37
|
+
`],tracer:(N,P)=>P()});const s=n.tracer;s("initCharCodeToOptimizedIndexMap",()=>{PC()});let r;s("Reject Lexer.NA",()=>{r=go(i,N=>N[wa]===ke.NA)});let u=!1,c;s("Transform Patterns",()=>{u=!1,c=ft(r,N=>{const P=N[wa];if(Ei(P)){const z=P.source;return z.length===1&&z!=="^"&&z!=="$"&&z!=="."&&!P.ignoreCase?z:z.length===2&&z[0]==="\\"&&!Be(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],z[1])?z[1]:n.useSticky?hy(P):fy(P)}else{if(Si(P))return u=!0,{exec:P};if(typeof P=="object")return u=!0,P;if(typeof P=="string"){if(P.length===1)return P;{const z=P.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),Z=new RegExp(z);return n.useSticky?hy(Z):fy(Z)}}else throw Error("non exhaustive match")}})});let h,p,d,_,T;s("misc mapping",()=>{h=ft(r,N=>N.tokenTypeIdx),p=ft(r,N=>{const P=N.GROUP;if(P!==ke.SKIPPED){if(Ye(P))return P;if(bi(P))return!1;throw Error("non exhaustive match")}}),d=ft(r,N=>{const P=N.LONGER_ALT;if(P)return zt(P)?ft(P,Z=>sy(r,Z)):[sy(r,P)]}),_=ft(r,N=>N.PUSH_MODE),T=ft(r,N=>yt(N,"POP_MODE"))});let v;s("Line Terminator Handling",()=>{const N=lv(n.lineTerminatorCharacters);v=ft(r,P=>!1),n.positionTracking!=="onlyOffset"&&(v=ft(r,P=>yt(P,"LINE_BREAKS")?!!P.LINE_BREAKS:rv(P,N)===!1&&ad(N,P.PATTERN)))});let R,q,K,Q;s("Misc Mapping #2",()=>{R=ft(r,sv),q=ft(c,BC),K=on(r,(N,P)=>{const z=P.GROUP;return Ye(z)&&z!==ke.SKIPPED&&(N[z]=[]),N},{}),Q=ft(c,(N,P)=>({pattern:c[P],longerAlt:d[P],canLineTerminator:v[P],isCustom:R[P],short:q[P],group:p[P],push:_[P],pop:T[P],tokenTypeIdx:h[P],tokenType:r[P]}))});let O=!0,b=[];return n.safeMode||s("First Char Optimization",()=>{b=on(r,(N,P,z)=>{if(typeof P.PATTERN=="string"){const Z=P.PATTERN.charCodeAt(0),I=ea(Z);Zf(N,I,Q[z])}else if(zt(P.START_CHARS_HINT)){let Z;vt(P.START_CHARS_HINT,I=>{const C=typeof I=="string"?I.charCodeAt(0):I,y=ea(C);Z!==y&&(Z=y,Zf(N,y,Q[z]))})}else if(Ei(P.PATTERN))if(P.PATTERN.unicode)O=!1,n.ensureOptimizations&&Sh(`${Vu} Unable to analyze < ${P.PATTERN.toString()} > pattern.
|
|
38
38
|
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
39
39
|
This will disable the lexer's first char optimizations.
|
|
40
|
-
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const Z=
|
|
40
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const Z=dC(P.PATTERN,n.ensureOptimizations);Qt(Z)&&(O=!1),vt(Z,I=>{Zf(N,I,Q[z])})}else n.ensureOptimizations&&Sh(`${Vu} TokenType: <${P.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
41
41
|
This will disable the lexer's first char optimizations.
|
|
42
|
-
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),O=!1;return N},[])}),{emptyGroups:K,patternIdxToConfig:Q,charCodeToPatternIdxToConfig:b,hasCustom:u,canBeOptimized:O}}function
|
|
42
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),O=!1;return N},[])}),{emptyGroups:K,patternIdxToConfig:Q,charCodeToPatternIdxToConfig:b,hasCustom:u,canBeOptimized:O}}function mC(i,n){let s=[];const r=vC(i);s=s.concat(r.errors);const u=EC(r.valid),c=u.valid;return s=s.concat(u.errors),s=s.concat(yC(c)),s=s.concat(xC(c)),s=s.concat(CC(c,n)),s=s.concat(wC(c)),s}function yC(i){let n=[];const s=Cn(i,r=>Ei(r[wa]));return n=n.concat(TC(s)),n=n.concat(OC(s)),n=n.concat(NC(s)),n=n.concat(RC(s)),n=n.concat(SC(s)),n}function vC(i){const n=Cn(i,u=>!yt(u,wa)),s=ft(n,u=>({message:"Token Type: ->"+u.name+"<- missing static 'PATTERN' property",type:re.MISSING_PATTERN,tokenTypes:[u]})),r=_o(i,n);return{errors:s,valid:r}}function EC(i){const n=Cn(i,u=>{const c=u[wa];return!Ei(c)&&!Si(c)&&!yt(c,"exec")&&!Ye(c)}),s=ft(n,u=>({message:"Token Type: ->"+u.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:re.INVALID_PATTERN,tokenTypes:[u]})),r=_o(i,n);return{errors:s,valid:r}}const bC=/[^\\][$]/;function TC(i){class n extends id{constructor(){super(...arguments),this.found=!1}visitEndAnchor(c){this.found=!0}}const s=Cn(i,u=>{const c=u.PATTERN;try{const h=yo(c),p=new n;return p.visit(h),p.found}catch{return bC.test(c.source)}});return ft(s,u=>({message:`Unexpected RegExp Anchor Error:
|
|
43
43
|
Token Type: ->`+u.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
44
|
-
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:re.EOI_ANCHOR_FOUND,tokenTypes:[u]}))}function
|
|
44
|
+
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:re.EOI_ANCHOR_FOUND,tokenTypes:[u]}))}function SC(i){const n=Cn(i,r=>r.PATTERN.test(""));return ft(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' must not match an empty string",type:re.EMPTY_MATCH_PATTERN,tokenTypes:[r]}))}const AC=/[^\\[][\^]|^\^/;function OC(i){class n extends id{constructor(){super(...arguments),this.found=!1}visitStartAnchor(c){this.found=!0}}const s=Cn(i,u=>{const c=u.PATTERN;try{const h=yo(c),p=new n;return p.visit(h),p.found}catch{return AC.test(c.source)}});return ft(s,u=>({message:`Unexpected RegExp Anchor Error:
|
|
45
45
|
Token Type: ->`+u.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
46
|
-
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:re.SOI_ANCHOR_FOUND,tokenTypes:[u]}))}function
|
|
46
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:re.SOI_ANCHOR_FOUND,tokenTypes:[u]}))}function NC(i){const n=Cn(i,r=>{const u=r[wa];return u instanceof RegExp&&(u.multiline||u.global)});return ft(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:re.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[r]}))}function RC(i){const n=[];let s=ft(i,c=>on(i,(h,p)=>(c.PATTERN.source===p.PATTERN.source&&!Be(n,p)&&p.PATTERN!==ke.NA&&(n.push(p),h.push(p)),h),[]));s=Qr(s);const r=Cn(s,c=>c.length>1);return ft(r,c=>{const h=ft(c,d=>d.name);return{message:`The same RegExp pattern ->${Bn(c).PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:re.DUPLICATE_PATTERNS_FOUND,tokenTypes:c}})}function xC(i){const n=Cn(i,r=>{if(!yt(r,"GROUP"))return!1;const u=r.GROUP;return u!==ke.SKIPPED&&u!==ke.NA&&!Ye(u)});return ft(n,r=>({message:"Token Type: ->"+r.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:re.INVALID_GROUP_TYPE_FOUND,tokenTypes:[r]}))}function CC(i,n){const s=Cn(i,u=>u.PUSH_MODE!==void 0&&!Be(n,u.PUSH_MODE));return ft(s,u=>({message:`Token Type: ->${u.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${u.PUSH_MODE}<-which does not exist`,type:re.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[u]}))}function wC(i){const n=[],s=on(i,(r,u,c)=>{const h=u.PATTERN;return h===ke.NA||(Ye(h)?r.push({str:h,idx:c,tokenType:u}):Ei(h)&&MC(h)&&r.push({str:h.source,idx:c,tokenType:u})),r},[]);return vt(i,(r,u)=>{vt(s,({str:c,idx:h,tokenType:p})=>{if(u<h&&LC(c,r.PATTERN)){const d=`Token: ->${p.name}<- can never be matched.
|
|
47
47
|
Because it appears AFTER the Token Type ->${r.name}<-in the lexer's definition.
|
|
48
|
-
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;n.push({message:d,type:re.UNREACHABLE_PATTERN,tokenTypes:[r,p]})}})}),n}function
|
|
48
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;n.push({message:d,type:re.UNREACHABLE_PATTERN,tokenTypes:[r,p]})}})}),n}function LC(i,n){if(Ei(n)){if(kC(n))return!1;const s=n.exec(i);return s!==null&&s.index===0}else{if(Si(n))return n(i,0,[],{});if(yt(n,"exec"))return n.exec(i,0,[],{});if(typeof n=="string")return n===i;throw Error("non exhaustive match")}}function MC(i){return xs([".","\\","[","]","|","^","$","(",")","?","*","+","{"],s=>i.source.indexOf(s)!==-1)===void 0}function kC(i){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(i.source)}function fy(i){const n=i.ignoreCase?"i":"";return new RegExp(`^(?:${i.source})`,n)}function hy(i){const n=i.ignoreCase?"iy":"y";return new RegExp(`${i.source}`,n)}function UC(i,n,s){const r=[];return yt(i,Ur)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ur+`> property in its definition
|
|
49
49
|
`,type:re.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),yt(i,Su)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+Su+`> property in its definition
|
|
50
50
|
`,type:re.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),yt(i,Su)&&yt(i,Ur)&&!yt(i.modes,i.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${Ur}: <${i.defaultMode}>which does not exist
|
|
51
51
|
`,type:re.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),yt(i,Su)&&vt(i.modes,(u,c)=>{vt(u,(h,p)=>{if(bi(h))r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${c}> at index: <${p}>
|
|
52
52
|
`,type:re.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(yt(h,"LONGER_ALT")){const d=zt(h.LONGER_ALT)?h.LONGER_ALT:[h.LONGER_ALT];vt(d,_=>{!bi(_)&&!Be(u,_)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${_.name}> on token <${h.name}> outside of mode <${c}>
|
|
53
|
-
`,type:re.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),r}function
|
|
53
|
+
`,type:re.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),r}function IC(i,n,s){const r=[];let u=!1;const c=Qr(Un(ye(i.modes))),h=go(c,d=>d[wa]===ke.NA),p=lv(s);return n&&vt(h,d=>{const _=rv(d,p);if(_!==!1){const v={message:DC(d,_),type:_.issue,tokenType:d};r.push(v)}else yt(d,"LINE_BREAKS")?d.LINE_BREAKS===!0&&(u=!0):ad(p,d.PATTERN)&&(u=!0)}),n&&!u&&r.push({message:`Warning: No LINE_BREAKS Found.
|
|
54
54
|
This Lexer has been defined to track line and column information,
|
|
55
55
|
But none of the Token Types can be identified as matching a line terminator.
|
|
56
56
|
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
|
57
|
-
for details.`,type:re.NO_LINE_BREAKS_FLAGS}),r}function
|
|
57
|
+
for details.`,type:re.NO_LINE_BREAKS_FLAGS}),r}function zC(i){const n={},s=xn(i);return vt(s,r=>{const u=i[r];if(zt(u))n[r]=[];else throw Error("non exhaustive match")}),n}function sv(i){const n=i.PATTERN;if(Ei(n))return!1;if(Si(n))return!0;if(yt(n,"exec"))return!0;if(Ye(n))return!1;throw Error("non exhaustive match")}function BC(i){return Ye(i)&&i.length===1?i.charCodeAt(0):!1}const jC={test:function(i){const n=i.length;for(let s=this.lastIndex;s<n;s++){const r=i.charCodeAt(s);if(r===10)return this.lastIndex=s+1,!0;if(r===13)return i.charCodeAt(s+1)===10?this.lastIndex=s+2:this.lastIndex=s+1,!0}return!1},lastIndex:0};function rv(i,n){if(yt(i,"LINE_BREAKS"))return!1;if(Ei(i.PATTERN)){try{ad(n,i.PATTERN)}catch(s){return{issue:re.IDENTIFY_TERMINATOR,errMsg:s.message}}return!1}else{if(Ye(i.PATTERN))return!1;if(sv(i))return{issue:re.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function DC(i,n){if(n.issue===re.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
58
58
|
The problem is in the <${i.name}> Token Type
|
|
59
59
|
Root cause: ${n.errMsg}.
|
|
60
60
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(n.issue===re.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
61
61
|
The problem is in the <${i.name}> Token Type
|
|
62
|
-
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function
|
|
63
|
-
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:
|
|
64
|
-
a boolean 2nd argument is no longer supported`);this.config=un({},zr,s);const r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let u,c=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===zr.lineTerminatorsPattern)this.config.lineTerminatorsPattern=
|
|
65
|
-
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(s.safeMode&&s.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),zt(n)?u={modes:{defaultMode:we(n)},defaultMode:Ur}:(c=!1,u=we(n))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(
|
|
62
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function lv(i){return ft(i,s=>Ye(s)?s.charCodeAt(0):s)}function Zf(i,n,s){i[n]===void 0?i[n]=[s]:i[n].push(s)}const Ir=256;let Iu=[];function ea(i){return i<Ir?i:Iu[i]}function PC(){if(Qt(Iu)){Iu=new Array(65536);for(let i=0;i<65536;i++)Iu[i]=i>255?255+~~(i/255):i}}function Wr(i,n){const s=i.tokenTypeIdx;return s===n.tokenTypeIdx?!0:n.isParent===!0&&n.categoryMatchesMap[s]===!0}function Yu(i,n){return i.tokenTypeIdx===n.tokenTypeIdx}let dy=1;const uv={};function Jr(i){const n=qC(i);GC(n),$C(n),HC(n),vt(n,s=>{s.isParent=s.categoryMatches.length>0})}function qC(i){let n=we(i),s=i,r=!0;for(;r;){s=Qr(Un(ft(s,c=>c.CATEGORIES)));const u=_o(s,n);n=n.concat(u),Qt(u)?r=!1:s=u}return n}function GC(i){vt(i,n=>{cv(n)||(uv[dy]=n,n.tokenTypeIdx=dy++),py(n)&&!zt(n.CATEGORIES)&&(n.CATEGORIES=[n.CATEGORIES]),py(n)||(n.CATEGORIES=[]),KC(n)||(n.categoryMatches=[]),FC(n)||(n.categoryMatchesMap={})})}function HC(i){vt(i,n=>{n.categoryMatches=[],vt(n.categoryMatchesMap,(s,r)=>{n.categoryMatches.push(uv[r].tokenTypeIdx)})})}function $C(i){vt(i,n=>{ov([],n)})}function ov(i,n){vt(i,s=>{n.categoryMatchesMap[s.tokenTypeIdx]=!0}),vt(n.CATEGORIES,s=>{const r=i.concat(n);Be(r,s)||ov(r,s)})}function cv(i){return yt(i,"tokenTypeIdx")}function py(i){return yt(i,"CATEGORIES")}function KC(i){return yt(i,"categoryMatches")}function FC(i){return yt(i,"categoryMatchesMap")}function VC(i){return yt(i,"tokenTypeIdx")}const YC={buildUnableToPopLexerModeMessage(i){return`Unable to pop Lexer Mode after encountering Token ->${i.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(i,n,s,r,u,c){return`unexpected character: ->${i.charAt(n)}<- at offset: ${n}, skipped ${s} characters.`}};var re;(function(i){i[i.MISSING_PATTERN=0]="MISSING_PATTERN",i[i.INVALID_PATTERN=1]="INVALID_PATTERN",i[i.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",i[i.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",i[i.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",i[i.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",i[i.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",i[i.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",i[i.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",i[i.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",i[i.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",i[i.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",i[i.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",i[i.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",i[i.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",i[i.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",i[i.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",i[i.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(re||(re={}));const zr={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
63
|
+
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:YC,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(zr);class ke{constructor(n,s=zr){if(this.lexerDefinition=n,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(u,c)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const h=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${h}--> <${u}>`);const{time:p,value:d}=tv(c),_=p>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&_(`${h}<-- <${u}> time: ${p}ms`),this.traceInitIndent--,d}else return c()},typeof s=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
64
|
+
a boolean 2nd argument is no longer supported`);this.config=un({},zr,s);const r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let u,c=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===zr.lineTerminatorsPattern)this.config.lineTerminatorsPattern=jC;else if(this.config.lineTerminatorCharacters===zr.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
65
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(s.safeMode&&s.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),zt(n)?u={modes:{defaultMode:we(n)},defaultMode:Ur}:(c=!1,u=we(n))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(UC(u,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(IC(u,this.trackStartLines,this.config.lineTerminatorCharacters))})),u.modes=u.modes?u.modes:{},vt(u.modes,(p,d)=>{u.modes[d]=go(p,_=>bi(_))});const h=xn(u.modes);if(vt(u.modes,(p,d)=>{this.TRACE_INIT(`Mode: <${d}> processing`,()=>{if(this.modes.push(d),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(mC(p,h))}),Qt(this.lexerDefinitionErrors)){Jr(p);let _;this.TRACE_INIT("analyzeTokenTypes",()=>{_=gC(p,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:s.positionTracking,ensureOptimizations:s.ensureOptimizations,safeMode:s.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[d]=_.patternIdxToConfig,this.charCodeToPatternIdxToConfig[d]=_.charCodeToPatternIdxToConfig,this.emptyGroups=un({},this.emptyGroups,_.emptyGroups),this.hasCustom=_.hasCustom||this.hasCustom,this.canModeBeOptimized[d]=_.canBeOptimized}})}),this.defaultMode=u.defaultMode,!Qt(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const d=ft(this.lexerDefinitionErrors,_=>_.message).join(`-----------------------
|
|
66
66
|
`);throw new Error(`Errors detected in definition of Lexer:
|
|
67
|
-
`+d)}vt(this.lexerDefinitionWarning,p=>{
|
|
67
|
+
`+d)}vt(this.lexerDefinitionWarning,p=>{J0(p.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(av?(this.chopInput=Ns,this.match=this.matchWithTest):(this.updateLastIndex=me,this.match=this.matchWithExec),c&&(this.handleModes=me),this.trackStartLines===!1&&(this.computeNewColumn=Ns),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=me),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const p=on(this.canModeBeOptimized,(d,_,T)=>(_===!1&&d.push(T),d),[]);if(s.ensureOptimizations&&!Qt(p))throw Error(`Lexer Modes: < ${p.join(", ")} > cannot be optimized.
|
|
68
68
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
69
|
-
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{
|
|
69
|
+
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{hC()}),this.TRACE_INIT("toFastProperties",()=>{ev(this)})})}tokenize(n,s=this.defaultMode){if(!Qt(this.lexerDefinitionErrors)){const u=ft(this.lexerDefinitionErrors,c=>c.message).join(`-----------------------
|
|
70
70
|
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
71
|
-
`+u)}return this.tokenizeInternal(n,s)}tokenizeInternal(n,s){let r,u,c,h,p,d,_,T,v,R,q,K,Q,O,b;const N=n,P=N.length;let z=0,Z=0;const I=this.hasCustom?0:Math.floor(n.length/10),C=new Array(I),y=[];let S=this.trackStartLines?1:void 0,m=this.trackStartLines?1:void 0;const L=
|
|
72
|
-
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return yt(i,_y)&&(s.CATEGORIES=i[_y]),Jr([s]),yt(i,gy)&&(s.LABEL=i[gy]),yt(i,my)&&(s.GROUP=i[my]),yt(i,vy)&&(s.POP_MODE=i[vy]),yt(i,yy)&&(s.PUSH_MODE=i[yy]),yt(i,Ey)&&(s.LONGER_ALT=i[Ey]),yt(i,by)&&(s.LINE_BREAKS=i[by]),yt(i,Ty)&&(s.START_CHARS_HINT=i[Ty]),s}const La=bt({name:"EOF",pattern:ke.NA});Jr([La]);function sd(i,n,s,r,u,c,h,p){return{image:n,startOffset:s,endOffset:r,startLine:u,endLine:c,startColumn:h,endColumn:p,tokenTypeIdx:i.tokenTypeIdx,tokenType:i}}function
|
|
71
|
+
`+u)}return this.tokenizeInternal(n,s)}tokenizeInternal(n,s){let r,u,c,h,p,d,_,T,v,R,q,K,Q,O,b;const N=n,P=N.length;let z=0,Z=0;const I=this.hasCustom?0:Math.floor(n.length/10),C=new Array(I),y=[];let S=this.trackStartLines?1:void 0,m=this.trackStartLines?1:void 0;const L=zC(this.emptyGroups),M=this.trackStartLines,W=this.config.lineTerminatorsPattern;let at=0,it=[],k=[];const F=[],nt=[];Object.freeze(nt);let tt;function _t(){return it}function A(st){const ht=ea(st),ct=k[ht];return ct===void 0?nt:ct}const j=st=>{if(F.length===1&&st.tokenType.PUSH_MODE===void 0){const ht=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(st);y.push({offset:st.startOffset,line:st.startLine,column:st.startColumn,length:st.image.length,message:ht})}else{F.pop();const ht=Ca(F);it=this.patternIdxToConfig[ht],k=this.charCodeToPatternIdxToConfig[ht],at=it.length;const ct=this.canModeBeOptimized[ht]&&this.config.safeMode===!1;k&&ct?tt=A:tt=_t}};function $(st){F.push(st),k=this.charCodeToPatternIdxToConfig[st],it=this.patternIdxToConfig[st],at=it.length,at=it.length;const ht=this.canModeBeOptimized[st]&&this.config.safeMode===!1;k&&ht?tt=A:tt=_t}$.call(this,s);let J;const lt=this.config.recoveryEnabled;for(;z<P;){d=null;const st=N.charCodeAt(z),ht=tt(st),ct=ht.length;for(r=0;r<ct;r++){J=ht[r];const rt=J.pattern;_=null;const Nt=J.short;if(Nt!==!1?st===Nt&&(d=rt):J.isCustom===!0?(b=rt.exec(N,z,C,L),b!==null?(d=b[0],b.payload!==void 0&&(_=b.payload)):d=null):(this.updateLastIndex(rt,z),d=this.match(rt,n,z)),d!==null){if(p=J.longerAlt,p!==void 0){const gt=p.length;for(c=0;c<gt;c++){const Rt=it[p[c]],qt=Rt.pattern;if(T=null,Rt.isCustom===!0?(b=qt.exec(N,z,C,L),b!==null?(h=b[0],b.payload!==void 0&&(T=b.payload)):h=null):(this.updateLastIndex(qt,z),h=this.match(qt,n,z)),h&&h.length>d.length){d=h,_=T,J=Rt;break}}}break}}if(d!==null){if(v=d.length,R=J.group,R!==void 0&&(q=J.tokenTypeIdx,K=this.createTokenInstance(d,z,q,J.tokenType,S,m,v),this.handlePayload(K,_),R===!1?Z=this.addToken(C,Z,K):L[R].push(K)),n=this.chopInput(n,v),z=z+v,m=this.computeNewColumn(m,v),M===!0&&J.canLineTerminator===!0){let rt=0,Nt,gt;W.lastIndex=0;do Nt=W.test(d),Nt===!0&&(gt=W.lastIndex-1,rt++);while(Nt===!0);rt!==0&&(S=S+rt,m=v-gt,this.updateTokenEndLineColumnLocation(K,R,gt,rt,S,m,v))}this.handleModes(J,j,$,K)}else{const rt=z,Nt=S,gt=m;let Rt=lt===!1;for(;Rt===!1&&z<P;)for(n=this.chopInput(n,1),z++,u=0;u<at;u++){const qt=it[u],wt=qt.pattern,kt=qt.short;if(kt!==!1?N.charCodeAt(z)===kt&&(Rt=!0):qt.isCustom===!0?Rt=wt.exec(N,z,C,L)!==null:(this.updateLastIndex(wt,z),Rt=wt.exec(n)!==null),Rt===!0)break}if(Q=z-rt,m=this.computeNewColumn(m,Q),O=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(N,rt,Q,Nt,gt,Ca(F)),y.push({offset:rt,line:Nt,column:gt,length:Q,message:O}),lt===!1)break}}return this.hasCustom||(C.length=Z),{tokens:C,groups:L,errors:y}}handleModes(n,s,r,u){if(n.pop===!0){const c=n.push;s(u),c!==void 0&&r.call(this,c)}else n.push!==void 0&&r.call(this,n.push)}chopInput(n,s){return n.substring(s)}updateLastIndex(n,s){n.lastIndex=s}updateTokenEndLineColumnLocation(n,s,r,u,c,h,p){let d,_;s!==void 0&&(d=r===p-1,_=d?-1:0,u===1&&d===!0||(n.endLine=c+_,n.endColumn=h-1+-_))}computeNewColumn(n,s){return n+s}createOffsetOnlyToken(n,s,r,u){return{image:n,startOffset:s,tokenTypeIdx:r,tokenType:u}}createStartOnlyToken(n,s,r,u,c,h){return{image:n,startOffset:s,startLine:c,startColumn:h,tokenTypeIdx:r,tokenType:u}}createFullToken(n,s,r,u,c,h,p){return{image:n,startOffset:s,endOffset:s+p-1,startLine:c,endLine:c,startColumn:h,endColumn:h+p-1,tokenTypeIdx:r,tokenType:u}}addTokenUsingPush(n,s,r){return n.push(r),s}addTokenUsingMemberAccess(n,s,r){return n[s]=r,s++,s}handlePayloadNoCustom(n,s){}handlePayloadWithCustom(n,s){s!==null&&(n.payload=s)}matchWithTest(n,s,r){return n.test(s)===!0?s.substring(r,n.lastIndex):null}matchWithExec(n,s){const r=n.exec(s);return r!==null?r[0]:null}}ke.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";ke.NA=/NOT_APPLICABLE/;function Pr(i){return fv(i)?i.LABEL:i.name}function fv(i){return Ye(i.LABEL)&&i.LABEL!==""}const XC="parent",_y="categories",gy="label",my="group",yy="push_mode",vy="pop_mode",Ey="longer_alt",by="line_breaks",Ty="start_chars_hint";function bt(i){return QC(i)}function QC(i){const n=i.pattern,s={};if(s.name=i.name,bi(n)||(s.PATTERN=n),yt(i,XC))throw`The parent property is no longer supported.
|
|
72
|
+
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return yt(i,_y)&&(s.CATEGORIES=i[_y]),Jr([s]),yt(i,gy)&&(s.LABEL=i[gy]),yt(i,my)&&(s.GROUP=i[my]),yt(i,vy)&&(s.POP_MODE=i[vy]),yt(i,yy)&&(s.PUSH_MODE=i[yy]),yt(i,Ey)&&(s.LONGER_ALT=i[Ey]),yt(i,by)&&(s.LINE_BREAKS=i[by]),yt(i,Ty)&&(s.START_CHARS_HINT=i[Ty]),s}const La=bt({name:"EOF",pattern:ke.NA});Jr([La]);function sd(i,n,s,r,u,c,h,p){return{image:n,startOffset:s,endOffset:r,startLine:u,endLine:c,startColumn:h,endColumn:p,tokenTypeIdx:i.tokenTypeIdx,tokenType:i}}function ZC(i,n){return Wr(i,n)}const hv={buildMismatchTokenMessage({expected:i,actual:n,previous:s,ruleName:r}){return`Expecting ${fv(i)?`--> ${Pr(i)} <--`:`token of type --> ${i.name} <--`} but found --> '${n.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:i,ruleName:n}){return"Redundant input, expecting EOF but found: "+i.image},buildNoViableAltMessage({expectedPathsPerAlt:i,actual:n,previous:s,customUserDescription:r,ruleName:u}){const c="Expecting: ",p=`
|
|
73
73
|
but found: '`+Bn(n).image+"'";if(r)return c+r+p;{const d=on(i,(R,q)=>R.concat(q),[]),_=ft(d,R=>`[${ft(R,q=>Pr(q)).join(", ")}]`),v=`one of these possible Token sequences:
|
|
74
74
|
${ft(_,(R,q)=>` ${q+1}. ${R}`).join(`
|
|
75
75
|
`)}`;return c+v+p}},buildEarlyExitMessage({expectedIterationPaths:i,actual:n,customUserDescription:s,ruleName:r}){const u="Expecting: ",h=`
|
|
76
76
|
but found: '`+Bn(n).image+"'";if(s)return u+s+h;{const d=`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
77
|
-
<${ft(i,_=>`[${ft(_,T=>Pr(T)).join(",")}]`).join(" ,")}>`;return u+d+h}}};Object.freeze(
|
|
77
|
+
<${ft(i,_=>`[${ft(_,T=>Pr(T)).join(",")}]`).join(" ,")}>`;return u+d+h}}};Object.freeze(hv);const WC={buildRuleNotFoundError(i,n){return"Invalid grammar, reference to a rule which is not defined: ->"+n.nonTerminalName+`<-
|
|
78
78
|
inside top level rule: ->`+i.name+"<-"}},Oa={buildDuplicateFoundError(i,n){function s(T){return T instanceof ne?T.terminalType.name:T instanceof cn?T.nonTerminalName:""}const r=i.name,u=Bn(n),c=u.idx,h=Vn(u),p=s(u),d=c>0;let _=`->${h}${d?c:""}<- ${p?`with argument: ->${p}<-`:""}
|
|
79
79
|
appears more than once (${n.length} times) in the top level rule: ->${r}<-.
|
|
80
80
|
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
@@ -99,37 +99,37 @@ rule: <${n}> can be invoked from itself (directly or indirectly)
|
|
|
99
99
|
without consuming any Tokens. The grammar path that causes this is:
|
|
100
100
|
${r}
|
|
101
101
|
To fix this refactor your grammar to remove the left recursion.
|
|
102
|
-
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(i){return"deprecated"},buildDuplicateRuleNameError(i){let n;return i.topLevelRule instanceof Cs?n=i.topLevelRule.name:n=i.topLevelRule,`Duplicate definition, rule: ->${n}<- is already defined in the grammar: ->${i.grammarName}<-`}};function WC(i,n){const s=new JC(i,n);return s.resolveRefs(),s.errors}class JC extends ws{constructor(n,s){super(),this.nameToTopRule=n,this.errMsgProvider=s,this.errors=[]}resolveRefs(){vt(ye(this.nameToTopRule),n=>{this.currTopLevel=n,n.accept(this)})}visitNonTerminal(n){const s=this.nameToTopRule[n.nonTerminalName];if(s)n.referencedRule=s;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:ze.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}}}class tw extends mo{constructor(n,s){super(),this.topProd=n,this.path=s,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=we(this.path.ruleStack).reverse(),this.occurrenceStack=we(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(n,s=[]){this.found||super.walk(n,s)}walkProdRef(n,s,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){const u=s.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,u)}}updateExpectedNext(){Qt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class ew extends tw{constructor(n,s){super(n,s),this.path=s,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(n,s,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){const u=s.concat(r),c=new Xe({definition:u});this.possibleTokTypes=Zr(c),this.found=!0}}}class vo extends mo{constructor(n,s){super(),this.topRule=n,this.occurrence=s,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class nw extends vo{walkMany(n,s,r){if(n.idx===this.occurrence){const u=Bn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkMany(n,s,r)}}class Sy extends vo{walkManySep(n,s,r){if(n.idx===this.occurrence){const u=Bn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkManySep(n,s,r)}}class iw extends vo{walkAtLeastOne(n,s,r){if(n.idx===this.occurrence){const u=Bn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOne(n,s,r)}}class Ay extends vo{walkAtLeastOneSep(n,s,r){if(n.idx===this.occurrence){const u=Bn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOneSep(n,s,r)}}function Nh(i,n,s=[]){s=we(s);let r=[],u=0;function c(p){return p.concat(Ce(i,u+1))}function h(p){const d=Nh(c(p),n,s);return r.concat(d)}for(;s.length<n&&u<i.length;){const p=i[u];if(p instanceof Xe)return h(p.definition);if(p instanceof cn)return h(p.definition);if(p instanceof Ve)r=h(p.definition);else if(p instanceof Jn){const d=p.definition.concat([new ve({definition:p.definition})]);return h(d)}else if(p instanceof ti){const d=[new Xe({definition:p.definition}),new ve({definition:[new ne({terminalType:p.separator})].concat(p.definition)})];return h(d)}else if(p instanceof Dn){const d=p.definition.concat([new ve({definition:[new ne({terminalType:p.separator})].concat(p.definition)})]);r=h(d)}else if(p instanceof ve){const d=p.definition.concat([new ve({definition:p.definition})]);r=h(d)}else{if(p instanceof Pn)return vt(p.definition,d=>{Qt(d.definition)===!1&&(r=h(d.definition))}),r;if(p instanceof ne)s.push(p.terminalType);else throw Error("non exhaustive match")}u++}return r.push({partialPath:s,suffixDef:Ce(i,u)}),r}function hv(i,n,s,r){const u="EXIT_NONE_TERMINAL",c=[u],h="EXIT_ALTERNATIVE";let p=!1;const d=n.length,_=d-r-1,T=[],v=[];for(v.push({idx:-1,def:i,ruleStack:[],occurrenceStack:[]});!Qt(v);){const R=v.pop();if(R===h){p&&Ca(v).idx<=_&&v.pop();continue}const q=R.def,K=R.idx,Q=R.ruleStack,O=R.occurrenceStack;if(Qt(q))continue;const b=q[0];if(b===u){const N={idx:K,def:Ce(q),ruleStack:Kr(Q),occurrenceStack:Kr(O)};v.push(N)}else if(b instanceof ne)if(K<d-1){const N=K+1,P=n[N];if(s(P,b.terminalType)){const z={idx:N,def:Ce(q),ruleStack:Q,occurrenceStack:O};v.push(z)}}else if(K===d-1)T.push({nextTokenType:b.terminalType,nextTokenOccurrence:b.idx,ruleStack:Q,occurrenceStack:O}),p=!0;else throw Error("non exhaustive match");else if(b instanceof cn){const N=we(Q);N.push(b.nonTerminalName);const P=we(O);P.push(b.idx);const z={idx:K,def:b.definition.concat(c,Ce(q)),ruleStack:N,occurrenceStack:P};v.push(z)}else if(b instanceof Ve){const N={idx:K,def:Ce(q),ruleStack:Q,occurrenceStack:O};v.push(N),v.push(h);const P={idx:K,def:b.definition.concat(Ce(q)),ruleStack:Q,occurrenceStack:O};v.push(P)}else if(b instanceof Jn){const N=new ve({definition:b.definition,idx:b.idx}),P=b.definition.concat([N],Ce(q)),z={idx:K,def:P,ruleStack:Q,occurrenceStack:O};v.push(z)}else if(b instanceof ti){const N=new ne({terminalType:b.separator}),P=new ve({definition:[N].concat(b.definition),idx:b.idx}),z=b.definition.concat([P],Ce(q)),Z={idx:K,def:z,ruleStack:Q,occurrenceStack:O};v.push(Z)}else if(b instanceof Dn){const N={idx:K,def:Ce(q),ruleStack:Q,occurrenceStack:O};v.push(N),v.push(h);const P=new ne({terminalType:b.separator}),z=new ve({definition:[P].concat(b.definition),idx:b.idx}),Z=b.definition.concat([z],Ce(q)),I={idx:K,def:Z,ruleStack:Q,occurrenceStack:O};v.push(I)}else if(b instanceof ve){const N={idx:K,def:Ce(q),ruleStack:Q,occurrenceStack:O};v.push(N),v.push(h);const P=new ve({definition:b.definition,idx:b.idx}),z=b.definition.concat([P],Ce(q)),Z={idx:K,def:z,ruleStack:Q,occurrenceStack:O};v.push(Z)}else if(b instanceof Pn)for(let N=b.definition.length-1;N>=0;N--){const P=b.definition[N],z={idx:K,def:P.definition.concat(Ce(q)),ruleStack:Q,occurrenceStack:O};v.push(z),v.push(h)}else if(b instanceof Xe)v.push({idx:K,def:b.definition.concat(Ce(q)),ruleStack:Q,occurrenceStack:O});else if(b instanceof Cs)v.push(aw(b,K,Q,O));else throw Error("non exhaustive match")}return T}function aw(i,n,s,r){const u=we(s);u.push(i.name);const c=we(r);return c.push(1),{idx:n,def:i.definition,ruleStack:u,occurrenceStack:c}}var se;(function(i){i[i.OPTION=0]="OPTION",i[i.REPETITION=1]="REPETITION",i[i.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",i[i.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",i[i.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",i[i.ALTERNATION=5]="ALTERNATION"})(se||(se={}));function dv(i){if(i instanceof Ve||i==="Option")return se.OPTION;if(i instanceof ve||i==="Repetition")return se.REPETITION;if(i instanceof Jn||i==="RepetitionMandatory")return se.REPETITION_MANDATORY;if(i instanceof ti||i==="RepetitionMandatoryWithSeparator")return se.REPETITION_MANDATORY_WITH_SEPARATOR;if(i instanceof Dn||i==="RepetitionWithSeparator")return se.REPETITION_WITH_SEPARATOR;if(i instanceof Pn||i==="Alternation")return se.ALTERNATION;throw Error("non exhaustive match")}function sw(i,n,s,r,u,c){const h=rd(i,n,s),p=gv(h)?Yu:Wr;return c(h,r,p,u)}function rw(i,n,s,r,u,c){const h=ld(i,n,u,s),p=gv(h)?Yu:Wr;return c(h[0],p,r)}function lw(i,n,s,r){const u=i.length,c=In(i,h=>In(h,p=>p.length===1));if(n)return function(h){const p=ft(h,d=>d.GATE);for(let d=0;d<u;d++){const _=i[d],T=_.length,v=p[d];if(!(v!==void 0&&v.call(this)===!1))t:for(let R=0;R<T;R++){const q=_[R],K=q.length;for(let Q=0;Q<K;Q++){const O=this.LA(Q+1);if(s(O,q[Q])===!1)continue t}return d}}};if(c&&!r){const h=ft(i,d=>Un(d)),p=on(h,(d,_,T)=>(vt(_,v=>{yt(d,v.tokenTypeIdx)||(d[v.tokenTypeIdx]=T),vt(v.categoryMatches,R=>{yt(d,R)||(d[R]=T)})}),d),{});return function(){const d=this.LA(1);return p[d.tokenTypeIdx]}}else return function(){for(let h=0;h<u;h++){const p=i[h],d=p.length;t:for(let _=0;_<d;_++){const T=p[_],v=T.length;for(let R=0;R<v;R++){const q=this.LA(R+1);if(s(q,T[R])===!1)continue t}return h}}}}function uw(i,n,s){const r=In(i,c=>c.length===1),u=i.length;if(r&&!s){const c=Un(i);if(c.length===1&&Qt(c[0].categoryMatches)){const p=c[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===p}}else{const h=on(c,(p,d,_)=>(p[d.tokenTypeIdx]=!0,vt(d.categoryMatches,T=>{p[T]=!0}),p),[]);return function(){const p=this.LA(1);return h[p.tokenTypeIdx]===!0}}}else return function(){t:for(let c=0;c<u;c++){const h=i[c],p=h.length;for(let d=0;d<p;d++){const _=this.LA(d+1);if(n(_,h[d])===!1)continue t}return!0}return!1}}class ow extends mo{constructor(n,s,r){super(),this.topProd=n,this.targetOccurrence=s,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(n,s,r,u){return n.idx===this.targetOccurrence&&this.targetProdType===s?(this.restDef=r.concat(u),!0):!1}walkOption(n,s,r){this.checkIsTarget(n,se.OPTION,s,r)||super.walkOption(n,s,r)}walkAtLeastOne(n,s,r){this.checkIsTarget(n,se.REPETITION_MANDATORY,s,r)||super.walkOption(n,s,r)}walkAtLeastOneSep(n,s,r){this.checkIsTarget(n,se.REPETITION_MANDATORY_WITH_SEPARATOR,s,r)||super.walkOption(n,s,r)}walkMany(n,s,r){this.checkIsTarget(n,se.REPETITION,s,r)||super.walkOption(n,s,r)}walkManySep(n,s,r){this.checkIsTarget(n,se.REPETITION_WITH_SEPARATOR,s,r)||super.walkOption(n,s,r)}}class pv extends ws{constructor(n,s,r){super(),this.targetOccurrence=n,this.targetProdType=s,this.targetRef=r,this.result=[]}checkIsTarget(n,s){n.idx===this.targetOccurrence&&this.targetProdType===s&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)}visitOption(n){this.checkIsTarget(n,se.OPTION)}visitRepetition(n){this.checkIsTarget(n,se.REPETITION)}visitRepetitionMandatory(n){this.checkIsTarget(n,se.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(n){this.checkIsTarget(n,se.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(n){this.checkIsTarget(n,se.REPETITION_WITH_SEPARATOR)}visitAlternation(n){this.checkIsTarget(n,se.ALTERNATION)}}function Oy(i){const n=new Array(i);for(let s=0;s<i;s++)n[s]=[];return n}function Wf(i){let n=[""];for(let s=0;s<i.length;s++){const r=i[s],u=[];for(let c=0;c<n.length;c++){const h=n[c];u.push(h+"_"+r.tokenTypeIdx);for(let p=0;p<r.categoryMatches.length;p++){const d="_"+r.categoryMatches[p];u.push(h+d)}}n=u}return n}function cw(i,n,s){for(let r=0;r<i.length;r++){if(r===s)continue;const u=i[r];for(let c=0;c<n.length;c++){const h=n[c];if(u[h]===!0)return!1}}return!0}function _v(i,n){const s=ft(i,h=>Nh([h],1)),r=Oy(s.length),u=ft(s,h=>{const p={};return vt(h,d=>{const _=Wf(d.partialPath);vt(_,T=>{p[T]=!0})}),p});let c=s;for(let h=1;h<=n;h++){const p=c;c=Oy(p.length);for(let d=0;d<p.length;d++){const _=p[d];for(let T=0;T<_.length;T++){const v=_[T].partialPath,R=_[T].suffixDef,q=Wf(v);if(cw(u,q,d)||Qt(R)||v.length===n){const Q=r[d];if(Rh(Q,v)===!1){Q.push(v);for(let O=0;O<q.length;O++){const b=q[O];u[d][b]=!0}}}else{const Q=Nh(R,h+1,v);c[d]=c[d].concat(Q),vt(Q,O=>{const b=Wf(O.partialPath);vt(b,N=>{u[d][N]=!0})})}}}}return r}function rd(i,n,s,r){const u=new pv(i,se.ALTERNATION,r);return n.accept(u),_v(u.result,s)}function ld(i,n,s,r){const u=new pv(i,s);n.accept(u);const c=u.result,p=new ow(n,i,s).startWalking(),d=new Xe({definition:c}),_=new Xe({definition:p});return _v([d,_],r)}function Rh(i,n){t:for(let s=0;s<i.length;s++){const r=i[s];if(r.length===n.length){for(let u=0;u<r.length;u++){const c=n[u],h=r[u];if((c===h||h.categoryMatchesMap[c.tokenTypeIdx]!==void 0)===!1)continue t}return!0}}return!1}function fw(i,n){return i.length<n.length&&In(i,(s,r)=>{const u=n[r];return s===u||u.categoryMatchesMap[s.tokenTypeIdx]})}function gv(i){return In(i,n=>In(n,s=>In(s,r=>Qt(r.categoryMatches))))}function hw(i){const n=i.lookaheadStrategy.validate({rules:i.rules,tokenTypes:i.tokenTypes,grammarName:i.grammarName});return ft(n,s=>Object.assign({type:ze.CUSTOM_LOOKAHEAD_VALIDATION},s))}function dw(i,n,s,r){const u=On(i,d=>pw(d,s)),c=Nw(i,n,s),h=On(i,d=>Tw(d,s)),p=On(i,d=>mw(d,i,r,s));return u.concat(c,h,p)}function pw(i,n){const s=new gw;i.accept(s);const r=s.allProductions,u=Nx(r,_w),c=jn(u,p=>p.length>1);return ft(ye(c),p=>{const d=Bn(p),_=n.buildDuplicateFoundError(i,p),T=Vn(d),v={message:_,type:ze.DUPLICATE_PRODUCTIONS,ruleName:i.name,dslName:T,occurrence:d.idx},R=mv(d);return R&&(v.parameter=R),v})}function _w(i){return`${Vn(i)}_#_${i.idx}_#_${mv(i)}`}function mv(i){return i instanceof ne?i.terminalType.name:i instanceof cn?i.nonTerminalName:""}class gw extends ws{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(n){this.allProductions.push(n)}visitOption(n){this.allProductions.push(n)}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}visitAlternation(n){this.allProductions.push(n)}visitTerminal(n){this.allProductions.push(n)}}function mw(i,n,s,r){const u=[];if(on(n,(h,p)=>p.name===i.name?h+1:h,0)>1){const h=r.buildDuplicateRuleNameError({topLevelRule:i,grammarName:s});u.push({message:h,type:ze.DUPLICATE_RULE_NAME,ruleName:i.name})}return u}function yw(i,n,s){const r=[];let u;return Be(n,i)||(u=`Invalid rule override, rule: ->${i}<- cannot be overridden in the grammar: ->${s}<-as it is not defined in any of the super grammars `,r.push({message:u,type:ze.INVALID_RULE_OVERRIDE,ruleName:i})),r}function yv(i,n,s,r=[]){const u=[],c=zu(n.definition);if(Qt(c))return[];{const h=i.name;Be(c,i)&&u.push({message:s.buildLeftRecursionError({topLevelRule:i,leftRecursionPath:r}),type:ze.LEFT_RECURSION,ruleName:h});const d=_o(c,r.concat([i])),_=On(d,T=>{const v=we(r);return v.push(T),yv(i,T,s,v)});return u.concat(_)}}function zu(i){let n=[];if(Qt(i))return n;const s=Bn(i);if(s instanceof cn)n.push(s.referencedRule);else if(s instanceof Xe||s instanceof Ve||s instanceof Jn||s instanceof ti||s instanceof Dn||s instanceof ve)n=n.concat(zu(s.definition));else if(s instanceof Pn)n=Un(ft(s.definition,c=>zu(c.definition)));else if(!(s instanceof ne))throw Error("non exhaustive match");const r=$u(s),u=i.length>1;if(r&&u){const c=Ce(i);return n.concat(zu(c))}else return n}class ud extends ws{constructor(){super(...arguments),this.alternations=[]}visitAlternation(n){this.alternations.push(n)}}function vw(i,n){const s=new ud;i.accept(s);const r=s.alternations;return On(r,c=>{const h=Kr(c.definition);return On(h,(p,d)=>{const _=hv([p],[],Wr,1);return Qt(_)?[{message:n.buildEmptyAlternationError({topLevelRule:i,alternation:c,emptyChoiceIdx:d}),type:ze.NONE_LAST_EMPTY_ALT,ruleName:i.name,occurrence:c.idx,alternative:d+1}]:[]})})}function Ew(i,n,s){const r=new ud;i.accept(r);let u=r.alternations;return u=go(u,h=>h.ignoreAmbiguities===!0),On(u,h=>{const p=h.idx,d=h.maxLookahead||n,_=rd(p,i,d,h),T=Aw(_,h,i,s),v=Ow(_,h,i,s);return T.concat(v)})}class bw extends ws{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}}function Tw(i,n){const s=new ud;i.accept(s);const r=s.alternations;return On(r,c=>c.definition.length>255?[{message:n.buildTooManyAlternativesError({topLevelRule:i,alternation:c}),type:ze.TOO_MANY_ALTS,ruleName:i.name,occurrence:c.idx}]:[])}function Sw(i,n,s){const r=[];return vt(i,u=>{const c=new bw;u.accept(c);const h=c.allProductions;vt(h,p=>{const d=dv(p),_=p.maxLookahead||n,T=p.idx,R=ld(T,u,d,_)[0];if(Qt(Un(R))){const q=s.buildEmptyRepetitionError({topLevelRule:u,repetition:p});r.push({message:q,type:ze.NO_NON_EMPTY_LOOKAHEAD,ruleName:u.name})}})}),r}function Aw(i,n,s,r){const u=[],c=on(i,(p,d,_)=>(n.definition[_].ignoreAmbiguities===!0||vt(d,T=>{const v=[_];vt(i,(R,q)=>{_!==q&&Rh(R,T)&&n.definition[q].ignoreAmbiguities!==!0&&v.push(q)}),v.length>1&&!Rh(u,T)&&(u.push(T),p.push({alts:v,path:T}))}),p),[]);return ft(c,p=>{const d=ft(p.alts,T=>T+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:s,alternation:n,ambiguityIndices:d,prefixPath:p.path}),type:ze.AMBIGUOUS_ALTS,ruleName:s.name,occurrence:n.idx,alternatives:p.alts}})}function Ow(i,n,s,r){const u=on(i,(h,p,d)=>{const _=ft(p,T=>({idx:d,path:T}));return h.concat(_)},[]);return Qr(On(u,h=>{if(n.definition[h.idx].ignoreAmbiguities===!0)return[];const d=h.idx,_=h.path,T=Cn(u,R=>n.definition[R.idx].ignoreAmbiguities!==!0&&R.idx<d&&fw(R.path,_));return ft(T,R=>{const q=[R.idx+1,d+1],K=n.idx===0?"":n.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:s,alternation:n,ambiguityIndices:q,prefixPath:R.path}),type:ze.AMBIGUOUS_PREFIX_ALTS,ruleName:s.name,occurrence:K,alternatives:q}})}))}function Nw(i,n,s){const r=[],u=ft(n,c=>c.name);return vt(i,c=>{const h=c.name;if(Be(u,h)){const p=s.buildNamespaceConflictError(c);r.push({message:p,type:ze.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),r}function Rw(i){const n=ed(i,{errMsgProvider:ZC}),s={};return vt(i.rules,r=>{s[r.name]=r}),WC(s,n.errMsgProvider)}function xw(i){return i=ed(i,{errMsgProvider:Oa}),dw(i.rules,i.tokenTypes,i.errMsgProvider,i.grammarName)}const vv="MismatchedTokenException",Ev="NoViableAltException",bv="EarlyExitException",Tv="NotAllInputParsedException",Sv=[vv,Ev,bv,Tv];Object.freeze(Sv);function Xu(i){return Be(Sv,i.name)}class Eo extends Error{constructor(n,s){super(n),this.token=s,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class Av extends Eo{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=vv}}class Cw extends Eo{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=Ev}}class ww extends Eo{constructor(n,s){super(n,s),this.name=Tv}}class Lw extends Eo{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=bv}}const Jf={},Ov="InRuleRecoveryException";class Mw extends Error{constructor(n){super(n),this.name=Ov}}class kw{initRecoverable(n){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=yt(n,"recoveryEnabled")?n.recoveryEnabled:Ti.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Uw)}getTokenToInsert(n){const s=sd(n,"",NaN,NaN,NaN,NaN,NaN,NaN);return s.isInsertedInRecovery=!0,s}canTokenTypeBeInsertedInRecovery(n){return!0}canTokenTypeBeDeletedInRecovery(n){return!0}tryInRepetitionRecovery(n,s,r,u){const c=this.findReSyncTokenType(),h=this.exportLexerState(),p=[];let d=!1;const _=this.LA(1);let T=this.LA(1);const v=()=>{const R=this.LA(0),q=this.errorMessageProvider.buildMismatchTokenMessage({expected:u,actual:_,previous:R,ruleName:this.getCurrRuleFullName()}),K=new Av(q,_,this.LA(0));K.resyncedTokens=Kr(p),this.SAVE_ERROR(K)};for(;!d;)if(this.tokenMatcher(T,u)){v();return}else if(r.call(this)){v(),n.apply(this,s);return}else this.tokenMatcher(T,c)?d=!0:(T=this.SKIP_TOKEN(),this.addToResyncTokens(T,p));this.importLexerState(h)}shouldInRepetitionRecoveryBeTried(n,s,r){return!(r===!1||this.tokenMatcher(this.LA(1),n)||this.isBackTracking()||this.canPerformInRuleRecovery(n,this.getFollowsForInRuleRecovery(n,s)))}getFollowsForInRuleRecovery(n,s){const r=this.getCurrentGrammarPath(n,s);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(n,s){if(this.canRecoverWithSingleTokenInsertion(n,s))return this.getTokenToInsert(n);if(this.canRecoverWithSingleTokenDeletion(n)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Mw("sad sad panda")}canPerformInRuleRecovery(n,s){return this.canRecoverWithSingleTokenInsertion(n,s)||this.canRecoverWithSingleTokenDeletion(n)}canRecoverWithSingleTokenInsertion(n,s){if(!this.canTokenTypeBeInsertedInRecovery(n)||Qt(s))return!1;const r=this.LA(1);return xs(s,c=>this.tokenMatcher(r,c))!==void 0}canRecoverWithSingleTokenDeletion(n){return this.canTokenTypeBeDeletedInRecovery(n)?this.tokenMatcher(this.LA(2),n):!1}isInCurrentRuleReSyncSet(n){const s=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(s);return Be(r,n)}findReSyncTokenType(){const n=this.flattenFollowSet();let s=this.LA(1),r=2;for(;;){const u=xs(n,c=>QC(s,c));if(u!==void 0)return u;s=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Jf;const n=this.getLastExplicitRuleShortName(),s=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:s,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const n=this.RULE_STACK,s=this.RULE_OCCURRENCE_STACK;return ft(n,(r,u)=>u===0?Jf:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:s[u],inRule:this.shortRuleNameToFullName(n[u-1])})}flattenFollowSet(){const n=ft(this.buildFullFollowKeyStack(),s=>this.getFollowSetFromFollowKey(s));return Un(n)}getFollowSetFromFollowKey(n){if(n===Jf)return[La];const s=n.ruleName+n.idxInCallingRule+ev+n.inRule;return this.resyncFollows[s]}addToResyncTokens(n,s){return this.tokenMatcher(n,La)||s.push(n),s}reSyncTo(n){const s=[];let r=this.LA(1);for(;this.tokenMatcher(r,n)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,s);return Kr(s)}attemptInRepetitionRecovery(n,s,r,u,c,h,p){}getCurrentGrammarPath(n,s){const r=this.getHumanReadableRuleStack(),u=we(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:u,lastTok:n,lastTokOccurrence:s}}getHumanReadableRuleStack(){return ft(this.RULE_STACK,n=>this.shortRuleNameToFullName(n))}}function Uw(i,n,s,r,u,c,h){const p=this.getKeyForAutomaticLookahead(r,u);let d=this.firstAfterRepMap[p];if(d===void 0){const R=this.getCurrRuleFullName(),q=this.getGAstProductions()[R];d=new c(q,u).startWalking(),this.firstAfterRepMap[p]=d}let _=d.token,T=d.occurrence;const v=d.isEndOfRule;this.RULE_STACK.length===1&&v&&_===void 0&&(_=La,T=1),!(_===void 0||T===void 0)&&this.shouldInRepetitionRecoveryBeTried(_,T,h)&&this.tryInRepetitionRecovery(i,n,s,_)}const Iw=4,ia=8,Nv=1<<ia,Rv=2<<ia,xh=3<<ia,Ch=4<<ia,wh=5<<ia,Bu=6<<ia;function th(i,n,s){return s|n|i}class zw{constructor(n){var s;this.maxLookahead=(s=n?.maxLookahead)!==null&&s!==void 0?s:Ti.maxLookahead}validate(n){const s=this.validateNoLeftRecursion(n.rules);if(Qt(s)){const r=this.validateEmptyOrAlternatives(n.rules),u=this.validateAmbiguousAlternationAlternatives(n.rules,this.maxLookahead),c=this.validateSomeNonEmptyLookaheadPath(n.rules,this.maxLookahead);return[...s,...r,...u,...c]}return s}validateNoLeftRecursion(n){return On(n,s=>yv(s,s,Oa))}validateEmptyOrAlternatives(n){return On(n,s=>vw(s,Oa))}validateAmbiguousAlternationAlternatives(n,s){return On(n,r=>Ew(r,s,Oa))}validateSomeNonEmptyLookaheadPath(n,s){return Sw(n,s,Oa)}buildLookaheadForAlternation(n){return sw(n.prodOccurrence,n.rule,n.maxLookahead,n.hasPredicates,n.dynamicTokensEnabled,lw)}buildLookaheadForOptional(n){return rw(n.prodOccurrence,n.rule,n.maxLookahead,n.dynamicTokensEnabled,dv(n.prodType),uw)}}class Bw{initLooksAhead(n){this.dynamicTokensEnabled=yt(n,"dynamicTokensEnabled")?n.dynamicTokensEnabled:Ti.dynamicTokensEnabled,this.maxLookahead=yt(n,"maxLookahead")?n.maxLookahead:Ti.maxLookahead,this.lookaheadStrategy=yt(n,"lookaheadStrategy")?n.lookaheadStrategy:new zw({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(n){vt(n,s=>{this.TRACE_INIT(`${s.name} Rule Lookahead`,()=>{const{alternation:r,repetition:u,option:c,repetitionMandatory:h,repetitionMandatoryWithSeparator:p,repetitionWithSeparator:d}=Dw(s);vt(r,_=>{const T=_.idx===0?"":_.idx;this.TRACE_INIT(`${Vn(_)}${T}`,()=>{const v=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:_.idx,rule:s,maxLookahead:_.maxLookahead||this.maxLookahead,hasPredicates:_.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),R=th(this.fullRuleNameToShort[s.name],Nv,_.idx);this.setLaFuncCache(R,v)})}),vt(u,_=>{this.computeLookaheadFunc(s,_.idx,xh,"Repetition",_.maxLookahead,Vn(_))}),vt(c,_=>{this.computeLookaheadFunc(s,_.idx,Rv,"Option",_.maxLookahead,Vn(_))}),vt(h,_=>{this.computeLookaheadFunc(s,_.idx,Ch,"RepetitionMandatory",_.maxLookahead,Vn(_))}),vt(p,_=>{this.computeLookaheadFunc(s,_.idx,Bu,"RepetitionMandatoryWithSeparator",_.maxLookahead,Vn(_))}),vt(d,_=>{this.computeLookaheadFunc(s,_.idx,wh,"RepetitionWithSeparator",_.maxLookahead,Vn(_))})})})}computeLookaheadFunc(n,s,r,u,c,h){this.TRACE_INIT(`${h}${s===0?"":s}`,()=>{const p=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:s,rule:n,maxLookahead:c||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:u}),d=th(this.fullRuleNameToShort[n.name],r,s);this.setLaFuncCache(d,p)})}getKeyForAutomaticLookahead(n,s){const r=this.getLastExplicitRuleShortName();return th(r,n,s)}getLaFuncFromCache(n){return this.lookAheadFuncsCache.get(n)}setLaFuncCache(n,s){this.lookAheadFuncsCache.set(n,s)}}class jw extends ws{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(n){this.dslMethods.option.push(n)}visitRepetitionWithSeparator(n){this.dslMethods.repetitionWithSeparator.push(n)}visitRepetitionMandatory(n){this.dslMethods.repetitionMandatory.push(n)}visitRepetitionMandatoryWithSeparator(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)}visitRepetition(n){this.dslMethods.repetition.push(n)}visitAlternation(n){this.dslMethods.alternation.push(n)}}const Au=new jw;function Dw(i){Au.reset(),i.accept(Au);const n=Au.dslMethods;return Au.reset(),n}function Ny(i,n){isNaN(i.startOffset)===!0?(i.startOffset=n.startOffset,i.endOffset=n.endOffset):i.endOffset<n.endOffset&&(i.endOffset=n.endOffset)}function Ry(i,n){isNaN(i.startOffset)===!0?(i.startOffset=n.startOffset,i.startColumn=n.startColumn,i.startLine=n.startLine,i.endOffset=n.endOffset,i.endColumn=n.endColumn,i.endLine=n.endLine):i.endOffset<n.endOffset&&(i.endOffset=n.endOffset,i.endColumn=n.endColumn,i.endLine=n.endLine)}function Pw(i,n,s){i.children[s]===void 0?i.children[s]=[n]:i.children[s].push(n)}function qw(i,n,s){i.children[n]===void 0?i.children[n]=[s]:i.children[n].push(s)}const Gw="name";function xv(i,n){Object.defineProperty(i,Gw,{enumerable:!1,configurable:!0,writable:!1,value:n})}function Hw(i,n){const s=xn(i),r=s.length;for(let u=0;u<r;u++){const c=s[u],h=i[c],p=h.length;for(let d=0;d<p;d++){const _=h[d];_.tokenTypeIdx===void 0&&this[_.name](_.children,n)}}}function $w(i,n){const s=function(){};xv(s,i+"BaseSemantics");const r={visit:function(u,c){if(zt(u)&&(u=u[0]),!bi(u))return this[u.name](u.children,c)},validateVisitor:function(){const u=Fw(this,n);if(!Qt(u)){const c=ft(u,h=>h.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
102
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(i){return"deprecated"},buildDuplicateRuleNameError(i){let n;return i.topLevelRule instanceof Cs?n=i.topLevelRule.name:n=i.topLevelRule,`Duplicate definition, rule: ->${n}<- is already defined in the grammar: ->${i.grammarName}<-`}};function JC(i,n){const s=new tw(i,n);return s.resolveRefs(),s.errors}class tw extends ws{constructor(n,s){super(),this.nameToTopRule=n,this.errMsgProvider=s,this.errors=[]}resolveRefs(){vt(ye(this.nameToTopRule),n=>{this.currTopLevel=n,n.accept(this)})}visitNonTerminal(n){const s=this.nameToTopRule[n.nonTerminalName];if(s)n.referencedRule=s;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:ze.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}}}class ew extends mo{constructor(n,s){super(),this.topProd=n,this.path=s,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=we(this.path.ruleStack).reverse(),this.occurrenceStack=we(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(n,s=[]){this.found||super.walk(n,s)}walkProdRef(n,s,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){const u=s.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,u)}}updateExpectedNext(){Qt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class nw extends ew{constructor(n,s){super(n,s),this.path=s,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(n,s,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){const u=s.concat(r),c=new Xe({definition:u});this.possibleTokTypes=Zr(c),this.found=!0}}}class vo extends mo{constructor(n,s){super(),this.topRule=n,this.occurrence=s,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class iw extends vo{walkMany(n,s,r){if(n.idx===this.occurrence){const u=Bn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkMany(n,s,r)}}class Sy extends vo{walkManySep(n,s,r){if(n.idx===this.occurrence){const u=Bn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkManySep(n,s,r)}}class aw extends vo{walkAtLeastOne(n,s,r){if(n.idx===this.occurrence){const u=Bn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOne(n,s,r)}}class Ay extends vo{walkAtLeastOneSep(n,s,r){if(n.idx===this.occurrence){const u=Bn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOneSep(n,s,r)}}function Nh(i,n,s=[]){s=we(s);let r=[],u=0;function c(p){return p.concat(Ce(i,u+1))}function h(p){const d=Nh(c(p),n,s);return r.concat(d)}for(;s.length<n&&u<i.length;){const p=i[u];if(p instanceof Xe)return h(p.definition);if(p instanceof cn)return h(p.definition);if(p instanceof Ve)r=h(p.definition);else if(p instanceof Jn){const d=p.definition.concat([new ve({definition:p.definition})]);return h(d)}else if(p instanceof ti){const d=[new Xe({definition:p.definition}),new ve({definition:[new ne({terminalType:p.separator})].concat(p.definition)})];return h(d)}else if(p instanceof Dn){const d=p.definition.concat([new ve({definition:[new ne({terminalType:p.separator})].concat(p.definition)})]);r=h(d)}else if(p instanceof ve){const d=p.definition.concat([new ve({definition:p.definition})]);r=h(d)}else{if(p instanceof Pn)return vt(p.definition,d=>{Qt(d.definition)===!1&&(r=h(d.definition))}),r;if(p instanceof ne)s.push(p.terminalType);else throw Error("non exhaustive match")}u++}return r.push({partialPath:s,suffixDef:Ce(i,u)}),r}function dv(i,n,s,r){const u="EXIT_NONE_TERMINAL",c=[u],h="EXIT_ALTERNATIVE";let p=!1;const d=n.length,_=d-r-1,T=[],v=[];for(v.push({idx:-1,def:i,ruleStack:[],occurrenceStack:[]});!Qt(v);){const R=v.pop();if(R===h){p&&Ca(v).idx<=_&&v.pop();continue}const q=R.def,K=R.idx,Q=R.ruleStack,O=R.occurrenceStack;if(Qt(q))continue;const b=q[0];if(b===u){const N={idx:K,def:Ce(q),ruleStack:Kr(Q),occurrenceStack:Kr(O)};v.push(N)}else if(b instanceof ne)if(K<d-1){const N=K+1,P=n[N];if(s(P,b.terminalType)){const z={idx:N,def:Ce(q),ruleStack:Q,occurrenceStack:O};v.push(z)}}else if(K===d-1)T.push({nextTokenType:b.terminalType,nextTokenOccurrence:b.idx,ruleStack:Q,occurrenceStack:O}),p=!0;else throw Error("non exhaustive match");else if(b instanceof cn){const N=we(Q);N.push(b.nonTerminalName);const P=we(O);P.push(b.idx);const z={idx:K,def:b.definition.concat(c,Ce(q)),ruleStack:N,occurrenceStack:P};v.push(z)}else if(b instanceof Ve){const N={idx:K,def:Ce(q),ruleStack:Q,occurrenceStack:O};v.push(N),v.push(h);const P={idx:K,def:b.definition.concat(Ce(q)),ruleStack:Q,occurrenceStack:O};v.push(P)}else if(b instanceof Jn){const N=new ve({definition:b.definition,idx:b.idx}),P=b.definition.concat([N],Ce(q)),z={idx:K,def:P,ruleStack:Q,occurrenceStack:O};v.push(z)}else if(b instanceof ti){const N=new ne({terminalType:b.separator}),P=new ve({definition:[N].concat(b.definition),idx:b.idx}),z=b.definition.concat([P],Ce(q)),Z={idx:K,def:z,ruleStack:Q,occurrenceStack:O};v.push(Z)}else if(b instanceof Dn){const N={idx:K,def:Ce(q),ruleStack:Q,occurrenceStack:O};v.push(N),v.push(h);const P=new ne({terminalType:b.separator}),z=new ve({definition:[P].concat(b.definition),idx:b.idx}),Z=b.definition.concat([z],Ce(q)),I={idx:K,def:Z,ruleStack:Q,occurrenceStack:O};v.push(I)}else if(b instanceof ve){const N={idx:K,def:Ce(q),ruleStack:Q,occurrenceStack:O};v.push(N),v.push(h);const P=new ve({definition:b.definition,idx:b.idx}),z=b.definition.concat([P],Ce(q)),Z={idx:K,def:z,ruleStack:Q,occurrenceStack:O};v.push(Z)}else if(b instanceof Pn)for(let N=b.definition.length-1;N>=0;N--){const P=b.definition[N],z={idx:K,def:P.definition.concat(Ce(q)),ruleStack:Q,occurrenceStack:O};v.push(z),v.push(h)}else if(b instanceof Xe)v.push({idx:K,def:b.definition.concat(Ce(q)),ruleStack:Q,occurrenceStack:O});else if(b instanceof Cs)v.push(sw(b,K,Q,O));else throw Error("non exhaustive match")}return T}function sw(i,n,s,r){const u=we(s);u.push(i.name);const c=we(r);return c.push(1),{idx:n,def:i.definition,ruleStack:u,occurrenceStack:c}}var se;(function(i){i[i.OPTION=0]="OPTION",i[i.REPETITION=1]="REPETITION",i[i.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",i[i.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",i[i.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",i[i.ALTERNATION=5]="ALTERNATION"})(se||(se={}));function pv(i){if(i instanceof Ve||i==="Option")return se.OPTION;if(i instanceof ve||i==="Repetition")return se.REPETITION;if(i instanceof Jn||i==="RepetitionMandatory")return se.REPETITION_MANDATORY;if(i instanceof ti||i==="RepetitionMandatoryWithSeparator")return se.REPETITION_MANDATORY_WITH_SEPARATOR;if(i instanceof Dn||i==="RepetitionWithSeparator")return se.REPETITION_WITH_SEPARATOR;if(i instanceof Pn||i==="Alternation")return se.ALTERNATION;throw Error("non exhaustive match")}function rw(i,n,s,r,u,c){const h=rd(i,n,s),p=mv(h)?Yu:Wr;return c(h,r,p,u)}function lw(i,n,s,r,u,c){const h=ld(i,n,u,s),p=mv(h)?Yu:Wr;return c(h[0],p,r)}function uw(i,n,s,r){const u=i.length,c=In(i,h=>In(h,p=>p.length===1));if(n)return function(h){const p=ft(h,d=>d.GATE);for(let d=0;d<u;d++){const _=i[d],T=_.length,v=p[d];if(!(v!==void 0&&v.call(this)===!1))t:for(let R=0;R<T;R++){const q=_[R],K=q.length;for(let Q=0;Q<K;Q++){const O=this.LA(Q+1);if(s(O,q[Q])===!1)continue t}return d}}};if(c&&!r){const h=ft(i,d=>Un(d)),p=on(h,(d,_,T)=>(vt(_,v=>{yt(d,v.tokenTypeIdx)||(d[v.tokenTypeIdx]=T),vt(v.categoryMatches,R=>{yt(d,R)||(d[R]=T)})}),d),{});return function(){const d=this.LA(1);return p[d.tokenTypeIdx]}}else return function(){for(let h=0;h<u;h++){const p=i[h],d=p.length;t:for(let _=0;_<d;_++){const T=p[_],v=T.length;for(let R=0;R<v;R++){const q=this.LA(R+1);if(s(q,T[R])===!1)continue t}return h}}}}function ow(i,n,s){const r=In(i,c=>c.length===1),u=i.length;if(r&&!s){const c=Un(i);if(c.length===1&&Qt(c[0].categoryMatches)){const p=c[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===p}}else{const h=on(c,(p,d,_)=>(p[d.tokenTypeIdx]=!0,vt(d.categoryMatches,T=>{p[T]=!0}),p),[]);return function(){const p=this.LA(1);return h[p.tokenTypeIdx]===!0}}}else return function(){t:for(let c=0;c<u;c++){const h=i[c],p=h.length;for(let d=0;d<p;d++){const _=this.LA(d+1);if(n(_,h[d])===!1)continue t}return!0}return!1}}class cw extends mo{constructor(n,s,r){super(),this.topProd=n,this.targetOccurrence=s,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(n,s,r,u){return n.idx===this.targetOccurrence&&this.targetProdType===s?(this.restDef=r.concat(u),!0):!1}walkOption(n,s,r){this.checkIsTarget(n,se.OPTION,s,r)||super.walkOption(n,s,r)}walkAtLeastOne(n,s,r){this.checkIsTarget(n,se.REPETITION_MANDATORY,s,r)||super.walkOption(n,s,r)}walkAtLeastOneSep(n,s,r){this.checkIsTarget(n,se.REPETITION_MANDATORY_WITH_SEPARATOR,s,r)||super.walkOption(n,s,r)}walkMany(n,s,r){this.checkIsTarget(n,se.REPETITION,s,r)||super.walkOption(n,s,r)}walkManySep(n,s,r){this.checkIsTarget(n,se.REPETITION_WITH_SEPARATOR,s,r)||super.walkOption(n,s,r)}}class _v extends ws{constructor(n,s,r){super(),this.targetOccurrence=n,this.targetProdType=s,this.targetRef=r,this.result=[]}checkIsTarget(n,s){n.idx===this.targetOccurrence&&this.targetProdType===s&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)}visitOption(n){this.checkIsTarget(n,se.OPTION)}visitRepetition(n){this.checkIsTarget(n,se.REPETITION)}visitRepetitionMandatory(n){this.checkIsTarget(n,se.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(n){this.checkIsTarget(n,se.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(n){this.checkIsTarget(n,se.REPETITION_WITH_SEPARATOR)}visitAlternation(n){this.checkIsTarget(n,se.ALTERNATION)}}function Oy(i){const n=new Array(i);for(let s=0;s<i;s++)n[s]=[];return n}function Wf(i){let n=[""];for(let s=0;s<i.length;s++){const r=i[s],u=[];for(let c=0;c<n.length;c++){const h=n[c];u.push(h+"_"+r.tokenTypeIdx);for(let p=0;p<r.categoryMatches.length;p++){const d="_"+r.categoryMatches[p];u.push(h+d)}}n=u}return n}function fw(i,n,s){for(let r=0;r<i.length;r++){if(r===s)continue;const u=i[r];for(let c=0;c<n.length;c++){const h=n[c];if(u[h]===!0)return!1}}return!0}function gv(i,n){const s=ft(i,h=>Nh([h],1)),r=Oy(s.length),u=ft(s,h=>{const p={};return vt(h,d=>{const _=Wf(d.partialPath);vt(_,T=>{p[T]=!0})}),p});let c=s;for(let h=1;h<=n;h++){const p=c;c=Oy(p.length);for(let d=0;d<p.length;d++){const _=p[d];for(let T=0;T<_.length;T++){const v=_[T].partialPath,R=_[T].suffixDef,q=Wf(v);if(fw(u,q,d)||Qt(R)||v.length===n){const Q=r[d];if(Rh(Q,v)===!1){Q.push(v);for(let O=0;O<q.length;O++){const b=q[O];u[d][b]=!0}}}else{const Q=Nh(R,h+1,v);c[d]=c[d].concat(Q),vt(Q,O=>{const b=Wf(O.partialPath);vt(b,N=>{u[d][N]=!0})})}}}}return r}function rd(i,n,s,r){const u=new _v(i,se.ALTERNATION,r);return n.accept(u),gv(u.result,s)}function ld(i,n,s,r){const u=new _v(i,s);n.accept(u);const c=u.result,p=new cw(n,i,s).startWalking(),d=new Xe({definition:c}),_=new Xe({definition:p});return gv([d,_],r)}function Rh(i,n){t:for(let s=0;s<i.length;s++){const r=i[s];if(r.length===n.length){for(let u=0;u<r.length;u++){const c=n[u],h=r[u];if((c===h||h.categoryMatchesMap[c.tokenTypeIdx]!==void 0)===!1)continue t}return!0}}return!1}function hw(i,n){return i.length<n.length&&In(i,(s,r)=>{const u=n[r];return s===u||u.categoryMatchesMap[s.tokenTypeIdx]})}function mv(i){return In(i,n=>In(n,s=>In(s,r=>Qt(r.categoryMatches))))}function dw(i){const n=i.lookaheadStrategy.validate({rules:i.rules,tokenTypes:i.tokenTypes,grammarName:i.grammarName});return ft(n,s=>Object.assign({type:ze.CUSTOM_LOOKAHEAD_VALIDATION},s))}function pw(i,n,s,r){const u=On(i,d=>_w(d,s)),c=Rw(i,n,s),h=On(i,d=>Sw(d,s)),p=On(i,d=>yw(d,i,r,s));return u.concat(c,h,p)}function _w(i,n){const s=new mw;i.accept(s);const r=s.allProductions,u=Rx(r,gw),c=jn(u,p=>p.length>1);return ft(ye(c),p=>{const d=Bn(p),_=n.buildDuplicateFoundError(i,p),T=Vn(d),v={message:_,type:ze.DUPLICATE_PRODUCTIONS,ruleName:i.name,dslName:T,occurrence:d.idx},R=yv(d);return R&&(v.parameter=R),v})}function gw(i){return`${Vn(i)}_#_${i.idx}_#_${yv(i)}`}function yv(i){return i instanceof ne?i.terminalType.name:i instanceof cn?i.nonTerminalName:""}class mw extends ws{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(n){this.allProductions.push(n)}visitOption(n){this.allProductions.push(n)}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}visitAlternation(n){this.allProductions.push(n)}visitTerminal(n){this.allProductions.push(n)}}function yw(i,n,s,r){const u=[];if(on(n,(h,p)=>p.name===i.name?h+1:h,0)>1){const h=r.buildDuplicateRuleNameError({topLevelRule:i,grammarName:s});u.push({message:h,type:ze.DUPLICATE_RULE_NAME,ruleName:i.name})}return u}function vw(i,n,s){const r=[];let u;return Be(n,i)||(u=`Invalid rule override, rule: ->${i}<- cannot be overridden in the grammar: ->${s}<-as it is not defined in any of the super grammars `,r.push({message:u,type:ze.INVALID_RULE_OVERRIDE,ruleName:i})),r}function vv(i,n,s,r=[]){const u=[],c=zu(n.definition);if(Qt(c))return[];{const h=i.name;Be(c,i)&&u.push({message:s.buildLeftRecursionError({topLevelRule:i,leftRecursionPath:r}),type:ze.LEFT_RECURSION,ruleName:h});const d=_o(c,r.concat([i])),_=On(d,T=>{const v=we(r);return v.push(T),vv(i,T,s,v)});return u.concat(_)}}function zu(i){let n=[];if(Qt(i))return n;const s=Bn(i);if(s instanceof cn)n.push(s.referencedRule);else if(s instanceof Xe||s instanceof Ve||s instanceof Jn||s instanceof ti||s instanceof Dn||s instanceof ve)n=n.concat(zu(s.definition));else if(s instanceof Pn)n=Un(ft(s.definition,c=>zu(c.definition)));else if(!(s instanceof ne))throw Error("non exhaustive match");const r=$u(s),u=i.length>1;if(r&&u){const c=Ce(i);return n.concat(zu(c))}else return n}class ud extends ws{constructor(){super(...arguments),this.alternations=[]}visitAlternation(n){this.alternations.push(n)}}function Ew(i,n){const s=new ud;i.accept(s);const r=s.alternations;return On(r,c=>{const h=Kr(c.definition);return On(h,(p,d)=>{const _=dv([p],[],Wr,1);return Qt(_)?[{message:n.buildEmptyAlternationError({topLevelRule:i,alternation:c,emptyChoiceIdx:d}),type:ze.NONE_LAST_EMPTY_ALT,ruleName:i.name,occurrence:c.idx,alternative:d+1}]:[]})})}function bw(i,n,s){const r=new ud;i.accept(r);let u=r.alternations;return u=go(u,h=>h.ignoreAmbiguities===!0),On(u,h=>{const p=h.idx,d=h.maxLookahead||n,_=rd(p,i,d,h),T=Ow(_,h,i,s),v=Nw(_,h,i,s);return T.concat(v)})}class Tw extends ws{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}}function Sw(i,n){const s=new ud;i.accept(s);const r=s.alternations;return On(r,c=>c.definition.length>255?[{message:n.buildTooManyAlternativesError({topLevelRule:i,alternation:c}),type:ze.TOO_MANY_ALTS,ruleName:i.name,occurrence:c.idx}]:[])}function Aw(i,n,s){const r=[];return vt(i,u=>{const c=new Tw;u.accept(c);const h=c.allProductions;vt(h,p=>{const d=pv(p),_=p.maxLookahead||n,T=p.idx,R=ld(T,u,d,_)[0];if(Qt(Un(R))){const q=s.buildEmptyRepetitionError({topLevelRule:u,repetition:p});r.push({message:q,type:ze.NO_NON_EMPTY_LOOKAHEAD,ruleName:u.name})}})}),r}function Ow(i,n,s,r){const u=[],c=on(i,(p,d,_)=>(n.definition[_].ignoreAmbiguities===!0||vt(d,T=>{const v=[_];vt(i,(R,q)=>{_!==q&&Rh(R,T)&&n.definition[q].ignoreAmbiguities!==!0&&v.push(q)}),v.length>1&&!Rh(u,T)&&(u.push(T),p.push({alts:v,path:T}))}),p),[]);return ft(c,p=>{const d=ft(p.alts,T=>T+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:s,alternation:n,ambiguityIndices:d,prefixPath:p.path}),type:ze.AMBIGUOUS_ALTS,ruleName:s.name,occurrence:n.idx,alternatives:p.alts}})}function Nw(i,n,s,r){const u=on(i,(h,p,d)=>{const _=ft(p,T=>({idx:d,path:T}));return h.concat(_)},[]);return Qr(On(u,h=>{if(n.definition[h.idx].ignoreAmbiguities===!0)return[];const d=h.idx,_=h.path,T=Cn(u,R=>n.definition[R.idx].ignoreAmbiguities!==!0&&R.idx<d&&hw(R.path,_));return ft(T,R=>{const q=[R.idx+1,d+1],K=n.idx===0?"":n.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:s,alternation:n,ambiguityIndices:q,prefixPath:R.path}),type:ze.AMBIGUOUS_PREFIX_ALTS,ruleName:s.name,occurrence:K,alternatives:q}})}))}function Rw(i,n,s){const r=[],u=ft(n,c=>c.name);return vt(i,c=>{const h=c.name;if(Be(u,h)){const p=s.buildNamespaceConflictError(c);r.push({message:p,type:ze.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),r}function xw(i){const n=ed(i,{errMsgProvider:WC}),s={};return vt(i.rules,r=>{s[r.name]=r}),JC(s,n.errMsgProvider)}function Cw(i){return i=ed(i,{errMsgProvider:Oa}),pw(i.rules,i.tokenTypes,i.errMsgProvider,i.grammarName)}const Ev="MismatchedTokenException",bv="NoViableAltException",Tv="EarlyExitException",Sv="NotAllInputParsedException",Av=[Ev,bv,Tv,Sv];Object.freeze(Av);function Xu(i){return Be(Av,i.name)}class Eo extends Error{constructor(n,s){super(n),this.token=s,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class Ov extends Eo{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=Ev}}class ww extends Eo{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=bv}}class Lw extends Eo{constructor(n,s){super(n,s),this.name=Sv}}class Mw extends Eo{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=Tv}}const Jf={},Nv="InRuleRecoveryException";class kw extends Error{constructor(n){super(n),this.name=Nv}}class Uw{initRecoverable(n){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=yt(n,"recoveryEnabled")?n.recoveryEnabled:Ti.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Iw)}getTokenToInsert(n){const s=sd(n,"",NaN,NaN,NaN,NaN,NaN,NaN);return s.isInsertedInRecovery=!0,s}canTokenTypeBeInsertedInRecovery(n){return!0}canTokenTypeBeDeletedInRecovery(n){return!0}tryInRepetitionRecovery(n,s,r,u){const c=this.findReSyncTokenType(),h=this.exportLexerState(),p=[];let d=!1;const _=this.LA(1);let T=this.LA(1);const v=()=>{const R=this.LA(0),q=this.errorMessageProvider.buildMismatchTokenMessage({expected:u,actual:_,previous:R,ruleName:this.getCurrRuleFullName()}),K=new Ov(q,_,this.LA(0));K.resyncedTokens=Kr(p),this.SAVE_ERROR(K)};for(;!d;)if(this.tokenMatcher(T,u)){v();return}else if(r.call(this)){v(),n.apply(this,s);return}else this.tokenMatcher(T,c)?d=!0:(T=this.SKIP_TOKEN(),this.addToResyncTokens(T,p));this.importLexerState(h)}shouldInRepetitionRecoveryBeTried(n,s,r){return!(r===!1||this.tokenMatcher(this.LA(1),n)||this.isBackTracking()||this.canPerformInRuleRecovery(n,this.getFollowsForInRuleRecovery(n,s)))}getFollowsForInRuleRecovery(n,s){const r=this.getCurrentGrammarPath(n,s);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(n,s){if(this.canRecoverWithSingleTokenInsertion(n,s))return this.getTokenToInsert(n);if(this.canRecoverWithSingleTokenDeletion(n)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new kw("sad sad panda")}canPerformInRuleRecovery(n,s){return this.canRecoverWithSingleTokenInsertion(n,s)||this.canRecoverWithSingleTokenDeletion(n)}canRecoverWithSingleTokenInsertion(n,s){if(!this.canTokenTypeBeInsertedInRecovery(n)||Qt(s))return!1;const r=this.LA(1);return xs(s,c=>this.tokenMatcher(r,c))!==void 0}canRecoverWithSingleTokenDeletion(n){return this.canTokenTypeBeDeletedInRecovery(n)?this.tokenMatcher(this.LA(2),n):!1}isInCurrentRuleReSyncSet(n){const s=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(s);return Be(r,n)}findReSyncTokenType(){const n=this.flattenFollowSet();let s=this.LA(1),r=2;for(;;){const u=xs(n,c=>ZC(s,c));if(u!==void 0)return u;s=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Jf;const n=this.getLastExplicitRuleShortName(),s=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:s,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const n=this.RULE_STACK,s=this.RULE_OCCURRENCE_STACK;return ft(n,(r,u)=>u===0?Jf:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:s[u],inRule:this.shortRuleNameToFullName(n[u-1])})}flattenFollowSet(){const n=ft(this.buildFullFollowKeyStack(),s=>this.getFollowSetFromFollowKey(s));return Un(n)}getFollowSetFromFollowKey(n){if(n===Jf)return[La];const s=n.ruleName+n.idxInCallingRule+nv+n.inRule;return this.resyncFollows[s]}addToResyncTokens(n,s){return this.tokenMatcher(n,La)||s.push(n),s}reSyncTo(n){const s=[];let r=this.LA(1);for(;this.tokenMatcher(r,n)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,s);return Kr(s)}attemptInRepetitionRecovery(n,s,r,u,c,h,p){}getCurrentGrammarPath(n,s){const r=this.getHumanReadableRuleStack(),u=we(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:u,lastTok:n,lastTokOccurrence:s}}getHumanReadableRuleStack(){return ft(this.RULE_STACK,n=>this.shortRuleNameToFullName(n))}}function Iw(i,n,s,r,u,c,h){const p=this.getKeyForAutomaticLookahead(r,u);let d=this.firstAfterRepMap[p];if(d===void 0){const R=this.getCurrRuleFullName(),q=this.getGAstProductions()[R];d=new c(q,u).startWalking(),this.firstAfterRepMap[p]=d}let _=d.token,T=d.occurrence;const v=d.isEndOfRule;this.RULE_STACK.length===1&&v&&_===void 0&&(_=La,T=1),!(_===void 0||T===void 0)&&this.shouldInRepetitionRecoveryBeTried(_,T,h)&&this.tryInRepetitionRecovery(i,n,s,_)}const zw=4,ia=8,Rv=1<<ia,xv=2<<ia,xh=3<<ia,Ch=4<<ia,wh=5<<ia,Bu=6<<ia;function th(i,n,s){return s|n|i}class Bw{constructor(n){var s;this.maxLookahead=(s=n?.maxLookahead)!==null&&s!==void 0?s:Ti.maxLookahead}validate(n){const s=this.validateNoLeftRecursion(n.rules);if(Qt(s)){const r=this.validateEmptyOrAlternatives(n.rules),u=this.validateAmbiguousAlternationAlternatives(n.rules,this.maxLookahead),c=this.validateSomeNonEmptyLookaheadPath(n.rules,this.maxLookahead);return[...s,...r,...u,...c]}return s}validateNoLeftRecursion(n){return On(n,s=>vv(s,s,Oa))}validateEmptyOrAlternatives(n){return On(n,s=>Ew(s,Oa))}validateAmbiguousAlternationAlternatives(n,s){return On(n,r=>bw(r,s,Oa))}validateSomeNonEmptyLookaheadPath(n,s){return Aw(n,s,Oa)}buildLookaheadForAlternation(n){return rw(n.prodOccurrence,n.rule,n.maxLookahead,n.hasPredicates,n.dynamicTokensEnabled,uw)}buildLookaheadForOptional(n){return lw(n.prodOccurrence,n.rule,n.maxLookahead,n.dynamicTokensEnabled,pv(n.prodType),ow)}}class jw{initLooksAhead(n){this.dynamicTokensEnabled=yt(n,"dynamicTokensEnabled")?n.dynamicTokensEnabled:Ti.dynamicTokensEnabled,this.maxLookahead=yt(n,"maxLookahead")?n.maxLookahead:Ti.maxLookahead,this.lookaheadStrategy=yt(n,"lookaheadStrategy")?n.lookaheadStrategy:new Bw({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(n){vt(n,s=>{this.TRACE_INIT(`${s.name} Rule Lookahead`,()=>{const{alternation:r,repetition:u,option:c,repetitionMandatory:h,repetitionMandatoryWithSeparator:p,repetitionWithSeparator:d}=Pw(s);vt(r,_=>{const T=_.idx===0?"":_.idx;this.TRACE_INIT(`${Vn(_)}${T}`,()=>{const v=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:_.idx,rule:s,maxLookahead:_.maxLookahead||this.maxLookahead,hasPredicates:_.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),R=th(this.fullRuleNameToShort[s.name],Rv,_.idx);this.setLaFuncCache(R,v)})}),vt(u,_=>{this.computeLookaheadFunc(s,_.idx,xh,"Repetition",_.maxLookahead,Vn(_))}),vt(c,_=>{this.computeLookaheadFunc(s,_.idx,xv,"Option",_.maxLookahead,Vn(_))}),vt(h,_=>{this.computeLookaheadFunc(s,_.idx,Ch,"RepetitionMandatory",_.maxLookahead,Vn(_))}),vt(p,_=>{this.computeLookaheadFunc(s,_.idx,Bu,"RepetitionMandatoryWithSeparator",_.maxLookahead,Vn(_))}),vt(d,_=>{this.computeLookaheadFunc(s,_.idx,wh,"RepetitionWithSeparator",_.maxLookahead,Vn(_))})})})}computeLookaheadFunc(n,s,r,u,c,h){this.TRACE_INIT(`${h}${s===0?"":s}`,()=>{const p=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:s,rule:n,maxLookahead:c||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:u}),d=th(this.fullRuleNameToShort[n.name],r,s);this.setLaFuncCache(d,p)})}getKeyForAutomaticLookahead(n,s){const r=this.getLastExplicitRuleShortName();return th(r,n,s)}getLaFuncFromCache(n){return this.lookAheadFuncsCache.get(n)}setLaFuncCache(n,s){this.lookAheadFuncsCache.set(n,s)}}class Dw extends ws{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(n){this.dslMethods.option.push(n)}visitRepetitionWithSeparator(n){this.dslMethods.repetitionWithSeparator.push(n)}visitRepetitionMandatory(n){this.dslMethods.repetitionMandatory.push(n)}visitRepetitionMandatoryWithSeparator(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)}visitRepetition(n){this.dslMethods.repetition.push(n)}visitAlternation(n){this.dslMethods.alternation.push(n)}}const Au=new Dw;function Pw(i){Au.reset(),i.accept(Au);const n=Au.dslMethods;return Au.reset(),n}function Ny(i,n){isNaN(i.startOffset)===!0?(i.startOffset=n.startOffset,i.endOffset=n.endOffset):i.endOffset<n.endOffset&&(i.endOffset=n.endOffset)}function Ry(i,n){isNaN(i.startOffset)===!0?(i.startOffset=n.startOffset,i.startColumn=n.startColumn,i.startLine=n.startLine,i.endOffset=n.endOffset,i.endColumn=n.endColumn,i.endLine=n.endLine):i.endOffset<n.endOffset&&(i.endOffset=n.endOffset,i.endColumn=n.endColumn,i.endLine=n.endLine)}function qw(i,n,s){i.children[s]===void 0?i.children[s]=[n]:i.children[s].push(n)}function Gw(i,n,s){i.children[n]===void 0?i.children[n]=[s]:i.children[n].push(s)}const Hw="name";function Cv(i,n){Object.defineProperty(i,Hw,{enumerable:!1,configurable:!0,writable:!1,value:n})}function $w(i,n){const s=xn(i),r=s.length;for(let u=0;u<r;u++){const c=s[u],h=i[c],p=h.length;for(let d=0;d<p;d++){const _=h[d];_.tokenTypeIdx===void 0&&this[_.name](_.children,n)}}}function Kw(i,n){const s=function(){};Cv(s,i+"BaseSemantics");const r={visit:function(u,c){if(zt(u)&&(u=u[0]),!bi(u))return this[u.name](u.children,c)},validateVisitor:function(){const u=Vw(this,n);if(!Qt(u)){const c=ft(u,h=>h.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
103
103
|
${c.join(`
|
|
104
104
|
|
|
105
105
|
`).replace(/\n/g,`
|
|
106
|
-
`)}`)}}};return s.prototype=r,s.prototype.constructor=s,s._RULE_NAMES=n,s}function
|
|
106
|
+
`)}`)}}};return s.prototype=r,s.prototype.constructor=s,s._RULE_NAMES=n,s}function Fw(i,n,s){const r=function(){};Cv(r,i+"BaseSemanticsWithDefaults");const u=Object.create(s.prototype);return vt(n,c=>{u[c]=$w}),r.prototype=u,r.prototype.constructor=r,r}var Lh;(function(i){i[i.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",i[i.MISSING_METHOD=1]="MISSING_METHOD"})(Lh||(Lh={}));function Vw(i,n){return Yw(i,n)}function Yw(i,n){const s=Cn(n,u=>Si(i[u])===!1),r=ft(s,u=>({msg:`Missing visitor method: <${u}> on ${i.constructor.name} CST Visitor.`,type:Lh.MISSING_METHOD,methodName:u}));return Qr(r)}class Xw{initTreeBuilder(n){if(this.CST_STACK=[],this.outputCst=n.outputCst,this.nodeLocationTracking=yt(n,"nodeLocationTracking")?n.nodeLocationTracking:Ti.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=me,this.cstFinallyStateUpdate=me,this.cstPostTerminal=me,this.cstPostNonTerminal=me,this.cstPostRule=me;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Ry,this.setNodeLocationFromNode=Ry,this.cstPostRule=me,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=me,this.setNodeLocationFromNode=me,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Ny,this.setNodeLocationFromNode=Ny,this.cstPostRule=me,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=me,this.setNodeLocationFromNode=me,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=me,this.setNodeLocationFromNode=me,this.cstPostRule=me,this.setInitialNodeLocation=me;else throw Error(`Invalid <nodeLocationTracking> config option: "${n.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(n){n.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(n){n.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(n){n.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(n){const s=this.LA(1);n.location={startOffset:s.startOffset,startLine:s.startLine,startColumn:s.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(n){const s={name:n,children:Object.create(null)};this.setInitialNodeLocation(s),this.CST_STACK.push(s)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(n){const s=this.LA(0),r=n.location;r.startOffset<=s.startOffset?(r.endOffset=s.endOffset,r.endLine=s.endLine,r.endColumn=s.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(n){const s=this.LA(0),r=n.location;r.startOffset<=s.startOffset?r.endOffset=s.endOffset:r.startOffset=NaN}cstPostTerminal(n,s){const r=this.CST_STACK[this.CST_STACK.length-1];qw(r,s,n),this.setNodeLocationFromToken(r.location,s)}cstPostNonTerminal(n,s){const r=this.CST_STACK[this.CST_STACK.length-1];Gw(r,s,n),this.setNodeLocationFromNode(r.location,n.location)}getBaseCstVisitorConstructor(){if(bi(this.baseCstVisitorConstructor)){const n=Kw(this.className,xn(this.gastProductionsCache));return this.baseCstVisitorConstructor=n,n}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(bi(this.baseCstVisitorWithDefaultsConstructor)){const n=Fw(this.className,xn(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=n,n}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const n=this.RULE_STACK;return n[n.length-1]}getPreviousExplicitRuleShortName(){const n=this.RULE_STACK;return n[n.length-2]}getLastExplicitRuleOccurrenceIndex(){const n=this.RULE_OCCURRENCE_STACK;return n[n.length-1]}}class Qw{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(n){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=n,this.tokVectorLength=n.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Zu}LA(n){const s=this.currIdx+n;return s<0||this.tokVectorLength<=s?Zu:this.tokVector[s]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(n){this.currIdx=n}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}class Zw{ACTION(n){return n.call(this)}consume(n,s,r){return this.consumeInternal(s,n,r)}subrule(n,s,r){return this.subruleInternal(s,n,r)}option(n,s){return this.optionInternal(s,n)}or(n,s){return this.orInternal(s,n)}many(n,s){return this.manyInternal(n,s)}atLeastOne(n,s){return this.atLeastOneInternal(n,s)}CONSUME(n,s){return this.consumeInternal(n,0,s)}CONSUME1(n,s){return this.consumeInternal(n,1,s)}CONSUME2(n,s){return this.consumeInternal(n,2,s)}CONSUME3(n,s){return this.consumeInternal(n,3,s)}CONSUME4(n,s){return this.consumeInternal(n,4,s)}CONSUME5(n,s){return this.consumeInternal(n,5,s)}CONSUME6(n,s){return this.consumeInternal(n,6,s)}CONSUME7(n,s){return this.consumeInternal(n,7,s)}CONSUME8(n,s){return this.consumeInternal(n,8,s)}CONSUME9(n,s){return this.consumeInternal(n,9,s)}SUBRULE(n,s){return this.subruleInternal(n,0,s)}SUBRULE1(n,s){return this.subruleInternal(n,1,s)}SUBRULE2(n,s){return this.subruleInternal(n,2,s)}SUBRULE3(n,s){return this.subruleInternal(n,3,s)}SUBRULE4(n,s){return this.subruleInternal(n,4,s)}SUBRULE5(n,s){return this.subruleInternal(n,5,s)}SUBRULE6(n,s){return this.subruleInternal(n,6,s)}SUBRULE7(n,s){return this.subruleInternal(n,7,s)}SUBRULE8(n,s){return this.subruleInternal(n,8,s)}SUBRULE9(n,s){return this.subruleInternal(n,9,s)}OPTION(n){return this.optionInternal(n,0)}OPTION1(n){return this.optionInternal(n,1)}OPTION2(n){return this.optionInternal(n,2)}OPTION3(n){return this.optionInternal(n,3)}OPTION4(n){return this.optionInternal(n,4)}OPTION5(n){return this.optionInternal(n,5)}OPTION6(n){return this.optionInternal(n,6)}OPTION7(n){return this.optionInternal(n,7)}OPTION8(n){return this.optionInternal(n,8)}OPTION9(n){return this.optionInternal(n,9)}OR(n){return this.orInternal(n,0)}OR1(n){return this.orInternal(n,1)}OR2(n){return this.orInternal(n,2)}OR3(n){return this.orInternal(n,3)}OR4(n){return this.orInternal(n,4)}OR5(n){return this.orInternal(n,5)}OR6(n){return this.orInternal(n,6)}OR7(n){return this.orInternal(n,7)}OR8(n){return this.orInternal(n,8)}OR9(n){return this.orInternal(n,9)}MANY(n){this.manyInternal(0,n)}MANY1(n){this.manyInternal(1,n)}MANY2(n){this.manyInternal(2,n)}MANY3(n){this.manyInternal(3,n)}MANY4(n){this.manyInternal(4,n)}MANY5(n){this.manyInternal(5,n)}MANY6(n){this.manyInternal(6,n)}MANY7(n){this.manyInternal(7,n)}MANY8(n){this.manyInternal(8,n)}MANY9(n){this.manyInternal(9,n)}MANY_SEP(n){this.manySepFirstInternal(0,n)}MANY_SEP1(n){this.manySepFirstInternal(1,n)}MANY_SEP2(n){this.manySepFirstInternal(2,n)}MANY_SEP3(n){this.manySepFirstInternal(3,n)}MANY_SEP4(n){this.manySepFirstInternal(4,n)}MANY_SEP5(n){this.manySepFirstInternal(5,n)}MANY_SEP6(n){this.manySepFirstInternal(6,n)}MANY_SEP7(n){this.manySepFirstInternal(7,n)}MANY_SEP8(n){this.manySepFirstInternal(8,n)}MANY_SEP9(n){this.manySepFirstInternal(9,n)}AT_LEAST_ONE(n){this.atLeastOneInternal(0,n)}AT_LEAST_ONE1(n){return this.atLeastOneInternal(1,n)}AT_LEAST_ONE2(n){this.atLeastOneInternal(2,n)}AT_LEAST_ONE3(n){this.atLeastOneInternal(3,n)}AT_LEAST_ONE4(n){this.atLeastOneInternal(4,n)}AT_LEAST_ONE5(n){this.atLeastOneInternal(5,n)}AT_LEAST_ONE6(n){this.atLeastOneInternal(6,n)}AT_LEAST_ONE7(n){this.atLeastOneInternal(7,n)}AT_LEAST_ONE8(n){this.atLeastOneInternal(8,n)}AT_LEAST_ONE9(n){this.atLeastOneInternal(9,n)}AT_LEAST_ONE_SEP(n){this.atLeastOneSepFirstInternal(0,n)}AT_LEAST_ONE_SEP1(n){this.atLeastOneSepFirstInternal(1,n)}AT_LEAST_ONE_SEP2(n){this.atLeastOneSepFirstInternal(2,n)}AT_LEAST_ONE_SEP3(n){this.atLeastOneSepFirstInternal(3,n)}AT_LEAST_ONE_SEP4(n){this.atLeastOneSepFirstInternal(4,n)}AT_LEAST_ONE_SEP5(n){this.atLeastOneSepFirstInternal(5,n)}AT_LEAST_ONE_SEP6(n){this.atLeastOneSepFirstInternal(6,n)}AT_LEAST_ONE_SEP7(n){this.atLeastOneSepFirstInternal(7,n)}AT_LEAST_ONE_SEP8(n){this.atLeastOneSepFirstInternal(8,n)}AT_LEAST_ONE_SEP9(n){this.atLeastOneSepFirstInternal(9,n)}RULE(n,s,r=Wu){if(Be(this.definedRulesNames,n)){const h={message:Oa.buildDuplicateRuleNameError({topLevelRule:n,grammarName:this.className}),type:ze.DUPLICATE_RULE_NAME,ruleName:n};this.definitionErrors.push(h)}this.definedRulesNames.push(n);const u=this.defineRule(n,s,r);return this[n]=u,u}OVERRIDE_RULE(n,s,r=Wu){const u=vw(n,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(u);const c=this.defineRule(n,s,r);return this[n]=c,c}BACKTRACK(n,s){return function(){this.isBackTrackingStack.push(1);const r=this.saveRecogState();try{return n.apply(this,s),!0}catch(u){if(Xu(u))return!1;throw u}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Wx(ye(this.gastProductionsCache))}}class Ww{initRecognizerEngine(n,s){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Yu,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},yt(s,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
107
107
|
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
108
108
|
For Further details.`);if(zt(n)){if(Qt(n))throw Error(`A Token Vocabulary cannot be empty.
|
|
109
109
|
Note that the first argument for the parser constructor
|
|
110
110
|
is no longer a Token vector (since v4.0).`);if(typeof n[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
111
111
|
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
112
|
-
For Further details.`)}if(zt(n))this.tokensMap=on(n,(c,h)=>(c[h.name]=h,c),{});else if(yt(n,"modes")&&In(Un(ye(n.modes)),
|
|
113
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const u=yt(r,"resyncEnabled")?r.resyncEnabled:Wu.resyncEnabled,c=yt(r,"recoveryValueFunc")?r.recoveryValueFunc:Wu.recoveryValueFunc,h=this.ruleShortNameIdx<<
|
|
114
|
-
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(
|
|
115
|
-
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};class
|
|
112
|
+
For Further details.`)}if(zt(n))this.tokensMap=on(n,(c,h)=>(c[h.name]=h,c),{});else if(yt(n,"modes")&&In(Un(ye(n.modes)),VC)){const c=Un(ye(n.modes)),h=nd(c);this.tokensMap=on(h,(p,d)=>(p[d.name]=d,p),{})}else if(Rn(n))this.tokensMap=we(n);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=La;const r=yt(n,"modes")?Un(ye(n.modes)):ye(n),u=In(r,c=>Qt(c.categoryMatches));this.tokenMatcher=u?Yu:Wr,Jr(ye(this.tokensMap))}defineRule(n,s,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${n}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
113
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const u=yt(r,"resyncEnabled")?r.resyncEnabled:Wu.resyncEnabled,c=yt(r,"recoveryValueFunc")?r.recoveryValueFunc:Wu.recoveryValueFunc,h=this.ruleShortNameIdx<<zw+ia;this.ruleShortNameIdx++,this.shortRuleNameToFull[h]=n,this.fullRuleNameToShort[n]=h;let p;return this.outputCst===!0?p=function(...T){try{this.ruleInvocationStateUpdate(h,n,this.subruleIdx),s.apply(this,T);const v=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(v),v}catch(v){return this.invokeRuleCatch(v,u,c)}finally{this.ruleFinallyStateUpdate()}}:p=function(...T){try{return this.ruleInvocationStateUpdate(h,n,this.subruleIdx),s.apply(this,T)}catch(v){return this.invokeRuleCatch(v,u,c)}finally{this.ruleFinallyStateUpdate()}},Object.assign(p,{ruleName:n,originalGrammarAction:s})}invokeRuleCatch(n,s,r){const u=this.RULE_STACK.length===1,c=s&&!this.isBackTracking()&&this.recoveryEnabled;if(Xu(n)){const h=n;if(c){const p=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(p))if(h.resyncedTokens=this.reSyncTo(p),this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return r(n);else{if(this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,h.partialCstResult=d}throw h}}else{if(u)return this.moveToTerminatedState(),r(n);throw h}}else throw n}optionInternal(n,s){const r=this.getKeyForAutomaticLookahead(xv,s);return this.optionInternalLogic(n,s,r)}optionInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof n!="function"){c=n.DEF;const h=n.GATE;if(h!==void 0){const p=u;u=()=>h.call(this)&&p.call(this)}}else c=n;if(u.call(this)===!0)return c.call(this)}atLeastOneInternal(n,s){const r=this.getKeyForAutomaticLookahead(Ch,n);return this.atLeastOneInternalLogic(n,s,r)}atLeastOneInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof s!="function"){c=s.DEF;const h=s.GATE;if(h!==void 0){const p=u;u=()=>h.call(this)&&p.call(this)}}else c=s;if(u.call(this)===!0){let h=this.doSingleRepetition(c);for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(c)}else throw this.raiseEarlyExitException(n,se.REPETITION_MANDATORY,s.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[n,s],u,Ch,n,aw)}atLeastOneSepFirstInternal(n,s){const r=this.getKeyForAutomaticLookahead(Bu,n);this.atLeastOneSepFirstInternalLogic(n,s,r)}atLeastOneSepFirstInternalLogic(n,s,r){const u=s.DEF,c=s.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const p=()=>this.tokenMatcher(this.LA(1),c);for(;this.tokenMatcher(this.LA(1),c)===!0;)this.CONSUME(c),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,c,p,u,Ay],p,Bu,n,Ay)}else throw this.raiseEarlyExitException(n,se.REPETITION_MANDATORY_WITH_SEPARATOR,s.ERR_MSG)}manyInternal(n,s){const r=this.getKeyForAutomaticLookahead(xh,n);return this.manyInternalLogic(n,s,r)}manyInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof s!="function"){c=s.DEF;const p=s.GATE;if(p!==void 0){const d=u;u=()=>p.call(this)&&d.call(this)}}else c=s;let h=!0;for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(c);this.attemptInRepetitionRecovery(this.manyInternal,[n,s],u,xh,n,iw,h)}manySepFirstInternal(n,s){const r=this.getKeyForAutomaticLookahead(wh,n);this.manySepFirstInternalLogic(n,s,r)}manySepFirstInternalLogic(n,s,r){const u=s.DEF,c=s.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const p=()=>this.tokenMatcher(this.LA(1),c);for(;this.tokenMatcher(this.LA(1),c)===!0;)this.CONSUME(c),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,c,p,u,Sy],p,wh,n,Sy)}}repetitionSepSecondInternal(n,s,r,u,c){for(;r();)this.CONSUME(s),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,s,r,u,c],r,Bu,n,c)}doSingleRepetition(n){const s=this.getLexerPosition();return n.call(this),this.getLexerPosition()>s}orInternal(n,s){const r=this.getKeyForAutomaticLookahead(Rv,s),u=zt(n)?n:n.DEF,h=this.getLaFuncFromCache(r).call(this,u);if(h!==void 0)return u[h].ALT.call(this);this.raiseNoAltException(s,n.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const n=this.LA(1),s=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:n,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Lw(s,n))}}subruleInternal(n,s,r){let u;try{const c=r!==void 0?r.ARGS:void 0;return this.subruleIdx=s,u=n.apply(this,c),this.cstPostNonTerminal(u,r!==void 0&&r.LABEL!==void 0?r.LABEL:n.ruleName),u}catch(c){throw this.subruleInternalError(c,r,n.ruleName)}}subruleInternalError(n,s,r){throw Xu(n)&&n.partialCstResult!==void 0&&(this.cstPostNonTerminal(n.partialCstResult,s!==void 0&&s.LABEL!==void 0?s.LABEL:r),delete n.partialCstResult),n}consumeInternal(n,s,r){let u;try{const c=this.LA(1);this.tokenMatcher(c,n)===!0?(this.consumeToken(),u=c):this.consumeInternalError(n,c,r)}catch(c){u=this.consumeInternalRecovery(n,s,c)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:n.name,u),u}consumeInternalError(n,s,r){let u;const c=this.LA(0);throw r!==void 0&&r.ERR_MSG?u=r.ERR_MSG:u=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:s,previous:c,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Ov(u,s,c))}consumeInternalRecovery(n,s,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){const u=this.getFollowsForInRuleRecovery(n,s);try{return this.tryInRuleRecovery(n,u)}catch(c){throw c.name===Nv?r:c}}else throw r}saveRecogState(){const n=this.errors,s=we(this.RULE_STACK);return{errors:n,lexerState:this.exportLexerState(),RULE_STACK:s,CST_STACK:this.CST_STACK}}reloadRecogState(n){this.errors=n.errors,this.importLexerState(n.lexerState),this.RULE_STACK=n.RULE_STACK}ruleInvocationStateUpdate(n,s,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(n),this.cstInvocationStateUpdate(s)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const n=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[n]}shortRuleNameToFullName(n){return this.shortRuleNameToFull[n]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),La)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class Jw{initErrorHandler(n){this._errors=[],this.errorMessageProvider=yt(n,"errorMessageProvider")?n.errorMessageProvider:Ti.errorMessageProvider}SAVE_ERROR(n){if(Xu(n))return n.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:we(this.RULE_OCCURRENCE_STACK)},this._errors.push(n),n;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return we(this._errors)}set errors(n){this._errors=n}raiseEarlyExitException(n,s,r){const u=this.getCurrRuleFullName(),c=this.getGAstProductions()[u],p=ld(n,c,s,this.maxLookahead)[0],d=[];for(let T=1;T<=this.maxLookahead;T++)d.push(this.LA(T));const _=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:p,actual:d,previous:this.LA(0),customUserDescription:r,ruleName:u});throw this.SAVE_ERROR(new Mw(_,this.LA(1),this.LA(0)))}raiseNoAltException(n,s){const r=this.getCurrRuleFullName(),u=this.getGAstProductions()[r],c=rd(n,u,this.maxLookahead),h=[];for(let _=1;_<=this.maxLookahead;_++)h.push(this.LA(_));const p=this.LA(0),d=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:c,actual:h,previous:p,customUserDescription:s,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ww(d,this.LA(1),p))}}class tL{initContentAssist(){}computeContentAssist(n,s){const r=this.gastProductionsCache[n];if(bi(r))throw Error(`Rule ->${n}<- does not exist in this grammar.`);return dv([r],s,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(n){const s=Bn(n.ruleStack),u=this.getGAstProductions()[s];return new nw(u,n).startWalking()}}const bo={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(bo);const xy=!0,Cy=Math.pow(2,ia)-1,wv=bt({name:"RECORDING_PHASE_TOKEN",pattern:ke.NA});Jr([wv]);const Lv=sd(wv,`This IToken indicates the Parser is in Recording Phase
|
|
114
|
+
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Lv);const eL={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
115
|
+
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};class nL{initGastRecorder(n){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let n=0;n<10;n++){const s=n>0?n:"";this[`CONSUME${s}`]=function(r,u){return this.consumeInternalRecord(r,n,u)},this[`SUBRULE${s}`]=function(r,u){return this.subruleInternalRecord(r,n,u)},this[`OPTION${s}`]=function(r){return this.optionInternalRecord(r,n)},this[`OR${s}`]=function(r){return this.orInternalRecord(r,n)},this[`MANY${s}`]=function(r){this.manyInternalRecord(n,r)},this[`MANY_SEP${s}`]=function(r){this.manySepFirstInternalRecord(n,r)},this[`AT_LEAST_ONE${s}`]=function(r){this.atLeastOneInternalRecord(n,r)},this[`AT_LEAST_ONE_SEP${s}`]=function(r){this.atLeastOneSepFirstInternalRecord(n,r)}}this.consume=function(n,s,r){return this.consumeInternalRecord(s,n,r)},this.subrule=function(n,s,r){return this.subruleInternalRecord(s,n,r)},this.option=function(n,s){return this.optionInternalRecord(s,n)},this.or=function(n,s){return this.orInternalRecord(s,n)},this.many=function(n,s){this.manyInternalRecord(n,s)},this.atLeastOne=function(n,s){this.atLeastOneInternalRecord(n,s)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const n=this;for(let s=0;s<10;s++){const r=s>0?s:"";delete n[`CONSUME${r}`],delete n[`SUBRULE${r}`],delete n[`OPTION${r}`],delete n[`OR${r}`],delete n[`MANY${r}`],delete n[`MANY_SEP${r}`],delete n[`AT_LEAST_ONE${r}`],delete n[`AT_LEAST_ONE_SEP${r}`]}delete n.consume,delete n.subrule,delete n.option,delete n.or,delete n.many,delete n.atLeastOne,delete n.ACTION,delete n.BACKTRACK,delete n.LA})}ACTION_RECORD(n){}BACKTRACK_RECORD(n,s){return()=>!0}LA_RECORD(n){return Zu}topLevelRuleRecord(n,s){try{const r=new Cs({definition:[],name:n});return r.name=n,this.recordingProdStack.push(r),s.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
|
|
116
116
|
This error was thrown during the "grammar recording phase" For more info see:
|
|
117
|
-
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(n,s){return xr.call(this,Ve,n,s)}atLeastOneInternalRecord(n,s){xr.call(this,Jn,s,n)}atLeastOneSepFirstInternalRecord(n,s){xr.call(this,ti,s,n,xy)}manyInternalRecord(n,s){xr.call(this,ve,s,n)}manySepFirstInternalRecord(n,s){xr.call(this,Dn,s,n,xy)}orInternalRecord(n,s){return
|
|
118
|
-
inside top level rule: <${this.recordingProdStack[0].name}>`);throw p.KNOWN_RECORDER_ERROR=!0,p}const u=Ca(this.recordingProdStack),c=n.ruleName,h=new cn({idx:s,nonTerminalName:c,label:r?.LABEL,referencedRule:void 0});return u.definition.push(h),this.outputCst?
|
|
119
|
-
inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}const u=Ca(this.recordingProdStack),c=new ne({idx:s,terminalType:n,label:r?.LABEL});return u.definition.push(c),
|
|
120
|
-
Idx value must be a none negative value smaller than ${Cy+1}`);throw n.KNOWN_RECORDER_ERROR=!0,n}}class
|
|
117
|
+
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(n,s){return xr.call(this,Ve,n,s)}atLeastOneInternalRecord(n,s){xr.call(this,Jn,s,n)}atLeastOneSepFirstInternalRecord(n,s){xr.call(this,ti,s,n,xy)}manyInternalRecord(n,s){xr.call(this,ve,s,n)}manySepFirstInternalRecord(n,s){xr.call(this,Dn,s,n,xy)}orInternalRecord(n,s){return iL.call(this,n,s)}subruleInternalRecord(n,s,r){if(Qu(s),!n||yt(n,"ruleName")===!1){const p=new Error(`<SUBRULE${wy(s)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(n)}>
|
|
118
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw p.KNOWN_RECORDER_ERROR=!0,p}const u=Ca(this.recordingProdStack),c=n.ruleName,h=new cn({idx:s,nonTerminalName:c,label:r?.LABEL,referencedRule:void 0});return u.definition.push(h),this.outputCst?eL:bo}consumeInternalRecord(n,s,r){if(Qu(s),!cv(n)){const h=new Error(`<CONSUME${wy(s)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(n)}>
|
|
119
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}const u=Ca(this.recordingProdStack),c=new ne({idx:s,terminalType:n,label:r?.LABEL});return u.definition.push(c),Lv}}function xr(i,n,s,r=!1){Qu(s);const u=Ca(this.recordingProdStack),c=Si(n)?n:n.DEF,h=new i({definition:[],idx:s});return r&&(h.separator=n.SEP),yt(n,"MAX_LOOKAHEAD")&&(h.maxLookahead=n.MAX_LOOKAHEAD),this.recordingProdStack.push(h),c.call(this),u.definition.push(h),this.recordingProdStack.pop(),bo}function iL(i,n){Qu(n);const s=Ca(this.recordingProdStack),r=zt(i)===!1,u=r===!1?i:i.DEF,c=new Pn({definition:[],idx:n,ignoreAmbiguities:r&&i.IGNORE_AMBIGUITIES===!0});yt(i,"MAX_LOOKAHEAD")&&(c.maxLookahead=i.MAX_LOOKAHEAD);const h=W0(u,p=>Si(p.GATE));return c.hasPredicates=h,s.definition.push(c),vt(u,p=>{const d=new Xe({definition:[]});c.definition.push(d),yt(p,"IGNORE_AMBIGUITIES")?d.ignoreAmbiguities=p.IGNORE_AMBIGUITIES:yt(p,"GATE")&&(d.ignoreAmbiguities=!0),this.recordingProdStack.push(d),p.ALT.call(this),this.recordingProdStack.pop()}),bo}function wy(i){return i===0?"":`${i}`}function Qu(i){if(i<0||i>Cy){const n=new Error(`Invalid DSL Method idx value: <${i}>
|
|
120
|
+
Idx value must be a none negative value smaller than ${Cy+1}`);throw n.KNOWN_RECORDER_ERROR=!0,n}}class aL{initPerformanceTracer(n){if(yt(n,"traceInitPerf")){const s=n.traceInitPerf,r=typeof s=="number";this.traceInitMaxIdent=r?s:1/0,this.traceInitPerf=r?s>0:s}else this.traceInitMaxIdent=0,this.traceInitPerf=Ti.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(n,s){if(this.traceInitPerf===!0){this.traceInitIndent++;const r=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${n}>`);const{time:u,value:c}=tv(s),h=u>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&h(`${r}<-- <${n}> time: ${u}ms`),this.traceInitIndent--,c}else return s()}}function sL(i,n){n.forEach(s=>{const r=s.prototype;Object.getOwnPropertyNames(r).forEach(u=>{if(u==="constructor")return;const c=Object.getOwnPropertyDescriptor(r,u);c&&(c.get||c.set)?Object.defineProperty(i.prototype,u,c):i.prototype[u]=s.prototype[u]})})}const Zu=sd(La,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Zu);const Ti=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:hv,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Wu=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var ze;(function(i){i[i.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",i[i.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",i[i.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",i[i.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",i[i.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",i[i.LEFT_RECURSION=5]="LEFT_RECURSION",i[i.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",i[i.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",i[i.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",i[i.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",i[i.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",i[i.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",i[i.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",i[i.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(ze||(ze={}));class tl{static performSelfAnalysis(n){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let n;this.selfAnalysisDone=!0;const s=this.className;this.TRACE_INIT("toFastProps",()=>{ev(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),vt(this.definedRulesNames,u=>{const h=this[u].originalGrammarAction;let p;this.TRACE_INIT(`${u} Rule`,()=>{p=this.topLevelRuleRecord(u,h)}),this.gastProductionsCache[u]=p})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT("Grammar Resolving",()=>{r=xw({rules:ye(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT("Grammar Validations",()=>{if(Qt(r)&&this.skipValidations===!1){const u=Cw({rules:ye(this.gastProductionsCache),tokenTypes:ye(this.tokensMap),errMsgProvider:Oa,grammarName:s}),c=dw({lookaheadStrategy:this.lookaheadStrategy,rules:ye(this.gastProductionsCache),tokenTypes:ye(this.tokensMap),grammarName:s});this.definitionErrors=this.definitionErrors.concat(u,c)}}),Qt(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const u=sC(ye(this.gastProductionsCache));this.resyncFollows=u}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var u,c;(c=(u=this.lookaheadStrategy).initialize)===null||c===void 0||c.call(u,{rules:ye(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(ye(this.gastProductionsCache))})),!tl.DEFER_DEFINITION_ERRORS_HANDLING&&!Qt(this.definitionErrors))throw n=ft(this.definitionErrors,u=>u.message),new Error(`Parser Definition Errors detected:
|
|
121
121
|
${n.join(`
|
|
122
122
|
-------------------------------
|
|
123
123
|
`)}`)})}constructor(n,s){this.definitionErrors=[],this.selfAnalysisDone=!1;const r=this;if(r.initErrorHandler(s),r.initLexerAdapter(),r.initLooksAhead(s),r.initRecognizerEngine(n,s),r.initRecoverable(s),r.initTreeBuilder(s),r.initContentAssist(),r.initGastRecorder(s),r.initPerformanceTracer(s),yt(s,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
124
124
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
125
125
|
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
126
|
-
For further details.`);this.skipValidations=yt(s,"skipValidations")?s.skipValidations:Ti.skipValidations}}tl.DEFER_DEFINITION_ERRORS_HANDLING=!1;
|
|
127
|
-
`&&i[c]!=="\r";c++)d+=i[c];if(d=d.trim(),d[d.length-1]==="/"&&(d=d.substring(0,d.length-1),c--),!
|
|
128
|
-
`||i==="\r"}function My(i,n){const s=n;for(;n<i.length;n++)if(i[n]=="?"||i[n]==" "){const r=i.substr(s,n-s);if(n>5&&r==="xml")return ce("InvalidXml","XML declaration allowed only at the start of the document.",Ie(i,n));if(i[n]=="?"&&i[n+1]==">"){n++;break}else continue}return n}function ky(i,n){if(i.length>n+5&&i[n+1]==="-"&&i[n+2]==="-"){for(n+=3;n<i.length;n++)if(i[n]==="-"&&i[n+1]==="-"&&i[n+2]===">"){n+=2;break}}else if(i.length>n+8&&i[n+1]==="D"&&i[n+2]==="O"&&i[n+3]==="C"&&i[n+4]==="T"&&i[n+5]==="Y"&&i[n+6]==="P"&&i[n+7]==="E"){let s=1;for(n+=8;n<i.length;n++)if(i[n]==="<")s++;else if(i[n]===">"&&(s--,s===0))break}else if(i.length>n+9&&i[n+1]==="["&&i[n+2]==="C"&&i[n+3]==="D"&&i[n+4]==="A"&&i[n+5]==="T"&&i[n+6]==="A"&&i[n+7]==="["){for(n+=8;n<i.length;n++)if(i[n]==="]"&&i[n+1]==="]"&&i[n+2]===">"){n+=2;break}}return n}const hL='"',dL="'";function pL(i,n){let s="",r="",u=!1;for(;n<i.length;n++){if(i[n]===hL||i[n]===dL)r===""?r=i[n]:r!==i[n]||(r="");else if(i[n]===">"&&r===""){u=!0;break}s+=i[n]}return r!==""?!1:{value:s,index:n,tagClosed:u}}const _L=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Uy(i,n){const s=Mv(i,_L),r={};for(let u=0;u<s.length;u++){if(s[u][1].length===0)return ce("InvalidAttr","Attribute '"+s[u][2]+"' has no space in starting.",Cr(s[u]));if(s[u][3]!==void 0&&s[u][4]===void 0)return ce("InvalidAttr","Attribute '"+s[u][2]+"' is without value.",Cr(s[u]));if(s[u][3]===void 0&&!n.allowBooleanAttributes)return ce("InvalidAttr","boolean attribute '"+s[u][2]+"' is not allowed.",Cr(s[u]));const c=s[u][2];if(!yL(c))return ce("InvalidAttr","Attribute '"+c+"' is an invalid name.",Cr(s[u]));if(!r.hasOwnProperty(c))r[c]=1;else return ce("InvalidAttr","Attribute '"+c+"' is repeated.",Cr(s[u]))}return!0}function gL(i,n){let s=/\d/;for(i[n]==="x"&&(n++,s=/[\da-fA-F]/);n<i.length;n++){if(i[n]===";")return n;if(!i[n].match(s))break}return-1}function mL(i,n){if(n++,i[n]===";")return-1;if(i[n]==="#")return n++,gL(i,n);let s=0;for(;n<i.length;n++,s++)if(!(i[n].match(/\w/)&&s<20)){if(i[n]===";")break;return-1}return n}function ce(i,n,s){return{err:{code:i,msg:n,line:s.line||s,col:s.col}}}function yL(i){return To(i)}function vL(i){return To(i)}function Ie(i,n){const s=i.substring(0,n).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function Cr(i){return i.startIndex+i[1].length}const EL={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(i,n){return n},attributeValueProcessor:function(i,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(i,n,s){return i},captureMetaData:!1},bL=function(i){return Object.assign({},EL,i)};let Ju;typeof Symbol!="function"?Ju="@@xmlMetadata":Ju=Symbol("XML Node Metadata");class Aa{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,s){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:s})}addChild(n,s){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child}),s!==void 0&&(this.child[this.child.length-1][Ju]={startIndex:s})}static getMetaDataSymbol(){return Ju}}class TL{constructor(n){this.suppressValidationErr=!n}readDocType(n,s){const r={};if(n[s+3]==="O"&&n[s+4]==="C"&&n[s+5]==="T"&&n[s+6]==="Y"&&n[s+7]==="P"&&n[s+8]==="E"){s=s+9;let u=1,c=!1,h=!1,p="";for(;s<n.length;s++)if(n[s]==="<"&&!h){if(c&&Sa(n,"!ENTITY",s)){s+=7;let d,_;[d,_,s]=this.readEntityExp(n,s+1,this.suppressValidationErr),_.indexOf("&")===-1&&(r[d]={regx:RegExp(`&${d};`,"g"),val:_})}else if(c&&Sa(n,"!ELEMENT",s)){s+=8;const{index:d}=this.readElementExp(n,s+1);s=d}else if(c&&Sa(n,"!ATTLIST",s))s+=8;else if(c&&Sa(n,"!NOTATION",s)){s+=9;const{index:d}=this.readNotationExp(n,s+1,this.suppressValidationErr);s=d}else if(Sa(n,"!--",s))h=!0;else throw new Error("Invalid DOCTYPE");u++,p=""}else if(n[s]===">"){if(h?n[s-1]==="-"&&n[s-2]==="-"&&(h=!1,u--):u--,u===0)break}else n[s]==="["?c=!0:p+=n[s];if(u!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:s}}readEntityExp(n,s){s=Fe(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s])&&n[s]!=='"'&&n[s]!=="'";)r+=n[s],s++;if(wr(r),s=Fe(n,s),!this.suppressValidationErr){if(n.substring(s,s+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(n[s]==="%")throw new Error("Parameter entities are not supported")}let u="";return[s,u]=this.readIdentifierVal(n,s,"entity"),s--,[r,u,s]}readNotationExp(n,s){s=Fe(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;!this.suppressValidationErr&&wr(r),s=Fe(n,s);const u=n.substring(s,s+6).toUpperCase();if(!this.suppressValidationErr&&u!=="SYSTEM"&&u!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${u}"`);s+=u.length,s=Fe(n,s);let c=null,h=null;if(u==="PUBLIC")[s,c]=this.readIdentifierVal(n,s,"publicIdentifier"),s=Fe(n,s),(n[s]==='"'||n[s]==="'")&&([s,h]=this.readIdentifierVal(n,s,"systemIdentifier"));else if(u==="SYSTEM"&&([s,h]=this.readIdentifierVal(n,s,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:r,publicIdentifier:c,systemIdentifier:h,index:--s}}readIdentifierVal(n,s,r){let u="";const c=n[s];if(c!=='"'&&c!=="'")throw new Error(`Expected quoted string, found "${c}"`);for(s++;s<n.length&&n[s]!==c;)u+=n[s],s++;if(n[s]!==c)throw new Error(`Unterminated ${r} value`);return s++,[s,u]}readElementExp(n,s){s=Fe(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;if(!this.suppressValidationErr&&!To(r))throw new Error(`Invalid element name: "${r}"`);s=Fe(n,s);let u="";if(n[s]==="E"&&Sa(n,"MPTY",s))s+=4;else if(n[s]==="A"&&Sa(n,"NY",s))s+=2;else if(n[s]==="("){for(s++;s<n.length&&n[s]!==")";)u+=n[s],s++;if(n[s]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${n[s]}"`);return{elementName:r,contentModel:u.trim(),index:s}}readAttlistExp(n,s){s=Fe(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;wr(r),s=Fe(n,s);let u="";for(;s<n.length&&!/\s/.test(n[s]);)u+=n[s],s++;if(!wr(u))throw new Error(`Invalid attribute name: "${u}"`);s=Fe(n,s);let c="";if(n.substring(s,s+8).toUpperCase()==="NOTATION"){if(c="NOTATION",s+=8,s=Fe(n,s),n[s]!=="(")throw new Error(`Expected '(', found "${n[s]}"`);s++;let p=[];for(;s<n.length&&n[s]!==")";){let d="";for(;s<n.length&&n[s]!=="|"&&n[s]!==")";)d+=n[s],s++;if(d=d.trim(),!wr(d))throw new Error(`Invalid notation name: "${d}"`);p.push(d),n[s]==="|"&&(s++,s=Fe(n,s))}if(n[s]!==")")throw new Error("Unterminated list of notations");s++,c+=" ("+p.join("|")+")"}else{for(;s<n.length&&!/\s/.test(n[s]);)c+=n[s],s++;const p=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!p.includes(c.toUpperCase()))throw new Error(`Invalid attribute type: "${c}"`)}s=Fe(n,s);let h="";return n.substring(s,s+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",s+=8):n.substring(s,s+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",s+=7):[s,h]=this.readIdentifierVal(n,s,"ATTLIST"),{elementName:r,attributeName:u,attributeType:c,defaultValue:h,index:s}}}const Fe=(i,n)=>{for(;n<i.length&&/\s/.test(i[n]);)n++;return n};function Sa(i,n,s){for(let r=0;r<n.length;r++)if(n[r]!==i[s+r+1])return!1;return!0}function wr(i){if(To(i))return i;throw new Error(`Invalid entity name ${i}`)}const SL=/^[-+]?0x[a-fA-F0-9]+$/,AL=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,OL={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function NL(i,n={}){if(n=Object.assign({},OL,n),!i||typeof i!="string")return i;let s=i.trim();if(n.skipLike!==void 0&&n.skipLike.test(s))return i;if(i==="0")return 0;if(n.hex&&SL.test(s))return wL(s,16);if(s.includes("e")||s.includes("E"))return xL(i,s,n);{const r=AL.exec(s);if(r){const u=r[1]||"",c=r[2];let h=CL(r[3]);const p=u?i[c.length+1]===".":i[c.length]===".";if(!n.leadingZeros&&(c.length>1||c.length===1&&!p))return i;{const d=Number(s),_=String(d);if(d===0)return d;if(_.search(/[eE]/)!==-1)return n.eNotation?d:i;if(s.indexOf(".")!==-1)return _==="0"||_===h||_===`${u}${h}`?d:i;let T=c?h:s;return c?T===_||u+T===_?d:i:T===_||T===u+_?d:i}}else return i}}const RL=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function xL(i,n,s){if(!s.eNotation)return i;const r=n.match(RL);if(r){let u=r[1]||"";const c=r[3].indexOf("e")===-1?"E":"e",h=r[2],p=u?i[h.length+1]===c:i[h.length]===c;return h.length>1&&p?i:h.length===1&&(r[3].startsWith(`.${c}`)||r[3][0]===c)?Number(n):s.leadingZeros&&!p?(n=(r[1]||"")+r[3],Number(n)):i}else return i}function CL(i){return i&&i.indexOf(".")!==-1&&(i=i.replace(/0+$/,""),i==="."?i="0":i[0]==="."?i="0"+i:i[i.length-1]==="."&&(i=i.substring(0,i.length-1))),i}function wL(i,n){if(parseInt)return parseInt(i,n);if(Number.parseInt)return Number.parseInt(i,n);if(window&&window.parseInt)return window.parseInt(i,n);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function kv(i){return typeof i=="function"?i:Array.isArray(i)?n=>{for(const s of i)if(typeof s=="string"&&n===s||s instanceof RegExp&&s.test(n))return!0}:()=>!1}class LL{constructor(n){if(this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(s,r)=>String.fromCodePoint(Number.parseInt(r,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(s,r)=>String.fromCodePoint(Number.parseInt(r,16))}},this.addExternalEntities=ML,this.parseXml=BL,this.parseTextData=kL,this.resolveNameSpace=UL,this.buildAttributesMap=zL,this.isItStopNode=qL,this.replaceEntitiesValue=DL,this.readStopNodeData=HL,this.saveTextToParentTag=PL,this.addChild=jL,this.ignoreAttributesFn=kv(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let s=0;s<this.options.stopNodes.length;s++){const r=this.options.stopNodes[s];typeof r=="string"&&(r.startsWith("*.")?this.stopNodesWildcard.add(r.substring(2)):this.stopNodesExact.add(r))}}}}function ML(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:i[r]}}}function kL(i,n,s,r,u,c,h){if(i!==void 0&&(this.options.trimValues&&!r&&(i=i.trim()),i.length>0)){h||(i=this.replaceEntitiesValue(i));const p=this.options.tagValueProcessor(n,i,s,u,c);return p==null?i:typeof p!=typeof i||p!==i?p:this.options.trimValues?kh(i,this.options.parseTagValue,this.options.numberParseOptions):i.trim()===i?kh(i,this.options.parseTagValue,this.options.numberParseOptions):i}}function UL(i){if(this.options.removeNSPrefix){const n=i.split(":"),s=i.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(i=s+n[1])}return i}const IL=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function zL(i,n){if(this.options.ignoreAttributes!==!0&&typeof i=="string"){const s=Mv(i,IL),r=s.length,u={};for(let c=0;c<r;c++){const h=this.resolveNameSpace(s[c][1]);if(this.ignoreAttributesFn(h,n))continue;let p=s[c][4],d=this.options.attributeNamePrefix+h;if(h.length)if(this.options.transformAttributeName&&(d=this.options.transformAttributeName(d)),d==="__proto__"&&(d="#__proto__"),p!==void 0){this.options.trimValues&&(p=p.trim()),p=this.replaceEntitiesValue(p);const _=this.options.attributeValueProcessor(h,p,n);_==null?u[d]=p:typeof _!=typeof p||_!==p?u[d]=_:u[d]=kh(p,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(u[d]=!0)}if(!Object.keys(u).length)return;if(this.options.attributesGroupName){const c={};return c[this.options.attributesGroupName]=u,c}return u}}const BL=function(i){i=i.replace(/\r\n?/g,`
|
|
129
|
-
`);const n=new Aa("!xml");let s=n,r="",u="";const c=new
|
|
130
|
-
`;function
|
|
126
|
+
For further details.`);this.skipValidations=yt(s,"skipValidations")?s.skipValidations:Ti.skipValidations}}tl.DEFER_DEFINITION_ERRORS_HANDLING=!1;sL(tl,[Uw,jw,Xw,Qw,Ww,Zw,Jw,tL,nL,aL]);class rL extends tl{constructor(n,s=Ti){const r=we(s);r.outputCst=!0,super(n,r)}}const Mv=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",lL=Mv+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",uL="["+Mv+"]["+lL+"]*",oL=new RegExp("^"+uL+"$");function kv(i,n){const s=[];let r=n.exec(i);for(;r;){const u=[];u.startIndex=n.lastIndex-r[0].length;const c=r.length;for(let h=0;h<c;h++)u.push(r[h]);s.push(u),r=n.exec(i)}return s}const To=function(i){const n=oL.exec(i);return!(n===null||typeof n>"u")};function cL(i){return typeof i<"u"}const fL={allowBooleanAttributes:!1,unpairedTags:[]};function hL(i,n){n=Object.assign({},fL,n);const s=[];let r=!1,u=!1;i[0]==="\uFEFF"&&(i=i.substr(1));for(let c=0;c<i.length;c++)if(i[c]==="<"&&i[c+1]==="?"){if(c+=2,c=My(i,c),c.err)return c}else if(i[c]==="<"){let h=c;if(c++,i[c]==="!"){c=ky(i,c);continue}else{let p=!1;i[c]==="/"&&(p=!0,c++);let d="";for(;c<i.length&&i[c]!==">"&&i[c]!==" "&&i[c]!==" "&&i[c]!==`
|
|
127
|
+
`&&i[c]!=="\r";c++)d+=i[c];if(d=d.trim(),d[d.length-1]==="/"&&(d=d.substring(0,d.length-1),c--),!EL(d)){let v;return d.trim().length===0?v="Invalid space after '<'.":v="Tag '"+d+"' is an invalid name.",ce("InvalidTag",v,Ie(i,c))}const _=_L(i,c);if(_===!1)return ce("InvalidAttr","Attributes for '"+d+"' have open quote.",Ie(i,c));let T=_.value;if(c=_.index,T[T.length-1]==="/"){const v=c-T.length;T=T.substring(0,T.length-1);const R=Uy(T,n);if(R===!0)r=!0;else return ce(R.err.code,R.err.msg,Ie(i,v+R.err.line))}else if(p)if(_.tagClosed){if(T.trim().length>0)return ce("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",Ie(i,h));if(s.length===0)return ce("InvalidTag","Closing tag '"+d+"' has not been opened.",Ie(i,h));{const v=s.pop();if(d!==v.tagName){let R=Ie(i,v.tagStartPos);return ce("InvalidTag","Expected closing tag '"+v.tagName+"' (opened in line "+R.line+", col "+R.col+") instead of closing tag '"+d+"'.",Ie(i,h))}s.length==0&&(u=!0)}}else return ce("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",Ie(i,c));else{const v=Uy(T,n);if(v!==!0)return ce(v.err.code,v.err.msg,Ie(i,c-T.length+v.err.line));if(u===!0)return ce("InvalidXml","Multiple possible root nodes found.",Ie(i,c));n.unpairedTags.indexOf(d)!==-1||s.push({tagName:d,tagStartPos:h}),r=!0}for(c++;c<i.length;c++)if(i[c]==="<")if(i[c+1]==="!"){c++,c=ky(i,c);continue}else if(i[c+1]==="?"){if(c=My(i,++c),c.err)return c}else break;else if(i[c]==="&"){const v=yL(i,c);if(v==-1)return ce("InvalidChar","char '&' is not expected.",Ie(i,c));c=v}else if(u===!0&&!Ly(i[c]))return ce("InvalidXml","Extra text at the end",Ie(i,c));i[c]==="<"&&c--}}else{if(Ly(i[c]))continue;return ce("InvalidChar","char '"+i[c]+"' is not expected.",Ie(i,c))}if(r){if(s.length==1)return ce("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",Ie(i,s[0].tagStartPos));if(s.length>0)return ce("InvalidXml","Invalid '"+JSON.stringify(s.map(c=>c.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ce("InvalidXml","Start tag expected.",1);return!0}function Ly(i){return i===" "||i===" "||i===`
|
|
128
|
+
`||i==="\r"}function My(i,n){const s=n;for(;n<i.length;n++)if(i[n]=="?"||i[n]==" "){const r=i.substr(s,n-s);if(n>5&&r==="xml")return ce("InvalidXml","XML declaration allowed only at the start of the document.",Ie(i,n));if(i[n]=="?"&&i[n+1]==">"){n++;break}else continue}return n}function ky(i,n){if(i.length>n+5&&i[n+1]==="-"&&i[n+2]==="-"){for(n+=3;n<i.length;n++)if(i[n]==="-"&&i[n+1]==="-"&&i[n+2]===">"){n+=2;break}}else if(i.length>n+8&&i[n+1]==="D"&&i[n+2]==="O"&&i[n+3]==="C"&&i[n+4]==="T"&&i[n+5]==="Y"&&i[n+6]==="P"&&i[n+7]==="E"){let s=1;for(n+=8;n<i.length;n++)if(i[n]==="<")s++;else if(i[n]===">"&&(s--,s===0))break}else if(i.length>n+9&&i[n+1]==="["&&i[n+2]==="C"&&i[n+3]==="D"&&i[n+4]==="A"&&i[n+5]==="T"&&i[n+6]==="A"&&i[n+7]==="["){for(n+=8;n<i.length;n++)if(i[n]==="]"&&i[n+1]==="]"&&i[n+2]===">"){n+=2;break}}return n}const dL='"',pL="'";function _L(i,n){let s="",r="",u=!1;for(;n<i.length;n++){if(i[n]===dL||i[n]===pL)r===""?r=i[n]:r!==i[n]||(r="");else if(i[n]===">"&&r===""){u=!0;break}s+=i[n]}return r!==""?!1:{value:s,index:n,tagClosed:u}}const gL=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Uy(i,n){const s=kv(i,gL),r={};for(let u=0;u<s.length;u++){if(s[u][1].length===0)return ce("InvalidAttr","Attribute '"+s[u][2]+"' has no space in starting.",Cr(s[u]));if(s[u][3]!==void 0&&s[u][4]===void 0)return ce("InvalidAttr","Attribute '"+s[u][2]+"' is without value.",Cr(s[u]));if(s[u][3]===void 0&&!n.allowBooleanAttributes)return ce("InvalidAttr","boolean attribute '"+s[u][2]+"' is not allowed.",Cr(s[u]));const c=s[u][2];if(!vL(c))return ce("InvalidAttr","Attribute '"+c+"' is an invalid name.",Cr(s[u]));if(!r.hasOwnProperty(c))r[c]=1;else return ce("InvalidAttr","Attribute '"+c+"' is repeated.",Cr(s[u]))}return!0}function mL(i,n){let s=/\d/;for(i[n]==="x"&&(n++,s=/[\da-fA-F]/);n<i.length;n++){if(i[n]===";")return n;if(!i[n].match(s))break}return-1}function yL(i,n){if(n++,i[n]===";")return-1;if(i[n]==="#")return n++,mL(i,n);let s=0;for(;n<i.length;n++,s++)if(!(i[n].match(/\w/)&&s<20)){if(i[n]===";")break;return-1}return n}function ce(i,n,s){return{err:{code:i,msg:n,line:s.line||s,col:s.col}}}function vL(i){return To(i)}function EL(i){return To(i)}function Ie(i,n){const s=i.substring(0,n).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function Cr(i){return i.startIndex+i[1].length}const bL={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(i,n){return n},attributeValueProcessor:function(i,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(i,n,s){return i},captureMetaData:!1},TL=function(i){return Object.assign({},bL,i)};let Ju;typeof Symbol!="function"?Ju="@@xmlMetadata":Ju=Symbol("XML Node Metadata");class Aa{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,s){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:s})}addChild(n,s){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child}),s!==void 0&&(this.child[this.child.length-1][Ju]={startIndex:s})}static getMetaDataSymbol(){return Ju}}class SL{constructor(n){this.suppressValidationErr=!n}readDocType(n,s){const r={};if(n[s+3]==="O"&&n[s+4]==="C"&&n[s+5]==="T"&&n[s+6]==="Y"&&n[s+7]==="P"&&n[s+8]==="E"){s=s+9;let u=1,c=!1,h=!1,p="";for(;s<n.length;s++)if(n[s]==="<"&&!h){if(c&&Sa(n,"!ENTITY",s)){s+=7;let d,_;[d,_,s]=this.readEntityExp(n,s+1,this.suppressValidationErr),_.indexOf("&")===-1&&(r[d]={regx:RegExp(`&${d};`,"g"),val:_})}else if(c&&Sa(n,"!ELEMENT",s)){s+=8;const{index:d}=this.readElementExp(n,s+1);s=d}else if(c&&Sa(n,"!ATTLIST",s))s+=8;else if(c&&Sa(n,"!NOTATION",s)){s+=9;const{index:d}=this.readNotationExp(n,s+1,this.suppressValidationErr);s=d}else if(Sa(n,"!--",s))h=!0;else throw new Error("Invalid DOCTYPE");u++,p=""}else if(n[s]===">"){if(h?n[s-1]==="-"&&n[s-2]==="-"&&(h=!1,u--):u--,u===0)break}else n[s]==="["?c=!0:p+=n[s];if(u!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:s}}readEntityExp(n,s){s=Fe(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s])&&n[s]!=='"'&&n[s]!=="'";)r+=n[s],s++;if(wr(r),s=Fe(n,s),!this.suppressValidationErr){if(n.substring(s,s+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(n[s]==="%")throw new Error("Parameter entities are not supported")}let u="";return[s,u]=this.readIdentifierVal(n,s,"entity"),s--,[r,u,s]}readNotationExp(n,s){s=Fe(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;!this.suppressValidationErr&&wr(r),s=Fe(n,s);const u=n.substring(s,s+6).toUpperCase();if(!this.suppressValidationErr&&u!=="SYSTEM"&&u!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${u}"`);s+=u.length,s=Fe(n,s);let c=null,h=null;if(u==="PUBLIC")[s,c]=this.readIdentifierVal(n,s,"publicIdentifier"),s=Fe(n,s),(n[s]==='"'||n[s]==="'")&&([s,h]=this.readIdentifierVal(n,s,"systemIdentifier"));else if(u==="SYSTEM"&&([s,h]=this.readIdentifierVal(n,s,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:r,publicIdentifier:c,systemIdentifier:h,index:--s}}readIdentifierVal(n,s,r){let u="";const c=n[s];if(c!=='"'&&c!=="'")throw new Error(`Expected quoted string, found "${c}"`);for(s++;s<n.length&&n[s]!==c;)u+=n[s],s++;if(n[s]!==c)throw new Error(`Unterminated ${r} value`);return s++,[s,u]}readElementExp(n,s){s=Fe(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;if(!this.suppressValidationErr&&!To(r))throw new Error(`Invalid element name: "${r}"`);s=Fe(n,s);let u="";if(n[s]==="E"&&Sa(n,"MPTY",s))s+=4;else if(n[s]==="A"&&Sa(n,"NY",s))s+=2;else if(n[s]==="("){for(s++;s<n.length&&n[s]!==")";)u+=n[s],s++;if(n[s]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${n[s]}"`);return{elementName:r,contentModel:u.trim(),index:s}}readAttlistExp(n,s){s=Fe(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;wr(r),s=Fe(n,s);let u="";for(;s<n.length&&!/\s/.test(n[s]);)u+=n[s],s++;if(!wr(u))throw new Error(`Invalid attribute name: "${u}"`);s=Fe(n,s);let c="";if(n.substring(s,s+8).toUpperCase()==="NOTATION"){if(c="NOTATION",s+=8,s=Fe(n,s),n[s]!=="(")throw new Error(`Expected '(', found "${n[s]}"`);s++;let p=[];for(;s<n.length&&n[s]!==")";){let d="";for(;s<n.length&&n[s]!=="|"&&n[s]!==")";)d+=n[s],s++;if(d=d.trim(),!wr(d))throw new Error(`Invalid notation name: "${d}"`);p.push(d),n[s]==="|"&&(s++,s=Fe(n,s))}if(n[s]!==")")throw new Error("Unterminated list of notations");s++,c+=" ("+p.join("|")+")"}else{for(;s<n.length&&!/\s/.test(n[s]);)c+=n[s],s++;const p=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!p.includes(c.toUpperCase()))throw new Error(`Invalid attribute type: "${c}"`)}s=Fe(n,s);let h="";return n.substring(s,s+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",s+=8):n.substring(s,s+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",s+=7):[s,h]=this.readIdentifierVal(n,s,"ATTLIST"),{elementName:r,attributeName:u,attributeType:c,defaultValue:h,index:s}}}const Fe=(i,n)=>{for(;n<i.length&&/\s/.test(i[n]);)n++;return n};function Sa(i,n,s){for(let r=0;r<n.length;r++)if(n[r]!==i[s+r+1])return!1;return!0}function wr(i){if(To(i))return i;throw new Error(`Invalid entity name ${i}`)}const AL=/^[-+]?0x[a-fA-F0-9]+$/,OL=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,NL={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function RL(i,n={}){if(n=Object.assign({},NL,n),!i||typeof i!="string")return i;let s=i.trim();if(n.skipLike!==void 0&&n.skipLike.test(s))return i;if(i==="0")return 0;if(n.hex&&AL.test(s))return LL(s,16);if(s.includes("e")||s.includes("E"))return CL(i,s,n);{const r=OL.exec(s);if(r){const u=r[1]||"",c=r[2];let h=wL(r[3]);const p=u?i[c.length+1]===".":i[c.length]===".";if(!n.leadingZeros&&(c.length>1||c.length===1&&!p))return i;{const d=Number(s),_=String(d);if(d===0)return d;if(_.search(/[eE]/)!==-1)return n.eNotation?d:i;if(s.indexOf(".")!==-1)return _==="0"||_===h||_===`${u}${h}`?d:i;let T=c?h:s;return c?T===_||u+T===_?d:i:T===_||T===u+_?d:i}}else return i}}const xL=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function CL(i,n,s){if(!s.eNotation)return i;const r=n.match(xL);if(r){let u=r[1]||"";const c=r[3].indexOf("e")===-1?"E":"e",h=r[2],p=u?i[h.length+1]===c:i[h.length]===c;return h.length>1&&p?i:h.length===1&&(r[3].startsWith(`.${c}`)||r[3][0]===c)?Number(n):s.leadingZeros&&!p?(n=(r[1]||"")+r[3],Number(n)):i}else return i}function wL(i){return i&&i.indexOf(".")!==-1&&(i=i.replace(/0+$/,""),i==="."?i="0":i[0]==="."?i="0"+i:i[i.length-1]==="."&&(i=i.substring(0,i.length-1))),i}function LL(i,n){if(parseInt)return parseInt(i,n);if(Number.parseInt)return Number.parseInt(i,n);if(window&&window.parseInt)return window.parseInt(i,n);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function Uv(i){return typeof i=="function"?i:Array.isArray(i)?n=>{for(const s of i)if(typeof s=="string"&&n===s||s instanceof RegExp&&s.test(n))return!0}:()=>!1}class ML{constructor(n){if(this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(s,r)=>Iy(r,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(s,r)=>Iy(r,16,"&#x")}},this.addExternalEntities=kL,this.parseXml=jL,this.parseTextData=UL,this.resolveNameSpace=IL,this.buildAttributesMap=BL,this.isItStopNode=GL,this.replaceEntitiesValue=PL,this.readStopNodeData=$L,this.saveTextToParentTag=qL,this.addChild=DL,this.ignoreAttributesFn=Uv(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let s=0;s<this.options.stopNodes.length;s++){const r=this.options.stopNodes[s];typeof r=="string"&&(r.startsWith("*.")?this.stopNodesWildcard.add(r.substring(2)):this.stopNodesExact.add(r))}}}}function kL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:i[r]}}}function UL(i,n,s,r,u,c,h){if(i!==void 0&&(this.options.trimValues&&!r&&(i=i.trim()),i.length>0)){h||(i=this.replaceEntitiesValue(i));const p=this.options.tagValueProcessor(n,i,s,u,c);return p==null?i:typeof p!=typeof i||p!==i?p:this.options.trimValues?kh(i,this.options.parseTagValue,this.options.numberParseOptions):i.trim()===i?kh(i,this.options.parseTagValue,this.options.numberParseOptions):i}}function IL(i){if(this.options.removeNSPrefix){const n=i.split(":"),s=i.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(i=s+n[1])}return i}const zL=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function BL(i,n){if(this.options.ignoreAttributes!==!0&&typeof i=="string"){const s=kv(i,zL),r=s.length,u={};for(let c=0;c<r;c++){const h=this.resolveNameSpace(s[c][1]);if(this.ignoreAttributesFn(h,n))continue;let p=s[c][4],d=this.options.attributeNamePrefix+h;if(h.length)if(this.options.transformAttributeName&&(d=this.options.transformAttributeName(d)),d==="__proto__"&&(d="#__proto__"),p!==void 0){this.options.trimValues&&(p=p.trim()),p=this.replaceEntitiesValue(p);const _=this.options.attributeValueProcessor(h,p,n);_==null?u[d]=p:typeof _!=typeof p||_!==p?u[d]=_:u[d]=kh(p,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(u[d]=!0)}if(!Object.keys(u).length)return;if(this.options.attributesGroupName){const c={};return c[this.options.attributesGroupName]=u,c}return u}}const jL=function(i){i=i.replace(/\r\n?/g,`
|
|
129
|
+
`);const n=new Aa("!xml");let s=n,r="",u="";const c=new SL(this.options.processEntities);for(let h=0;h<i.length;h++)if(i[h]==="<")if(i[h+1]==="/"){const d=Na(i,">",h,"Closing Tag is not closed.");let _=i.substring(h+2,d).trim();if(this.options.removeNSPrefix){const R=_.indexOf(":");R!==-1&&(_=_.substr(R+1))}this.options.transformTagName&&(_=this.options.transformTagName(_)),s&&(r=this.saveTextToParentTag(r,s,u));const T=u.substring(u.lastIndexOf(".")+1);if(_&&this.options.unpairedTags.indexOf(_)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${_}>`);let v=0;T&&this.options.unpairedTags.indexOf(T)!==-1?(v=u.lastIndexOf(".",u.lastIndexOf(".")-1),this.tagsNodeStack.pop()):v=u.lastIndexOf("."),u=u.substring(0,v),s=this.tagsNodeStack.pop(),r="",h=d}else if(i[h+1]==="?"){let d=Mh(i,h,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,s,u),!(this.options.ignoreDeclaration&&d.tagName==="?xml"||this.options.ignorePiTags)){const _=new Aa(d.tagName);_.add(this.options.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&(_[":@"]=this.buildAttributesMap(d.tagExp,u)),this.addChild(s,_,u,h)}h=d.closeIndex+1}else if(i.substr(h+1,3)==="!--"){const d=Na(i,"-->",h+4,"Comment is not closed.");if(this.options.commentPropName){const _=i.substring(h+4,d-2);r=this.saveTextToParentTag(r,s,u),s.add(this.options.commentPropName,[{[this.options.textNodeName]:_}])}h=d}else if(i.substr(h+1,2)==="!D"){const d=c.readDocType(i,h);this.docTypeEntities=d.entities,h=d.i}else if(i.substr(h+1,2)==="!["){const d=Na(i,"]]>",h,"CDATA is not closed.")-2,_=i.substring(h+9,d);r=this.saveTextToParentTag(r,s,u);let T=this.parseTextData(_,s.tagname,u,!0,!1,!0,!0);T==null&&(T=""),this.options.cdataPropName?s.add(this.options.cdataPropName,[{[this.options.textNodeName]:_}]):s.add(this.options.textNodeName,T),h=d+2}else{let d=Mh(i,h,this.options.removeNSPrefix),_=d.tagName;const T=d.rawTagName;let v=d.tagExp,R=d.attrExpPresent,q=d.closeIndex;if(this.options.transformTagName){const O=this.options.transformTagName(_);v===_&&(v=O),_=O}s&&r&&s.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,s,u,!1));const K=s;K&&this.options.unpairedTags.indexOf(K.tagname)!==-1&&(s=this.tagsNodeStack.pop(),u=u.substring(0,u.lastIndexOf("."))),_!==n.tagname&&(u+=u?"."+_:_);const Q=h;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,u,_)){let O="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)_[_.length-1]==="/"?(_=_.substr(0,_.length-1),u=u.substr(0,u.length-1),v=_):v=v.substr(0,v.length-1),h=d.closeIndex;else if(this.options.unpairedTags.indexOf(_)!==-1)h=d.closeIndex;else{const N=this.readStopNodeData(i,T,q+1);if(!N)throw new Error(`Unexpected end of ${T}`);h=N.i,O=N.tagContent}const b=new Aa(_);_!==v&&R&&(b[":@"]=this.buildAttributesMap(v,u)),O&&(O=this.parseTextData(O,_,u,!0,R,!0,!0)),u=u.substr(0,u.lastIndexOf(".")),b.add(this.options.textNodeName,O),this.addChild(s,b,u,Q)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){if(_[_.length-1]==="/"?(_=_.substr(0,_.length-1),u=u.substr(0,u.length-1),v=_):v=v.substr(0,v.length-1),this.options.transformTagName){const b=this.options.transformTagName(_);v===_&&(v=b),_=b}const O=new Aa(_);_!==v&&R&&(O[":@"]=this.buildAttributesMap(v,u)),this.addChild(s,O,u,Q),u=u.substr(0,u.lastIndexOf("."))}else{const O=new Aa(_);this.tagsNodeStack.push(s),_!==v&&R&&(O[":@"]=this.buildAttributesMap(v,u)),this.addChild(s,O,u,Q),s=O}r="",h=q}}else r+=i[h];return n.child};function DL(i,n,s,r){this.options.captureMetaData||(r=void 0);const u=this.options.updateTag(n.tagname,s,n[":@"]);u===!1||(typeof u=="string"&&(n.tagname=u),i.addChild(n,r))}const PL=function(i){if(this.options.processEntities){for(let n in this.docTypeEntities){const s=this.docTypeEntities[n];i=i.replace(s.regx,s.val)}for(let n in this.lastEntities){const s=this.lastEntities[n];i=i.replace(s.regex,s.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){const s=this.htmlEntities[n];i=i.replace(s.regex,s.val)}i=i.replace(this.ampEntity.regex,this.ampEntity.val)}return i};function qL(i,n,s,r){return i&&(r===void 0&&(r=n.child.length===0),i=this.parseTextData(i,n.tagname,s,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),i!==void 0&&i!==""&&n.add(this.options.textNodeName,i),i=""),i}function GL(i,n,s,r){return!!(n&&n.has(r)||i&&i.has(s))}function HL(i,n,s=">"){let r,u="";for(let c=n;c<i.length;c++){let h=i[c];if(r)h===r&&(r="");else if(h==='"'||h==="'")r=h;else if(h===s[0])if(s[1]){if(i[c+1]===s[1])return{data:u,index:c}}else return{data:u,index:c};else h===" "&&(h=" ");u+=h}}function Na(i,n,s,r){const u=i.indexOf(n,s);if(u===-1)throw new Error(r);return u+n.length-1}function Mh(i,n,s,r=">"){const u=HL(i,n+1,r);if(!u)return;let c=u.data;const h=u.index,p=c.search(/\s/);let d=c,_=!0;p!==-1&&(d=c.substring(0,p),c=c.substring(p+1).trimStart());const T=d;if(s){const v=d.indexOf(":");v!==-1&&(d=d.substr(v+1),_=d!==u.data.substr(v+1))}return{tagName:d,tagExp:c,closeIndex:h,attrExpPresent:_,rawTagName:T}}function $L(i,n,s){const r=s;let u=1;for(;s<i.length;s++)if(i[s]==="<")if(i[s+1]==="/"){const c=Na(i,">",s,`${n} is not closed`);if(i.substring(s+2,c).trim()===n&&(u--,u===0))return{tagContent:i.substring(r,s),i:c};s=c}else if(i[s+1]==="?")s=Na(i,"?>",s+1,"StopNode is not closed.");else if(i.substr(s+1,3)==="!--")s=Na(i,"-->",s+3,"StopNode is not closed.");else if(i.substr(s+1,2)==="![")s=Na(i,"]]>",s,"StopNode is not closed.")-2;else{const c=Mh(i,s,">");c&&((c&&c.tagName)===n&&c.tagExp[c.tagExp.length-1]!=="/"&&u++,s=c.closeIndex)}}function kh(i,n,s){if(n&&typeof i=="string"){const r=i.trim();return r==="true"?!0:r==="false"?!1:RL(i,s)}else return cL(i)?i:""}function Iy(i,n,s){const r=Number.parseInt(i,n);return r>=0&&r<=1114111?String.fromCodePoint(r):s+i+";"}const eh=Aa.getMetaDataSymbol();function KL(i,n){return Iv(i,n)}function Iv(i,n,s){let r;const u={};for(let c=0;c<i.length;c++){const h=i[c],p=FL(h);let d="";if(s===void 0?d=p:d=s+"."+p,p===n.textNodeName)r===void 0?r=h[p]:r+=""+h[p];else{if(p===void 0)continue;if(h[p]){let _=Iv(h[p],n,d);const T=YL(_,n);h[eh]!==void 0&&(_[eh]=h[eh]),h[":@"]?VL(_,h[":@"],d,n):Object.keys(_).length===1&&_[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?_=_[n.textNodeName]:Object.keys(_).length===0&&(n.alwaysCreateTextNode?_[n.textNodeName]="":_=""),u[p]!==void 0&&u.hasOwnProperty(p)?(Array.isArray(u[p])||(u[p]=[u[p]]),u[p].push(_)):n.isArray(p,d,T)?u[p]=[_]:u[p]=_}}}return typeof r=="string"?r.length>0&&(u[n.textNodeName]=r):r!==void 0&&(u[n.textNodeName]=r),u}function FL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];if(r!==":@")return r}}function VL(i,n,s,r){if(n){const u=Object.keys(n),c=u.length;for(let h=0;h<c;h++){const p=u[h];r.isArray(p,s+"."+p,!0,!0)?i[p]=[n[p]]:i[p]=n[p]}}}function YL(i,n){const{textNodeName:s}=n,r=Object.keys(i).length;return!!(r===0||r===1&&(i[s]||typeof i[s]=="boolean"||i[s]===0))}class XL{constructor(n){this.externalEntities={},this.options=TL(n)}parse(n,s){if(typeof n!="string"&&n.toString)n=n.toString();else if(typeof n!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(s){s===!0&&(s={});const c=hL(n,s);if(c!==!0)throw Error(`${c.err.msg}:${c.err.line}:${c.err.col}`)}const r=new ML(this.options);r.addExternalEntities(this.externalEntities);const u=r.parseXml(n);return this.options.preserveOrder||u===void 0?u:KL(u,this.options)}addEntity(n,s){if(s.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(s==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=s}static getMetaDataSymbol(){return Aa.getMetaDataSymbol()}}const QL=`
|
|
130
|
+
`;function ZL(i,n){let s="";return n.format&&n.indentBy.length>0&&(s=QL),zv(i,n,"",s)}function zv(i,n,s,r){let u="",c=!1;for(let h=0;h<i.length;h++){const p=i[h],d=WL(p);if(d===void 0)continue;let _="";if(s.length===0?_=d:_=`${s}.${d}`,d===n.textNodeName){let K=p[d];JL(_,n)||(K=n.tagValueProcessor(d,K),K=Bv(K,n)),c&&(u+=r),u+=K,c=!1;continue}else if(d===n.cdataPropName){c&&(u+=r),u+=`<![CDATA[${p[d][0][n.textNodeName]}]]>`,c=!1;continue}else if(d===n.commentPropName){u+=r+`<!--${p[d][0][n.textNodeName]}-->`,c=!0;continue}else if(d[0]==="?"){const K=zy(p[":@"],n),Q=d==="?xml"?"":r;let O=p[d][0][n.textNodeName];O=O.length!==0?" "+O:"",u+=Q+`<${d}${O}${K}?>`,c=!0;continue}let T=r;T!==""&&(T+=n.indentBy);const v=zy(p[":@"],n),R=r+`<${d}${v}`,q=zv(p[d],n,_,T);n.unpairedTags.indexOf(d)!==-1?n.suppressUnpairedNode?u+=R+">":u+=R+"/>":(!q||q.length===0)&&n.suppressEmptyNode?u+=R+"/>":q&&q.endsWith(">")?u+=R+`>${q}${r}</${d}>`:(u+=R+">",q&&r!==""&&(q.includes("/>")||q.includes("</"))?u+=r+n.indentBy+q+r:u+=q,u+=`</${d}>`),c=!0}return u}function WL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];if(i.hasOwnProperty(r)&&r!==":@")return r}}function zy(i,n){let s="";if(i&&!n.ignoreAttributes)for(let r in i){if(!i.hasOwnProperty(r))continue;let u=n.attributeValueProcessor(r,i[r]);u=Bv(u,n),u===!0&&n.suppressBooleanAttributes?s+=` ${r.substr(n.attributeNamePrefix.length)}`:s+=` ${r.substr(n.attributeNamePrefix.length)}="${u}"`}return s}function JL(i,n){i=i.substr(0,i.length-n.textNodeName.length-1);let s=i.substr(i.lastIndexOf(".")+1);for(let r in n.stopNodes)if(n.stopNodes[r]===i||n.stopNodes[r]==="*."+s)return!0;return!1}function Bv(i,n){if(i&&i.length>0&&n.processEntities)for(let s=0;s<n.entities.length;s++){const r=n.entities[s];i=i.replace(r.regex,r.val)}return i}const t2={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(i,n){return n},attributeValueProcessor:function(i,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Ni(i){this.options=Object.assign({},t2,i),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=Uv(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=i2),this.processTextOrObjNode=e2,this.options.format?(this.indentate=n2,this.tagEndChar=`>
|
|
131
131
|
`,this.newLine=`
|
|
132
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ni.prototype.build=function(i){return this.options.preserveOrder?QL(i,this.options):(Array.isArray(i)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(i={[this.options.arrayNodeName]:i}),this.j2x(i,0,[]).val)};Ni.prototype.j2x=function(i,n,s){let r="",u="";const c=s.join(".");for(let h in i)if(Object.prototype.hasOwnProperty.call(i,h))if(typeof i[h]>"u")this.isAttribute(h)&&(u+="");else if(i[h]===null)this.isAttribute(h)||h===this.options.cdataPropName?u+="":h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(i[h]instanceof Date)u+=this.buildTextValNode(i[h],h,"",n);else if(typeof i[h]!="object"){const p=this.isAttribute(h);if(p&&!this.ignoreAttributesFn(p,c))r+=this.buildAttrPairStr(p,""+i[h]);else if(!p)if(h===this.options.textNodeName){let d=this.options.tagValueProcessor(h,""+i[h]);u+=this.replaceEntitiesValue(d)}else u+=this.buildTextValNode(i[h],h,"",n)}else if(Array.isArray(i[h])){const p=i[h].length;let d="",_="";for(let T=0;T<p;T++){const v=i[h][T];if(!(typeof v>"u"))if(v===null)h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(typeof v=="object")if(this.options.oneListGroup){const R=this.j2x(v,n+1,s.concat(h));d+=R.val,this.options.attributesGroupName&&v.hasOwnProperty(this.options.attributesGroupName)&&(_+=R.attrStr)}else d+=this.processTextOrObjNode(v,h,n,s);else if(this.options.oneListGroup){let R=this.options.tagValueProcessor(h,v);R=this.replaceEntitiesValue(R),d+=R}else d+=this.buildTextValNode(v,h,"",n)}this.options.oneListGroup&&(d=this.buildObjectNode(d,h,_,n)),u+=d}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const p=Object.keys(i[h]),d=p.length;for(let _=0;_<d;_++)r+=this.buildAttrPairStr(p[_],""+i[h][p[_]])}else u+=this.processTextOrObjNode(i[h],h,n,s);return{attrStr:r,val:u}};Ni.prototype.buildAttrPairStr=function(i,n){return n=this.options.attributeValueProcessor(i,""+n),n=this.replaceEntitiesValue(n),this.options.suppressBooleanAttributes&&n==="true"?" "+i:" "+i+'="'+n+'"'};function t2(i,n,s,r){const u=this.j2x(i,s+1,r.concat(n));return i[this.options.textNodeName]!==void 0&&Object.keys(i).length===1?this.buildTextValNode(i[this.options.textNodeName],n,u.attrStr,s):this.buildObjectNode(u.val,n,u.attrStr,s)}Ni.prototype.buildObjectNode=function(i,n,s,r){if(i==="")return n[0]==="?"?this.indentate(r)+"<"+n+s+"?"+this.tagEndChar:this.indentate(r)+"<"+n+s+this.closeTag(n)+this.tagEndChar;{let u="</"+n+this.tagEndChar,c="";return n[0]==="?"&&(c="?",u=""),(s||s==="")&&i.indexOf("<")===-1?this.indentate(r)+"<"+n+s+c+">"+i+u:this.options.commentPropName!==!1&&n===this.options.commentPropName&&c.length===0?this.indentate(r)+`<!--${i}-->`+this.newLine:this.indentate(r)+"<"+n+s+c+this.tagEndChar+i+this.indentate(r)+u}};Ni.prototype.closeTag=function(i){let n="";return this.options.unpairedTags.indexOf(i)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`></${i}`,n};Ni.prototype.buildTextValNode=function(i,n,s,r){if(this.options.cdataPropName!==!1&&n===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${i}]]>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+`<!--${i}-->`+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+s+"?"+this.tagEndChar;{let u=this.options.tagValueProcessor(n,i);return u=this.replaceEntitiesValue(u),u===""?this.indentate(r)+"<"+n+s+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+s+">"+u+"</"+n+this.tagEndChar}};Ni.prototype.replaceEntitiesValue=function(i){if(i&&i.length>0&&this.options.processEntities)for(let n=0;n<this.options.entities.length;n++){const s=this.options.entities[n];i=i.replace(s.regex,s.val)}return i};function e2(i){return this.options.indentBy.repeat(i)}function n2(i){return i.startsWith(this.options.attributeNamePrefix)&&i!==this.options.textNodeName?i.substr(this.attrPrefixLen):!1}var ju={exports:{}};var i2=ju.exports,zy;function a2(){return zy||(zy=1,(function(i,n){((s,r)=>{i.exports=r()})(i2,function s(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},u,c=!r.document&&!!r.postMessage,h=r.IS_PAPA_WORKER||!1,p={},d=0,_={};function T(y){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(S){var m=Z(S);m.chunkSize=parseInt(m.chunkSize),S.step||S.chunk||(m.chunkSize=null),this._handle=new Q(m),(this._handle.streamer=this)._config=m}).call(this,y),this.parseChunk=function(S,m){var L=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<L){let W=this._config.newline;W||(M=this._config.quoteChar||'"',W=this._handle.guessLineEndings(S,M)),S=[...S.split(W).slice(L)].join(W)}this.isFirstChunk&&C(this._config.beforeFirstChunk)&&(M=this._config.beforeFirstChunk(S))!==void 0&&(S=M),this.isFirstChunk=!1,this._halted=!1;var L=this._partialLine+S,M=(this._partialLine="",this._handle.parse(L,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(S=M.meta.cursor,L=(this._finished||(this._partialLine=L.substring(S-this._baseIndex),this._baseIndex=S),M&&M.data&&(this._rowCount+=M.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),h)r.postMessage({results:M,workerId:_.WORKER_ID,finished:L});else if(C(this._config.chunk)&&!m){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=M=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!L||!C(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),L||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(S){C(this._config.error)?this._config.error(S):h&&this._config.error&&r.postMessage({workerId:_.WORKER_ID,error:S,finished:!1})}}function v(y){var S;(y=y||{}).chunkSize||(y.chunkSize=_.RemoteChunkSize),T.call(this,y),this._nextChunk=c?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(m){this._input=m,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(S=new XMLHttpRequest,this._config.withCredentials&&(S.withCredentials=this._config.withCredentials),c||(S.onload=I(this._chunkLoaded,this),S.onerror=I(this._chunkError,this)),S.open(this._config.downloadRequestBody?"POST":"GET",this._input,!c),this._config.downloadRequestHeaders){var m,L=this._config.downloadRequestHeaders;for(m in L)S.setRequestHeader(m,L[m])}var M;this._config.chunkSize&&(M=this._start+this._config.chunkSize-1,S.setRequestHeader("Range","bytes="+this._start+"-"+M));try{S.send(this._config.downloadRequestBody)}catch(W){this._chunkError(W.message)}c&&S.status===0&&this._chunkError()}},this._chunkLoaded=function(){S.readyState===4&&(S.status<200||400<=S.status?this._chunkError():(this._start+=this._config.chunkSize||S.responseText.length,this._finished=!this._config.chunkSize||this._start>=(m=>(m=m.getResponseHeader("Content-Range"))!==null?parseInt(m.substring(m.lastIndexOf("/")+1)):-1)(S),this.parseChunk(S.responseText)))},this._chunkError=function(m){m=S.statusText||m,this._sendError(new Error(m))}}function R(y){(y=y||{}).chunkSize||(y.chunkSize=_.LocalChunkSize),T.call(this,y);var S,m,L=typeof FileReader<"u";this.stream=function(M){this._input=M,m=M.slice||M.webkitSlice||M.mozSlice,L?((S=new FileReader).onload=I(this._chunkLoaded,this),S.onerror=I(this._chunkError,this)):S=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var M=this._input,W=(this._config.chunkSize&&(W=Math.min(this._start+this._config.chunkSize,this._input.size),M=m.call(M,this._start,W)),S.readAsText(M,this._config.encoding));L||this._chunkLoaded({target:{result:W}})},this._chunkLoaded=function(M){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(M.target.result)},this._chunkError=function(){this._sendError(S.error)}}function q(y){var S;T.call(this,y=y||{}),this.stream=function(m){return S=m,this._nextChunk()},this._nextChunk=function(){var m,L;if(!this._finished)return m=this._config.chunkSize,S=m?(L=S.substring(0,m),S.substring(m)):(L=S,""),this._finished=!S,this.parseChunk(L)}}function K(y){T.call(this,y=y||{});var S=[],m=!0,L=!1;this.pause=function(){T.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){T.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(M){this._input=M,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){L&&S.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),S.length?this.parseChunk(S.shift()):m=!0},this._streamData=I(function(M){try{S.push(typeof M=="string"?M:M.toString(this._config.encoding)),m&&(m=!1,this._checkIsFinished(),this.parseChunk(S.shift()))}catch(W){this._streamError(W)}},this),this._streamError=I(function(M){this._streamCleanUp(),this._sendError(M)},this),this._streamEnd=I(function(){this._streamCleanUp(),L=!0,this._streamData("")},this),this._streamCleanUp=I(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function Q(y){var S,m,L,M,W=Math.pow(2,53),at=-W,it=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,k=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,F=this,nt=0,tt=0,_t=!1,A=!1,j=[],$={data:[],errors:[],meta:{}};function J(ct){return y.skipEmptyLines==="greedy"?ct.join("").trim()==="":ct.length===1&&ct[0].length===0}function lt(){if($&&L&&(ht("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+_.DefaultDelimiter+"'"),L=!1),y.skipEmptyLines&&($.data=$.data.filter(function(Rt){return!J(Rt)})),st()){let Rt=function(qt,wt){C(y.transformHeader)&&(qt=y.transformHeader(qt,wt)),j.push(qt)};var gt=Rt;if($)if(Array.isArray($.data[0])){for(var ct=0;st()&&ct<$.data.length;ct++)$.data[ct].forEach(Rt);$.data.splice(0,1)}else $.data.forEach(Rt)}function rt(Rt,qt){for(var wt=y.header?{}:[],kt=0;kt<Rt.length;kt++){var At=kt,Ee=Rt[kt],Ee=((It,$t)=>(ee=>(y.dynamicTypingFunction&&y.dynamicTyping[ee]===void 0&&(y.dynamicTyping[ee]=y.dynamicTypingFunction(ee)),(y.dynamicTyping[ee]||y.dynamicTyping)===!0))(It)?$t==="true"||$t==="TRUE"||$t!=="false"&&$t!=="FALSE"&&((ee=>{if(it.test(ee)&&(ee=parseFloat(ee),at<ee&&ee<W))return 1})($t)?parseFloat($t):k.test($t)?new Date($t):$t===""?null:$t):$t)(At=y.header?kt>=j.length?"__parsed_extra":j[kt]:At,Ee=y.transform?y.transform(Ee,At):Ee);At==="__parsed_extra"?(wt[At]=wt[At]||[],wt[At].push(Ee)):wt[At]=Ee}return y.header&&(kt>j.length?ht("FieldMismatch","TooManyFields","Too many fields: expected "+j.length+" fields but parsed "+kt,tt+qt):kt<j.length&&ht("FieldMismatch","TooFewFields","Too few fields: expected "+j.length+" fields but parsed "+kt,tt+qt)),wt}var Nt;$&&(y.header||y.dynamicTyping||y.transform)&&(Nt=1,!$.data.length||Array.isArray($.data[0])?($.data=$.data.map(rt),Nt=$.data.length):$.data=rt($.data,0),y.header&&$.meta&&($.meta.fields=j),tt+=Nt)}function st(){return y.header&&j.length===0}function ht(ct,rt,Nt,gt){ct={type:ct,code:rt,message:Nt},gt!==void 0&&(ct.row=gt),$.errors.push(ct)}C(y.step)&&(M=y.step,y.step=function(ct){$=ct,st()?lt():(lt(),$.data.length!==0&&(nt+=ct.data.length,y.preview&&nt>y.preview?m.abort():($.data=$.data[0],M($,F))))}),this.parse=function(ct,rt,Nt){var gt=y.quoteChar||'"',gt=(y.newline||(y.newline=this.guessLineEndings(ct,gt)),L=!1,y.delimiter?C(y.delimiter)&&(y.delimiter=y.delimiter(ct),$.meta.delimiter=y.delimiter):((gt=((Rt,qt,wt,kt,At)=>{var Ee,It,$t,ee;At=At||[","," ","|",";",_.RECORD_SEP,_.UNIT_SEP];for(var qn=0;qn<At.length;qn++){for(var fn,aa=At[qn],Pt=0,hn=0,le=0,Se=($t=void 0,new b({comments:kt,delimiter:aa,newline:qt,preview:10}).parse(Rt)),je=0;je<Se.data.length;je++)wt&&J(Se.data[je])?le++:(fn=Se.data[je].length,hn+=fn,$t===void 0?$t=fn:0<fn&&(Pt+=Math.abs(fn-$t),$t=fn));0<Se.data.length&&(hn/=Se.data.length-le),(It===void 0||Pt<=It)&&(ee===void 0||ee<hn)&&1.99<hn&&(It=Pt,Ee=aa,ee=hn)}return{successful:!!(y.delimiter=Ee),bestDelimiter:Ee}})(ct,y.newline,y.skipEmptyLines,y.comments,y.delimitersToGuess)).successful?y.delimiter=gt.bestDelimiter:(L=!0,y.delimiter=_.DefaultDelimiter),$.meta.delimiter=y.delimiter),Z(y));return y.preview&&y.header&>.preview++,S=ct,m=new b(gt),$=m.parse(S,rt,Nt),lt(),_t?{meta:{paused:!0}}:$||{meta:{paused:!1}}},this.paused=function(){return _t},this.pause=function(){_t=!0,m.abort(),S=C(y.chunk)?"":S.substring(m.getCharIndex())},this.resume=function(){F.streamer._halted?(_t=!1,F.streamer.parseChunk(S,!0)):setTimeout(F.resume,3)},this.aborted=function(){return A},this.abort=function(){A=!0,m.abort(),$.meta.aborted=!0,C(y.complete)&&y.complete($),S=""},this.guessLineEndings=function(Rt,gt){Rt=Rt.substring(0,1048576);var gt=new RegExp(O(gt)+"([^]*?)"+O(gt),"gm"),Nt=(Rt=Rt.replace(gt,"")).split("\r"),gt=Rt.split(`
|
|
132
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ni.prototype.build=function(i){return this.options.preserveOrder?ZL(i,this.options):(Array.isArray(i)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(i={[this.options.arrayNodeName]:i}),this.j2x(i,0,[]).val)};Ni.prototype.j2x=function(i,n,s){let r="",u="";const c=s.join(".");for(let h in i)if(Object.prototype.hasOwnProperty.call(i,h))if(typeof i[h]>"u")this.isAttribute(h)&&(u+="");else if(i[h]===null)this.isAttribute(h)||h===this.options.cdataPropName?u+="":h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(i[h]instanceof Date)u+=this.buildTextValNode(i[h],h,"",n);else if(typeof i[h]!="object"){const p=this.isAttribute(h);if(p&&!this.ignoreAttributesFn(p,c))r+=this.buildAttrPairStr(p,""+i[h]);else if(!p)if(h===this.options.textNodeName){let d=this.options.tagValueProcessor(h,""+i[h]);u+=this.replaceEntitiesValue(d)}else u+=this.buildTextValNode(i[h],h,"",n)}else if(Array.isArray(i[h])){const p=i[h].length;let d="",_="";for(let T=0;T<p;T++){const v=i[h][T];if(!(typeof v>"u"))if(v===null)h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(typeof v=="object")if(this.options.oneListGroup){const R=this.j2x(v,n+1,s.concat(h));d+=R.val,this.options.attributesGroupName&&v.hasOwnProperty(this.options.attributesGroupName)&&(_+=R.attrStr)}else d+=this.processTextOrObjNode(v,h,n,s);else if(this.options.oneListGroup){let R=this.options.tagValueProcessor(h,v);R=this.replaceEntitiesValue(R),d+=R}else d+=this.buildTextValNode(v,h,"",n)}this.options.oneListGroup&&(d=this.buildObjectNode(d,h,_,n)),u+=d}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const p=Object.keys(i[h]),d=p.length;for(let _=0;_<d;_++)r+=this.buildAttrPairStr(p[_],""+i[h][p[_]])}else u+=this.processTextOrObjNode(i[h],h,n,s);return{attrStr:r,val:u}};Ni.prototype.buildAttrPairStr=function(i,n){return n=this.options.attributeValueProcessor(i,""+n),n=this.replaceEntitiesValue(n),this.options.suppressBooleanAttributes&&n==="true"?" "+i:" "+i+'="'+n+'"'};function e2(i,n,s,r){const u=this.j2x(i,s+1,r.concat(n));return i[this.options.textNodeName]!==void 0&&Object.keys(i).length===1?this.buildTextValNode(i[this.options.textNodeName],n,u.attrStr,s):this.buildObjectNode(u.val,n,u.attrStr,s)}Ni.prototype.buildObjectNode=function(i,n,s,r){if(i==="")return n[0]==="?"?this.indentate(r)+"<"+n+s+"?"+this.tagEndChar:this.indentate(r)+"<"+n+s+this.closeTag(n)+this.tagEndChar;{let u="</"+n+this.tagEndChar,c="";return n[0]==="?"&&(c="?",u=""),(s||s==="")&&i.indexOf("<")===-1?this.indentate(r)+"<"+n+s+c+">"+i+u:this.options.commentPropName!==!1&&n===this.options.commentPropName&&c.length===0?this.indentate(r)+`<!--${i}-->`+this.newLine:this.indentate(r)+"<"+n+s+c+this.tagEndChar+i+this.indentate(r)+u}};Ni.prototype.closeTag=function(i){let n="";return this.options.unpairedTags.indexOf(i)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`></${i}`,n};Ni.prototype.buildTextValNode=function(i,n,s,r){if(this.options.cdataPropName!==!1&&n===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${i}]]>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+`<!--${i}-->`+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+s+"?"+this.tagEndChar;{let u=this.options.tagValueProcessor(n,i);return u=this.replaceEntitiesValue(u),u===""?this.indentate(r)+"<"+n+s+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+s+">"+u+"</"+n+this.tagEndChar}};Ni.prototype.replaceEntitiesValue=function(i){if(i&&i.length>0&&this.options.processEntities)for(let n=0;n<this.options.entities.length;n++){const s=this.options.entities[n];i=i.replace(s.regex,s.val)}return i};function n2(i){return this.options.indentBy.repeat(i)}function i2(i){return i.startsWith(this.options.attributeNamePrefix)&&i!==this.options.textNodeName?i.substr(this.attrPrefixLen):!1}var ju={exports:{}};var a2=ju.exports,By;function s2(){return By||(By=1,(function(i,n){((s,r)=>{i.exports=r()})(a2,function s(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},u,c=!r.document&&!!r.postMessage,h=r.IS_PAPA_WORKER||!1,p={},d=0,_={};function T(y){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(S){var m=Z(S);m.chunkSize=parseInt(m.chunkSize),S.step||S.chunk||(m.chunkSize=null),this._handle=new Q(m),(this._handle.streamer=this)._config=m}).call(this,y),this.parseChunk=function(S,m){var L=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<L){let W=this._config.newline;W||(M=this._config.quoteChar||'"',W=this._handle.guessLineEndings(S,M)),S=[...S.split(W).slice(L)].join(W)}this.isFirstChunk&&C(this._config.beforeFirstChunk)&&(M=this._config.beforeFirstChunk(S))!==void 0&&(S=M),this.isFirstChunk=!1,this._halted=!1;var L=this._partialLine+S,M=(this._partialLine="",this._handle.parse(L,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(S=M.meta.cursor,L=(this._finished||(this._partialLine=L.substring(S-this._baseIndex),this._baseIndex=S),M&&M.data&&(this._rowCount+=M.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),h)r.postMessage({results:M,workerId:_.WORKER_ID,finished:L});else if(C(this._config.chunk)&&!m){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=M=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!L||!C(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),L||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(S){C(this._config.error)?this._config.error(S):h&&this._config.error&&r.postMessage({workerId:_.WORKER_ID,error:S,finished:!1})}}function v(y){var S;(y=y||{}).chunkSize||(y.chunkSize=_.RemoteChunkSize),T.call(this,y),this._nextChunk=c?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(m){this._input=m,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(S=new XMLHttpRequest,this._config.withCredentials&&(S.withCredentials=this._config.withCredentials),c||(S.onload=I(this._chunkLoaded,this),S.onerror=I(this._chunkError,this)),S.open(this._config.downloadRequestBody?"POST":"GET",this._input,!c),this._config.downloadRequestHeaders){var m,L=this._config.downloadRequestHeaders;for(m in L)S.setRequestHeader(m,L[m])}var M;this._config.chunkSize&&(M=this._start+this._config.chunkSize-1,S.setRequestHeader("Range","bytes="+this._start+"-"+M));try{S.send(this._config.downloadRequestBody)}catch(W){this._chunkError(W.message)}c&&S.status===0&&this._chunkError()}},this._chunkLoaded=function(){S.readyState===4&&(S.status<200||400<=S.status?this._chunkError():(this._start+=this._config.chunkSize||S.responseText.length,this._finished=!this._config.chunkSize||this._start>=(m=>(m=m.getResponseHeader("Content-Range"))!==null?parseInt(m.substring(m.lastIndexOf("/")+1)):-1)(S),this.parseChunk(S.responseText)))},this._chunkError=function(m){m=S.statusText||m,this._sendError(new Error(m))}}function R(y){(y=y||{}).chunkSize||(y.chunkSize=_.LocalChunkSize),T.call(this,y);var S,m,L=typeof FileReader<"u";this.stream=function(M){this._input=M,m=M.slice||M.webkitSlice||M.mozSlice,L?((S=new FileReader).onload=I(this._chunkLoaded,this),S.onerror=I(this._chunkError,this)):S=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var M=this._input,W=(this._config.chunkSize&&(W=Math.min(this._start+this._config.chunkSize,this._input.size),M=m.call(M,this._start,W)),S.readAsText(M,this._config.encoding));L||this._chunkLoaded({target:{result:W}})},this._chunkLoaded=function(M){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(M.target.result)},this._chunkError=function(){this._sendError(S.error)}}function q(y){var S;T.call(this,y=y||{}),this.stream=function(m){return S=m,this._nextChunk()},this._nextChunk=function(){var m,L;if(!this._finished)return m=this._config.chunkSize,S=m?(L=S.substring(0,m),S.substring(m)):(L=S,""),this._finished=!S,this.parseChunk(L)}}function K(y){T.call(this,y=y||{});var S=[],m=!0,L=!1;this.pause=function(){T.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){T.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(M){this._input=M,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){L&&S.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),S.length?this.parseChunk(S.shift()):m=!0},this._streamData=I(function(M){try{S.push(typeof M=="string"?M:M.toString(this._config.encoding)),m&&(m=!1,this._checkIsFinished(),this.parseChunk(S.shift()))}catch(W){this._streamError(W)}},this),this._streamError=I(function(M){this._streamCleanUp(),this._sendError(M)},this),this._streamEnd=I(function(){this._streamCleanUp(),L=!0,this._streamData("")},this),this._streamCleanUp=I(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function Q(y){var S,m,L,M,W=Math.pow(2,53),at=-W,it=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,k=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,F=this,nt=0,tt=0,_t=!1,A=!1,j=[],$={data:[],errors:[],meta:{}};function J(ct){return y.skipEmptyLines==="greedy"?ct.join("").trim()==="":ct.length===1&&ct[0].length===0}function lt(){if($&&L&&(ht("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+_.DefaultDelimiter+"'"),L=!1),y.skipEmptyLines&&($.data=$.data.filter(function(Rt){return!J(Rt)})),st()){let Rt=function(qt,wt){C(y.transformHeader)&&(qt=y.transformHeader(qt,wt)),j.push(qt)};var gt=Rt;if($)if(Array.isArray($.data[0])){for(var ct=0;st()&&ct<$.data.length;ct++)$.data[ct].forEach(Rt);$.data.splice(0,1)}else $.data.forEach(Rt)}function rt(Rt,qt){for(var wt=y.header?{}:[],kt=0;kt<Rt.length;kt++){var At=kt,Ee=Rt[kt],Ee=((It,$t)=>(ee=>(y.dynamicTypingFunction&&y.dynamicTyping[ee]===void 0&&(y.dynamicTyping[ee]=y.dynamicTypingFunction(ee)),(y.dynamicTyping[ee]||y.dynamicTyping)===!0))(It)?$t==="true"||$t==="TRUE"||$t!=="false"&&$t!=="FALSE"&&((ee=>{if(it.test(ee)&&(ee=parseFloat(ee),at<ee&&ee<W))return 1})($t)?parseFloat($t):k.test($t)?new Date($t):$t===""?null:$t):$t)(At=y.header?kt>=j.length?"__parsed_extra":j[kt]:At,Ee=y.transform?y.transform(Ee,At):Ee);At==="__parsed_extra"?(wt[At]=wt[At]||[],wt[At].push(Ee)):wt[At]=Ee}return y.header&&(kt>j.length?ht("FieldMismatch","TooManyFields","Too many fields: expected "+j.length+" fields but parsed "+kt,tt+qt):kt<j.length&&ht("FieldMismatch","TooFewFields","Too few fields: expected "+j.length+" fields but parsed "+kt,tt+qt)),wt}var Nt;$&&(y.header||y.dynamicTyping||y.transform)&&(Nt=1,!$.data.length||Array.isArray($.data[0])?($.data=$.data.map(rt),Nt=$.data.length):$.data=rt($.data,0),y.header&&$.meta&&($.meta.fields=j),tt+=Nt)}function st(){return y.header&&j.length===0}function ht(ct,rt,Nt,gt){ct={type:ct,code:rt,message:Nt},gt!==void 0&&(ct.row=gt),$.errors.push(ct)}C(y.step)&&(M=y.step,y.step=function(ct){$=ct,st()?lt():(lt(),$.data.length!==0&&(nt+=ct.data.length,y.preview&&nt>y.preview?m.abort():($.data=$.data[0],M($,F))))}),this.parse=function(ct,rt,Nt){var gt=y.quoteChar||'"',gt=(y.newline||(y.newline=this.guessLineEndings(ct,gt)),L=!1,y.delimiter?C(y.delimiter)&&(y.delimiter=y.delimiter(ct),$.meta.delimiter=y.delimiter):((gt=((Rt,qt,wt,kt,At)=>{var Ee,It,$t,ee;At=At||[","," ","|",";",_.RECORD_SEP,_.UNIT_SEP];for(var qn=0;qn<At.length;qn++){for(var fn,aa=At[qn],Pt=0,hn=0,le=0,Se=($t=void 0,new b({comments:kt,delimiter:aa,newline:qt,preview:10}).parse(Rt)),je=0;je<Se.data.length;je++)wt&&J(Se.data[je])?le++:(fn=Se.data[je].length,hn+=fn,$t===void 0?$t=fn:0<fn&&(Pt+=Math.abs(fn-$t),$t=fn));0<Se.data.length&&(hn/=Se.data.length-le),(It===void 0||Pt<=It)&&(ee===void 0||ee<hn)&&1.99<hn&&(It=Pt,Ee=aa,ee=hn)}return{successful:!!(y.delimiter=Ee),bestDelimiter:Ee}})(ct,y.newline,y.skipEmptyLines,y.comments,y.delimitersToGuess)).successful?y.delimiter=gt.bestDelimiter:(L=!0,y.delimiter=_.DefaultDelimiter),$.meta.delimiter=y.delimiter),Z(y));return y.preview&&y.header&>.preview++,S=ct,m=new b(gt),$=m.parse(S,rt,Nt),lt(),_t?{meta:{paused:!0}}:$||{meta:{paused:!1}}},this.paused=function(){return _t},this.pause=function(){_t=!0,m.abort(),S=C(y.chunk)?"":S.substring(m.getCharIndex())},this.resume=function(){F.streamer._halted?(_t=!1,F.streamer.parseChunk(S,!0)):setTimeout(F.resume,3)},this.aborted=function(){return A},this.abort=function(){A=!0,m.abort(),$.meta.aborted=!0,C(y.complete)&&y.complete($),S=""},this.guessLineEndings=function(Rt,gt){Rt=Rt.substring(0,1048576);var gt=new RegExp(O(gt)+"([^]*?)"+O(gt),"gm"),Nt=(Rt=Rt.replace(gt,"")).split("\r"),gt=Rt.split(`
|
|
133
133
|
`),Rt=1<gt.length&>[0].length<Nt[0].length;if(Nt.length===1||Rt)return`
|
|
134
134
|
`;for(var qt=0,wt=0;wt<Nt.length;wt++)Nt[wt][0]===`
|
|
135
135
|
`&&qt++;return qt>=Nt.length/2?`\r
|
|
@@ -138,34 +138,34 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
138
138
|
`&&(m=`
|
|
139
139
|
`);var tt=0,_t=!1;this.parse=function(A,j,$){if(typeof A!="string")throw new Error("Input must be a string");var J=A.length,lt=S.length,st=m.length,ht=L.length,ct=C(M),rt=[],Nt=[],gt=[],Rt=tt=0;if(!A)return Pt();if(at||at!==!1&&A.indexOf(F)===-1){for(var qt=A.split(m),wt=0;wt<qt.length;wt++){if(gt=qt[wt],tt+=gt.length,wt!==qt.length-1)tt+=m.length;else if($)return Pt();if(!L||gt.substring(0,ht)!==L){if(ct){if(rt=[],ee(gt.split(S)),hn(),_t)return Pt()}else ee(gt.split(S));if(W&&W<=wt)return rt=rt.slice(0,W),Pt(!0)}}return Pt()}for(var kt=A.indexOf(S,tt),At=A.indexOf(m,tt),Ee=new RegExp(O(nt)+O(F),"g"),It=A.indexOf(F,tt);;)if(A[tt]===F)for(It=tt,tt++;;){if((It=A.indexOf(F,It+1))===-1)return $||Nt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:rt.length,index:tt}),fn();if(It===J-1)return fn(A.substring(tt,It).replace(Ee,F));if(F===nt&&A[It+1]===nt)It++;else if(F===nt||It===0||A[It-1]!==nt){kt!==-1&&kt<It+1&&(kt=A.indexOf(S,It+1));var $t=qn((At=At!==-1&&At<It+1?A.indexOf(m,It+1):At)===-1?kt:Math.min(kt,At));if(A.substr(It+1+$t,lt)===S){gt.push(A.substring(tt,It).replace(Ee,F)),A[tt=It+1+$t+lt]!==F&&(It=A.indexOf(F,tt)),kt=A.indexOf(S,tt),At=A.indexOf(m,tt);break}if($t=qn(At),A.substring(It+1+$t,It+1+$t+st)===m){if(gt.push(A.substring(tt,It).replace(Ee,F)),aa(It+1+$t+st),kt=A.indexOf(S,tt),It=A.indexOf(F,tt),ct&&(hn(),_t))return Pt();if(W&&rt.length>=W)return Pt(!0);break}Nt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:rt.length,index:tt}),It++}}else if(L&>.length===0&&A.substring(tt,tt+ht)===L){if(At===-1)return Pt();tt=At+st,At=A.indexOf(m,tt),kt=A.indexOf(S,tt)}else if(kt!==-1&&(kt<At||At===-1))gt.push(A.substring(tt,kt)),tt=kt+lt,kt=A.indexOf(S,tt);else{if(At===-1)break;if(gt.push(A.substring(tt,At)),aa(At+st),ct&&(hn(),_t))return Pt();if(W&&rt.length>=W)return Pt(!0)}return fn();function ee(le){rt.push(le),Rt=tt}function qn(le){var Se=0;return Se=le!==-1&&(le=A.substring(It+1,le))&&le.trim()===""?le.length:Se}function fn(le){return $||(le===void 0&&(le=A.substring(tt)),gt.push(le),tt=J,ee(gt),ct&&hn()),Pt()}function aa(le){tt=le,ee(gt),gt=[],At=A.indexOf(m,tt)}function Pt(le){if(y.header&&!j&&rt.length&&!k){var Se=rt[0],je=Object.create(null),Ls=new Set(Se);let Ms=!1;for(let Ri=0;Ri<Se.length;Ri++){let dn=Se[Ri];if(je[dn=C(y.transformHeader)?y.transformHeader(dn,Ri):dn]){let wn,Le=je[dn];for(;wn=dn+"_"+Le,Le++,Ls.has(wn););Ls.add(wn),Se[Ri]=wn,je[dn]++,Ms=!0,(it=it===null?{}:it)[wn]=dn}else je[dn]=1,Se[Ri]=dn;Ls.add(dn)}Ms&&console.warn("Duplicate headers found and renamed."),k=!0}return{data:rt,errors:Nt,meta:{delimiter:S,linebreak:m,aborted:_t,truncated:!!le,cursor:Rt+(j||0),renamedHeaders:it}}}function hn(){M(Pt()),rt=[],Nt=[]}},this.abort=function(){_t=!0},this.getCharIndex=function(){return tt}}function N(y){var S=y.data,m=p[S.workerId],L=!1;if(S.error)m.userError(S.error,S.file);else if(S.results&&S.results.data){var M={abort:function(){L=!0,P(S.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:z,resume:z};if(C(m.userStep)){for(var W=0;W<S.results.data.length&&(m.userStep({data:S.results.data[W],errors:S.results.errors,meta:S.results.meta},M),!L);W++);delete S.results}else C(m.userChunk)&&(m.userChunk(S.results,M,S.file),delete S.results)}S.finished&&!L&&P(S.workerId,S.results)}function P(y,S){var m=p[y];C(m.userComplete)&&m.userComplete(S),m.terminate(),delete p[y]}function z(){throw new Error("Not implemented.")}function Z(y){if(typeof y!="object"||y===null)return y;var S,m=Array.isArray(y)?[]:{};for(S in y)m[S]=Z(y[S]);return m}function I(y,S){return function(){y.apply(S,arguments)}}function C(y){return typeof y=="function"}return _.parse=function(y,S){var m=(S=S||{}).dynamicTyping||!1;if(C(m)&&(S.dynamicTypingFunction=m,m={}),S.dynamicTyping=m,S.transform=!!C(S.transform)&&S.transform,!S.worker||!_.WORKERS_SUPPORTED)return m=null,_.NODE_STREAM_INPUT,typeof y=="string"?(y=(L=>L.charCodeAt(0)!==65279?L:L.slice(1))(y),m=new(S.download?v:q)(S)):y.readable===!0&&C(y.read)&&C(y.on)?m=new K(S):(r.File&&y instanceof File||y instanceof Object)&&(m=new R(S)),m.stream(y);(m=(()=>{var L;return!!_.WORKERS_SUPPORTED&&(L=(()=>{var M=r.URL||r.webkitURL||null,W=s.toString();return _.BLOB_URL||(_.BLOB_URL=M.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",W,")();"],{type:"text/javascript"})))})(),(L=new r.Worker(L)).onmessage=N,L.id=d++,p[L.id]=L)})()).userStep=S.step,m.userChunk=S.chunk,m.userComplete=S.complete,m.userError=S.error,S.step=C(S.step),S.chunk=C(S.chunk),S.complete=C(S.complete),S.error=C(S.error),delete S.worker,m.postMessage({input:y,config:S,workerId:m.id})},_.unparse=function(y,S){var m=!1,L=!0,M=",",W=`\r
|
|
140
140
|
`,at='"',it=at+at,k=!1,F=null,nt=!1,tt=((()=>{if(typeof S=="object"){if(typeof S.delimiter!="string"||_.BAD_DELIMITERS.filter(function(j){return S.delimiter.indexOf(j)!==-1}).length||(M=S.delimiter),typeof S.quotes!="boolean"&&typeof S.quotes!="function"&&!Array.isArray(S.quotes)||(m=S.quotes),typeof S.skipEmptyLines!="boolean"&&typeof S.skipEmptyLines!="string"||(k=S.skipEmptyLines),typeof S.newline=="string"&&(W=S.newline),typeof S.quoteChar=="string"&&(at=S.quoteChar),typeof S.header=="boolean"&&(L=S.header),Array.isArray(S.columns)){if(S.columns.length===0)throw new Error("Option columns is empty");F=S.columns}S.escapeChar!==void 0&&(it=S.escapeChar+at),S.escapeFormulae instanceof RegExp?nt=S.escapeFormulae:typeof S.escapeFormulae=="boolean"&&S.escapeFormulae&&(nt=/^[=+\-@\t\r].*$/)}})(),new RegExp(O(at),"g"));if(typeof y=="string"&&(y=JSON.parse(y)),Array.isArray(y)){if(!y.length||Array.isArray(y[0]))return _t(null,y,k);if(typeof y[0]=="object")return _t(F||Object.keys(y[0]),y,k)}else if(typeof y=="object")return typeof y.data=="string"&&(y.data=JSON.parse(y.data)),Array.isArray(y.data)&&(y.fields||(y.fields=y.meta&&y.meta.fields||F),y.fields||(y.fields=Array.isArray(y.data[0])?y.fields:typeof y.data[0]=="object"?Object.keys(y.data[0]):[]),Array.isArray(y.data[0])||typeof y.data[0]=="object"||(y.data=[y.data])),_t(y.fields||[],y.data||[],k);throw new Error("Unable to serialize unrecognized input");function _t(j,$,J){var lt="",st=(typeof j=="string"&&(j=JSON.parse(j)),typeof $=="string"&&($=JSON.parse($)),Array.isArray(j)&&0<j.length),ht=!Array.isArray($[0]);if(st&&L){for(var ct=0;ct<j.length;ct++)0<ct&&(lt+=M),lt+=A(j[ct],ct);0<$.length&&(lt+=W)}for(var rt=0;rt<$.length;rt++){var Nt=(st?j:$[rt]).length,gt=!1,Rt=st?Object.keys($[rt]).length===0:$[rt].length===0;if(J&&!st&&(gt=J==="greedy"?$[rt].join("").trim()==="":$[rt].length===1&&$[rt][0].length===0),J==="greedy"&&st){for(var qt=[],wt=0;wt<Nt;wt++){var kt=ht?j[wt]:wt;qt.push($[rt][kt])}gt=qt.join("").trim()===""}if(!gt){for(var At=0;At<Nt;At++){0<At&&!Rt&&(lt+=M);var Ee=st&&ht?j[At]:At;lt+=A($[rt][Ee],At)}rt<$.length-1&&(!J||0<Nt&&!Rt)&&(lt+=W)}}return lt}function A(j,$){var J,lt;return j==null?"":j.constructor===Date?JSON.stringify(j).slice(1,25):(lt=!1,nt&&typeof j=="string"&&nt.test(j)&&(j="'"+j,lt=!0),J=j.toString().replace(tt,it),(lt=lt||m===!0||typeof m=="function"&&m(j,$)||Array.isArray(m)&&m[$]||((st,ht)=>{for(var ct=0;ct<ht.length;ct++)if(-1<st.indexOf(ht[ct]))return!0;return!1})(J,_.BAD_DELIMITERS)||-1<J.indexOf(M)||J.charAt(0)===" "||J.charAt(J.length-1)===" ")?at+J+at:J)}},_.RECORD_SEP="",_.UNIT_SEP="",_.BYTE_ORDER_MARK="\uFEFF",_.BAD_DELIMITERS=["\r",`
|
|
141
|
-
`,'"',_.BYTE_ORDER_MARK],_.WORKERS_SUPPORTED=!c&&!!r.Worker,_.NODE_STREAM_INPUT=1,_.LocalChunkSize=10485760,_.RemoteChunkSize=5242880,_.DefaultDelimiter=",",_.Parser=b,_.ParserHandle=Q,_.NetworkStreamer=v,_.FileStreamer=R,_.StringStreamer=q,_.ReadableStreamStreamer=K,r.jQuery&&((u=r.jQuery).fn.parse=function(y){var S=y.config||{},m=[];return this.each(function(W){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var at=0;at<this.files.length;at++)m.push({file:this.files[at],inputElem:this,instanceConfig:u.extend({},S)})}),L(),this;function L(){if(m.length===0)C(y.complete)&&y.complete();else{var W,at,it,k,F=m[0];if(C(y.before)){var nt=y.before(F.file,F.inputElem);if(typeof nt=="object"){if(nt.action==="abort")return W="AbortError",at=F.file,it=F.inputElem,k=nt.reason,void(C(y.error)&&y.error({name:W},at,it,k));if(nt.action==="skip")return void M();typeof nt.config=="object"&&(F.instanceConfig=u.extend(F.instanceConfig,nt.config))}else if(nt==="skip")return void M()}var tt=F.instanceConfig.complete;F.instanceConfig.complete=function(_t){C(tt)&&tt(_t,F.file,F.inputElem),M()},_.parse(F.file,F.instanceConfig)}}function M(){m.splice(0,1),L()}}),h&&(r.onmessage=function(y){y=y.data,_.WORKER_ID===void 0&&y&&(_.WORKER_ID=y.workerId),typeof y.input=="string"?r.postMessage({workerId:_.WORKER_ID,results:_.parse(y.input,y.config),finished:!0}):(r.File&&y.input instanceof File||y.input instanceof Object)&&(y=_.parse(y.input,y.config))&&r.postMessage({workerId:_.WORKER_ID,results:y,finished:!0})}),(v.prototype=Object.create(T.prototype)).constructor=v,(R.prototype=Object.create(T.prototype)).constructor=R,(q.prototype=Object.create(q.prototype)).constructor=q,(K.prototype=Object.create(T.prototype)).constructor=K,_})})(ju)),ju.exports}var s2
|
|
141
|
+
`,'"',_.BYTE_ORDER_MARK],_.WORKERS_SUPPORTED=!c&&!!r.Worker,_.NODE_STREAM_INPUT=1,_.LocalChunkSize=10485760,_.RemoteChunkSize=5242880,_.DefaultDelimiter=",",_.Parser=b,_.ParserHandle=Q,_.NetworkStreamer=v,_.FileStreamer=R,_.StringStreamer=q,_.ReadableStreamStreamer=K,r.jQuery&&((u=r.jQuery).fn.parse=function(y){var S=y.config||{},m=[];return this.each(function(W){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var at=0;at<this.files.length;at++)m.push({file:this.files[at],inputElem:this,instanceConfig:u.extend({},S)})}),L(),this;function L(){if(m.length===0)C(y.complete)&&y.complete();else{var W,at,it,k,F=m[0];if(C(y.before)){var nt=y.before(F.file,F.inputElem);if(typeof nt=="object"){if(nt.action==="abort")return W="AbortError",at=F.file,it=F.inputElem,k=nt.reason,void(C(y.error)&&y.error({name:W},at,it,k));if(nt.action==="skip")return void M();typeof nt.config=="object"&&(F.instanceConfig=u.extend(F.instanceConfig,nt.config))}else if(nt==="skip")return void M()}var tt=F.instanceConfig.complete;F.instanceConfig.complete=function(_t){C(tt)&&tt(_t,F.file,F.inputElem),M()},_.parse(F.file,F.instanceConfig)}}function M(){m.splice(0,1),L()}}),h&&(r.onmessage=function(y){y=y.data,_.WORKER_ID===void 0&&y&&(_.WORKER_ID=y.workerId),typeof y.input=="string"?r.postMessage({workerId:_.WORKER_ID,results:_.parse(y.input,y.config),finished:!0}):(r.File&&y.input instanceof File||y.input instanceof Object)&&(y=_.parse(y.input,y.config))&&r.postMessage({workerId:_.WORKER_ID,results:y,finished:!0})}),(v.prototype=Object.create(T.prototype)).constructor=v,(R.prototype=Object.create(T.prototype)).constructor=R,(q.prototype=Object.create(q.prototype)).constructor=q,(K.prototype=Object.create(T.prototype)).constructor=K,_})})(ju)),ju.exports}var r2=s2();const jy=no(r2);var nh={exports:{}},Lr={},Ou={exports:{}},ih={},ah={},Dy;function od(){if(Dy)return ah;Dy=1;function i(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}i.prototype.clone_empty=function(){var r=new i(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},i.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},i.prototype.has_match=function(r){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(r))return!0;return!1},i.prototype.set_indent=function(r,u){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return this.__items.length===0},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(r){this.__items.push(r);var u=r.lastIndexOf(`
|
|
142
142
|
`);u!==-1?this.__character_count=r.length-u:this.__character_count+=r.length},i.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function n(r,u){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),u=u||"",r.indent_level>0&&(u=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}n.prototype.get_indent_size=function(r,u){var c=this.__base_string_length;return u=u||0,r<0&&(c=0),c+=r*this.__indent_size,c+=u,c},n.prototype.get_indent_string=function(r,u){var c=this.__base_string;return u=u||0,r<0&&(r=0,c=""),u+=r*this.__indent_size,this.__ensure_cache(u),c+=this.__cache[u],c},n.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var r=this.__cache.length,u=0,c="";this.__indent_size&&r>=this.__indent_size&&(u=Math.floor(r/this.__indent_size),r-=u*this.__indent_size,c=new Array(u+1).join(this.__indent_string)),r&&(c+=new Array(r+1).join(" ")),this.__cache.push(c)};function s(r,u){this.__indent_cache=new n(r,u),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(r,u){return this.__indent_cache.get_indent_string(r,u)},s.prototype.get_indent_size=function(r,u){return this.__indent_cache.get_indent_size(r,u)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(r){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
|
|
143
143
|
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(`
|
|
144
144
|
`);return r!==`
|
|
145
|
-
`&&(c=c.replace(/[\n]/g,r)),c},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(r,u){return r=r||0,u=u||0,this.next_line.set_indent(r,u),this.__lines.length>1?(this.current_line.set_indent(r,u),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(r){for(var u=0;u<r.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(r){for(var u=this.__lines.length;r<u;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(r,u){for(var c=this.__lines.length-2;c>=0;){var h=this.__lines[c];if(h.is_empty())break;if(h.item(0).indexOf(r)!==0&&h.item(-1)!==u){this.__lines.splice(c+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},ah.Output=s,ah}var sh={},Dy;function Bv(){if(Dy)return sh;Dy=1;function i(n,s,r,u){this.type=n,this.text=s,this.comments_before=null,this.newlines=r||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return sh.Token=i,sh}var rh={},Py;function jv(){return Py||(Py=1,(function(i){var n="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",u="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",c="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",h="(?:"+c+"|["+n+r+"])",p="(?:"+c+"|["+s+r+u+"])*";i.identifier=new RegExp(h+p,"g"),i.identifierStart=new RegExp(h),i.identifierMatch=new RegExp("(?:"+c+"|["+s+r+u+"])+"),i.newline=/[\n\r\u2028\u2029]/,i.lineBreak=new RegExp(`\r
|
|
146
|
-
|`+i.newline.source),i.allLineBreaks=new RegExp(i.lineBreak.source,"g")})(rh)),rh}var lh={},Mr={},
|
|
145
|
+
`&&(c=c.replace(/[\n]/g,r)),c},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(r,u){return r=r||0,u=u||0,this.next_line.set_indent(r,u),this.__lines.length>1?(this.current_line.set_indent(r,u),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(r){for(var u=0;u<r.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(r){for(var u=this.__lines.length;r<u;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(r,u){for(var c=this.__lines.length-2;c>=0;){var h=this.__lines[c];if(h.is_empty())break;if(h.item(0).indexOf(r)!==0&&h.item(-1)!==u){this.__lines.splice(c+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},ah.Output=s,ah}var sh={},Py;function jv(){if(Py)return sh;Py=1;function i(n,s,r,u){this.type=n,this.text=s,this.comments_before=null,this.newlines=r||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return sh.Token=i,sh}var rh={},qy;function Dv(){return qy||(qy=1,(function(i){var n="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",u="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",c="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",h="(?:"+c+"|["+n+r+"])",p="(?:"+c+"|["+s+r+u+"])*";i.identifier=new RegExp(h+p,"g"),i.identifierStart=new RegExp(h),i.identifierMatch=new RegExp("(?:"+c+"|["+s+r+u+"])+"),i.newline=/[\n\r\u2028\u2029]/,i.lineBreak=new RegExp(`\r
|
|
146
|
+
|`+i.newline.source),i.allLineBreaks=new RegExp(i.lineBreak.source,"g")})(rh)),rh}var lh={},Mr={},Gy;function cd(){if(Gy)return Mr;Gy=1;function i(r,u){this.raw_options=n(r,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}i.prototype._get_array=function(r,u){var c=this.raw_options[r],h=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(h=c.concat()):typeof c=="string"&&(h=c.split(/[^a-zA-Z0-9_\/\-]+/)),h},i.prototype._get_boolean=function(r,u){var c=this.raw_options[r],h=c===void 0?!!u:!!c;return h},i.prototype._get_characters=function(r,u){var c=this.raw_options[r],h=u||"";return typeof c=="string"&&(h=c.replace(/\\r/,"\r").replace(/\\n/,`
|
|
147
147
|
`).replace(/\\t/," ")),h},i.prototype._get_number=function(r,u){var c=this.raw_options[r];u=parseInt(u,10),isNaN(u)&&(u=0);var h=parseInt(c,10);return isNaN(h)&&(h=u),h},i.prototype._get_selection=function(r,u,c){var h=this._get_selection_list(r,u,c);if(h.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
|
|
148
148
|
`+u+`
|
|
149
149
|
You passed in: '`+this.raw_options[r]+"'");return h[0]},i.prototype._get_selection_list=function(r,u,c){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[u[0]],!this._is_valid_selection(c,u))throw new Error("Invalid Default Value!");var h=this._get_array(r,c);if(!this._is_valid_selection(h,u))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
|
|
150
150
|
`+u+`
|
|
151
|
-
You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selection=function(r,u){return r.length&&u.length&&!r.some(function(c){return u.indexOf(c)===-1})};function n(r,u){var c={};r=s(r);var h;for(h in r)h!==u&&(c[h]=r[h]);if(u&&r[u])for(h in r[u])c[h]=r[u][h];return c}function s(r){var u={},c;for(c in r){var h=c.replace(/-/g,"_");u[h]=r[c]}return u}return Mr.Options=i,Mr.normalizeOpts=s,Mr.mergeOpts=n,Mr}var Gy;function Dv(){if(Gy)return lh;Gy=1;var i=cd().Options,n=["before-newline","after-newline","preserve-newline"];function s(r){i.call(this,r,"js");var u=this.raw_options.brace_style||null;u==="expand-strict"?this.raw_options.brace_style="expand":u==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<c.length;h++)c[h]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=c[h];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return s.prototype=new i,lh.Options=s,lh}var bs={},uh={},Hy;function fd(){if(Hy)return uh;Hy=1;var i=RegExp.prototype.hasOwnProperty("sticky");function n(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}return n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},n.prototype.peek=function(s){var r=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(r=this.__input.charAt(s)),r},n.prototype.__match=function(s,r){s.lastIndex=r;var u=s.exec(this.__input);return u&&!(i&&s.sticky)&&u.index!==r&&(u=null),u},n.prototype.test=function(s,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(s,r):!1},n.prototype.testChar=function(s,r){var u=this.peek(r);return s.lastIndex=0,u!==null&&s.test(u)},n.prototype.match=function(s){var r=this.__match(s,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(s,r,u){var c="",h;return s&&(h=this.match(s),h&&(c+=h[0])),r&&(h||!s)&&(c+=this.readUntil(r,u)),c},n.prototype.readUntil=function(s,r){var u="",c=this.__position;s.lastIndex=this.__position;var h=s.exec(this.__input);return h?(c=h.index,r&&(c+=h[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},n.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},n.prototype.get_regexp=function(s,r){var u=null,c="g";return r&&i&&(c="y"),typeof s=="string"&&s!==""?u=new RegExp(s,c):s&&(u=new RegExp(s.source,c)),u},n.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(s){var r=this.__position,u=this.readUntilAfter(s);return this.__position=r,u},n.prototype.lookBack=function(s){var r=this.__position-1;return r>=s.length&&this.__input.substring(r-s.length,r).toLowerCase()===s},uh.InputScanner=n,uh}var Nu={},oh={},$y;function r2(){if($y)return oh;$y=1;function i(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}return i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return this.__tokens_length===0},i.prototype.hasNext=function(){return this.__position<this.__tokens_length},i.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},i.prototype.peek=function(n){var s=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(s=this.__tokens[n]),s},i.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},oh.TokenStream=i,oh}var ch={},fh={},Ky;function So(){if(Ky)return fh;Ky=1;function i(n,s){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}return i.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},i.prototype.read_match=function(){return this._input.match(this._match_pattern)},i.prototype.until_after=function(n){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(n),s._update(),s},i.prototype.until=function(n){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(n),s._update(),s},i.prototype.starting_with=function(n){var s=this._create();return s._starting_pattern=this._input.get_regexp(n,!0),s._update(),s},i.prototype.matching=function(n){var s=this._create();return s._match_pattern=this._input.get_regexp(n,!0),s._update(),s},i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){},fh.Pattern=i,fh}var Fy;function l2(){if(Fy)return ch;Fy=1;var i=So().Pattern;function n(s,r){i.call(this,s,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return n.prototype=new i,n.prototype.__set_whitespace_patterns=function(s,r){s+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var r=this.__split(this._newline_regexp,s);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return s},n.prototype.matching=function(s,r){var u=this._create();return u.__set_whitespace_patterns(s,r),u._update(),u},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(s,r){s.lastIndex=0;for(var u=0,c=[],h=s.exec(r);h;)c.push(r.substring(u,h.index)),u=h.index+h[0].length,h=s.exec(r);return u<r.length?c.push(r.substring(u,r.length)):c.push(""),c},ch.WhitespacePattern=n,ch}var Vy;function to(){if(Vy)return Nu;Vy=1;var i=fd().InputScanner,n=Bv().Token,s=r2().TokenStream,r=l2().WhitespacePattern,u={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(h,p){this._input=new i(h),this._options=p||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return c.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var h,p=new n(u.START,""),d=null,_=[],T=new s;p.type!==u.EOF;){for(h=this._get_next_token(p,d);this._is_comment(h);)T.add(h),h=this._get_next_token(p,d);T.isEmpty()||(h.comments_before=T,T=new s),h.parent=d,this._is_opening(h)?(_.push(d),d=h):d&&this._is_closing(h,d)&&(h.opened=d,d.closed=h,d=_.pop(),h.parent=d),h.previous=p,p.next=h,this.__tokens.add(h),p=h}return this.__tokens},c.prototype._is_first_token=function(){return this.__tokens.isEmpty()},c.prototype._reset=function(){},c.prototype._get_next_token=function(h,p){this._readWhitespace();var d=this._input.read(/.+/g);return d?this._create_token(u.RAW,d):this._create_token(u.EOF,"")},c.prototype._is_comment=function(h){return!1},c.prototype._is_opening=function(h){return!1},c.prototype._is_closing=function(h,p){return!1},c.prototype._create_token=function(h,p){var d=new n(h,p,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return d},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Nu.Tokenizer=c,Nu.TOKEN=u,Nu}var hh={},Yy;function hd(){if(Yy)return hh;Yy=1;function i(n,s){n=typeof n=="string"?n:n.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+s,"g")}return i.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)s[r[1]]=r[2],r=this.__directive_pattern.exec(n);return s},i.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},hh.Directives=i,hh}var dh={},Xy;function Pv(){if(Xy)return dh;Xy=1;var i=So().Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(r,u){i.call(this,r,u),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),u&&(this.__template_pattern=this._input.get_regexp(u.__template_pattern),this._excluded=Object.assign(this._excluded,u._excluded),this._disabled=Object.assign(this._disabled,u._disabled));var c=new i(r);this.__patterns={handlebars_comment:c.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:c.starting_with(/{{{/).until_after(/}}}/),handlebars:c.starting_with(/{{/).until_after(/}}/),php:c.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:c.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:c.starting_with(/{%/).until_after(/%}/),django_value:c.starting_with(/{{/).until_after(/}}/),django_comment:c.starting_with(/{#/).until_after(/#}/),smarty:c.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:c.starting_with(/{\*/).until_after(/\*}/),smarty_literal:c.starting_with(/{literal}/).until_after(/{\/literal}/)}}return s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(r){var u=this._create();return u._disabled[r]=!0,u._update(),u},s.prototype.read_options=function(r){var u=this._create();for(var c in n)u._disabled[c]=r.templating.indexOf(c)===-1;return u._update(),u},s.prototype.exclude=function(r){var u=this._create();return u._excluded[r]=!0,u._update(),u},s.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var u=this._read_template();u;)this._match_pattern?u+=this._input.read(this._match_pattern):u+=this._input.readUntil(this.__template_pattern),r+=u,u=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},s.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},s.prototype._read_template=function(){var r="",u=this._input.peek();if(u==="<"){var c=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&c==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&c==="%"&&(r=r||this.__patterns.erb.read())}else u==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},dh.TemplatablePattern=s,dh}var Qy;function Ru(){if(Qy)return bs;Qy=1;var i=fd().InputScanner,n=to().Tokenizer,s=to().TOKEN,r=hd().Directives,u=jv(),c=So().Pattern,h=Pv().TemplatablePattern;function p(I,C){return C.indexOf(I)!==-1}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},_=new r(/\/\*/,/\*\//),T=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,v=/[0-9]/,R=/[^\d\.]/,q=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),K=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";K=K.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),K="\\?\\.(?!\\d) "+K,K=K.replace(/ /g,"|");var Q=new RegExp(K),O="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),b=O.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),N=new RegExp("^(?:"+b.join("|")+")$"),P,z=function(I,C){n.call(this,I,C),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var y=new c(this._input),S=new h(this._input).read_options(this._options);this.__patterns={template:S,identifier:S.starting_with(u.identifier).matching(u.identifierMatch),number:y.matching(T),punct:y.matching(Q),comment:y.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:y.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:y.matching(/<!--/),html_comment_end:y.matching(/-->/),include:y.starting_with(/#include/).until_after(u.lineBreak),shebang:y.starting_with(/#!/).until_after(u.lineBreak),xml:y.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:S.until(/['\\\n\r\u2028\u2029]/),double_quote:S.until(/["\\\n\r\u2028\u2029]/),template_text:S.until(/[`\\$]/),template_expression:S.until(/[`}\\]/)}};z.prototype=new n,z.prototype._is_comment=function(I){return I.type===d.COMMENT||I.type===d.BLOCK_COMMENT||I.type===d.UNKNOWN},z.prototype._is_opening=function(I){return I.type===d.START_BLOCK||I.type===d.START_EXPR},z.prototype._is_closing=function(I,C){return(I.type===d.END_BLOCK||I.type===d.END_EXPR)&&C&&(I.text==="]"&&C.text==="["||I.text===")"&&C.text==="("||I.text==="}"&&C.text==="{")},z.prototype._reset=function(){P=!1},z.prototype._get_next_token=function(I,C){var y=null;this._readWhitespace();var S=this._input.peek();return S===null?this._create_token(d.EOF,""):(y=y||this._read_non_javascript(S),y=y||this._read_string(S),y=y||this._read_pair(S,this._input.peek(1)),y=y||this._read_word(I),y=y||this._read_singles(S),y=y||this._read_comment(S),y=y||this._read_regexp(S,I),y=y||this._read_xml(S,I),y=y||this._read_punctuation(),y=y||this._create_token(d.UNKNOWN,this._input.next()),y)},z.prototype._read_word=function(I){var C;if(C=this.__patterns.identifier.read(),C!=="")return C=C.replace(u.allLineBreaks,`
|
|
151
|
+
You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selection=function(r,u){return r.length&&u.length&&!r.some(function(c){return u.indexOf(c)===-1})};function n(r,u){var c={};r=s(r);var h;for(h in r)h!==u&&(c[h]=r[h]);if(u&&r[u])for(h in r[u])c[h]=r[u][h];return c}function s(r){var u={},c;for(c in r){var h=c.replace(/-/g,"_");u[h]=r[c]}return u}return Mr.Options=i,Mr.normalizeOpts=s,Mr.mergeOpts=n,Mr}var Hy;function Pv(){if(Hy)return lh;Hy=1;var i=cd().Options,n=["before-newline","after-newline","preserve-newline"];function s(r){i.call(this,r,"js");var u=this.raw_options.brace_style||null;u==="expand-strict"?this.raw_options.brace_style="expand":u==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<c.length;h++)c[h]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=c[h];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return s.prototype=new i,lh.Options=s,lh}var bs={},uh={},$y;function fd(){if($y)return uh;$y=1;var i=RegExp.prototype.hasOwnProperty("sticky");function n(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}return n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},n.prototype.peek=function(s){var r=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(r=this.__input.charAt(s)),r},n.prototype.__match=function(s,r){s.lastIndex=r;var u=s.exec(this.__input);return u&&!(i&&s.sticky)&&u.index!==r&&(u=null),u},n.prototype.test=function(s,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(s,r):!1},n.prototype.testChar=function(s,r){var u=this.peek(r);return s.lastIndex=0,u!==null&&s.test(u)},n.prototype.match=function(s){var r=this.__match(s,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(s,r,u){var c="",h;return s&&(h=this.match(s),h&&(c+=h[0])),r&&(h||!s)&&(c+=this.readUntil(r,u)),c},n.prototype.readUntil=function(s,r){var u="",c=this.__position;s.lastIndex=this.__position;var h=s.exec(this.__input);return h?(c=h.index,r&&(c+=h[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},n.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},n.prototype.get_regexp=function(s,r){var u=null,c="g";return r&&i&&(c="y"),typeof s=="string"&&s!==""?u=new RegExp(s,c):s&&(u=new RegExp(s.source,c)),u},n.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(s){var r=this.__position,u=this.readUntilAfter(s);return this.__position=r,u},n.prototype.lookBack=function(s){var r=this.__position-1;return r>=s.length&&this.__input.substring(r-s.length,r).toLowerCase()===s},uh.InputScanner=n,uh}var Nu={},oh={},Ky;function l2(){if(Ky)return oh;Ky=1;function i(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}return i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return this.__tokens_length===0},i.prototype.hasNext=function(){return this.__position<this.__tokens_length},i.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},i.prototype.peek=function(n){var s=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(s=this.__tokens[n]),s},i.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},oh.TokenStream=i,oh}var ch={},fh={},Fy;function So(){if(Fy)return fh;Fy=1;function i(n,s){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}return i.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},i.prototype.read_match=function(){return this._input.match(this._match_pattern)},i.prototype.until_after=function(n){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(n),s._update(),s},i.prototype.until=function(n){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(n),s._update(),s},i.prototype.starting_with=function(n){var s=this._create();return s._starting_pattern=this._input.get_regexp(n,!0),s._update(),s},i.prototype.matching=function(n){var s=this._create();return s._match_pattern=this._input.get_regexp(n,!0),s._update(),s},i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){},fh.Pattern=i,fh}var Vy;function u2(){if(Vy)return ch;Vy=1;var i=So().Pattern;function n(s,r){i.call(this,s,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return n.prototype=new i,n.prototype.__set_whitespace_patterns=function(s,r){s+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var r=this.__split(this._newline_regexp,s);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return s},n.prototype.matching=function(s,r){var u=this._create();return u.__set_whitespace_patterns(s,r),u._update(),u},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(s,r){s.lastIndex=0;for(var u=0,c=[],h=s.exec(r);h;)c.push(r.substring(u,h.index)),u=h.index+h[0].length,h=s.exec(r);return u<r.length?c.push(r.substring(u,r.length)):c.push(""),c},ch.WhitespacePattern=n,ch}var Yy;function to(){if(Yy)return Nu;Yy=1;var i=fd().InputScanner,n=jv().Token,s=l2().TokenStream,r=u2().WhitespacePattern,u={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(h,p){this._input=new i(h),this._options=p||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return c.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var h,p=new n(u.START,""),d=null,_=[],T=new s;p.type!==u.EOF;){for(h=this._get_next_token(p,d);this._is_comment(h);)T.add(h),h=this._get_next_token(p,d);T.isEmpty()||(h.comments_before=T,T=new s),h.parent=d,this._is_opening(h)?(_.push(d),d=h):d&&this._is_closing(h,d)&&(h.opened=d,d.closed=h,d=_.pop(),h.parent=d),h.previous=p,p.next=h,this.__tokens.add(h),p=h}return this.__tokens},c.prototype._is_first_token=function(){return this.__tokens.isEmpty()},c.prototype._reset=function(){},c.prototype._get_next_token=function(h,p){this._readWhitespace();var d=this._input.read(/.+/g);return d?this._create_token(u.RAW,d):this._create_token(u.EOF,"")},c.prototype._is_comment=function(h){return!1},c.prototype._is_opening=function(h){return!1},c.prototype._is_closing=function(h,p){return!1},c.prototype._create_token=function(h,p){var d=new n(h,p,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return d},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Nu.Tokenizer=c,Nu.TOKEN=u,Nu}var hh={},Xy;function hd(){if(Xy)return hh;Xy=1;function i(n,s){n=typeof n=="string"?n:n.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+s,"g")}return i.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)s[r[1]]=r[2],r=this.__directive_pattern.exec(n);return s},i.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},hh.Directives=i,hh}var dh={},Qy;function qv(){if(Qy)return dh;Qy=1;var i=So().Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(r,u){i.call(this,r,u),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),u&&(this.__template_pattern=this._input.get_regexp(u.__template_pattern),this._excluded=Object.assign(this._excluded,u._excluded),this._disabled=Object.assign(this._disabled,u._disabled));var c=new i(r);this.__patterns={handlebars_comment:c.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:c.starting_with(/{{{/).until_after(/}}}/),handlebars:c.starting_with(/{{/).until_after(/}}/),php:c.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:c.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:c.starting_with(/{%/).until_after(/%}/),django_value:c.starting_with(/{{/).until_after(/}}/),django_comment:c.starting_with(/{#/).until_after(/#}/),smarty:c.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:c.starting_with(/{\*/).until_after(/\*}/),smarty_literal:c.starting_with(/{literal}/).until_after(/{\/literal}/)}}return s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(r){var u=this._create();return u._disabled[r]=!0,u._update(),u},s.prototype.read_options=function(r){var u=this._create();for(var c in n)u._disabled[c]=r.templating.indexOf(c)===-1;return u._update(),u},s.prototype.exclude=function(r){var u=this._create();return u._excluded[r]=!0,u._update(),u},s.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var u=this._read_template();u;)this._match_pattern?u+=this._input.read(this._match_pattern):u+=this._input.readUntil(this.__template_pattern),r+=u,u=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},s.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},s.prototype._read_template=function(){var r="",u=this._input.peek();if(u==="<"){var c=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&c==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&c==="%"&&(r=r||this.__patterns.erb.read())}else u==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},dh.TemplatablePattern=s,dh}var Zy;function Ru(){if(Zy)return bs;Zy=1;var i=fd().InputScanner,n=to().Tokenizer,s=to().TOKEN,r=hd().Directives,u=Dv(),c=So().Pattern,h=qv().TemplatablePattern;function p(I,C){return C.indexOf(I)!==-1}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},_=new r(/\/\*/,/\*\//),T=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,v=/[0-9]/,R=/[^\d\.]/,q=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),K=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";K=K.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),K="\\?\\.(?!\\d) "+K,K=K.replace(/ /g,"|");var Q=new RegExp(K),O="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),b=O.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),N=new RegExp("^(?:"+b.join("|")+")$"),P,z=function(I,C){n.call(this,I,C),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var y=new c(this._input),S=new h(this._input).read_options(this._options);this.__patterns={template:S,identifier:S.starting_with(u.identifier).matching(u.identifierMatch),number:y.matching(T),punct:y.matching(Q),comment:y.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:y.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:y.matching(/<!--/),html_comment_end:y.matching(/-->/),include:y.starting_with(/#include/).until_after(u.lineBreak),shebang:y.starting_with(/#!/).until_after(u.lineBreak),xml:y.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:S.until(/['\\\n\r\u2028\u2029]/),double_quote:S.until(/["\\\n\r\u2028\u2029]/),template_text:S.until(/[`\\$]/),template_expression:S.until(/[`}\\]/)}};z.prototype=new n,z.prototype._is_comment=function(I){return I.type===d.COMMENT||I.type===d.BLOCK_COMMENT||I.type===d.UNKNOWN},z.prototype._is_opening=function(I){return I.type===d.START_BLOCK||I.type===d.START_EXPR},z.prototype._is_closing=function(I,C){return(I.type===d.END_BLOCK||I.type===d.END_EXPR)&&C&&(I.text==="]"&&C.text==="["||I.text===")"&&C.text==="("||I.text==="}"&&C.text==="{")},z.prototype._reset=function(){P=!1},z.prototype._get_next_token=function(I,C){var y=null;this._readWhitespace();var S=this._input.peek();return S===null?this._create_token(d.EOF,""):(y=y||this._read_non_javascript(S),y=y||this._read_string(S),y=y||this._read_pair(S,this._input.peek(1)),y=y||this._read_word(I),y=y||this._read_singles(S),y=y||this._read_comment(S),y=y||this._read_regexp(S,I),y=y||this._read_xml(S,I),y=y||this._read_punctuation(),y=y||this._create_token(d.UNKNOWN,this._input.next()),y)},z.prototype._read_word=function(I){var C;if(C=this.__patterns.identifier.read(),C!=="")return C=C.replace(u.allLineBreaks,`
|
|
152
152
|
`),!(I.type===d.DOT||I.type===d.RESERVED&&(I.text==="set"||I.text==="get"))&&N.test(C)?(C==="in"||C==="of")&&(I.type===d.WORD||I.type===d.STRING)?this._create_token(d.OPERATOR,C):this._create_token(d.RESERVED,C):this._create_token(d.WORD,C);if(C=this.__patterns.number.read(),C!=="")return this._create_token(d.WORD,C)},z.prototype._read_singles=function(I){var C=null;return I==="("||I==="["?C=this._create_token(d.START_EXPR,I):I===")"||I==="]"?C=this._create_token(d.END_EXPR,I):I==="{"?C=this._create_token(d.START_BLOCK,I):I==="}"?C=this._create_token(d.END_BLOCK,I):I===";"?C=this._create_token(d.SEMICOLON,I):I==="."&&R.test(this._input.peek(1))?C=this._create_token(d.DOT,I):I===","&&(C=this._create_token(d.COMMA,I)),C&&this._input.next(),C},z.prototype._read_pair=function(I,C){var y=null;return I==="#"&&C==="{"&&(y=this._create_token(d.START_BLOCK,I+C)),y&&(this._input.next(),this._input.next()),y},z.prototype._read_punctuation=function(){var I=this.__patterns.punct.read();if(I!=="")return I==="="?this._create_token(d.EQUALS,I):I==="?."?this._create_token(d.DOT,I):this._create_token(d.OPERATOR,I)},z.prototype._read_non_javascript=function(I){var C="";if(I==="#"){if(this._is_first_token()&&(C=this.__patterns.shebang.read(),C))return this._create_token(d.UNKNOWN,C.trim()+`
|
|
153
153
|
`);if(C=this.__patterns.include.read(),C)return this._create_token(d.UNKNOWN,C.trim()+`
|
|
154
154
|
`);I=this._input.next();var y="#";if(this._input.hasNext()&&this._input.testChar(v)){do I=this._input.next(),y+=I;while(this._input.hasNext()&&I!=="#"&&I!=="=");return I==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(y+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(y+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,y)}this._input.back()}else if(I==="<"&&this._is_first_token()){if(C=this.__patterns.html_comment_start.read(),C){for(;this._input.hasNext()&&!this._input.testChar(u.newline);)C+=this._input.next();return P=!0,this._create_token(d.COMMENT,C)}}else if(P&&I==="-"&&(C=this.__patterns.html_comment_end.read(),C))return P=!1,this._create_token(d.COMMENT,C);return null},z.prototype._read_comment=function(I){var C=null;if(I==="/"){var y="";if(this._input.peek(1)==="*"){y=this.__patterns.block_comment.read();var S=_.get_directives(y);S&&S.ignore==="start"&&(y+=_.readIgnored(this._input)),y=y.replace(u.allLineBreaks,`
|
|
155
155
|
`),C=this._create_token(d.BLOCK_COMMENT,y),C.directives=S}else this._input.peek(1)==="/"&&(y=this.__patterns.comment.read(),C=this._create_token(d.COMMENT,y))}return C},z.prototype._read_string=function(I){if(I==="`"||I==="'"||I==='"'){var C=this._input.next();return this.has_char_escapes=!1,I==="`"?C+=this._read_string_recursive("`",!0,"${"):C+=this._read_string_recursive(I),this.has_char_escapes&&this._options.unescape_strings&&(C=Z(C)),this._input.peek()===I&&(C+=this._input.next()),C=C.replace(u.allLineBreaks,`
|
|
156
156
|
`),this._create_token(d.STRING,C)}return null},z.prototype._allow_regexp_or_xml=function(I){return I.type===d.RESERVED&&p(I.text,["return","case","throw","else","do","typeof","yield"])||I.type===d.END_EXPR&&I.text===")"&&I.opened.previous.type===d.RESERVED&&p(I.opened.previous.text,["if","while","for"])||p(I.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},z.prototype._read_regexp=function(I,C){if(I==="/"&&this._allow_regexp_or_xml(C)){for(var y=this._input.next(),S=!1,m=!1;this._input.hasNext()&&(S||m||this._input.peek()!==I)&&!this._input.testChar(u.newline);)y+=this._input.peek(),S?S=!1:(S=this._input.peek()==="\\",this._input.peek()==="["?m=!0:this._input.peek()==="]"&&(m=!1)),this._input.next();return this._input.peek()===I&&(y+=this._input.next(),y+=this._input.read(u.identifier)),this._create_token(d.STRING,y)}return null},z.prototype._read_xml=function(I,C){if(this._options.e4x&&I==="<"&&this._allow_regexp_or_xml(C)){var y="",S=this.__patterns.xml.read_match();if(S){for(var m=S[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),L=m.indexOf("{")===0,M=0;S;){var W=!!S[1],at=S[2],it=!!S[S.length-1]||at.slice(0,8)==="![CDATA[";if(!it&&(at===m||L&&at.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(W?--M:++M),y+=S[0],M<=0)break;S=this.__patterns.xml.read_match()}return S||(y+=this._input.match(/[\s\S]*/g)[0]),y=y.replace(u.allLineBreaks,`
|
|
157
157
|
`),this._create_token(d.STRING,y)}}return null};function Z(I){for(var C="",y=0,S=new i(I),m=null;S.hasNext();)if(m=S.match(/([\s]|[^\\]|\\\\)+/g),m&&(C+=m[0]),S.peek()==="\\"){if(S.next(),S.peek()==="x")m=S.match(/x([0-9A-Fa-f]{2})/g);else if(S.peek()==="u")m=S.match(/u([0-9A-Fa-f]{4})/g),m||(m=S.match(/u\{([0-9A-Fa-f]+)\}/g));else{C+="\\",S.hasNext()&&(C+=S.next());continue}if(!m||(y=parseInt(m[1],16),y>126&&y<=255&&m[0].indexOf("x")===0))return I;y>=0&&y<32||y>1114111?C+="\\"+m[0]:y===34||y===39||y===92?C+="\\"+String.fromCharCode(y):C+=String.fromCharCode(y)}return C}return z.prototype._read_string_recursive=function(I,C,y){var S,m;I==="'"?m=this.__patterns.single_quote:I==='"'?m=this.__patterns.double_quote:I==="`"?m=this.__patterns.template_text:I==="}"&&(m=this.__patterns.template_expression);for(var L=m.read(),M="";this._input.hasNext();){if(M=this._input.next(),M===I||!C&&u.newline.test(M)){this._input.back();break}else M==="\\"&&this._input.hasNext()?(S=this._input.peek(),S==="x"||S==="u"?this.has_char_escapes=!0:S==="\r"&&this._input.peek(1)===`
|
|
158
|
-
`&&this._input.next(),M+=this._input.next()):y&&(y==="${"&&M==="$"&&this._input.peek()==="{"&&(M+=this._input.next()),y===M&&(I==="`"?M+=this._read_string_recursive("}",C,"`"):M+=this._read_string_recursive("`",C,"${"),this._input.hasNext()&&(M+=this._input.next())));M+=m.read(),L+=M}return L},bs.Tokenizer=z,bs.TOKEN=d,bs.positionable_operators=q.slice(),bs.line_starters=O.slice(),bs}var
|
|
158
|
+
`&&this._input.next(),M+=this._input.next()):y&&(y==="${"&&M==="$"&&this._input.peek()==="{"&&(M+=this._input.next()),y===M&&(I==="`"?M+=this._read_string_recursive("}",C,"`"):M+=this._read_string_recursive("`",C,"${"),this._input.hasNext()&&(M+=this._input.next())));M+=m.read(),L+=M}return L},bs.Tokenizer=z,bs.TOKEN=d,bs.positionable_operators=q.slice(),bs.line_starters=O.slice(),bs}var Wy;function o2(){if(Wy)return ih;Wy=1;var i=od().Output,n=jv().Token,s=Dv(),r=Pv().Options,u=Ru().Tokenizer,c=Ru().line_starters,h=Ru().positionable_operators,p=Ru().TOKEN;function d(m,L){return L.indexOf(m)!==-1}function _(m){return m.replace(/^\s+/g,"")}function T(m){for(var L={},M=0;M<m.length;M++)L[m[M].replace(/-/g,"_")]=m[M];return L}function v(m,L){return m&&m.type===p.RESERVED&&m.text===L}function R(m,L){return m&&m.type===p.RESERVED&&d(m.text,L)}var q=["case","return","do","if","throw","else","await","break","continue","async"],K=["before-newline","after-newline","preserve-newline"],Q=T(K),O=[Q.before_newline,Q.preserve_newline],b={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function N(m,L){L.multiline_frame||L.mode===b.ForInitializer||L.mode===b.Conditional||m.remove_indent(L.start_line_index)}function P(m){m=m.replace(s.allLineBreaks,`
|
|
159
159
|
`);for(var L=[],M=m.indexOf(`
|
|
160
160
|
`);M!==-1;)L.push(m.substring(0,M)),m=m.substring(M+1),M=m.indexOf(`
|
|
161
161
|
`);return m.length&&L.push(m),L}function z(m){return m===b.ArrayLiteral}function Z(m){return d(m,[b.Expression,b.ForInitializer,b.Conditional])}function I(m,L){for(var M=0;M<m.length;M++){var W=m[M].trim();if(W.charAt(0)!==L)return!1}return!0}function C(m,L){for(var M=0,W=m.length,at;M<W;M++)if(at=m[M],at&&at.indexOf(L)!==0)return!1;return!0}function y(m,L){L=L||{},this._source_text=m||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(L)}y.prototype.create_flags=function(m,L){var M=0;m&&(M=m.indentation_level,!this._output.just_added_newline()&&m.line_indent_level>M&&(M=m.line_indent_level));var W={mode:L,parent:m,last_token:m?m.last_token:new n(p.START_BLOCK,""),last_word:m?m.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:M,alignment:0,line_indent_level:m?m.line_indent_level:M,start_line_index:this._output.get_line_number(),ternary_depth:0};return W},y.prototype._reset=function(m){var L=m.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,L),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(b.BlockStatement);var M=new u(m,this._options);return this._tokens=M.tokenize(),m},y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var m,L=this._reset(this._source_text),M=this._options.eol;this._options.eol==="auto"&&(M=`
|
|
162
162
|
`,L&&s.lineBreak.test(L||"")&&(M=L.match(s.lineBreak)[0]));for(var W=this._tokens.next();W;)this.handle_token(W),this._last_last_text=this._flags.last_token.text,this._flags.last_token=W,W=this._tokens.next();return m=this._output.get_code(M),m},y.prototype.handle_token=function(m,L){m.type===p.START_EXPR?this.handle_start_expr(m):m.type===p.END_EXPR?this.handle_end_expr(m):m.type===p.START_BLOCK?this.handle_start_block(m):m.type===p.END_BLOCK?this.handle_end_block(m):m.type===p.WORD?this.handle_word(m):m.type===p.RESERVED?this.handle_word(m):m.type===p.SEMICOLON?this.handle_semicolon(m):m.type===p.STRING?this.handle_string(m):m.type===p.EQUALS?this.handle_equals(m):m.type===p.OPERATOR?this.handle_operator(m):m.type===p.COMMA?this.handle_comma(m):m.type===p.BLOCK_COMMENT?this.handle_block_comment(m,L):m.type===p.COMMENT?this.handle_comment(m,L):m.type===p.DOT?this.handle_dot(m):m.type===p.EOF?this.handle_eof(m):m.type===p.UNKNOWN?this.handle_unknown(m,L):this.handle_unknown(m,L)},y.prototype.handle_whitespace_and_comments=function(m,L){var M=m.newlines,W=this._options.keep_array_indentation&&z(this._flags.mode);if(m.comments_before)for(var at=m.comments_before.next();at;)this.handle_whitespace_and_comments(at,L),this.handle_token(at,L),at=m.comments_before.next();if(W)for(var it=0;it<M;it+=1)this.print_newline(it>0,L);else if(this._options.max_preserve_newlines&&M>this._options.max_preserve_newlines&&(M=this._options.max_preserve_newlines),this._options.preserve_newlines&&M>1){this.print_newline(!1,L);for(var k=1;k<M;k+=1)this.print_newline(!0,L)}};var S=["async","break","continue","return","throw","yield"];return y.prototype.allow_wrap_or_preserved_newline=function(m,L){if(L=L===void 0?!1:L,!this._output.just_added_newline()){var M=this._options.preserve_newlines&&m.newlines||L,W=d(this._flags.last_token.text,h)||d(m.text,h);if(W){var at=d(this._flags.last_token.text,h)&&d(this._options.operator_position,O)||d(m.text,h);M=M&&at}if(M)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(R(this._flags.last_token,S))return;this._output.set_wrap_point()}}},y.prototype.print_newline=function(m,L){if(!L&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==p.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var M=this._tokens.peek();this._flags.mode===b.Statement&&!(this._flags.if_block&&v(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(m)&&(this._flags.multiline_frame=!0)},y.prototype.print_token_line_indentation=function(m){this._output.just_added_newline()&&(this._options.keep_array_indentation&&m.newlines&&(m.text==="["||z(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(m.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},y.prototype.print_token=function(m){if(this._output.raw){this._output.add_raw_token(m);return}if(this._options.comma_first&&m.previous&&m.previous.type===p.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var L=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(L),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(m),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(m),this._output.non_breaking_space=!0,this._output.add_token(m.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},y.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},y.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},y.prototype.set_mode=function(m){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,m),this._flags=this.create_flags(this._previous_flags,m),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},y.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===b.Statement&&N(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},y.prototype.start_of_object_property=function(){return this._flags.parent.mode===b.ObjectLiteral&&this._flags.mode===b.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||R(this._flags.last_token,["get","set"]))},y.prototype.start_of_statement=function(m){var L=!1;return L=L||R(this._flags.last_token,["var","let","const"])&&m.type===p.WORD,L=L||v(this._flags.last_token,"do"),L=L||!(this._flags.parent.mode===b.ObjectLiteral&&this._flags.mode===b.Statement)&&R(this._flags.last_token,S)&&!m.newlines,L=L||v(this._flags.last_token,"else")&&!(v(m,"if")&&!m.comments_before),L=L||this._flags.last_token.type===p.END_EXPR&&(this._previous_flags.mode===b.ForInitializer||this._previous_flags.mode===b.Conditional),L=L||this._flags.last_token.type===p.WORD&&this._flags.mode===b.BlockStatement&&!this._flags.in_case&&!(m.text==="--"||m.text==="++")&&this._last_last_text!=="function"&&m.type!==p.WORD&&m.type!==p.RESERVED,L=L||this._flags.mode===b.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||R(this._flags.last_token,["get","set"])),L?(this.set_mode(b.Statement),this.indent(),this.handle_whitespace_and_comments(m,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m,R(m,["do","for","if","while"])),!0):!1},y.prototype.handle_start_expr=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m);var L=b.Expression;if(m.text==="["){if(this._flags.last_token.type===p.WORD||this._flags.last_token.text===")"){R(this._flags.last_token,c)&&(this._output.space_before_token=!0),this.print_token(m),this.set_mode(L),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}L=b.ArrayLiteral,z(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),d(this._flags.last_token.type,[p.START_EXPR,p.END_EXPR,p.WORD,p.OPERATOR,p.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===p.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,L=b.ForInitializer):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,L=b.Conditional):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&m.whitespace_before===""?this._output.space_before_token=!1:(d(this._flags.last_token.text,c)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m);else if(this._flags.last_token.type===p.WORD){this._output.space_before_token=!1;var M=this._tokens.peek(-3);if(this._options.space_after_named_function&&M){var W=this._tokens.peek(-4);R(M,["async","function"])||M.text==="*"&&R(W,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b.ObjectLiteral?(M.text==="{"||M.text===","||M.text==="*"&&(W.text==="{"||W.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(m);(this._flags.last_token.type===p.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===b.ObjectLiteral&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===p.START_BLOCK?this.print_newline():(this._flags.last_token.type===p.END_EXPR||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===p.COMMA)&&this.allow_wrap_or_preserved_newline(m,m.newlines),this.print_token(m),this.set_mode(L),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},y.prototype.handle_end_expr=function(m){for(;this._flags.mode===b.Statement;)this.restore_mode();this.handle_whitespace_and_comments(m),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(m,m.text==="]"&&z(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===p.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(m),this.restore_mode(),N(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===b.Conditional&&(this._previous_flags.mode=b.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},y.prototype.handle_start_block=function(m){this.handle_whitespace_and_comments(m);var L=this._tokens.peek(),M=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===p.END_EXPR?(this.set_mode(b.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(b.BlockStatement):M&&(d(M.text,[":",","])&&d(L.type,[p.STRING,p.WORD,p.RESERVED])||d(L.text,["get","set","..."])&&d(M.type,[p.WORD,p.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(M.text,[":",","])?this.set_mode(b.BlockStatement):this.set_mode(b.ObjectLiteral):this._flags.last_token.type===p.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(b.BlockStatement):d(this._flags.last_token.type,[p.EQUALS,p.START_EXPR,p.COMMA,p.OPERATOR])||R(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b.ObjectLiteral):this.set_mode(b.BlockStatement),this._flags.last_token&&R(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var W=!L.comments_before&&L.text==="}",at=W&&this._flags.last_word==="function"&&this._flags.last_token.type===p.END_EXPR;if(this._options.brace_preserve_inline){var it=0,k=null;this._flags.inline_frame=!0;do if(it+=1,k=this._tokens.peek(it-1),k.newlines){this._flags.inline_frame=!1;break}while(k.type!==p.EOF&&!(k.type===p.END_BLOCK&&k.opened===m))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&m.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==p.OPERATOR&&(at||this._flags.last_token.type===p.EQUALS||R(this._flags.last_token,q)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(z(this._previous_flags.mode)&&(this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.COMMA)&&((this._flags.last_token.type===p.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(m),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==p.OPERATOR&&this._flags.last_token.type!==p.START_EXPR&&(d(this._flags.last_token.type,[p.START_BLOCK,p.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(m),this.indent(),!W&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},y.prototype.handle_end_block=function(m){for(this.handle_whitespace_and_comments(m);this._flags.mode===b.Statement;)this.restore_mode();var L=this._flags.last_token.type===p.START_BLOCK;this._flags.inline_frame&&!L?this._output.space_before_token=!0:this._options.brace_style==="expand"?L||this.print_newline():L||(z(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(m)},y.prototype.handle_word=function(m){if(m.type===p.RESERVED){if(d(m.text,["set","get"])&&this._flags.mode!==b.ObjectLiteral)m.type=p.WORD;else if(m.text==="import"&&d(this._tokens.peek().text,["(","."]))m.type=p.WORD;else if(d(m.text,["as","from"])&&!this._flags.import_block)m.type=p.WORD;else if(this._flags.mode===b.ObjectLiteral){var L=this._tokens.peek();L.text===":"&&(m.type=p.WORD)}}if(this.start_of_statement(m)?R(this._flags.last_token,["var","let","const"])&&m.type===p.WORD&&(this._flags.declaration_statement=!0):m.newlines&&!Z(this._flags.mode)&&(this._flags.last_token.type!==p.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==p.EQUALS&&(this._options.preserve_newlines||!R(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(m),this.print_newline()):this.handle_whitespace_and_comments(m),this._flags.do_block&&!this._flags.do_while)if(v(m,"while")){this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&v(m,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===b.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&R(m,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(m),this._flags.in_case=!0;return}if((this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR)&&!this.start_of_object_property()&&!(d(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===b.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(m),v(m,"function")){(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(d(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===p.OPERATOR))&&!this._output.just_added_blankline()&&!m.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD?R(this._flags.last_token,["get","set","new","export"])||R(this._flags.last_token,S)?this._output.space_before_token=!0:v(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===p.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Z(this._flags.mode)||z(this._flags.mode))||this.print_newline(),this.print_token(m),this._flags.last_word=m.text;return}var M="NONE";if(this._flags.last_token.type===p.END_BLOCK?this._previous_flags.inline_frame?M="SPACE":R(m,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&m.newlines?M="NEWLINE":(M="SPACE",this._output.space_before_token=!0):M="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&this._flags.mode===b.BlockStatement?M="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&Z(this._flags.mode)?M="SPACE":this._flags.last_token.type===p.STRING?M="NEWLINE":this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===b.ObjectLiteral&&d(this._last_last_text,["{",","]))?M="SPACE":this._flags.last_token.type===p.START_BLOCK?this._flags.inline_frame?M="SPACE":M="NEWLINE":this._flags.last_token.type===p.END_EXPR&&(this._output.space_before_token=!0,M="NEWLINE"),R(m,c)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?M="SPACE":M="NEWLINE"),R(m,["else","catch","finally"]))if((!(this._flags.last_token.type===p.END_BLOCK&&this._previous_flags.mode===b.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&m.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var W=this._output.current_line;W.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else M==="NEWLINE"?R(this._flags.last_token,q)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&R(m,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==p.END_EXPR?(this._flags.last_token.type!==p.START_EXPR||!R(m,["var","let","const"]))&&this._flags.last_token.text!==":"&&(v(m,"if")&&v(m.previous,"else")?this._output.space_before_token=!0:this.print_newline()):R(m,c)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&z(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():M==="SPACE"&&(this._output.space_before_token=!0);m.previous&&(m.previous.type===p.WORD||m.previous.type===p.RESERVED)&&(this._output.space_before_token=!0),this.print_token(m),this._flags.last_word=m.text,m.type===p.RESERVED&&(m.text==="do"?this._flags.do_block=!0:m.text==="if"?this._flags.if_block=!0:m.text==="import"?this._flags.import_block=!0:this._flags.import_block&&v(m,"from")&&(this._flags.import_block=!1))},y.prototype.handle_semicolon=function(m){this.start_of_statement(m)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(m);for(var L=this._tokens.peek();this._flags.mode===b.Statement&&!(this._flags.if_block&&v(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(m)},y.prototype.handle_string=function(m){m.text.startsWith("`")&&m.newlines===0&&m.whitespace_before===""&&(m.previous.text===")"||this._flags.last_token.type===p.WORD)||(this.start_of_statement(m)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(m),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m):m.text.startsWith("`")&&this._flags.last_token.type===p.END_EXPR&&(m.previous.text==="]"||m.previous.text===")")&&m.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(m)},y.prototype.handle_equals=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0},y.prototype.handle_comma=function(m){this.handle_whitespace_and_comments(m,!0),this.print_token(m),this._output.space_before_token=!0,this._flags.declaration_statement?(Z(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(m)):this._flags.mode===b.ObjectLiteral||this._flags.mode===b.Statement&&this._flags.parent.mode===b.ObjectLiteral?(this._flags.mode===b.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(m)},y.prototype.handle_operator=function(m){var L=m.text==="*"&&(R(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[p.START_BLOCK,p.COMMA,p.END_BLOCK,p.SEMICOLON])),M=d(m.text,["-","+"])&&(d(this._flags.last_token.type,[p.START_BLOCK,p.START_EXPR,p.EQUALS,p.OPERATOR])||d(this._flags.last_token.text,c)||this._flags.last_token.text===",");if(!this.start_of_statement(m)){var W=!L;this.handle_whitespace_and_comments(m,W)}if(m.text==="*"&&this._flags.last_token.type===p.DOT){this.print_token(m);return}if(m.text==="::"){this.print_token(m);return}if(d(m.text,["-","+"])&&this.start_of_object_property()){this.print_token(m);return}if(this._flags.last_token.type===p.OPERATOR&&d(this._options.operator_position,O)&&this.allow_wrap_or_preserved_newline(m),m.text===":"&&this._flags.in_case){this.print_token(m),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==p.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var at=!0,it=!0,k=!1;if(m.text===":"?this._flags.ternary_depth===0?at=!1:(this._flags.ternary_depth-=1,k=!0):m.text==="?"&&(this._flags.ternary_depth+=1),!M&&!L&&this._options.preserve_newlines&&d(m.text,h)){var F=m.text===":",nt=F&&k,tt=F&&!k;switch(this._options.operator_position){case Q.before_newline:this._output.space_before_token=!tt,this.print_token(m),(!F||nt)&&this.allow_wrap_or_preserved_newline(m),this._output.space_before_token=!0;return;case Q.after_newline:this._output.space_before_token=!0,!F||nt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(m):this._output.space_before_token=!1,this.print_token(m),this._output.space_before_token=!0;return;case Q.preserve_newline:tt||this.allow_wrap_or_preserved_newline(m),at=!(this._output.just_added_newline()||tt),this._output.space_before_token=at,this.print_token(m),this._output.space_before_token=!0;return}}if(L){this.allow_wrap_or_preserved_newline(m),at=!1;var _t=this._tokens.peek();it=_t&&d(_t.type,[p.WORD,p.RESERVED])}else if(m.text==="...")this.allow_wrap_or_preserved_newline(m),at=this._flags.last_token.type===p.START_BLOCK,it=!1;else if(d(m.text,["--","++","!","~"])||M){if((this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR)&&this.allow_wrap_or_preserved_newline(m),at=!1,it=!1,m.newlines&&(m.text==="--"||m.text==="++"||m.text==="~")){var A=R(this._flags.last_token,q)&&m.newlines;A&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(A,!0)}this._flags.last_token.text===";"&&Z(this._flags.mode)&&(at=!0),this._flags.last_token.type===p.RESERVED?at=!0:this._flags.last_token.type===p.END_EXPR?at=!(this._flags.last_token.text==="]"&&(m.text==="--"||m.text==="++")):this._flags.last_token.type===p.OPERATOR&&(at=d(m.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(m.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(it=!0)),(this._flags.mode===b.BlockStatement&&!this._flags.inline_frame||this._flags.mode===b.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||at,this.print_token(m),this._output.space_before_token=it},y.prototype.handle_block_comment=function(m,L){if(this._output.raw){this._output.add_raw_token(m),m.directives&&m.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(m.directives){this.print_newline(!1,L),this.print_token(m),m.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!s.newline.test(m.text)&&!m.newlines){this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0;return}else this.print_block_commment(m,L)},y.prototype.print_block_commment=function(m,L){var M=P(m.text),W,at=!1,it=!1,k=m.whitespace_before,F=k.length;if(this.print_newline(!1,L),this.print_token_line_indentation(m),this._output.add_token(M[0]),this.print_newline(!1,L),M.length>1){for(M=M.slice(1),at=I(M,"*"),it=C(M,k),at&&(this._flags.alignment=1),W=0;W<M.length;W++)at?(this.print_token_line_indentation(m),this._output.add_token(_(M[W]))):it&&M[W]?(this.print_token_line_indentation(m),this._output.add_token(M[W].substring(F))):(this._output.current_line.set_indent(-1),this._output.add_token(M[W])),this.print_newline(!1,L);this._flags.alignment=0}},y.prototype.handle_comment=function(m,L){m.newlines?this.print_newline(!1,L):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(m),this.print_newline(!1,L)},y.prototype.handle_dot=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),R(this._flags.last_token,q)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(m,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(m)},y.prototype.handle_unknown=function(m,L){this.print_token(m),m.text[m.text.length-1]===`
|
|
163
|
-
`&&this.print_newline(!1,L)},y.prototype.handle_eof=function(m){for(;this._flags.mode===b.Statement;)this.restore_mode();this.handle_whitespace_and_comments(m)},ih.Beautifier=y,ih}var
|
|
163
|
+
`&&this.print_newline(!1,L)},y.prototype.handle_eof=function(m){for(;this._flags.mode===b.Statement;)this.restore_mode();this.handle_whitespace_and_comments(m)},ih.Beautifier=y,ih}var Jy;function c2(){if(Jy)return Ou.exports;Jy=1;var i=o2().Beautifier,n=Pv().Options;function s(r,u){var c=new i(r,u);return c.beautify()}return Ou.exports=s,Ou.exports.defaultOptions=function(){return new n},Ou.exports}var xu={exports:{}},ph={},_h={},t0;function Gv(){if(t0)return _h;t0=1;var i=cd().Options;function n(s){i.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var c=0;c<u.length;c++)u[c]!=="expand"?this.brace_style="collapse":this.brace_style=u[c]}return n.prototype=new i,_h.Options=n,_h}var e0;function f2(){if(e0)return ph;e0=1;var i=Gv().Options,n=od().Output,s=fd().InputScanner,r=hd().Directives,u=new r(/\/\*/,/\*\//),c=/\r\n|[\r\n]/,h=/\r\n|[\r\n]/g,p=/\s/,d=/(?:\s|\n)+/g,_=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,T=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function v(R,q){this._source_text=R||"",this._options=new i(q),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return v.prototype.eatString=function(R){var q="";for(this._ch=this._input.next();this._ch;){if(q+=this._ch,this._ch==="\\")q+=this._input.next();else if(R.indexOf(this._ch)!==-1||this._ch===`
|
|
164
164
|
`)break;this._ch=this._input.next()}return q},v.prototype.eatWhitespace=function(R){for(var q=p.test(this._input.peek()),K=0;p.test(this._input.peek());)this._ch=this._input.next(),R&&this._ch===`
|
|
165
165
|
`&&(K===0||K<this._options.max_preserve_newlines)&&(K++,this._output.add_new_line(!0));return q},v.prototype.foundNestedPseudoClass=function(){for(var R=0,q=1,K=this._input.peek(q);K;){if(K==="{")return!0;if(K==="(")R+=1;else if(K===")"){if(R===0)return!1;R-=1}else if(K===";"||K==="}")return!1;q++,K=this._input.peek(q)}return!1},v.prototype.print_string=function(R){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(R)},v.prototype.preserveSingleSpace=function(R){R&&(this._output.space_before_token=!0)},v.prototype.indent=function(){this._indentLevel++},v.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},v.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var R=this._source_text,q=this._options.eol;q==="auto"&&(q=`
|
|
166
166
|
`,R&&c.test(R||"")&&(q=R.match(c)[0])),R=R.replace(h,`
|
|
167
167
|
`);var K=R.match(/^[\t ]*/)[0];this._output=new n(this._options,K),this._input=new s(R),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var Q=0,O=!1,b=!1,N=!1,P=!1,z=!1,Z=this._ch,I=!1,C,y,S;C=this._input.read(d),y=C!=="",S=Z,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Z=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var m=this._input.read(_),L=u.get_directives(m);L&&L.ignore==="start"&&(m+=u.readIgnored(this._input)),this.print_string(m),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(T)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(y),this.print_string(this._ch);var M=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);M.match(/[ :]$/)&&(M=this.eatString(": ").replace(/\s+$/,""),this.print_string(M),this._output.space_before_token=!0),Q===0&&M.indexOf(":")!==-1&&(b=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(y),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var W=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);W.match(/[ :]$/)&&(W=this.eatString(": ").replace(/\s+$/,""),this.print_string(W),this._output.space_before_token=!0),Q===0&&W.indexOf(":")!==-1?(b=!0,this.indent()):W in this.NESTED_AT_RULE?(this._nestedLevel+=1,W in this.CONDITIONAL_GROUP_RULE&&(N=!0)):Q===0&&!b&&(P=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(y),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")b&&(b=!1,this.outdent()),P=!1,N?(N=!1,O=this._indentLevel>=this._nestedLevel):O=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&O&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(S==="("?this._output.space_before_token=!1:S!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),S==="{"&&this._output.trim(!0),b&&(this.outdent(),b=!1),this.print_string(this._ch),O=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var at=0;at<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;at++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[at])){I=!0;break}(O||N)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!P&&Q===0?(this.print_string(":"),b||(b=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var it=S==='"'||S==="'";this.preserveSingleSpace(it||y),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")I=!1,Q===0?(b&&(this.outdent(),b=!1),P=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),Q++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),Q&&(Q--,this.outdent()));else{var k=!1;this._input.lookBack("with")&&(k=!0),this.preserveSingleSpace(y||k),this.print_string(this._ch),b&&S==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),z=!0):(this.eatWhitespace(),Q++,this.indent())}else if(this._ch===")")Q&&(Q--,this.outdent()),z&&this._input.peek()===";"&&this._options.selector_separator_newline&&(z=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!b||z)&&Q===0&&!P?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!b&&Q===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&p.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(y),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),p.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var F=S==='"'||S==="'";this.preserveSingleSpace(F||y),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
168
|
-
`&&I&&this._output.add_new_line()}var nt=this._output.get_code(q);return nt},ph.Beautifier=v,ph}var e0;function f2(){if(e0)return xu.exports;e0=1;var i=c2().Beautifier,n=qv().Options;function s(r,u){var c=new i(r,u);return c.beautify()}return xu.exports=s,xu.exports.defaultOptions=function(){return new n},xu.exports}var Cu={exports:{}},gh={},mh={},n0;function Gv(){if(n0)return mh;n0=1;var i=cd().Options;function n(s){i.call(this,s,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return n.prototype=new i,mh.Options=n,mh}var wu={},i0;function a0(){if(i0)return wu;i0=1;var i=to().Tokenizer,n=to().TOKEN,s=hd().Directives,r=Pv().TemplatablePattern,u=So().Pattern,c={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},h=new s(/<\!--/,/-->/),p=function(d,_){i.call(this,d,_),this._current_tag_name="";var T=new r(this._input).read_options(this._options),v=new u(this._input);if(this.__patterns={word:T.until(/[\n\r\t <]/),word_control_flow_close_excluded:T.until(/[\n\r\t <}]/),single_quote:T.until_after(/'/),double_quote:T.until_after(/"/),attribute:T.until(/[\n\r\t =>]|\/>/),element_name:T.until(/[\n\r\t >\/]/),angular_control_flow_start:v.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(/<!--/).until_after(/-->/),cdata:v.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:v.starting_with(/<!\[/).until_after(/]>/),processing:v.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var R=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(R).until_after(R)}};return p.prototype=new i,p.prototype._is_comment=function(d){return!1},p.prototype._is_opening=function(d){return d.type===c.TAG_OPEN||d.type===c.CONTROL_FLOW_OPEN},p.prototype._is_closing=function(d,_){return d.type===c.TAG_CLOSE&&_&&((d.text===">"||d.text==="/>")&&_.text[0]==="<"||d.text==="}}"&&_.text[0]==="{"&&_.text[1]==="{")||d.type===c.CONTROL_FLOW_CLOSE&&d.text==="}"&&_.text.endsWith("{")},p.prototype._reset=function(){this._current_tag_name=""},p.prototype._get_next_token=function(d,_){var T=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(c.EOF,""):(T=T||this._read_open_handlebars(v,_),T=T||this._read_attribute(v,d,_),T=T||this._read_close(v,_),T=T||this._read_script_and_style(v,d),T=T||this._read_control_flows(v,_),T=T||this._read_raw_content(v,d,_),T=T||this._read_content_word(v,_),T=T||this._read_comment_or_cdata(v),T=T||this._read_processing(v),T=T||this._read_open(v,_),T=T||this._create_token(c.UNKNOWN,this._input.next()),T)},p.prototype._read_comment_or_cdata=function(d){var _=null,T=null,v=null;if(d==="<"){var R=this._input.peek(1);R==="!"&&(T=this.__patterns.comment.read(),T?(v=h.get_directives(T),v&&v.ignore==="start"&&(T+=h.readIgnored(this._input))):T=this.__patterns.cdata.read()),T&&(_=this._create_token(c.COMMENT,T),_.directives=v)}return _},p.prototype._read_processing=function(d){var _=null,T=null,v=null;if(d==="<"){var R=this._input.peek(1);(R==="!"||R==="?")&&(T=this.__patterns.conditional_comment.read(),T=T||this.__patterns.processing.read()),T&&(_=this._create_token(c.COMMENT,T),_.directives=v)}return _},p.prototype._read_open=function(d,_){var T=null,v=null;return(!_||_.type===c.CONTROL_FLOW_OPEN)&&d==="<"&&(T=this._input.next(),this._input.peek()==="/"&&(T+=this._input.next()),T+=this.__patterns.element_name.read(),v=this._create_token(c.TAG_OPEN,T)),v},p.prototype._read_open_handlebars=function(d,_){var T=null,v=null;return(!_||_.type===c.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&d==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(T=this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars.read(),v=this._create_token(c.COMMENT,T)):(T=this.__patterns.handlebars_open.read(),v=this._create_token(c.TAG_OPEN,T))),v},p.prototype._read_control_flows=function(d,_){var T="",v=null;if(!this._options.templating.includes("angular"))return v;if(d==="@"){if(T=this.__patterns.angular_control_flow_start.read(),T==="")return v;for(var R=T.endsWith("(")?1:0,q=0;!(T.endsWith("{")&&R===q);){var K=this._input.next();if(K===null)break;K==="("?R++:K===")"&&q++,T+=K}v=this._create_token(c.CONTROL_FLOW_OPEN,T)}else d==="}"&&_&&_.type===c.CONTROL_FLOW_OPEN&&(T=this._input.next(),v=this._create_token(c.CONTROL_FLOW_CLOSE,T));return v},p.prototype._read_close=function(d,_){var T=null,v=null;return _&&_.type===c.TAG_OPEN&&(_.text[0]==="<"&&(d===">"||d==="/"&&this._input.peek(1)===">")?(T=this._input.next(),d==="/"&&(T+=this._input.next()),v=this._create_token(c.TAG_CLOSE,T)):_.text[0]==="{"&&d==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),v=this._create_token(c.TAG_CLOSE,"}}"))),v},p.prototype._read_attribute=function(d,_,T){var v=null,R="";if(T&&T.text[0]==="<")if(d==="=")v=this._create_token(c.EQUALS,this._input.next());else if(d==='"'||d==="'"){var q=this._input.next();d==='"'?q+=this.__patterns.double_quote.read():q+=this.__patterns.single_quote.read(),v=this._create_token(c.VALUE,q)}else R=this.__patterns.attribute.read(),R&&(_.type===c.EQUALS?v=this._create_token(c.VALUE,R):v=this._create_token(c.ATTRIBUTE,R));return v},p.prototype._is_content_unformatted=function(d){return this._options.void_elements.indexOf(d)===-1&&(this._options.content_unformatted.indexOf(d)!==-1||this._options.unformatted.indexOf(d)!==-1)},p.prototype._read_raw_content=function(d,_,T){var v="";if(T&&T.text[0]==="{")v=this.__patterns.handlebars_raw_close.read();else if(_.type===c.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var R=_.opened.text.substr(1).toLowerCase();this._is_content_unformatted(R)&&(v=this._input.readUntil(new RegExp("</"+R+"[\\n\\r\\t ]*?>","ig")))}return v?this._create_token(c.TEXT,v):null},p.prototype._read_script_and_style=function(d,_){if(_.type===c.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var T=_.opened.text.substr(1).toLowerCase();if(T==="script"||T==="style"){var v=this._read_comment_or_cdata(d);if(v)return v.type=c.TEXT,v;var R=this._input.readUntil(new RegExp("</"+T+"[\\n\\r\\t ]*?>","ig"));if(R)return this._create_token(c.TEXT,R)}}return null},p.prototype._read_content_word=function(d,_){var T="";return this._options.unformatted_content_delimiter&&d===this._options.unformatted_content_delimiter[0]&&(T=this.__patterns.unformatted_content_delimiter.read()),T||(T=_&&_.type===c.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),T?this._create_token(c.TEXT,T):null},wu.Tokenizer=p,wu.TOKEN=c,wu}var s0;function h2(){if(s0)return gh;s0=1;var i=Gv().Options,n=od().Output,s=a0().Tokenizer,r=a0().TOKEN,u=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,h=function(O,b){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=O.max_preserve_newlines,this.preserve_newlines=O.preserve_newlines,this._output=new n(O,b)};h.prototype.current_line_has_match=function(O){return this._output.current_line.has_match(O)},h.prototype.set_space_before_token=function(O,b){this._output.space_before_token=O,this._output.non_breaking_space=b},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(O){this._output.add_raw_token(O)},h.prototype.print_preserved_newlines=function(O){var b=0;O.type!==r.TEXT&&O.previous.type!==r.TEXT&&(b=O.newlines?1:0),this.preserve_newlines&&(b=O.newlines<this.max_preserve_newlines+1?O.newlines:this.max_preserve_newlines+1);for(var N=0;N<b;N++)this.print_newline(N>0);return b!==0},h.prototype.traverse_whitespace=function(O){return O.whitespace_before||O.newlines?(this.print_preserved_newlines(O)||(this._output.space_before_token=!0),!0):!1},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(O){this._output.add_new_line(O)},h.prototype.print_token=function(O){O.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(O.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(O){return O=this.indent_level+(O||0),O<1?"":this._output.get_indent_string(O)};var p=function(O){for(var b=null,N=O.next;N.type!==r.EOF&&O.closed!==N;){if(N.type===r.ATTRIBUTE&&N.text==="type"){N.next&&N.next.type===r.EQUALS&&N.next.next&&N.next.next.type===r.VALUE&&(b=N.next.next.text);break}N=N.next}return b},d=function(O,b){var N=null,P=null;return b.closed?(O==="script"?N="text/javascript":O==="style"&&(N="text/css"),N=p(b)||N,N.search("text/css")>-1?P="css":N.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?P="javascript":N.search(/(text|application|dojo)\/(x-)?(html)/)>-1?P="html":N.search(/test\/null/)>-1&&(P="null"),P):null};function _(O,b){return b.indexOf(O)!==-1}function T(O,b,N){this.parent=O||null,this.tag=b?b.tag_name:"",this.indent_level=N||0,this.parser_token=b||null}function v(O){this._printer=O,this._current_frame=null}v.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},v.prototype.record_tag=function(O){var b=new T(this._current_frame,O,this._printer.indent_level);this._current_frame=b},v.prototype._try_pop_frame=function(O){var b=null;return O&&(b=O.parser_token,this._printer.indent_level=O.indent_level,this._current_frame=O.parent),b},v.prototype._get_frame=function(O,b){for(var N=this._current_frame;N&&O.indexOf(N.tag)===-1;){if(b&&b.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},v.prototype.try_pop=function(O,b){var N=this._get_frame([O],b);return this._try_pop_frame(N)},v.prototype.indent_to_tag=function(O){var b=this._get_frame(O);b&&(this._printer.indent_level=b.indent_level)};function R(O,b,N,P){this._source_text=O||"",b=b||{},this._js_beautify=N,this._css_beautify=P,this._tag_stack=null;var z=new i(b,"html");this._options=z,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}R.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var O=this._source_text,b=this._options.eol;this._options.eol==="auto"&&(b=`
|
|
168
|
+
`&&I&&this._output.add_new_line()}var nt=this._output.get_code(q);return nt},ph.Beautifier=v,ph}var n0;function h2(){if(n0)return xu.exports;n0=1;var i=f2().Beautifier,n=Gv().Options;function s(r,u){var c=new i(r,u);return c.beautify()}return xu.exports=s,xu.exports.defaultOptions=function(){return new n},xu.exports}var Cu={exports:{}},gh={},mh={},i0;function Hv(){if(i0)return mh;i0=1;var i=cd().Options;function n(s){i.call(this,s,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return n.prototype=new i,mh.Options=n,mh}var wu={},a0;function s0(){if(a0)return wu;a0=1;var i=to().Tokenizer,n=to().TOKEN,s=hd().Directives,r=qv().TemplatablePattern,u=So().Pattern,c={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},h=new s(/<\!--/,/-->/),p=function(d,_){i.call(this,d,_),this._current_tag_name="";var T=new r(this._input).read_options(this._options),v=new u(this._input);if(this.__patterns={word:T.until(/[\n\r\t <]/),word_control_flow_close_excluded:T.until(/[\n\r\t <}]/),single_quote:T.until_after(/'/),double_quote:T.until_after(/"/),attribute:T.until(/[\n\r\t =>]|\/>/),element_name:T.until(/[\n\r\t >\/]/),angular_control_flow_start:v.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(/<!--/).until_after(/-->/),cdata:v.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:v.starting_with(/<!\[/).until_after(/]>/),processing:v.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var R=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(R).until_after(R)}};return p.prototype=new i,p.prototype._is_comment=function(d){return!1},p.prototype._is_opening=function(d){return d.type===c.TAG_OPEN||d.type===c.CONTROL_FLOW_OPEN},p.prototype._is_closing=function(d,_){return d.type===c.TAG_CLOSE&&_&&((d.text===">"||d.text==="/>")&&_.text[0]==="<"||d.text==="}}"&&_.text[0]==="{"&&_.text[1]==="{")||d.type===c.CONTROL_FLOW_CLOSE&&d.text==="}"&&_.text.endsWith("{")},p.prototype._reset=function(){this._current_tag_name=""},p.prototype._get_next_token=function(d,_){var T=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(c.EOF,""):(T=T||this._read_open_handlebars(v,_),T=T||this._read_attribute(v,d,_),T=T||this._read_close(v,_),T=T||this._read_script_and_style(v,d),T=T||this._read_control_flows(v,_),T=T||this._read_raw_content(v,d,_),T=T||this._read_content_word(v,_),T=T||this._read_comment_or_cdata(v),T=T||this._read_processing(v),T=T||this._read_open(v,_),T=T||this._create_token(c.UNKNOWN,this._input.next()),T)},p.prototype._read_comment_or_cdata=function(d){var _=null,T=null,v=null;if(d==="<"){var R=this._input.peek(1);R==="!"&&(T=this.__patterns.comment.read(),T?(v=h.get_directives(T),v&&v.ignore==="start"&&(T+=h.readIgnored(this._input))):T=this.__patterns.cdata.read()),T&&(_=this._create_token(c.COMMENT,T),_.directives=v)}return _},p.prototype._read_processing=function(d){var _=null,T=null,v=null;if(d==="<"){var R=this._input.peek(1);(R==="!"||R==="?")&&(T=this.__patterns.conditional_comment.read(),T=T||this.__patterns.processing.read()),T&&(_=this._create_token(c.COMMENT,T),_.directives=v)}return _},p.prototype._read_open=function(d,_){var T=null,v=null;return(!_||_.type===c.CONTROL_FLOW_OPEN)&&d==="<"&&(T=this._input.next(),this._input.peek()==="/"&&(T+=this._input.next()),T+=this.__patterns.element_name.read(),v=this._create_token(c.TAG_OPEN,T)),v},p.prototype._read_open_handlebars=function(d,_){var T=null,v=null;return(!_||_.type===c.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&d==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(T=this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars.read(),v=this._create_token(c.COMMENT,T)):(T=this.__patterns.handlebars_open.read(),v=this._create_token(c.TAG_OPEN,T))),v},p.prototype._read_control_flows=function(d,_){var T="",v=null;if(!this._options.templating.includes("angular"))return v;if(d==="@"){if(T=this.__patterns.angular_control_flow_start.read(),T==="")return v;for(var R=T.endsWith("(")?1:0,q=0;!(T.endsWith("{")&&R===q);){var K=this._input.next();if(K===null)break;K==="("?R++:K===")"&&q++,T+=K}v=this._create_token(c.CONTROL_FLOW_OPEN,T)}else d==="}"&&_&&_.type===c.CONTROL_FLOW_OPEN&&(T=this._input.next(),v=this._create_token(c.CONTROL_FLOW_CLOSE,T));return v},p.prototype._read_close=function(d,_){var T=null,v=null;return _&&_.type===c.TAG_OPEN&&(_.text[0]==="<"&&(d===">"||d==="/"&&this._input.peek(1)===">")?(T=this._input.next(),d==="/"&&(T+=this._input.next()),v=this._create_token(c.TAG_CLOSE,T)):_.text[0]==="{"&&d==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),v=this._create_token(c.TAG_CLOSE,"}}"))),v},p.prototype._read_attribute=function(d,_,T){var v=null,R="";if(T&&T.text[0]==="<")if(d==="=")v=this._create_token(c.EQUALS,this._input.next());else if(d==='"'||d==="'"){var q=this._input.next();d==='"'?q+=this.__patterns.double_quote.read():q+=this.__patterns.single_quote.read(),v=this._create_token(c.VALUE,q)}else R=this.__patterns.attribute.read(),R&&(_.type===c.EQUALS?v=this._create_token(c.VALUE,R):v=this._create_token(c.ATTRIBUTE,R));return v},p.prototype._is_content_unformatted=function(d){return this._options.void_elements.indexOf(d)===-1&&(this._options.content_unformatted.indexOf(d)!==-1||this._options.unformatted.indexOf(d)!==-1)},p.prototype._read_raw_content=function(d,_,T){var v="";if(T&&T.text[0]==="{")v=this.__patterns.handlebars_raw_close.read();else if(_.type===c.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var R=_.opened.text.substr(1).toLowerCase();this._is_content_unformatted(R)&&(v=this._input.readUntil(new RegExp("</"+R+"[\\n\\r\\t ]*?>","ig")))}return v?this._create_token(c.TEXT,v):null},p.prototype._read_script_and_style=function(d,_){if(_.type===c.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var T=_.opened.text.substr(1).toLowerCase();if(T==="script"||T==="style"){var v=this._read_comment_or_cdata(d);if(v)return v.type=c.TEXT,v;var R=this._input.readUntil(new RegExp("</"+T+"[\\n\\r\\t ]*?>","ig"));if(R)return this._create_token(c.TEXT,R)}}return null},p.prototype._read_content_word=function(d,_){var T="";return this._options.unformatted_content_delimiter&&d===this._options.unformatted_content_delimiter[0]&&(T=this.__patterns.unformatted_content_delimiter.read()),T||(T=_&&_.type===c.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),T?this._create_token(c.TEXT,T):null},wu.Tokenizer=p,wu.TOKEN=c,wu}var r0;function d2(){if(r0)return gh;r0=1;var i=Hv().Options,n=od().Output,s=s0().Tokenizer,r=s0().TOKEN,u=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,h=function(O,b){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=O.max_preserve_newlines,this.preserve_newlines=O.preserve_newlines,this._output=new n(O,b)};h.prototype.current_line_has_match=function(O){return this._output.current_line.has_match(O)},h.prototype.set_space_before_token=function(O,b){this._output.space_before_token=O,this._output.non_breaking_space=b},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(O){this._output.add_raw_token(O)},h.prototype.print_preserved_newlines=function(O){var b=0;O.type!==r.TEXT&&O.previous.type!==r.TEXT&&(b=O.newlines?1:0),this.preserve_newlines&&(b=O.newlines<this.max_preserve_newlines+1?O.newlines:this.max_preserve_newlines+1);for(var N=0;N<b;N++)this.print_newline(N>0);return b!==0},h.prototype.traverse_whitespace=function(O){return O.whitespace_before||O.newlines?(this.print_preserved_newlines(O)||(this._output.space_before_token=!0),!0):!1},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(O){this._output.add_new_line(O)},h.prototype.print_token=function(O){O.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(O.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(O){return O=this.indent_level+(O||0),O<1?"":this._output.get_indent_string(O)};var p=function(O){for(var b=null,N=O.next;N.type!==r.EOF&&O.closed!==N;){if(N.type===r.ATTRIBUTE&&N.text==="type"){N.next&&N.next.type===r.EQUALS&&N.next.next&&N.next.next.type===r.VALUE&&(b=N.next.next.text);break}N=N.next}return b},d=function(O,b){var N=null,P=null;return b.closed?(O==="script"?N="text/javascript":O==="style"&&(N="text/css"),N=p(b)||N,N.search("text/css")>-1?P="css":N.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?P="javascript":N.search(/(text|application|dojo)\/(x-)?(html)/)>-1?P="html":N.search(/test\/null/)>-1&&(P="null"),P):null};function _(O,b){return b.indexOf(O)!==-1}function T(O,b,N){this.parent=O||null,this.tag=b?b.tag_name:"",this.indent_level=N||0,this.parser_token=b||null}function v(O){this._printer=O,this._current_frame=null}v.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},v.prototype.record_tag=function(O){var b=new T(this._current_frame,O,this._printer.indent_level);this._current_frame=b},v.prototype._try_pop_frame=function(O){var b=null;return O&&(b=O.parser_token,this._printer.indent_level=O.indent_level,this._current_frame=O.parent),b},v.prototype._get_frame=function(O,b){for(var N=this._current_frame;N&&O.indexOf(N.tag)===-1;){if(b&&b.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},v.prototype.try_pop=function(O,b){var N=this._get_frame([O],b);return this._try_pop_frame(N)},v.prototype.indent_to_tag=function(O){var b=this._get_frame(O);b&&(this._printer.indent_level=b.indent_level)};function R(O,b,N,P){this._source_text=O||"",b=b||{},this._js_beautify=N,this._css_beautify=P,this._tag_stack=null;var z=new i(b,"html");this._options=z,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}R.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var O=this._source_text,b=this._options.eol;this._options.eol==="auto"&&(b=`
|
|
169
169
|
`,O&&u.test(O)&&(b=O.match(u)[0])),O=O.replace(c,`
|
|
170
170
|
`);var N=O.match(/^[\t ]*/)[0],P={text:"",type:""},z=new q(this._options),Z=new h(this._options,N),I=new s(O,this._options).tokenize();this._tag_stack=new v(Z);for(var C=null,y=I.next();y.type!==r.EOF;)y.type===r.TAG_OPEN||y.type===r.COMMENT?(C=this._handle_tag_open(Z,y,z,P,I),z=C):y.type===r.ATTRIBUTE||y.type===r.EQUALS||y.type===r.VALUE||y.type===r.TEXT&&!z.tag_complete?C=this._handle_inside_tag(Z,y,z,P):y.type===r.TAG_CLOSE?C=this._handle_tag_close(Z,y,z):y.type===r.TEXT?C=this._handle_text(Z,y,z):y.type===r.CONTROL_FLOW_OPEN?C=this._handle_control_flow_open(Z,y):y.type===r.CONTROL_FLOW_CLOSE?C=this._handle_control_flow_close(Z,y):Z.add_raw_token(y),P=C,y=I.next();var S=Z._output.get_code(b);return S},R.prototype._handle_control_flow_open=function(O,b){var N={text:b.text,type:b.type};return O.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),b.newlines?O.print_preserved_newlines(b):O.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),O.print_token(b),O.indent(),N},R.prototype._handle_control_flow_close=function(O,b){var N={text:b.text,type:b.type};return O.deindent(),b.newlines?O.print_preserved_newlines(b):O.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),O.print_token(b),N},R.prototype._handle_tag_close=function(O,b,N){var P={text:b.text,type:b.type};return O.alignment_size=0,N.tag_complete=!0,O.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),N.is_unformatted?O.add_raw_token(b):(N.tag_start_char==="<"&&(O.set_space_before_token(b.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&O.print_newline(!1)),O.print_token(b)),N.indent_content&&!(N.is_unformatted||N.is_content_unformatted)&&(O.indent(),N.indent_content=!1),!N.is_inline_element&&!(N.is_unformatted||N.is_content_unformatted)&&O.set_wrap_point(),P},R.prototype._handle_inside_tag=function(O,b,N,P){var z=N.has_wrapped_attrs,Z={text:b.text,type:b.type};return O.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),N.is_unformatted?O.add_raw_token(b):N.tag_start_char==="{"&&b.type===r.TEXT?O.print_preserved_newlines(b)?(b.newlines=0,O.add_raw_token(b)):O.print_token(b):(b.type===r.ATTRIBUTE?O.set_space_before_token(!0):(b.type===r.EQUALS||b.type===r.VALUE&&b.previous.type===r.EQUALS)&&O.set_space_before_token(!1),b.type===r.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(O.traverse_whitespace(b),z=z||b.newlines!==0),this._is_wrap_attributes_force&&N.attr_count>=this._options.wrap_attributes_min_attrs&&(P.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(O.print_newline(!1),z=!0)),O.print_token(b),z=z||O.previous_token_wrapped(),N.has_wrapped_attrs=z),Z},R.prototype._handle_text=function(O,b,N){var P={text:b.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(O,b,N):N.is_unformatted||N.is_content_unformatted?O.add_raw_token(b):(O.traverse_whitespace(b),O.print_token(b)),P},R.prototype._print_custom_beatifier_text=function(O,b,N){var P=this;if(b.text!==""){var z=b.text,Z,I=1,C="",y="";N.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?Z=this._js_beautify:N.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?Z=this._css_beautify:N.custom_beautifier_name==="html"&&(Z=function(at,it){var k=new R(at,it,P._js_beautify,P._css_beautify);return k.beautify()}),this._options.indent_scripts==="keep"?I=0:this._options.indent_scripts==="separate"&&(I=-O.indent_level);var S=O.get_full_indent(I);if(z=z.replace(/\n[ \t]*$/,""),N.custom_beautifier_name!=="html"&&z[0]==="<"&&z.match(/^(<!--|<!\[CDATA\[)/)){var m=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(z);if(!m){O.add_raw_token(b);return}C=S+m[1]+`
|
|
171
171
|
`,z=m[4],m[5]&&(y=S+m[5]),z=z.replace(/\n[ \t]*$/,""),(m[2]||m[3].indexOf(`
|
|
@@ -175,7 +175,7 @@ You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selec
|
|
|
175
175
|
`)),z=S+z.replace(/\n/g,`
|
|
176
176
|
`+S)}C&&(z?z=C+z+`
|
|
177
177
|
`+y:z=C+y),O.print_newline(!1),z&&(b.text=z,b.whitespace_before="",b.newlines=0,O.add_raw_token(b),O.print_newline(!0))}},R.prototype._handle_tag_open=function(O,b,N,P,z){var Z=this._get_tag_open_token(b);if((N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&b.type===r.TAG_OPEN&&!Z.is_start_tag?(O.add_raw_token(b),Z.start_tag_token=this._tag_stack.try_pop(Z.tag_name)):(O.traverse_whitespace(b),this._set_tag_position(O,b,Z,N,P),Z.is_inline_element||O.set_wrap_point(),O.print_token(b)),Z.is_start_tag&&this._is_wrap_attributes_force){var I=0,C;do C=z.peek(I),C.type===r.ATTRIBUTE&&(Z.attr_count+=1),I+=1;while(C.type!==r.EOF&&C.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(Z.alignment_size=b.text.length+1),!Z.tag_complete&&!Z.is_unformatted&&(O.alignment_size=Z.alignment_size),Z};var q=function(O,b,N){if(this.parent=b||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!N)this.tag_complete=!0;else{var P;this.tag_start_char=N.text[0],this.text=N.text,this.tag_start_char==="<"?(P=N.text.match(/^<([^\s>]*)/),this.tag_check=P?P[1]:""):(P=N.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=P?P[1]:"",(N.text.startsWith("{{#>")||N.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&N.next!==null?this.tag_check=N.next.text.split(" ")[0]:this.tag_check=N.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),N.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||N.closed&&N.closed.text==="/>";var z=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(z=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!O.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(z)))}};R.prototype._get_tag_open_token=function(O){var b=new q(this._options,this._tag_stack.get_parser_token(),O);return b.alignment_size=this._options.wrap_attributes_indent_size,b.is_end_tag=b.is_end_tag||_(b.tag_check,this._options.void_elements),b.is_empty_element=b.tag_complete||b.is_start_tag&&b.is_end_tag,b.is_unformatted=!b.tag_complete&&_(b.tag_check,this._options.unformatted),b.is_content_unformatted=!b.is_empty_element&&_(b.tag_check,this._options.content_unformatted),b.is_inline_element=_(b.tag_name,this._options.inline)||this._options.inline_custom_elements&&b.tag_name.includes("-")||b.tag_start_char==="{",b},R.prototype._set_tag_position=function(O,b,N,P,z){if(N.is_empty_element||(N.is_end_tag?N.start_tag_token=this._tag_stack.try_pop(N.tag_name):(this._do_optional_end_element(N)&&(N.is_inline_element||O.print_newline(!1)),this._tag_stack.record_tag(N),(N.tag_name==="script"||N.tag_name==="style")&&!(N.is_unformatted||N.is_content_unformatted)&&(N.custom_beautifier_name=d(N.tag_check,b)))),_(N.tag_check,this._options.extra_liners)&&(O.print_newline(!1),O._output.just_added_blankline()||O.print_newline(!0)),N.is_empty_element){if(N.tag_start_char==="{"&&N.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),N.indent_content=!0;var Z=O.current_line_has_match(/{{#if/);Z||O.print_newline(!1)}N.tag_name==="!--"&&z.type===r.TAG_CLOSE&&P.is_end_tag&&N.text.indexOf(`
|
|
178
|
-
`)===-1||(N.is_inline_element||N.is_unformatted||O.print_newline(!1),this._calcluate_parent_multiline(O,N))}else if(N.is_end_tag){var I=!1;I=N.start_tag_token&&N.start_tag_token.multiline_content,I=I||!N.is_inline_element&&!(P.is_inline_element||P.is_unformatted)&&!(z.type===r.TAG_CLOSE&&N.start_tag_token===P)&&z.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(I=!1),I&&O.print_newline(!1)}else N.indent_content=!N.custom_beautifier_name,N.tag_start_char==="<"&&(N.tag_name==="html"?N.indent_content=this._options.indent_inner_html:N.tag_name==="head"?N.indent_content=this._options.indent_head_inner_html:N.tag_name==="body"&&(N.indent_content=this._options.indent_body_inner_html)),!(N.is_inline_element||N.is_unformatted)&&(z.type!=="TK_CONTENT"||N.is_content_unformatted)&&O.print_newline(!1),this._calcluate_parent_multiline(O,N)},R.prototype._calcluate_parent_multiline=function(O,b){b.parent&&O._output.just_added_newline()&&!((b.is_inline_element||b.is_unformatted)&&b.parent.is_inline_element)&&(b.parent.multiline_content=!0)};var K=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],Q=["a","audio","del","ins","map","noscript","video"];return R.prototype._do_optional_end_element=function(O){var b=null;if(!(O.is_empty_element||!O.is_start_tag||!O.parent)){if(O.tag_name==="body")b=b||this._tag_stack.try_pop("head");else if(O.tag_name==="li")b=b||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(O.tag_name==="dd"||O.tag_name==="dt")b=b||this._tag_stack.try_pop("dt",["dl"]),b=b||this._tag_stack.try_pop("dd",["dl"]);else if(O.parent.tag_name==="p"&&K.indexOf(O.tag_name)!==-1){var N=O.parent.parent;(!N||Q.indexOf(N.tag_name)===-1)&&(b=b||this._tag_stack.try_pop("p"))}else O.tag_name==="rp"||O.tag_name==="rt"?(b=b||this._tag_stack.try_pop("rt",["ruby","rtc"]),b=b||this._tag_stack.try_pop("rp",["ruby","rtc"])):O.tag_name==="optgroup"?b=b||this._tag_stack.try_pop("optgroup",["select"]):O.tag_name==="option"?b=b||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):O.tag_name==="colgroup"?b=b||this._tag_stack.try_pop("caption",["table"]):O.tag_name==="thead"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"])):O.tag_name==="tbody"||O.tag_name==="tfoot"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"]),b=b||this._tag_stack.try_pop("thead",["table"]),b=b||this._tag_stack.try_pop("tbody",["table"])):O.tag_name==="tr"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"]),b=b||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(O.tag_name==="th"||O.tag_name==="td")&&(b=b||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),b=b||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return O.parent=this._tag_stack.get_parser_token(),b}},gh.Beautifier=R,gh}var r0;function d2(){if(r0)return Cu.exports;r0=1;var i=h2().Beautifier,n=Gv().Options;function s(r,u,c,h){var p=new i(r,u,c,h);return p.beautify()}return Cu.exports=s,Cu.exports.defaultOptions=function(){return new n},Cu.exports}var l0;function p2(){if(l0)return Lr;l0=1;var i=o2(),n=f2(),s=d2();function r(u,c,h,p){return h=h||i,p=p||n,s(u,c,h,p)}return r.defaultOptions=s.defaultOptions,Lr.js=i,Lr.css=n,Lr.html=r,Lr}var u0;function _2(){return u0||(u0=1,(function(i){function n(s,r,u){var c=function(h,p){return s.js_beautify(h,p)};return c.js=s.js_beautify,c.css=r.css_beautify,c.html=u.html_beautify,c.js_beautify=s.js_beautify,c.css_beautify=r.css_beautify,c.html_beautify=u.html_beautify,c}(function(s){var r=p2();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,s.exports=n(r,r,r)})(i)})(nh)),nh.exports}var g2=_2();const m2=no(g2);var y2=bt({name:"WhiteSpace",pattern:/\s+/,group:ke.SKIPPED}),v2=bt({name:"LineComment",pattern:/\/\/[^\n\r]*/,group:ke.SKIPPED}),E2=bt({name:"BlockComment",pattern:/\/\*[\s\S]*?\*\//,group:ke.SKIPPED}),_e=bt({name:"Identifier",pattern:/[a-zA-Z_$][a-zA-Z0-9_.[\]]*/}),Hv=bt({name:"QuotedIdentifier",pattern:/`([^`\\]|\\.)*`/}),Du=bt({name:"From",pattern:/from/i,longer_alt:_e}),Uh=bt({name:"To",pattern:/to/i,longer_alt:_e}),Ih=bt({name:"Transform",pattern:/transform/i,longer_alt:_e}),$v=bt({name:"Set",pattern:/set/i,longer_alt:_e}),Kv=bt({name:"Section",pattern:/section/i,longer_alt:_e}),Fv=bt({name:"Multiple",pattern:/multiple/i,longer_alt:_e}),Vv=bt({name:"Clone",pattern:/clone/i,longer_alt:_e}),Yv=bt({name:"Delete",pattern:/delete/i,longer_alt:_e}),Xv=bt({name:"Define",pattern:/define/i,longer_alt:_e}),Qv=bt({name:"Modify",pattern:/modify/i,longer_alt:_e}),zh=bt({name:"If",pattern:/if/i,longer_alt:_e}),Zv=bt({name:"Else",pattern:/else/i,longer_alt:_e}),Wv=bt({name:"True",pattern:/true/i,longer_alt:_e}),Jv=bt({name:"False",pattern:/false/i,longer_alt:_e}),tE=bt({name:"Null",pattern:/null/i,longer_alt:_e}),eE=bt({name:"Return",pattern:/return/i,longer_alt:_e}),nE=bt({name:"Unsafe",pattern:/unsafe/i,longer_alt:_e}),iE=bt({name:"EqualsEquals",pattern:/==/}),aE=bt({name:"EqualsEqualsEquals",pattern:/===/}),sE=bt({name:"NotEquals",pattern:/!=/}),rE=bt({name:"NotEqualsEquals",pattern:/!==/}),lE=bt({name:"LessThanOrEqual",pattern:/<=/}),uE=bt({name:"GreaterThanOrEqual",pattern:/>=/}),oE=bt({name:"LessThan",pattern:/</}),cE=bt({name:"GreaterThan",pattern:/>/}),fE=bt({name:"And",pattern:/&&/}),hE=bt({name:"Or",pattern:/\|\|/}),dE=bt({name:"Not",pattern:/!/}),Ts=bt({name:"Equals",pattern:/=/}),pE=bt({name:"Plus",pattern:/\+/}),Bh=bt({name:"Minus",pattern:/-/}),_E=bt({name:"Times",pattern:/\*/}),gE=bt({name:"Divide",pattern:/\//}),Fn=bt({name:"LParen",pattern:/\(/}),vi=bt({name:"RParen",pattern:/\)/}),Pu=bt({name:"Comma",pattern:/,/}),mE=bt({name:"StringLiteral",pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/}),yE=bt({name:"NumericLiteral",pattern:/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/}),vE=[y2,v2,E2,Du,Uh,Ih,$v,Kv,Fv,Vv,Yv,Xv,Qv,zh,Zv,Wv,Jv,tE,eE,nE,aE,iE,rE,sE,lE,uE,fE,hE,Ts,oE,cE,dE,pE,Bh,_E,gE,Fn,vi,Pu,mE,yE,Hv,_e],b2=new ke(vE),T2=class extends sL{constructor(){super(vE),this.performSelfAnalysis()}query=this.RULE("query",()=>{this.CONSUME(Du),this.SUBRULE(this.typeFormat,{LABEL:"sourceType"}),this.CONSUME(Uh),this.SUBRULE1(this.typeFormat,{LABEL:"targetType"}),this.OPTION(()=>{this.CONSUME(Ih),this.OPTION1(()=>{this.CONSUME(nE)}),this.MANY(()=>{this.SUBRULE(this.action)})})});typeFormat=this.RULE("typeFormat",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"name"}),this.OPTION(()=>{this.CONSUME(Fn),this.MANY_SEP({SEP:Pu,DEF:()=>{this.SUBRULE(this.typeFormatParameter,{LABEL:"params"})}}),this.CONSUME(vi)})});typeFormatParameter=this.RULE("typeFormatParameter",()=>{this.OR([{GATE:()=>this.LA(2).tokenType===Ts,ALT:()=>this.SUBRULE(this.namedParameter)},{ALT:()=>this.SUBRULE(this.literal)}])});namedParameter=this.RULE("namedParameter",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"key"}),this.CONSUME(Ts),this.SUBRULE(this.literal,{LABEL:"value"})});anyIdentifier=this.RULE("anyIdentifier",()=>{this.OR([{ALT:()=>this.CONSUME(_e)},{ALT:()=>this.CONSUME(Hv)}])});literal=this.RULE("literal",()=>{this.OR([{ALT:()=>this.CONSUME(mE)},{ALT:()=>this.CONSUME(yE)},{ALT:()=>this.CONSUME(Wv)},{ALT:()=>this.CONSUME(Jv)},{ALT:()=>this.CONSUME(tE)}])});action=this.RULE("action",()=>{this.OR([{ALT:()=>this.SUBRULE(this.setRule)},{ALT:()=>this.SUBRULE(this.modifyRule)},{ALT:()=>this.SUBRULE(this.sectionRule)},{ALT:()=>this.SUBRULE(this.cloneRule)},{ALT:()=>this.SUBRULE(this.deleteRule)},{ALT:()=>this.SUBRULE(this.ifAction)},{ALT:()=>this.SUBRULE(this.defineRule)},{ALT:()=>this.SUBRULE(this.returnRule)}])});returnRule=this.RULE("returnRule",()=>{this.CONSUME(eE),this.SUBRULE(this.expression,{LABEL:"expr"})});deleteRule=this.RULE("deleteRule",()=>{this.CONSUME(Yv),this.SUBRULE(this.anyIdentifier,{LABEL:"field"})});ifAction=this.RULE("ifAction",()=>{this.CONSUME(zh),this.CONSUME(Fn),this.SUBRULE(this.expression,{LABEL:"condition"}),this.CONSUME(vi),this.CONSUME2(Fn),this.MANY(()=>{this.SUBRULE(this.action,{LABEL:"thenActions"})}),this.CONSUME2(vi),this.OPTION(()=>{this.CONSUME(Zv),this.CONSUME3(Fn),this.MANY2(()=>{this.SUBRULE2(this.action,{LABEL:"elseActions"})}),this.CONSUME3(vi)})});cloneRule=this.RULE("cloneRule",()=>{this.CONSUME(Vv),this.OPTION(()=>{this.CONSUME(Fn),this.MANY_SEP({SEP:Pu,DEF:()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"fields"})}}),this.CONSUME(vi)})});setRule=this.RULE("setRule",()=>{this.CONSUME($v),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ts),this.SUBRULE(this.expression,{LABEL:"right"})});modifyRule=this.RULE("modifyRule",()=>{this.CONSUME(Qv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ts),this.SUBRULE(this.expression,{LABEL:"right"})});expression=this.RULE("expression",()=>{this.SUBRULE(this.logicalOr)});logicalOr=this.RULE("logicalOr",()=>{this.SUBRULE(this.logicalAnd,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(hE),this.SUBRULE1(this.logicalAnd,{LABEL:"rhs"})})});logicalAnd=this.RULE("logicalAnd",()=>{this.SUBRULE(this.comparison,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(fE),this.SUBRULE1(this.comparison,{LABEL:"rhs"})})});comparison=this.RULE("comparison",()=>{this.SUBRULE(this.addition,{LABEL:"lhs"}),this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(iE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(aE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(sE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(rE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(lE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(uE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(oE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(cE,{LABEL:"ops"})}]),this.SUBRULE1(this.addition,{LABEL:"rhs"})})});addition=this.RULE("addition",()=>{this.SUBRULE(this.multiplication,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(pE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Bh,{LABEL:"ops"})}]),this.SUBRULE1(this.multiplication,{LABEL:"rhs"})})});multiplication=this.RULE("multiplication",()=>{this.SUBRULE(this.unaryExpression,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(_E,{LABEL:"ops"})},{ALT:()=>this.CONSUME(gE,{LABEL:"ops"})}]),this.SUBRULE1(this.unaryExpression,{LABEL:"rhs"})})});unaryExpression=this.RULE("unaryExpression",()=>{this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(Bh,{LABEL:"sign"})},{ALT:()=>this.CONSUME(dE,{LABEL:"sign"})}])}),this.SUBRULE(this.atomic)});atomic=this.RULE("atomic",()=>{this.OR([{ALT:()=>this.SUBRULE(this.literal)},{GATE:()=>this.LA(2).tokenType===Fn,ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.anyIdentifier)},{ALT:()=>{this.CONSUME(Fn),this.SUBRULE(this.expression),this.CONSUME(vi)}}])});functionCall=this.RULE("functionCall",()=>{this.OR([{ALT:()=>this.CONSUME(_e,{LABEL:"name"})},{ALT:()=>this.CONSUME(zh,{LABEL:"name"})}]),this.CONSUME(Fn),this.MANY_SEP({SEP:Pu,DEF:()=>{this.SUBRULE(this.expression,{LABEL:"args"})}}),this.CONSUME(vi)});sectionRule=this.RULE("sectionRule",()=>{this.CONSUME(Kv),this.OPTION(()=>{this.CONSUME(Fv)}),this.SUBRULE(this.anyIdentifier,{LABEL:"sectionName"}),this.CONSUME(Fn),this.OPTION1(()=>{this.CONSUME(Du,{LABEL:"subqueryFrom"}),this.SUBRULE(this.typeFormat,{LABEL:"subquerySourceType"}),this.CONSUME(Uh,{LABEL:"subqueryTo"}),this.SUBRULE1(this.typeFormat,{LABEL:"subqueryTargetType"}),this.OPTION2(()=>{this.CONSUME(Ih,{LABEL:"subqueryTransform"})})}),this.MANY(()=>{this.SUBRULE(this.action)}),this.CONSUME(vi),this.OPTION3(()=>{this.CONSUME1(Du,{LABEL:"followFrom"}),this.SUBRULE2(this.anyIdentifier,{LABEL:"followPath"})})});defineRule=this.RULE("defineRule",()=>{this.CONSUME(Xv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ts),this.SUBRULE(this.expression,{LABEL:"right"})})},Br=new T2,S2={substring:i=>{if(i.length<2)throw new Error("substring() requires at least 2 arguments (string, start, [length])");let[n,s,r]=i;return r!==void 0?`String(${n}).slice(${s}, (${s}) + (${r}))`:`String(${n}).slice(${s})`},if:i=>{if(i.length!==3)throw new Error("if() requires exactly 3 arguments (condition, trueValue, falseValue)");let[n,s,r]=i;return`((${n}) ? (${s}) : (${r}))`},text:i=>{if(i.length!==1)throw new Error("text() requires exactly 1 argument (string or number)");let[n]=i;return`String(${n})`},replace:i=>{if(i.length!==3)throw new Error("replace() requires exactly 3 arguments (string, search, replacement)");let[n,s,r]=i;return`String(${n}).replace(${s}, ${r})`},number:i=>{if(i.length!==1)throw new Error("number() requires exactly 1 argument (string)");let[n]=i;return`Number(${n})`},extractnumber:i=>{if(i.length!==1)throw new Error("extractNumber() requires exactly 1 argument (string)");let[n]=i;return`(() => { const match = String(${n}).match(/\\d+(\\.\\d+)?/); return match ? Number(match[0]) : null; })()`},uppercase:i=>{if(i.length!==1)throw new Error("uppercase() requires exactly 1 argument (string)");let[n]=i;return`String(${n}).toUpperCase()`},lowercase:i=>{if(i.length!==1)throw new Error("lowercase() requires exactly 1 argument (string)");let[n]=i;return`String(${n}).toLowerCase()`},xmlnode:i=>{if(i.length<1)throw new Error("xmlnode() requires at least 1 argument (string)");let n=i[0],s=[...i.slice(1)],r="";if(s.length>0){let u=[...s];u=[...Array(Math.ceil(u.length/2))].map(()=>u.splice(0,2)).map(([c,h])=>{let p=c;return c.startsWith('"')||c.startsWith("'")?p=`"$${c.slice(1,-1)}"`:p=`["$"+${c}]`,`${p}:${h||"null"}`}),r=","+u.join(",")}else return n;return`{_:${n}${r}}`},split:i=>{if(i.length<1)throw new Error("split() requires at least 1 argument (string)");let[n,s,r]=i,u=s!==void 0?s:'""',c=r!==void 0?`, ${r}`:"";return`String(${n}).split(${u}${c})`},to_base64:i=>{if(i.length!==1)throw new Error("to_base64() requires exactly 1 argument (string)");let[n]=i;return`(typeof btoa === 'function' ? btoa(unescape(encodeURIComponent(String(${n})))) : Buffer.from(String(${n}), 'utf-8').toString('base64'))`},from_base64:i=>{if(i.length!==1)throw new Error("from_base64() requires exactly 1 argument (string)");let[n]=i;return`(typeof atob === 'function' ? decodeURIComponent(escape(atob(String(${n})))) : Buffer.from(String(${n}), 'base64').toString('utf-8'))`},aslist:i=>{if(i.length!==1)throw new Error("aslist() requires exactly 1 argument");let[n]=i;return`(Array.isArray(${n}) ? ${n} : (${n} == null ? [] : [${n}]))`},spreadsheet:i=>{if(i.length!==1)throw new Error("spreadsheet() requires exactly 1 argument");let[n]=i;return`((data)=>{
|
|
178
|
+
`)===-1||(N.is_inline_element||N.is_unformatted||O.print_newline(!1),this._calcluate_parent_multiline(O,N))}else if(N.is_end_tag){var I=!1;I=N.start_tag_token&&N.start_tag_token.multiline_content,I=I||!N.is_inline_element&&!(P.is_inline_element||P.is_unformatted)&&!(z.type===r.TAG_CLOSE&&N.start_tag_token===P)&&z.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(I=!1),I&&O.print_newline(!1)}else N.indent_content=!N.custom_beautifier_name,N.tag_start_char==="<"&&(N.tag_name==="html"?N.indent_content=this._options.indent_inner_html:N.tag_name==="head"?N.indent_content=this._options.indent_head_inner_html:N.tag_name==="body"&&(N.indent_content=this._options.indent_body_inner_html)),!(N.is_inline_element||N.is_unformatted)&&(z.type!=="TK_CONTENT"||N.is_content_unformatted)&&O.print_newline(!1),this._calcluate_parent_multiline(O,N)},R.prototype._calcluate_parent_multiline=function(O,b){b.parent&&O._output.just_added_newline()&&!((b.is_inline_element||b.is_unformatted)&&b.parent.is_inline_element)&&(b.parent.multiline_content=!0)};var K=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],Q=["a","audio","del","ins","map","noscript","video"];return R.prototype._do_optional_end_element=function(O){var b=null;if(!(O.is_empty_element||!O.is_start_tag||!O.parent)){if(O.tag_name==="body")b=b||this._tag_stack.try_pop("head");else if(O.tag_name==="li")b=b||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(O.tag_name==="dd"||O.tag_name==="dt")b=b||this._tag_stack.try_pop("dt",["dl"]),b=b||this._tag_stack.try_pop("dd",["dl"]);else if(O.parent.tag_name==="p"&&K.indexOf(O.tag_name)!==-1){var N=O.parent.parent;(!N||Q.indexOf(N.tag_name)===-1)&&(b=b||this._tag_stack.try_pop("p"))}else O.tag_name==="rp"||O.tag_name==="rt"?(b=b||this._tag_stack.try_pop("rt",["ruby","rtc"]),b=b||this._tag_stack.try_pop("rp",["ruby","rtc"])):O.tag_name==="optgroup"?b=b||this._tag_stack.try_pop("optgroup",["select"]):O.tag_name==="option"?b=b||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):O.tag_name==="colgroup"?b=b||this._tag_stack.try_pop("caption",["table"]):O.tag_name==="thead"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"])):O.tag_name==="tbody"||O.tag_name==="tfoot"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"]),b=b||this._tag_stack.try_pop("thead",["table"]),b=b||this._tag_stack.try_pop("tbody",["table"])):O.tag_name==="tr"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"]),b=b||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(O.tag_name==="th"||O.tag_name==="td")&&(b=b||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),b=b||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return O.parent=this._tag_stack.get_parser_token(),b}},gh.Beautifier=R,gh}var l0;function p2(){if(l0)return Cu.exports;l0=1;var i=d2().Beautifier,n=Hv().Options;function s(r,u,c,h){var p=new i(r,u,c,h);return p.beautify()}return Cu.exports=s,Cu.exports.defaultOptions=function(){return new n},Cu.exports}var u0;function _2(){if(u0)return Lr;u0=1;var i=c2(),n=h2(),s=p2();function r(u,c,h,p){return h=h||i,p=p||n,s(u,c,h,p)}return r.defaultOptions=s.defaultOptions,Lr.js=i,Lr.css=n,Lr.html=r,Lr}var o0;function g2(){return o0||(o0=1,(function(i){function n(s,r,u){var c=function(h,p){return s.js_beautify(h,p)};return c.js=s.js_beautify,c.css=r.css_beautify,c.html=u.html_beautify,c.js_beautify=s.js_beautify,c.css_beautify=r.css_beautify,c.html_beautify=u.html_beautify,c}(function(s){var r=_2();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,s.exports=n(r,r,r)})(i)})(nh)),nh.exports}var m2=g2();const y2=no(m2);var v2=bt({name:"WhiteSpace",pattern:/\s+/,group:ke.SKIPPED}),E2=bt({name:"LineComment",pattern:/\/\/[^\n\r]*/,group:ke.SKIPPED}),b2=bt({name:"BlockComment",pattern:/\/\*[\s\S]*?\*\//,group:ke.SKIPPED}),_e=bt({name:"Identifier",pattern:/[a-zA-Z_$][a-zA-Z0-9_.[\]]*/}),$v=bt({name:"QuotedIdentifier",pattern:/`([^`\\]|\\.)*`/}),Du=bt({name:"From",pattern:/from/i,longer_alt:_e}),Uh=bt({name:"To",pattern:/to/i,longer_alt:_e}),Ih=bt({name:"Transform",pattern:/transform/i,longer_alt:_e}),Kv=bt({name:"Set",pattern:/set/i,longer_alt:_e}),Fv=bt({name:"Section",pattern:/section/i,longer_alt:_e}),Vv=bt({name:"Multiple",pattern:/multiple/i,longer_alt:_e}),Yv=bt({name:"Clone",pattern:/clone/i,longer_alt:_e}),Xv=bt({name:"Delete",pattern:/delete/i,longer_alt:_e}),Qv=bt({name:"Define",pattern:/define/i,longer_alt:_e}),Zv=bt({name:"Modify",pattern:/modify/i,longer_alt:_e}),zh=bt({name:"If",pattern:/if/i,longer_alt:_e}),Wv=bt({name:"Else",pattern:/else/i,longer_alt:_e}),Jv=bt({name:"True",pattern:/true/i,longer_alt:_e}),tE=bt({name:"False",pattern:/false/i,longer_alt:_e}),eE=bt({name:"Null",pattern:/null/i,longer_alt:_e}),nE=bt({name:"Return",pattern:/return/i,longer_alt:_e}),iE=bt({name:"Unsafe",pattern:/unsafe/i,longer_alt:_e}),aE=bt({name:"EqualsEquals",pattern:/==/}),sE=bt({name:"EqualsEqualsEquals",pattern:/===/}),rE=bt({name:"NotEquals",pattern:/!=/}),lE=bt({name:"NotEqualsEquals",pattern:/!==/}),uE=bt({name:"LessThanOrEqual",pattern:/<=/}),oE=bt({name:"GreaterThanOrEqual",pattern:/>=/}),cE=bt({name:"LessThan",pattern:/</}),fE=bt({name:"GreaterThan",pattern:/>/}),hE=bt({name:"And",pattern:/&&/}),dE=bt({name:"Or",pattern:/\|\|/}),pE=bt({name:"Not",pattern:/!/}),Ts=bt({name:"Equals",pattern:/=/}),_E=bt({name:"Plus",pattern:/\+/}),Bh=bt({name:"Minus",pattern:/-/}),gE=bt({name:"Times",pattern:/\*/}),mE=bt({name:"Divide",pattern:/\//}),Fn=bt({name:"LParen",pattern:/\(/}),vi=bt({name:"RParen",pattern:/\)/}),Pu=bt({name:"Comma",pattern:/,/}),yE=bt({name:"StringLiteral",pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/}),vE=bt({name:"NumericLiteral",pattern:/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/}),EE=[v2,E2,b2,Du,Uh,Ih,Kv,Fv,Vv,Yv,Xv,Qv,Zv,zh,Wv,Jv,tE,eE,nE,iE,sE,aE,lE,rE,uE,oE,hE,dE,Ts,cE,fE,pE,_E,Bh,gE,mE,Fn,vi,Pu,yE,vE,$v,_e],T2=new ke(EE),S2=class extends rL{constructor(){super(EE),this.performSelfAnalysis()}query=this.RULE("query",()=>{this.CONSUME(Du),this.SUBRULE(this.typeFormat,{LABEL:"sourceType"}),this.CONSUME(Uh),this.SUBRULE1(this.typeFormat,{LABEL:"targetType"}),this.OPTION(()=>{this.CONSUME(Ih),this.OPTION1(()=>{this.CONSUME(iE)}),this.MANY(()=>{this.SUBRULE(this.action)})})});typeFormat=this.RULE("typeFormat",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"name"}),this.OPTION(()=>{this.CONSUME(Fn),this.MANY_SEP({SEP:Pu,DEF:()=>{this.SUBRULE(this.typeFormatParameter,{LABEL:"params"})}}),this.CONSUME(vi)})});typeFormatParameter=this.RULE("typeFormatParameter",()=>{this.OR([{GATE:()=>this.LA(2).tokenType===Ts,ALT:()=>this.SUBRULE(this.namedParameter)},{ALT:()=>this.SUBRULE(this.literal)}])});namedParameter=this.RULE("namedParameter",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"key"}),this.CONSUME(Ts),this.SUBRULE(this.literal,{LABEL:"value"})});anyIdentifier=this.RULE("anyIdentifier",()=>{this.OR([{ALT:()=>this.CONSUME(_e)},{ALT:()=>this.CONSUME($v)}])});literal=this.RULE("literal",()=>{this.OR([{ALT:()=>this.CONSUME(yE)},{ALT:()=>this.CONSUME(vE)},{ALT:()=>this.CONSUME(Jv)},{ALT:()=>this.CONSUME(tE)},{ALT:()=>this.CONSUME(eE)}])});action=this.RULE("action",()=>{this.OR([{ALT:()=>this.SUBRULE(this.setRule)},{ALT:()=>this.SUBRULE(this.modifyRule)},{ALT:()=>this.SUBRULE(this.sectionRule)},{ALT:()=>this.SUBRULE(this.cloneRule)},{ALT:()=>this.SUBRULE(this.deleteRule)},{ALT:()=>this.SUBRULE(this.ifAction)},{ALT:()=>this.SUBRULE(this.defineRule)},{ALT:()=>this.SUBRULE(this.returnRule)}])});returnRule=this.RULE("returnRule",()=>{this.CONSUME(nE),this.SUBRULE(this.expression,{LABEL:"expr"})});deleteRule=this.RULE("deleteRule",()=>{this.CONSUME(Xv),this.SUBRULE(this.anyIdentifier,{LABEL:"field"})});ifAction=this.RULE("ifAction",()=>{this.CONSUME(zh),this.CONSUME(Fn),this.SUBRULE(this.expression,{LABEL:"condition"}),this.CONSUME(vi),this.CONSUME2(Fn),this.MANY(()=>{this.SUBRULE(this.action,{LABEL:"thenActions"})}),this.CONSUME2(vi),this.OPTION(()=>{this.CONSUME(Wv),this.CONSUME3(Fn),this.MANY2(()=>{this.SUBRULE2(this.action,{LABEL:"elseActions"})}),this.CONSUME3(vi)})});cloneRule=this.RULE("cloneRule",()=>{this.CONSUME(Yv),this.OPTION(()=>{this.CONSUME(Fn),this.MANY_SEP({SEP:Pu,DEF:()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"fields"})}}),this.CONSUME(vi)})});setRule=this.RULE("setRule",()=>{this.CONSUME(Kv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ts),this.SUBRULE(this.expression,{LABEL:"right"})});modifyRule=this.RULE("modifyRule",()=>{this.CONSUME(Zv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ts),this.SUBRULE(this.expression,{LABEL:"right"})});expression=this.RULE("expression",()=>{this.SUBRULE(this.logicalOr)});logicalOr=this.RULE("logicalOr",()=>{this.SUBRULE(this.logicalAnd,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(dE),this.SUBRULE1(this.logicalAnd,{LABEL:"rhs"})})});logicalAnd=this.RULE("logicalAnd",()=>{this.SUBRULE(this.comparison,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(hE),this.SUBRULE1(this.comparison,{LABEL:"rhs"})})});comparison=this.RULE("comparison",()=>{this.SUBRULE(this.addition,{LABEL:"lhs"}),this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(aE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(sE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(rE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(lE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(uE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(oE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(cE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(fE,{LABEL:"ops"})}]),this.SUBRULE1(this.addition,{LABEL:"rhs"})})});addition=this.RULE("addition",()=>{this.SUBRULE(this.multiplication,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(_E,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Bh,{LABEL:"ops"})}]),this.SUBRULE1(this.multiplication,{LABEL:"rhs"})})});multiplication=this.RULE("multiplication",()=>{this.SUBRULE(this.unaryExpression,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(gE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(mE,{LABEL:"ops"})}]),this.SUBRULE1(this.unaryExpression,{LABEL:"rhs"})})});unaryExpression=this.RULE("unaryExpression",()=>{this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(Bh,{LABEL:"sign"})},{ALT:()=>this.CONSUME(pE,{LABEL:"sign"})}])}),this.SUBRULE(this.atomic)});atomic=this.RULE("atomic",()=>{this.OR([{ALT:()=>this.SUBRULE(this.literal)},{GATE:()=>this.LA(2).tokenType===Fn,ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.anyIdentifier)},{ALT:()=>{this.CONSUME(Fn),this.SUBRULE(this.expression),this.CONSUME(vi)}}])});functionCall=this.RULE("functionCall",()=>{this.OR([{ALT:()=>this.CONSUME(_e,{LABEL:"name"})},{ALT:()=>this.CONSUME(zh,{LABEL:"name"})}]),this.CONSUME(Fn),this.MANY_SEP({SEP:Pu,DEF:()=>{this.SUBRULE(this.expression,{LABEL:"args"})}}),this.CONSUME(vi)});sectionRule=this.RULE("sectionRule",()=>{this.CONSUME(Fv),this.OPTION(()=>{this.CONSUME(Vv)}),this.SUBRULE(this.anyIdentifier,{LABEL:"sectionName"}),this.CONSUME(Fn),this.OPTION1(()=>{this.CONSUME(Du,{LABEL:"subqueryFrom"}),this.SUBRULE(this.typeFormat,{LABEL:"subquerySourceType"}),this.CONSUME(Uh,{LABEL:"subqueryTo"}),this.SUBRULE1(this.typeFormat,{LABEL:"subqueryTargetType"}),this.OPTION2(()=>{this.CONSUME(Ih,{LABEL:"subqueryTransform"})})}),this.MANY(()=>{this.SUBRULE(this.action)}),this.CONSUME(vi),this.OPTION3(()=>{this.CONSUME1(Du,{LABEL:"followFrom"}),this.SUBRULE2(this.anyIdentifier,{LABEL:"followPath"})})});defineRule=this.RULE("defineRule",()=>{this.CONSUME(Qv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ts),this.SUBRULE(this.expression,{LABEL:"right"})})},Br=new S2,A2={substring:i=>{if(i.length<2)throw new Error("substring() requires at least 2 arguments (string, start, [length])");let[n,s,r]=i;return r!==void 0?`String(${n}).slice(${s}, (${s}) + (${r}))`:`String(${n}).slice(${s})`},if:i=>{if(i.length!==3)throw new Error("if() requires exactly 3 arguments (condition, trueValue, falseValue)");let[n,s,r]=i;return`((${n}) ? (${s}) : (${r}))`},text:i=>{if(i.length!==1)throw new Error("text() requires exactly 1 argument (string or number)");let[n]=i;return`String(${n})`},replace:i=>{if(i.length!==3)throw new Error("replace() requires exactly 3 arguments (string, search, replacement)");let[n,s,r]=i;return`String(${n}).replace(${s}, ${r})`},number:i=>{if(i.length!==1)throw new Error("number() requires exactly 1 argument (string)");let[n]=i;return`Number(${n})`},extractnumber:i=>{if(i.length!==1)throw new Error("extractNumber() requires exactly 1 argument (string)");let[n]=i;return`(() => { const match = String(${n}).match(/\\d+(\\.\\d+)?/); return match ? Number(match[0]) : null; })()`},uppercase:i=>{if(i.length!==1)throw new Error("uppercase() requires exactly 1 argument (string)");let[n]=i;return`String(${n}).toUpperCase()`},lowercase:i=>{if(i.length!==1)throw new Error("lowercase() requires exactly 1 argument (string)");let[n]=i;return`String(${n}).toLowerCase()`},xmlnode:i=>{if(i.length<1)throw new Error("xmlnode() requires at least 1 argument (string)");let n=i[0],s=[...i.slice(1)],r="";if(s.length>0){let u=[...s];u=[...Array(Math.ceil(u.length/2))].map(()=>u.splice(0,2)).map(([c,h])=>{let p=c;return c.startsWith('"')||c.startsWith("'")?p=`"$${c.slice(1,-1)}"`:p=`["$"+${c}]`,`${p}:${h||"null"}`}),r=","+u.join(",")}else return n;return`{_:${n}${r}}`},split:i=>{if(i.length<1)throw new Error("split() requires at least 1 argument (string)");let[n,s,r]=i,u=s!==void 0?s:'""',c=r!==void 0?`, ${r}`:"";return`String(${n}).split(${u}${c})`},to_base64:i=>{if(i.length!==1)throw new Error("to_base64() requires exactly 1 argument (string)");let[n]=i;return`(typeof btoa === 'function' ? btoa(unescape(encodeURIComponent(String(${n})))) : Buffer.from(String(${n}), 'utf-8').toString('base64'))`},from_base64:i=>{if(i.length!==1)throw new Error("from_base64() requires exactly 1 argument (string)");let[n]=i;return`(typeof atob === 'function' ? decodeURIComponent(escape(atob(String(${n})))) : Buffer.from(String(${n}), 'base64').toString('utf-8'))`},aslist:i=>{if(i.length!==1)throw new Error("aslist() requires exactly 1 argument");let[n]=i;return`(Array.isArray(${n}) ? ${n} : (${n} == null ? [] : [${n}]))`},spreadsheet:i=>{if(i.length!==1)throw new Error("spreadsheet() requires exactly 1 argument");let[n]=i;return`((data)=>{
|
|
179
179
|
const spreadsheet = Array.isArray(data) ? data : (data == null ? [] : [data]);
|
|
180
180
|
const out = [];
|
|
181
181
|
const titles = [];
|
|
@@ -195,7 +195,7 @@ You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selec
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
return out;
|
|
198
|
-
})(${n})`}},
|
|
198
|
+
})(${n})`}},c0=class{sourceRoot={type:"object",properties:{}};targetRoot={type:"object",properties:{}};sourceStack=[this.sourceRoot];targetStack=[this.targetRoot];getCurrentSource(){return this.sourceStack[this.sourceStack.length-1]}getCurrentTarget(){return this.targetStack[this.targetStack.length-1]}recordAccess(i,n="any",s=!1){let r=s?this.getCurrentTarget():this.getCurrentSource();this.setInNode(r,i,n)}recordAssignment(i,n="any"){this.setInNode(this.getCurrentTarget(),i,n)}recordClone(i){let n=this.getCurrentTarget();i?i.forEach(s=>{this.setInNode(this.getCurrentSource(),s,"any"),this.setInNode(n,s,"any")}):n.isOpen=!0}recordDelete(i){let n=this.getCurrentTarget();this.deleteInNode(n,i)}pushSection(i,n,s){n!=="parent"&&this.setInNode(this.getCurrentSource(),n,s?"array":"object");let r={type:s?"array":"object"};s?r.items={type:"object",properties:{}}:r.properties={};let u={type:"object",properties:{}};this.setInNodeExplicit(this.getCurrentTarget(),i,r),this.targetStack.push(s?r.items:r),this.sourceStack.push(u)}popSection(i,n){let s=this.sourceStack.pop();this.targetStack.pop();let r=this.getCurrentSource();if(i!=="parent"){let u=this.getOrSetNode(r,i,n?"array":"object"),c=n?u.items:u;c&&(c.properties||(c.properties={}),Object.assign(c.properties,s.properties||{}))}else r.properties||(r.properties={}),Object.assign(r.properties,s.properties||{})}setInNode(i,n,s){let r=n.split("."),u=i;for(let c=0;c<r.length;c++){let h=r[c];u.properties||(u.properties={}),c===r.length-1?u.properties[h]||(u.properties[h]={type:s},s==="object"?u.properties[h].properties={}:s==="array"&&(u.properties[h].items={type:"object",properties:{}})):(u.properties[h]||(u.properties[h]={type:"object",properties:{}}),u=u.properties[h])}}setInNodeExplicit(i,n,s){let r=n.split("."),u=i;for(let c=0;c<r.length;c++){let h=r[c];u.properties||(u.properties={}),c===r.length-1?u.properties[h]=s:(u.properties[h]||(u.properties[h]={type:"object",properties:{}}),u=u.properties[h])}}deleteInNode(i,n){let s=n.split("."),r=i;for(let u=0;u<s.length;u++){if(!r.properties)return;if(u===s.length-1)delete r.properties[s[u]];else if(r=r.properties[s[u]],!r)return}}getOrSetNode(i,n,s){let r=n.split("."),u=i;for(let c=0;c<r.length;c++){let h=r[c],p=c===r.length-1?s:"object";u.properties||(u.properties={}),u.properties[h]||(u.properties[h]={type:p},p==="object"?u.properties[h].properties={}:p==="array"&&(u.properties[h].items={type:"object",properties:{}})),u=u.properties[h]}return u}getResult(){return{source:this.sourceRoot,target:this.targetRoot}}},O2=Br.getBaseCstVisitorConstructor(),N2=class extends O2{readFrom="source";scopeStack=[];safeMode=!0;isAnalyzing=!1;tracker=new c0;lastInferredType="any";constructor(){super(),this.validateVisitor()}visitWithContext(i,n){let s=this.readFrom;this.readFrom=n.readFrom;let r=this.visit(i);return this.readFrom=s,r}query(i){this.isAnalyzing&&(this.tracker=new c0);let n=this.visit(i.sourceType),s=this.visit(i.targetType),r=!!i.Unsafe;this.safeMode=!r,this.scopeStack.push({format:s.name,options:s.options,isSerializationScope:!0});let u=i.action?i.action.map(T=>this.visit(T)):[];this.scopeStack.pop(),i.Transform||u.push("Object.assign(target, source);");let c=n.name,h=s.name,p=JSON.stringify(n.options),d=JSON.stringify(s.options),_=u.some(T=>typeof T=="string"&&T.trim().startsWith("return "));return{code:`
|
|
199
199
|
return function(input, env) {
|
|
200
200
|
// 1. Parse Input
|
|
201
201
|
const source = env.parse('${c}', input, ${p});
|
|
@@ -215,7 +215,7 @@ You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selec
|
|
|
215
215
|
`)} }`:"";return`if (${n}) {
|
|
216
216
|
${s}
|
|
217
217
|
} ${r}`}cloneRule(i){if(i.fields){let n=i.fields.map(s=>this.visit(s));return this.isAnalyzing&&this.tracker.recordClone(n.map(s=>s.name)),n.map(s=>`${this.genAccess("target",s,!0)} = ${this.genAccess("source",s)};`).join(`
|
|
218
|
-
`)}return this.isAnalyzing&&this.tracker.recordClone(),"Object.assign(target, source);"}setRule(i){let n=this.visit(i.left);this.lastInferredType="any";let s=this.visit(i.right);return this.isAnalyzing&&this.tracker.recordAssignment(n.name,this.lastInferredType),`${this.genAccess("target",n,!0)} = ${s};`}modifyRule(i){let n=this.visit(i.left);this.lastInferredType="any";let s=this.visitWithContext(i.right,{readFrom:"target"});return this.isAnalyzing&&this.tracker.recordAssignment(n.name,this.lastInferredType),`${this.genAccess("target",n,!0)} = ${s};`}defineRule(i){let n=this.visit(i.left);this.lastInferredType="any";let s=this.visit(i.right);return this.isAnalyzing&&this.tracker.recordAssignment(n.name,this.lastInferredType),`${this.genAccess("source",n,!0)} = ${s};`}returnRule(i){let n=this.visitWithContext(i.expr,{readFrom:"target"}),s=this.scopeStack[this.scopeStack.length-1];if(s&&s.isSerializationScope){let r=JSON.stringify(s.options);return`return env.serialize('${s.format}', ${n}, ${r});`}return`return ${n};`}expression(i){return this.visit(i.logicalOr)}logicalOr(i){let n=this.visit(i.lhs);if(i.rhs&&i.rhs.length>0){this.lastInferredType="boolean";for(let s=0;s<i.rhs.length;s++){let r=this.visit(i.rhs[s]);n=`${n} || ${r}`}}return n}logicalAnd(i){let n=this.visit(i.lhs);if(i.rhs&&i.rhs.length>0){this.lastInferredType="boolean";for(let s=0;s<i.rhs.length;s++){let r=this.visit(i.rhs[s]);n=`${n} && ${r}`}}return n}comparison(i){let n=this.visit(i.lhs);if(i.rhs){this.lastInferredType="boolean";let s=i.ops[0].image,r=this.visit(i.rhs[0]);n=`${n} ${s} ${r}`}return n}addition(i){let n=this.visit(i.lhs),s=this.lastInferredType,r=n;if(i.rhs&&i.rhs.length>0){let u=s==="string",c=s==="number";for(let h=0;h<i.rhs.length;h++){let p=i.ops[h].image,d=this.visit(i.rhs[h]);this.lastInferredType==="string"&&(u=!0),this.lastInferredType!=="number"&&(c=!1),r=`${r} ${p} ${d}`}u?this.lastInferredType="string":c?this.lastInferredType="number":this.lastInferredType="any"}else this.lastInferredType=s;return r}multiplication(i){let n=this.visit(i.lhs);if(i.rhs&&i.rhs.length>0){this.lastInferredType="number";for(let s=0;s<i.rhs.length;s++){let r=i.ops[s].image,u=this.visit(i.rhs[s]);n=`${n} ${r} ${u}`}}return n}unaryExpression(i){let n=this.visit(i.atomic);if(i.sign){let s=i.sign[0].image;return s==="!"&&(this.lastInferredType="boolean"),s==="-"&&(this.lastInferredType="number"),`${s}${n}`}return n}atomic(i){if(i.literal)return this.visit(i.literal);if(i.functionCall)return this.visit(i.functionCall);if(i.anyIdentifier){this.lastInferredType="any";let n=this.visit(i.anyIdentifier);if(["true","false","null"].includes(n.name)&&!n.quoted)return n.name;if(!n.quoted){if(n.name.startsWith("source.")||n.name.startsWith("source["))return this.isAnalyzing&&this.tracker.recordAccess(n.name.substring(7),"any",!1),n.name;if(n.name.startsWith("target.")||n.name.startsWith("target["))return this.isAnalyzing&&this.tracker.recordAccess(n.name.substring(7),"any",!0),n.name;if(n.name==="target")return"target";if(n.name==="source")return"source";if(n.name==="_source"||n.name.startsWith("_source.")||n.name.startsWith("_source["))return this.isAnalyzing&&this.tracker.recordAccess(n.name.substring(7)||"","any",!1),`_rootSource${n.name.substring(7)}`;if(n.name==="_target"||n.name.startsWith("_target.")||n.name.startsWith("_target["))return this.isAnalyzing&&this.tracker.recordAccess(n.name.substring(7)||"","any",!0),`_rootTarget${n.name.substring(7)}`}return this.isAnalyzing&&this.tracker.recordAccess(n.name,"any",this.readFrom==="target"),this.genAccess(this.readFrom,n)}if(i.expression)return`(${this.visit(i.expression)})`}functionCall(i){let n=i.name[0].image,s=(n.startsWith("`")?n.slice(1,-1):n).toLowerCase(),r=i.args?i.args.map(c=>this.visit(c)):[],u=
|
|
218
|
+
`)}return this.isAnalyzing&&this.tracker.recordClone(),"Object.assign(target, source);"}setRule(i){let n=this.visit(i.left);this.lastInferredType="any";let s=this.visit(i.right);return this.isAnalyzing&&this.tracker.recordAssignment(n.name,this.lastInferredType),`${this.genAccess("target",n,!0)} = ${s};`}modifyRule(i){let n=this.visit(i.left);this.lastInferredType="any";let s=this.visitWithContext(i.right,{readFrom:"target"});return this.isAnalyzing&&this.tracker.recordAssignment(n.name,this.lastInferredType),`${this.genAccess("target",n,!0)} = ${s};`}defineRule(i){let n=this.visit(i.left);this.lastInferredType="any";let s=this.visit(i.right);return this.isAnalyzing&&this.tracker.recordAssignment(n.name,this.lastInferredType),`${this.genAccess("source",n,!0)} = ${s};`}returnRule(i){let n=this.visitWithContext(i.expr,{readFrom:"target"}),s=this.scopeStack[this.scopeStack.length-1];if(s&&s.isSerializationScope){let r=JSON.stringify(s.options);return`return env.serialize('${s.format}', ${n}, ${r});`}return`return ${n};`}expression(i){return this.visit(i.logicalOr)}logicalOr(i){let n=this.visit(i.lhs);if(i.rhs&&i.rhs.length>0){this.lastInferredType="boolean";for(let s=0;s<i.rhs.length;s++){let r=this.visit(i.rhs[s]);n=`${n} || ${r}`}}return n}logicalAnd(i){let n=this.visit(i.lhs);if(i.rhs&&i.rhs.length>0){this.lastInferredType="boolean";for(let s=0;s<i.rhs.length;s++){let r=this.visit(i.rhs[s]);n=`${n} && ${r}`}}return n}comparison(i){let n=this.visit(i.lhs);if(i.rhs){this.lastInferredType="boolean";let s=i.ops[0].image,r=this.visit(i.rhs[0]);n=`${n} ${s} ${r}`}return n}addition(i){let n=this.visit(i.lhs),s=this.lastInferredType,r=n;if(i.rhs&&i.rhs.length>0){let u=s==="string",c=s==="number";for(let h=0;h<i.rhs.length;h++){let p=i.ops[h].image,d=this.visit(i.rhs[h]);this.lastInferredType==="string"&&(u=!0),this.lastInferredType!=="number"&&(c=!1),r=`${r} ${p} ${d}`}u?this.lastInferredType="string":c?this.lastInferredType="number":this.lastInferredType="any"}else this.lastInferredType=s;return r}multiplication(i){let n=this.visit(i.lhs);if(i.rhs&&i.rhs.length>0){this.lastInferredType="number";for(let s=0;s<i.rhs.length;s++){let r=i.ops[s].image,u=this.visit(i.rhs[s]);n=`${n} ${r} ${u}`}}return n}unaryExpression(i){let n=this.visit(i.atomic);if(i.sign){let s=i.sign[0].image;return s==="!"&&(this.lastInferredType="boolean"),s==="-"&&(this.lastInferredType="number"),`${s}${n}`}return n}atomic(i){if(i.literal)return this.visit(i.literal);if(i.functionCall)return this.visit(i.functionCall);if(i.anyIdentifier){this.lastInferredType="any";let n=this.visit(i.anyIdentifier);if(["true","false","null"].includes(n.name)&&!n.quoted)return n.name;if(!n.quoted){if(n.name.startsWith("source.")||n.name.startsWith("source["))return this.isAnalyzing&&this.tracker.recordAccess(n.name.substring(7),"any",!1),n.name;if(n.name.startsWith("target.")||n.name.startsWith("target["))return this.isAnalyzing&&this.tracker.recordAccess(n.name.substring(7),"any",!0),n.name;if(n.name==="target")return"target";if(n.name==="source")return"source";if(n.name==="_source"||n.name.startsWith("_source.")||n.name.startsWith("_source["))return this.isAnalyzing&&this.tracker.recordAccess(n.name.substring(7)||"","any",!1),`_rootSource${n.name.substring(7)}`;if(n.name==="_target"||n.name.startsWith("_target.")||n.name.startsWith("_target["))return this.isAnalyzing&&this.tracker.recordAccess(n.name.substring(7)||"","any",!0),`_rootTarget${n.name.substring(7)}`}return this.isAnalyzing&&this.tracker.recordAccess(n.name,"any",this.readFrom==="target"),this.genAccess(this.readFrom,n)}if(i.expression)return`(${this.visit(i.expression)})`}functionCall(i){let n=i.name[0].image,s=(n.startsWith("`")?n.slice(1,-1):n).toLowerCase(),r=i.args?i.args.map(c=>this.visit(c)):[],u=A2[s];if(u)return["substring","text","replace","uppercase","lowercase","to_base64","from_base64"].includes(s)?this.lastInferredType="string":["number","extractnumber"].includes(s)?this.lastInferredType="number":["aslist"].includes(s)?this.lastInferredType="array":s==="asobject"&&(this.lastInferredType="object"),u(r);throw new Error(`Unknown function: ${n}`)}sectionRule(i){let n=this.visit(i.sectionName),s=n.name,r=this.genAccess("target",n,!0),u=i.followPath?this.visit(i.followPath):n,c=u.name==="parent"?"source":this.genAccess("source",u),h=!!i.Multiple;if(i.subqueryFrom){let _=this.visit(i.subquerySourceType),T=this.visit(i.subqueryTargetType);this.scopeStack.push({format:T.name,options:T.options,isSerializationScope:!0});let v=!!i.subqueryTransform,R=i.action?i.action.map(O=>this.visit(O)):[];v||R.push("Object.assign(target, source);");let q=JSON.stringify(_.options),K=JSON.stringify(T.options),Q="";return h?Q=`
|
|
219
219
|
if (${c} && Array.isArray(${c})) {
|
|
220
220
|
${r} = ${c}.map(item => {
|
|
221
221
|
const subSource = env.parse('${_.name}', item, ${q});
|
|
@@ -257,7 +257,7 @@ You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selec
|
|
|
257
257
|
return target;
|
|
258
258
|
})(${c});
|
|
259
259
|
}
|
|
260
|
-
`,this.scopeStack.pop(),d}},
|
|
260
|
+
`,this.scopeStack.pop(),d}},f0=new N2,bE={};function Ao(i,n){bE[i.toLowerCase()]=n}function h0(i){let n=bE[i.toLowerCase()];if(!n)throw new Error(`No adapter found for format: ${i}`);return n}function R2(i){let n="";for(;i>=0;)n=String.fromCharCode(i%26+65)+n,i=Math.floor(i/26)-1;return n}Ao("json",{parse:i=>typeof i!="string"?i:JSON.parse(i),serialize:i=>JSON.stringify(i,null,2)});var x2=new Ni({ignoreAttributes:!1,attributeNamePrefix:"$",textNodeName:"_",format:!0});Ao("xml",{parse:(i,n)=>typeof i!="string"?i:new XL({ignoreAttributes:!1,removeNSPrefix:!0,...n}).parse(i),serialize:(i,n)=>{let s=n?.rootGenerated??n?.params?.[0]??"root";return(n?new Ni({ignoreAttributes:!1,attributeNamePrefix:"$",textNodeName:"_",format:!0,...n}):x2).build({[s]:i})}});Ao("csv",{parse:(i,n)=>{if(typeof i!="string")return i;let s=n?.delimiter??n?.params?.[0]??",";return{rows:jy.parse(i,{delimiter:s,skipEmptyLines:!0,...n}).data.map(r=>{let u={};return Array.isArray(r)&&r.forEach((c,h)=>{u[R2(h)]=c}),u})}},serialize:(i,n)=>{if(!i||!Array.isArray(i.rows))return"";let s=n?.delimiter??n?.params?.[0]??",",r=i.rows.map(u=>Object.keys(u).filter(c=>/^[A-Z]+$/.test(c)).sort((c,h)=>c.length!==h.length?c.length-h.length:c.localeCompare(h)).map(c=>u[c]));return jy.unparse(r,{delimiter:s,...n})}});Ao("object",{parse:i=>i,serialize:i=>i});async function C2(i,n){if(n?.cache){let T=await n.cache.retrieve(i);if(T)return d0(T)}let s=T2.tokenize(i);if(s.errors.length>0)throw new Error(`Lexing errors: ${s.errors[0].message}`);Br.input=s.tokens;let r=Br.query();if(Br.errors.length>0)throw new Error(`Parsing errors: ${Br.errors[0].message}`);f0.isAnalyzing=!0;let{code:u,analysis:c,sourceType:h,targetType:p}=f0.visit(r),d=y2.js(u,{indent_size:2,space_in_empty_paren:!0,end_with_newline:!0});n?.cache&&await n.cache.save(i,d);let _=d0(d);return c&&(c.sourceFormat=h.name,c.targetFormat=p.name,_.analysis=c),_}function d0(i){let n=new Function(i)(),s={parse:(u,c,h)=>h0(u).parse(c,h),serialize:(u,c,h)=>h0(u).serialize(c,h)},r=(u=>n(u,s));return r.code=i,r}function yh(i,...n){return i.reduce((s,r,u)=>s+r+(n[u]??""),"")}const As=[{name:"Customer Profile (JSON to XML)",query:yh`from json
|
|
261
261
|
to xml("UserProfile")
|
|
262
262
|
transform
|
|
263
263
|
section profile(
|
|
@@ -327,7 +327,7 @@ transform
|
|
|
327
327
|
<author>George Orwell</author>
|
|
328
328
|
<year>1949</year>
|
|
329
329
|
</book>
|
|
330
|
-
</catalog>`}];var
|
|
330
|
+
</catalog>`}];var w2=[{name:"from",category:"control",doc:{signature:"from <format>",description:"Specifies the input data format.",parameters:[{name:"format",description:"If used as first keyword: The starting format name (e.g., `json`, `xml`, `csv`, `object`). When used after a section, defines its source."}],example:"from json to csv"}},{name:"to",category:"control",doc:{signature:"to <format>",description:"Specifies the output data format.",parameters:[{name:"format",description:"The name of one of the available adapters."}],example:"from csv to json"}},{name:"transform",category:"control",doc:{signature:"transform [unsafe]",description:"Begins the transformation block containing actions. Optional 'unsafe' keyword disables safety features (optional chaining) for maximum performance.",example:`transform
|
|
331
331
|
set name = firstName
|
|
332
332
|
|
|
333
333
|
transform unsafe
|
|
@@ -350,5 +350,5 @@ set totalWithTax = total * (1 + taxRate)`}},{name:"if",category:"control",doc:{s
|
|
|
350
350
|
...
|
|
351
351
|
)`}},{name:"modify",category:"action",doc:{signature:"modify <target> = <expression>",description:"Modifies a field in the output by reading from the target (not source). Useful for post-processing already-mapped values.",parameters:[{name:"target",description:"The field name to modify"},{name:"expression",description:"The expression to assign (reads from target, not source)"}],example:`set total = price * quantity
|
|
352
352
|
modify total = total * 1.10`}},{name:"return",category:"action",doc:{signature:"return <expression>",description:"Returns a value from the transformation, bypassing the default serialization. Reads from target context by default.",parameters:[{name:"expression",description:"The value to return"}],example:`set computed = price * 1.1
|
|
353
|
-
return computed`}}],
|
|
354
|
-
substring("Hello World", -5) // "World"`}},{name:"split",doc:{signature:"split(str, [separator], [limit])",description:"Splits a string into an array.",parameters:[{name:"str",description:"The string to split"},{name:"separator",description:'(Optional) Delimiter string. Default: ""'},{name:"limit",description:"(Optional) Maximum number of splits"}],returns:"array",example:'split("a,b,c", ",") // ["a", "b", "c"]'}},{name:"replace",doc:{signature:"replace(str, search, replacement)",description:"Replaces occurrences in a string.",parameters:[{name:"str",description:"The source string"},{name:"search",description:"The substring to find"},{name:"replacement",description:"The replacement string"}],returns:"string",example:'replace("Hello World", "World", "MorphQL") // "Hello MorphQL"'}},{name:"text",doc:{signature:"text(value)",description:"Converts a value to a string.",parameters:[{name:"value",description:"The value to convert"}],returns:"string",example:'text(123) // "123"'}},{name:"number",doc:{signature:"number(value)",description:"Converts a value to a number.",parameters:[{name:"value",description:"The value to convert"}],returns:"number",example:'number("42") // 42'}},{name:"uppercase",doc:{signature:"uppercase(str)",description:"Converts a string to uppercase.",parameters:[{name:"str",description:"The string to convert"}],returns:"string",example:'uppercase("hello") // "HELLO"'}},{name:"lowercase",doc:{signature:"lowercase(str)",description:"Converts a string to lowercase.",parameters:[{name:"str",description:"The string to convert"}],returns:"string",example:'lowercase("HELLO") // "hello"'}},{name:"extractnumber",doc:{signature:"extractnumber(str)",description:"Extracts the first numeric sequence from a string.",parameters:[{name:"str",description:"The string to extract from"}],returns:"number",example:'extractnumber("Price: 100USD") // 100'}},{name:"xmlnode",doc:{signature:"xmlnode(value, [attrKey, attrVal, ...])",description:"Wraps a value for XML output with optional attributes.",parameters:[{name:"value",description:"The node content"},{name:"attrKey, attrVal",description:"(Optional) Pairs of attribute keys and values"}],returns:"XML node",example:'xmlnode(content, "id", 1, "type", "text")'}},{name:"to_base64",doc:{signature:"to_base64(value)",description:"Encodes a string value to Base64.",parameters:[{name:"value",description:"The string to encode"}],returns:"string",example:'to_base64("hello") // "aGVsbG8="'}},{name:"from_base64",doc:{signature:"from_base64(value)",description:"Decodes a Base64 string value.",parameters:[{name:"value",description:"The Base64 string to decode"}],returns:"string",example:'from_base64("aGVsbG8=") // "hello"'}},{name:"aslist",doc:{signature:"aslist(value)",description:"Ensures a value is an array. Useful for input formats like XML that might return a single object or an array for the same field.",parameters:[{name:"value",description:"The value to normalize"}],returns:"array",example:"aslist(items) // Always returns an array"}},{name:"spreadsheet",doc:{signature:"spreadsheet(data)",description:"Converts spreadsheet-style data (array of arrays) into an array of objects with named properties. First row is treated as headers.",parameters:[{name:"data",description:"Array of arrays (rows)"}],returns:"array of objects",example:'spreadsheet(csvData) // Converts [["name","age"],["John",30]] to [{name:"John",age:30}]'}}],M2=()=>L2.map(i=>i.name),k2=[{symbol:"===",category:"comparison",precedence:7},{symbol:"!==",category:"comparison",precedence:7},{symbol:"==",category:"comparison",precedence:7},{symbol:"!=",category:"comparison",precedence:7},{symbol:"<=",category:"comparison",precedence:6},{symbol:">=",category:"comparison",precedence:6},{symbol:"<",category:"comparison",precedence:6},{symbol:">",category:"comparison",precedence:6},{symbol:"&&",category:"logical",precedence:5},{symbol:"||",category:"logical",precedence:4},{symbol:"!",category:"logical",precedence:9},{symbol:"+",category:"arithmetic",precedence:10},{symbol:"-",category:"arithmetic",precedence:10},{symbol:"*",category:"arithmetic",precedence:11},{symbol:"/",category:"arithmetic",precedence:11},{symbol:"=",category:"assignment",precedence:1}],U2=()=>k2.map(i=>i.symbol);function I2(){return{keywords:w2(),builtinFunctions:M2(),operators:U2(),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"predefined","@default":"identifier"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}const z2=I2();function B2(i){i.languages.register({id:"morphql"}),i.languages.setMonarchTokensProvider("morphql",z2),i.languages.setLanguageConfiguration("morphql",{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}]})}function eo({node:i,name:n}){const[s,r]=pt.useState(!0);if(!i)return null;const u=i.properties&&Object.keys(i.properties).length>0,c=i.items,h=u||c,p=d=>{switch(d){case"string":return"text-emerald-400";case"number":return"text-amber-400";case"boolean":return"text-indigo-400";case"array":return"text-pink-400";case"object":return"text-slate-400";default:return"text-slate-500"}};return et.jsxs("div",{className:"pl-4",children:[et.jsxs("div",{className:"flex items-center gap-2 py-0.5 group",children:[h?et.jsx("button",{onClick:()=>r(!s),className:"p-0.5 hover:bg-slate-800 rounded transition-colors text-slate-500",children:et.jsx(Lu,{className:`w-3 h-3 transition-transform ${s?"rotate-90":""}`})}):et.jsx("div",{className:"w-4"}),n&&et.jsxs("span",{className:"text-xs font-mono text-slate-300",children:[n,":"]}),et.jsxs("span",{className:`text-[10px] uppercase font-bold ${p(i.type)} tracking-wider opacity-80`,children:[i.type,i.isOpen&&et.jsx("span",{className:"text-[10px] text-indigo-400 ml-1 italic",children:"(open)"})]})]}),s&&et.jsxs("div",{children:[u&&Object.entries(i.properties).map(([d,_])=>et.jsx(eo,{name:d,node:_},d)),c&&et.jsx(eo,{name:"items",node:i.items})]})]})}function j2({initialQuery:i=As[0].query,initialSourceData:n=As[0].source,className:s="",onQueryChange:r,onSourceDataChange:u}){const[c,h]=pt.useState(i),[p,d]=pt.useState(n),[_,T]=pt.useState(!1),[v,R]=pt.useState({result:"",generatedCode:"",error:null}),[q,K]=pt.useState("query"),[Q,O]=pt.useState("output"),b=C=>{const y=C.trim();return y.startsWith("<")?"xml":y.startsWith("{")||y.startsWith("[")?"json":"plaintext"},N=b(p);pt.useEffect(()=>{h(i)},[i]),pt.useEffect(()=>{d(n)},[n]),pt.useEffect(()=>{async function C(){try{const y=await x2(c,{analyze:!0}),S=y(p);R({result:typeof S=="string"?S:JSON.stringify(S,null,2),generatedCode:y.code,error:null,analysis:y.analysis})}catch(y){R({result:"",generatedCode:"",error:y instanceof Error?y.message:String(y)})}}C()},[c,p]);const P=C=>{const y=As.find(S=>S.name===C.target.value);y&&(h(y.query),d(y.source),r?.(y.query),u?.(y.source))},z=()=>{navigator.clipboard.writeText(v.result),T(!0),setTimeout(()=>T(!1),2e3)},Z=C=>{const y=C||"";h(y),r?.(y)},I=C=>{const y=C||"";d(y),u?.(y)};return et.jsxs("div",{className:`flex flex-col h-full bg-[#0f172a] text-slate-200 overflow-hidden ${s}`,children:[et.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800 bg-[#1e293b]",children:[et.jsxs("div",{className:"flex items-center gap-3",children:[et.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:et.jsx(Lu,{className:"w-5 h-5 text-white fill-current"})}),et.jsxs("div",{children:[et.jsx("h1",{className:"text-lg font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-slate-400",children:"MorphQL Playground"}),et.jsx("p",{className:"text-xs text-slate-400 font-medium",children:"High-Performance Query-to-Code Engine"})]})]}),et.jsxs("div",{className:"flex items-center gap-4",children:[et.jsxs("select",{className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700 text-slate-200 outline-none cursor-pointer",onChange:P,defaultValue:"",children:[et.jsx("option",{value:"",disabled:!0,children:"Load Example..."}),As.map(C=>et.jsx("option",{value:C.name,children:C.name},C.name))]}),et.jsx("a",{href:"https://hyperwindmill.github.io/morphql",className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700",children:"Documentation"})]})]}),et.jsxs("main",{className:"flex-1 flex overflow-hidden",children:[et.jsxs("div",{className:"w-1/2 flex flex-col border-r border-slate-800",children:[et.jsxs("div",{className:"flex items-center gap-1 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[et.jsxs("button",{onClick:()=>K("query"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${q==="query"?"bg-slate-800 text-indigo-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(gS,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Morph Query"})]}),et.jsxs("button",{onClick:()=>K("js"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${q==="js"?"bg-slate-800 text-amber-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(fS,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Generated JS"})]}),et.jsxs("button",{onClick:()=>K("source"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${q==="source"?"bg-slate-800 text-emerald-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Nm,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Source Data"})]})]}),et.jsxs("div",{className:"flex-1 overflow-hidden",children:[et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${q==="query"?"block":"hidden"}`,children:et.jsx(vu,{theme:"vs-dark",defaultLanguage:"morphql",value:c,onChange:Z,beforeMount:C=>{B2(C)},options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${q==="js"?"block":"hidden"}`,children:et.jsx(vu,{theme:"vs-dark",defaultLanguage:"javascript",value:v.generatedCode,options:{readOnly:!0,minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${q==="source"?"block":"hidden"}`,children:et.jsx(vu,{theme:"vs-dark",language:N,value:p,onChange:I,options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]})]}),et.jsxs("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-slate-900 border-b border-slate-800",children:[et.jsxs("div",{className:"flex items-center gap-1",children:[et.jsxs("button",{onClick:()=>O("output"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${Q==="output"?"bg-slate-800 text-amber-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Lu,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Transformation Result"})]}),et.jsxs("button",{onClick:()=>O("structure"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${Q==="structure"?"bg-slate-800 text-indigo-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Rm,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Structure"})]})]}),Q==="output"&&et.jsx("button",{onClick:z,className:"p-1 hover:bg-slate-800 rounded transition-colors text-slate-400 hover:text-white",title:"Copy Result",children:_?et.jsx(oS,{className:"w-4 h-4 text-emerald-400"}):et.jsx(dS,{className:"w-4 h-4"})})]}),et.jsxs("div",{className:"flex-1 overflow-hidden bg-[#1e1e1e]",children:[et.jsx("div",{className:`h-full flex flex-col pt-2 ${Q==="output"?"block":"hidden"}`,children:v.error?et.jsxs("div",{className:"p-4 flex gap-3 text-red-400 bg-red-950/20 m-4 rounded-lg border border-red-900/50",children:[et.jsx(Rm,{className:"w-5 h-5 flex-shrink-0"}),et.jsxs("div",{children:[et.jsx("p",{className:"text-sm font-bold mb-1",children:"Compilation/Execution Error"}),et.jsx("p",{className:"text-xs font-mono",children:v.error})]})]}):et.jsx(vu,{theme:"vs-dark",language:b(v.result),value:v.result,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),Q==="structure"&&et.jsxs("div",{className:"h-full flex flex-col divide-y divide-slate-800 overflow-hidden",children:[et.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"px-4 py-1.5 bg-slate-900/50 flex items-center justify-between border-b border-slate-800",children:[et.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-slate-500",children:"Input Structure"}),et.jsx(Nm,{className:"w-3 h-3 text-slate-600"})]}),et.jsx("div",{className:"flex-1 overflow-auto p-4 custom-scrollbar",children:v.analysis?.source?et.jsx(eo,{node:v.analysis.source}):et.jsx("div",{className:"h-full flex items-center justify-center text-slate-600 italic text-xs",children:"No input structure detected"})})]}),et.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"px-4 py-1.5 bg-slate-900/50 flex items-center justify-between border-b border-slate-800",children:[et.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-slate-500",children:"Output Structure"}),et.jsx(Lu,{className:"w-3 h-3 text-slate-600"})]}),et.jsx("div",{className:"flex-1 overflow-auto p-4 custom-scrollbar",children:v.analysis?.target?et.jsx(eo,{node:v.analysis.target}):et.jsx("div",{className:"h-full flex items-center justify-center text-slate-600 italic text-xs",children:"No output structure detected"})})]})]})]})]})]}),et.jsxs("footer",{className:"px-6 py-2 border-t border-slate-800 bg-[#1e293b] flex justify-between items-center",children:[et.jsx("div",{className:"flex items-center gap-6",children:et.jsx("div",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-tighter",children:"Version: 0.1.9"})}),et.jsx("div",{className:"text-[10px] text-slate-500 font-medium italic",children:"MorphQL Engine © 2026"})]})]})}function D2(){const[i,n]=pt.useState(()=>sessionStorage.getItem("morph_query")||As[0].query),[s,r]=pt.useState(()=>sessionStorage.getItem("morph_source")||As[0].source),u=h=>{n(h),sessionStorage.setItem("morph_query",h)},c=h=>{r(h),sessionStorage.setItem("morph_source",h)};return et.jsx("div",{className:"h-screen w-screen",children:et.jsx(j2,{initialQuery:i,initialSourceData:s,onQueryChange:u,onSourceDataChange:c})})}YT.createRoot(document.getElementById("root")).render(et.jsx(Ra.StrictMode,{children:et.jsx(D2,{})}))});export default P2();
|
|
353
|
+
return computed`}}],L2=()=>w2.map(i=>i.name),M2=[{name:"substring",doc:{signature:"substring(str, start, [length])",description:"Extracts a portion of a string. Supports negative indices.",parameters:[{name:"str",description:"The source string"},{name:"start",description:"Starting index (0-based, negative counts from end)"},{name:"length",description:"(Optional) Number of characters to extract"}],returns:"string",example:`substring("Hello World", 0, 5) // "Hello"
|
|
354
|
+
substring("Hello World", -5) // "World"`}},{name:"split",doc:{signature:"split(str, [separator], [limit])",description:"Splits a string into an array.",parameters:[{name:"str",description:"The string to split"},{name:"separator",description:'(Optional) Delimiter string. Default: ""'},{name:"limit",description:"(Optional) Maximum number of splits"}],returns:"array",example:'split("a,b,c", ",") // ["a", "b", "c"]'}},{name:"replace",doc:{signature:"replace(str, search, replacement)",description:"Replaces occurrences in a string.",parameters:[{name:"str",description:"The source string"},{name:"search",description:"The substring to find"},{name:"replacement",description:"The replacement string"}],returns:"string",example:'replace("Hello World", "World", "MorphQL") // "Hello MorphQL"'}},{name:"text",doc:{signature:"text(value)",description:"Converts a value to a string.",parameters:[{name:"value",description:"The value to convert"}],returns:"string",example:'text(123) // "123"'}},{name:"number",doc:{signature:"number(value)",description:"Converts a value to a number.",parameters:[{name:"value",description:"The value to convert"}],returns:"number",example:'number("42") // 42'}},{name:"uppercase",doc:{signature:"uppercase(str)",description:"Converts a string to uppercase.",parameters:[{name:"str",description:"The string to convert"}],returns:"string",example:'uppercase("hello") // "HELLO"'}},{name:"lowercase",doc:{signature:"lowercase(str)",description:"Converts a string to lowercase.",parameters:[{name:"str",description:"The string to convert"}],returns:"string",example:'lowercase("HELLO") // "hello"'}},{name:"extractnumber",doc:{signature:"extractnumber(str)",description:"Extracts the first numeric sequence from a string.",parameters:[{name:"str",description:"The string to extract from"}],returns:"number",example:'extractnumber("Price: 100USD") // 100'}},{name:"xmlnode",doc:{signature:"xmlnode(value, [attrKey, attrVal, ...])",description:"Wraps a value for XML output with optional attributes.",parameters:[{name:"value",description:"The node content"},{name:"attrKey, attrVal",description:"(Optional) Pairs of attribute keys and values"}],returns:"XML node",example:'xmlnode(content, "id", 1, "type", "text")'}},{name:"to_base64",doc:{signature:"to_base64(value)",description:"Encodes a string value to Base64.",parameters:[{name:"value",description:"The string to encode"}],returns:"string",example:'to_base64("hello") // "aGVsbG8="'}},{name:"from_base64",doc:{signature:"from_base64(value)",description:"Decodes a Base64 string value.",parameters:[{name:"value",description:"The Base64 string to decode"}],returns:"string",example:'from_base64("aGVsbG8=") // "hello"'}},{name:"aslist",doc:{signature:"aslist(value)",description:"Ensures a value is an array. Useful for input formats like XML that might return a single object or an array for the same field.",parameters:[{name:"value",description:"The value to normalize"}],returns:"array",example:"aslist(items) // Always returns an array"}},{name:"spreadsheet",doc:{signature:"spreadsheet(data)",description:"Converts spreadsheet-style data (array of arrays) into an array of objects with named properties. First row is treated as headers.",parameters:[{name:"data",description:"Array of arrays (rows)"}],returns:"array of objects",example:'spreadsheet(csvData) // Converts [["name","age"],["John",30]] to [{name:"John",age:30}]'}}],k2=()=>M2.map(i=>i.name),U2=[{symbol:"===",category:"comparison",precedence:7},{symbol:"!==",category:"comparison",precedence:7},{symbol:"==",category:"comparison",precedence:7},{symbol:"!=",category:"comparison",precedence:7},{symbol:"<=",category:"comparison",precedence:6},{symbol:">=",category:"comparison",precedence:6},{symbol:"<",category:"comparison",precedence:6},{symbol:">",category:"comparison",precedence:6},{symbol:"&&",category:"logical",precedence:5},{symbol:"||",category:"logical",precedence:4},{symbol:"!",category:"logical",precedence:9},{symbol:"+",category:"arithmetic",precedence:10},{symbol:"-",category:"arithmetic",precedence:10},{symbol:"*",category:"arithmetic",precedence:11},{symbol:"/",category:"arithmetic",precedence:11},{symbol:"=",category:"assignment",precedence:1}],I2=()=>U2.map(i=>i.symbol);function z2(){return{keywords:L2(),builtinFunctions:k2(),operators:I2(),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"predefined","@default":"identifier"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}const B2=z2();function j2(i){i.languages.register({id:"morphql"}),i.languages.setMonarchTokensProvider("morphql",B2),i.languages.setLanguageConfiguration("morphql",{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}]})}function eo({node:i,name:n}){const[s,r]=pt.useState(!0);if(!i)return null;const u=i.properties&&Object.keys(i.properties).length>0,c=i.items,h=u||c,p=d=>{switch(d){case"string":return"text-emerald-400";case"number":return"text-amber-400";case"boolean":return"text-indigo-400";case"array":return"text-pink-400";case"object":return"text-slate-400";default:return"text-slate-500"}};return et.jsxs("div",{className:"pl-4",children:[et.jsxs("div",{className:"flex items-center gap-2 py-0.5 group",children:[h?et.jsx("button",{onClick:()=>r(!s),className:"p-0.5 hover:bg-slate-800 rounded transition-colors text-slate-500",children:et.jsx(Lu,{className:`w-3 h-3 transition-transform ${s?"rotate-90":""}`})}):et.jsx("div",{className:"w-4"}),n&&et.jsxs("span",{className:"text-xs font-mono text-slate-300",children:[n,":"]}),et.jsxs("span",{className:`text-[10px] uppercase font-bold ${p(i.type)} tracking-wider opacity-80`,children:[i.type,i.isOpen&&et.jsx("span",{className:"text-[10px] text-indigo-400 ml-1 italic",children:"(open)"})]})]}),s&&et.jsxs("div",{children:[u&&Object.entries(i.properties).map(([d,_])=>et.jsx(eo,{name:d,node:_},d)),c&&et.jsx(eo,{name:"items",node:i.items})]})]})}function D2({initialQuery:i=As[0].query,initialSourceData:n=As[0].source,className:s="",onQueryChange:r,onSourceDataChange:u}){const[c,h]=pt.useState(i),[p,d]=pt.useState(n),[_,T]=pt.useState(!1),[v,R]=pt.useState({result:"",generatedCode:"",error:null}),[q,K]=pt.useState("query"),[Q,O]=pt.useState("output"),b=C=>{const y=C.trim();return y.startsWith("<")?"xml":y.startsWith("{")||y.startsWith("[")?"json":"plaintext"},N=b(p);pt.useEffect(()=>{h(i)},[i]),pt.useEffect(()=>{d(n)},[n]),pt.useEffect(()=>{async function C(){try{const y=await C2(c,{analyze:!0}),S=y(p);R({result:typeof S=="string"?S:JSON.stringify(S,null,2),generatedCode:y.code,error:null,analysis:y.analysis})}catch(y){R({result:"",generatedCode:"",error:y instanceof Error?y.message:String(y)})}}C()},[c,p]);const P=C=>{const y=As.find(S=>S.name===C.target.value);y&&(h(y.query),d(y.source),r?.(y.query),u?.(y.source))},z=()=>{navigator.clipboard.writeText(v.result),T(!0),setTimeout(()=>T(!1),2e3)},Z=C=>{const y=C||"";h(y),r?.(y)},I=C=>{const y=C||"";d(y),u?.(y)};return et.jsxs("div",{className:`flex flex-col h-full bg-[#0f172a] text-slate-200 overflow-hidden ${s}`,children:[et.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800 bg-[#1e293b]",children:[et.jsxs("div",{className:"flex items-center gap-3",children:[et.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:et.jsx(Lu,{className:"w-5 h-5 text-white fill-current"})}),et.jsxs("div",{children:[et.jsx("h1",{className:"text-lg font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-slate-400",children:"MorphQL Playground"}),et.jsx("p",{className:"text-xs text-slate-400 font-medium",children:"High-Performance Query-to-Code Engine"})]})]}),et.jsxs("div",{className:"flex items-center gap-4",children:[et.jsxs("select",{className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700 text-slate-200 outline-none cursor-pointer",onChange:P,defaultValue:"",children:[et.jsx("option",{value:"",disabled:!0,children:"Load Example..."}),As.map(C=>et.jsx("option",{value:C.name,children:C.name},C.name))]}),et.jsx("a",{href:"https://hyperwindmill.github.io/morphql",className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700",children:"Documentation"})]})]}),et.jsxs("main",{className:"flex-1 flex overflow-hidden",children:[et.jsxs("div",{className:"w-1/2 flex flex-col border-r border-slate-800",children:[et.jsxs("div",{className:"flex items-center gap-1 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[et.jsxs("button",{onClick:()=>K("query"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${q==="query"?"bg-slate-800 text-indigo-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(mS,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Morph Query"})]}),et.jsxs("button",{onClick:()=>K("js"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${q==="js"?"bg-slate-800 text-amber-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(hS,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Generated JS"})]}),et.jsxs("button",{onClick:()=>K("source"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${q==="source"?"bg-slate-800 text-emerald-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Nm,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Source Data"})]})]}),et.jsxs("div",{className:"flex-1 overflow-hidden",children:[et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${q==="query"?"block":"hidden"}`,children:et.jsx(vu,{theme:"vs-dark",defaultLanguage:"morphql",value:c,onChange:Z,beforeMount:C=>{j2(C)},options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${q==="js"?"block":"hidden"}`,children:et.jsx(vu,{theme:"vs-dark",defaultLanguage:"javascript",value:v.generatedCode,options:{readOnly:!0,minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${q==="source"?"block":"hidden"}`,children:et.jsx(vu,{theme:"vs-dark",language:N,value:p,onChange:I,options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]})]}),et.jsxs("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-slate-900 border-b border-slate-800",children:[et.jsxs("div",{className:"flex items-center gap-1",children:[et.jsxs("button",{onClick:()=>O("output"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${Q==="output"?"bg-slate-800 text-amber-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Lu,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Transformation Result"})]}),et.jsxs("button",{onClick:()=>O("structure"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${Q==="structure"?"bg-slate-800 text-indigo-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Rm,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Structure"})]})]}),Q==="output"&&et.jsx("button",{onClick:z,className:"p-1 hover:bg-slate-800 rounded transition-colors text-slate-400 hover:text-white",title:"Copy Result",children:_?et.jsx(cS,{className:"w-4 h-4 text-emerald-400"}):et.jsx(pS,{className:"w-4 h-4"})})]}),et.jsxs("div",{className:"flex-1 overflow-hidden bg-[#1e1e1e]",children:[et.jsx("div",{className:`h-full flex flex-col pt-2 ${Q==="output"?"block":"hidden"}`,children:v.error?et.jsxs("div",{className:"p-4 flex gap-3 text-red-400 bg-red-950/20 m-4 rounded-lg border border-red-900/50",children:[et.jsx(Rm,{className:"w-5 h-5 flex-shrink-0"}),et.jsxs("div",{children:[et.jsx("p",{className:"text-sm font-bold mb-1",children:"Compilation/Execution Error"}),et.jsx("p",{className:"text-xs font-mono",children:v.error})]})]}):et.jsx(vu,{theme:"vs-dark",language:b(v.result),value:v.result,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),Q==="structure"&&et.jsxs("div",{className:"h-full flex flex-col divide-y divide-slate-800 overflow-hidden",children:[et.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"px-4 py-1.5 bg-slate-900/50 flex items-center justify-between border-b border-slate-800",children:[et.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-slate-500",children:"Input Structure"}),et.jsx(Nm,{className:"w-3 h-3 text-slate-600"})]}),et.jsx("div",{className:"flex-1 overflow-auto p-4 custom-scrollbar",children:v.analysis?.source?et.jsx(eo,{node:v.analysis.source}):et.jsx("div",{className:"h-full flex items-center justify-center text-slate-600 italic text-xs",children:"No input structure detected"})})]}),et.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"px-4 py-1.5 bg-slate-900/50 flex items-center justify-between border-b border-slate-800",children:[et.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-slate-500",children:"Output Structure"}),et.jsx(Lu,{className:"w-3 h-3 text-slate-600"})]}),et.jsx("div",{className:"flex-1 overflow-auto p-4 custom-scrollbar",children:v.analysis?.target?et.jsx(eo,{node:v.analysis.target}):et.jsx("div",{className:"h-full flex items-center justify-center text-slate-600 italic text-xs",children:"No output structure detected"})})]})]})]})]})]}),et.jsxs("footer",{className:"px-6 py-2 border-t border-slate-800 bg-[#1e293b] flex justify-between items-center",children:[et.jsx("div",{className:"flex items-center gap-6",children:et.jsx("div",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-tighter",children:"Version: 0.1.11"})}),et.jsx("div",{className:"text-[10px] text-slate-500 font-medium italic",children:"MorphQL Engine © 2026"})]})]})}function P2(){const[i,n]=pt.useState(()=>sessionStorage.getItem("morph_query")||As[0].query),[s,r]=pt.useState(()=>sessionStorage.getItem("morph_source")||As[0].source),u=h=>{n(h),sessionStorage.setItem("morph_query",h)},c=h=>{r(h),sessionStorage.setItem("morph_source",h)};return et.jsx("div",{className:"h-screen w-screen",children:et.jsx(D2,{initialQuery:i,initialSourceData:s,onQueryChange:u,onSourceDataChange:c})})}XT.createRoot(document.getElementById("root")).render(et.jsx(Ra.StrictMode,{children:et.jsx(P2,{})}))});export default q2();
|