@hyperframes/studio 0.4.16 → 0.4.18

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,93 +0,0 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=t(i);fetch(i.href,l)}})();function mx(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var hh={exports:{}},Gl={},fh={exports:{}},We={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var xm;function Ox(){if(xm)return We;xm=1;var r=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),O=Symbol.iterator;function y(Q){return Q===null||typeof Q!="object"?null:(Q=O&&Q[O]||Q["@@iterator"],typeof Q=="function"?Q:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function $(Q,z,ie){this.props=Q,this.context=z,this.refs=b,this.updater=ie||S}$.prototype.isReactComponent={},$.prototype.setState=function(Q,z){if(typeof Q!="object"&&typeof Q!="function"&&Q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Q,z,"setState")},$.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};function C(){}C.prototype=$.prototype;function _(Q,z,ie){this.props=Q,this.context=z,this.refs=b,this.updater=ie||S}var A=_.prototype=new C;A.constructor=_,w(A,$.prototype),A.isPureReactComponent=!0;var T=Array.isArray,Z=Object.prototype.hasOwnProperty,X={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function N(Q,z,ie){var de,ee={},Qe=null,Le=null;if(z!=null)for(de in z.ref!==void 0&&(Le=z.ref),z.key!==void 0&&(Qe=""+z.key),z)Z.call(z,de)&&!M.hasOwnProperty(de)&&(ee[de]=z[de]);var Ce=arguments.length-2;if(Ce===1)ee.children=ie;else if(1<Ce){for(var Xe=Array(Ce),me=0;me<Ce;me++)Xe[me]=arguments[me+2];ee.children=Xe}if(Q&&Q.defaultProps)for(de in Ce=Q.defaultProps,Ce)ee[de]===void 0&&(ee[de]=Ce[de]);return{$$typeof:r,type:Q,key:Qe,ref:Le,props:ee,_owner:X.current}}function Y(Q,z){return{$$typeof:r,type:Q.type,key:z,ref:Q.ref,props:Q.props,_owner:Q._owner}}function fe(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===r}function K(Q){var z={"=":"=0",":":"=2"};return"$"+Q.replace(/[=:]/g,function(ie){return z[ie]})}var te=/\/+/g;function F(Q,z){return typeof Q=="object"&&Q!==null&&Q.key!=null?K(""+Q.key):z.toString(36)}function re(Q,z,ie,de,ee){var Qe=typeof Q;(Qe==="undefined"||Qe==="boolean")&&(Q=null);var Le=!1;if(Q===null)Le=!0;else switch(Qe){case"string":case"number":Le=!0;break;case"object":switch(Q.$$typeof){case r:case e:Le=!0}}if(Le)return Le=Q,ee=ee(Le),Q=de===""?"."+F(Le,0):de,T(ee)?(ie="",Q!=null&&(ie=Q.replace(te,"$&/")+"/"),re(ee,z,ie,"",function(me){return me})):ee!=null&&(fe(ee)&&(ee=Y(ee,ie+(!ee.key||Le&&Le.key===ee.key?"":(""+ee.key).replace(te,"$&/")+"/")+Q)),z.push(ee)),1;if(Le=0,de=de===""?".":de+":",T(Q))for(var Ce=0;Ce<Q.length;Ce++){Qe=Q[Ce];var Xe=de+F(Qe,Ce);Le+=re(Qe,z,ie,Xe,ee)}else if(Xe=y(Q),typeof Xe=="function")for(Q=Xe.call(Q),Ce=0;!(Qe=Q.next()).done;)Qe=Qe.value,Xe=de+F(Qe,Ce++),Le+=re(Qe,z,ie,Xe,ee);else if(Qe==="object")throw z=String(Q),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return Le}function B(Q,z,ie){if(Q==null)return Q;var de=[],ee=0;return re(Q,de,"","",function(Qe){return z.call(ie,Qe,ee++)}),de}function he(Q){if(Q._status===-1){var z=Q._result;z=z(),z.then(function(ie){(Q._status===0||Q._status===-1)&&(Q._status=1,Q._result=ie)},function(ie){(Q._status===0||Q._status===-1)&&(Q._status=2,Q._result=ie)}),Q._status===-1&&(Q._status=0,Q._result=z)}if(Q._status===1)return Q._result.default;throw Q._result}var ce={current:null},H={transition:null},J={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:H,ReactCurrentOwner:X};function U(){throw Error("act(...) is not supported in production builds of React.")}return We.Children={map:B,forEach:function(Q,z,ie){B(Q,function(){z.apply(this,arguments)},ie)},count:function(Q){var z=0;return B(Q,function(){z++}),z},toArray:function(Q){return B(Q,function(z){return z})||[]},only:function(Q){if(!fe(Q))throw Error("React.Children.only expected to receive a single React element child.");return Q}},We.Component=$,We.Fragment=t,We.Profiler=i,We.PureComponent=_,We.StrictMode=n,We.Suspense=u,We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,We.act=U,We.cloneElement=function(Q,z,ie){if(Q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Q+".");var de=w({},Q.props),ee=Q.key,Qe=Q.ref,Le=Q._owner;if(z!=null){if(z.ref!==void 0&&(Qe=z.ref,Le=X.current),z.key!==void 0&&(ee=""+z.key),Q.type&&Q.type.defaultProps)var Ce=Q.type.defaultProps;for(Xe in z)Z.call(z,Xe)&&!M.hasOwnProperty(Xe)&&(de[Xe]=z[Xe]===void 0&&Ce!==void 0?Ce[Xe]:z[Xe])}var Xe=arguments.length-2;if(Xe===1)de.children=ie;else if(1<Xe){Ce=Array(Xe);for(var me=0;me<Xe;me++)Ce[me]=arguments[me+2];de.children=Ce}return{$$typeof:r,type:Q.type,key:ee,ref:Qe,props:de,_owner:Le}},We.createContext=function(Q){return Q={$$typeof:o,_currentValue:Q,_currentValue2:Q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Q.Provider={$$typeof:l,_context:Q},Q.Consumer=Q},We.createElement=N,We.createFactory=function(Q){var z=N.bind(null,Q);return z.type=Q,z},We.createRef=function(){return{current:null}},We.forwardRef=function(Q){return{$$typeof:c,render:Q}},We.isValidElement=fe,We.lazy=function(Q){return{$$typeof:m,_payload:{_status:-1,_result:Q},_init:he}},We.memo=function(Q,z){return{$$typeof:f,type:Q,compare:z===void 0?null:z}},We.startTransition=function(Q){var z=H.transition;H.transition={};try{Q()}finally{H.transition=z}},We.unstable_act=U,We.useCallback=function(Q,z){return ce.current.useCallback(Q,z)},We.useContext=function(Q){return ce.current.useContext(Q)},We.useDebugValue=function(){},We.useDeferredValue=function(Q){return ce.current.useDeferredValue(Q)},We.useEffect=function(Q,z){return ce.current.useEffect(Q,z)},We.useId=function(){return ce.current.useId()},We.useImperativeHandle=function(Q,z,ie){return ce.current.useImperativeHandle(Q,z,ie)},We.useInsertionEffect=function(Q,z){return ce.current.useInsertionEffect(Q,z)},We.useLayoutEffect=function(Q,z){return ce.current.useLayoutEffect(Q,z)},We.useMemo=function(Q,z){return ce.current.useMemo(Q,z)},We.useReducer=function(Q,z,ie){return ce.current.useReducer(Q,z,ie)},We.useRef=function(Q){return ce.current.useRef(Q)},We.useState=function(Q){return ce.current.useState(Q)},We.useSyncExternalStore=function(Q,z,ie){return ce.current.useSyncExternalStore(Q,z,ie)},We.useTransition=function(){return ce.current.useTransition()},We.version="18.3.1",We}var vm;function tf(){return vm||(vm=1,fh.exports=Ox()),fh.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Sm;function gx(){if(Sm)return Gl;Sm=1;var r=tf(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function o(c,u,f){var m,O={},y=null,S=null;f!==void 0&&(y=""+f),u.key!==void 0&&(y=""+u.key),u.ref!==void 0&&(S=u.ref);for(m in u)n.call(u,m)&&!l.hasOwnProperty(m)&&(O[m]=u[m]);if(c&&c.defaultProps)for(m in u=c.defaultProps,u)O[m]===void 0&&(O[m]=u[m]);return{$$typeof:e,type:c,key:y,ref:S,props:O,_owner:i.current}}return Gl.Fragment=t,Gl.jsx=o,Gl.jsxs=o,Gl}var wm;function yx(){return wm||(wm=1,hh.exports=gx()),hh.exports}var v=yx(),p=tf();const Ba=mx(p);var qa={},dh={exports:{}},Qn={},ph={exports:{}},mh={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var km;function xx(){return km||(km=1,(function(r){function e(H,J){var U=H.length;H.push(J);e:for(;0<U;){var Q=U-1>>>1,z=H[Q];if(0<i(z,J))H[Q]=J,H[U]=z,U=Q;else break e}}function t(H){return H.length===0?null:H[0]}function n(H){if(H.length===0)return null;var J=H[0],U=H.pop();if(U!==J){H[0]=U;e:for(var Q=0,z=H.length,ie=z>>>1;Q<ie;){var de=2*(Q+1)-1,ee=H[de],Qe=de+1,Le=H[Qe];if(0>i(ee,U))Qe<z&&0>i(Le,ee)?(H[Q]=Le,H[Qe]=U,Q=Qe):(H[Q]=ee,H[de]=U,Q=de);else if(Qe<z&&0>i(Le,U))H[Q]=Le,H[Qe]=U,Q=Qe;else break e}}return J}function i(H,J){var U=H.sortIndex-J.sortIndex;return U!==0?U:H.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;r.unstable_now=function(){return l.now()}}else{var o=Date,c=o.now();r.unstable_now=function(){return o.now()-c}}var u=[],f=[],m=1,O=null,y=3,S=!1,w=!1,b=!1,$=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(H){for(var J=t(f);J!==null;){if(J.callback===null)n(f);else if(J.startTime<=H)n(f),J.sortIndex=J.expirationTime,e(u,J);else break;J=t(f)}}function T(H){if(b=!1,A(H),!w)if(t(u)!==null)w=!0,he(Z);else{var J=t(f);J!==null&&ce(T,J.startTime-H)}}function Z(H,J){w=!1,b&&(b=!1,C(N),N=-1),S=!0;var U=y;try{for(A(J),O=t(u);O!==null&&(!(O.expirationTime>J)||H&&!K());){var Q=O.callback;if(typeof Q=="function"){O.callback=null,y=O.priorityLevel;var z=Q(O.expirationTime<=J);J=r.unstable_now(),typeof z=="function"?O.callback=z:O===t(u)&&n(u),A(J)}else n(u);O=t(u)}if(O!==null)var ie=!0;else{var de=t(f);de!==null&&ce(T,de.startTime-J),ie=!1}return ie}finally{O=null,y=U,S=!1}}var X=!1,M=null,N=-1,Y=5,fe=-1;function K(){return!(r.unstable_now()-fe<Y)}function te(){if(M!==null){var H=r.unstable_now();fe=H;var J=!0;try{J=M(!0,H)}finally{J?F():(X=!1,M=null)}}else X=!1}var F;if(typeof _=="function")F=function(){_(te)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,B=re.port2;re.port1.onmessage=te,F=function(){B.postMessage(null)}}else F=function(){$(te,0)};function he(H){M=H,X||(X=!0,F())}function ce(H,J){N=$(function(){H(r.unstable_now())},J)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_continueExecution=function(){w||S||(w=!0,he(Z))},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return y},r.unstable_getFirstCallbackNode=function(){return t(u)},r.unstable_next=function(H){switch(y){case 1:case 2:case 3:var J=3;break;default:J=y}var U=y;y=J;try{return H()}finally{y=U}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(H,J){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var U=y;y=H;try{return J()}finally{y=U}},r.unstable_scheduleCallback=function(H,J,U){var Q=r.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Q+U:Q):U=Q,H){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=U+z,H={id:m++,callback:J,priorityLevel:H,startTime:U,expirationTime:z,sortIndex:-1},U>Q?(H.sortIndex=U,e(f,H),t(u)===null&&H===t(f)&&(b?(C(N),N=-1):b=!0,ce(T,U-Q))):(H.sortIndex=z,e(u,H),w||S||(w=!0,he(Z))),H},r.unstable_shouldYield=K,r.unstable_wrapCallback=function(H){var J=y;return function(){var U=y;y=J;try{return H.apply(this,arguments)}finally{y=U}}}})(mh)),mh}var bm;function vx(){return bm||(bm=1,ph.exports=xx()),ph.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Qm;function Sx(){if(Qm)return Qn;Qm=1;var r=tf(),e=vx();function t(s){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+s,h=1;h<arguments.length;h++)a+="&args[]="+encodeURIComponent(arguments[h]);return"Minified React error #"+s+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function l(s,a){o(s,a),o(s+"Capture",a)}function o(s,a){for(i[s]=a,s=0;s<a.length;s++)n.add(a[s])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},O={};function y(s){return u.call(O,s)?!0:u.call(m,s)?!1:f.test(s)?O[s]=!0:(m[s]=!0,!1)}function S(s,a,h,d){if(h!==null&&h.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return d?!1:h!==null?!h.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function w(s,a,h,d){if(a===null||typeof a>"u"||S(s,a,h,d))return!0;if(d)return!1;if(h!==null)switch(h.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function b(s,a,h,d,g,x,k){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=h,this.propertyName=s,this.type=a,this.sanitizeURL=x,this.removeEmptyString=k}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){$[s]=new b(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var a=s[0];$[a]=new b(a,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){$[s]=new b(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){$[s]=new b(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){$[s]=new b(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){$[s]=new b(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){$[s]=new b(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){$[s]=new b(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){$[s]=new b(s,5,!1,s.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function _(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var a=s.replace(C,_);$[a]=new b(a,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var a=s.replace(C,_);$[a]=new b(a,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var a=s.replace(C,_);$[a]=new b(a,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){$[s]=new b(s,1,!1,s.toLowerCase(),null,!1,!1)}),$.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){$[s]=new b(s,1,!1,s.toLowerCase(),null,!0,!0)});function A(s,a,h,d){var g=$.hasOwnProperty(a)?$[a]:null;(g!==null?g.type!==0:d||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(w(a,h,g,d)&&(h=null),d||g===null?y(a)&&(h===null?s.removeAttribute(a):s.setAttribute(a,""+h)):g.mustUseProperty?s[g.propertyName]=h===null?g.type===3?!1:"":h:(a=g.attributeName,d=g.attributeNamespace,h===null?s.removeAttribute(a):(g=g.type,h=g===3||g===4&&h===!0?"":""+h,d?s.setAttributeNS(d,a,h):s.setAttribute(a,h))))}var T=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z=Symbol.for("react.element"),X=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),fe=Symbol.for("react.provider"),K=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),H=Symbol.iterator;function J(s){return s===null||typeof s!="object"?null:(s=H&&s[H]||s["@@iterator"],typeof s=="function"?s:null)}var U=Object.assign,Q;function z(s){if(Q===void 0)try{throw Error()}catch(h){var a=h.stack.trim().match(/\n( *(at )?)/);Q=a&&a[1]||""}return`
34
- `+Q+s}var ie=!1;function de(s,a){if(!s||ie)return"";ie=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(W){var d=W}Reflect.construct(s,[],a)}else{try{a.call()}catch(W){d=W}s.call(a.prototype)}else{try{throw Error()}catch(W){d=W}s()}}catch(W){if(W&&d&&typeof W.stack=="string"){for(var g=W.stack.split(`
35
- `),x=d.stack.split(`
36
- `),k=g.length-1,P=x.length-1;1<=k&&0<=P&&g[k]!==x[P];)P--;for(;1<=k&&0<=P;k--,P--)if(g[k]!==x[P]){if(k!==1||P!==1)do if(k--,P--,0>P||g[k]!==x[P]){var j=`
37
- `+g[k].replace(" at new "," at ");return s.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",s.displayName)),j}while(1<=k&&0<=P);break}}}finally{ie=!1,Error.prepareStackTrace=h}return(s=s?s.displayName||s.name:"")?z(s):""}function ee(s){switch(s.tag){case 5:return z(s.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return s=de(s.type,!1),s;case 11:return s=de(s.type.render,!1),s;case 1:return s=de(s.type,!0),s;default:return""}}function Qe(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case M:return"Fragment";case X:return"Portal";case Y:return"Profiler";case N:return"StrictMode";case F:return"Suspense";case re:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case K:return(s.displayName||"Context")+".Consumer";case fe:return(s._context.displayName||"Context")+".Provider";case te:var a=s.render;return s=s.displayName,s||(s=a.displayName||a.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case B:return a=s.displayName||null,a!==null?a:Qe(s.type)||"Memo";case he:a=s._payload,s=s._init;try{return Qe(s(a))}catch{}}return null}function Le(s){var a=s.type;switch(s.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=a.render,s=s.displayName||s.name||"",a.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qe(a);case 8:return a===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Ce(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Xe(s){var a=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function me(s){var a=Xe(s)?"checked":"value",h=Object.getOwnPropertyDescriptor(s.constructor.prototype,a),d=""+s[a];if(!s.hasOwnProperty(a)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var g=h.get,x=h.set;return Object.defineProperty(s,a,{configurable:!0,get:function(){return g.call(this)},set:function(k){d=""+k,x.call(this,k)}}),Object.defineProperty(s,a,{enumerable:h.enumerable}),{getValue:function(){return d},setValue:function(k){d=""+k},stopTracking:function(){s._valueTracker=null,delete s[a]}}}}function Te(s){s._valueTracker||(s._valueTracker=me(s))}function je(s){if(!s)return!1;var a=s._valueTracker;if(!a)return!0;var h=a.getValue(),d="";return s&&(d=Xe(s)?s.checked?"true":"false":s.value),s=d,s!==h?(a.setValue(s),!0):!1}function ze(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Ne(s,a){var h=a.checked;return U({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??s._wrapperState.initialChecked})}function Je(s,a){var h=a.defaultValue==null?"":a.defaultValue,d=a.checked!=null?a.checked:a.defaultChecked;h=Ce(a.value!=null?a.value:h),s._wrapperState={initialChecked:d,initialValue:h,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function At(s,a){a=a.checked,a!=null&&A(s,"checked",a,!1)}function De(s,a){At(s,a);var h=Ce(a.value),d=a.type;if(h!=null)d==="number"?(h===0&&s.value===""||s.value!=h)&&(s.value=""+h):s.value!==""+h&&(s.value=""+h);else if(d==="submit"||d==="reset"){s.removeAttribute("value");return}a.hasOwnProperty("value")?En(s,a.type,h):a.hasOwnProperty("defaultValue")&&En(s,a.type,Ce(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(s.defaultChecked=!!a.defaultChecked)}function Ct(s,a,h){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var d=a.type;if(!(d!=="submit"&&d!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+s._wrapperState.initialValue,h||a===s.value||(s.value=a),s.defaultValue=a}h=s.name,h!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,h!==""&&(s.name=h)}function En(s,a,h){(a!=="number"||ze(s.ownerDocument)!==s)&&(h==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+h&&(s.defaultValue=""+h))}var tn=Array.isArray;function yt(s,a,h,d){if(s=s.options,a){a={};for(var g=0;g<h.length;g++)a["$"+h[g]]=!0;for(h=0;h<s.length;h++)g=a.hasOwnProperty("$"+s[h].value),s[h].selected!==g&&(s[h].selected=g),g&&d&&(s[h].defaultSelected=!0)}else{for(h=""+Ce(h),a=null,g=0;g<s.length;g++){if(s[g].value===h){s[g].selected=!0,d&&(s[g].defaultSelected=!0);return}a!==null||s[g].disabled||(a=s[g])}a!==null&&(a.selected=!0)}}function jt(s,a){if(a.dangerouslySetInnerHTML!=null)throw Error(t(91));return U({},a,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function gn(s,a){var h=a.value;if(h==null){if(h=a.children,a=a.defaultValue,h!=null){if(a!=null)throw Error(t(92));if(tn(h)){if(1<h.length)throw Error(t(93));h=h[0]}a=h}a==null&&(a=""),h=a}s._wrapperState={initialValue:Ce(h)}}function ft(s,a){var h=Ce(a.value),d=Ce(a.defaultValue);h!=null&&(h=""+h,h!==s.value&&(s.value=h),a.defaultValue==null&&s.defaultValue!==h&&(s.defaultValue=h)),d!=null&&(s.defaultValue=""+d)}function wt(s){var a=s.textContent;a===s._wrapperState.initialValue&&a!==""&&a!==null&&(s.value=a)}function Tt(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Vt(s,a){return s==null||s==="http://www.w3.org/1999/xhtml"?Tt(a):s==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var xt,Fn=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,h,d,g){MSApp.execUnsafeLocalFunction(function(){return s(a,h,d,g)})}:s})(function(s,a){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=a;else{for(xt=xt||document.createElement("div"),xt.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=xt.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;a.firstChild;)s.appendChild(a.firstChild)}});function yn(s,a){if(a){var h=s.firstChild;if(h&&h===s.lastChild&&h.nodeType===3){h.nodeValue=a;return}}s.textContent=a}var jn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rt=["Webkit","ms","Moz","O"];Object.keys(jn).forEach(function(s){Rt.forEach(function(a){a=a+s.charAt(0).toUpperCase()+s.substring(1),jn[a]=jn[s]})});function zt(s,a,h){return a==null||typeof a=="boolean"||a===""?"":h||typeof a!="number"||a===0||jn.hasOwnProperty(s)&&jn[s]?(""+a).trim():a+"px"}function Vn(s,a){s=s.style;for(var h in a)if(a.hasOwnProperty(h)){var d=h.indexOf("--")===0,g=zt(h,a[h],d);h==="float"&&(h="cssFloat"),d?s.setProperty(h,g):s[h]=g}}var Sr=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wr(s,a){if(a){if(Sr[s]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(t(137,s));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(t(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(t(61))}if(a.style!=null&&typeof a.style!="object")throw Error(t(62))}}function Wi(s,a){if(s.indexOf("-")===-1)return typeof a.is=="string";switch(s){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 ui=null;function Bn(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var hi=null,kr=null,Rn=null;function Hr(s){if(s=Rl(s)){if(typeof hi!="function")throw Error(t(280));var a=s.stateNode;a&&(a=ca(a),hi(s.stateNode,s.type,a))}}function Yr(s){kr?Rn?Rn.push(s):Rn=[s]:kr=s}function xn(){if(kr){var s=kr,a=Rn;if(Rn=kr=null,Hr(s),a)for(s=0;s<a.length;s++)Hr(a[s])}}function hn(s,a){return s(a)}function L(){}var le=!1;function E(s,a,h){if(le)return s(a,h);le=!0;try{return hn(s,a,h)}finally{le=!1,(kr!==null||Rn!==null)&&(L(),xn())}}function q(s,a){var h=s.stateNode;if(h===null)return null;var d=ca(h);if(d===null)return null;h=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(s=s.type,d=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!d;break e;default:s=!1}if(s)return null;if(h&&typeof h!="function")throw Error(t(231,a,typeof h));return h}var ne=!1;if(c)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){ne=!0}}),window.addEventListener("test",ae,ae),window.removeEventListener("test",ae,ae)}catch{ne=!1}function Oe(s,a,h,d,g,x,k,P,j){var W=Array.prototype.slice.call(arguments,3);try{a.apply(h,W)}catch(oe){this.onError(oe)}}var ge=!1,tt=null,nt=!1,Ye=null,_e={onError:function(s){ge=!0,tt=s}};function Bt(s,a,h,d,g,x,k,P,j){ge=!1,tt=null,Oe.apply(_e,arguments)}function it(s,a,h,d,g,x,k,P,j){if(Bt.apply(this,arguments),ge){if(ge){var W=tt;ge=!1,tt=null}else throw Error(t(198));nt||(nt=!0,Ye=W)}}function ot(s){var a=s,h=s;if(s.alternate)for(;a.return;)a=a.return;else{s=a;do a=s,(a.flags&4098)!==0&&(h=a.return),s=a.return;while(s)}return a.tag===3?h:null}function or(s){if(s.tag===13){var a=s.memoizedState;if(a===null&&(s=s.alternate,s!==null&&(a=s.memoizedState)),a!==null)return a.dehydrated}return null}function br(s){if(ot(s)!==s)throw Error(t(188))}function Ff(s){var a=s.alternate;if(!a){if(a=ot(s),a===null)throw Error(t(188));return a!==s?null:s}for(var h=s,d=a;;){var g=h.return;if(g===null)break;var x=g.alternate;if(x===null){if(d=g.return,d!==null){h=d;continue}break}if(g.child===x.child){for(x=g.child;x;){if(x===h)return br(g),s;if(x===d)return br(g),a;x=x.sibling}throw Error(t(188))}if(h.return!==d.return)h=g,d=x;else{for(var k=!1,P=g.child;P;){if(P===h){k=!0,h=g,d=x;break}if(P===d){k=!0,d=g,h=x;break}P=P.sibling}if(!k){for(P=x.child;P;){if(P===h){k=!0,h=x,d=g;break}if(P===d){k=!0,d=x,h=g;break}P=P.sibling}if(!k)throw Error(t(189))}}if(h.alternate!==d)throw Error(t(190))}if(h.tag!==3)throw Error(t(188));return h.stateNode.current===h?s:a}function Ol(s){return s=Ff(s),s!==null?Zt(s):null}function Zt(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var a=Zt(s);if(a!==null)return a;s=s.sibling}return null}var Qr=e.unstable_scheduleCallback,gl=e.unstable_cancelCallback,Do=e.unstable_shouldYield,P5=e.unstable_requestPaint,kt=e.unstable_now,A5=e.unstable_getCurrentPriorityLevel,Zu=e.unstable_ImmediatePriority,Bf=e.unstable_UserBlockingPriority,Io=e.unstable_NormalPriority,C5=e.unstable_LowPriority,qf=e.unstable_IdlePriority,Wo=null,$r=null;function T5(s){if($r&&typeof $r.onCommitFiberRoot=="function")try{$r.onCommitFiberRoot(Wo,s,void 0,(s.current.flags&128)===128)}catch{}}var ar=Math.clz32?Math.clz32:E5,Z5=Math.log,M5=Math.LN2;function E5(s){return s>>>=0,s===0?32:31-(Z5(s)/M5|0)|0}var Ho=64,Yo=4194304;function yl(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Fo(s,a){var h=s.pendingLanes;if(h===0)return 0;var d=0,g=s.suspendedLanes,x=s.pingedLanes,k=h&268435455;if(k!==0){var P=k&~g;P!==0?d=yl(P):(x&=k,x!==0&&(d=yl(x)))}else k=h&~g,k!==0?d=yl(k):x!==0&&(d=yl(x));if(d===0)return 0;if(a!==0&&a!==d&&(a&g)===0&&(g=d&-d,x=a&-a,g>=x||g===16&&(x&4194240)!==0))return a;if((d&4)!==0&&(d|=h&16),a=s.entangledLanes,a!==0)for(s=s.entanglements,a&=d;0<a;)h=31-ar(a),g=1<<h,d|=s[h],a&=~g;return d}function j5(s,a){switch(s){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function V5(s,a){for(var h=s.suspendedLanes,d=s.pingedLanes,g=s.expirationTimes,x=s.pendingLanes;0<x;){var k=31-ar(x),P=1<<k,j=g[k];j===-1?((P&h)===0||(P&d)!==0)&&(g[k]=j5(P,a)):j<=a&&(s.expiredLanes|=P),x&=~P}}function Mu(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Uf(){var s=Ho;return Ho<<=1,(Ho&4194240)===0&&(Ho=64),s}function Eu(s){for(var a=[],h=0;31>h;h++)a.push(s);return a}function xl(s,a,h){s.pendingLanes|=a,a!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,a=31-ar(a),s[a]=h}function R5(s,a){var h=s.pendingLanes&~a;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=a,s.mutableReadLanes&=a,s.entangledLanes&=a,a=s.entanglements;var d=s.eventTimes;for(s=s.expirationTimes;0<h;){var g=31-ar(h),x=1<<g;a[g]=0,d[g]=-1,s[g]=-1,h&=~x}}function ju(s,a){var h=s.entangledLanes|=a;for(s=s.entanglements;h;){var d=31-ar(h),g=1<<d;g&a|s[d]&a&&(s[d]|=a),h&=~g}}var st=0;function Gf(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Kf,Vu,Jf,ed,td,Ru=!1,Bo=[],fi=null,di=null,pi=null,vl=new Map,Sl=new Map,mi=[],L5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nd(s,a){switch(s){case"focusin":case"focusout":fi=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":pi=null;break;case"pointerover":case"pointerout":vl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sl.delete(a.pointerId)}}function wl(s,a,h,d,g,x){return s===null||s.nativeEvent!==x?(s={blockedOn:a,domEventName:h,eventSystemFlags:d,nativeEvent:x,targetContainers:[g]},a!==null&&(a=Rl(a),a!==null&&Vu(a)),s):(s.eventSystemFlags|=d,a=s.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),s)}function X5(s,a,h,d,g){switch(a){case"focusin":return fi=wl(fi,s,a,h,d,g),!0;case"dragenter":return di=wl(di,s,a,h,d,g),!0;case"mouseover":return pi=wl(pi,s,a,h,d,g),!0;case"pointerover":var x=g.pointerId;return vl.set(x,wl(vl.get(x)||null,s,a,h,d,g)),!0;case"gotpointercapture":return x=g.pointerId,Sl.set(x,wl(Sl.get(x)||null,s,a,h,d,g)),!0}return!1}function rd(s){var a=Hi(s.target);if(a!==null){var h=ot(a);if(h!==null){if(a=h.tag,a===13){if(a=or(h),a!==null){s.blockedOn=a,td(s.priority,function(){Jf(h)});return}}else if(a===3&&h.stateNode.current.memoizedState.isDehydrated){s.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}s.blockedOn=null}function qo(s){if(s.blockedOn!==null)return!1;for(var a=s.targetContainers;0<a.length;){var h=Xu(s.domEventName,s.eventSystemFlags,a[0],s.nativeEvent);if(h===null){h=s.nativeEvent;var d=new h.constructor(h.type,h);ui=d,h.target.dispatchEvent(d),ui=null}else return a=Rl(h),a!==null&&Vu(a),s.blockedOn=h,!1;a.shift()}return!0}function id(s,a,h){qo(s)&&h.delete(a)}function N5(){Ru=!1,fi!==null&&qo(fi)&&(fi=null),di!==null&&qo(di)&&(di=null),pi!==null&&qo(pi)&&(pi=null),vl.forEach(id),Sl.forEach(id)}function kl(s,a){s.blockedOn===a&&(s.blockedOn=null,Ru||(Ru=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,N5)))}function bl(s){function a(g){return kl(g,s)}if(0<Bo.length){kl(Bo[0],s);for(var h=1;h<Bo.length;h++){var d=Bo[h];d.blockedOn===s&&(d.blockedOn=null)}}for(fi!==null&&kl(fi,s),di!==null&&kl(di,s),pi!==null&&kl(pi,s),vl.forEach(a),Sl.forEach(a),h=0;h<mi.length;h++)d=mi[h],d.blockedOn===s&&(d.blockedOn=null);for(;0<mi.length&&(h=mi[0],h.blockedOn===null);)rd(h),h.blockedOn===null&&mi.shift()}var ms=T.ReactCurrentBatchConfig,Uo=!0;function _5(s,a,h,d){var g=st,x=ms.transition;ms.transition=null;try{st=1,Lu(s,a,h,d)}finally{st=g,ms.transition=x}}function z5(s,a,h,d){var g=st,x=ms.transition;ms.transition=null;try{st=4,Lu(s,a,h,d)}finally{st=g,ms.transition=x}}function Lu(s,a,h,d){if(Uo){var g=Xu(s,a,h,d);if(g===null)t0(s,a,d,Go,h),nd(s,d);else if(X5(g,s,a,h,d))d.stopPropagation();else if(nd(s,d),a&4&&-1<L5.indexOf(s)){for(;g!==null;){var x=Rl(g);if(x!==null&&Kf(x),x=Xu(s,a,h,d),x===null&&t0(s,a,d,Go,h),x===g)break;g=x}g!==null&&d.stopPropagation()}else t0(s,a,d,null,h)}}var Go=null;function Xu(s,a,h,d){if(Go=null,s=Bn(d),s=Hi(s),s!==null)if(a=ot(s),a===null)s=null;else if(h=a.tag,h===13){if(s=or(a),s!==null)return s;s=null}else if(h===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;s=null}else a!==s&&(s=null);return Go=s,null}function sd(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(A5()){case Zu:return 1;case Bf:return 4;case Io:case C5:return 16;case qf:return 536870912;default:return 16}default:return 16}}var Oi=null,Nu=null,Ko=null;function ld(){if(Ko)return Ko;var s,a=Nu,h=a.length,d,g="value"in Oi?Oi.value:Oi.textContent,x=g.length;for(s=0;s<h&&a[s]===g[s];s++);var k=h-s;for(d=1;d<=k&&a[h-d]===g[x-d];d++);return Ko=g.slice(s,1<d?1-d:void 0)}function Jo(s){var a=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&a===13&&(s=13)):s=a,s===10&&(s=13),32<=s||s===13?s:0}function ea(){return!0}function od(){return!1}function Ln(s){function a(h,d,g,x,k){this._reactName=h,this._targetInst=g,this.type=d,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var P in s)s.hasOwnProperty(P)&&(h=s[P],this[P]=h?h(x):x[P]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?ea:od,this.isPropagationStopped=od,this}return U(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=ea)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=ea)},persist:function(){},isPersistent:ea}),a}var Os={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_u=Ln(Os),Ql=U({},Os,{view:0,detail:0}),D5=Ln(Ql),zu,Du,$l,ta=U({},Ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wu,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==$l&&($l&&s.type==="mousemove"?(zu=s.screenX-$l.screenX,Du=s.screenY-$l.screenY):Du=zu=0,$l=s),zu)},movementY:function(s){return"movementY"in s?s.movementY:Du}}),ad=Ln(ta),I5=U({},ta,{dataTransfer:0}),W5=Ln(I5),H5=U({},Ql,{relatedTarget:0}),Iu=Ln(H5),Y5=U({},Os,{animationName:0,elapsedTime:0,pseudoElement:0}),F5=Ln(Y5),B5=U({},Os,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),q5=Ln(B5),U5=U({},Os,{data:0}),cd=Ln(U5),G5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K5={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"},J5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(s){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(s):(s=J5[s])?!!a[s]:!1}function Wu(){return ey}var ty=U({},Ql,{key:function(s){if(s.key){var a=G5[s.key]||s.key;if(a!=="Unidentified")return a}return s.type==="keypress"?(s=Jo(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?K5[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wu,charCode:function(s){return s.type==="keypress"?Jo(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Jo(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),ny=Ln(ty),ry=U({},ta,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=Ln(ry),iy=U({},Ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wu}),sy=Ln(iy),ly=U({},Os,{propertyName:0,elapsedTime:0,pseudoElement:0}),oy=Ln(ly),ay=U({},ta,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),cy=Ln(ay),uy=[9,13,27,32],Hu=c&&"CompositionEvent"in window,Pl=null;c&&"documentMode"in document&&(Pl=document.documentMode);var hy=c&&"TextEvent"in window&&!Pl,hd=c&&(!Hu||Pl&&8<Pl&&11>=Pl),fd=" ",dd=!1;function pd(s,a){switch(s){case"keyup":return uy.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function md(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var gs=!1;function fy(s,a){switch(s){case"compositionend":return md(a);case"keypress":return a.which!==32?null:(dd=!0,fd);case"textInput":return s=a.data,s===fd&&dd?null:s;default:return null}}function dy(s,a){if(gs)return s==="compositionend"||!Hu&&pd(s,a)?(s=ld(),Ko=Nu=Oi=null,gs=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return hd&&a.locale!=="ko"?null:a.data;default:return null}}var py={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 Od(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a==="input"?!!py[s.type]:a==="textarea"}function gd(s,a,h,d){Yr(d),a=la(a,"onChange"),0<a.length&&(h=new _u("onChange","change",null,h,d),s.push({event:h,listeners:a}))}var Al=null,Cl=null;function my(s){Vd(s,0)}function na(s){var a=ws(s);if(je(a))return s}function Oy(s,a){if(s==="change")return a}var yd=!1;if(c){var Yu;if(c){var Fu="oninput"in document;if(!Fu){var xd=document.createElement("div");xd.setAttribute("oninput","return;"),Fu=typeof xd.oninput=="function"}Yu=Fu}else Yu=!1;yd=Yu&&(!document.documentMode||9<document.documentMode)}function vd(){Al&&(Al.detachEvent("onpropertychange",Sd),Cl=Al=null)}function Sd(s){if(s.propertyName==="value"&&na(Cl)){var a=[];gd(a,Cl,s,Bn(s)),E(my,a)}}function gy(s,a,h){s==="focusin"?(vd(),Al=a,Cl=h,Al.attachEvent("onpropertychange",Sd)):s==="focusout"&&vd()}function yy(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return na(Cl)}function xy(s,a){if(s==="click")return na(a)}function vy(s,a){if(s==="input"||s==="change")return na(a)}function Sy(s,a){return s===a&&(s!==0||1/s===1/a)||s!==s&&a!==a}var cr=typeof Object.is=="function"?Object.is:Sy;function Tl(s,a){if(cr(s,a))return!0;if(typeof s!="object"||s===null||typeof a!="object"||a===null)return!1;var h=Object.keys(s),d=Object.keys(a);if(h.length!==d.length)return!1;for(d=0;d<h.length;d++){var g=h[d];if(!u.call(a,g)||!cr(s[g],a[g]))return!1}return!0}function wd(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function kd(s,a){var h=wd(s);s=0;for(var d;h;){if(h.nodeType===3){if(d=s+h.textContent.length,s<=a&&d>=a)return{node:h,offset:a-s};s=d}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=wd(h)}}function bd(s,a){return s&&a?s===a?!0:s&&s.nodeType===3?!1:a&&a.nodeType===3?bd(s,a.parentNode):"contains"in s?s.contains(a):s.compareDocumentPosition?!!(s.compareDocumentPosition(a)&16):!1:!1}function Qd(){for(var s=window,a=ze();a instanceof s.HTMLIFrameElement;){try{var h=typeof a.contentWindow.location.href=="string"}catch{h=!1}if(h)s=a.contentWindow;else break;a=ze(s.document)}return a}function Bu(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a&&(a==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||a==="textarea"||s.contentEditable==="true")}function wy(s){var a=Qd(),h=s.focusedElem,d=s.selectionRange;if(a!==h&&h&&h.ownerDocument&&bd(h.ownerDocument.documentElement,h)){if(d!==null&&Bu(h)){if(a=d.start,s=d.end,s===void 0&&(s=a),"selectionStart"in h)h.selectionStart=a,h.selectionEnd=Math.min(s,h.value.length);else if(s=(a=h.ownerDocument||document)&&a.defaultView||window,s.getSelection){s=s.getSelection();var g=h.textContent.length,x=Math.min(d.start,g);d=d.end===void 0?x:Math.min(d.end,g),!s.extend&&x>d&&(g=d,d=x,x=g),g=kd(h,x);var k=kd(h,d);g&&k&&(s.rangeCount!==1||s.anchorNode!==g.node||s.anchorOffset!==g.offset||s.focusNode!==k.node||s.focusOffset!==k.offset)&&(a=a.createRange(),a.setStart(g.node,g.offset),s.removeAllRanges(),x>d?(s.addRange(a),s.extend(k.node,k.offset)):(a.setEnd(k.node,k.offset),s.addRange(a)))}}for(a=[],s=h;s=s.parentNode;)s.nodeType===1&&a.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<a.length;h++)s=a[h],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var ky=c&&"documentMode"in document&&11>=document.documentMode,ys=null,qu=null,Zl=null,Uu=!1;function $d(s,a,h){var d=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Uu||ys==null||ys!==ze(d)||(d=ys,"selectionStart"in d&&Bu(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Zl&&Tl(Zl,d)||(Zl=d,d=la(qu,"onSelect"),0<d.length&&(a=new _u("onSelect","select",null,a,h),s.push({event:a,listeners:d}),a.target=ys)))}function ra(s,a){var h={};return h[s.toLowerCase()]=a.toLowerCase(),h["Webkit"+s]="webkit"+a,h["Moz"+s]="moz"+a,h}var xs={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionend:ra("Transition","TransitionEnd")},Gu={},Pd={};c&&(Pd=document.createElement("div").style,"AnimationEvent"in window||(delete xs.animationend.animation,delete xs.animationiteration.animation,delete xs.animationstart.animation),"TransitionEvent"in window||delete xs.transitionend.transition);function ia(s){if(Gu[s])return Gu[s];if(!xs[s])return s;var a=xs[s],h;for(h in a)if(a.hasOwnProperty(h)&&h in Pd)return Gu[s]=a[h];return s}var Ad=ia("animationend"),Cd=ia("animationiteration"),Td=ia("animationstart"),Zd=ia("transitionend"),Md=new Map,Ed="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gi(s,a){Md.set(s,a),l(a,[s])}for(var Ku=0;Ku<Ed.length;Ku++){var Ju=Ed[Ku],by=Ju.toLowerCase(),Qy=Ju[0].toUpperCase()+Ju.slice(1);gi(by,"on"+Qy)}gi(Ad,"onAnimationEnd"),gi(Cd,"onAnimationIteration"),gi(Td,"onAnimationStart"),gi("dblclick","onDoubleClick"),gi("focusin","onFocus"),gi("focusout","onBlur"),gi(Zd,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ml="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(" "),$y=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ml));function jd(s,a,h){var d=s.type||"unknown-event";s.currentTarget=h,it(d,a,void 0,s),s.currentTarget=null}function Vd(s,a){a=(a&4)!==0;for(var h=0;h<s.length;h++){var d=s[h],g=d.event;d=d.listeners;e:{var x=void 0;if(a)for(var k=d.length-1;0<=k;k--){var P=d[k],j=P.instance,W=P.currentTarget;if(P=P.listener,j!==x&&g.isPropagationStopped())break e;jd(g,P,W),x=j}else for(k=0;k<d.length;k++){if(P=d[k],j=P.instance,W=P.currentTarget,P=P.listener,j!==x&&g.isPropagationStopped())break e;jd(g,P,W),x=j}}}if(nt)throw s=Ye,nt=!1,Ye=null,s}function ut(s,a){var h=a[o0];h===void 0&&(h=a[o0]=new Set);var d=s+"__bubble";h.has(d)||(Rd(a,s,2,!1),h.add(d))}function e0(s,a,h){var d=0;a&&(d|=4),Rd(h,s,d,a)}var sa="_reactListening"+Math.random().toString(36).slice(2);function El(s){if(!s[sa]){s[sa]=!0,n.forEach(function(h){h!=="selectionchange"&&($y.has(h)||e0(h,!1,s),e0(h,!0,s))});var a=s.nodeType===9?s:s.ownerDocument;a===null||a[sa]||(a[sa]=!0,e0("selectionchange",!1,a))}}function Rd(s,a,h,d){switch(sd(a)){case 1:var g=_5;break;case 4:g=z5;break;default:g=Lu}h=g.bind(null,a,h,s),g=void 0,!ne||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),d?g!==void 0?s.addEventListener(a,h,{capture:!0,passive:g}):s.addEventListener(a,h,!0):g!==void 0?s.addEventListener(a,h,{passive:g}):s.addEventListener(a,h,!1)}function t0(s,a,h,d,g){var x=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var k=d.tag;if(k===3||k===4){var P=d.stateNode.containerInfo;if(P===g||P.nodeType===8&&P.parentNode===g)break;if(k===4)for(k=d.return;k!==null;){var j=k.tag;if((j===3||j===4)&&(j=k.stateNode.containerInfo,j===g||j.nodeType===8&&j.parentNode===g))return;k=k.return}for(;P!==null;){if(k=Hi(P),k===null)return;if(j=k.tag,j===5||j===6){d=x=k;continue e}P=P.parentNode}}d=d.return}E(function(){var W=x,oe=Bn(h),ue=[];e:{var se=Md.get(s);if(se!==void 0){var xe=_u,we=s;switch(s){case"keypress":if(Jo(h)===0)break e;case"keydown":case"keyup":xe=ny;break;case"focusin":we="focus",xe=Iu;break;case"focusout":we="blur",xe=Iu;break;case"beforeblur":case"afterblur":xe=Iu;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=W5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=sy;break;case Ad:case Cd:case Td:xe=F5;break;case Zd:xe=oy;break;case"scroll":xe=D5;break;case"wheel":xe=cy;break;case"copy":case"cut":case"paste":xe=q5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=ud}var $e=(a&4)!==0,bt=!$e&&s==="scroll",D=$e?se!==null?se+"Capture":null:se;$e=[];for(var R=W,I;R!==null;){I=R;var pe=I.stateNode;if(I.tag===5&&pe!==null&&(I=pe,D!==null&&(pe=q(R,D),pe!=null&&$e.push(jl(R,pe,I)))),bt)break;R=R.return}0<$e.length&&(se=new xe(se,we,null,h,oe),ue.push({event:se,listeners:$e}))}}if((a&7)===0){e:{if(se=s==="mouseover"||s==="pointerover",xe=s==="mouseout"||s==="pointerout",se&&h!==ui&&(we=h.relatedTarget||h.fromElement)&&(Hi(we)||we[Fr]))break e;if((xe||se)&&(se=oe.window===oe?oe:(se=oe.ownerDocument)?se.defaultView||se.parentWindow:window,xe?(we=h.relatedTarget||h.toElement,xe=W,we=we?Hi(we):null,we!==null&&(bt=ot(we),we!==bt||we.tag!==5&&we.tag!==6)&&(we=null)):(xe=null,we=W),xe!==we)){if($e=ad,pe="onMouseLeave",D="onMouseEnter",R="mouse",(s==="pointerout"||s==="pointerover")&&($e=ud,pe="onPointerLeave",D="onPointerEnter",R="pointer"),bt=xe==null?se:ws(xe),I=we==null?se:ws(we),se=new $e(pe,R+"leave",xe,h,oe),se.target=bt,se.relatedTarget=I,pe=null,Hi(oe)===W&&($e=new $e(D,R+"enter",we,h,oe),$e.target=I,$e.relatedTarget=bt,pe=$e),bt=pe,xe&&we)t:{for($e=xe,D=we,R=0,I=$e;I;I=vs(I))R++;for(I=0,pe=D;pe;pe=vs(pe))I++;for(;0<R-I;)$e=vs($e),R--;for(;0<I-R;)D=vs(D),I--;for(;R--;){if($e===D||D!==null&&$e===D.alternate)break t;$e=vs($e),D=vs(D)}$e=null}else $e=null;xe!==null&&Ld(ue,se,xe,$e,!1),we!==null&&bt!==null&&Ld(ue,bt,we,$e,!0)}}e:{if(se=W?ws(W):window,xe=se.nodeName&&se.nodeName.toLowerCase(),xe==="select"||xe==="input"&&se.type==="file")var Pe=Oy;else if(Od(se))if(yd)Pe=vy;else{Pe=yy;var Ze=gy}else(xe=se.nodeName)&&xe.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(Pe=xy);if(Pe&&(Pe=Pe(s,W))){gd(ue,Pe,h,oe);break e}Ze&&Ze(s,se,W),s==="focusout"&&(Ze=se._wrapperState)&&Ze.controlled&&se.type==="number"&&En(se,"number",se.value)}switch(Ze=W?ws(W):window,s){case"focusin":(Od(Ze)||Ze.contentEditable==="true")&&(ys=Ze,qu=W,Zl=null);break;case"focusout":Zl=qu=ys=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,$d(ue,h,oe);break;case"selectionchange":if(ky)break;case"keydown":case"keyup":$d(ue,h,oe)}var Me;if(Hu)e:{switch(s){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else gs?pd(s,h)&&(Ve="onCompositionEnd"):s==="keydown"&&h.keyCode===229&&(Ve="onCompositionStart");Ve&&(hd&&h.locale!=="ko"&&(gs||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&gs&&(Me=ld()):(Oi=oe,Nu="value"in Oi?Oi.value:Oi.textContent,gs=!0)),Ze=la(W,Ve),0<Ze.length&&(Ve=new cd(Ve,s,null,h,oe),ue.push({event:Ve,listeners:Ze}),Me?Ve.data=Me:(Me=md(h),Me!==null&&(Ve.data=Me)))),(Me=hy?fy(s,h):dy(s,h))&&(W=la(W,"onBeforeInput"),0<W.length&&(oe=new cd("onBeforeInput","beforeinput",null,h,oe),ue.push({event:oe,listeners:W}),oe.data=Me))}Vd(ue,a)})}function jl(s,a,h){return{instance:s,listener:a,currentTarget:h}}function la(s,a){for(var h=a+"Capture",d=[];s!==null;){var g=s,x=g.stateNode;g.tag===5&&x!==null&&(g=x,x=q(s,h),x!=null&&d.unshift(jl(s,x,g)),x=q(s,a),x!=null&&d.push(jl(s,x,g))),s=s.return}return d}function vs(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Ld(s,a,h,d,g){for(var x=a._reactName,k=[];h!==null&&h!==d;){var P=h,j=P.alternate,W=P.stateNode;if(j!==null&&j===d)break;P.tag===5&&W!==null&&(P=W,g?(j=q(h,x),j!=null&&k.unshift(jl(h,j,P))):g||(j=q(h,x),j!=null&&k.push(jl(h,j,P)))),h=h.return}k.length!==0&&s.push({event:a,listeners:k})}var Py=/\r\n?/g,Ay=/\u0000|\uFFFD/g;function Xd(s){return(typeof s=="string"?s:""+s).replace(Py,`
38
- `).replace(Ay,"")}function oa(s,a,h){if(a=Xd(a),Xd(s)!==a&&h)throw Error(t(425))}function aa(){}var n0=null,r0=null;function i0(s,a){return s==="textarea"||s==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var s0=typeof setTimeout=="function"?setTimeout:void 0,Cy=typeof clearTimeout=="function"?clearTimeout:void 0,Nd=typeof Promise=="function"?Promise:void 0,Ty=typeof queueMicrotask=="function"?queueMicrotask:typeof Nd<"u"?function(s){return Nd.resolve(null).then(s).catch(Zy)}:s0;function Zy(s){setTimeout(function(){throw s})}function l0(s,a){var h=a,d=0;do{var g=h.nextSibling;if(s.removeChild(h),g&&g.nodeType===8)if(h=g.data,h==="/$"){if(d===0){s.removeChild(g),bl(a);return}d--}else h!=="$"&&h!=="$?"&&h!=="$!"||d++;h=g}while(h);bl(a)}function yi(s){for(;s!=null;s=s.nextSibling){var a=s.nodeType;if(a===1||a===3)break;if(a===8){if(a=s.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return s}function _d(s){s=s.previousSibling;for(var a=0;s;){if(s.nodeType===8){var h=s.data;if(h==="$"||h==="$!"||h==="$?"){if(a===0)return s;a--}else h==="/$"&&a++}s=s.previousSibling}return null}var Ss=Math.random().toString(36).slice(2),Pr="__reactFiber$"+Ss,Vl="__reactProps$"+Ss,Fr="__reactContainer$"+Ss,o0="__reactEvents$"+Ss,My="__reactListeners$"+Ss,Ey="__reactHandles$"+Ss;function Hi(s){var a=s[Pr];if(a)return a;for(var h=s.parentNode;h;){if(a=h[Fr]||h[Pr]){if(h=a.alternate,a.child!==null||h!==null&&h.child!==null)for(s=_d(s);s!==null;){if(h=s[Pr])return h;s=_d(s)}return a}s=h,h=s.parentNode}return null}function Rl(s){return s=s[Pr]||s[Fr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function ws(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(t(33))}function ca(s){return s[Vl]||null}var a0=[],ks=-1;function xi(s){return{current:s}}function ht(s){0>ks||(s.current=a0[ks],a0[ks]=null,ks--)}function at(s,a){ks++,a0[ks]=s.current,s.current=a}var vi={},nn=xi(vi),vn=xi(!1),Yi=vi;function bs(s,a){var h=s.type.contextTypes;if(!h)return vi;var d=s.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===a)return d.__reactInternalMemoizedMaskedChildContext;var g={},x;for(x in h)g[x]=a[x];return d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=a,s.__reactInternalMemoizedMaskedChildContext=g),g}function Sn(s){return s=s.childContextTypes,s!=null}function ua(){ht(vn),ht(nn)}function zd(s,a,h){if(nn.current!==vi)throw Error(t(168));at(nn,a),at(vn,h)}function Dd(s,a,h){var d=s.stateNode;if(a=a.childContextTypes,typeof d.getChildContext!="function")return h;d=d.getChildContext();for(var g in d)if(!(g in a))throw Error(t(108,Le(s)||"Unknown",g));return U({},h,d)}function ha(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||vi,Yi=nn.current,at(nn,s),at(vn,vn.current),!0}function Id(s,a,h){var d=s.stateNode;if(!d)throw Error(t(169));h?(s=Dd(s,a,Yi),d.__reactInternalMemoizedMergedChildContext=s,ht(vn),ht(nn),at(nn,s)):ht(vn),at(vn,h)}var Br=null,fa=!1,c0=!1;function Wd(s){Br===null?Br=[s]:Br.push(s)}function jy(s){fa=!0,Wd(s)}function Si(){if(!c0&&Br!==null){c0=!0;var s=0,a=st;try{var h=Br;for(st=1;s<h.length;s++){var d=h[s];do d=d(!0);while(d!==null)}Br=null,fa=!1}catch(g){throw Br!==null&&(Br=Br.slice(s+1)),Qr(Zu,Si),g}finally{st=a,c0=!1}}return null}var Qs=[],$s=0,da=null,pa=0,qn=[],Un=0,Fi=null,qr=1,Ur="";function Bi(s,a){Qs[$s++]=pa,Qs[$s++]=da,da=s,pa=a}function Hd(s,a,h){qn[Un++]=qr,qn[Un++]=Ur,qn[Un++]=Fi,Fi=s;var d=qr;s=Ur;var g=32-ar(d)-1;d&=~(1<<g),h+=1;var x=32-ar(a)+g;if(30<x){var k=g-g%5;x=(d&(1<<k)-1).toString(32),d>>=k,g-=k,qr=1<<32-ar(a)+g|h<<g|d,Ur=x+s}else qr=1<<x|h<<g|d,Ur=s}function u0(s){s.return!==null&&(Bi(s,1),Hd(s,1,0))}function h0(s){for(;s===da;)da=Qs[--$s],Qs[$s]=null,pa=Qs[--$s],Qs[$s]=null;for(;s===Fi;)Fi=qn[--Un],qn[Un]=null,Ur=qn[--Un],qn[Un]=null,qr=qn[--Un],qn[Un]=null}var Xn=null,Nn=null,dt=!1,ur=null;function Yd(s,a){var h=er(5,null,null,0);h.elementType="DELETED",h.stateNode=a,h.return=s,a=s.deletions,a===null?(s.deletions=[h],s.flags|=16):a.push(h)}function Fd(s,a){switch(s.tag){case 5:var h=s.type;return a=a.nodeType!==1||h.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(s.stateNode=a,Xn=s,Nn=yi(a.firstChild),!0):!1;case 6:return a=s.pendingProps===""||a.nodeType!==3?null:a,a!==null?(s.stateNode=a,Xn=s,Nn=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(h=Fi!==null?{id:qr,overflow:Ur}:null,s.memoizedState={dehydrated:a,treeContext:h,retryLane:1073741824},h=er(18,null,null,0),h.stateNode=a,h.return=s,s.child=h,Xn=s,Nn=null,!0):!1;default:return!1}}function f0(s){return(s.mode&1)!==0&&(s.flags&128)===0}function d0(s){if(dt){var a=Nn;if(a){var h=a;if(!Fd(s,a)){if(f0(s))throw Error(t(418));a=yi(h.nextSibling);var d=Xn;a&&Fd(s,a)?Yd(d,h):(s.flags=s.flags&-4097|2,dt=!1,Xn=s)}}else{if(f0(s))throw Error(t(418));s.flags=s.flags&-4097|2,dt=!1,Xn=s}}}function Bd(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;Xn=s}function ma(s){if(s!==Xn)return!1;if(!dt)return Bd(s),dt=!0,!1;var a;if((a=s.tag!==3)&&!(a=s.tag!==5)&&(a=s.type,a=a!=="head"&&a!=="body"&&!i0(s.type,s.memoizedProps)),a&&(a=Nn)){if(f0(s))throw qd(),Error(t(418));for(;a;)Yd(s,a),a=yi(a.nextSibling)}if(Bd(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(t(317));e:{for(s=s.nextSibling,a=0;s;){if(s.nodeType===8){var h=s.data;if(h==="/$"){if(a===0){Nn=yi(s.nextSibling);break e}a--}else h!=="$"&&h!=="$!"&&h!=="$?"||a++}s=s.nextSibling}Nn=null}}else Nn=Xn?yi(s.stateNode.nextSibling):null;return!0}function qd(){for(var s=Nn;s;)s=yi(s.nextSibling)}function Ps(){Nn=Xn=null,dt=!1}function p0(s){ur===null?ur=[s]:ur.push(s)}var Vy=T.ReactCurrentBatchConfig;function Ll(s,a,h){if(s=h.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(h._owner){if(h=h._owner,h){if(h.tag!==1)throw Error(t(309));var d=h.stateNode}if(!d)throw Error(t(147,s));var g=d,x=""+s;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===x?a.ref:(a=function(k){var P=g.refs;k===null?delete P[x]:P[x]=k},a._stringRef=x,a)}if(typeof s!="string")throw Error(t(284));if(!h._owner)throw Error(t(290,s))}return s}function Oa(s,a){throw s=Object.prototype.toString.call(a),Error(t(31,s==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":s))}function Ud(s){var a=s._init;return a(s._payload)}function Gd(s){function a(D,R){if(s){var I=D.deletions;I===null?(D.deletions=[R],D.flags|=16):I.push(R)}}function h(D,R){if(!s)return null;for(;R!==null;)a(D,R),R=R.sibling;return null}function d(D,R){for(D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function g(D,R){return D=Ci(D,R),D.index=0,D.sibling=null,D}function x(D,R,I){return D.index=I,s?(I=D.alternate,I!==null?(I=I.index,I<R?(D.flags|=2,R):I):(D.flags|=2,R)):(D.flags|=1048576,R)}function k(D){return s&&D.alternate===null&&(D.flags|=2),D}function P(D,R,I,pe){return R===null||R.tag!==6?(R=sh(I,D.mode,pe),R.return=D,R):(R=g(R,I),R.return=D,R)}function j(D,R,I,pe){var Pe=I.type;return Pe===M?oe(D,R,I.props.children,pe,I.key):R!==null&&(R.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===he&&Ud(Pe)===R.type)?(pe=g(R,I.props),pe.ref=Ll(D,R,I),pe.return=D,pe):(pe=_a(I.type,I.key,I.props,null,D.mode,pe),pe.ref=Ll(D,R,I),pe.return=D,pe)}function W(D,R,I,pe){return R===null||R.tag!==4||R.stateNode.containerInfo!==I.containerInfo||R.stateNode.implementation!==I.implementation?(R=lh(I,D.mode,pe),R.return=D,R):(R=g(R,I.children||[]),R.return=D,R)}function oe(D,R,I,pe,Pe){return R===null||R.tag!==7?(R=ns(I,D.mode,pe,Pe),R.return=D,R):(R=g(R,I),R.return=D,R)}function ue(D,R,I){if(typeof R=="string"&&R!==""||typeof R=="number")return R=sh(""+R,D.mode,I),R.return=D,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Z:return I=_a(R.type,R.key,R.props,null,D.mode,I),I.ref=Ll(D,null,R),I.return=D,I;case X:return R=lh(R,D.mode,I),R.return=D,R;case he:var pe=R._init;return ue(D,pe(R._payload),I)}if(tn(R)||J(R))return R=ns(R,D.mode,I,null),R.return=D,R;Oa(D,R)}return null}function se(D,R,I,pe){var Pe=R!==null?R.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return Pe!==null?null:P(D,R,""+I,pe);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Z:return I.key===Pe?j(D,R,I,pe):null;case X:return I.key===Pe?W(D,R,I,pe):null;case he:return Pe=I._init,se(D,R,Pe(I._payload),pe)}if(tn(I)||J(I))return Pe!==null?null:oe(D,R,I,pe,null);Oa(D,I)}return null}function xe(D,R,I,pe,Pe){if(typeof pe=="string"&&pe!==""||typeof pe=="number")return D=D.get(I)||null,P(R,D,""+pe,Pe);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case Z:return D=D.get(pe.key===null?I:pe.key)||null,j(R,D,pe,Pe);case X:return D=D.get(pe.key===null?I:pe.key)||null,W(R,D,pe,Pe);case he:var Ze=pe._init;return xe(D,R,I,Ze(pe._payload),Pe)}if(tn(pe)||J(pe))return D=D.get(I)||null,oe(R,D,pe,Pe,null);Oa(R,pe)}return null}function we(D,R,I,pe){for(var Pe=null,Ze=null,Me=R,Ve=R=0,Wt=null;Me!==null&&Ve<I.length;Ve++){Me.index>Ve?(Wt=Me,Me=null):Wt=Me.sibling;var Ge=se(D,Me,I[Ve],pe);if(Ge===null){Me===null&&(Me=Wt);break}s&&Me&&Ge.alternate===null&&a(D,Me),R=x(Ge,R,Ve),Ze===null?Pe=Ge:Ze.sibling=Ge,Ze=Ge,Me=Wt}if(Ve===I.length)return h(D,Me),dt&&Bi(D,Ve),Pe;if(Me===null){for(;Ve<I.length;Ve++)Me=ue(D,I[Ve],pe),Me!==null&&(R=x(Me,R,Ve),Ze===null?Pe=Me:Ze.sibling=Me,Ze=Me);return dt&&Bi(D,Ve),Pe}for(Me=d(D,Me);Ve<I.length;Ve++)Wt=xe(Me,D,Ve,I[Ve],pe),Wt!==null&&(s&&Wt.alternate!==null&&Me.delete(Wt.key===null?Ve:Wt.key),R=x(Wt,R,Ve),Ze===null?Pe=Wt:Ze.sibling=Wt,Ze=Wt);return s&&Me.forEach(function(Ti){return a(D,Ti)}),dt&&Bi(D,Ve),Pe}function $e(D,R,I,pe){var Pe=J(I);if(typeof Pe!="function")throw Error(t(150));if(I=Pe.call(I),I==null)throw Error(t(151));for(var Ze=Pe=null,Me=R,Ve=R=0,Wt=null,Ge=I.next();Me!==null&&!Ge.done;Ve++,Ge=I.next()){Me.index>Ve?(Wt=Me,Me=null):Wt=Me.sibling;var Ti=se(D,Me,Ge.value,pe);if(Ti===null){Me===null&&(Me=Wt);break}s&&Me&&Ti.alternate===null&&a(D,Me),R=x(Ti,R,Ve),Ze===null?Pe=Ti:Ze.sibling=Ti,Ze=Ti,Me=Wt}if(Ge.done)return h(D,Me),dt&&Bi(D,Ve),Pe;if(Me===null){for(;!Ge.done;Ve++,Ge=I.next())Ge=ue(D,Ge.value,pe),Ge!==null&&(R=x(Ge,R,Ve),Ze===null?Pe=Ge:Ze.sibling=Ge,Ze=Ge);return dt&&Bi(D,Ve),Pe}for(Me=d(D,Me);!Ge.done;Ve++,Ge=I.next())Ge=xe(Me,D,Ve,Ge.value,pe),Ge!==null&&(s&&Ge.alternate!==null&&Me.delete(Ge.key===null?Ve:Ge.key),R=x(Ge,R,Ve),Ze===null?Pe=Ge:Ze.sibling=Ge,Ze=Ge);return s&&Me.forEach(function(px){return a(D,px)}),dt&&Bi(D,Ve),Pe}function bt(D,R,I,pe){if(typeof I=="object"&&I!==null&&I.type===M&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case Z:e:{for(var Pe=I.key,Ze=R;Ze!==null;){if(Ze.key===Pe){if(Pe=I.type,Pe===M){if(Ze.tag===7){h(D,Ze.sibling),R=g(Ze,I.props.children),R.return=D,D=R;break e}}else if(Ze.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===he&&Ud(Pe)===Ze.type){h(D,Ze.sibling),R=g(Ze,I.props),R.ref=Ll(D,Ze,I),R.return=D,D=R;break e}h(D,Ze);break}else a(D,Ze);Ze=Ze.sibling}I.type===M?(R=ns(I.props.children,D.mode,pe,I.key),R.return=D,D=R):(pe=_a(I.type,I.key,I.props,null,D.mode,pe),pe.ref=Ll(D,R,I),pe.return=D,D=pe)}return k(D);case X:e:{for(Ze=I.key;R!==null;){if(R.key===Ze)if(R.tag===4&&R.stateNode.containerInfo===I.containerInfo&&R.stateNode.implementation===I.implementation){h(D,R.sibling),R=g(R,I.children||[]),R.return=D,D=R;break e}else{h(D,R);break}else a(D,R);R=R.sibling}R=lh(I,D.mode,pe),R.return=D,D=R}return k(D);case he:return Ze=I._init,bt(D,R,Ze(I._payload),pe)}if(tn(I))return we(D,R,I,pe);if(J(I))return $e(D,R,I,pe);Oa(D,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,R!==null&&R.tag===6?(h(D,R.sibling),R=g(R,I),R.return=D,D=R):(h(D,R),R=sh(I,D.mode,pe),R.return=D,D=R),k(D)):h(D,R)}return bt}var As=Gd(!0),Kd=Gd(!1),ga=xi(null),ya=null,Cs=null,m0=null;function O0(){m0=Cs=ya=null}function g0(s){var a=ga.current;ht(ga),s._currentValue=a}function y0(s,a,h){for(;s!==null;){var d=s.alternate;if((s.childLanes&a)!==a?(s.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),s===h)break;s=s.return}}function Ts(s,a){ya=s,m0=Cs=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&a)!==0&&(wn=!0),s.firstContext=null)}function Gn(s){var a=s._currentValue;if(m0!==s)if(s={context:s,memoizedValue:a,next:null},Cs===null){if(ya===null)throw Error(t(308));Cs=s,ya.dependencies={lanes:0,firstContext:s}}else Cs=Cs.next=s;return a}var qi=null;function x0(s){qi===null?qi=[s]:qi.push(s)}function Jd(s,a,h,d){var g=a.interleaved;return g===null?(h.next=h,x0(a)):(h.next=g.next,g.next=h),a.interleaved=h,Gr(s,d)}function Gr(s,a){s.lanes|=a;var h=s.alternate;for(h!==null&&(h.lanes|=a),h=s,s=s.return;s!==null;)s.childLanes|=a,h=s.alternate,h!==null&&(h.childLanes|=a),h=s,s=s.return;return h.tag===3?h.stateNode:null}var wi=!1;function v0(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ep(s,a){s=s.updateQueue,a.updateQueue===s&&(a.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Kr(s,a){return{eventTime:s,lane:a,tag:0,payload:null,callback:null,next:null}}function ki(s,a,h){var d=s.updateQueue;if(d===null)return null;if(d=d.shared,(Be&2)!==0){var g=d.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),d.pending=a,Gr(s,h)}return g=d.interleaved,g===null?(a.next=a,x0(d)):(a.next=g.next,g.next=a),d.interleaved=a,Gr(s,h)}function xa(s,a,h){if(a=a.updateQueue,a!==null&&(a=a.shared,(h&4194240)!==0)){var d=a.lanes;d&=s.pendingLanes,h|=d,a.lanes=h,ju(s,h)}}function tp(s,a){var h=s.updateQueue,d=s.alternate;if(d!==null&&(d=d.updateQueue,h===d)){var g=null,x=null;if(h=h.firstBaseUpdate,h!==null){do{var k={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};x===null?g=x=k:x=x.next=k,h=h.next}while(h!==null);x===null?g=x=a:x=x.next=a}else g=x=a;h={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:x,shared:d.shared,effects:d.effects},s.updateQueue=h;return}s=h.lastBaseUpdate,s===null?h.firstBaseUpdate=a:s.next=a,h.lastBaseUpdate=a}function va(s,a,h,d){var g=s.updateQueue;wi=!1;var x=g.firstBaseUpdate,k=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var j=P,W=j.next;j.next=null,k===null?x=W:k.next=W,k=j;var oe=s.alternate;oe!==null&&(oe=oe.updateQueue,P=oe.lastBaseUpdate,P!==k&&(P===null?oe.firstBaseUpdate=W:P.next=W,oe.lastBaseUpdate=j))}if(x!==null){var ue=g.baseState;k=0,oe=W=j=null,P=x;do{var se=P.lane,xe=P.eventTime;if((d&se)===se){oe!==null&&(oe=oe.next={eventTime:xe,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var we=s,$e=P;switch(se=a,xe=h,$e.tag){case 1:if(we=$e.payload,typeof we=="function"){ue=we.call(xe,ue,se);break e}ue=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=$e.payload,se=typeof we=="function"?we.call(xe,ue,se):we,se==null)break e;ue=U({},ue,se);break e;case 2:wi=!0}}P.callback!==null&&P.lane!==0&&(s.flags|=64,se=g.effects,se===null?g.effects=[P]:se.push(P))}else xe={eventTime:xe,lane:se,tag:P.tag,payload:P.payload,callback:P.callback,next:null},oe===null?(W=oe=xe,j=ue):oe=oe.next=xe,k|=se;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;se=P,P=se.next,se.next=null,g.lastBaseUpdate=se,g.shared.pending=null}}while(!0);if(oe===null&&(j=ue),g.baseState=j,g.firstBaseUpdate=W,g.lastBaseUpdate=oe,a=g.shared.interleaved,a!==null){g=a;do k|=g.lane,g=g.next;while(g!==a)}else x===null&&(g.shared.lanes=0);Ki|=k,s.lanes=k,s.memoizedState=ue}}function np(s,a,h){if(s=a.effects,a.effects=null,s!==null)for(a=0;a<s.length;a++){var d=s[a],g=d.callback;if(g!==null){if(d.callback=null,d=h,typeof g!="function")throw Error(t(191,g));g.call(d)}}}var Xl={},Ar=xi(Xl),Nl=xi(Xl),_l=xi(Xl);function Ui(s){if(s===Xl)throw Error(t(174));return s}function S0(s,a){switch(at(_l,a),at(Nl,s),at(Ar,Xl),s=a.nodeType,s){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:Vt(null,"");break;default:s=s===8?a.parentNode:a,a=s.namespaceURI||null,s=s.tagName,a=Vt(a,s)}ht(Ar),at(Ar,a)}function Zs(){ht(Ar),ht(Nl),ht(_l)}function rp(s){Ui(_l.current);var a=Ui(Ar.current),h=Vt(a,s.type);a!==h&&(at(Nl,s),at(Ar,h))}function w0(s){Nl.current===s&&(ht(Ar),ht(Nl))}var Ot=xi(0);function Sa(s){for(var a=s;a!==null;){if(a.tag===13){var h=a.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var k0=[];function b0(){for(var s=0;s<k0.length;s++)k0[s]._workInProgressVersionPrimary=null;k0.length=0}var wa=T.ReactCurrentDispatcher,Q0=T.ReactCurrentBatchConfig,Gi=0,gt=null,Lt=null,Dt=null,ka=!1,zl=!1,Dl=0,Ry=0;function rn(){throw Error(t(321))}function $0(s,a){if(a===null)return!1;for(var h=0;h<a.length&&h<s.length;h++)if(!cr(s[h],a[h]))return!1;return!0}function P0(s,a,h,d,g,x){if(Gi=x,gt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,wa.current=s===null||s.memoizedState===null?_y:zy,s=h(d,g),zl){x=0;do{if(zl=!1,Dl=0,25<=x)throw Error(t(301));x+=1,Dt=Lt=null,a.updateQueue=null,wa.current=Dy,s=h(d,g)}while(zl)}if(wa.current=$a,a=Lt!==null&&Lt.next!==null,Gi=0,Dt=Lt=gt=null,ka=!1,a)throw Error(t(300));return s}function A0(){var s=Dl!==0;return Dl=0,s}function Cr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?gt.memoizedState=Dt=s:Dt=Dt.next=s,Dt}function Kn(){if(Lt===null){var s=gt.alternate;s=s!==null?s.memoizedState:null}else s=Lt.next;var a=Dt===null?gt.memoizedState:Dt.next;if(a!==null)Dt=a,Lt=s;else{if(s===null)throw Error(t(310));Lt=s,s={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},Dt===null?gt.memoizedState=Dt=s:Dt=Dt.next=s}return Dt}function Il(s,a){return typeof a=="function"?a(s):a}function C0(s){var a=Kn(),h=a.queue;if(h===null)throw Error(t(311));h.lastRenderedReducer=s;var d=Lt,g=d.baseQueue,x=h.pending;if(x!==null){if(g!==null){var k=g.next;g.next=x.next,x.next=k}d.baseQueue=g=x,h.pending=null}if(g!==null){x=g.next,d=d.baseState;var P=k=null,j=null,W=x;do{var oe=W.lane;if((Gi&oe)===oe)j!==null&&(j=j.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),d=W.hasEagerState?W.eagerState:s(d,W.action);else{var ue={lane:oe,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};j===null?(P=j=ue,k=d):j=j.next=ue,gt.lanes|=oe,Ki|=oe}W=W.next}while(W!==null&&W!==x);j===null?k=d:j.next=P,cr(d,a.memoizedState)||(wn=!0),a.memoizedState=d,a.baseState=k,a.baseQueue=j,h.lastRenderedState=d}if(s=h.interleaved,s!==null){g=s;do x=g.lane,gt.lanes|=x,Ki|=x,g=g.next;while(g!==s)}else g===null&&(h.lanes=0);return[a.memoizedState,h.dispatch]}function T0(s){var a=Kn(),h=a.queue;if(h===null)throw Error(t(311));h.lastRenderedReducer=s;var d=h.dispatch,g=h.pending,x=a.memoizedState;if(g!==null){h.pending=null;var k=g=g.next;do x=s(x,k.action),k=k.next;while(k!==g);cr(x,a.memoizedState)||(wn=!0),a.memoizedState=x,a.baseQueue===null&&(a.baseState=x),h.lastRenderedState=x}return[x,d]}function ip(){}function sp(s,a){var h=gt,d=Kn(),g=a(),x=!cr(d.memoizedState,g);if(x&&(d.memoizedState=g,wn=!0),d=d.queue,Z0(ap.bind(null,h,d,s),[s]),d.getSnapshot!==a||x||Dt!==null&&Dt.memoizedState.tag&1){if(h.flags|=2048,Wl(9,op.bind(null,h,d,g,a),void 0,null),It===null)throw Error(t(349));(Gi&30)!==0||lp(h,a,g)}return g}function lp(s,a,h){s.flags|=16384,s={getSnapshot:a,value:h},a=gt.updateQueue,a===null?(a={lastEffect:null,stores:null},gt.updateQueue=a,a.stores=[s]):(h=a.stores,h===null?a.stores=[s]:h.push(s))}function op(s,a,h,d){a.value=h,a.getSnapshot=d,cp(a)&&up(s)}function ap(s,a,h){return h(function(){cp(a)&&up(s)})}function cp(s){var a=s.getSnapshot;s=s.value;try{var h=a();return!cr(s,h)}catch{return!0}}function up(s){var a=Gr(s,1);a!==null&&pr(a,s,1,-1)}function hp(s){var a=Cr();return typeof s=="function"&&(s=s()),a.memoizedState=a.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Il,lastRenderedState:s},a.queue=s,s=s.dispatch=Ny.bind(null,gt,s),[a.memoizedState,s]}function Wl(s,a,h,d){return s={tag:s,create:a,destroy:h,deps:d,next:null},a=gt.updateQueue,a===null?(a={lastEffect:null,stores:null},gt.updateQueue=a,a.lastEffect=s.next=s):(h=a.lastEffect,h===null?a.lastEffect=s.next=s:(d=h.next,h.next=s,s.next=d,a.lastEffect=s)),s}function fp(){return Kn().memoizedState}function ba(s,a,h,d){var g=Cr();gt.flags|=s,g.memoizedState=Wl(1|a,h,void 0,d===void 0?null:d)}function Qa(s,a,h,d){var g=Kn();d=d===void 0?null:d;var x=void 0;if(Lt!==null){var k=Lt.memoizedState;if(x=k.destroy,d!==null&&$0(d,k.deps)){g.memoizedState=Wl(a,h,x,d);return}}gt.flags|=s,g.memoizedState=Wl(1|a,h,x,d)}function dp(s,a){return ba(8390656,8,s,a)}function Z0(s,a){return Qa(2048,8,s,a)}function pp(s,a){return Qa(4,2,s,a)}function mp(s,a){return Qa(4,4,s,a)}function Op(s,a){if(typeof a=="function")return s=s(),a(s),function(){a(null)};if(a!=null)return s=s(),a.current=s,function(){a.current=null}}function gp(s,a,h){return h=h!=null?h.concat([s]):null,Qa(4,4,Op.bind(null,a,s),h)}function M0(){}function yp(s,a){var h=Kn();a=a===void 0?null:a;var d=h.memoizedState;return d!==null&&a!==null&&$0(a,d[1])?d[0]:(h.memoizedState=[s,a],s)}function xp(s,a){var h=Kn();a=a===void 0?null:a;var d=h.memoizedState;return d!==null&&a!==null&&$0(a,d[1])?d[0]:(s=s(),h.memoizedState=[s,a],s)}function vp(s,a,h){return(Gi&21)===0?(s.baseState&&(s.baseState=!1,wn=!0),s.memoizedState=h):(cr(h,a)||(h=Uf(),gt.lanes|=h,Ki|=h,s.baseState=!0),a)}function Ly(s,a){var h=st;st=h!==0&&4>h?h:4,s(!0);var d=Q0.transition;Q0.transition={};try{s(!1),a()}finally{st=h,Q0.transition=d}}function Sp(){return Kn().memoizedState}function Xy(s,a,h){var d=Pi(s);if(h={lane:d,action:h,hasEagerState:!1,eagerState:null,next:null},wp(s))kp(a,h);else if(h=Jd(s,a,h,d),h!==null){var g=dn();pr(h,s,d,g),bp(h,a,d)}}function Ny(s,a,h){var d=Pi(s),g={lane:d,action:h,hasEagerState:!1,eagerState:null,next:null};if(wp(s))kp(a,g);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=a.lastRenderedReducer,x!==null))try{var k=a.lastRenderedState,P=x(k,h);if(g.hasEagerState=!0,g.eagerState=P,cr(P,k)){var j=a.interleaved;j===null?(g.next=g,x0(a)):(g.next=j.next,j.next=g),a.interleaved=g;return}}catch{}finally{}h=Jd(s,a,g,d),h!==null&&(g=dn(),pr(h,s,d,g),bp(h,a,d))}}function wp(s){var a=s.alternate;return s===gt||a!==null&&a===gt}function kp(s,a){zl=ka=!0;var h=s.pending;h===null?a.next=a:(a.next=h.next,h.next=a),s.pending=a}function bp(s,a,h){if((h&4194240)!==0){var d=a.lanes;d&=s.pendingLanes,h|=d,a.lanes=h,ju(s,h)}}var $a={readContext:Gn,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useInsertionEffect:rn,useLayoutEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useMutableSource:rn,useSyncExternalStore:rn,useId:rn,unstable_isNewReconciler:!1},_y={readContext:Gn,useCallback:function(s,a){return Cr().memoizedState=[s,a===void 0?null:a],s},useContext:Gn,useEffect:dp,useImperativeHandle:function(s,a,h){return h=h!=null?h.concat([s]):null,ba(4194308,4,Op.bind(null,a,s),h)},useLayoutEffect:function(s,a){return ba(4194308,4,s,a)},useInsertionEffect:function(s,a){return ba(4,2,s,a)},useMemo:function(s,a){var h=Cr();return a=a===void 0?null:a,s=s(),h.memoizedState=[s,a],s},useReducer:function(s,a,h){var d=Cr();return a=h!==void 0?h(a):a,d.memoizedState=d.baseState=a,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:a},d.queue=s,s=s.dispatch=Xy.bind(null,gt,s),[d.memoizedState,s]},useRef:function(s){var a=Cr();return s={current:s},a.memoizedState=s},useState:hp,useDebugValue:M0,useDeferredValue:function(s){return Cr().memoizedState=s},useTransition:function(){var s=hp(!1),a=s[0];return s=Ly.bind(null,s[1]),Cr().memoizedState=s,[a,s]},useMutableSource:function(){},useSyncExternalStore:function(s,a,h){var d=gt,g=Cr();if(dt){if(h===void 0)throw Error(t(407));h=h()}else{if(h=a(),It===null)throw Error(t(349));(Gi&30)!==0||lp(d,a,h)}g.memoizedState=h;var x={value:h,getSnapshot:a};return g.queue=x,dp(ap.bind(null,d,x,s),[s]),d.flags|=2048,Wl(9,op.bind(null,d,x,h,a),void 0,null),h},useId:function(){var s=Cr(),a=It.identifierPrefix;if(dt){var h=Ur,d=qr;h=(d&~(1<<32-ar(d)-1)).toString(32)+h,a=":"+a+"R"+h,h=Dl++,0<h&&(a+="H"+h.toString(32)),a+=":"}else h=Ry++,a=":"+a+"r"+h.toString(32)+":";return s.memoizedState=a},unstable_isNewReconciler:!1},zy={readContext:Gn,useCallback:yp,useContext:Gn,useEffect:Z0,useImperativeHandle:gp,useInsertionEffect:pp,useLayoutEffect:mp,useMemo:xp,useReducer:C0,useRef:fp,useState:function(){return C0(Il)},useDebugValue:M0,useDeferredValue:function(s){var a=Kn();return vp(a,Lt.memoizedState,s)},useTransition:function(){var s=C0(Il)[0],a=Kn().memoizedState;return[s,a]},useMutableSource:ip,useSyncExternalStore:sp,useId:Sp,unstable_isNewReconciler:!1},Dy={readContext:Gn,useCallback:yp,useContext:Gn,useEffect:Z0,useImperativeHandle:gp,useInsertionEffect:pp,useLayoutEffect:mp,useMemo:xp,useReducer:T0,useRef:fp,useState:function(){return T0(Il)},useDebugValue:M0,useDeferredValue:function(s){var a=Kn();return Lt===null?a.memoizedState=s:vp(a,Lt.memoizedState,s)},useTransition:function(){var s=T0(Il)[0],a=Kn().memoizedState;return[s,a]},useMutableSource:ip,useSyncExternalStore:sp,useId:Sp,unstable_isNewReconciler:!1};function hr(s,a){if(s&&s.defaultProps){a=U({},a),s=s.defaultProps;for(var h in s)a[h]===void 0&&(a[h]=s[h]);return a}return a}function E0(s,a,h,d){a=s.memoizedState,h=h(d,a),h=h==null?a:U({},a,h),s.memoizedState=h,s.lanes===0&&(s.updateQueue.baseState=h)}var Pa={isMounted:function(s){return(s=s._reactInternals)?ot(s)===s:!1},enqueueSetState:function(s,a,h){s=s._reactInternals;var d=dn(),g=Pi(s),x=Kr(d,g);x.payload=a,h!=null&&(x.callback=h),a=ki(s,x,g),a!==null&&(pr(a,s,g,d),xa(a,s,g))},enqueueReplaceState:function(s,a,h){s=s._reactInternals;var d=dn(),g=Pi(s),x=Kr(d,g);x.tag=1,x.payload=a,h!=null&&(x.callback=h),a=ki(s,x,g),a!==null&&(pr(a,s,g,d),xa(a,s,g))},enqueueForceUpdate:function(s,a){s=s._reactInternals;var h=dn(),d=Pi(s),g=Kr(h,d);g.tag=2,a!=null&&(g.callback=a),a=ki(s,g,d),a!==null&&(pr(a,s,d,h),xa(a,s,d))}};function Qp(s,a,h,d,g,x,k){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(d,x,k):a.prototype&&a.prototype.isPureReactComponent?!Tl(h,d)||!Tl(g,x):!0}function $p(s,a,h){var d=!1,g=vi,x=a.contextType;return typeof x=="object"&&x!==null?x=Gn(x):(g=Sn(a)?Yi:nn.current,d=a.contextTypes,x=(d=d!=null)?bs(s,g):vi),a=new a(h,x),s.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Pa,s.stateNode=a,a._reactInternals=s,d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=g,s.__reactInternalMemoizedMaskedChildContext=x),a}function Pp(s,a,h,d){s=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(h,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(h,d),a.state!==s&&Pa.enqueueReplaceState(a,a.state,null)}function j0(s,a,h,d){var g=s.stateNode;g.props=h,g.state=s.memoizedState,g.refs={},v0(s);var x=a.contextType;typeof x=="object"&&x!==null?g.context=Gn(x):(x=Sn(a)?Yi:nn.current,g.context=bs(s,x)),g.state=s.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(E0(s,a,x,h),g.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(a=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),a!==g.state&&Pa.enqueueReplaceState(g,g.state,null),va(s,h,g,d),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308)}function Ms(s,a){try{var h="",d=a;do h+=ee(d),d=d.return;while(d);var g=h}catch(x){g=`
39
- Error generating stack: `+x.message+`
40
- `+x.stack}return{value:s,source:a,stack:g,digest:null}}function V0(s,a,h){return{value:s,source:null,stack:h??null,digest:a??null}}function R0(s,a){try{console.error(a.value)}catch(h){setTimeout(function(){throw h})}}var Iy=typeof WeakMap=="function"?WeakMap:Map;function Ap(s,a,h){h=Kr(-1,h),h.tag=3,h.payload={element:null};var d=a.value;return h.callback=function(){ja||(ja=!0,G0=d),R0(s,a)},h}function Cp(s,a,h){h=Kr(-1,h),h.tag=3;var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var g=a.value;h.payload=function(){return d(g)},h.callback=function(){R0(s,a)}}var x=s.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(h.callback=function(){R0(s,a),typeof d!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this));var k=a.stack;this.componentDidCatch(a.value,{componentStack:k!==null?k:""})}),h}function Tp(s,a,h){var d=s.pingCache;if(d===null){d=s.pingCache=new Iy;var g=new Set;d.set(a,g)}else g=d.get(a),g===void 0&&(g=new Set,d.set(a,g));g.has(h)||(g.add(h),s=rx.bind(null,s,a,h),a.then(s,s))}function Zp(s){do{var a;if((a=s.tag===13)&&(a=s.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return s;s=s.return}while(s!==null);return null}function Mp(s,a,h,d,g){return(s.mode&1)===0?(s===a?s.flags|=65536:(s.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(a=Kr(-1,1),a.tag=2,ki(h,a,1))),h.lanes|=1),s):(s.flags|=65536,s.lanes=g,s)}var Wy=T.ReactCurrentOwner,wn=!1;function fn(s,a,h,d){a.child=s===null?Kd(a,null,h,d):As(a,s.child,h,d)}function Ep(s,a,h,d,g){h=h.render;var x=a.ref;return Ts(a,g),d=P0(s,a,h,d,x,g),h=A0(),s!==null&&!wn?(a.updateQueue=s.updateQueue,a.flags&=-2053,s.lanes&=~g,Jr(s,a,g)):(dt&&h&&u0(a),a.flags|=1,fn(s,a,d,g),a.child)}function jp(s,a,h,d,g){if(s===null){var x=h.type;return typeof x=="function"&&!ih(x)&&x.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(a.tag=15,a.type=x,Vp(s,a,x,d,g)):(s=_a(h.type,null,d,a,a.mode,g),s.ref=a.ref,s.return=a,a.child=s)}if(x=s.child,(s.lanes&g)===0){var k=x.memoizedProps;if(h=h.compare,h=h!==null?h:Tl,h(k,d)&&s.ref===a.ref)return Jr(s,a,g)}return a.flags|=1,s=Ci(x,d),s.ref=a.ref,s.return=a,a.child=s}function Vp(s,a,h,d,g){if(s!==null){var x=s.memoizedProps;if(Tl(x,d)&&s.ref===a.ref)if(wn=!1,a.pendingProps=d=x,(s.lanes&g)!==0)(s.flags&131072)!==0&&(wn=!0);else return a.lanes=s.lanes,Jr(s,a,g)}return L0(s,a,h,d,g)}function Rp(s,a,h){var d=a.pendingProps,g=d.children,x=s!==null?s.memoizedState:null;if(d.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},at(js,_n),_n|=h;else{if((h&1073741824)===0)return s=x!==null?x.baseLanes|h:h,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:s,cachePool:null,transitions:null},a.updateQueue=null,at(js,_n),_n|=s,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=x!==null?x.baseLanes:h,at(js,_n),_n|=d}else x!==null?(d=x.baseLanes|h,a.memoizedState=null):d=h,at(js,_n),_n|=d;return fn(s,a,g,h),a.child}function Lp(s,a){var h=a.ref;(s===null&&h!==null||s!==null&&s.ref!==h)&&(a.flags|=512,a.flags|=2097152)}function L0(s,a,h,d,g){var x=Sn(h)?Yi:nn.current;return x=bs(a,x),Ts(a,g),h=P0(s,a,h,d,x,g),d=A0(),s!==null&&!wn?(a.updateQueue=s.updateQueue,a.flags&=-2053,s.lanes&=~g,Jr(s,a,g)):(dt&&d&&u0(a),a.flags|=1,fn(s,a,h,g),a.child)}function Xp(s,a,h,d,g){if(Sn(h)){var x=!0;ha(a)}else x=!1;if(Ts(a,g),a.stateNode===null)Ca(s,a),$p(a,h,d),j0(a,h,d,g),d=!0;else if(s===null){var k=a.stateNode,P=a.memoizedProps;k.props=P;var j=k.context,W=h.contextType;typeof W=="object"&&W!==null?W=Gn(W):(W=Sn(h)?Yi:nn.current,W=bs(a,W));var oe=h.getDerivedStateFromProps,ue=typeof oe=="function"||typeof k.getSnapshotBeforeUpdate=="function";ue||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(P!==d||j!==W)&&Pp(a,k,d,W),wi=!1;var se=a.memoizedState;k.state=se,va(a,d,k,g),j=a.memoizedState,P!==d||se!==j||vn.current||wi?(typeof oe=="function"&&(E0(a,h,oe,d),j=a.memoizedState),(P=wi||Qp(a,h,P,d,se,j,W))?(ue||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(a.flags|=4194308)):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=j),k.props=d,k.state=j,k.context=W,d=P):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{k=a.stateNode,ep(s,a),P=a.memoizedProps,W=a.type===a.elementType?P:hr(a.type,P),k.props=W,ue=a.pendingProps,se=k.context,j=h.contextType,typeof j=="object"&&j!==null?j=Gn(j):(j=Sn(h)?Yi:nn.current,j=bs(a,j));var xe=h.getDerivedStateFromProps;(oe=typeof xe=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(P!==ue||se!==j)&&Pp(a,k,d,j),wi=!1,se=a.memoizedState,k.state=se,va(a,d,k,g);var we=a.memoizedState;P!==ue||se!==we||vn.current||wi?(typeof xe=="function"&&(E0(a,h,xe,d),we=a.memoizedState),(W=wi||Qp(a,h,W,d,se,we,j)||!1)?(oe||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(d,we,j),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(d,we,j)),typeof k.componentDidUpdate=="function"&&(a.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof k.componentDidUpdate!="function"||P===s.memoizedProps&&se===s.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&se===s.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=we),k.props=d,k.state=we,k.context=j,d=W):(typeof k.componentDidUpdate!="function"||P===s.memoizedProps&&se===s.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&se===s.memoizedState||(a.flags|=1024),d=!1)}return X0(s,a,h,d,x,g)}function X0(s,a,h,d,g,x){Lp(s,a);var k=(a.flags&128)!==0;if(!d&&!k)return g&&Id(a,h,!1),Jr(s,a,x);d=a.stateNode,Wy.current=a;var P=k&&typeof h.getDerivedStateFromError!="function"?null:d.render();return a.flags|=1,s!==null&&k?(a.child=As(a,s.child,null,x),a.child=As(a,null,P,x)):fn(s,a,P,x),a.memoizedState=d.state,g&&Id(a,h,!0),a.child}function Np(s){var a=s.stateNode;a.pendingContext?zd(s,a.pendingContext,a.pendingContext!==a.context):a.context&&zd(s,a.context,!1),S0(s,a.containerInfo)}function _p(s,a,h,d,g){return Ps(),p0(g),a.flags|=256,fn(s,a,h,d),a.child}var N0={dehydrated:null,treeContext:null,retryLane:0};function _0(s){return{baseLanes:s,cachePool:null,transitions:null}}function zp(s,a,h){var d=a.pendingProps,g=Ot.current,x=!1,k=(a.flags&128)!==0,P;if((P=k)||(P=s!==null&&s.memoizedState===null?!1:(g&2)!==0),P?(x=!0,a.flags&=-129):(s===null||s.memoizedState!==null)&&(g|=1),at(Ot,g&1),s===null)return d0(a),s=a.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((a.mode&1)===0?a.lanes=1:s.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(k=d.children,s=d.fallback,x?(d=a.mode,x=a.child,k={mode:"hidden",children:k},(d&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=k):x=za(k,d,0,null),s=ns(s,d,h,null),x.return=a,s.return=a,x.sibling=s,a.child=x,a.child.memoizedState=_0(h),a.memoizedState=N0,s):z0(a,k));if(g=s.memoizedState,g!==null&&(P=g.dehydrated,P!==null))return Hy(s,a,k,d,P,g,h);if(x){x=d.fallback,k=a.mode,g=s.child,P=g.sibling;var j={mode:"hidden",children:d.children};return(k&1)===0&&a.child!==g?(d=a.child,d.childLanes=0,d.pendingProps=j,a.deletions=null):(d=Ci(g,j),d.subtreeFlags=g.subtreeFlags&14680064),P!==null?x=Ci(P,x):(x=ns(x,k,h,null),x.flags|=2),x.return=a,d.return=a,d.sibling=x,a.child=d,d=x,x=a.child,k=s.child.memoizedState,k=k===null?_0(h):{baseLanes:k.baseLanes|h,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=s.childLanes&~h,a.memoizedState=N0,d}return x=s.child,s=x.sibling,d=Ci(x,{mode:"visible",children:d.children}),(a.mode&1)===0&&(d.lanes=h),d.return=a,d.sibling=null,s!==null&&(h=a.deletions,h===null?(a.deletions=[s],a.flags|=16):h.push(s)),a.child=d,a.memoizedState=null,d}function z0(s,a){return a=za({mode:"visible",children:a},s.mode,0,null),a.return=s,s.child=a}function Aa(s,a,h,d){return d!==null&&p0(d),As(a,s.child,null,h),s=z0(a,a.pendingProps.children),s.flags|=2,a.memoizedState=null,s}function Hy(s,a,h,d,g,x,k){if(h)return a.flags&256?(a.flags&=-257,d=V0(Error(t(422))),Aa(s,a,k,d)):a.memoizedState!==null?(a.child=s.child,a.flags|=128,null):(x=d.fallback,g=a.mode,d=za({mode:"visible",children:d.children},g,0,null),x=ns(x,g,k,null),x.flags|=2,d.return=a,x.return=a,d.sibling=x,a.child=d,(a.mode&1)!==0&&As(a,s.child,null,k),a.child.memoizedState=_0(k),a.memoizedState=N0,x);if((a.mode&1)===0)return Aa(s,a,k,null);if(g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var P=d.dgst;return d=P,x=Error(t(419)),d=V0(x,d,void 0),Aa(s,a,k,d)}if(P=(k&s.childLanes)!==0,wn||P){if(d=It,d!==null){switch(k&-k){case 4:g=2;break;case 16:g=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(d.suspendedLanes|k))!==0?0:g,g!==0&&g!==x.retryLane&&(x.retryLane=g,Gr(s,g),pr(d,s,g,-1))}return rh(),d=V0(Error(t(421))),Aa(s,a,k,d)}return g.data==="$?"?(a.flags|=128,a.child=s.child,a=ix.bind(null,s),g._reactRetry=a,null):(s=x.treeContext,Nn=yi(g.nextSibling),Xn=a,dt=!0,ur=null,s!==null&&(qn[Un++]=qr,qn[Un++]=Ur,qn[Un++]=Fi,qr=s.id,Ur=s.overflow,Fi=a),a=z0(a,d.children),a.flags|=4096,a)}function Dp(s,a,h){s.lanes|=a;var d=s.alternate;d!==null&&(d.lanes|=a),y0(s.return,a,h)}function D0(s,a,h,d,g){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:h,tailMode:g}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=d,x.tail=h,x.tailMode=g)}function Ip(s,a,h){var d=a.pendingProps,g=d.revealOrder,x=d.tail;if(fn(s,a,d.children,h),d=Ot.current,(d&2)!==0)d=d&1|2,a.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=a.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Dp(s,h,a);else if(s.tag===19)Dp(s,h,a);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}d&=1}if(at(Ot,d),(a.mode&1)===0)a.memoizedState=null;else switch(g){case"forwards":for(h=a.child,g=null;h!==null;)s=h.alternate,s!==null&&Sa(s)===null&&(g=h),h=h.sibling;h=g,h===null?(g=a.child,a.child=null):(g=h.sibling,h.sibling=null),D0(a,!1,g,h,x);break;case"backwards":for(h=null,g=a.child,a.child=null;g!==null;){if(s=g.alternate,s!==null&&Sa(s)===null){a.child=g;break}s=g.sibling,g.sibling=h,h=g,g=s}D0(a,!0,h,null,x);break;case"together":D0(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Ca(s,a){(a.mode&1)===0&&s!==null&&(s.alternate=null,a.alternate=null,a.flags|=2)}function Jr(s,a,h){if(s!==null&&(a.dependencies=s.dependencies),Ki|=a.lanes,(h&a.childLanes)===0)return null;if(s!==null&&a.child!==s.child)throw Error(t(153));if(a.child!==null){for(s=a.child,h=Ci(s,s.pendingProps),a.child=h,h.return=a;s.sibling!==null;)s=s.sibling,h=h.sibling=Ci(s,s.pendingProps),h.return=a;h.sibling=null}return a.child}function Yy(s,a,h){switch(a.tag){case 3:Np(a),Ps();break;case 5:rp(a);break;case 1:Sn(a.type)&&ha(a);break;case 4:S0(a,a.stateNode.containerInfo);break;case 10:var d=a.type._context,g=a.memoizedProps.value;at(ga,d._currentValue),d._currentValue=g;break;case 13:if(d=a.memoizedState,d!==null)return d.dehydrated!==null?(at(Ot,Ot.current&1),a.flags|=128,null):(h&a.child.childLanes)!==0?zp(s,a,h):(at(Ot,Ot.current&1),s=Jr(s,a,h),s!==null?s.sibling:null);at(Ot,Ot.current&1);break;case 19:if(d=(h&a.childLanes)!==0,(s.flags&128)!==0){if(d)return Ip(s,a,h);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),at(Ot,Ot.current),d)break;return null;case 22:case 23:return a.lanes=0,Rp(s,a,h)}return Jr(s,a,h)}var Wp,I0,Hp,Yp;Wp=function(s,a){for(var h=a.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===a)break;for(;h.sibling===null;){if(h.return===null||h.return===a)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},I0=function(){},Hp=function(s,a,h,d){var g=s.memoizedProps;if(g!==d){s=a.stateNode,Ui(Ar.current);var x=null;switch(h){case"input":g=Ne(s,g),d=Ne(s,d),x=[];break;case"select":g=U({},g,{value:void 0}),d=U({},d,{value:void 0}),x=[];break;case"textarea":g=jt(s,g),d=jt(s,d),x=[];break;default:typeof g.onClick!="function"&&typeof d.onClick=="function"&&(s.onclick=aa)}wr(h,d);var k;h=null;for(W in g)if(!d.hasOwnProperty(W)&&g.hasOwnProperty(W)&&g[W]!=null)if(W==="style"){var P=g[W];for(k in P)P.hasOwnProperty(k)&&(h||(h={}),h[k]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(i.hasOwnProperty(W)?x||(x=[]):(x=x||[]).push(W,null));for(W in d){var j=d[W];if(P=g!=null?g[W]:void 0,d.hasOwnProperty(W)&&j!==P&&(j!=null||P!=null))if(W==="style")if(P){for(k in P)!P.hasOwnProperty(k)||j&&j.hasOwnProperty(k)||(h||(h={}),h[k]="");for(k in j)j.hasOwnProperty(k)&&P[k]!==j[k]&&(h||(h={}),h[k]=j[k])}else h||(x||(x=[]),x.push(W,h)),h=j;else W==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,P=P?P.__html:void 0,j!=null&&P!==j&&(x=x||[]).push(W,j)):W==="children"?typeof j!="string"&&typeof j!="number"||(x=x||[]).push(W,""+j):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(i.hasOwnProperty(W)?(j!=null&&W==="onScroll"&&ut("scroll",s),x||P===j||(x=[])):(x=x||[]).push(W,j))}h&&(x=x||[]).push("style",h);var W=x;(a.updateQueue=W)&&(a.flags|=4)}},Yp=function(s,a,h,d){h!==d&&(a.flags|=4)};function Hl(s,a){if(!dt)switch(s.tailMode){case"hidden":a=s.tail;for(var h=null;a!==null;)a.alternate!==null&&(h=a),a=a.sibling;h===null?s.tail=null:h.sibling=null;break;case"collapsed":h=s.tail;for(var d=null;h!==null;)h.alternate!==null&&(d=h),h=h.sibling;d===null?a||s.tail===null?s.tail=null:s.tail.sibling=null:d.sibling=null}}function sn(s){var a=s.alternate!==null&&s.alternate.child===s.child,h=0,d=0;if(a)for(var g=s.child;g!==null;)h|=g.lanes|g.childLanes,d|=g.subtreeFlags&14680064,d|=g.flags&14680064,g.return=s,g=g.sibling;else for(g=s.child;g!==null;)h|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=s,g=g.sibling;return s.subtreeFlags|=d,s.childLanes=h,a}function Fy(s,a,h){var d=a.pendingProps;switch(h0(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(a),null;case 1:return Sn(a.type)&&ua(),sn(a),null;case 3:return d=a.stateNode,Zs(),ht(vn),ht(nn),b0(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(s===null||s.child===null)&&(ma(a)?a.flags|=4:s===null||s.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ur!==null&&(eh(ur),ur=null))),I0(s,a),sn(a),null;case 5:w0(a);var g=Ui(_l.current);if(h=a.type,s!==null&&a.stateNode!=null)Hp(s,a,h,d,g),s.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!d){if(a.stateNode===null)throw Error(t(166));return sn(a),null}if(s=Ui(Ar.current),ma(a)){d=a.stateNode,h=a.type;var x=a.memoizedProps;switch(d[Pr]=a,d[Vl]=x,s=(a.mode&1)!==0,h){case"dialog":ut("cancel",d),ut("close",d);break;case"iframe":case"object":case"embed":ut("load",d);break;case"video":case"audio":for(g=0;g<Ml.length;g++)ut(Ml[g],d);break;case"source":ut("error",d);break;case"img":case"image":case"link":ut("error",d),ut("load",d);break;case"details":ut("toggle",d);break;case"input":Je(d,x),ut("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!x.multiple},ut("invalid",d);break;case"textarea":gn(d,x),ut("invalid",d)}wr(h,x),g=null;for(var k in x)if(x.hasOwnProperty(k)){var P=x[k];k==="children"?typeof P=="string"?d.textContent!==P&&(x.suppressHydrationWarning!==!0&&oa(d.textContent,P,s),g=["children",P]):typeof P=="number"&&d.textContent!==""+P&&(x.suppressHydrationWarning!==!0&&oa(d.textContent,P,s),g=["children",""+P]):i.hasOwnProperty(k)&&P!=null&&k==="onScroll"&&ut("scroll",d)}switch(h){case"input":Te(d),Ct(d,x,!0);break;case"textarea":Te(d),wt(d);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(d.onclick=aa)}d=g,a.updateQueue=d,d!==null&&(a.flags|=4)}else{k=g.nodeType===9?g:g.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=Tt(h)),s==="http://www.w3.org/1999/xhtml"?h==="script"?(s=k.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof d.is=="string"?s=k.createElement(h,{is:d.is}):(s=k.createElement(h),h==="select"&&(k=s,d.multiple?k.multiple=!0:d.size&&(k.size=d.size))):s=k.createElementNS(s,h),s[Pr]=a,s[Vl]=d,Wp(s,a,!1,!1),a.stateNode=s;e:{switch(k=Wi(h,d),h){case"dialog":ut("cancel",s),ut("close",s),g=d;break;case"iframe":case"object":case"embed":ut("load",s),g=d;break;case"video":case"audio":for(g=0;g<Ml.length;g++)ut(Ml[g],s);g=d;break;case"source":ut("error",s),g=d;break;case"img":case"image":case"link":ut("error",s),ut("load",s),g=d;break;case"details":ut("toggle",s),g=d;break;case"input":Je(s,d),g=Ne(s,d),ut("invalid",s);break;case"option":g=d;break;case"select":s._wrapperState={wasMultiple:!!d.multiple},g=U({},d,{value:void 0}),ut("invalid",s);break;case"textarea":gn(s,d),g=jt(s,d),ut("invalid",s);break;default:g=d}wr(h,g),P=g;for(x in P)if(P.hasOwnProperty(x)){var j=P[x];x==="style"?Vn(s,j):x==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&Fn(s,j)):x==="children"?typeof j=="string"?(h!=="textarea"||j!=="")&&yn(s,j):typeof j=="number"&&yn(s,""+j):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(i.hasOwnProperty(x)?j!=null&&x==="onScroll"&&ut("scroll",s):j!=null&&A(s,x,j,k))}switch(h){case"input":Te(s),Ct(s,d,!1);break;case"textarea":Te(s),wt(s);break;case"option":d.value!=null&&s.setAttribute("value",""+Ce(d.value));break;case"select":s.multiple=!!d.multiple,x=d.value,x!=null?yt(s,!!d.multiple,x,!1):d.defaultValue!=null&&yt(s,!!d.multiple,d.defaultValue,!0);break;default:typeof g.onClick=="function"&&(s.onclick=aa)}switch(h){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return sn(a),null;case 6:if(s&&a.stateNode!=null)Yp(s,a,s.memoizedProps,d);else{if(typeof d!="string"&&a.stateNode===null)throw Error(t(166));if(h=Ui(_l.current),Ui(Ar.current),ma(a)){if(d=a.stateNode,h=a.memoizedProps,d[Pr]=a,(x=d.nodeValue!==h)&&(s=Xn,s!==null))switch(s.tag){case 3:oa(d.nodeValue,h,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&oa(d.nodeValue,h,(s.mode&1)!==0)}x&&(a.flags|=4)}else d=(h.nodeType===9?h:h.ownerDocument).createTextNode(d),d[Pr]=a,a.stateNode=d}return sn(a),null;case 13:if(ht(Ot),d=a.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(dt&&Nn!==null&&(a.mode&1)!==0&&(a.flags&128)===0)qd(),Ps(),a.flags|=98560,x=!1;else if(x=ma(a),d!==null&&d.dehydrated!==null){if(s===null){if(!x)throw Error(t(318));if(x=a.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(t(317));x[Pr]=a}else Ps(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;sn(a),x=!1}else ur!==null&&(eh(ur),ur=null),x=!0;if(!x)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=h,a):(d=d!==null,d!==(s!==null&&s.memoizedState!==null)&&d&&(a.child.flags|=8192,(a.mode&1)!==0&&(s===null||(Ot.current&1)!==0?Xt===0&&(Xt=3):rh())),a.updateQueue!==null&&(a.flags|=4),sn(a),null);case 4:return Zs(),I0(s,a),s===null&&El(a.stateNode.containerInfo),sn(a),null;case 10:return g0(a.type._context),sn(a),null;case 17:return Sn(a.type)&&ua(),sn(a),null;case 19:if(ht(Ot),x=a.memoizedState,x===null)return sn(a),null;if(d=(a.flags&128)!==0,k=x.rendering,k===null)if(d)Hl(x,!1);else{if(Xt!==0||s!==null&&(s.flags&128)!==0)for(s=a.child;s!==null;){if(k=Sa(s),k!==null){for(a.flags|=128,Hl(x,!1),d=k.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),a.subtreeFlags=0,d=h,h=a.child;h!==null;)x=h,s=d,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=s,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,s=k.dependencies,x.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),h=h.sibling;return at(Ot,Ot.current&1|2),a.child}s=s.sibling}x.tail!==null&&kt()>Vs&&(a.flags|=128,d=!0,Hl(x,!1),a.lanes=4194304)}else{if(!d)if(s=Sa(k),s!==null){if(a.flags|=128,d=!0,h=s.updateQueue,h!==null&&(a.updateQueue=h,a.flags|=4),Hl(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!dt)return sn(a),null}else 2*kt()-x.renderingStartTime>Vs&&h!==1073741824&&(a.flags|=128,d=!0,Hl(x,!1),a.lanes=4194304);x.isBackwards?(k.sibling=a.child,a.child=k):(h=x.last,h!==null?h.sibling=k:a.child=k,x.last=k)}return x.tail!==null?(a=x.tail,x.rendering=a,x.tail=a.sibling,x.renderingStartTime=kt(),a.sibling=null,h=Ot.current,at(Ot,d?h&1|2:h&1),a):(sn(a),null);case 22:case 23:return nh(),d=a.memoizedState!==null,s!==null&&s.memoizedState!==null!==d&&(a.flags|=8192),d&&(a.mode&1)!==0?(_n&1073741824)!==0&&(sn(a),a.subtreeFlags&6&&(a.flags|=8192)):sn(a),null;case 24:return null;case 25:return null}throw Error(t(156,a.tag))}function By(s,a){switch(h0(a),a.tag){case 1:return Sn(a.type)&&ua(),s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 3:return Zs(),ht(vn),ht(nn),b0(),s=a.flags,(s&65536)!==0&&(s&128)===0?(a.flags=s&-65537|128,a):null;case 5:return w0(a),null;case 13:if(ht(Ot),s=a.memoizedState,s!==null&&s.dehydrated!==null){if(a.alternate===null)throw Error(t(340));Ps()}return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 19:return ht(Ot),null;case 4:return Zs(),null;case 10:return g0(a.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var Ta=!1,ln=!1,qy=typeof WeakSet=="function"?WeakSet:Set,ve=null;function Es(s,a){var h=s.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(d){vt(s,a,d)}else h.current=null}function W0(s,a,h){try{h()}catch(d){vt(s,a,d)}}var Fp=!1;function Uy(s,a){if(n0=Uo,s=Qd(),Bu(s)){if("selectionStart"in s)var h={start:s.selectionStart,end:s.selectionEnd};else e:{h=(h=s.ownerDocument)&&h.defaultView||window;var d=h.getSelection&&h.getSelection();if(d&&d.rangeCount!==0){h=d.anchorNode;var g=d.anchorOffset,x=d.focusNode;d=d.focusOffset;try{h.nodeType,x.nodeType}catch{h=null;break e}var k=0,P=-1,j=-1,W=0,oe=0,ue=s,se=null;t:for(;;){for(var xe;ue!==h||g!==0&&ue.nodeType!==3||(P=k+g),ue!==x||d!==0&&ue.nodeType!==3||(j=k+d),ue.nodeType===3&&(k+=ue.nodeValue.length),(xe=ue.firstChild)!==null;)se=ue,ue=xe;for(;;){if(ue===s)break t;if(se===h&&++W===g&&(P=k),se===x&&++oe===d&&(j=k),(xe=ue.nextSibling)!==null)break;ue=se,se=ue.parentNode}ue=xe}h=P===-1||j===-1?null:{start:P,end:j}}else h=null}h=h||{start:0,end:0}}else h=null;for(r0={focusedElem:s,selectionRange:h},Uo=!1,ve=a;ve!==null;)if(a=ve,s=a.child,(a.subtreeFlags&1028)!==0&&s!==null)s.return=a,ve=s;else for(;ve!==null;){a=ve;try{var we=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(we!==null){var $e=we.memoizedProps,bt=we.memoizedState,D=a.stateNode,R=D.getSnapshotBeforeUpdate(a.elementType===a.type?$e:hr(a.type,$e),bt);D.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var I=a.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(pe){vt(a,a.return,pe)}if(s=a.sibling,s!==null){s.return=a.return,ve=s;break}ve=a.return}return we=Fp,Fp=!1,we}function Yl(s,a,h){var d=a.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&s)===s){var x=g.destroy;g.destroy=void 0,x!==void 0&&W0(a,h,x)}g=g.next}while(g!==d)}}function Za(s,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var h=a=a.next;do{if((h.tag&s)===s){var d=h.create;h.destroy=d()}h=h.next}while(h!==a)}}function H0(s){var a=s.ref;if(a!==null){var h=s.stateNode;switch(s.tag){case 5:s=h;break;default:s=h}typeof a=="function"?a(s):a.current=s}}function Bp(s){var a=s.alternate;a!==null&&(s.alternate=null,Bp(a)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(a=s.stateNode,a!==null&&(delete a[Pr],delete a[Vl],delete a[o0],delete a[My],delete a[Ey])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function qp(s){return s.tag===5||s.tag===3||s.tag===4}function Up(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||qp(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Y0(s,a,h){var d=s.tag;if(d===5||d===6)s=s.stateNode,a?h.nodeType===8?h.parentNode.insertBefore(s,a):h.insertBefore(s,a):(h.nodeType===8?(a=h.parentNode,a.insertBefore(s,h)):(a=h,a.appendChild(s)),h=h._reactRootContainer,h!=null||a.onclick!==null||(a.onclick=aa));else if(d!==4&&(s=s.child,s!==null))for(Y0(s,a,h),s=s.sibling;s!==null;)Y0(s,a,h),s=s.sibling}function F0(s,a,h){var d=s.tag;if(d===5||d===6)s=s.stateNode,a?h.insertBefore(s,a):h.appendChild(s);else if(d!==4&&(s=s.child,s!==null))for(F0(s,a,h),s=s.sibling;s!==null;)F0(s,a,h),s=s.sibling}var qt=null,fr=!1;function bi(s,a,h){for(h=h.child;h!==null;)Gp(s,a,h),h=h.sibling}function Gp(s,a,h){if($r&&typeof $r.onCommitFiberUnmount=="function")try{$r.onCommitFiberUnmount(Wo,h)}catch{}switch(h.tag){case 5:ln||Es(h,a);case 6:var d=qt,g=fr;qt=null,bi(s,a,h),qt=d,fr=g,qt!==null&&(fr?(s=qt,h=h.stateNode,s.nodeType===8?s.parentNode.removeChild(h):s.removeChild(h)):qt.removeChild(h.stateNode));break;case 18:qt!==null&&(fr?(s=qt,h=h.stateNode,s.nodeType===8?l0(s.parentNode,h):s.nodeType===1&&l0(s,h),bl(s)):l0(qt,h.stateNode));break;case 4:d=qt,g=fr,qt=h.stateNode.containerInfo,fr=!0,bi(s,a,h),qt=d,fr=g;break;case 0:case 11:case 14:case 15:if(!ln&&(d=h.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var x=g,k=x.destroy;x=x.tag,k!==void 0&&((x&2)!==0||(x&4)!==0)&&W0(h,a,k),g=g.next}while(g!==d)}bi(s,a,h);break;case 1:if(!ln&&(Es(h,a),d=h.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=h.memoizedProps,d.state=h.memoizedState,d.componentWillUnmount()}catch(P){vt(h,a,P)}bi(s,a,h);break;case 21:bi(s,a,h);break;case 22:h.mode&1?(ln=(d=ln)||h.memoizedState!==null,bi(s,a,h),ln=d):bi(s,a,h);break;default:bi(s,a,h)}}function Kp(s){var a=s.updateQueue;if(a!==null){s.updateQueue=null;var h=s.stateNode;h===null&&(h=s.stateNode=new qy),a.forEach(function(d){var g=sx.bind(null,s,d);h.has(d)||(h.add(d),d.then(g,g))})}}function dr(s,a){var h=a.deletions;if(h!==null)for(var d=0;d<h.length;d++){var g=h[d];try{var x=s,k=a,P=k;e:for(;P!==null;){switch(P.tag){case 5:qt=P.stateNode,fr=!1;break e;case 3:qt=P.stateNode.containerInfo,fr=!0;break e;case 4:qt=P.stateNode.containerInfo,fr=!0;break e}P=P.return}if(qt===null)throw Error(t(160));Gp(x,k,g),qt=null,fr=!1;var j=g.alternate;j!==null&&(j.return=null),g.return=null}catch(W){vt(g,a,W)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)Jp(a,s),a=a.sibling}function Jp(s,a){var h=s.alternate,d=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(dr(a,s),Tr(s),d&4){try{Yl(3,s,s.return),Za(3,s)}catch($e){vt(s,s.return,$e)}try{Yl(5,s,s.return)}catch($e){vt(s,s.return,$e)}}break;case 1:dr(a,s),Tr(s),d&512&&h!==null&&Es(h,h.return);break;case 5:if(dr(a,s),Tr(s),d&512&&h!==null&&Es(h,h.return),s.flags&32){var g=s.stateNode;try{yn(g,"")}catch($e){vt(s,s.return,$e)}}if(d&4&&(g=s.stateNode,g!=null)){var x=s.memoizedProps,k=h!==null?h.memoizedProps:x,P=s.type,j=s.updateQueue;if(s.updateQueue=null,j!==null)try{P==="input"&&x.type==="radio"&&x.name!=null&&At(g,x),Wi(P,k);var W=Wi(P,x);for(k=0;k<j.length;k+=2){var oe=j[k],ue=j[k+1];oe==="style"?Vn(g,ue):oe==="dangerouslySetInnerHTML"?Fn(g,ue):oe==="children"?yn(g,ue):A(g,oe,ue,W)}switch(P){case"input":De(g,x);break;case"textarea":ft(g,x);break;case"select":var se=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!x.multiple;var xe=x.value;xe!=null?yt(g,!!x.multiple,xe,!1):se!==!!x.multiple&&(x.defaultValue!=null?yt(g,!!x.multiple,x.defaultValue,!0):yt(g,!!x.multiple,x.multiple?[]:"",!1))}g[Vl]=x}catch($e){vt(s,s.return,$e)}}break;case 6:if(dr(a,s),Tr(s),d&4){if(s.stateNode===null)throw Error(t(162));g=s.stateNode,x=s.memoizedProps;try{g.nodeValue=x}catch($e){vt(s,s.return,$e)}}break;case 3:if(dr(a,s),Tr(s),d&4&&h!==null&&h.memoizedState.isDehydrated)try{bl(a.containerInfo)}catch($e){vt(s,s.return,$e)}break;case 4:dr(a,s),Tr(s);break;case 13:dr(a,s),Tr(s),g=s.child,g.flags&8192&&(x=g.memoizedState!==null,g.stateNode.isHidden=x,!x||g.alternate!==null&&g.alternate.memoizedState!==null||(U0=kt())),d&4&&Kp(s);break;case 22:if(oe=h!==null&&h.memoizedState!==null,s.mode&1?(ln=(W=ln)||oe,dr(a,s),ln=W):dr(a,s),Tr(s),d&8192){if(W=s.memoizedState!==null,(s.stateNode.isHidden=W)&&!oe&&(s.mode&1)!==0)for(ve=s,oe=s.child;oe!==null;){for(ue=ve=oe;ve!==null;){switch(se=ve,xe=se.child,se.tag){case 0:case 11:case 14:case 15:Yl(4,se,se.return);break;case 1:Es(se,se.return);var we=se.stateNode;if(typeof we.componentWillUnmount=="function"){d=se,h=se.return;try{a=d,we.props=a.memoizedProps,we.state=a.memoizedState,we.componentWillUnmount()}catch($e){vt(d,h,$e)}}break;case 5:Es(se,se.return);break;case 22:if(se.memoizedState!==null){nm(ue);continue}}xe!==null?(xe.return=se,ve=xe):nm(ue)}oe=oe.sibling}e:for(oe=null,ue=s;;){if(ue.tag===5){if(oe===null){oe=ue;try{g=ue.stateNode,W?(x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(P=ue.stateNode,j=ue.memoizedProps.style,k=j!=null&&j.hasOwnProperty("display")?j.display:null,P.style.display=zt("display",k))}catch($e){vt(s,s.return,$e)}}}else if(ue.tag===6){if(oe===null)try{ue.stateNode.nodeValue=W?"":ue.memoizedProps}catch($e){vt(s,s.return,$e)}}else if((ue.tag!==22&&ue.tag!==23||ue.memoizedState===null||ue===s)&&ue.child!==null){ue.child.return=ue,ue=ue.child;continue}if(ue===s)break e;for(;ue.sibling===null;){if(ue.return===null||ue.return===s)break e;oe===ue&&(oe=null),ue=ue.return}oe===ue&&(oe=null),ue.sibling.return=ue.return,ue=ue.sibling}}break;case 19:dr(a,s),Tr(s),d&4&&Kp(s);break;case 21:break;default:dr(a,s),Tr(s)}}function Tr(s){var a=s.flags;if(a&2){try{e:{for(var h=s.return;h!==null;){if(qp(h)){var d=h;break e}h=h.return}throw Error(t(160))}switch(d.tag){case 5:var g=d.stateNode;d.flags&32&&(yn(g,""),d.flags&=-33);var x=Up(s);F0(s,x,g);break;case 3:case 4:var k=d.stateNode.containerInfo,P=Up(s);Y0(s,P,k);break;default:throw Error(t(161))}}catch(j){vt(s,s.return,j)}s.flags&=-3}a&4096&&(s.flags&=-4097)}function Gy(s,a,h){ve=s,em(s)}function em(s,a,h){for(var d=(s.mode&1)!==0;ve!==null;){var g=ve,x=g.child;if(g.tag===22&&d){var k=g.memoizedState!==null||Ta;if(!k){var P=g.alternate,j=P!==null&&P.memoizedState!==null||ln;P=Ta;var W=ln;if(Ta=k,(ln=j)&&!W)for(ve=g;ve!==null;)k=ve,j=k.child,k.tag===22&&k.memoizedState!==null?rm(g):j!==null?(j.return=k,ve=j):rm(g);for(;x!==null;)ve=x,em(x),x=x.sibling;ve=g,Ta=P,ln=W}tm(s)}else(g.subtreeFlags&8772)!==0&&x!==null?(x.return=g,ve=x):tm(s)}}function tm(s){for(;ve!==null;){var a=ve;if((a.flags&8772)!==0){var h=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:ln||Za(5,a);break;case 1:var d=a.stateNode;if(a.flags&4&&!ln)if(h===null)d.componentDidMount();else{var g=a.elementType===a.type?h.memoizedProps:hr(a.type,h.memoizedProps);d.componentDidUpdate(g,h.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var x=a.updateQueue;x!==null&&np(a,x,d);break;case 3:var k=a.updateQueue;if(k!==null){if(h=null,a.child!==null)switch(a.child.tag){case 5:h=a.child.stateNode;break;case 1:h=a.child.stateNode}np(a,k,h)}break;case 5:var P=a.stateNode;if(h===null&&a.flags&4){h=P;var j=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&h.focus();break;case"img":j.src&&(h.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var W=a.alternate;if(W!==null){var oe=W.memoizedState;if(oe!==null){var ue=oe.dehydrated;ue!==null&&bl(ue)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}ln||a.flags&512&&H0(a)}catch(se){vt(a,a.return,se)}}if(a===s){ve=null;break}if(h=a.sibling,h!==null){h.return=a.return,ve=h;break}ve=a.return}}function nm(s){for(;ve!==null;){var a=ve;if(a===s){ve=null;break}var h=a.sibling;if(h!==null){h.return=a.return,ve=h;break}ve=a.return}}function rm(s){for(;ve!==null;){var a=ve;try{switch(a.tag){case 0:case 11:case 15:var h=a.return;try{Za(4,a)}catch(j){vt(a,h,j)}break;case 1:var d=a.stateNode;if(typeof d.componentDidMount=="function"){var g=a.return;try{d.componentDidMount()}catch(j){vt(a,g,j)}}var x=a.return;try{H0(a)}catch(j){vt(a,x,j)}break;case 5:var k=a.return;try{H0(a)}catch(j){vt(a,k,j)}}}catch(j){vt(a,a.return,j)}if(a===s){ve=null;break}var P=a.sibling;if(P!==null){P.return=a.return,ve=P;break}ve=a.return}}var Ky=Math.ceil,Ma=T.ReactCurrentDispatcher,B0=T.ReactCurrentOwner,Jn=T.ReactCurrentBatchConfig,Be=0,It=null,Mt=null,Ut=0,_n=0,js=xi(0),Xt=0,Fl=null,Ki=0,Ea=0,q0=0,Bl=null,kn=null,U0=0,Vs=1/0,ei=null,ja=!1,G0=null,Qi=null,Va=!1,$i=null,Ra=0,ql=0,K0=null,La=-1,Xa=0;function dn(){return(Be&6)!==0?kt():La!==-1?La:La=kt()}function Pi(s){return(s.mode&1)===0?1:(Be&2)!==0&&Ut!==0?Ut&-Ut:Vy.transition!==null?(Xa===0&&(Xa=Uf()),Xa):(s=st,s!==0||(s=window.event,s=s===void 0?16:sd(s.type)),s)}function pr(s,a,h,d){if(50<ql)throw ql=0,K0=null,Error(t(185));xl(s,h,d),((Be&2)===0||s!==It)&&(s===It&&((Be&2)===0&&(Ea|=h),Xt===4&&Ai(s,Ut)),bn(s,d),h===1&&Be===0&&(a.mode&1)===0&&(Vs=kt()+500,fa&&Si()))}function bn(s,a){var h=s.callbackNode;V5(s,a);var d=Fo(s,s===It?Ut:0);if(d===0)h!==null&&gl(h),s.callbackNode=null,s.callbackPriority=0;else if(a=d&-d,s.callbackPriority!==a){if(h!=null&&gl(h),a===1)s.tag===0?jy(sm.bind(null,s)):Wd(sm.bind(null,s)),Ty(function(){(Be&6)===0&&Si()}),h=null;else{switch(Gf(d)){case 1:h=Zu;break;case 4:h=Bf;break;case 16:h=Io;break;case 536870912:h=qf;break;default:h=Io}h=dm(h,im.bind(null,s))}s.callbackPriority=a,s.callbackNode=h}}function im(s,a){if(La=-1,Xa=0,(Be&6)!==0)throw Error(t(327));var h=s.callbackNode;if(Rs()&&s.callbackNode!==h)return null;var d=Fo(s,s===It?Ut:0);if(d===0)return null;if((d&30)!==0||(d&s.expiredLanes)!==0||a)a=Na(s,d);else{a=d;var g=Be;Be|=2;var x=om();(It!==s||Ut!==a)&&(ei=null,Vs=kt()+500,es(s,a));do try{tx();break}catch(P){lm(s,P)}while(!0);O0(),Ma.current=x,Be=g,Mt!==null?a=0:(It=null,Ut=0,a=Xt)}if(a!==0){if(a===2&&(g=Mu(s),g!==0&&(d=g,a=J0(s,g))),a===1)throw h=Fl,es(s,0),Ai(s,d),bn(s,kt()),h;if(a===6)Ai(s,d);else{if(g=s.current.alternate,(d&30)===0&&!Jy(g)&&(a=Na(s,d),a===2&&(x=Mu(s),x!==0&&(d=x,a=J0(s,x))),a===1))throw h=Fl,es(s,0),Ai(s,d),bn(s,kt()),h;switch(s.finishedWork=g,s.finishedLanes=d,a){case 0:case 1:throw Error(t(345));case 2:ts(s,kn,ei);break;case 3:if(Ai(s,d),(d&130023424)===d&&(a=U0+500-kt(),10<a)){if(Fo(s,0)!==0)break;if(g=s.suspendedLanes,(g&d)!==d){dn(),s.pingedLanes|=s.suspendedLanes&g;break}s.timeoutHandle=s0(ts.bind(null,s,kn,ei),a);break}ts(s,kn,ei);break;case 4:if(Ai(s,d),(d&4194240)===d)break;for(a=s.eventTimes,g=-1;0<d;){var k=31-ar(d);x=1<<k,k=a[k],k>g&&(g=k),d&=~x}if(d=g,d=kt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*Ky(d/1960))-d,10<d){s.timeoutHandle=s0(ts.bind(null,s,kn,ei),d);break}ts(s,kn,ei);break;case 5:ts(s,kn,ei);break;default:throw Error(t(329))}}}return bn(s,kt()),s.callbackNode===h?im.bind(null,s):null}function J0(s,a){var h=Bl;return s.current.memoizedState.isDehydrated&&(es(s,a).flags|=256),s=Na(s,a),s!==2&&(a=kn,kn=h,a!==null&&eh(a)),s}function eh(s){kn===null?kn=s:kn.push.apply(kn,s)}function Jy(s){for(var a=s;;){if(a.flags&16384){var h=a.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var d=0;d<h.length;d++){var g=h[d],x=g.getSnapshot;g=g.value;try{if(!cr(x(),g))return!1}catch{return!1}}}if(h=a.child,a.subtreeFlags&16384&&h!==null)h.return=a,a=h;else{if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ai(s,a){for(a&=~q0,a&=~Ea,s.suspendedLanes|=a,s.pingedLanes&=~a,s=s.expirationTimes;0<a;){var h=31-ar(a),d=1<<h;s[h]=-1,a&=~d}}function sm(s){if((Be&6)!==0)throw Error(t(327));Rs();var a=Fo(s,0);if((a&1)===0)return bn(s,kt()),null;var h=Na(s,a);if(s.tag!==0&&h===2){var d=Mu(s);d!==0&&(a=d,h=J0(s,d))}if(h===1)throw h=Fl,es(s,0),Ai(s,a),bn(s,kt()),h;if(h===6)throw Error(t(345));return s.finishedWork=s.current.alternate,s.finishedLanes=a,ts(s,kn,ei),bn(s,kt()),null}function th(s,a){var h=Be;Be|=1;try{return s(a)}finally{Be=h,Be===0&&(Vs=kt()+500,fa&&Si())}}function Ji(s){$i!==null&&$i.tag===0&&(Be&6)===0&&Rs();var a=Be;Be|=1;var h=Jn.transition,d=st;try{if(Jn.transition=null,st=1,s)return s()}finally{st=d,Jn.transition=h,Be=a,(Be&6)===0&&Si()}}function nh(){_n=js.current,ht(js)}function es(s,a){s.finishedWork=null,s.finishedLanes=0;var h=s.timeoutHandle;if(h!==-1&&(s.timeoutHandle=-1,Cy(h)),Mt!==null)for(h=Mt.return;h!==null;){var d=h;switch(h0(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&ua();break;case 3:Zs(),ht(vn),ht(nn),b0();break;case 5:w0(d);break;case 4:Zs();break;case 13:ht(Ot);break;case 19:ht(Ot);break;case 10:g0(d.type._context);break;case 22:case 23:nh()}h=h.return}if(It=s,Mt=s=Ci(s.current,null),Ut=_n=a,Xt=0,Fl=null,q0=Ea=Ki=0,kn=Bl=null,qi!==null){for(a=0;a<qi.length;a++)if(h=qi[a],d=h.interleaved,d!==null){h.interleaved=null;var g=d.next,x=h.pending;if(x!==null){var k=x.next;x.next=g,d.next=k}h.pending=d}qi=null}return s}function lm(s,a){do{var h=Mt;try{if(O0(),wa.current=$a,ka){for(var d=gt.memoizedState;d!==null;){var g=d.queue;g!==null&&(g.pending=null),d=d.next}ka=!1}if(Gi=0,Dt=Lt=gt=null,zl=!1,Dl=0,B0.current=null,h===null||h.return===null){Xt=1,Fl=a,Mt=null;break}e:{var x=s,k=h.return,P=h,j=a;if(a=Ut,P.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var W=j,oe=P,ue=oe.tag;if((oe.mode&1)===0&&(ue===0||ue===11||ue===15)){var se=oe.alternate;se?(oe.updateQueue=se.updateQueue,oe.memoizedState=se.memoizedState,oe.lanes=se.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var xe=Zp(k);if(xe!==null){xe.flags&=-257,Mp(xe,k,P,x,a),xe.mode&1&&Tp(x,W,a),a=xe,j=W;var we=a.updateQueue;if(we===null){var $e=new Set;$e.add(j),a.updateQueue=$e}else we.add(j);break e}else{if((a&1)===0){Tp(x,W,a),rh();break e}j=Error(t(426))}}else if(dt&&P.mode&1){var bt=Zp(k);if(bt!==null){(bt.flags&65536)===0&&(bt.flags|=256),Mp(bt,k,P,x,a),p0(Ms(j,P));break e}}x=j=Ms(j,P),Xt!==4&&(Xt=2),Bl===null?Bl=[x]:Bl.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,a&=-a,x.lanes|=a;var D=Ap(x,j,a);tp(x,D);break e;case 1:P=j;var R=x.type,I=x.stateNode;if((x.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(Qi===null||!Qi.has(I)))){x.flags|=65536,a&=-a,x.lanes|=a;var pe=Cp(x,P,a);tp(x,pe);break e}}x=x.return}while(x!==null)}cm(h)}catch(Pe){a=Pe,Mt===h&&h!==null&&(Mt=h=h.return);continue}break}while(!0)}function om(){var s=Ma.current;return Ma.current=$a,s===null?$a:s}function rh(){(Xt===0||Xt===3||Xt===2)&&(Xt=4),It===null||(Ki&268435455)===0&&(Ea&268435455)===0||Ai(It,Ut)}function Na(s,a){var h=Be;Be|=2;var d=om();(It!==s||Ut!==a)&&(ei=null,es(s,a));do try{ex();break}catch(g){lm(s,g)}while(!0);if(O0(),Be=h,Ma.current=d,Mt!==null)throw Error(t(261));return It=null,Ut=0,Xt}function ex(){for(;Mt!==null;)am(Mt)}function tx(){for(;Mt!==null&&!Do();)am(Mt)}function am(s){var a=fm(s.alternate,s,_n);s.memoizedProps=s.pendingProps,a===null?cm(s):Mt=a,B0.current=null}function cm(s){var a=s;do{var h=a.alternate;if(s=a.return,(a.flags&32768)===0){if(h=Fy(h,a,_n),h!==null){Mt=h;return}}else{if(h=By(h,a),h!==null){h.flags&=32767,Mt=h;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Xt=6,Mt=null;return}}if(a=a.sibling,a!==null){Mt=a;return}Mt=a=s}while(a!==null);Xt===0&&(Xt=5)}function ts(s,a,h){var d=st,g=Jn.transition;try{Jn.transition=null,st=1,nx(s,a,h,d)}finally{Jn.transition=g,st=d}return null}function nx(s,a,h,d){do Rs();while($i!==null);if((Be&6)!==0)throw Error(t(327));h=s.finishedWork;var g=s.finishedLanes;if(h===null)return null;if(s.finishedWork=null,s.finishedLanes=0,h===s.current)throw Error(t(177));s.callbackNode=null,s.callbackPriority=0;var x=h.lanes|h.childLanes;if(R5(s,x),s===It&&(Mt=It=null,Ut=0),(h.subtreeFlags&2064)===0&&(h.flags&2064)===0||Va||(Va=!0,dm(Io,function(){return Rs(),null})),x=(h.flags&15990)!==0,(h.subtreeFlags&15990)!==0||x){x=Jn.transition,Jn.transition=null;var k=st;st=1;var P=Be;Be|=4,B0.current=null,Uy(s,h),Jp(h,s),wy(r0),Uo=!!n0,r0=n0=null,s.current=h,Gy(h),P5(),Be=P,st=k,Jn.transition=x}else s.current=h;if(Va&&(Va=!1,$i=s,Ra=g),x=s.pendingLanes,x===0&&(Qi=null),T5(h.stateNode),bn(s,kt()),a!==null)for(d=s.onRecoverableError,h=0;h<a.length;h++)g=a[h],d(g.value,{componentStack:g.stack,digest:g.digest});if(ja)throw ja=!1,s=G0,G0=null,s;return(Ra&1)!==0&&s.tag!==0&&Rs(),x=s.pendingLanes,(x&1)!==0?s===K0?ql++:(ql=0,K0=s):ql=0,Si(),null}function Rs(){if($i!==null){var s=Gf(Ra),a=Jn.transition,h=st;try{if(Jn.transition=null,st=16>s?16:s,$i===null)var d=!1;else{if(s=$i,$i=null,Ra=0,(Be&6)!==0)throw Error(t(331));var g=Be;for(Be|=4,ve=s.current;ve!==null;){var x=ve,k=x.child;if((ve.flags&16)!==0){var P=x.deletions;if(P!==null){for(var j=0;j<P.length;j++){var W=P[j];for(ve=W;ve!==null;){var oe=ve;switch(oe.tag){case 0:case 11:case 15:Yl(8,oe,x)}var ue=oe.child;if(ue!==null)ue.return=oe,ve=ue;else for(;ve!==null;){oe=ve;var se=oe.sibling,xe=oe.return;if(Bp(oe),oe===W){ve=null;break}if(se!==null){se.return=xe,ve=se;break}ve=xe}}}var we=x.alternate;if(we!==null){var $e=we.child;if($e!==null){we.child=null;do{var bt=$e.sibling;$e.sibling=null,$e=bt}while($e!==null)}}ve=x}}if((x.subtreeFlags&2064)!==0&&k!==null)k.return=x,ve=k;else e:for(;ve!==null;){if(x=ve,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Yl(9,x,x.return)}var D=x.sibling;if(D!==null){D.return=x.return,ve=D;break e}ve=x.return}}var R=s.current;for(ve=R;ve!==null;){k=ve;var I=k.child;if((k.subtreeFlags&2064)!==0&&I!==null)I.return=k,ve=I;else e:for(k=R;ve!==null;){if(P=ve,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:Za(9,P)}}catch(Pe){vt(P,P.return,Pe)}if(P===k){ve=null;break e}var pe=P.sibling;if(pe!==null){pe.return=P.return,ve=pe;break e}ve=P.return}}if(Be=g,Si(),$r&&typeof $r.onPostCommitFiberRoot=="function")try{$r.onPostCommitFiberRoot(Wo,s)}catch{}d=!0}return d}finally{st=h,Jn.transition=a}}return!1}function um(s,a,h){a=Ms(h,a),a=Ap(s,a,1),s=ki(s,a,1),a=dn(),s!==null&&(xl(s,1,a),bn(s,a))}function vt(s,a,h){if(s.tag===3)um(s,s,h);else for(;a!==null;){if(a.tag===3){um(a,s,h);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Qi===null||!Qi.has(d))){s=Ms(h,s),s=Cp(a,s,1),a=ki(a,s,1),s=dn(),a!==null&&(xl(a,1,s),bn(a,s));break}}a=a.return}}function rx(s,a,h){var d=s.pingCache;d!==null&&d.delete(a),a=dn(),s.pingedLanes|=s.suspendedLanes&h,It===s&&(Ut&h)===h&&(Xt===4||Xt===3&&(Ut&130023424)===Ut&&500>kt()-U0?es(s,0):q0|=h),bn(s,a)}function hm(s,a){a===0&&((s.mode&1)===0?a=1:(a=Yo,Yo<<=1,(Yo&130023424)===0&&(Yo=4194304)));var h=dn();s=Gr(s,a),s!==null&&(xl(s,a,h),bn(s,h))}function ix(s){var a=s.memoizedState,h=0;a!==null&&(h=a.retryLane),hm(s,h)}function sx(s,a){var h=0;switch(s.tag){case 13:var d=s.stateNode,g=s.memoizedState;g!==null&&(h=g.retryLane);break;case 19:d=s.stateNode;break;default:throw Error(t(314))}d!==null&&d.delete(a),hm(s,h)}var fm;fm=function(s,a,h){if(s!==null)if(s.memoizedProps!==a.pendingProps||vn.current)wn=!0;else{if((s.lanes&h)===0&&(a.flags&128)===0)return wn=!1,Yy(s,a,h);wn=(s.flags&131072)!==0}else wn=!1,dt&&(a.flags&1048576)!==0&&Hd(a,pa,a.index);switch(a.lanes=0,a.tag){case 2:var d=a.type;Ca(s,a),s=a.pendingProps;var g=bs(a,nn.current);Ts(a,h),g=P0(null,a,d,s,g,h);var x=A0();return a.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Sn(d)?(x=!0,ha(a)):x=!1,a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,v0(a),g.updater=Pa,a.stateNode=g,g._reactInternals=a,j0(a,d,s,h),a=X0(null,a,d,!0,x,h)):(a.tag=0,dt&&x&&u0(a),fn(null,a,g,h),a=a.child),a;case 16:d=a.elementType;e:{switch(Ca(s,a),s=a.pendingProps,g=d._init,d=g(d._payload),a.type=d,g=a.tag=ox(d),s=hr(d,s),g){case 0:a=L0(null,a,d,s,h);break e;case 1:a=Xp(null,a,d,s,h);break e;case 11:a=Ep(null,a,d,s,h);break e;case 14:a=jp(null,a,d,hr(d.type,s),h);break e}throw Error(t(306,d,""))}return a;case 0:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:hr(d,g),L0(s,a,d,g,h);case 1:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:hr(d,g),Xp(s,a,d,g,h);case 3:e:{if(Np(a),s===null)throw Error(t(387));d=a.pendingProps,x=a.memoizedState,g=x.element,ep(s,a),va(a,d,null,h);var k=a.memoizedState;if(d=k.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},a.updateQueue.baseState=x,a.memoizedState=x,a.flags&256){g=Ms(Error(t(423)),a),a=_p(s,a,d,h,g);break e}else if(d!==g){g=Ms(Error(t(424)),a),a=_p(s,a,d,h,g);break e}else for(Nn=yi(a.stateNode.containerInfo.firstChild),Xn=a,dt=!0,ur=null,h=Kd(a,null,d,h),a.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(Ps(),d===g){a=Jr(s,a,h);break e}fn(s,a,d,h)}a=a.child}return a;case 5:return rp(a),s===null&&d0(a),d=a.type,g=a.pendingProps,x=s!==null?s.memoizedProps:null,k=g.children,i0(d,g)?k=null:x!==null&&i0(d,x)&&(a.flags|=32),Lp(s,a),fn(s,a,k,h),a.child;case 6:return s===null&&d0(a),null;case 13:return zp(s,a,h);case 4:return S0(a,a.stateNode.containerInfo),d=a.pendingProps,s===null?a.child=As(a,null,d,h):fn(s,a,d,h),a.child;case 11:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:hr(d,g),Ep(s,a,d,g,h);case 7:return fn(s,a,a.pendingProps,h),a.child;case 8:return fn(s,a,a.pendingProps.children,h),a.child;case 12:return fn(s,a,a.pendingProps.children,h),a.child;case 10:e:{if(d=a.type._context,g=a.pendingProps,x=a.memoizedProps,k=g.value,at(ga,d._currentValue),d._currentValue=k,x!==null)if(cr(x.value,k)){if(x.children===g.children&&!vn.current){a=Jr(s,a,h);break e}}else for(x=a.child,x!==null&&(x.return=a);x!==null;){var P=x.dependencies;if(P!==null){k=x.child;for(var j=P.firstContext;j!==null;){if(j.context===d){if(x.tag===1){j=Kr(-1,h&-h),j.tag=2;var W=x.updateQueue;if(W!==null){W=W.shared;var oe=W.pending;oe===null?j.next=j:(j.next=oe.next,oe.next=j),W.pending=j}}x.lanes|=h,j=x.alternate,j!==null&&(j.lanes|=h),y0(x.return,h,a),P.lanes|=h;break}j=j.next}}else if(x.tag===10)k=x.type===a.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(t(341));k.lanes|=h,P=k.alternate,P!==null&&(P.lanes|=h),y0(k,h,a),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===a){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}fn(s,a,g.children,h),a=a.child}return a;case 9:return g=a.type,d=a.pendingProps.children,Ts(a,h),g=Gn(g),d=d(g),a.flags|=1,fn(s,a,d,h),a.child;case 14:return d=a.type,g=hr(d,a.pendingProps),g=hr(d.type,g),jp(s,a,d,g,h);case 15:return Vp(s,a,a.type,a.pendingProps,h);case 17:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:hr(d,g),Ca(s,a),a.tag=1,Sn(d)?(s=!0,ha(a)):s=!1,Ts(a,h),$p(a,d,g),j0(a,d,g,h),X0(null,a,d,!0,s,h);case 19:return Ip(s,a,h);case 22:return Rp(s,a,h)}throw Error(t(156,a.tag))};function dm(s,a){return Qr(s,a)}function lx(s,a,h,d){this.tag=s,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(s,a,h,d){return new lx(s,a,h,d)}function ih(s){return s=s.prototype,!(!s||!s.isReactComponent)}function ox(s){if(typeof s=="function")return ih(s)?1:0;if(s!=null){if(s=s.$$typeof,s===te)return 11;if(s===B)return 14}return 2}function Ci(s,a){var h=s.alternate;return h===null?(h=er(s.tag,a,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=a,h.type=s.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=s.flags&14680064,h.childLanes=s.childLanes,h.lanes=s.lanes,h.child=s.child,h.memoizedProps=s.memoizedProps,h.memoizedState=s.memoizedState,h.updateQueue=s.updateQueue,a=s.dependencies,h.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h}function _a(s,a,h,d,g,x){var k=2;if(d=s,typeof s=="function")ih(s)&&(k=1);else if(typeof s=="string")k=5;else e:switch(s){case M:return ns(h.children,g,x,a);case N:k=8,g|=8;break;case Y:return s=er(12,h,a,g|2),s.elementType=Y,s.lanes=x,s;case F:return s=er(13,h,a,g),s.elementType=F,s.lanes=x,s;case re:return s=er(19,h,a,g),s.elementType=re,s.lanes=x,s;case ce:return za(h,g,x,a);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case fe:k=10;break e;case K:k=9;break e;case te:k=11;break e;case B:k=14;break e;case he:k=16,d=null;break e}throw Error(t(130,s==null?s:typeof s,""))}return a=er(k,h,a,g),a.elementType=s,a.type=d,a.lanes=x,a}function ns(s,a,h,d){return s=er(7,s,d,a),s.lanes=h,s}function za(s,a,h,d){return s=er(22,s,d,a),s.elementType=ce,s.lanes=h,s.stateNode={isHidden:!1},s}function sh(s,a,h){return s=er(6,s,null,a),s.lanes=h,s}function lh(s,a,h){return a=er(4,s.children!==null?s.children:[],s.key,a),a.lanes=h,a.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},a}function ax(s,a,h,d,g){this.tag=a,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Eu(0),this.expirationTimes=Eu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.identifierPrefix=d,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function oh(s,a,h,d,g,x,k,P,j){return s=new ax(s,a,h,P,j),a===1?(a=1,x===!0&&(a|=8)):a=0,x=er(3,null,null,a),s.current=x,x.stateNode=s,x.memoizedState={element:d,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},v0(x),s}function cx(s,a,h){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:X,key:d==null?null:""+d,children:s,containerInfo:a,implementation:h}}function pm(s){if(!s)return vi;s=s._reactInternals;e:{if(ot(s)!==s||s.tag!==1)throw Error(t(170));var a=s;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Sn(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(t(171))}if(s.tag===1){var h=s.type;if(Sn(h))return Dd(s,h,a)}return a}function mm(s,a,h,d,g,x,k,P,j){return s=oh(h,d,!0,s,g,x,k,P,j),s.context=pm(null),h=s.current,d=dn(),g=Pi(h),x=Kr(d,g),x.callback=a??null,ki(h,x,g),s.current.lanes=g,xl(s,g,d),bn(s,d),s}function Da(s,a,h,d){var g=a.current,x=dn(),k=Pi(g);return h=pm(h),a.context===null?a.context=h:a.pendingContext=h,a=Kr(x,k),a.payload={element:s},d=d===void 0?null:d,d!==null&&(a.callback=d),s=ki(g,a,k),s!==null&&(pr(s,g,k,x),xa(s,g,k)),k}function Ia(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function Om(s,a){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<a?h:a}}function ah(s,a){Om(s,a),(s=s.alternate)&&Om(s,a)}function ux(){return null}var gm=typeof reportError=="function"?reportError:function(s){console.error(s)};function ch(s){this._internalRoot=s}Wa.prototype.render=ch.prototype.render=function(s){var a=this._internalRoot;if(a===null)throw Error(t(409));Da(s,a,null,null)},Wa.prototype.unmount=ch.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var a=s.containerInfo;Ji(function(){Da(null,s,null,null)}),a[Fr]=null}};function Wa(s){this._internalRoot=s}Wa.prototype.unstable_scheduleHydration=function(s){if(s){var a=ed();s={blockedOn:null,target:s,priority:a};for(var h=0;h<mi.length&&a!==0&&a<mi[h].priority;h++);mi.splice(h,0,s),h===0&&rd(s)}};function uh(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Ha(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function ym(){}function hx(s,a,h,d,g){if(g){if(typeof d=="function"){var x=d;d=function(){var W=Ia(k);x.call(W)}}var k=mm(a,d,s,0,null,!1,!1,"",ym);return s._reactRootContainer=k,s[Fr]=k.current,El(s.nodeType===8?s.parentNode:s),Ji(),k}for(;g=s.lastChild;)s.removeChild(g);if(typeof d=="function"){var P=d;d=function(){var W=Ia(j);P.call(W)}}var j=oh(s,0,!1,null,null,!1,!1,"",ym);return s._reactRootContainer=j,s[Fr]=j.current,El(s.nodeType===8?s.parentNode:s),Ji(function(){Da(a,j,h,d)}),j}function Ya(s,a,h,d,g){var x=h._reactRootContainer;if(x){var k=x;if(typeof g=="function"){var P=g;g=function(){var j=Ia(k);P.call(j)}}Da(a,k,s,g)}else k=hx(h,a,s,g,d);return Ia(k)}Kf=function(s){switch(s.tag){case 3:var a=s.stateNode;if(a.current.memoizedState.isDehydrated){var h=yl(a.pendingLanes);h!==0&&(ju(a,h|1),bn(a,kt()),(Be&6)===0&&(Vs=kt()+500,Si()))}break;case 13:Ji(function(){var d=Gr(s,1);if(d!==null){var g=dn();pr(d,s,1,g)}}),ah(s,1)}},Vu=function(s){if(s.tag===13){var a=Gr(s,134217728);if(a!==null){var h=dn();pr(a,s,134217728,h)}ah(s,134217728)}},Jf=function(s){if(s.tag===13){var a=Pi(s),h=Gr(s,a);if(h!==null){var d=dn();pr(h,s,a,d)}ah(s,a)}},ed=function(){return st},td=function(s,a){var h=st;try{return st=s,a()}finally{st=h}},hi=function(s,a,h){switch(a){case"input":if(De(s,h),a=h.name,h.type==="radio"&&a!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<h.length;a++){var d=h[a];if(d!==s&&d.form===s.form){var g=ca(d);if(!g)throw Error(t(90));je(d),De(d,g)}}}break;case"textarea":ft(s,h);break;case"select":a=h.value,a!=null&&yt(s,!!h.multiple,a,!1)}},hn=th,L=Ji;var fx={usingClientEntryPoint:!1,Events:[Rl,ws,ca,Yr,xn,th]},Ul={findFiberByHostInstance:Hi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dx={bundleType:Ul.bundleType,version:Ul.version,rendererPackageName:Ul.rendererPackageName,rendererConfig:Ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Ol(s),s===null?null:s.stateNode},findFiberByHostInstance:Ul.findFiberByHostInstance||ux,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fa.isDisabled&&Fa.supportsFiber)try{Wo=Fa.inject(dx),$r=Fa}catch{}}return Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fx,Qn.createPortal=function(s,a){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uh(a))throw Error(t(200));return cx(s,a,null,h)},Qn.createRoot=function(s,a){if(!uh(s))throw Error(t(299));var h=!1,d="",g=gm;return a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onRecoverableError!==void 0&&(g=a.onRecoverableError)),a=oh(s,1,!1,null,null,h,!1,d,g),s[Fr]=a.current,El(s.nodeType===8?s.parentNode:s),new ch(a)},Qn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var a=s._reactInternals;if(a===void 0)throw typeof s.render=="function"?Error(t(188)):(s=Object.keys(s).join(","),Error(t(268,s)));return s=Ol(a),s=s===null?null:s.stateNode,s},Qn.flushSync=function(s){return Ji(s)},Qn.hydrate=function(s,a,h){if(!Ha(a))throw Error(t(200));return Ya(null,s,a,!0,h)},Qn.hydrateRoot=function(s,a,h){if(!uh(s))throw Error(t(405));var d=h!=null&&h.hydratedSources||null,g=!1,x="",k=gm;if(h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(x=h.identifierPrefix),h.onRecoverableError!==void 0&&(k=h.onRecoverableError)),a=mm(a,null,s,1,h??null,g,!1,x,k),s[Fr]=a.current,El(s),d)for(s=0;s<d.length;s++)h=d[s],g=h._getVersion,g=g(h._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[h,g]:a.mutableSourceEagerHydrationData.push(h,g);return new Wa(a)},Qn.render=function(s,a,h){if(!Ha(a))throw Error(t(200));return Ya(null,s,a,!1,h)},Qn.unmountComponentAtNode=function(s){if(!Ha(s))throw Error(t(40));return s._reactRootContainer?(Ji(function(){Ya(null,null,s,!1,function(){s._reactRootContainer=null,s[Fr]=null})}),!0):!1},Qn.unstable_batchedUpdates=th,Qn.unstable_renderSubtreeIntoContainer=function(s,a,h,d){if(!Ha(h))throw Error(t(200));if(s==null||s._reactInternals===void 0)throw Error(t(38));return Ya(s,a,h,!1,d)},Qn.version="18.3.1-next-f1338f8080-20240426",Qn}var $m;function wx(){if($m)return dh.exports;$m=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),dh.exports=Sx(),dh.exports}var Pm;function kx(){if(Pm)return qa;Pm=1;var r=wx();return qa.createRoot=r.createRoot,qa.hydrateRoot=r.hydrateRoot,qa}var bx=kx();function _t(r){p.useEffect(r,[])}const Qx="modulepreload",$x=function(r){return"/"+r},Am={},Px=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){let o=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(O=>({status:"fulfilled",value:O}),O=>({status:"rejected",reason:O}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=o(t.map(f=>{if(f=$x(f),f in Am)return;Am[f]=!0;const m=f.endsWith(".css"),O=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${O}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":Qx,m||(y.as="script"),y.crossOrigin="",y.href=f,u&&y.setAttribute("nonce",u),document.head.appendChild(y),m)return new Promise((S,w)=>{y.addEventListener("load",S),y.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return i.then(o=>{for(const c of o||[])c.status==="rejected"&&l(c.reason);return e().catch(l)})};function Ax(r){if(typeof r!="object"||r===null)return!0;const e=r;return e.isLoaded===!0||typeof e.totalFrames=="number"&&e.totalFrames>0}function Cm(r,e){try{const t=r.contentWindow,n=r.contentDocument;if(!t||!n)return e;for(const l of n.querySelectorAll("video, audio"))if(l instanceof HTMLMediaElement&&l.readyState<HTMLMediaElement.HAVE_FUTURE_DATA)return!0;const i=t.__hfLottie;if(i!=null&&i.length){for(const l of i)if(!Ax(l))return!0}return!1}catch{return e}}const pg=p.forwardRef(({projectId:r,directUrl:e,onLoad:t,portrait:n},i)=>{const l=p.useRef(null),o=p.useRef(0),c=p.useRef(null),[u,f]=p.useState(!1);return _t(()=>{const m=l.current;if(!m)return;let O=!1,y;return Px(()=>import("./hyperframes-player-vibA20NC.js"),[]).then(()=>{if(O)return;const S=document.createElement("hyperframes-player"),w=e||`/api/projects/${r}/preview`;S.setAttribute("src",w),S.setAttribute("width",String(n?1080:1920)),S.setAttribute("height",String(n?1920:1080)),S.style.width="100%",S.style.height="100%",S.style.display="block",m.appendChild(S);const b=S.iframeElement;typeof i=="function"?i(b):i&&(i.current=b);const $=_=>_.stopImmediatePropagation();S.addEventListener("click",$,{capture:!0});const C=()=>{if(o.current++,o.current>1){m.classList.remove("preview-revealing"),m.offsetWidth,m.classList.add("preview-revealing");const A=()=>m.classList.remove("preview-revealing");m.addEventListener("animationend",A,{once:!0})}t(),c.current&&clearInterval(c.current);let _=Cm(b,!1);if(_){f(!0);let A=0;c.current=setInterval(()=>{A+=1,_=Cm(b,_),(!_||A>100)&&(c.current&&clearInterval(c.current),c.current=null,f(!1),_&&console.debug("[Player] Asset-loading overlay timed out after 10s; hiding anyway. Check network or asset integrity."))},100)}else f(!1)};b.addEventListener("load",C),y=()=>{b.removeEventListener("load",C),S.removeEventListener("click",$,{capture:!0}),c.current&&clearInterval(c.current),c.current=null,m.removeChild(S),typeof i=="function"?i(null):i&&(i.current=null)}}),()=>{O=!0,y==null||y()}}),v.jsxs("div",{className:"relative w-full h-full max-w-full max-h-full overflow-hidden bg-black flex items-center justify-center",children:[v.jsx("div",{ref:l,className:"w-full h-full"}),u&&v.jsxs("div",{className:"absolute inset-0 bg-black/80 flex flex-col items-center justify-center z-20 pointer-events-none",children:[v.jsx("div",{className:"w-8 h-8 border-2 border-white/20 border-t-white rounded-full animate-spin"}),v.jsx("span",{className:"text-white/60 text-xs mt-3",children:"Loading assets…"})]})]})});pg.displayName="Player";const nf="Shift+T",mg="hf-studio-timeline-editor-hint-dismissed";function Cx(r){var i,l,o;if(!r||typeof r!="object")return!1;const e=r,t=(i=e.tagName)==null?void 0:i.toLowerCase();if(t==="input"||t==="textarea"||t==="select"||e.isContentEditable)return!0;const n=(l=e.getAttribute)==null?void 0:l.call(e,"role");return n==="textbox"||n==="searchbox"||n==="combobox"?!0:!!((o=e.closest)!=null&&o.call(e,"input, textarea, select, [contenteditable='true'], [role='textbox'], .cm-editor"))}function Tx(r){return r.metaKey||r.ctrlKey||r.altKey||!r.shiftKey||r.key.toLowerCase()!=="t"?!1:!Cx(r.target)}function Og(r){return`${r?"Hide":"Show"} timeline editor (${nf})`}function Zx(){return typeof window>"u"?!1:window.localStorage.getItem(mg)==="1"}function Mx(r){if(!(typeof window>"u")){window.localStorage.setItem(mg,"1");return}}function nr(r){if(!Number.isFinite(r)||r<0)return"0:00";const e=Math.floor(r/60),t=Math.floor(r%60);return`${e}:${t.toString().padStart(2,"0")}`}const Tm=r=>{let e;const t=new Set,n=(f,m)=>{const O=typeof f=="function"?f(e):f;if(!Object.is(O,e)){const y=e;e=m??(typeof O!="object"||O===null)?O:Object.assign({},e,O),t.forEach(S=>S(e,y))}},i=()=>e,c={setState:n,getState:i,getInitialState:()=>u,subscribe:f=>(t.add(f),()=>t.delete(f))},u=e=r(n,i,c);return c},Ex=(r=>r?Tm(r):Tm),jx=r=>r;function Vx(r,e=jx){const t=Ba.useSyncExternalStore(r.subscribe,Ba.useCallback(()=>e(r.getState()),[r,e]),Ba.useCallback(()=>e(r.getInitialState()),[r,e]));return Ba.useDebugValue(t),t}const Zm=r=>{const e=Ex(r),t=n=>Vx(e,n);return Object.assign(t,e),t},gg=(r=>r?Zm(r):Zm),Oh=new Set,vo={notify:r=>Oh.forEach(e=>e(r)),subscribe:r=>(Oh.add(r),()=>Oh.delete(r))},Ee=gg(r=>({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null,playbackRate:1,zoomMode:"fit",manualZoomPercent:100,setIsPlaying:e=>r({isPlaying:e}),setPlaybackRate:e=>r({playbackRate:e}),setZoomMode:e=>r({zoomMode:e}),setManualZoomPercent:e=>r({manualZoomPercent:Math.max(10,Math.min(2e3,Math.round(e)))}),setCurrentTime:e=>r({currentTime:Number.isFinite(e)?e:0}),setDuration:e=>r({duration:Number.isFinite(e)?e:0}),setTimelineReady:e=>r({timelineReady:e}),setElements:e=>r({elements:e}),setSelectedElementId:e=>r({selectedElementId:e}),updateElement:(e,t)=>r(n=>({elements:n.elements.map(i=>(i.key??i.id)===e?{...i,...t}:i)})),reset:()=>r({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null})})),Rx=[.25,.5,1,1.5,2],Lx=8;function Xx(r,e,t){if(!Number.isFinite(t)||t<=0)return 0;const n=(r-e)/t,i=Math.max(0,Math.min(1,n)),l=Math.min(.5,Lx/t);return i<=l?0:i>=1-l?1:i}const Nx=p.memo(function({onTogglePlay:e,onSeek:t,timelineVisible:n,onToggleTimeline:i}){const l=Ee(N=>N.isPlaying),o=Ee(N=>N.duration),c=Ee(N=>N.timelineReady),u=Ee(N=>N.playbackRate),f=Ee.getState().setPlaybackRate,[m,O]=p.useState(!1),y=p.useRef(null),S=p.useRef(null),w=p.useRef(null),b=p.useRef(null),$=p.useRef(null),C=p.useRef(null),_=p.useRef(!1),A=p.useRef(0),T=p.useRef(o);T.current=o,_t(()=>{const N=K=>{A.current=K;const te=T.current,F=te>0?Math.min(100,K/te*100):0;y.current&&(y.current.style.width=`${F}%`),S.current&&(S.current.style.left=`${F}%`),w.current&&(w.current.textContent=nr(K)),$.current&&$.current.setAttribute("aria-valuenow",String(Math.round(K)))},Y=vo.subscribe(N);N(Ee.getState().currentTime);const fe=setInterval(()=>{const K=Ee.getState().currentTime,te=Ee.getState().duration;if(te>0&&K>0){const F=Math.min(100,K/te*100);y.current&&(y.current.style.width=`${F}%`),S.current&&(S.current.style.left=`${F}%`)}},500);return()=>{Y(),clearInterval(fe)}}),p.useEffect(()=>{if(!m)return;const N=Y=>{C.current&&!C.current.contains(Y.target)&&O(!1)};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[m]);const Z=p.useCallback(N=>{const Y=b.current;if(!Y||o<=0)return;const fe=Y.getBoundingClientRect(),K=Xx(N,fe.left,fe.width),te=K*100;y.current&&(y.current.style.width=`${te}%`),S.current&&(S.current.style.left=`${te}%`),t(K*o)},[o,t]),X=p.useCallback(N=>{if(N.button!==0)return;N.preventDefault(),N.currentTarget.focus(),_.current=!0;const Y=N.currentTarget,fe=N.pointerId;try{Y.setPointerCapture(fe)}catch{}Z(N.clientX);const K=B=>{B.pointerId===fe&&_.current&&Z(B.clientX)},te=()=>{_.current=!1;try{Y.releasePointerCapture(fe)}catch{}Y.removeEventListener("pointermove",K),Y.removeEventListener("pointerup",F),Y.removeEventListener("pointercancel",F),window.removeEventListener("pointerup",F),window.removeEventListener("pointercancel",F),document.removeEventListener("visibilitychange",re),window.removeEventListener("blur",te)},F=B=>{B.pointerId===fe&&te()},re=()=>{document.visibilityState==="hidden"&&te()};Y.addEventListener("pointermove",K),Y.addEventListener("pointerup",F),Y.addEventListener("pointercancel",F),window.addEventListener("pointerup",F),window.addEventListener("pointercancel",F),document.addEventListener("visibilitychange",re),window.addEventListener("blur",te)},[Z]),M=p.useCallback(N=>{if(!c||o<=0)return;const Y=N.shiftKey?5:1;N.key==="ArrowLeft"?(N.preventDefault(),t(Math.max(0,A.current-Y))):N.key==="ArrowRight"&&(N.preventDefault(),t(Math.min(o,A.current+Y)))},[c,o,t]);return v.jsxs("div",{className:"px-4 py-2 flex items-center gap-3",style:{borderTop:"1px solid rgba(255,255,255,0.04)",paddingBottom:"calc(0.5rem + env(safe-area-inset-bottom))"},children:[v.jsx("button",{type:"button","aria-label":l?"Pause":"Play",onClick:e,disabled:!c,className:"flex-shrink-0 w-8 h-8 flex items-center justify-center rounded-lg disabled:opacity-30 disabled:pointer-events-none transition-colors",style:{background:"rgba(255,255,255,0.06)"},children:l?v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:[v.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),v.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]}):v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:v.jsx("polygon",{points:"6,3 20,12 6,21"})})}),v.jsxs("span",{className:"font-mono text-[11px] tabular-nums flex-shrink-0 min-w-[72px]",style:{color:"#A1A1AA"},children:[v.jsx("span",{ref:w,children:nr(0)}),v.jsx("span",{style:{color:"#3F3F46",margin:"0 2px"},children:"/"}),v.jsx("span",{style:{color:"#52525B"},children:nr(o)})]}),v.jsx("div",{ref:N=>{b.current=N,$.current=N},role:"slider",tabIndex:0,"aria-label":"Seek","aria-valuemin":0,"aria-valuemax":Math.round(o),"aria-valuenow":0,className:"flex-1 h-6 flex items-center cursor-pointer group",style:{touchAction:"none"},onPointerDown:X,onKeyDown:M,children:v.jsxs("div",{className:"w-full rounded-full relative",style:{background:"rgba(255,255,255,0.15)",height:"3px"},children:[v.jsx("div",{ref:y,className:"absolute top-0 bottom-0 left-0 z-[1] rounded-full",style:{background:"linear-gradient(90deg, var(--hf-accent, #3CE6AC), #2BBFA0)"}}),v.jsx("div",{ref:S,className:"absolute top-1/2 z-[2] w-3 h-3 rounded-full -translate-y-1/2 -translate-x-1/2 transition-transform group-hover:scale-125",style:{background:"var(--hf-accent, #3CE6AC)",boxShadow:"0 0 6px rgba(60,230,172,0.4), 0 1px 4px rgba(0,0,0,0.4)"}})]})}),v.jsxs("div",{ref:C,className:"relative flex-shrink-0",children:[v.jsx("button",{type:"button",onClick:()=>O(N=>!N),className:"px-2 py-1 rounded-md text-[10px] font-mono tabular-nums transition-colors",style:{color:"#71717A",background:"rgba(255,255,255,0.04)"},children:u===1?"1x":`${u}x`}),m&&v.jsx("div",{className:"absolute bottom-full right-0 mb-1.5 rounded-lg shadow-xl z-50 min-w-[56px] overflow-hidden",style:{background:"#161618",border:"1px solid rgba(255,255,255,0.08)"},children:Rx.map(N=>v.jsxs("button",{onClick:()=>{f(N),O(!1)},className:"block w-full px-3 py-1.5 text-[11px] text-left font-mono tabular-nums transition-colors",style:{color:N===u?"#FAFAFA":"#71717A",background:N===u?"rgba(255,255,255,0.06)":"transparent"},onMouseEnter:Y=>{N!==u&&(Y.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:Y=>{N!==u&&(Y.currentTarget.style.background="transparent")},children:[N,"x"]},N))})]}),i!==void 0&&v.jsxs("button",{type:"button",onClick:i,className:`h-7 flex items-center gap-1.5 rounded-md border px-2.5 text-[11px] font-medium transition-colors ${n?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-300 hover:border-neutral-500 hover:bg-neutral-800"}`,title:Og(!!n),"aria-label":n?"Hide timeline editor":"Show timeline editor",children:[v.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[v.jsx("rect",{x:"3",y:"13",width:"18",height:"8",rx:"1"}),v.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),v.jsx("line",{x1:"3",y1:"5",x2:"21",y2:"5"})]}),v.jsx("span",{children:"Timeline"}),v.jsx("span",{className:"hidden md:inline rounded bg-black/20 px-1 py-0.5 text-[9px] font-mono opacity-70",children:nf})]})]})}),Mm="#3CE6AC",_x="#E9FFF6",zx="rgba(60,230,172,0.12)";function jr(){return{clip:Mm,accent:Mm,label:_x,iconBackground:zx}}const Em={video:jr(),audio:jr(),img:jr(),div:jr(),span:jr(),p:jr(),h1:jr(),section:jr(),sfx:jr()},Dx=jr(),yg={shellBackground:"#0A0E15",shellBorder:"rgba(255,255,255,0.05)",rulerBorder:"rgba(255,255,255,0.045)",rowBackground:"#0A0E15",rowBorder:"rgba(255,255,255,0.05)",gutterBackground:"#0D121B",gutterBorder:"rgba(255,255,255,0.05)",textPrimary:"#E8EDF5",textSecondary:"#8391A8",tickText:"rgba(131,145,168,0.92)",tickMajor:"rgba(255,255,255,0.13)",tickMinor:"rgba(255,255,255,0.08)",clipBackground:"linear-gradient(180deg, rgba(20,25,34,0.98), rgba(14,18,27,0.98))",clipBackgroundActive:"linear-gradient(180deg, rgba(24,30,40,0.99), rgba(15,20,29,0.99))",clipBorder:"rgba(255,255,255,0.07)",clipBorderHover:"rgba(255,255,255,0.11)",clipBorderActive:"rgba(255,255,255,0.14)",clipShadow:"inset 0 1px 0 rgba(255,255,255,0.03), 0 6px 18px rgba(0,0,0,0.18)",clipShadowHover:"inset 0 1px 0 rgba(255,255,255,0.035), 0 8px 20px rgba(0,0,0,0.2)",clipShadowActive:"inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.035)",clipShadowDragging:"inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 36px rgba(0,0,0,0.34), 0 8px 16px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.04)",handleColor:"rgba(255,255,255,0.11)",panelResizeSeam:"rgba(255,255,255,0.12)",panelResizeActive:"rgba(255,255,255,0.24)",clipRadius:"11px 15px 13px 9px / 10px 14px 12px 10px"};function Ix(r){const e=r.toLowerCase();return e.startsWith("h")&&e.length===2&&"123456".includes(e[1]??"")?Em.h1:Em[e]??Dx}function Wx({isHovered:r,isSelected:e,isDragging:t}){return t?.95:e?.82:r?.76:0}function Hx({element:r,draggedElementId:e,previewStart:t,previewTrack:n}){return r.id!==e||t===null||n===null?r:{...r,start:t,track:n}}const jm=100;function Ds(r){return Math.round(r*jm)/jm}function jc(r,e,t){return Math.min(Math.max(r,e),t)}const Vm=.55,Ua=40,Rm=12;function Lm(r,e,t){const n=(i,l,o)=>{if(o<i+Ua){const c=Math.max(0,1-(o-i)/Ua);return-Math.round(Rm*c)}if(o>l-Ua){const c=Math.max(0,1-(l-o)/Ua);return Math.round(Rm*c)}return 0};return{x:n(r.left,r.right,e),y:n(r.top,r.bottom,t)}}function Yx(r,e,t){const n=(r.currentScrollLeft??0)-(r.originScrollLeft??0),i=(r.currentScrollTop??0)-(r.originScrollTop??0),l=(e-r.originClientX+n)/Math.max(r.pixelsPerSecond,1),o=(t-r.originClientY+i)/Math.max(r.trackHeight,1),c=Math.round(o),u=Math.max(0,r.trackOrder.indexOf(r.track)),f=u+c,m=jc(f,0,Math.max(0,r.trackOrder.length-1)),O=Math.min(...r.trackOrder),y=Math.max(...r.trackOrder);let S=r.trackOrder[m]??r.track;const w=u===0,b=u===r.trackOrder.length-1;return w&&f<0&&u+o<=-Vm?S=O-1:b&&f>r.trackOrder.length-1&&u+o>=r.trackOrder.length-1+Vm&&(S=y+1),{start:jc(Ds(r.start+l),0,Math.max(0,r.maxStart)),track:S}}function Fx(r){const e=Array.from(new Set(r)).sort((n,i)=>n-i),t=e.length;return new Map(e.map((n,i)=>[n,t-i]))}function Bx(r,e,t){const n=Math.max(.05,r.minDuration??.1),i=(t-r.originClientX)/Math.max(r.pixelsPerSecond,1);if(e==="end"){const S=jc(Ds(r.duration+i),n,Math.max(n,r.maxEnd-r.start));return{start:r.start,duration:S,playbackStart:r.playbackStart}}const l=Math.max(.1,r.playbackRate??1),o=r.playbackStart!=null?r.playbackStart/l:Number.POSITIVE_INFINITY,c=-Math.min(r.start-r.minStart,o),u=r.duration-n,f=jc(i,c,u),m=Ds(r.start+f),O=Ds(r.duration-f),y=r.playbackStart!=null?Ds(Math.max(0,r.playbackStart+f*l)):void 0;return{start:m,duration:O,playbackStart:y}}function qx(r){if(r.compositionSrc||r.playbackStartAttr!=null||r.sourceDuration!=null&&Number.isFinite(r.sourceDuration)&&r.sourceDuration>0)return!0;const e=r.tag.toLowerCase();return["video","audio","img"].includes(e)}function Ux(r){return!!(r.domId||r.selector)}function Gx(r){if(r.playbackStartAttr!=null||r.playbackStart!=null)return!0;const e=r.tag.toLowerCase();return["video","audio"].includes(e)?r.sourceDuration!=null&&Number.isFinite(r.sourceDuration)&&r.sourceDuration>0:!1}function xg(r){const e=Ux(r),t=Number.isFinite(r.duration)&&r.duration>0,n=qx(r);return{canMove:e&&n,canTrimEnd:e&&t&&n,canTrimStart:e&&t&&Gx(r)}}function Kx({rangeStart:r,rangeEnd:e,elements:t,prompt:n}){const i=Math.min(r,e),l=Math.max(r,e),o=t.map(c=>`- #${c.id} (${c.tag}) — ${nr(c.start)} to ${nr(c.start+c.duration)}, track ${c.track}`).join(`
41
- `);return`Edit the following HyperFrames composition:
42
-
43
- Time range: ${nr(i)} — ${nr(l)}
44
-
45
- Elements in range:
46
- ${o||"(none)"}
47
-
48
- User request:
49
- ${n.trim()||"(no prompt provided)"}
50
-
51
- Instructions:
52
- Modify only the elements listed above within the specified time range.
53
- The composition uses HyperFrames data attributes (data-start, data-duration, data-track-index) and GSAP for animations.
54
- Preserve all other elements and timing outside this range.`}function Xm(r){return r.trim()}function Ga(r){return Number(Ds(r).toFixed(2)).toString()}const Nm=p.memo(function({el:e,pps:t,clipY:n,isSelected:i,isHovered:l,isDragging:o=!1,hasCustomContent:c,theme:u=yg,trackStyle:f,isComposition:m,onHoverStart:O,onHoverEnd:y,onPointerDown:S,onResizeStart:w,onClick:b,onDoubleClick:$,children:C}){const _=e.start*t,A=Math.max(e.duration*t,4),T=Wx({isHovered:l,isSelected:i,isDragging:o}),Z=i?u.clipBorderActive:l?u.clipBorderHover:u.clipBorder,X=o?u.clipShadowDragging:i?u.clipShadowActive:l?u.clipShadowHover:u.clipShadow,M=xg(e),N=T>.01;return v.jsxs("div",{"data-clip":"true",className:c?"absolute overflow-hidden":"absolute flex items-center overflow-hidden",style:{left:_,width:A,top:n,bottom:n,borderRadius:u.clipRadius,background:i?`linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)), linear-gradient(120deg, ${f.accent}22, transparent 28%), ${u.clipBackgroundActive}`:`linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), linear-gradient(120deg, ${f.accent}1e, transparent 28%), ${u.clipBackground}`,backgroundImage:m&&!c?"repeating-linear-gradient(135deg, transparent, transparent 3px, rgba(255,255,255,0.05) 3px, rgba(255,255,255,0.05) 6px)":void 0,border:`1px solid ${Z}`,boxShadow:X,transition:"border-color 120ms ease-out, box-shadow 140ms ease-out, background 140ms ease-out",zIndex:o?20:i?10:l?5:1,cursor:M.canMove?"grab":"default",transform:o?"translateY(-1px)":void 0},title:m?`${e.compositionSrc} • Double-click to open`:`${e.id||e.tag} • ${e.start.toFixed(1)}s – ${(e.start+e.duration).toFixed(1)}s`,onPointerEnter:O,onPointerLeave:y,onPointerDown:S,onClick:b,onDoubleClick:$,children:[v.jsx("div",{"aria-hidden":"true",role:"presentation",onPointerDown:Y=>w==null?void 0:w("start",Y),style:{position:"absolute",left:0,top:0,bottom:0,width:18,opacity:N&&M.canTrimStart?1:0,pointerEvents:w&&M.canTrimStart?"auto":"none",zIndex:4,transition:"opacity 120ms ease-out",cursor:"col-resize",background:N&&M.canTrimStart?`linear-gradient(90deg, ${f.accent}4d 0%, ${f.accent}22 42%, transparent 100%)`:"transparent"},children:v.jsx("div",{style:{position:"absolute",left:6,top:7,bottom:7,width:3,borderRadius:999,background:u.handleColor,boxShadow:`0 0 0 1px ${f.accent}38, 0 0 12px ${f.accent}18`,opacity:T,pointerEvents:"none"}})}),v.jsx("div",{"aria-hidden":"true",role:"presentation",onPointerDown:Y=>w==null?void 0:w("end",Y),style:{position:"absolute",right:0,top:0,bottom:0,width:18,opacity:N?1:0,pointerEvents:w&&M.canTrimEnd?"auto":"none",zIndex:4,transition:"opacity 120ms ease-out",cursor:"col-resize",background:N&&M.canTrimEnd?`linear-gradient(270deg, ${f.accent}4d 0%, ${f.accent}22 42%, transparent 100%)`:"transparent"},children:v.jsx("div",{style:{position:"absolute",right:6,top:7,bottom:7,width:3,borderRadius:999,background:u.handleColor,boxShadow:`0 0 0 1px ${f.accent}38, 0 0 12px ${f.accent}18`,opacity:T,pointerEvents:"none"}})}),C]})});function Jx({rangeStart:r,rangeEnd:e,anchorX:t,anchorY:n,onClose:i}){const l=Ee(Z=>Z.elements),[o,c]=p.useState(""),[u,f]=p.useState(!1),[m,O]=p.useState(!1),y=p.useRef(null),S=p.useRef(null),w=Math.min(r,e),b=Math.max(r,e),$=p.useMemo(()=>l.filter(Z=>{const X=Z.start+Z.duration;return Z.start<b&&X>w}),[l,w,b]);_t(()=>{setTimeout(()=>{var Z;return(Z=S.current)==null?void 0:Z.focus()},50)}),_t(()=>{const Z=X=>{X.key==="Escape"&&i()};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)}),_t(()=>{const Z=X=>{y.current&&!y.current.contains(X.target)&&i()};return setTimeout(()=>window.addEventListener("mousedown",Z),100),()=>window.removeEventListener("mousedown",Z)});const C=p.useCallback(()=>Kx({rangeStart:w,rangeEnd:b,elements:$,prompt:o}),[w,b,$,o]),_=p.useCallback(async()=>{try{await navigator.clipboard.writeText(C())}catch{const Z=document.createElement("textarea");Z.value=C(),document.body.appendChild(Z),Z.select(),document.execCommand("copy"),document.body.removeChild(Z)}f(!0),setTimeout(()=>{f(!1),i()},800)},[C,i]),A=p.useCallback(async()=>{const Z=Xm(o);if(Z){try{await navigator.clipboard.writeText(Z)}catch{const X=document.createElement("textarea");X.value=Z,document.body.appendChild(X),X.select(),document.execCommand("copy"),document.body.removeChild(X)}O(!0),setTimeout(()=>{O(!1)},800)}},[o]),T={position:"fixed",left:Math.max(8,Math.min(t-160,window.innerWidth-336)),top:Math.max(8,n-280),zIndex:200};return v.jsx("div",{ref:y,style:T,children:v.jsxs("div",{className:"w-80 bg-neutral-900 border border-neutral-700/60 rounded-xl shadow-2xl shadow-black/40 overflow-hidden",children:[v.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-b border-neutral-800/60",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-studio-accent"}),v.jsxs("span",{className:"text-[11px] font-medium text-neutral-300",children:[nr(w)," — ",nr(b)]})]}),v.jsxs("span",{className:"text-[10px] text-neutral-600",children:[$.length," element",$.length!==1?"s":""]})]}),$.length>0&&v.jsx("div",{className:"px-4 py-2 border-b border-neutral-800/40 max-h-24 overflow-y-auto",children:$.map(Z=>v.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[v.jsxs("span",{className:"text-[10px] font-mono text-studio-accent/80",children:["#",Z.id]}),v.jsx("span",{className:"text-[10px] text-neutral-600",children:Z.tag})]},Z.id))}),v.jsx("div",{className:"p-3",children:v.jsx("textarea",{ref:S,value:o,onChange:Z=>c(Z.target.value),onKeyDown:Z=>{Z.key==="Enter"&&(Z.metaKey||Z.ctrlKey)&&(Z.preventDefault(),_())},placeholder:"What should change?",rows:2,className:"w-full px-3 py-2 text-xs bg-neutral-800/60 border border-neutral-700/40 rounded-lg text-neutral-200 placeholder:text-neutral-600 resize-none focus:outline-none focus:border-studio-accent/40 transition-colors"})}),v.jsxs("div",{className:"grid grid-cols-2 gap-2 px-3 pb-3",children:[v.jsx("button",{onClick:A,disabled:!Xm(o),className:`py-1.5 text-[11px] font-medium rounded-lg transition-all border ${m?"bg-green-500/20 text-green-400 border-green-500/30":"bg-neutral-800/70 text-neutral-200 border-neutral-700/50 hover:bg-neutral-800"} disabled:opacity-50 disabled:cursor-not-allowed`,children:m?"Prompt Copied!":"Copy Prompt"}),v.jsxs("button",{onClick:_,className:`py-1.5 text-[11px] font-medium rounded-lg transition-all ${u?"bg-green-500/20 text-green-400 border border-green-500/30":"bg-studio-accent/15 text-studio-accent border border-studio-accent/25 hover:bg-studio-accent/25"}`,children:[u?"Copied!":"Copy to Agent",!u&&v.jsx("span",{className:"text-[9px] text-studio-accent/50 ml-1.5",children:"Cmd+Enter"})]})]})]})})}const ev=10,tv=2e3,nv=.8,rv=1.25;function vg(r){return Number.isFinite(r)?Math.max(ev,Math.min(tv,Math.round(r))):100}function rf(r,e){return r==="fit"?100:vg(e)}function iv(r,e,t){if(!Number.isFinite(r)||r<=0)return 100;const n=rf(e,t);return e==="fit"?r:r*(n/100)}function _m(r,e,t){const n=rf(e,t),i=r==="in"?n*rv:n*nv;return vg(i)}const Kt=32,Ka=72,Kl=24,zm=3,ul="/icons/timeline";function hl({src:r}){return v.jsx("img",{src:r,alt:"",width:12,height:12,style:{filter:"brightness(0) invert(1)"},draggable:!1})}const sv=v.jsx(hl,{src:`${ul}/captions.svg`}),Dm=v.jsx(hl,{src:`${ul}/image.svg`}),lv=v.jsx(hl,{src:`${ul}/music.svg`}),Im=v.jsx(hl,{src:`${ul}/text.svg`}),r1=v.jsx(hl,{src:`${ul}/composition.svg`}),ov=v.jsx(hl,{src:`${ul}/audio.svg`}),Wm={video:Dm,audio:lv,img:Dm,div:r1,span:sv,p:Im,h1:Im,section:r1,sfx:ov};function Jl(r){const e=Ix(r),t=r.toLowerCase(),n=t.startsWith("h")&&t.length===2&&"123456".includes(t[1]??"")?Wm.h1:Wm[t]??r1;return{...e,icon:n}}function av(r){if(r<=0||!Number.isFinite(r)||r>7200)return{major:[],minor:[]};const e=[.5,1,2,5,10,15,30,60],t=r/6,n=e.find(u=>u>=t)??60,i=Math.max(.25,n/2),l=[],o=[],c=500;for(let u=0;u<=r+.001&&l.length+o.length<c;u+=i){const f=Math.round(u*100)/100;Math.abs(f%n)<.01||Math.abs(f%n-n)<.01?l.push(f):o.push(f)}return{major:l,minor:o}}function Hm(r,e,t){return r==="fit"||!Number.isFinite(e)||!Number.isFinite(t)?!1:e-t>1}function cv(r,e,t){return r==="manual"&&e==="fit"?0:t}function Ym(r,e){return!Number.isFinite(r)||!Number.isFinite(e)?Kt:Kt+Math.max(0,r)*Math.max(0,e)}const uv=p.memo(function({onSeek:e,onDrillDown:t,renderClipContent:n,renderClipOverlay:i,onFileDrop:l,onMoveElement:o,onResizeElement:c,theme:u}={}){const f=p.useMemo(()=>({...yg,...u}),[u]),m=Ee(E=>E.elements),O=Ee(E=>E.duration),y=Ee(E=>E.timelineReady),S=Ee(E=>E.selectedElementId),w=Ee(E=>E.setSelectedElementId),b=Ee(E=>E.updateElement),$=Ee(E=>E.currentTime),C=Ee(E=>E.zoomMode),_=Ee(E=>E.manualZoomPercent),A=p.useRef(null),T=p.useRef(null),Z=p.useRef(null),[X,M]=p.useState(null),N=p.useRef(!1),[Y,fe]=p.useState(!1);_t(()=>{const E=ae=>ae.key==="Shift"&&fe(!0),q=ae=>ae.key==="Shift"&&fe(!1),ne=()=>fe(!1);return window.addEventListener("keydown",E),window.addEventListener("keyup",q),window.addEventListener("blur",ne),()=>{window.removeEventListener("keydown",E),window.removeEventListener("keyup",q),window.removeEventListener("blur",ne)}});const K=p.useRef(!1),te=p.useRef(0),[F,re]=p.useState(null),[B,he]=p.useState(null),ce=p.useRef(null);ce.current=B;const[H,J]=p.useState(null),U=p.useRef(null);U.current=H;const Q=p.useRef(o);Q.current=o;const z=p.useRef(c);z.current=c;const ie=p.useRef(!1),[de,ee]=p.useState(!1),[Qe,Le]=p.useState(0),Ce=p.useRef(null),Xe=p.useCallback(E=>{Ce.current&&(Ce.current.disconnect(),Ce.current=null),T.current=E,E&&(Le(E.clientWidth),Ce.current=new ResizeObserver(([q])=>{Le(q.contentRect.width)}),Ce.current.observe(E))},[]);_t(()=>()=>{var E;(E=Ce.current)==null||E.disconnect()});const me=p.useMemo(()=>{const E=Number.isFinite(O)?O:0;if(m.length===0)return E;const q=Math.max(...m.map(ae=>ae.start+ae.duration)),ne=Math.max(E,q);return Number.isFinite(ne)?ne:E},[m,O]),Te=p.useMemo(()=>{const E=new Map;for(const q of m){const ne=E.get(q.track)??[];ne.push(q),E.set(q.track,ne)}return Array.from(E.entries()).sort(([q],[ne])=>q-ne)},[m]),je=p.useMemo(()=>{var q;const E=new Map;for(const[ne,ae]of Te)E.set(ne,Jl(((q=ae[0])==null?void 0:q.tag)??""));return E},[Te]),ze=p.useMemo(()=>Te.map(([E])=>E),[Te]),Ne=p.useRef(ze);Ne.current=ze;const Je=p.useMemo(()=>!(B!=null&&B.started)||ze.length===0||ze.includes(B.previewTrack)?ze:[...ze,B.previewTrack].sort((E,q)=>E-q),[B,ze]),At=Qe>Kt&&me>0?(Qe-Kt-2)/me:100,De=iv(At,C,_),Ct=Math.max(0,me*De),En=p.useRef(C);En.current=C;const tn=p.useRef(C),yt=p.useRef(me);yt.current=me;const jt=p.useRef(De);jt.current=De;const gn=p.useCallback(E=>{!A.current||yt.current<=0||(A.current.style.left=`${Ym(E,jt.current)}px`)},[]);p.useEffect(()=>{gn($)},[$,De,gn]),p.useEffect(()=>{const E=Z.current;if(!E){tn.current=C;return}E.scrollLeft=cv(tn.current,C,E.scrollLeft),tn.current=C},[C]),_t(()=>vo.subscribe(q=>{const ne=yt.current;if(!A.current||ne<=0)return;const ae=Ym(q,jt.current);A.current.style.left=`${ae}px`;const Oe=Z.current;if(Oe&&!N.current&&Hm(En.current,Oe.scrollWidth,Oe.clientWidth)){const ge=Oe.scrollLeft+Oe.clientWidth,tt=Oe.scrollLeft,nt=Oe.clientWidth*.12;ae>ge-nt?Oe.scrollLeft=ae-Oe.clientWidth*.15:ae<tt+Kt&&(Oe.scrollLeft=Math.max(0,ae-Kt))}}));const ft=p.useRef(0),wt=p.useRef(0),Tt=p.useRef(null),Vt=p.useCallback((E,q,ne)=>{const ae=Z.current,Oe=Yx({start:E.element.start,track:E.element.track,duration:E.element.duration,originClientX:E.originClientX,originClientY:E.originClientY,originScrollLeft:E.originScrollLeft,originScrollTop:E.originScrollTop,currentScrollLeft:(ae==null?void 0:ae.scrollLeft)??E.originScrollLeft,currentScrollTop:(ae==null?void 0:ae.scrollTop)??E.originScrollTop,pixelsPerSecond:jt.current,trackHeight:Ka,maxStart:Math.max(0,yt.current-E.element.duration),trackOrder:Ne.current},q,ne);return{...E,started:!0,pointerClientX:q,pointerClientY:ne,previewStart:Oe.start,previewTrack:Oe.track}},[]),xt=p.useCallback(()=>{Tt.current=null,wt.current&&(cancelAnimationFrame(wt.current),wt.current=0)},[]),Fn=p.useCallback(()=>{wt.current=0;const E=ce.current,q=Tt.current,ne=Z.current;if(!E||!q||!ne)return;const ae=ne.getBoundingClientRect(),Oe=Lm(ae,q.clientX,q.clientY);if(Oe.x===0&&Oe.y===0)return;const ge=Math.max(0,ne.scrollWidth-ne.clientWidth),tt=Math.max(0,ne.scrollHeight-ne.clientHeight),nt=Math.max(0,Math.min(ge,ne.scrollLeft+Oe.x)),Ye=Math.max(0,Math.min(tt,ne.scrollTop+Oe.y));(nt!==ne.scrollLeft||Ye!==ne.scrollTop)&&(ne.scrollLeft=nt,ne.scrollTop=Ye,he(Bt=>Bt&&Vt(Bt,q.clientX,q.clientY)),wt.current=requestAnimationFrame(Fn))},[Vt]),yn=p.useCallback((E,q)=>{Tt.current={clientX:E,clientY:q};const ne=Z.current;if(!ne)return;const ae=ne.getBoundingClientRect(),Oe=Lm(ae,E,q);if(Oe.x===0&&Oe.y===0){wt.current&&(cancelAnimationFrame(wt.current),wt.current=0);return}wt.current||(wt.current=requestAnimationFrame(Fn))},[Fn]),jn=p.useRef(Vt);jn.current=Vt;const Rt=p.useRef(yn);Rt.current=yn;const zt=p.useRef(xt);zt.current=xt;const Vn=p.useCallback(E=>{const q=Z.current;if(!q||me<=0)return;const ne=q.getBoundingClientRect(),ae=q.scrollLeft,Oe=E-ne.left+ae-Kt;if(Oe<0)return;const ge=Math.max(0,Math.min(me,Oe/De));vo.notify(ge),e==null||e(ge)},[me,e,De]),Sr=p.useCallback(E=>{cancelAnimationFrame(ft.current);const q=Z.current;if(!q||!N.current||!Hm(En.current,q.scrollWidth,q.clientWidth))return;const ne=q.getBoundingClientRect(),ae=40,Oe=12;let ge=0;if(E<ne.left+ae){const tt=Math.max(0,1-(E-ne.left)/ae);ge=-Oe*tt}else if(E>ne.right-ae){const tt=Math.max(0,1-(ne.right-E)/ae);ge=Oe*tt}ge!==0&&(q.scrollLeft+=ge,Vn(E),ft.current=requestAnimationFrame(()=>Sr(E)))},[Vn]);_t(()=>{const E=()=>{requestAnimationFrame(()=>{ie.current=!1})},q=ae=>{const Oe=ce.current,ge=U.current;if(ge){const nt=Math.abs(ae.clientX-ge.originClientX);if(!ge.started&&nt<2)return;ee(!1),re(null);const Ye=ge.element.sourceDuration!=null?Math.max(0,(ge.element.sourceDuration-(ge.element.playbackStart??0))/Math.max(ge.element.playbackRate??1,.1)):Number.POSITIVE_INFINITY,_e=Bx({start:ge.element.start,duration:ge.element.duration,originClientX:ge.originClientX,pixelsPerSecond:jt.current,minStart:0,maxEnd:Math.min(yt.current,ge.element.start+Ye),playbackStart:ge.element.playbackStart,playbackRate:ge.element.playbackRate},ge.edge,ae.clientX);J(Bt=>Bt&&{...Bt,started:!0,previewStart:_e.start,previewDuration:_e.duration,previewPlaybackStart:_e.playbackStart});return}if(!Oe)return;const tt=Math.hypot(ae.clientX-Oe.originClientX,ae.clientY-Oe.originClientY);!Oe.started&&tt<4||(ee(!1),re(null),he(nt=>nt&&jn.current(nt,ae.clientX,ae.clientY)),Rt.current(ae.clientX,ae.clientY))},ne=()=>{var tt,nt;zt.current();const ae=U.current;if(ae){if(U.current=null,J(null),!ae.started||(ie.current=!0,E(),!(ae.previewStart!==ae.element.start||ae.previewDuration!==ae.element.duration||ae.previewPlaybackStart!==ae.element.playbackStart)))return;b(ae.element.key??ae.element.id,{start:ae.previewStart,duration:ae.previewDuration,playbackStart:ae.previewPlaybackStart}),Promise.resolve((tt=z.current)==null?void 0:tt.call(z,ae.element,{start:ae.previewStart,duration:ae.previewDuration,playbackStart:ae.previewPlaybackStart})).catch(_e=>{b(ae.element.key??ae.element.id,{start:ae.element.start,duration:ae.element.duration,playbackStart:ae.element.playbackStart}),console.error("[Timeline] Failed to persist clip resize",_e)});return}const Oe=ce.current;!Oe||(ce.current=null,he(null),!Oe.started)||(ie.current=!0,E(),!(Oe.previewStart!==Oe.element.start||Oe.previewTrack!==Oe.element.track))||(b(Oe.element.key??Oe.element.id,{start:Oe.previewStart,track:Oe.previewTrack}),Promise.resolve((nt=Q.current)==null?void 0:nt.call(Q,Oe.element,{start:Oe.previewStart,track:Oe.previewTrack})).catch(Ye=>{b(Oe.element.key??Oe.element.id,{start:Oe.element.start,track:Oe.element.track}),console.error("[Timeline] Failed to persist clip move",Ye)}))};return window.addEventListener("pointermove",q),window.addEventListener("pointerup",ne),window.addEventListener("pointercancel",ne),()=>{zt.current(),window.removeEventListener("pointermove",q),window.removeEventListener("pointerup",ne),window.removeEventListener("pointercancel",ne)}});const wr=p.useCallback(E=>{var q,ne;if(E.button===0){if(E.shiftKey){E.currentTarget.setPointerCapture(E.pointerId),K.current=!0,ee(!1);const ae=(q=Z.current)==null?void 0:q.getBoundingClientRect();if(ae){const Oe=E.clientX-ae.left+(((ne=Z.current)==null?void 0:ne.scrollLeft)??0)-Kt,ge=Math.max(0,Oe/De);te.current=ge,re({start:ge,end:ge,anchorX:E.clientX,anchorY:E.clientY})}return}E.target.closest("[data-clip]")||(E.currentTarget.setPointerCapture(E.pointerId),N.current=!0,re(null),ee(!1),Vn(E.clientX))}},[Vn,De]),Wi=p.useCallback(E=>{var q,ne;if(K.current){const ae=(q=Z.current)==null?void 0:q.getBoundingClientRect();if(ae){const Oe=E.clientX-ae.left+(((ne=Z.current)==null?void 0:ne.scrollLeft)??0)-Kt,ge=Math.max(0,Oe/De);re(tt=>tt?{...tt,end:ge,anchorX:E.clientX,anchorY:E.clientY}:null)}return}N.current&&(Vn(E.clientX),Sr(E.clientX))},[Vn,Sr,De]),ui=p.useCallback(()=>{if(K.current){K.current=!1,re(E=>E&&Math.abs(E.end-E.start)>.2?(ee(!0),E):null);return}N.current=!1,cancelAnimationFrame(ft.current)},[]),{major:Bn,minor:hi}=p.useMemo(()=>av(me),[me]),kr=p.useCallback(E=>(H==null?void 0:H.element.id)===E.id?{...E,start:H.previewStart,duration:H.previewDuration,playbackStart:H.previewPlaybackStart}:E,[H]),[Rn,Hr]=p.useState(!1);if(!y||m.length===0)return v.jsxs("div",{className:`h-full border-t bg-[#0a0a0b] flex flex-col select-none transition-colors duration-150 ${Rn?"border-studio-accent/50 bg-studio-accent/[0.03]":"border-neutral-800/50"}`,onDragOver:E=>{E.preventDefault(),Hr(!0)},onDragLeave:()=>Hr(!1),onDrop:E=>{E.preventDefault(),Hr(!1),l&&E.dataTransfer.files.length>0&&l(Array.from(E.dataTransfer.files))},children:[v.jsx("div",{className:"flex-shrink-0 border-b border-neutral-800/40 flex items-end relative",style:{height:Kl,paddingLeft:Kt},children:[0,10,20,30,40,50].map(E=>v.jsxs("div",{className:"flex flex-col items-center",style:{position:"absolute",left:Kt+E*14},children:[v.jsx("span",{className:"text-[9px] text-neutral-600 font-mono tabular-nums leading-none mb-0.5",children:`${Math.floor(E/60)}:${(E%60).toString().padStart(2,"0")}`}),v.jsx("div",{className:"w-px h-[5px] bg-neutral-700/40"})]},E))}),v.jsx("div",{className:"flex-1 flex items-center justify-center",children:v.jsx("div",{className:`flex items-center gap-3 px-6 py-3 border border-dashed rounded-lg transition-colors duration-150 ${Rn?"border-studio-accent/60 bg-studio-accent/[0.06]":"border-neutral-700/50"}`,children:Rn?v.jsxs(v.Fragment,{children:[v.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-studio-accent flex-shrink-0",children:[v.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),v.jsx("polyline",{points:"7 10 12 15 17 10"}),v.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),v.jsx("span",{className:"text-[13px] text-studio-accent",children:"Drop media files to import"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-neutral-600 flex-shrink-0",children:[v.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2"}),v.jsx("path",{d:"M7 2v20"}),v.jsx("path",{d:"M17 2v20"}),v.jsx("path",{d:"M2 7h20"}),v.jsx("path",{d:"M2 17h20"})]}),v.jsx("span",{className:"text-[13px] text-neutral-500",children:l?"Drop media here or describe your video to start":"Describe your video to start creating"})]})})})]});const Yr=Kl+Je.length*Ka,xn=(B==null?void 0:B.element)??null,hn=(B==null?void 0:B.started)===!0&&xn?Hx({element:xn,draggedElementId:xn.id,previewStart:B.previewStart,previewTrack:B.previewTrack}):null,L=(B==null?void 0:B.started)===!0&&hn&&Z.current?{left:B.pointerClientX-Z.current.getBoundingClientRect().left+Z.current.scrollLeft-B.pointerOffsetX,top:B.pointerClientY-Z.current.getBoundingClientRect().top+Z.current.scrollTop-B.pointerOffsetY}:null,le=(E,q)=>v.jsxs(v.Fragment,{children:[i==null?void 0:i(E),v.jsx("div",{className:n?"absolute inset-0 overflow-hidden":"flex flex-col justify-center overflow-hidden flex-1 min-w-0 px-6",children:(n==null?void 0:n(E,q))??v.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-between py-3",children:[v.jsx("div",{className:"flex items-start",children:v.jsx("span",{className:"max-w-full truncate rounded-md px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.08em] leading-none",style:{color:q.label,background:`${q.accent}26`,boxShadow:`inset 0 0 0 1px ${q.accent}33`},children:E.tag})}),v.jsx("div",{className:"flex items-center",children:v.jsxs("span",{className:"max-w-full truncate rounded-md px-1.5 py-0.5 text-[10px] font-medium tabular-nums leading-none",style:{color:f.textSecondary,background:"rgba(255,255,255,0.04)"},children:[nr(E.start)," ","→"," ",nr(E.start+E.duration)]})})]})})]});return v.jsxs("div",{ref:Xe,"aria-label":"Timeline",className:`border-t select-none h-full overflow-hidden ${Y?"cursor-crosshair":"cursor-default"}`,style:{touchAction:"pan-x pan-y",background:f.shellBackground,borderColor:f.shellBorder},children:[v.jsx("div",{ref:Z,className:`${C==="fit"?"overflow-x-hidden":"overflow-x-auto"} overflow-y-auto h-full`,onPointerDown:wr,onPointerMove:Wi,onPointerUp:ui,onLostPointerCapture:ui,children:v.jsxs("div",{className:"relative",style:{height:Yr,width:Kt+Ct},children:[v.jsx("svg",{className:"absolute pointer-events-none",style:{left:Kt,width:Ct},height:Yr,children:Bn.map(E=>{const q=E*De;return v.jsx("line",{x1:q,y1:Kl,x2:q,y2:Yr,stroke:f.tickMinor,strokeWidth:"1"},`g-${E}`)})}),v.jsxs("div",{className:"relative overflow-hidden",style:{height:Kl,marginLeft:Kt,width:Ct},children:[Y&&!F&&v.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none z-10",children:v.jsx("span",{className:"text-[9px] font-medium",style:{color:f.textSecondary},children:"Drag to select range"})}),hi.map(E=>v.jsx("div",{className:"absolute bottom-0",style:{left:E*De},children:v.jsx("div",{className:"w-px h-[3px]",style:{background:f.tickMinor}})},`m-${E}`)),Bn.map(E=>v.jsxs("div",{className:"absolute bottom-0 flex flex-col items-center",style:{left:E*De},children:[v.jsx("span",{className:"text-[9px] font-mono tabular-nums leading-none mb-0.5",style:{color:f.tickText},children:nr(E)}),v.jsx("div",{className:"w-px h-[5px]",style:{background:f.tickMajor}})]},`M-${E}`))]}),Je.map(E=>{var Oe;const q=((Oe=Te.find(([ge])=>ge===E))==null?void 0:Oe[1])??[],ne=je.get(E)??Jl(""),ae=(B==null?void 0:B.started)===!0&&!ze.includes(E)&&q.length===0;return v.jsxs("div",{className:"relative flex",style:{height:Ka,background:f.rowBackground,borderBottom:`1px solid ${f.rowBorder}`},children:[v.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",style:{width:Kt,background:f.gutterBackground,borderRight:`1px solid ${f.gutterBorder}`},children:v.jsx("div",{className:"flex items-center justify-center",style:{width:18,height:18,borderRadius:6,backgroundColor:ne.iconBackground,border:`1px solid ${f.gutterBorder}`,color:"#fff"},children:ne.icon})}),v.jsxs("div",{style:{width:Ct},className:"relative",children:[ae&&v.jsx("div",{className:"absolute inset-0 flex items-center",style:{paddingLeft:16,color:ne.label,fontSize:11,letterSpacing:"0.08em",textTransform:"uppercase",background:`linear-gradient(90deg, ${ne.accent}14, transparent 28%)`,boxShadow:`inset 0 0 0 1px ${ne.accent}24`},children:"New track"}),q.map((ge,tt)=>{const nt=Jl(ge.tag),Ye=ge.key??ge.id,_e=xg(ge),Bt=S===Ye,it=!!ge.compositionSrc,ot=`${Ye}-${tt}`,or=X===ot,br=!!n;if((B==null?void 0:B.started)===!0&&((xn==null?void 0:xn.key)??(xn==null?void 0:xn.id))===Ye)return null;const Ol=kr(ge);return v.jsx(Nm,{el:Ol,pps:De,clipY:zm,isSelected:Bt,isHovered:or,isDragging:!1,hasCustomContent:br,theme:f,trackStyle:nt,isComposition:it,onHoverStart:()=>M(ot),onHoverEnd:()=>M(null),onResizeStart:(Zt,Qr)=>{Qr.button!==0||Qr.shiftKey||!c||Zt==="start"&&!_e.canTrimStart||Zt==="end"&&!_e.canTrimEnd||(Qr.stopPropagation(),ee(!1),re(null),J({element:ge,edge:Zt,originClientX:Qr.clientX,previewStart:ge.start,previewDuration:ge.duration,previewPlaybackStart:ge.playbackStart,started:!1}))},onPointerDown:Zt=>{var gl,Do;if(Zt.button!==0||Zt.shiftKey||!o||!_e.canMove)return;ee(!1),re(null);const Qr=Zt.currentTarget.getBoundingClientRect();he({element:ge,originClientX:Zt.clientX,originClientY:Zt.clientY,originScrollLeft:((gl=Z.current)==null?void 0:gl.scrollLeft)??0,originScrollTop:((Do=Z.current)==null?void 0:Do.scrollTop)??0,pointerClientX:Zt.clientX,pointerClientY:Zt.clientY,pointerOffsetX:Zt.clientX-Qr.left,pointerOffsetY:Zt.clientY-Qr.top,previewStart:ge.start,previewTrack:ge.track,started:!1})},onClick:Zt=>{Zt.stopPropagation(),!ie.current&&w(Bt?null:Ye)},onDoubleClick:Zt=>{Zt.stopPropagation(),!ie.current&&it&&t&&t(ge)},children:le(Ol,nt)},ot)})]})]},E)}),hn&&L&&v.jsx("div",{className:"absolute pointer-events-none",style:{top:L.top,left:L.left,width:Math.max(hn.duration*De,4),height:Ka-zm*2,zIndex:40},children:v.jsx(Nm,{el:{...hn,start:0},pps:De,clipY:0,isSelected:S===(hn.key??hn.id),isHovered:!1,isDragging:!0,hasCustomContent:!!n,theme:f,trackStyle:Jl(hn.tag),isComposition:!!hn.compositionSrc,onHoverStart:()=>{},onHoverEnd:()=>{},onResizeStart:()=>{},onClick:()=>{},onDoubleClick:()=>{},children:le(hn,Jl(hn.tag))})}),F&&v.jsx("div",{className:"absolute pointer-events-none",style:{left:Kt+Math.min(F.start,F.end)*De,width:Math.abs(F.end-F.start)*De,top:Kl,bottom:0,backgroundColor:"rgba(59, 130, 246, 0.12)",borderLeft:"1px solid rgba(59, 130, 246, 0.4)",borderRight:"1px solid rgba(59, 130, 246, 0.4)",zIndex:50}}),v.jsxs("div",{ref:A,className:"absolute top-0 bottom-0 pointer-events-none",style:{left:`${Kt}px`,zIndex:100},children:[v.jsx("div",{className:"absolute top-0 bottom-0",style:{left:"50%",width:2,marginLeft:-1,background:"var(--hf-accent, #3CE6AC)",boxShadow:"0 0 8px rgba(60,230,172,0.5)"}}),v.jsx("div",{className:"absolute",style:{left:"50%",top:0,transform:"translateX(-50%)"},children:v.jsx("div",{style:{width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"8px solid var(--hf-accent, #3CE6AC)",filter:"drop-shadow(0 1px 3px rgba(0,0,0,0.6))"}})})]})]})}),!de&&!F&&v.jsx("div",{className:"absolute bottom-2 right-3 pointer-events-none z-20",children:v.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border",style:{background:"rgba(17,23,35,0.84)",borderColor:f.gutterBorder},children:[v.jsx("kbd",{className:"text-[9px] font-mono px-1 py-0.5 rounded",style:{color:f.textSecondary,background:"rgba(255,255,255,0.06)"},children:"Shift"}),v.jsx("span",{className:"text-[9px]",style:{color:f.textSecondary},children:"+ drag to edit range"})]})}),de&&F&&v.jsx(Jx,{rangeStart:F.start,rangeEnd:F.end,anchorX:F.anchorX,anchorY:F.anchorY,onClose:()=>{ee(!1),re(null)}})]})}),Fm=66,Bm=6,hv=p.memo(function({videoSrc:e,label:t,labelColor:n,duration:i=5}){const[l,o]=p.useState(0),[c,u]=p.useState(!1),[f,m]=p.useState([]),[O,y]=p.useState(16/9),S=p.useRef(null),w=p.useRef(null),b=p.useRef(!1),$=p.useCallback(A=>{var X,M,N;if((X=S.current)==null||X.disconnect(),(M=w.current)==null||M.disconnect(),!A)return;const T=((N=A.parentElement)==null?void 0:N.clientWidth)||A.clientWidth;o(T),S.current=new IntersectionObserver(([Y])=>{var fe;Y.isIntersecting&&(u(!0),(fe=S.current)==null||fe.disconnect())},{rootMargin:"200px"}),S.current.observe(A);const Z=A.parentElement||A;w.current=new ResizeObserver(([Y])=>{o(Y.contentRect.width)}),w.current.observe(Z)},[]);_t(()=>()=>{var A,T;(A=S.current)==null||A.disconnect(),(T=w.current)==null||T.disconnect()}),p.useEffect(()=>{if(!c||b.current)return;b.current=!0;const A=document.createElement("video");A.crossOrigin="anonymous",A.muted=!0,A.preload="auto";const T=document.createElement("canvas"),Z=T.getContext("2d");if(!Z){b.current=!1;return}const X=[],M=Math.min(.4,i*.05);for(let K=0;K<Bm;K++){const te=K/(Bm-1)*i;X.push(Math.max(te,M))}let N=0,Y=!1;const fe=()=>{if(Y||N>=X.length){Y||(A.src="",A.load());return}A.currentTime=X[N]};return A.addEventListener("loadedmetadata",()=>{if(A.videoWidth>0&&A.videoHeight>0){y(A.videoWidth/A.videoHeight);const K=Fm*2,te=Math.round(K*(A.videoWidth/A.videoHeight));T.width=te,T.height=K}fe()}),A.addEventListener("seeked",()=>{if(Y)return;Z.drawImage(A,0,0,T.width,T.height);const K=T.toDataURL("image/jpeg",.6);m(te=>[...te,K]),N++,fe()}),A.addEventListener("error",()=>{}),A.src=e,A.load(),()=>{Y=!0,b.current=!1,m([]),A.src="",A.load()}},[c,e,i]);const C=Math.round(Fm*O),_=l>0?Math.max(1,Math.ceil(l/C)):1;return v.jsxs("div",{ref:$,className:"absolute inset-0 overflow-hidden",children:[c&&f.length>0&&v.jsx("div",{className:"absolute inset-0 flex",children:Array.from({length:_}).map((A,T)=>{const Z=f[T%f.length];return v.jsx("div",{className:"flex-shrink-0 h-full relative overflow-hidden bg-neutral-900",style:{width:C},children:v.jsx("img",{src:Z,alt:"",draggable:!1,className:"absolute inset-0 w-full h-full object-cover"})},T)})}),c&&f.length===0&&v.jsx("div",{className:"absolute inset-0 animate-pulse",style:{background:"linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 100%)"}}),v.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-10 px-1.5 pb-0.5 pt-3",style:{background:"linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%)"},children:v.jsx("span",{className:"text-[9px] font-semibold truncate block leading-tight",style:{color:n,textShadow:"0 1px 2px rgba(0,0,0,0.9)"},children:t})})]})}),fv=66,dv="v2",gh=p.memo(function({previewUrl:e,label:t,labelColor:n,accentColor:i="#6B7280",selector:l,seekTime:o=2,duration:c=5}){const[u,f]=p.useState(0),[m,O]=p.useState(!1),[y,S]=p.useState(16/9),w=p.useRef(null),b=p.useCallback(X=>{var Y,fe;if((Y=w.current)==null||Y.disconnect(),!X)return;const M=((fe=X.parentElement)==null?void 0:fe.clientWidth)||X.clientWidth;f(M);const N=X.parentElement||X;w.current=new ResizeObserver(([K])=>{f(K.contentRect.width)}),w.current.observe(N)},[]);_t(()=>()=>{var X;(X=w.current)==null||X.disconnect()});const $=e.replace("/preview/comp/","/thumbnail/").replace(/\/preview$/,"/thumbnail/index.html"),C=o+c/2,_=new URL($,window.location.origin);_.searchParams.set("t",C.toFixed(2)),_.searchParams.set("v",dv),l&&_.searchParams.set("selector",l);const A=_.toString(),T=Math.max(48,Math.round(fv*y)),Z=u>0?Math.max(1,Math.ceil(u/T)):1;return v.jsxs("div",{ref:b,className:"absolute inset-0 overflow-hidden",children:[v.jsx("img",{src:A,alt:"",draggable:!1,loading:"lazy",onLoad:X=>{const M=X.currentTarget;M.naturalWidth>0&&M.naturalHeight>0&&S(M.naturalWidth/M.naturalHeight),O(!0)},className:"hidden"}),m?v.jsx("div",{className:"absolute inset-0 flex",children:Array.from({length:Z}).map((X,M)=>v.jsx("div",{className:"relative h-full flex-shrink-0 overflow-hidden",style:{width:T},children:v.jsx("img",{src:A,alt:"",draggable:!1,className:"absolute inset-0 h-full w-full object-cover opacity-60"})},M))}):v.jsx("div",{className:"absolute inset-0 animate-pulse",style:{background:"linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 100%)"}}),v.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(120deg, ${i}2e, transparent 34%), linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08))`}}),v.jsx("div",{className:"absolute left-2 top-2 z-10",children:v.jsx("span",{className:"block max-w-full truncate rounded-md px-1.5 py-0.5 text-[9px] font-semibold uppercase leading-none",style:{color:n,background:`${i}2e`,boxShadow:`inset 0 0 0 1px ${i}40`},children:t})}),v.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-10 px-1.5 pb-0.5 pt-3",style:{background:"linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%)"},children:v.jsx("span",{className:"block truncate text-[9px] font-semibold leading-tight",style:{color:n,textShadow:"0 1px 2px rgba(0,0,0,0.9)"},children:t})})]})});function qm(r){return{play:()=>r.play(),pause:()=>r.pause(),seek:e=>{r.pause(),r.seek(e)},getTime:()=>r.time(),getDuration:()=>r.duration(),isPlaying:()=>r.isActive()}}function Sg(r){if(r instanceof HTMLMediaElement||r instanceof HTMLImageElement)return r;const e=r.querySelector("video, audio, img");return e instanceof HTMLMediaElement||e instanceof HTMLImageElement?e:null}function wg(r,e){const t=e.getAttribute("data-playback-start")?"playback-start":e.getAttribute("data-media-start")?"media-start":void 0,n=e.getAttribute("data-playback-start")??e.getAttribute("data-media-start");if(n!=null){const f=parseFloat(n);Number.isFinite(f)&&(r.playbackStart=f)}t&&(r.playbackStartAttr=t);const i=Sg(e);if(!i)return;r.tag=i.tagName.toLowerCase();const l=i.getAttribute("src");if(l&&(r.src=l),!(i instanceof HTMLMediaElement))return;const o=e.getAttribute("data-source-duration")??i.getAttribute("data-source-duration"),c=o?parseFloat(o):i.duration;Number.isFinite(c)&&c>0&&(r.sourceDuration=c);const u=i.defaultPlaybackRate;Number.isFinite(u)&&u>0&&(r.playbackRate=u)}function Um(r,e){const t=r.querySelector("[data-composition-id]"),n=r.querySelectorAll("[data-start]"),i=[];let l=0;return n.forEach(o=>{var M;if(o===t)return;const c=o,u=c.getAttribute("data-start");if(u==null)return;const f=parseFloat(u);if(isNaN(f)||Number.isFinite(e)&&e>0&&f>=e)return;const m=c.tagName.toLowerCase();let O=0;const y=c.getAttribute("data-duration");if(y!=null&&(O=parseFloat(y)),(isNaN(O)||O<=0)&&(O=Math.max(0,e-f)),Number.isFinite(e)&&e>0&&(O=Math.min(O,Math.max(0,e-f))),!Number.isFinite(O)||O<=0)return;const S=c.getAttribute("data-track-index"),w=S!=null?parseInt(S,10):l++,b=c.getAttribute("data-composition-id"),$=oo(c),C=vc(c),_=Sc(r,c,$),A=c.id||b||((M=c.className)==null?void 0:M.split(" ")[0])||m,T={id:A,key:Vc({id:A,fallbackIndex:i.length,domId:c.id||void 0,selector:$,selectorIndex:_,sourceFile:C}),tag:m,start:f,duration:O,track:isNaN(w)?0:w,domId:c.id||void 0,selector:$,selectorIndex:_,sourceFile:C},Z=Sg(c);if(Z){Z.tagName==="IMG"&&(T.tag="img");const N=Z.getAttribute("src");N&&(T.src=N);const Y=c.getAttribute("data-volume")??Z.getAttribute("data-volume");Y&&(T.volume=parseFloat(Y)),wg(T,c)}const X=c.getAttribute("data-composition-src")||c.getAttribute("data-composition-file");if(X)T.compositionSrc=X;else if(b&&b!==(t==null?void 0:t.getAttribute("data-composition-id"))){const N=c.querySelector("video[src]");N&&(T.src=N.getAttribute("src")||void 0,T.tag="video")}i.push(T)}),i}function oo(r){if(r instanceof HTMLElement&&r.id)return`#${r.id}`;const e=r.getAttribute("data-composition-id");if(e)return`[data-composition-id="${e}"]`;if(r instanceof HTMLElement){const t=r.className.split(/\s+/).find(Boolean);if(t)return`.${t}`}}function vc(r){var t;const e=(t=r.parentElement)==null?void 0:t.closest("[data-composition-id]");return(e==null?void 0:e.getAttribute("data-composition-file"))??(e==null?void 0:e.getAttribute("data-composition-src"))??void 0}function Sc(r,e,t){if(!(!t||t.startsWith("#")||t.startsWith("[data-composition-id=")))try{const i=Array.from(r.querySelectorAll(t)).indexOf(e);return i>=0?i:void 0}catch{return}}function Vc(r){const e=r.sourceFile??"index.html";return r.domId?`${e}#${r.domId}`:r.selector?`${e}:${r.selector}:${r.selectorIndex??0}`:`${e}:${r.id}:${r.fallbackIndex}`}function pv(r,e){return r.getElementById(e)??r.querySelector(`[data-composition-id="${e}"]`)??r.querySelector(`.${e}`)??null}function mv(r){const e=r.match(/\/preview\/comp\/(.+?)(?:\?|$)/);return e?decodeURIComponent(e[1]):void 0}function Ov(r){if(!Number.isFinite(r.rootDuration)||r.rootDuration<=0)return null;const e=mv(r.iframeSrc);return{id:r.compositionId,key:Vc({id:r.compositionId,fallbackIndex:0,selector:r.selector,selectorIndex:r.selectorIndex,sourceFile:e}),tag:r.tagName.toLowerCase()||"div",start:0,duration:r.rootDuration,track:0,compositionSrc:e,selector:r.selector,selectorIndex:r.selectorIndex,sourceFile:e}}function gv(r,e){r.documentElement&&(r.documentElement.style.overflow="hidden",r.documentElement.style.margin="0"),r.body&&(r.body.style.overflow="hidden",r.body.style.margin="0"),e.scrollTo({top:0,left:0,behavior:"auto"})}function yv(r){const e=/data-composition-id=["']([^"']+)["']/gi,t=new Set,n=Array.from(r.querySelectorAll("style, script"));for(const o of n){const c=o.textContent||"";if(!c)continue;let u;for(;(u=e.exec(c))!==null;){const f=(u[1]||"").trim();f&&t.add(f)}}if(t.size===0)return;const i=new Set,l=Array.from(r.querySelectorAll("[data-composition-id]"));for(const o of l){const c=o.getAttribute("data-composition-id");c&&i.add(c)}for(const o of t){if(o==="root"||i.has(o))continue;const c=r.getElementById(`${o}-layer`)||r.getElementById(`${o}-comp`)||r.getElementById(o);c&&(c.getAttribute("data-composition-id")||c.setAttribute("data-composition-id",o))}}function Gm(r){var e;if(r)try{(e=r.contentWindow)==null||e.postMessage({source:"hf-parent",type:"control",action:"set-muted",muted:!1},"*")}catch(t){console.warn("[useTimelinePlayer] Failed to unmute preview media",t)}}function xv(r,e,t,n){const i=Number.isFinite(t)?t:0,l=Number.isFinite(n)?n:0;if(r.length===0||e.length>=r.length||l>i)return e;const o=new Set(e.map(u=>u.id)),c=r.filter(u=>!o.has(u.id));return c.length===0?e:[...e,...c]}function vv(){const r=p.useRef(null),e=p.useRef(0),t=p.useRef(void 0),n=p.useRef(null),i=p.useRef(!1),{setIsPlaying:l,setCurrentTime:o,setDuration:c,setTimelineReady:u,setElements:f}=Ee.getState(),m=p.useCallback((F,re)=>{const B=Ee.getState(),he=xv(B.elements,F,B.duration,re??B.duration);f(he),Number.isFinite(re)&&(re??0)>0&&c(re??0),u(!0)},[f,u,c]),O=p.useCallback(()=>{var F,re;try{const B=r.current,he=B==null?void 0:B.contentWindow;if(!he)return null;if(he.__player&&typeof he.__player.play=="function")return he.__player;if(he.__timeline)return qm(he.__timeline);if(he.__timelines){const ce=Object.keys(he.__timelines);if(ce.length>0){const H=(re=(F=B==null?void 0:B.contentDocument)==null?void 0:F.querySelector("[data-composition-id]"))==null?void 0:re.getAttribute("data-composition-id"),J=H&&H in he.__timelines?H:ce[ce.length-1];return qm(he.__timelines[J])}}return null}catch(B){return console.warn("[useTimelinePlayer] Could not get playback adapter (cross-origin)",B),null}},[]),y=p.useCallback(()=>{const F=()=>{const re=O();if(re){const B=re.getTime(),he=re.getDuration();if(vo.notify(B),B>=he&&!re.isPlaying()){o(B),l(!1),cancelAnimationFrame(e.current);return}}e.current=requestAnimationFrame(F)};e.current=requestAnimationFrame(F)},[O,o,l]),S=p.useCallback(()=>{cancelAnimationFrame(e.current)},[]),w=p.useCallback(F=>{var B;const re=r.current;if(re){(B=re.contentWindow)==null||B.postMessage({source:"hf-parent",type:"control",action:"set-playback-rate",playbackRate:F},"*");try{const he=re.contentWindow;if(he!=null&&he.__timelines)for(const ce of Object.values(he.__timelines))ce&&typeof ce.timeScale=="function"&&ce.timeScale(F)}catch(he){console.warn("[useTimelinePlayer] Could not set playback rate (cross-origin)",he)}}},[]),b=p.useCallback(()=>{const F=O();F&&(F.getTime()>=F.getDuration()&&F.seek(0),Gm(r.current),w(Ee.getState().playbackRate),F.play(),l(!0),y())},[O,l,y,w]),$=p.useCallback(()=>{const F=O();F&&(F.pause(),o(F.getTime()),l(!1),S())},[O,o,l,S]),C=p.useCallback(()=>{Ee.getState().isPlaying?$():b()},[b,$]),_=p.useCallback(F=>{const re=O();re&&(re.seek(F),vo.notify(F),o(F),S(),Ee.getState().isPlaying&&l(!1))},[O,o,l,S]),A=p.useCallback(F=>{if(!F.clips||F.clips.length===0)return;const re=new Set(F.clips.map(Q=>Q.compositionId).filter(Boolean)),he=F.clips.filter(Q=>!Q.parentCompositionId||!re.has(Q.parentCompositionId)).map((Q,z)=>{var Qe,Le,Ce,Xe;let ie=null;const de=Q.id||Q.label||Q.tagName||"element",ee={id:de,tag:Q.tagName||Q.kind,start:Q.start,duration:Q.duration,track:Q.track};try{const me=(Qe=r.current)==null?void 0:Qe.contentDocument;me&&ee.id&&(ie=pv(me,ee.id))}catch{}if(ie){const me=(Le=r.current)==null?void 0:Le.contentDocument;ee.domId=ie.id||void 0,ee.selector=oo(ie),ee.selectorIndex=me&&ee.selector?Sc(me,ie,ee.selector):void 0,ee.sourceFile=vc(ie),wg(ee,ie)}if(Q.assetUrl&&(ee.src=Q.assetUrl),Q.kind==="composition"&&Q.compositionId){let me=Q.compositionSrc,Te=null;if(!me)try{const je=(Ce=r.current)==null?void 0:Ce.contentDocument;Te=(je==null?void 0:je.querySelector(`[data-composition-id="${Q.compositionId}"]`))??Te,me=(Te==null?void 0:Te.getAttribute("data-composition-src"))??(Te==null?void 0:Te.getAttribute("data-composition-file"))??null}catch{}if(me)ee.compositionSrc=me;else if(Te){const je=Te.querySelector("video[src]");je&&(ee.src=je.getAttribute("src")||void 0,ee.tag="video")}if(Te){const je=(Xe=r.current)==null?void 0:Xe.contentDocument;ee.domId=Te.id||void 0,ee.selector=oo(Te),ee.selectorIndex=je&&ee.selector?Sc(je,Te,ee.selector):void 0,ee.sourceFile=vc(Te)}}return ee.key=Vc({id:de,fallbackIndex:z,domId:ee.domId,selector:ee.selector,selectorIndex:ee.selectorIndex,sourceFile:ee.sourceFile}),ee}),ce=F.durationInFrames/30,H=Number.isFinite(ce)&&ce<7200?ce:0,J=H>0?H:Ee.getState().duration,U=J>0?he.filter(Q=>Q.start<J).map(Q=>({...Q,duration:Math.min(Q.duration,J-Q.start)})).filter(Q=>Q.duration>0):he;U.length>0&&m(U,H>0?H:void 0)},[m]),T=p.useCallback(()=>{try{const F=r.current,re=F==null?void 0:F.contentDocument,B=F==null?void 0:F.contentWindow;if(!re||!B)return;const he=Ee.getState().elements,ce=new Set(he.map(de=>de.id)),H=re.querySelector("[data-composition-id]"),J=H==null?void 0:H.getAttribute("data-composition-id"),U=re.querySelectorAll("[data-composition-id][data-start]"),Q=[];U.forEach(de=>{var En,tn,yt,jt,gn,ft,wt,Tt,Vt;const ee=de,Qe=ee.getAttribute("data-composition-id");if(!Qe||Qe===J||ce.has(ee.id)||ce.has(Qe))return;const Le=ee.getAttribute("data-start")??"0";let Ce=parseFloat(Le);if(isNaN(Ce)){const xt=re.getElementById(Le)||re.querySelector(`[data-composition-id="${Le}"]`);if(xt){const Fn=xt.getAttribute("data-start")??"0";let yn=parseFloat(Fn);if(isNaN(yn)){const zt=re.getElementById(Fn)||re.querySelector(`[data-composition-id="${Fn}"]`),Vn=parseFloat((zt==null?void 0:zt.getAttribute("data-start"))??"0")||0,Sr=zt==null?void 0:zt.getAttribute("data-composition-id"),wr=parseFloat((zt==null?void 0:zt.getAttribute("data-duration"))??"")||(Sr?((yt=(tn=(En=B.__timelines)==null?void 0:En[Sr])==null?void 0:tn.duration)==null?void 0:yt.call(tn))??0:0);yn=Vn+wr}const jn=xt.getAttribute("data-composition-id"),Rt=parseFloat(xt.getAttribute("data-duration")??"")||(jn?((ft=(gn=(jt=B.__timelines)==null?void 0:jt[jn])==null?void 0:gn.duration)==null?void 0:ft.call(gn))??0:0);Ce=yn+Rt}else Ce=0}let Xe=parseFloat(ee.getAttribute("data-duration")??"");if((isNaN(Xe)||Xe<=0)&&(Xe=((Vt=(Tt=(wt=B.__timelines)==null?void 0:wt[Qe])==null?void 0:Tt.duration)==null?void 0:Vt.call(Tt))??0),!Number.isFinite(Xe)||Xe<=0)return;Number.isFinite(Ce)||(Ce=0);const me=Ee.getState().duration;if(Number.isFinite(me)&&me>0&&(Ce>=me||(Xe=Math.min(Xe,Math.max(0,me-Ce)),Xe<=0)))return;const Te=ee.getAttribute("data-track-index"),je=Te!=null?parseInt(Te,10):0,ze=ee.getAttribute("data-composition-src")||ee.getAttribute("data-composition-file"),Ne=oo(ee),Je=vc(ee),At=Sc(re,ee,Ne),De=ee.id||Qe,Ct={id:De,key:Vc({id:De,fallbackIndex:Q.length,domId:ee.id||void 0,selector:Ne,selectorIndex:At,sourceFile:Je}),tag:ee.tagName.toLowerCase(),start:Ce,duration:Xe,track:isNaN(je)?0:je,domId:ee.id||void 0,selector:Ne,selectorIndex:At,sourceFile:Je};if(ze)Ct.compositionSrc=ze;else{const xt=ee.querySelector("video[src]");xt&&(Ct.src=xt.getAttribute("src")||void 0,Ct.tag="video")}Q.push(Ct)});let z=!1;const ie=he.map(de=>{if(de.compositionSrc)return de;const ee=re.getElementById(de.id)??re.querySelector(`[data-composition-id="${de.id}"]`);if(!ee)return de;const Qe=ee.getAttribute("data-composition-src")||ee.getAttribute("data-composition-file");return Qe?(z=!0,{...de,compositionSrc:Qe}):de});if(Q.length>0||z){const de=new Set(ie.map(Qe=>Qe.id)),ee=Q.filter(Qe=>!de.has(Qe.id));m([...ie,...ee])}}catch(F){console.warn("[useTimelinePlayer] enrichMissingCompositions failed",F)}},[m]),Z=p.useCallback(()=>{Gm(r.current);let F=0;const re=25;t.current&&clearInterval(t.current),t.current=setInterval(()=>{F++;const B=O();if(B&&B.getDuration()>0){clearInterval(t.current),B.pause();const he=n.current;n.current=null;const ce=he!=null?Math.min(he,B.getDuration()):0;B.seek(ce);const H=B.getDuration();Number.isFinite(H)&&H>0&&H<7200&&c(H),o(ce),i.current||u(!0),i.current=!1,l(!1);try{const J=r.current,U=J==null?void 0:J.contentDocument,Q=J==null?void 0:J.contentWindow;U&&Q&&(gv(U,Q),yv(U));const z=Q==null?void 0:Q.__clipManifest;if(z&&z.clips.length>0&&A(z),T(),Ee.getState().elements.length===0&&U){const ie=Um(U,B.getDuration());ie.length>0&&m(ie)}if(Ee.getState().elements.length===0&&U){const ie=U.querySelector("[data-composition-id]"),de=B.getDuration();if(ie&&de>0){const ee=Ov({compositionId:ie.getAttribute("data-composition-id")||"composition",tagName:ie.tagName||"div",rootDuration:de,iframeSrc:(J==null?void 0:J.src)||"",selector:oo(ie)});ee&&m([ee])}}}catch(J){console.warn("[useTimelinePlayer] Could not read timeline elements from iframe",J)}return}F>=re&&(clearInterval(t.current),console.warn("Could not find __player, __timeline, or __timelines on iframe after 5s"))},200)},[O,c,o,u,l,A,T,m]),X=p.useCallback(()=>{const F=O();n.current=F?F.getTime():Ee.getState().currentTime??0,i.current=!0,S(),l(!1)},[O,S,l]),M=p.useCallback(()=>{const F=r.current;if(!F)return;X();const re=F.src,B=new URL(re,window.location.origin);B.searchParams.set("_t",String(Date.now())),F.src=B.toString()},[X]),N=p.useRef(C);N.current=C;const Y=p.useRef(O);Y.current=O;const fe=p.useRef(A);fe.current=A;const K=p.useRef(T);K.current=T,_t(()=>{const F=he=>{he.code==="Space"&&he.target===document.body&&(he.preventDefault(),N.current())},re=he=>{const ce=he.data,H=r.current;if(!(he.source&&H&&he.source!==H.contentWindow)){if((ce==null?void 0:ce.source)==="hf-preview"&&(ce==null?void 0:ce.type)==="state")try{if(Ee.getState().elements.length===0){const J=H==null?void 0:H.contentWindow,U=J==null?void 0:J.__clipManifest;U&&U.clips.length>0&&fe.current(U)}K.current()}catch(J){console.warn("[useTimelinePlayer] Could not read clip manifest from iframe",J)}if((ce==null?void 0:ce.source)==="hf-preview"&&(ce==null?void 0:ce.type)==="timeline"&&Array.isArray(ce.clips)){if(fe.current(ce),K.current(),ce.durationInFrames>0&&Number.isFinite(ce.durationInFrames)){const U=ce.durationInFrames/30;U>0&&U<7200&&Ee.getState().setDuration(U)}if(Ee.getState().elements.length===0)try{const J=H==null?void 0:H.contentDocument,U=O();if(J&&U){const Q=Um(J,U.getDuration());Q.length>0&&m(Q)}}catch(J){console.warn("[useTimelinePlayer] Could not read timeline elements on navigate (cross-origin)",J)}}}},B=()=>{var he;if(document.hidden&&Ee.getState().isPlaying){const ce=(he=Y.current)==null?void 0:he.call(Y);ce&&(ce.pause(),l(!1),S())}};return window.addEventListener("keydown",F),window.addEventListener("message",re),document.addEventListener("visibilitychange",B),()=>{window.removeEventListener("keydown",F),window.removeEventListener("message",re),document.removeEventListener("visibilitychange",B),S(),t.current&&clearInterval(t.current)}});const te=p.useCallback(()=>{S(),t.current&&clearInterval(t.current),Ee.getState().reset()},[S]);return{iframeRef:r,play:b,pause:$,togglePlay:C,seek:_,onIframeLoad:Z,refreshPlayer:M,saveSeekPosition:X,resetPlayer:te}}function Sv({projectId:r,directUrl:e}){return e??r}const wv=p.memo(function({projectId:e,iframeRef:t,onIframeLoad:n,portrait:i,directUrl:l,refreshKey:o}){const c=Sv({projectId:e,directUrl:l});return v.jsx("div",{className:"flex flex-col h-full min-h-0",children:v.jsx("div",{className:"flex-1 flex items-center justify-center p-2 overflow-hidden min-h-0",children:v.jsx(pg,{ref:t,projectId:l?void 0:e,directUrl:l,onLoad:n,portrait:i},c)})})}),kv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),p.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),bv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),p.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),Qv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),p.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),$v=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Pv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),Av=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"}))]]),Cv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.49,143.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L155,152l-15.52-15.51a12,12,0,1,1,17-17Zm-64-24a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,0,0,17-17L101,152l15.52-15.51A12,12,0,0,0,116.49,119.51ZM220,88V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88ZM160,57V80h23Zm36,155V104H148a12,12,0,0,1-12-12V44H60V212Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-104,88a8,8,0,0,1-11.32,11.32l-24-24a8,8,0,0,1,0-11.32l24-24a8,8,0,0,1,11.32,11.32L91.31,152Zm72-12.68-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32l24,24A8,8,0,0,1,181.66,157.66ZM152,88V44l44,44Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z"}))]]),Tv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,180c0,8.67,5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43,12,12,0,1,1,17.34,16.6A34,34,0,0,1,60,220C40.15,220,24,202,24,180s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,1,1-17.34,16.6A10.27,10.27,0,0,0,60,164C53.5,164,48,171.31,48,180Zm97.51-5.71c-5.12-3.45-11.32-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,143,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,125.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C157,187.53,153.33,179.53,145.51,174.27Zm68,0c-5.12-3.45-11.32-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M48,180c0,11,7.18,20,16,20a14.2,14.2,0,0,0,10.22-4.66A8,8,0,1,1,85.77,206.4,30,30,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30,30,0,0,1,21.77,9.6,8,8,0,1,1-11.55,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.26-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.35-1.73,19.83-.56a8,8,0,0,0,4.07-15.48c-2.12-.55-21-5.22-32.83,2.76a20.55,20.55,0,0,0-9,14.95c-2,15.88,13.64,20.41,23,23.11,12.07,3.49,13.13,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36a8,8,0,0,0-4.3,15.41,61.23,61.23,0,0,0,15.18,2c5.83,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.48,174.17,127.6,171.31Zm64,0c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.15,3.93-4.6,3.06-15.16,1.56-19.54.36A8,8,0,0,0,173.93,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,180c0,11,7.18,20,16,20a14.18,14.18,0,0,0,10.06-4.5,8.2,8.2,0,0,1,10.9-.91,8,8,0,0,1,.81,11.81A30,30,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30,30,0,0,1,21.38,9.19,8.26,8.26,0,0,1,.74,11.09,8,8,0,0,1-11.9.38A14.2,14.2,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.26-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.35-1.73,19.83-.56a8,8,0,0,0,4.07-15.48c-2.12-.55-21-5.22-32.83,2.76a20.55,20.55,0,0,0-9,14.95c-2,15.88,13.64,20.41,23,23.11,12.07,3.49,13.13,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36a8,8,0,0,0-4.3,15.41,61.23,61.23,0,0,0,15.18,2c5.83,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.48,174.17,127.6,171.31Zm64,0c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.15,3.93-4.6,3.06-15.16,1.56-19.54.36A8,8,0,0,0,173.93,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M46,180c0,12.13,8.07,22,18,22a16.21,16.21,0,0,0,11.66-5.28,6,6,0,0,1,8.67,8.3A28.09,28.09,0,0,1,64,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.09,28.09,0,0,1,20.33,9,6,6,0,0,1-8.67,8.3A16.21,16.21,0,0,0,64,158C54.07,158,46,167.86,46,180Zm81-6.77c-10.85-3.13-13.4-4.69-13-7.91a6.56,6.56,0,0,1,2.88-5.08c5.59-3.79,17.66-1.82,21.44-.84a6,6,0,1,0,3.06-11.6c-2-.53-20.09-5-31.2,2.48a18.62,18.62,0,0,0-8.09,13.54c-1.79,14.19,12.27,18.25,21.57,20.94,12.12,3.5,14.78,5.33,14.21,9.76a6.89,6.89,0,0,1-3,5.34c-5.6,3.73-17.48,1.64-21.18.62A6,6,0,1,0,110.48,212a59.29,59.29,0,0,0,14.67,2c5.49,0,11.55-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C151.83,180.39,136.92,176.08,127,173.22Zm64,0c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM202,94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0ZM193.5,82,158,46.48V82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,1,1,85.77,206.4,30,30,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30,30,0,0,1,21.77,9.6,8,8,0,1,1-11.55,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.26-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56a8,8,0,0,0,4.07-15.48c-2.12-.55-21-5.22-32.83,2.76a20.55,20.55,0,0,0-9,14.95c-2,15.88,13.64,20.41,23,23.11,12.07,3.49,13.13,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36a8,8,0,0,0-4.3,15.41,61.23,61.23,0,0,0,15.18,2c5.83,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.48,174.17,127.6,171.31Zm64,0c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.15,3.93-4.6,3.06-15.16,1.56-19.54.36A8,8,0,0,0,173.93,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M44,180c0,13.23,9,24,20,24a18.15,18.15,0,0,0,13.11-5.9,4,4,0,0,1,5.78,5.54A26.13,26.13,0,0,1,64,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.13,26.13,0,0,1,18.89,8.36,4,4,0,0,1-5.78,5.54A18.15,18.15,0,0,0,64,156C53,156,44,166.77,44,180Zm82.49-4.85c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.11,61.11,0,0,0-10.47-1.61c-8.12-.54-14.54.75-19.1,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.58,12.49,10.46,16,20.14,18.77,11.25,3.25,16.47,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.79,57.79,0,0,0,125.19,212c5.18,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C149.64,181.84,136.26,178,126.49,175.15Zm64,0c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z"}))]]),Zv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,128a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v12a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.49l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v76A12,12,0,0,0,48,128ZM183,80H160V57ZM68,160v48a12,12,0,0,1-24,0V196H32v12a12,12,0,0,1-24,0V160a12,12,0,0,1,24,0v12H44V160a12,12,0,0,1,24,0Zm60,0a12,12,0,0,1-12,12h-4v36a12,12,0,0,1-24,0V172H84a12,12,0,0,1,0-24h32A12,12,0,0,1,128,160Zm72,0v48a12,12,0,0,1-24,0v-9.36l-.11.16a12,12,0,0,1-19.78,0l-.11-.16V208a12,12,0,0,1-24,0V160a12,12,0,0,1,21.89-6.8L166,170.82l12.11-17.62A12,12,0,0,1,200,160Zm56,48a12,12,0,0,1-12,12H220a12,12,0,0,1-12-12V160a12,12,0,0,1,24,0v36h12A12,12,0,0,1,256,208Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M216,120V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v24a8,8,0,0,0,16,0ZM160,51.31,188.69,80H160ZM68,160v48a8,8,0,0,1-16,0V192H32v16a8,8,0,0,1-16,0V160a8,8,0,0,1,16,0v16H52V160a8,8,0,0,1,16,0Zm56,0a8,8,0,0,1-8,8h-8v40a8,8,0,0,1-16,0V168H84a8,8,0,0,1,0-16h32A8,8,0,0,1,124,160Zm72,0v48a8,8,0,0,1-16,0V184l-9.6,12.8a8,8,0,0,1-12.8,0L148,184v24a8,8,0,0,1-16,0V160a8,8,0,0,1,14.4-4.8L164,178.67l17.6-23.47A8,8,0,0,1,196,160Zm56,48a8,8,0,0,1-8,8H216a8,8,0,0,1-8-8V160a8,8,0,0,1,16,0v40h20A8,8,0,0,1,252,208Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M44,128H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v84A4,4,0,0,0,44,128ZM152,44l44,44H152ZM68,160v48a8,8,0,0,1-16,0V192H32v16a8,8,0,0,1-16,0V160a8,8,0,0,1,16,0v16H52V160a8,8,0,0,1,16,0Zm56,0a8,8,0,0,1-8,8h-8v40a8,8,0,0,1-16,0V168H84a8,8,0,0,1,0-16h32A8,8,0,0,1,124,160Zm72,0v48a8,8,0,0,1-16,0V184l-9.6,12.8a8,8,0,0,1-12.8,0L148,184v24a8,8,0,0,1-16,0V160a8,8,0,0,1,14.4-4.8L164,178.67l17.6-23.47A8,8,0,0,1,196,160Zm56,48a8,8,0,0,1-8,8H216a8,8,0,0,1-8-8V160a8,8,0,0,1,16,0v40h20A8,8,0,0,1,252,208Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M214,120V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v80a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v26a6,6,0,0,0,12,0ZM158,46.48,193.52,82H158ZM66,160v48a6,6,0,0,1-12,0V190H30v18a6,6,0,0,1-12,0V160a6,6,0,0,1,12,0v18H54V160a6,6,0,0,1,12,0Zm56,0a6,6,0,0,1-6,6H106v42a6,6,0,0,1-12,0V166H84a6,6,0,0,1,0-12h32A6,6,0,0,1,122,160Zm72,0v48a6,6,0,0,1-12,0V178l-13.2,17.6a6,6,0,0,1-9.6,0L146,178v30a6,6,0,0,1-12,0V160a6,6,0,0,1,10.8-3.6L164,182l19.2-25.6A6,6,0,0,1,194,160Zm56,48a6,6,0,0,1-6,6H216a6,6,0,0,1-6-6V160a6,6,0,0,1,12,0v42h22A6,6,0,0,1,250,208Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,120V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v24a8,8,0,0,0,16,0ZM160,51.31,188.69,80H160ZM68,160v48a8,8,0,0,1-16,0V192H32v16a8,8,0,0,1-16,0V160a8,8,0,0,1,16,0v16H52V160a8,8,0,0,1,16,0Zm56,0a8,8,0,0,1-8,8h-8v40a8,8,0,0,1-16,0V168H84a8,8,0,0,1,0-16h32A8,8,0,0,1,124,160Zm72,0v48a8,8,0,0,1-16,0V184l-9.6,12.8a8,8,0,0,1-12.8,0L148,184v24a8,8,0,0,1-16,0V160a8,8,0,0,1,14.4-4.8L164,178.67l17.6-23.47A8,8,0,0,1,196,160Zm56,48a8,8,0,0,1-8,8H216a8,8,0,0,1-8-8V160a8,8,0,0,1,16,0v40h20A8,8,0,0,1,252,208Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212,88a4,4,0,0,0-1.17-2.83l-2-2h0l-54-54A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v80a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v28a4,4,0,0,0,8,0ZM156,41.65,198.34,84H156ZM64,160v48a4,4,0,0,1-8,0V188H28v20a4,4,0,0,1-8,0V160a4,4,0,0,1,8,0v20H56V160a4,4,0,0,1,8,0Zm56,0a4,4,0,0,1-4,4H104v44a4,4,0,0,1-8,0V164H84a4,4,0,0,1,0-8h32A4,4,0,0,1,120,160Zm72,0v48a4,4,0,0,1-8,0V172l-16.8,22.4a4,4,0,0,1-6.4,0L144,172v36a4,4,0,0,1-8,0V160a4,4,0,0,1,7.2-2.4L164,185.33l20.8-27.73A4,4,0,0,1,192,160Zm56,48a4,4,0,0,1-4,4H216a4,4,0,0,1-4-4V160a4,4,0,0,1,8,0v44h24A4,4,0,0,1,248,208Z"}))]]),Mv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,140H104a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40h-4V164h4a8,8,0,0,1,0,16Zm104,20.87a12,12,0,0,1-3.33,8.3A34,34,0,0,1,196,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a33.39,33.39,0,0,1,18.71,5.8,12,12,0,1,1-13.42,19.89A9.39,9.39,0,0,0,196,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a9,9,0,0,0,2.7-.42A12,12,0,0,1,208,176h4a12,12,0,0,1,12,12ZM80,152v38a30,30,0,0,1-60,0,12,12,0,0,1,24,0,6,6,0,0,0,12,0V152a12,12,0,0,1,24,0ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M120,144H104a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm96,0v16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,192,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.38,29.38,0,0,1,16.48,5.12,8,8,0,0,1-9,13.26A13.21,13.21,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.63,13.63,0,0,0,8-2.71V192a8,8,0,0,1,0-16h8A8,8,0,0,1,216,184ZM80,152v38a26,26,0,0,1-52,0,8,8,0,0,1,16,0,10,10,0,0,0,20,0V152a8,8,0,0,1,16,0ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152ZM120,144H104a8,8,0,0,0-8,8v55.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8v-8h7.4c15.24,0,28.13-11.92,28.59-27.15A28,28,0,0,0,120,144Zm-.35,40H112V160h8a12,12,0,0,1,11.94,13.16A12.23,12.23,0,0,1,119.65,184ZM216,200.87a8,8,0,0,1-2.26,5.57A30,30,0,0,1,192,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.36,29.36,0,0,1,16.09,4.86,8.21,8.21,0,0,1,3,10.64,8,8,0,0,1-11.55,2.88A13.21,13.21,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.63,13.63,0,0,0,8-2.71V192a8,8,0,0,1-8-8.53,8.17,8.17,0,0,1,8.25-7.47H208a8,8,0,0,1,8,8ZM80,152v37.41c0,14.22-11.18,26.26-25.41,26.58A26,26,0,0,1,28,190.37,8.17,8.17,0,0,1,35.31,182,8,8,0,0,1,44,190.22a8.89,8.89,0,0,0,4,8c7.85,4.82,16-.75,16-8.2V152.27A8.17,8.17,0,0,1,71.47,144,8,8,0,0,1,80,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,146H104a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198h10a26,26,0,0,0,0-52Zm0,40H110V158h10a14,14,0,0,1,0,28Zm94-2v16.87a6,6,0,0,1-1.67,4.15A28.06,28.06,0,0,1,192,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a27.43,27.43,0,0,1,15.36,4.77,6,6,0,0,1-6.72,9.95A15.25,15.25,0,0,0,192,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a15.75,15.75,0,0,0,10-3.73V190h-2a6,6,0,0,1,0-12h8A6,6,0,0,1,214,184ZM78,152v38a24,24,0,0,1-48,0,6,6,0,0,1,12,0,12,12,0,0,0,24,0V152a6,6,0,0,1,12,0ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,82V46.48L193.52,82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,144H104a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm96,0v16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,192,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a29.38,29.38,0,0,1,16.48,5.12,8,8,0,0,1-9,13.26A13.21,13.21,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.63,13.63,0,0,0,8-2.71V192a8,8,0,0,1,0-16h8A8,8,0,0,1,216,184ZM80,152v38a26,26,0,0,1-52,0,8,8,0,0,1,16,0,10,10,0,0,0,20,0V152a8,8,0,0,1,16,0ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,148H104a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196h12a24,24,0,0,0,0-48Zm0,40H108V156h12a16,16,0,0,1,0,32Zm92-4v16.87a4,4,0,0,1-1.11,2.77A26.11,26.11,0,0,1,192,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a25.41,25.41,0,0,1,14.24,4.43,4,4,0,1,1-4.48,6.63A17.45,17.45,0,0,0,192,156c-11,0-20,10.77-20,24s9,24,20,24a17.87,17.87,0,0,0,12-4.82V188h-4a4,4,0,0,1,0-8h8A4,4,0,0,1,212,184ZM76,152v38a22,22,0,0,1-44,0,4,4,0,0,1,8,0,14,14,0,0,0,28,0V152a4,4,0,0,1,8,0ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,84V41.65L198.34,84Z"}))]]),Ev=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-4.22,139.85a24.75,24.75,0,0,1-10.95,18.06c-6,4-13.27,5.15-19.73,5.15a63.75,63.75,0,0,1-16.23-2.21,12,12,0,0,1,6.46-23.12c6.81,1.86,15,1.61,16.39.06a2.48,2.48,0,0,0,.21-.71c-1.94-1.23-6.83-2.64-9.88-3.52-5.39-1.56-11-3.18-15.75-6.27-7.62-4.92-11.21-12.45-10.11-21.2a24.45,24.45,0,0,1,10.69-17.75c6.06-4.09,14.17-5.84,24.1-5.18A68.53,68.53,0,0,1,143,142a12,12,0,0,1-6.1,23.21c-6.36-1.63-13.62-1.51-16.07-.33a79.5,79.5,0,0,0,7.91,2.59c5.48,1.58,11.68,3.37,16.8,6.82C153.33,179.55,157,187.55,155.78,196.82ZM84,152v38a30,30,0,0,1-60,0,12,12,0,0,1,24,0,6,6,0,0,0,12,0V152a12,12,0,0,1,24,0Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Zm-12.19,145a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A61.14,61.14,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM80,152v38a26,26,0,0,1-52,0,8,8,0,0,1,16,0,10,10,0,0,0,20,0V152a8,8,0,0,1,16,0Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H164a4,4,0,0,1,4,4V228a4,4,0,0,0,4,4h28a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-4.19,108.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a61.34,61.34,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.58,20.58,0,0,1,9-14.95c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.57,4.57,0,0,0-2,3.67c-.11.9-.13,1.09,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM80,152v37.41c0,14.22-11.18,26.26-25.41,26.58A26,26,0,0,1,28,190.37,8.17,8.17,0,0,1,35.31,182,8,8,0,0,1,44,190.22a8.89,8.89,0,0,0,4,8c7.85,4.82,16-.75,16-8.2V152.27A8.17,8.17,0,0,1,71.47,144,8,8,0,0,1,80,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H176a6,6,0,0,0,0,12h24a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM145.83,196.06a18.89,18.89,0,0,1-8.31,13.81c-4.82,3.19-10.87,4.14-16.36,4.14a58.89,58.89,0,0,1-14.68-2,6,6,0,0,1,3.23-11.56c3.71,1,15.58,3.11,21.19-.62a6.85,6.85,0,0,0,3-5.34c.58-4.43-2.08-6.26-14.2-9.76-9.31-2.69-23.37-6.75-21.57-20.94a18.61,18.61,0,0,1,8.08-13.54c11.11-7.49,29.18-3,31.21-2.48a6,6,0,0,1-3.06,11.6c-3.78-1-15.85-3-21.45.84a6.59,6.59,0,0,0-2.88,5.08c-.41,3.22,2.14,4.78,13,7.91C132.92,176.09,147.84,180.4,145.83,196.06ZM78,152v38a24,24,0,0,1-48,0,6,6,0,0,1,12,0,12,12,0,0,0,24,0V152a6,6,0,0,1,12,0Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Zm-12.19,145a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a61.34,61.34,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.34-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM80,152v38a26,26,0,0,1-52,0,8,8,0,0,1,16,0,10,10,0,0,0,20,0V152a8,8,0,0,1,16,0Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H176a4,4,0,0,0,0,8h24a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM143.84,195.8a17,17,0,0,1-7.43,12.41c-4.39,2.91-10,3.77-15.22,3.77A57.89,57.89,0,0,1,107,210.11a4,4,0,0,1,2.15-7.7c4.22,1.17,16.56,3.29,22.83-.88a8.94,8.94,0,0,0,3.91-6.75c.83-6.45-4.38-8.69-15.64-11.94-9.68-2.8-21.72-6.28-20.14-18.77a16.66,16.66,0,0,1,7.22-12.13c4.56-3.07,11-4.36,19.1-3.82a61.33,61.33,0,0,1,10.48,1.61,4,4,0,0,1-2.05,7.74c-4.29-1.13-16.81-3.12-23.06,1.11a8.51,8.51,0,0,0-3.75,6.49c-.66,5.17,3.89,7,14.42,10.08C132.26,178,145.64,181.84,143.84,195.8ZM76,152v38a22,22,0,0,1-44,0,4,4,0,0,1,8,0,14,14,0,0,0,28,0V152a4,4,0,0,1,8,0Z"}))]]),jv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M151.78,196.8a24.73,24.73,0,0,1-10.95,18c-6,4-13.27,5.15-19.73,5.15a63.75,63.75,0,0,1-16.23-2.21,12,12,0,1,1,6.46-23.11c6.81,1.85,15,1.61,16.39.06a2.48,2.48,0,0,0,.21-.71c-1.94-1.23-6.83-2.64-9.88-3.53-5.39-1.56-11-3.17-15.75-6.26-7.63-4.92-11.21-12.45-10.11-21.19a24.45,24.45,0,0,1,10.69-17.76c6.06-4.09,14.17-5.83,24.1-5.17A69,69,0,0,1,139,142a12,12,0,0,1-6.1,23.21c-6.36-1.63-13.62-1.51-16.07-.33a79.5,79.5,0,0,0,7.91,2.59c5.47,1.58,11.68,3.37,16.8,6.82C149.33,179.53,153,187.53,151.78,196.8ZM68,140a12,12,0,0,0-12,12v38a6,6,0,0,1-12,0,12,12,0,0,0-24,0,30,30,0,0,0,60,0V152A12,12,0,0,0,68,140Zm138.75,40,15-21a12,12,0,0,0-19.53-14L192,159.34,181.76,145a12,12,0,0,0-19.53,14l15,21-15,21A12,12,0,1,0,181.76,215L192,200.62,202.23,215A12,12,0,0,0,221.76,201ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M147.81,196.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A60.43,60.43,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.21,15,2.71,19.55-.35.88-.6,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,9-14.94c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.08,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM72,144a8,8,0,0,0-8,8v38a10,10,0,0,1-20,0,8,8,0,0,0-16,0,26,26,0,0,0,52,0V152A8,8,0,0,0,72,144Zm140.65,1.49a8,8,0,0,0-11.16,1.86L188,166.24l-13.49-18.89a8,8,0,0,0-13,9.3L178.17,180l-16.68,23.35a8,8,0,0,0,13,9.3L188,193.76l13.49,18.89a8,8,0,0,0,13-9.3L197.83,180l16.68-23.35A8,8,0,0,0,212.65,145.49ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-4.19,108.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,15,2.71,19.55-.35.88-.6,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,9-14.94c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.57,4.57,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM80,152v37.4c0,14.23-11.18,26.27-25.41,26.59A26,26,0,0,1,28,190.37,8.17,8.17,0,0,1,35.31,182,8,8,0,0,1,44,190.22a8.89,8.89,0,0,0,4,8c7.85,4.82,16-.76,16-8.2V152.27A8.17,8.17,0,0,1,71.47,144,8,8,0,0,1,80,152Zm134.51,4.65L197.83,180l16.68,23.35a8,8,0,0,1-13,9.3L188,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L178.17,180l-16.68-23.35a8,8,0,0,1,13-9.3L188,166.24l13.49-18.89a8,8,0,0,1,13,9.3Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M145.83,196.05a18.89,18.89,0,0,1-8.31,13.81c-4.82,3.19-10.87,4.14-16.36,4.14a59.41,59.41,0,0,1-14.68-2,6,6,0,0,1,3.23-11.56c3.71,1,15.58,3.11,21.19-.62a6.85,6.85,0,0,0,3-5.34c.58-4.43-2.08-6.26-14.2-9.76-9.31-2.69-23.37-6.75-21.57-20.94a18.61,18.61,0,0,1,8.08-13.54c11.11-7.49,29.18-3,31.21-2.48a6,6,0,0,1-3.06,11.6c-3.79-1-15.85-2.95-21.45.84a6.59,6.59,0,0,0-2.88,5.08c-.41,3.22,2.14,4.78,13,7.91C132.92,176.08,147.84,180.39,145.83,196.05ZM72,146a6,6,0,0,0-6,6v38a12,12,0,0,1-24,0,6,6,0,0,0-12,0,24,24,0,0,0,48,0V152A6,6,0,0,0,72,146Zm139.49,1.12a6,6,0,0,0-8.37,1.39L188,169.67,172.88,148.5a6,6,0,0,0-9.76,7L180.63,180,163.12,204.5a6,6,0,1,0,9.76,7L188,190.31l15.12,21.16a6,6,0,1,0,9.76-7L195.37,180l17.51-24.51A6,6,0,0,0,211.49,147.11ZM214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-20.49-6L158,46.48V82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M147.81,196.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,15,2.71,19.55-.35.88-.6,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.58,20.58,0,0,1,9-14.95c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.08,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM72,144a8,8,0,0,0-8,8v38a10,10,0,0,1-20,0,8,8,0,0,0-16,0,26,26,0,0,0,52,0V152A8,8,0,0,0,72,144Zm140.65,1.49a8,8,0,0,0-11.16,1.86L188,166.24l-13.49-18.89a8,8,0,0,0-13,9.3L178.17,180l-16.68,23.35a8,8,0,0,0,13,9.3L188,193.76l13.49,18.89a8,8,0,0,0,13-9.3L197.83,180l16.68-23.35A8,8,0,0,0,212.65,145.49ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M143.84,195.8a17,17,0,0,1-7.43,12.41c-4.39,2.91-10,3.77-15.22,3.77A57.89,57.89,0,0,1,107,210.11a4,4,0,1,1,2.15-7.7c4.22,1.17,16.56,3.29,22.83-.88a8.94,8.94,0,0,0,3.91-6.75c.83-6.45-4.38-8.69-15.64-11.94-9.68-2.8-21.72-6.28-20.14-18.77a16.66,16.66,0,0,1,7.22-12.13c4.56-3.07,11-4.36,19.1-3.82a61.33,61.33,0,0,1,10.48,1.61,4,4,0,0,1-2.05,7.74c-4.29-1.13-16.81-3.12-23.06,1.11a8.51,8.51,0,0,0-3.75,6.49c-.66,5.17,3.89,7,14.42,10.08C132.26,178,145.64,181.84,143.84,195.8ZM72,148a4,4,0,0,0-4,4v38a14,14,0,0,1-28,0,4,4,0,0,0-8,0,22,22,0,0,0,44,0V152A4,4,0,0,0,72,148Zm138.32.75a4,4,0,0,0-5.58.92L188,173.12l-16.75-23.45a4,4,0,0,0-6.51,4.66L183.08,180l-18.34,25.67a4,4,0,0,0,.93,5.58,4,4,0,0,0,5.58-.92L188,186.88l16.74,23.45A4,4,0,0,0,208,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L192.92,180l18.33-25.67A4,4,0,0,0,210.32,148.75ZM212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-13.66-4L156,41.65V84Z"}))]]),Vv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M100,152v56a12,12,0,0,1-24,0V190.07l-6.17,8.81a12,12,0,0,1-19.66,0L44,190.07V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.83-6.88L60,171.07l18.17-25.95A12,12,0,0,1,100,152Zm84,28a40,40,0,0,1-40,40H128a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,184,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,160,180Zm60-92V224a12,12,0,0,1-24,0V104H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88Zm-60-8h23L160,57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H196a4,4,0,0,1,4,4V224a8,8,0,0,0,9.19,7.91,8.15,8.15,0,0,0,6.81-8.16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-8,56H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,144,144Zm-.49,56H136V160h8a20,20,0,0,1,20,20.77C163.58,191.59,154.34,200,143.51,200ZM104,152v55.73A8.17,8.17,0,0,1,96.53,216,8,8,0,0,1,88,208V177.38l-13.32,19a8.3,8.3,0,0,1-4.2,3.2,8,8,0,0,1-9-3L48,177.38v30.35A8.17,8.17,0,0,1,40.53,216,8,8,0,0,1,32,208V152.31a8.27,8.27,0,0,1,4.56-7.53,8,8,0,0,1,10,2.63L68,178.05l21.27-30.39a8.28,8.28,0,0,1,8.06-3.55A8,8,0,0,1,104,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V224a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM144,146H128a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6h16a34,34,0,0,0,0-68Zm0,56H134V158h10a22,22,0,0,1,0,44Zm-42-50v56a6,6,0,0,1-12,0V171L72.92,195.44a6,6,0,0,1-9.84,0L46,171v37a6,6,0,0,1-12,0V152a6,6,0,0,1,10.92-3.44l23.08,33,23.08-33A6,6,0,0,1,102,152Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V224a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM144,148H128a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4h16a32,32,0,0,0,0-64Zm0,56H132V156h12a24,24,0,0,1,0,48Zm-44-52v56a4,4,0,0,1-8,0V164.69l-20.72,29.6a4,4,0,0,1-6.56,0L44,164.69V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.28-2.29L68,185l24.72-35.31A4,4,0,0,1,100,152Z"}))]]),Rv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm104-60a12,12,0,0,1-12,12H140v12a12,12,0,0,1-24,0V164H104a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,164,152Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-40-64a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V160H104a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,152Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,160H136v16a8,8,0,0,1-16,0V160H104a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16a8,8,0,0,1,0,16Zm0-72V43.31L196.69,88Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-42-66a6,6,0,0,1-6,6H134v18a6,6,0,0,1-12,0V158H104a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,158,152Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-40-64a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V160H104a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,152Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-44-68a4,4,0,0,1-4,4H132v20a4,4,0,0,1-8,0V156H104a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,156,152Z"}))]]),Lv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M56,140H40a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40H52V164h4a8,8,0,0,1,0,16Zm176,20.87a12,12,0,0,1-3.33,8.3A34,34,0,0,1,204,220c-19.85,0-36-17.95-36-40s16.15-40,36-40a33.39,33.39,0,0,1,18.71,5.8,12,12,0,1,1-13.42,19.89A9.39,9.39,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a9,9,0,0,0,2.7-.42A12,12,0,0,1,216,176h4a12,12,0,0,1,12,12ZM160,152v56a12,12,0,0,1-8.34,11.43A12.15,12.15,0,0,1,148,220a12,12,0,0,1-9.76-5L120,189.44V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.76-7L136,170.55V152a12,12,0,0,1,24,0ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.49l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M60,144H44a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H52V160h8a12,12,0,0,1,0,24Zm164,16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,200,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.45,29.45,0,0,1,16.48,5.11,8,8,0,0,1-9,13.27A13.21,13.21,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.57,13.57,0,0,0,8-2.72V192a8,8,0,0,1,0-16h8a8,8,0,0,1,8,8ZM156,152v56a8,8,0,0,1-5.56,7.62A7.91,7.91,0,0,1,148,216a8,8,0,0,1-6.51-3.35L116,177v31a8,8,0,0,1-16,0V152a8,8,0,0,1,14.51-4.65L140,183V152a8,8,0,0,1,16,0ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152ZM60,144H44a8,8,0,0,0-8,8v55.72A8.17,8.17,0,0,0,43.47,216,8,8,0,0,0,52,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,60,144Zm-.35,40H52V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,59.65,184ZM224,200.87a8,8,0,0,1-2.26,5.57A30.07,30.07,0,0,1,200,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.36,29.36,0,0,1,16.09,4.86,8.21,8.21,0,0,1,3,10.64,8,8,0,0,1-11.55,2.88A13.21,13.21,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.57,13.57,0,0,0,8-2.72V192a8,8,0,0,1-8-8.53,8.17,8.17,0,0,1,8.25-7.47H216a8,8,0,0,1,8,8ZM156,152v55.76a8.22,8.22,0,0,1-4.12,7.24,8,8,0,0,1-10.39-2.35L116,177v30.76a8.17,8.17,0,0,1-7.47,8.26,8,8,0,0,1-8.53-8V152.31a8.27,8.27,0,0,1,4.53-7.52,8,8,0,0,1,10,2.56L140,183V152.27a8.17,8.17,0,0,1,7.47-8.25A8,8,0,0,1,156,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M60,146H44a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198H60a26,26,0,0,0,0-52Zm0,40H50V158H60a14,14,0,0,1,0,28Zm162,14.87a6,6,0,0,1-1.67,4.15A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a27.43,27.43,0,0,1,15.36,4.77,6,6,0,0,1-6.72,9.95A15.25,15.25,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a15.75,15.75,0,0,0,10-3.73V190h-2a6,6,0,0,1,0-12h8a6,6,0,0,1,6,6ZM154,152v56a6,6,0,0,1-4.17,5.71A5.78,5.78,0,0,1,148,214a6,6,0,0,1-4.88-2.51L114,170.72V208a6,6,0,0,1-12,0V152a6,6,0,0,1,10.88-3.49L142,189.28V152a6,6,0,0,1,12,0ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M60,144H44a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H52V160h8a12,12,0,0,1,0,24Zm164,16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a29.45,29.45,0,0,1,16.48,5.11,8,8,0,0,1-9,13.27A13.21,13.21,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.57,13.57,0,0,0,8-2.72V192a8,8,0,0,1,0-16h8a8,8,0,0,1,8,8ZM156,152v56a8,8,0,0,1-5.56,7.62A7.91,7.91,0,0,1,148,216a8,8,0,0,1-6.51-3.35L116,177v31a8,8,0,0,1-16,0V152a8,8,0,0,1,14.51-4.65L140,183V152a8,8,0,0,1,16,0ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M60,148H44a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196H60a24,24,0,0,0,0-48Zm0,40H48V156H60a16,16,0,0,1,0,32Zm160,12.87a4,4,0,0,1-1.11,2.77A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a25.41,25.41,0,0,1,14.24,4.43,4,4,0,1,1-4.48,6.63A17.45,17.45,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a17.87,17.87,0,0,0,12-4.82V188h-4a4,4,0,0,1,0-8h8a4,4,0,0,1,4,4ZM152,152v56a4,4,0,0,1-2.78,3.81A3.93,3.93,0,0,1,148,212a4,4,0,0,1-3.25-1.67L112,164.48V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.25-2.33L144,195.52V152a4,4,0,0,1,8,0Zm52-40a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52ZM156,84V41.65L198.34,84Z"}))]]),Xv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,1,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM183,80H160V57ZM87.78,196.8a24.72,24.72,0,0,1-10.94,18c-6,4-13.27,5.15-19.74,5.15a63.75,63.75,0,0,1-16.23-2.21,12,12,0,1,1,6.46-23.11c6.82,1.85,15,1.61,16.39.06a2.48,2.48,0,0,0,.21-.71c-1.94-1.23-6.82-2.64-9.88-3.53-5.39-1.56-11-3.17-15.75-6.26-7.62-4.92-11.21-12.45-10.1-21.19a24.44,24.44,0,0,1,10.68-17.76c6.07-4.09,14.17-5.82,24.1-5.17A69,69,0,0,1,75,142a12,12,0,0,1-6.1,23.21c-6.35-1.63-13.61-1.51-16.07-.33a79.69,79.69,0,0,0,7.92,2.59c5.47,1.58,11.67,3.37,16.8,6.82C85.33,179.53,89,187.53,87.78,196.8ZM155.3,156l-20,56a12,12,0,0,1-22.6,0l-20-56A12,12,0,1,1,115.3,148L124,172.3,132.7,148A12,12,0,1,1,155.3,156ZM224,188v12.87a12,12,0,0,1-3.33,8.3A34,34,0,0,1,196,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a33.39,33.39,0,0,1,18.71,5.8,12,12,0,1,1-13.42,19.89A9.39,9.39,0,0,0,196,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a9,9,0,0,0,2.7-.42A12,12,0,0,1,208,176h4A12,12,0,0,1,224,188Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,1,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Zm-72.18,145a20.82,20.82,0,0,1-9.19,15.23C73.44,215,67,216,61.14,216A61.23,61.23,0,0,1,46,214a8,8,0,0,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.55,20.55,0,0,1,9-14.95c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.14,1.09,1.12,1.9,2.31,1.49,6.44,2.68,10.45,3.84C73.5,174.17,90.06,179,87.82,196.31Zm63.72-41.62-20,56a8,8,0,0,1-15.07,0l-20-56a8,8,0,1,1,15.06-5.38L124,184.21l12.46-34.9a8,8,0,0,1,15.07,5.38ZM216,184v16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,192,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.38,29.38,0,0,1,16.48,5.12,8,8,0,0,1-8.95,13.26A13.27,13.27,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.38,13.38,0,0,0,8-2.71V192a8,8,0,0,1,0-16h8A8,8,0,0,1,216,184Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM87.82,196.31a20.82,20.82,0,0,1-9.19,15.23C73.44,215,67,216,61.14,216A61.23,61.23,0,0,1,46,214a8,8,0,0,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.55,20.55,0,0,1,9-14.95c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.14,1.09,1.12,1.9,2.31,1.49,6.44,2.68,10.45,3.84C73.5,174.17,90.06,179,87.82,196.31Zm63.72-41.62-19.9,55.72a8.25,8.25,0,0,1-6.5,5.51,8,8,0,0,1-8.67-5.23L96.59,155a8.21,8.21,0,0,1,4.5-10.45,8,8,0,0,1,10.45,4.76L124,184.21l12.46-34.9a8,8,0,0,1,15.07,5.38ZM216,184v16.87a8,8,0,0,1-2.26,5.57A30,30,0,0,1,192,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.36,29.36,0,0,1,16.09,4.86,8.22,8.22,0,0,1,3,10.64,8,8,0,0,1-11.54,2.88A13.27,13.27,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.38,13.38,0,0,0,8-2.71V192a8,8,0,0,1-8-8.53,8.18,8.18,0,0,1,8.26-7.47H208A8,8,0,0,1,216,184Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.75l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,1,0,12,0V88A6,6,0,0,0,212.24,83.75ZM158,46.48,193.52,82H158ZM85.83,196.05a18.85,18.85,0,0,1-8.3,13.81C72.71,213.05,66.66,214,61.16,214a59.38,59.38,0,0,1-14.67-2,6,6,0,0,1,3.23-11.56c3.71,1,15.58,3.11,21.19-.62a6.85,6.85,0,0,0,3-5.34c.57-4.43-2.08-6.26-14.2-9.76-9.31-2.69-23.37-6.75-21.57-20.94a18.61,18.61,0,0,1,8.08-13.54c11.11-7.49,29.18-3,31.2-2.48a6,6,0,0,1-3,11.6c-3.79-1-15.85-2.95-21.45.84a6.59,6.59,0,0,0-2.88,5.08c-.41,3.22,2.14,4.78,13,7.91C72.93,176.08,87.85,180.39,85.83,196.05Zm63.82-42-20,56a6,6,0,0,1-11.3,0l-20-56a6,6,0,1,1,11.3-4L124,190.15,138.35,150a6,6,0,0,1,11.3,4ZM214,184v16.87a6,6,0,0,1-1.67,4.15A28.06,28.06,0,0,1,192,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a27.43,27.43,0,0,1,15.36,4.77,6,6,0,0,1-6.72,10A15.25,15.25,0,0,0,192,158c-9.92,0-18,9.87-18,22s8.08,22,18,22a15.7,15.7,0,0,0,10-3.74V190h-2a6,6,0,0,1,0-12h8A6,6,0,0,1,214,184Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M87.82,196.31a20.82,20.82,0,0,1-9.19,15.23C73.44,215,67,216,61.14,216A61.23,61.23,0,0,1,46,214a8,8,0,0,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.55,20.55,0,0,1,9-14.95c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.14,1.09,1.12,1.9,2.31,1.49,6.44,2.68,10.45,3.84C73.5,174.17,90.06,179,87.82,196.31ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,1,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.65,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm-13.3,64.47a8,8,0,0,0-10.23,4.84L124,184.21l-12.47-34.9a8,8,0,1,0-15.06,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,146.7,144.47ZM208,176h-8a8,8,0,0,0,0,16v5.29a13.38,13.38,0,0,1-8,2.71c-8.82,0-16-9-16-20s7.18-20,16-20a13.27,13.27,0,0,1,7.53,2.38,8,8,0,0,0,8.95-13.26A29.38,29.38,0,0,0,192,144c-17.64,0-32,16.15-32,36s14.36,36,32,36a30.06,30.06,0,0,0,21.78-9.6,8,8,0,0,0,2.22-5.53V184A8,8,0,0,0,208,176Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,1,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM83.85,195.8a17,17,0,0,1-7.43,12.41C72,211.12,66.38,212,61.2,212A57.89,57.89,0,0,1,47,210.11a4,4,0,1,1,2.15-7.7c4.22,1.17,16.56,3.29,22.83-.88a8.94,8.94,0,0,0,3.91-6.75c.83-6.45-4.38-8.69-15.64-11.94-9.68-2.8-21.72-6.28-20.14-18.77a16.66,16.66,0,0,1,7.22-12.13c4.56-3.07,11-4.36,19.1-3.82a61.11,61.11,0,0,1,10.47,1.61,4,4,0,0,1-2,7.74c-4.29-1.13-16.81-3.12-23.06,1.11a8.51,8.51,0,0,0-3.75,6.49c-.66,5.17,3.89,7,14.42,10.08C72.27,178,85.65,181.84,83.85,195.8Zm63.92-42.45-20,56a4,4,0,0,1-7.53,0l-20-56a4,4,0,1,1,7.53-2.7L124,196.11l16.23-45.46a4,4,0,1,1,7.53,2.7ZM212,184v16.87a4,4,0,0,1-1.11,2.77A26.11,26.11,0,0,1,192,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a25.41,25.41,0,0,1,14.24,4.43,4,4,0,1,1-4.48,6.63A17.43,17.43,0,0,0,192,156c-11,0-20,10.77-20,24s9,24,20,24a17.87,17.87,0,0,0,12-4.82V188h-4a4,4,0,0,1,0-8h8A4,4,0,0,1,212,184Z"}))]]),Nv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-4.22,139.85a24.75,24.75,0,0,1-10.95,18.06c-6,4-13.27,5.15-19.73,5.15a63.75,63.75,0,0,1-16.23-2.21,12,12,0,0,1,6.46-23.12c6.81,1.86,15,1.61,16.39.06a2.48,2.48,0,0,0,.21-.71c-1.94-1.23-6.83-2.64-9.88-3.52-5.39-1.56-11-3.18-15.75-6.27-7.62-4.92-11.21-12.45-10.11-21.2a24.45,24.45,0,0,1,10.69-17.75c6.06-4.09,14.17-5.83,24.1-5.18A68.53,68.53,0,0,1,143,142a12,12,0,0,1-6.1,23.21c-6.36-1.63-13.62-1.51-16.07-.33a79.5,79.5,0,0,0,7.91,2.59c5.48,1.58,11.68,3.37,16.8,6.82C153.33,179.55,157,187.55,155.78,196.82ZM92,152a12,12,0,0,1-12,12H72v44a12,12,0,0,1-24,0V164H40a12,12,0,0,1,0-24H80A12,12,0,0,1,92,152Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Zm-12.19,145a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A61.14,61.14,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM88,152a8,8,0,0,1-8,8H68v48a8,8,0,0,1-16,0V160H40a8,8,0,0,1,0-16H80A8,8,0,0,1,88,152Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H164a4,4,0,0,1,4,4V228a4,4,0,0,0,4,4h28a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-4.19,108.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A61.14,61.14,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM88,152.53A8.17,8.17,0,0,1,79.73,160H68v47.73A8.17,8.17,0,0,1,60.53,216,8,8,0,0,1,52,208V160H40.27A8.17,8.17,0,0,1,32,152.53,8,8,0,0,1,40,144H80A8,8,0,0,1,88,152.53Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H176a6,6,0,0,0,0,12h24a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM145.83,196.06a18.89,18.89,0,0,1-8.31,13.81c-4.82,3.19-10.87,4.14-16.36,4.14a58.89,58.89,0,0,1-14.68-2,6,6,0,0,1,3.23-11.56c3.71,1,15.58,3.11,21.19-.62a6.85,6.85,0,0,0,3-5.34c.58-4.43-2.08-6.26-14.2-9.76-9.31-2.69-23.37-6.75-21.57-20.94a18.61,18.61,0,0,1,8.08-13.54c11.11-7.49,29.18-3,31.21-2.48a6,6,0,0,1-3.06,11.6c-3.78-1-15.85-3-21.45.84a6.59,6.59,0,0,0-2.88,5.08c-.41,3.22,2.14,4.78,13,7.91C132.92,176.09,147.84,180.4,145.83,196.06ZM86,152a6,6,0,0,1-6,6H66v50a6,6,0,0,1-12,0V158H40a6,6,0,0,1,0-12H80A6,6,0,0,1,86,152Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M147.81,196.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a61.34,61.34,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.34-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM216,88V216a16,16,0,0,1-16,16H176a8,8,0,0,1,0-16h24V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31ZM80,144H40a8,8,0,0,0,0,16H52v48a8,8,0,0,0,16,0V160H80a8,8,0,0,0,0-16Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H176a4,4,0,0,0,0,8h24a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM143.84,195.8a17,17,0,0,1-7.43,12.41c-4.39,2.91-10,3.77-15.22,3.77A57.89,57.89,0,0,1,107,210.11a4,4,0,0,1,2.15-7.7c4.22,1.17,16.56,3.29,22.83-.88a8.94,8.94,0,0,0,3.91-6.75c.83-6.45-4.38-8.69-15.64-11.94-9.68-2.8-21.72-6.28-20.14-18.77a16.66,16.66,0,0,1,7.22-12.13c4.56-3.07,11-4.36,19.1-3.82a61.33,61.33,0,0,1,10.48,1.61,4,4,0,0,1-2.05,7.74c-4.29-1.13-16.81-3.12-23.06,1.11a8.51,8.51,0,0,0-3.75,6.49c-.66,5.17,3.89,7,14.42,10.08C132.26,178,145.64,181.84,143.84,195.8ZM84,152a4,4,0,0,1-4,4H64v52a4,4,0,0,1-8,0V156H40a4,4,0,0,1,0-8H80A4,4,0,0,1,84,152Z"}))]]),_v=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M221.76,201A12,12,0,1,1,202.23,215L192,200.62,181.76,215A12,12,0,1,1,162.23,201l15-21-15-21a12,12,0,0,1,19.53-14L192,159.34,202.23,145a12,12,0,0,1,19.53,14l-15,21Zm-80.25-26.73c-5.12-3.45-11.33-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,139,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.48,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,121.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C153,187.53,149.33,179.53,141.51,174.27ZM76,140H36a12,12,0,0,0,0,24h8v44a12,12,0,0,0,24,0V164h8a12,12,0,0,0,0-24ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M214.51,156.65,197.83,180l16.68,23.35a8,8,0,0,1-13,9.3L188,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L178.17,180l-16.68-23.35a8,8,0,0,1,13-9.3L188,166.24l13.49-18.89a8,8,0,0,1,13,9.3ZM123.6,171.31c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.11-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56A8,8,0,0,0,138,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.14,3.93-4.6,3.06-15.17,1.56-19.55.35A8,8,0,1,0,106,214a60.43,60.43,0,0,0,15.18,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C150,179,133.49,174.17,123.6,171.31ZM80,144H40a8,8,0,0,0,0,16H52v48a8,8,0,0,0,16,0V160H80a8,8,0,0,0,0-16ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm62.51,68.65L197.83,180l16.68,23.35a8,8,0,0,1-13,9.3L188,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L178.17,180l-16.68-23.35a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L188,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm-66.7,39.66a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A60.43,60.43,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.21,15,2.71,19.55-.35.88-.6,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,9-14.94c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.08,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM88,152.53A8.18,8.18,0,0,1,79.73,160H68v47.72A8.18,8.18,0,0,1,60.53,216,8,8,0,0,1,52,208V160H40.27A8.18,8.18,0,0,1,32,152.53,8,8,0,0,1,40,144H80A8,8,0,0,1,88,152.53Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.88,155.48,195.37,180l17.51,24.51a6,6,0,1,1-9.76,7L188,190.31l-15.12,21.16a6,6,0,1,1-9.76-7L180.63,180l-17.51-24.51a6,6,0,0,1,9.76-7L188,169.67l15.12-21.17a6,6,0,1,1,9.76,7Zm-89.83,17.74c-10.86-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.66-1.83,21.45-.84a6,6,0,0,0,3.06-11.6c-2-.53-20.1-5-31.21,2.48a18.61,18.61,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.78,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,106.48,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C147.84,180.39,132.92,176.08,123.05,173.22ZM80,146H40a6,6,0,0,0,0,12H54v50a6,6,0,0,0,12,0V158H80a6,6,0,0,0,0-12ZM214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-20.49-6L158,46.48V82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M214.51,156.65,197.83,180l16.68,23.35a8,8,0,0,1-13,9.3L188,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L178.17,180l-16.68-23.35a8,8,0,0,1,13-9.3L188,166.24l13.49-18.89a8,8,0,0,1,13,9.3ZM123.6,171.31c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.11-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56A8,8,0,0,0,138,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.14,3.93-4.6,3.06-15.17,1.56-19.55.35A8,8,0,0,0,105.94,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C150,179,133.49,174.17,123.6,171.31ZM80,144H40a8,8,0,0,0,0,16H52v48a8,8,0,0,0,16,0V160H80a8,8,0,0,0,0-16ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M211.25,154.33,192.92,180l18.33,25.67a4,4,0,0,1-.93,5.58A3.91,3.91,0,0,1,208,212a4,4,0,0,1-3.26-1.67L188,186.88l-16.75,23.45a4,4,0,0,1-6.51-4.66L183.08,180l-18.34-25.67a4,4,0,0,1,6.51-4.66L188,173.12l16.74-23.45a4,4,0,0,1,6.51,4.66Zm-88.76,20.82c-10.53-3-15.08-4.91-14.42-10.08a8.51,8.51,0,0,1,3.75-6.49c6.25-4.23,18.77-2.24,23.06-1.11a4,4,0,0,0,2.05-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.12-.54-14.54.75-19.1,3.82a16.66,16.66,0,0,0-7.22,12.13c-1.58,12.49,10.46,16,20.14,18.77,11.26,3.25,16.47,5.49,15.64,11.94a8.94,8.94,0,0,1-3.91,6.75c-6.27,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.89,57.89,0,0,0,121.19,212c5.18,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C145.64,181.84,132.26,178,122.49,175.15ZM80,148H40a4,4,0,0,0,0,8H56v52a4,4,0,0,0,8,0V156H80a4,4,0,0,0,0-8ZM212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-13.66-4L156,41.65V84Z"}))]]),zv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.49l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM183,80H160V57Zm-25.27,79-15,21,15,21A12,12,0,1,1,138.24,215L128,200.65,117.76,215A12,12,0,1,1,98.24,201l15-21-15-21A12,12,0,1,1,117.76,145L128,159.35,138.24,145A12,12,0,1,1,157.76,159ZM92,152a12,12,0,0,1-12,12H72v44a12,12,0,0,1-24,0V164H40a12,12,0,0,1,0-24H80A12,12,0,0,1,92,152Zm136,0a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,228,152Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Zm-5.49,105.34L137.83,180l16.68,23.35a8,8,0,0,1-13,9.3L128,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L118.17,180l-16.68-23.35a8,8,0,1,1,13-9.3L128,166.24l13.49-18.89a8,8,0,0,1,13,9.3ZM92,152a8,8,0,0,1-8,8H72v48a8,8,0,0,1-16,0V160H44a8,8,0,0,1,0-16H84A8,8,0,0,1,92,152Zm128,0a8,8,0,0,1-8,8H200v48a8,8,0,0,1-16,0V160H172a8,8,0,0,1,0-16h40A8,8,0,0,1,220,152Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M154.31,156.92,137.83,180l16.53,23.14a8.18,8.18,0,0,1-1.22,11,8,8,0,0,1-11.65-1.48L128,193.76l-13.49,18.89a8,8,0,0,1-11.64,1.49,8.17,8.17,0,0,1-1.23-11L118.17,180l-16.48-23.08a8.22,8.22,0,0,1,1.46-11.28,8,8,0,0,1,11.36,1.71L128,166.24l13.49-18.89a8,8,0,0,1,11.36-1.71A8.22,8.22,0,0,1,154.31,156.92ZM84,144H44.27A8.18,8.18,0,0,0,36,151.47,8,8,0,0,0,44,160H56v47.73A8.17,8.17,0,0,0,63.47,216,8,8,0,0,0,72,208V160H83.73A8.18,8.18,0,0,0,92,152.53,8,8,0,0,0,84,144Zm128,0H172.27a8.18,8.18,0,0,0-8.25,7.47,8,8,0,0,0,8,8.53h12v47.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V160h11.73a8.18,8.18,0,0,0,8.25-7.47A8,8,0,0,0,212,144ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Zm-5.12,109L135.37,180l17.51,24.51a6,6,0,1,1-9.76,7L128,190.32l-15.12,21.17a6,6,0,0,1-9.76-7L120.63,180l-17.51-24.51a6,6,0,1,1,9.76-7L128,169.68l15.12-21.17a6,6,0,0,1,9.76,7ZM90,152a6,6,0,0,1-6,6H70v50a6,6,0,0,1-12,0V158H44a6,6,0,0,1,0-12H84A6,6,0,0,1,90,152Zm128,0a6,6,0,0,1-6,6H198v50a6,6,0,0,1-12,0V158H172a6,6,0,0,1,0-12h40A6,6,0,0,1,218,152Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Zm-5.49,105.34L137.83,180l16.68,23.35a8,8,0,0,1-13,9.3L128,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L118.17,180l-16.68-23.35a8,8,0,1,1,13-9.3L128,166.24l13.49-18.89a8,8,0,0,1,13,9.3ZM92,152a8,8,0,0,1-8,8H72v48a8,8,0,0,1-16,0V160H44a8,8,0,0,1,0-16H84A8,8,0,0,1,92,152Zm128,0a8,8,0,0,1-8,8H200v48a8,8,0,0,1-16,0V160H172a8,8,0,0,1,0-16h40A8,8,0,0,1,220,152Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204,112a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52ZM156,41.65,198.34,84H156Zm-4.75,112.67L132.92,180l18.33,25.67a4,4,0,1,1-6.5,4.65L128,186.88l-16.75,23.44a4,4,0,1,1-6.5-4.65L123.08,180l-18.33-25.68a4,4,0,1,1,6.5-4.65L128,173.12l16.75-23.45a4,4,0,1,1,6.5,4.65ZM88,152a4,4,0,0,1-4,4H68v52a4,4,0,0,1-8,0V156H44a4,4,0,0,1,0-8H84A4,4,0,0,1,88,152Zm128,0a4,4,0,0,1-4,4H196v52a4,4,0,0,1-8,0V156H172a4,4,0,0,1,0-8h40A4,4,0,0,1,216,152Z"}))]]),Dv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-1.91,84.69a12,12,0,0,0-11.92-.15L126.5,152.44A20,20,0,0,0,108,140H48a20,20,0,0,0-20,20v48a20,20,0,0,0,20,20h60a20,20,0,0,0,18.5-12.44l19.67,10.93A12,12,0,0,0,164,216V152A12,12,0,0,0,158.09,141.66ZM104,204H52V164h52Zm36-8.39-12-6.67v-9.88l12-6.67Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Zm-88,72a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V196l32,20V152l-32,20Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM144,201.57l-16-10V176.43l16-10Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Zm-3.09,100.27a6,6,0,0,0-6.09.16L126,161.17V160a14,14,0,0,0-14-14H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h64a14,14,0,0,0,14-14v-1.17l22.82,14.26A6,6,0,0,0,158,216V152A6,6,0,0,0,154.91,146.75ZM114,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V160a2,2,0,0,1,2-2h64a2,2,0,0,1,2,2Zm32-2.83-20-12.5V175.33l20-12.5Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM153.94,148.5a4,4,0,0,0-4.06.11L124,164.78V160a12,12,0,0,0-12-12H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12v-4.78l25.88,16.17A4,4,0,0,0,152,220a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,156,216V152A4,4,0,0,0,153.94,148.5ZM116,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V160a4,4,0,0,1,4-4h64a4,4,0,0,1,4,4Zm32,.78-24-15V174.22l24-15Z"}))]]),Iv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z",opacity:"0.2"}),p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,88V200.89A15.13,15.13,0,0,1,216.89,216H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H93.33a16.12,16.12,0,0,1,9.6,3.2L130.67,72H216A16,16,0,0,1,232,88Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4Z"}))]]),Wv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Zm-84-88a12,12,0,0,1,12,12v12h12a12,12,0,0,1,0,24H140v12a12,12,0,0,1-24,0V156H104a12,12,0,0,1,0-24h12V120A12,12,0,0,1,128,108Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z",opacity:"0.2"}),p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Zm-56-56a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V152H104a8,8,0,0,1,0-16h16V120a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,144Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm-64,80H136v16a8,8,0,0,1-16,0V152H104a8,8,0,0,1,0-16h16V120a8,8,0,0,1,16,0v16h16a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2ZM158,144a6,6,0,0,1-6,6H134v18a6,6,0,0,1-12,0V150H104a6,6,0,0,1,0-12h18V120a6,6,0,0,1,12,0v18h18A6,6,0,0,1,158,144Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Zm-56-56a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V152H104a8,8,0,0,1,0-16h16V120a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,144Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4ZM156,144a4,4,0,0,1-4,4H132v20a4,4,0,0,1-8,0V148H104a4,4,0,0,1,0-8h20V120a4,4,0,0,1,8,0v20h20A4,4,0,0,1,156,144Z"}))]]),Hv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"}))]]),Yv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),p.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),Fv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),Bv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M90.86,50.89a12,12,0,0,0-21.72,0l-64,136a12,12,0,0,0,21.71,10.22L42.44,164h75.12l15.58,33.11a12,12,0,0,0,21.72-10.22ZM53.74,140,80,84.18,106.27,140ZM200,84c-13.85,0-24.77,3.86-32.45,11.48a12,12,0,1,0,16.9,17c3-3,8.26-4.52,15.55-4.52,11,0,20,7.18,20,16v4.39A47.28,47.28,0,0,0,200,124c-24.26,0-44,17.94-44,40s19.74,40,44,40a47.18,47.18,0,0,0,22-5.38A12,12,0,0,0,244,192V124C244,101.94,224.26,84,200,84Zm0,96c-11,0-20-7.18-20-16s9-16,20-16,20,7.18,20,16S211,180,200,180Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,164c0,15.46-14.33,28-32,28s-32-12.54-32-28,14.33-28,32-28S232,148.54,232,164ZM34.82,152h90.36L80,56Z",opacity:"0.2"}),p.createElement("path",{d:"M87.24,52.59a8,8,0,0,0-14.48,0l-64,136a8,8,0,1,0,14.48,6.81L39.9,160h80.2l16.66,35.4a8,8,0,1,0,14.48-6.81ZM47.43,144,80,74.79,112.57,144ZM200,96c-12.76,0-22.73,3.47-29.63,10.32a8,8,0,0,0,11.26,11.36c3.8-3.77,10-5.68,18.37-5.68,13.23,0,24,9,24,20v3.22A42.76,42.76,0,0,0,200,128c-22.06,0-40,16.15-40,36s17.94,36,40,36a42.73,42.73,0,0,0,24-7.25,8,8,0,0,0,16-.75V132C240,112.15,222.06,96,200,96Zm0,88c-13.23,0-24-9-24-20s10.77-20,24-20,24,9,24,20S213.23,184,200,184Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,156c0,6.5-7.33,12-16,12s-16-5.5-16-12,7.33-12,16-12S200,149.5,200,156ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM143.37,172.88l-44-104a8,8,0,0,0-14.74,0l-44,104a8,8,0,0,0,14.74,6.24L66.84,152h50.32l11.47,27.12a8,8,0,0,0,14.74-6.24ZM216,124c0-15.44-14.36-28-32-28a34.86,34.86,0,0,0-20.78,6.68,8,8,0,0,0,9.56,12.83A18.84,18.84,0,0,1,184,112c8.56,0,15.8,5.36,16,11.76v8A35.24,35.24,0,0,0,184,128c-17.64,0-32,12.56-32,28s14.36,28,32,28a35.13,35.13,0,0,0,16.93-4.26A8,8,0,0,0,216,176ZM73.61,136h36.78L92,92.53Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M85.43,53.45a6,6,0,0,0-10.86,0l-64,136a6,6,0,1,0,10.86,5.11L38.63,158h82.74l17.2,36.55a6,6,0,1,0,10.86-5.11ZM44.28,146,80,70.09,115.72,146ZM200,98c-12.21,0-21.71,3.28-28.23,9.74a6,6,0,0,0,8.46,8.52c4.18-4.15,10.84-6.26,19.77-6.26,14.34,0,26,9.87,26,22v7.24A40.36,40.36,0,0,0,200,130c-20.95,0-38,15.25-38,34s17.05,34,38,34a40.36,40.36,0,0,0,26-9.24V192a6,6,0,0,0,12,0V132C238,113.25,221,98,200,98Zm0,88c-14.34,0-26-9.87-26-22s11.66-22,26-22,26,9.87,26,22S214.34,186,200,186Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M87.24,52.59a8,8,0,0,0-14.48,0l-64,136a8,8,0,1,0,14.48,6.81L39.9,160h80.2l16.66,35.4a8,8,0,1,0,14.48-6.81ZM47.43,144,80,74.79,112.57,144ZM200,96c-12.76,0-22.73,3.47-29.63,10.32a8,8,0,0,0,11.26,11.36c3.8-3.77,10-5.68,18.37-5.68,13.23,0,24,9,24,20v3.22A42.76,42.76,0,0,0,200,128c-22.06,0-40,16.15-40,36s17.94,36,40,36a42.73,42.73,0,0,0,24-7.25,8,8,0,0,0,16-.75V132C240,112.15,222.06,96,200,96Zm0,88c-13.23,0-24-9-24-20s10.77-20,24-20,24,9,24,20S213.23,184,200,184Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M83.62,54.3a4,4,0,0,0-7.24,0l-64,136a4,4,0,0,0,7.24,3.4L37.36,156h85.28l17.74,37.7a4,4,0,1,0,7.24-3.4ZM41.13,148,80,65.39,118.87,148ZM200,100c-11.67,0-20.69,3.08-26.82,9.16a4,4,0,1,0,5.64,5.68c4.57-4.54,11.7-6.84,21.18-6.84,15.44,0,28,10.77,28,24v11.92A37.78,37.78,0,0,0,200,132c-19.85,0-36,14.35-36,32s16.15,32,36,32a37.78,37.78,0,0,0,28-11.92V192a4,4,0,0,0,8,0V132C236,114.36,219.85,100,200,100Zm0,88c-15.44,0-28-10.77-28-24s12.56-24,28-24,28,10.77,28,24S215.44,188,200,188Z"}))]]),qv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),Uv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),p.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),Gv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,96v64H48V96Z",opacity:"0.2"}),p.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"}))]]),Kv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),Jv=p.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),et=p.forwardRef((r,e)=>{const{alt:t,color:n,size:i,weight:l,mirrored:o,children:c,weights:u,...f}=r,{color:m="currentColor",size:O,weight:y="regular",mirrored:S=!1,...w}=p.useContext(Jv);return p.createElement("svg",{ref:e,xmlns:"http://www.w3.org/2000/svg",width:i??O,height:i??O,fill:n??m,viewBox:"0 0 256 256",transform:o||S?"scale(-1, 1)":void 0,...w,...f},!!t&&p.createElement("title",null,t),c,u.get(l??y))});et.displayName="IconBase";const kg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:kv}));kg.displayName="ArrowLeftIcon";const e3=kg,bg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:bv}));bg.displayName="CaretDownIcon";const t3=bg,Rc=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Qv}));Rc.displayName="CaretRightIcon";const Qg=Rc,$g=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:$v}));$g.displayName="CheckCircleIcon";const Pg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Pv}));Pg.displayName="CopyIcon";const n3=Pg,Ag=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Av}));Ag.displayName="FileIcon";const r3=Ag,Cg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Cv}));Cg.displayName="FileCodeIcon";const i3=Cg,Tg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Tv}));Tg.displayName="FileCssIcon";const s3=Tg,Zg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Zv}));Zg.displayName="FileHtmlIcon";const l3=Zg,Mg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Mv}));Mg.displayName="FileJpgIcon";const o3=Mg,Eg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Ev}));Eg.displayName="FileJsIcon";const a3=Eg,jg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:jv}));jg.displayName="FileJsxIcon";const c3=jg,Vg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Vv}));Vg.displayName="FileMdIcon";const u3=Vg,Rg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Rv}));Rg.displayName="FilePlusIcon";const Km=Rg,Lg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Lv}));Lg.displayName="FilePngIcon";const h3=Lg,Xg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Xv}));Xg.displayName="FileSvgIcon";const f3=Xg,Ng=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Nv}));Ng.displayName="FileTsIcon";const d3=Ng,_g=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:_v}));_g.displayName="FileTsxIcon";const p3=_g,zg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:zv}));zg.displayName="FileTxtIcon";const m3=zg,Dg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Dv}));Dg.displayName="FileVideoIcon";const O3=Dg,Ig=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Iv}));Ig.displayName="FolderSimpleIcon";const g3=Ig,Wg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Wv}));Wg.displayName="FolderSimplePlusIcon";const Hg=Wg,Yg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Hv}));Yg.displayName="ImageIcon";const y3=Yg,Fg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Yv}));Fg.displayName="PencilSimpleIcon";const x3=Fg,Bg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Fv}));Bg.displayName="PlusIcon";const v3=Bg,qg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Bv}));qg.displayName="TextAaIcon";const S3=qg,Ug=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:qv}));Ug.displayName="TrashIcon";const w3=Ug,wc=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Uv}));wc.displayName="WarningIcon";const Gg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Gv}));Gg.displayName="WaveformIcon";const k3=Gg,Kg=p.forwardRef((r,e)=>p.createElement(et,{ref:e,...r,weights:Kv}));Kg.displayName="XIcon";function b3({stack:r,onNavigate:e}){return r.length<=1?null:v.jsxs("nav",{"aria-label":"Composition navigation",className:"flex items-center gap-1 px-2 h-8 border-b border-neutral-800/50 bg-neutral-900/50 flex-shrink-0",children:[v.jsx("button",{type:"button",onClick:()=>e(r.length-2),className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-xs text-neutral-400 hover:text-white hover:bg-neutral-800 transition-colors",title:"Back (Esc)",children:v.jsx(e3,{size:12,weight:"bold"})}),r.map((t,n)=>{const i=n===r.length-1;return v.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&v.jsx(Qg,{size:10,className:"text-neutral-600 flex-shrink-0"}),i?v.jsx("span",{className:"text-xs text-neutral-200 font-medium",children:t.label}):v.jsx("button",{type:"button",onClick:()=>e(n),className:"text-xs text-neutral-500 hover:text-neutral-200 transition-colors",children:t.label})]},t.id)})]})}const Q3=100,$3=220,P3=120,A3=p.memo(function({projectId:e,portrait:t,previewOverlay:n,timelineToolbar:i,timelineFooter:l,refreshKey:o,activeCompositionPath:c,onIframeRef:u,onCompositionChange:f,renderClipContent:m,onMoveElement:O,onResizeElement:y,onCompIdToSrcChange:S,timelineVisible:w,onToggleTimeline:b}){const{iframeRef:$,togglePlay:C,seek:_,onIframeLoad:A,refreshPlayer:T,saveSeekPosition:Z}=vv(),X=p.useRef(e);X.current!==e&&(X.current=e,Ee.getState().reset());const M=p.useRef(o);p.useEffect(()=>{o!==M.current&&(M.current=o,T())},[o,T]);const N=p.useCallback(()=>{A(),u==null||u($.current)},[A,$,u]),[Y,fe]=p.useState(new Map);_t(()=>{fetch(`/api/projects/${e}/files/index.html`).then(me=>me.json()).then(me=>{const Te=me.content||"",je=new Map,ze=/data-composition-id=["']([^"']+)["'][^>]*data-composition-src=["']([^"']+)["']|data-composition-src=["']([^"']+)["'][^>]*data-composition-id=["']([^"']+)["']/g;let Ne;for(;(Ne=ze.exec(Te))!==null;){const Je=Ne[1]||Ne[4],At=Ne[2]||Ne[3];Je&&At&&je.set(Je,At)}fe(je),S==null||S(je)}).catch(()=>{})});const K=p.useRef(Y);K.current=Y,p.useEffect(()=>{if(Y.size===0)return;const me=ze=>{const Ne=K.current;if(Ne.size===0)return null;let Je=!1;const At=ze.map(De=>{if(De.compositionSrc)return De;const Ct=Ne.get(De.id)??Ne.get(De.id.replace(/-(host|comp|layer)$/,""));return Ct?(Je=!0,{...De,compositionSrc:Ct}):De});return Je?At:null},Te=me(Ee.getState().elements);Te&&Ee.getState().setElements(Te);let je=!1;return Ee.subscribe((ze,Ne)=>{if(je||ze.elements===Ne.elements||ze.elements.length===0||ze.elements.every(At=>At.compositionSrc))return;je=!0;const Je=me(ze.elements);Je&&ze.setElements(Je),je=!1})},[Y]);const[te,F]=p.useState([{id:"master",label:"Master",previewUrl:`/api/projects/${e}/preview`}]),re=p.useRef(f);re.current=f;const B=p.useCallback(me=>{F(Te=>{var Ne;const je=typeof me=="function"?me(Te):me,ze=(Ne=je[je.length-1])==null?void 0:Ne.id;return queueMicrotask(()=>{var Je;return(Je=re.current)==null?void 0:Je.call(re,ze==="master"?null:ze)}),je})},[]),[he,ce]=p.useState($3),H=p.useRef(!1),J=p.useRef(null),U=te[te.length-1],Q=te.length>1?U.previewUrl:void 0,z=p.useRef(0),ie=$,de=p.useCallback(me=>{var ze;if(!me.compositionSrc)return;z.current=Ee.getState().currentTime,Z();const Te=me.id;let je=Y.get(Te);if(!je)try{const Ne=(ze=ie.current)==null?void 0:ze.contentDocument;if(Ne){const Je=Ne.querySelector(`[data-composition-id="${Te}"][data-composition-src]`);Je&&(je=Je.getAttribute("data-composition-src")||void 0)}}catch{}if(!je){const Ne=me.compositionSrc,Je=Ne.match(/compositions\/.*\.html/);je=Je?Je[0]:Ne}Ee.getState().setElements([]),B(Ne=>{var Ct;if(Ne[Ne.length-1].id===je&&Ne.length>1)return Ne.slice(0,-1);const At=((Ct=je.split("/").pop())==null?void 0:Ct.replace(/\.html$/,""))||je,De=`/api/projects/${e}/preview/comp/${je}`;return[...Ne,{id:je,label:At,previewUrl:De}]})},[e,Y]),ee=p.useCallback(me=>{me===0&&z.current>0&&Ee.getState().setCurrentTime(z.current),Z(),Ee.getState().setElements([]),B(Te=>Te.slice(0,me+1))},[]);p.useEffect(()=>{if(c==="index.html")Ee.getState().setElements([]),B(me=>me.length>1?[me[0]]:me);else if(c&&c.startsWith("compositions/")){const me=c.replace(/^compositions\//,"").replace(/\.html$/,""),Te=`/api/projects/${e}/preview/comp/${c}`;Ee.getState().setElements([]),B(je=>{var ze;return((ze=je[je.length-1])==null?void 0:ze.id)===c?je:[{id:"master",label:"Master",previewUrl:`/api/projects/${e}/preview`},{id:c,label:me,previewUrl:Te}]})}else c||Ee.getState().setElements([])},[c,e,B]);const Qe=p.useCallback(me=>{me.preventDefault(),H.current=!0,me.target.setPointerCapture(me.pointerId)},[]),Le=p.useCallback(me=>{if(!H.current||!J.current)return;const Te=J.current.getBoundingClientRect(),je=me.clientY-Te.top,ze=Te.height,Ne=Math.max(Q3,Math.min(ze-P3,ze-je));ce(Ne)},[]),Ce=p.useCallback(()=>{H.current=!1},[]),Xe=p.useCallback(me=>{me.key==="Escape"&&te.length>1&&B(Te=>Te.slice(0,-1))},[te.length]);return v.jsxs("div",{ref:J,className:"flex flex-col h-full min-h-0 bg-neutral-950",onKeyDown:Xe,tabIndex:-1,children:[v.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",children:[v.jsxs("div",{className:"flex-1 min-h-0 relative",children:[v.jsx(wv,{projectId:e,iframeRef:$,onIframeLoad:N,portrait:t,directUrl:Q,refreshKey:o}),n]}),v.jsxs("div",{className:"bg-neutral-950 border-t border-neutral-800/50 flex-shrink-0",children:[te.length>1&&v.jsx(b3,{stack:te,onNavigate:ee}),v.jsx(Nx,{onTogglePlay:C,onSeek:_,timelineVisible:w??!0,onToggleTimeline:b})]})]}),(w??!0)&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"group h-2 flex-shrink-0 cursor-row-resize flex items-center justify-center z-10",style:{touchAction:"none"},onPointerDown:Qe,onPointerMove:Le,onPointerUp:Ce,children:v.jsx("div",{className:"h-px w-full bg-white/10 transition-colors group-hover:bg-white/16 group-active:bg-white/22"})}),v.jsxs("div",{className:"flex flex-col flex-shrink-0",style:{height:he},children:[v.jsxs("div",{className:"flex-1 min-h-0 overflow-hidden bg-neutral-950",onDoubleClick:me=>{me.target.closest("[data-clip]")||te.length>1&&B(Te=>Te.slice(0,-1))},children:[i,v.jsx(uv,{onSeek:_,onDrillDown:de,renderClipContent:m,onMoveElement:O,onResizeElement:y})]}),l&&v.jsx("div",{className:"flex-shrink-0",children:l})]})]})]})});let i1=[],Jg=[];(()=>{let r="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<r.length;e++)(e%2?Jg:i1).push(t=t+r[e])})();function C3(r){if(r<768)return!1;for(let e=0,t=i1.length;;){let n=e+t>>1;if(r<i1[n])t=n;else if(r>=Jg[n])e=n+1;else return!0;if(e==t)return!1}}function Jm(r){return r>=127462&&r<=127487}const eO=8205;function T3(r,e,t=!0,n=!0){return(t?e8:Z3)(r,e,n)}function e8(r,e,t){if(e==r.length)return e;e&&t8(r.charCodeAt(e))&&n8(r.charCodeAt(e-1))&&e--;let n=yh(r,e);for(e+=tO(n);e<r.length;){let i=yh(r,e);if(n==eO||i==eO||t&&C3(i))e+=tO(i),n=i;else if(Jm(i)){let l=0,o=e-2;for(;o>=0&&Jm(yh(r,o));)l++,o-=2;if(l%2==0)break;e+=2}else break}return e}function Z3(r,e,t){for(;e>0;){let n=e8(r,e-2,t);if(n<e)return n;e--}return 0}function yh(r,e){let t=r.charCodeAt(e);if(!n8(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return t8(n)?(t-55296<<10)+(n-56320)+65536:t}function t8(r){return r>=56320&&r<57344}function n8(r){return r>=55296&&r<56320}function tO(r){return r<65536?1:2}class Fe{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=el(this,e,t);let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),Rr.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=el(this,e,t);let n=[];return this.decompose(e,t,n,0),Rr.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new fo(this),l=new fo(e);for(let o=t,c=t;;){if(i.next(o),l.next(o),o=0,i.lineBreak!=l.lineBreak||i.done!=l.done||i.value!=l.value)return!1;if(c+=i.value.length,i.done||c>=n)return!0}}iter(e=1){return new fo(this,e)}iterRange(e,t=this.length){return new r8(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new i8(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Fe.empty:e.length<=32?new Qt(e):Rr.from(Qt.split(e,[]))}}class Qt extends Fe{constructor(e,t=M3(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let l=0;;l++){let o=this.text[l],c=i+o.length;if((t?n:c)>=e)return new E3(i,c,n,o);i=c+1,n++}}decompose(e,t,n,i){let l=e<=0&&t>=this.length?this:new Qt(nO(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let o=n.pop(),c=kc(l.text,o.text.slice(),0,l.length);if(c.length<=32)n.push(new Qt(c,o.length+l.length));else{let u=c.length>>1;n.push(new Qt(c.slice(0,u)),new Qt(c.slice(u)))}}else n.push(l)}replace(e,t,n){if(!(n instanceof Qt))return super.replace(e,t,n);[e,t]=el(this,e,t);let i=kc(this.text,kc(n.text,nO(this.text,0,e)),t),l=this.length+n.length-(t-e);return i.length<=32?new Qt(i,l):Rr.from(Qt.split(i,[]),l)}sliceString(e,t=this.length,n=`
55
- `){[e,t]=el(this,e,t);let i="";for(let l=0,o=0;l<=t&&o<this.text.length;o++){let c=this.text[o],u=l+c.length;l>e&&o&&(i+=n),e<u&&t>l&&(i+=c.slice(Math.max(0,e-l),t-l)),l=u+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let l of e)n.push(l),i+=l.length+1,n.length==32&&(t.push(new Qt(n,i)),n=[],i=-1);return i>-1&&t.push(new Qt(n,i)),t}}class Rr extends Fe{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let l=0;;l++){let o=this.children[l],c=i+o.length,u=n+o.lines-1;if((t?u:c)>=e)return o.lineInner(e,t,n,i);i=c+1,n=u+1}}decompose(e,t,n,i){for(let l=0,o=0;o<=t&&l<this.children.length;l++){let c=this.children[l],u=o+c.length;if(e<=u&&t>=o){let f=i&((o<=e?1:0)|(u>=t?2:0));o>=e&&u<=t&&!f?n.push(c):c.decompose(e-o,t-o,n,f)}o=u+1}}replace(e,t,n){if([e,t]=el(this,e,t),n.lines<this.lines)for(let i=0,l=0;i<this.children.length;i++){let o=this.children[i],c=l+o.length;if(e>=l&&t<=c){let u=o.replace(e-l,t-l,n),f=this.lines-o.lines+u.lines;if(u.lines<f>>4&&u.lines>f>>6){let m=this.children.slice();return m[i]=u,new Rr(m,this.length-(t-e)+n.length)}return super.replace(l,c,u)}l=c+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
56
- `){[e,t]=el(this,e,t);let i="";for(let l=0,o=0;l<this.children.length&&o<=t;l++){let c=this.children[l],u=o+c.length;o>e&&l&&(i+=n),e<u&&t>o&&(i+=c.sliceString(e-o,t-o,n)),o=u+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Rr))return 0;let n=0,[i,l,o,c]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,l+=t){if(i==o||l==c)return n;let u=this.children[i],f=e.children[l];if(u!=f)return n+u.scanIdentical(f,t);n+=u.length+1}}static from(e,t=e.reduce((n,i)=>n+i.length+1,-1)){let n=0;for(let S of e)n+=S.lines;if(n<32){let S=[];for(let w of e)w.flatten(S);return new Qt(S,t)}let i=Math.max(32,n>>5),l=i<<1,o=i>>1,c=[],u=0,f=-1,m=[];function O(S){let w;if(S.lines>l&&S instanceof Rr)for(let b of S.children)O(b);else S.lines>o&&(u>o||!u)?(y(),c.push(S)):S instanceof Qt&&u&&(w=m[m.length-1])instanceof Qt&&S.lines+w.lines<=32?(u+=S.lines,f+=S.length+1,m[m.length-1]=new Qt(w.text.concat(S.text),w.length+1+S.length)):(u+S.lines>i&&y(),u+=S.lines,f+=S.length+1,m.push(S))}function y(){u!=0&&(c.push(m.length==1?m[0]:Rr.from(m,f)),f=-1,u=m.length=0)}for(let S of e)O(S);return y(),c.length==1?c[0]:new Rr(c,t)}}Fe.empty=new Qt([""],0);function M3(r){let e=-1;for(let t of r)e+=t.length+1;return e}function kc(r,e,t=0,n=1e9){for(let i=0,l=0,o=!0;l<r.length&&i<=n;l++){let c=r[l],u=i+c.length;u>=t&&(u>n&&(c=c.slice(0,n-i)),i<t&&(c=c.slice(t-i)),o?(e[e.length-1]+=c,o=!1):e.push(c)),i=u+1}return e}function nO(r,e,t){return kc(r,[""],e,t)}class fo{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Qt?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],l=this.offsets[n],o=l>>1,c=i instanceof Qt?i.text.length:i.children.length;if(o==(t>0?c:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((l&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
57
- `,this;e--}else if(i instanceof Qt){let u=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,u.length>Math.max(0,e))return this.value=e==0?u:t>0?u.slice(e):u.slice(0,u.length-e),this;e-=u.length}else{let u=i.children[o+(t<0?-1:0)];e>u.length?(e-=u.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(u),this.offsets.push(t>0?1:(u instanceof Qt?u.text.length:u.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class r8{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new fo(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class i8{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Fe.prototype[Symbol.iterator]=function(){return this.iter()},fo.prototype[Symbol.iterator]=r8.prototype[Symbol.iterator]=i8.prototype[Symbol.iterator]=function(){return this});class E3{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}function el(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}function Ft(r,e,t=!0,n=!0){return T3(r,e,t,n)}function j3(r){return r>=56320&&r<57344}function V3(r){return r>=55296&&r<56320}function ds(r,e){let t=r.charCodeAt(e);if(!V3(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return j3(n)?(t-55296<<10)+(n-56320)+65536:t}function s8(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function jo(r){return r<65536?1:2}const s1=/\r\n?|\n/;var an=(function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r})(an||(an={}));class Ir{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,i=0;t<this.sections.length;){let l=this.sections[t++],o=this.sections[t++];o<0?(e(n,i,l),i+=l):i+=o,n+=l}}iterChangedRanges(e,t=!1){l1(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];i<0?e.push(n,i):e.push(i,n)}return new Ir(e)}composeDesc(e){return this.empty?e:e.empty?this:l8(this,e)}mapDesc(e,t=!1){return e.empty?this:o1(this,e,t)}mapPos(e,t=-1,n=an.Simple){let i=0,l=0;for(let o=0;o<this.sections.length;){let c=this.sections[o++],u=this.sections[o++],f=i+c;if(u<0){if(f>e)return l+(e-i);l+=c}else{if(n!=an.Simple&&f>=e&&(n==an.TrackDel&&i<e&&f>e||n==an.TrackBefore&&i<e||n==an.TrackAfter&&f>e))return null;if(f>e||f==e&&t<0&&!c)return e==i||t<0?l:l+u;l+=u}i=f}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return l}touchesRange(e,t=e){for(let n=0,i=0;n<this.sections.length&&i<=t;){let l=this.sections[n++],o=this.sections[n++],c=i+l;if(o>=0&&i<=t&&c>=e)return i<e&&c>t?"cover":!0;i=c}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+n+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Ir(e)}static create(e){return new Ir(e)}}class Nt extends Ir{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return l1(this,(t,n,i,l,o)=>e=e.replace(i,i+(n-t),o),!1),e}mapDesc(e,t=!1){return o1(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,l=0;i<t.length;i+=2){let o=t[i],c=t[i+1];if(c>=0){t[i]=c,t[i+1]=o;let u=i>>1;for(;n.length<u;)n.push(Fe.empty);n.push(o?e.slice(l,l+o):Fe.empty)}l+=o}return new Nt(t,n)}compose(e){return this.empty?e:e.empty?this:l8(this,e,!0)}map(e,t=!1){return e.empty?this:o1(this,e,t,!0)}iterChanges(e,t=!1){l1(this,e,t)}get desc(){return Ir.create(this.sections)}filter(e){let t=[],n=[],i=[],l=new So(this);e:for(let o=0,c=0;;){let u=o==e.length?1e9:e[o++];for(;c<u||c==u&&l.len==0;){if(l.done)break e;let m=Math.min(l.len,u-c);on(i,m,-1);let O=l.ins==-1?-1:l.off==0?l.ins:0;on(t,m,O),O>0&&ji(n,t,l.text),l.forward(m),c+=m}let f=e[o++];for(;c<f;){if(l.done)break e;let m=Math.min(l.len,f-c);on(t,m,-1),on(i,m,l.ins==-1?-1:l.off==0?l.ins:0),l.forward(m),c+=m}}return{changes:new Nt(t,n),filtered:Ir.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],i=this.sections[t+1];i<0?e.push(n):i==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],l=[],o=0,c=null;function u(m=!1){if(!m&&!i.length)return;o<t&&on(i,t-o,-1);let O=new Nt(i,l);c=c?c.compose(O.map(c)):O,i=[],l=[],o=0}function f(m){if(Array.isArray(m))for(let O of m)f(O);else if(m instanceof Nt){if(m.length!=t)throw new RangeError(`Mismatched change set length (got ${m.length}, expected ${t})`);u(),c=c?c.compose(m.map(c)):m}else{let{from:O,to:y=O,insert:S}=m;if(O>y||O<0||y>t)throw new RangeError(`Invalid change range ${O} to ${y} (in doc of length ${t})`);let w=S?typeof S=="string"?Fe.of(S.split(n||s1)):S:Fe.empty,b=w.length;if(O==y&&b==0)return;O<o&&u(),O>o&&on(i,O-o,-1),on(i,y-O,b),ji(l,i,w),o=y}}return f(e),u(!c),c}static empty(e){return new Nt(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let l=e[i];if(typeof l=="number")t.push(l,-1);else{if(!Array.isArray(l)||typeof l[0]!="number"||l.some((o,c)=>c&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(l.length==1)t.push(l[0],0);else{for(;n.length<i;)n.push(Fe.empty);n[i]=Fe.of(l.slice(1)),t.push(l[0],n[i].length)}}}return new Nt(t,n)}static createSet(e,t){return new Nt(e,t)}}function on(r,e,t,n=!1){if(e==0&&t<=0)return;let i=r.length-2;i>=0&&t<=0&&t==r[i+1]?r[i]+=e:i>=0&&e==0&&r[i]==0?r[i+1]+=t:n?(r[i]+=e,r[i+1]+=t):r.push(e,t)}function ji(r,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<n;)r.push(Fe.empty);r.push(t)}}function l1(r,e,t){let n=r.inserted;for(let i=0,l=0,o=0;o<r.sections.length;){let c=r.sections[o++],u=r.sections[o++];if(u<0)i+=c,l+=c;else{let f=i,m=l,O=Fe.empty;for(;f+=c,m+=u,u&&n&&(O=O.append(n[o-2>>1])),!(t||o==r.sections.length||r.sections[o+1]<0);)c=r.sections[o++],u=r.sections[o++];e(i,f,l,m,O),i=f,l=m}}}function o1(r,e,t,n=!1){let i=[],l=n?[]:null,o=new So(r),c=new So(e);for(let u=-1;;){if(o.done&&c.len||c.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&c.ins==-1){let f=Math.min(o.len,c.len);on(i,f,-1),o.forward(f),c.forward(f)}else if(c.ins>=0&&(o.ins<0||u==o.i||o.off==0&&(c.len<o.len||c.len==o.len&&!t))){let f=c.len;for(on(i,c.ins,-1);f;){let m=Math.min(o.len,f);o.ins>=0&&u<o.i&&o.len<=m&&(on(i,0,o.ins),l&&ji(l,i,o.text),u=o.i),o.forward(m),f-=m}c.next()}else if(o.ins>=0){let f=0,m=o.len;for(;m;)if(c.ins==-1){let O=Math.min(m,c.len);f+=O,m-=O,c.forward(O)}else if(c.ins==0&&c.len<m)m-=c.len,c.next();else break;on(i,f,u<o.i?o.ins:0),l&&u<o.i&&ji(l,i,o.text),u=o.i,o.forward(o.len-m)}else{if(o.done&&c.done)return l?Nt.createSet(i,l):Ir.create(i);throw new Error("Mismatched change set lengths")}}}function l8(r,e,t=!1){let n=[],i=t?[]:null,l=new So(r),o=new So(e);for(let c=!1;;){if(l.done&&o.done)return i?Nt.createSet(n,i):Ir.create(n);if(l.ins==0)on(n,l.len,0,c),l.next();else if(o.len==0&&!o.done)on(n,0,o.ins,c),i&&ji(i,n,o.text),o.next();else{if(l.done||o.done)throw new Error("Mismatched change set lengths");{let u=Math.min(l.len2,o.len),f=n.length;if(l.ins==-1){let m=o.ins==-1?-1:o.off?0:o.ins;on(n,u,m,c),i&&m&&ji(i,n,o.text)}else o.ins==-1?(on(n,l.off?0:l.len,u,c),i&&ji(i,n,l.textBit(u))):(on(n,l.off?0:l.len,o.off?0:o.ins,c),i&&!o.off&&ji(i,n,o.text));c=(l.ins>u||o.ins>=0&&o.len>u)&&(c||n.length>f),l.forward2(u),o.forward(u)}}}}class So{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?Fe.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Fe.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ls{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new ls(n,i,this.flags)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return G.range(e,t,void 0,void 0,n);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return G.range(this.anchor,i,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return G.range(e.anchor,e.head)}static create(e,t,n){return new ls(e,t,n)}}class G{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:G.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new G([this.main],0)}addRange(e,t=!0){return G.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,G.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new G(e.ranges.map(t=>ls.fromJSON(t)),e.main)}static single(e,t=e){return new G([G.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;i<e.length;i++){let l=e[i];if(l.empty?l.from<=n:l.from<n)return G.normalized(e.slice(),t);n=l.to}return new G(e,t)}static cursor(e,t=0,n,i){return ls.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(i??16777215)<<6)}static range(e,t,n,i,l){let o=(n??16777215)<<6|(i==null?7:Math.min(6,i));return!l&&e!=t&&(l=t<e?1:-1),t<e?ls.create(t,e,48|o):ls.create(e,t,(l?l<0?8:16:0)|o)}static normalized(e,t=0){let n=e[t];e.sort((i,l)=>i.from-l.from),t=e.indexOf(n);for(let i=1;i<e.length;i++){let l=e[i],o=e[i-1];if(l.empty?l.from<=o.to:l.from<o.to){let c=o.from,u=Math.max(l.to,o.to);i<=t&&t--,e.splice(--i,2,l.anchor>l.head?G.range(u,c):G.range(c,u))}}return new G(e,t)}}function o8(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let sf=0;class be{constructor(e,t,n,i,l){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=sf++,this.default=e([]),this.extensions=typeof l=="function"?l(this):l}get reader(){return this}static define(e={}){return new be(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:lf),!!e.static,e.enables)}of(e){return new bc([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new bc(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new bc(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function lf(r,e){return r==e||r.length==e.length&&r.every((t,n)=>t===e[n])}class bc{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=sf++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,l=this.id,o=e[l]>>1,c=this.type==2,u=!1,f=!1,m=[];for(let O of this.dependencies)O=="doc"?u=!0:O=="selection"?f=!0:(((t=e[O.id])!==null&&t!==void 0?t:1)&1)==0&&m.push(e[O.id]);return{create(O){return O.values[o]=n(O),1},update(O,y){if(u&&y.docChanged||f&&(y.docChanged||y.selection)||a1(O,m)){let S=n(O);if(c?!rO(S,O.values[o],i):!i(S,O.values[o]))return O.values[o]=S,1}return 0},reconfigure:(O,y)=>{let S,w=y.config.address[l];if(w!=null){let b=Xc(y,w);if(this.dependencies.every($=>$ instanceof be?y.facet($)===O.facet($):$ instanceof Hn?y.field($,!1)==O.field($,!1):!0)||(c?rO(S=n(O),b,i):i(S=n(O),b)))return O.values[o]=b,0}else S=n(O);return O.values[o]=S,1}}}}function rO(r,e,t){if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],e[n]))return!1;return!0}function a1(r,e){let t=!1;for(let n of e)po(r,n)&1&&(t=!0);return t}function R3(r,e,t){let n=t.map(u=>r[u.id]),i=t.map(u=>u.type),l=n.filter(u=>!(u&1)),o=r[e.id]>>1;function c(u){let f=[];for(let m=0;m<n.length;m++){let O=Xc(u,n[m]);if(i[m]==2)for(let y of O)f.push(y);else f.push(O)}return e.combine(f)}return{create(u){for(let f of n)po(u,f);return u.values[o]=c(u),1},update(u,f){if(!a1(u,l))return 0;let m=c(u);return e.compare(m,u.values[o])?0:(u.values[o]=m,1)},reconfigure(u,f){let m=a1(u,n),O=f.config.facets[e.id],y=f.facet(e);if(O&&!m&&lf(t,O))return u.values[o]=y,0;let S=c(u);return e.compare(S,y)?(u.values[o]=y,0):(u.values[o]=S,1)}}}const Ja=be.define({static:!0});class Hn{constructor(e,t,n,i,l){this.id=e,this.createF=t,this.updateF=n,this.compareF=i,this.spec=l,this.provides=void 0}static define(e){let t=new Hn(sf++,e.create,e.update,e.compare||((n,i)=>n===i),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Ja).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,i)=>{let l=n.values[t],o=this.updateF(l,i);return this.compareF(l,o)?0:(n.values[t]=o,1)},reconfigure:(n,i)=>{let l=n.facet(Ja),o=i.facet(Ja),c;return(c=l.find(u=>u.field==this))&&c!=o.find(u=>u.field==this)?(n.values[t]=c.create(n),1):i.config.address[this.id]!=null?(n.values[t]=i.field(this),0):(n.values[t]=this.create(n),1)}}}init(e){return[this,Ja.of({field:this,create:e})]}get extension(){return this}}const ss={lowest:4,low:3,default:2,high:1,highest:0};function eo(r){return e=>new a8(e,r)}const Vo={highest:eo(ss.highest),high:eo(ss.high),default:eo(ss.default),low:eo(ss.low),lowest:eo(ss.lowest)};class a8{constructor(e,t){this.inner=e,this.prec=t}}class du{of(e){return new c1(this,e)}reconfigure(e){return du.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class c1{constructor(e,t){this.compartment=e,this.inner=t}}class Lc{constructor(e,t,n,i,l,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=l,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let i=[],l=Object.create(null),o=new Map;for(let y of L3(e,t,o))y instanceof Hn?i.push(y):(l[y.facet.id]||(l[y.facet.id]=[])).push(y);let c=Object.create(null),u=[],f=[];for(let y of i)c[y.id]=f.length<<1,f.push(S=>y.slot(S));let m=n==null?void 0:n.config.facets;for(let y in l){let S=l[y],w=S[0].facet,b=m&&m[y]||[];if(S.every($=>$.type==0))if(c[w.id]=u.length<<1|1,lf(b,S))u.push(n.facet(w));else{let $=w.combine(S.map(C=>C.value));u.push(n&&w.compare($,n.facet(w))?n.facet(w):$)}else{for(let $ of S)$.type==0?(c[$.id]=u.length<<1|1,u.push($.value)):(c[$.id]=f.length<<1,f.push(C=>$.dynamicSlot(C)));c[w.id]=f.length<<1,f.push($=>R3($,w,S))}}let O=f.map(y=>y(c));return new Lc(e,o,O,c,u,l)}}function L3(r,e,t){let n=[[],[],[],[],[]],i=new Map;function l(o,c){let u=i.get(o);if(u!=null){if(u<=c)return;let f=n[u].indexOf(o);f>-1&&n[u].splice(f,1),o instanceof c1&&t.delete(o.compartment)}if(i.set(o,c),Array.isArray(o))for(let f of o)l(f,c);else if(o instanceof c1){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let f=e.get(o.compartment)||o.inner;t.set(o.compartment,f),l(f,c)}else if(o instanceof a8)l(o.inner,o.prec);else if(o instanceof Hn)n[c].push(o),o.provides&&l(o.provides,c);else if(o instanceof bc)n[c].push(o),o.facet.extensions&&l(o.facet.extensions,ss.default);else{let f=o.extension;if(!f)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);l(f,c)}}return l(r,ss.default),n.reduce((o,c)=>o.concat(c))}function po(r,e){if(e&1)return 2;let t=e>>1,n=r.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;r.status[t]=4;let i=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|i}function Xc(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const c8=be.define(),u1=be.define({combine:r=>r.some(e=>e),static:!0}),u8=be.define({combine:r=>r.length?r[0]:void 0,static:!0}),h8=be.define(),f8=be.define(),d8=be.define(),p8=be.define({combine:r=>r.length?r[0]:!1});class ci{constructor(e,t){this.type=e,this.value=t}static define(){return new X3}}class X3{of(e){return new ci(this,e)}}class N3{constructor(e){this.map=e}of(e){return new Ue(this,e)}}class Ue{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new Ue(this.type,t)}is(e){return this.type==e}static define(e={}){return new N3(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let l=i.map(t);l&&n.push(l)}return n}}Ue.reconfigure=Ue.define();Ue.appendConfig=Ue.define();class Et{constructor(e,t,n,i,l,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=l,this.scrollIntoView=o,this._doc=null,this._state=null,n&&o8(n,t.newLength),l.some(c=>c.type==Et.time)||(this.annotations=l.concat(Et.time.of(Date.now())))}static create(e,t,n,i,l,o){return new Et(e,t,n,i,l,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Et.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Et.time=ci.define();Et.userEvent=ci.define();Et.addToHistory=ci.define();Et.remote=ci.define();function _3(r,e){let t=[];for(let n=0,i=0;;){let l,o;if(n<r.length&&(i==e.length||e[i]>=r[n]))l=r[n++],o=r[n++];else if(i<e.length)l=e[i++],o=e[i++];else return t;!t.length||t[t.length-1]<l?t.push(l,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function m8(r,e,t){var n;let i,l,o;return t?(i=e.changes,l=Nt.empty(e.changes.length),o=r.changes.compose(e.changes)):(i=e.changes.map(r.changes),l=r.changes.mapDesc(e.changes,!0),o=r.changes.compose(i)),{changes:o,selection:e.selection?e.selection.map(l):(n=r.selection)===null||n===void 0?void 0:n.map(i),effects:Ue.mapEffects(r.effects,i).concat(Ue.mapEffects(e.effects,l)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function h1(r,e,t){let n=e.selection,i=Fs(e.annotations);return e.userEvent&&(i=i.concat(Et.userEvent.of(e.userEvent))),{changes:e.changes instanceof Nt?e.changes:Nt.of(e.changes||[],t,r.facet(u8)),selection:n&&(n instanceof G?n:G.single(n.anchor,n.head)),effects:Fs(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function O8(r,e,t){let n=h1(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let l=1;l<e.length;l++){e[l].filter===!1&&(t=!1);let o=!!e[l].sequential;n=m8(n,h1(r,e[l],o?n.changes.newLength:r.doc.length),o)}let i=Et.create(r,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return D3(t?z3(i):i)}function z3(r){let e=r.startState,t=!0;for(let i of e.facet(h8)){let l=i(r);if(l===!1){t=!1;break}Array.isArray(l)&&(t=t===!0?l:_3(t,l))}if(t!==!0){let i,l;if(t===!1)l=r.changes.invertedDesc,i=Nt.empty(e.doc.length);else{let o=r.changes.filter(t);i=o.changes,l=o.filtered.mapDesc(o.changes).invertedDesc}r=Et.create(e,i,r.selection&&r.selection.map(l),Ue.mapEffects(r.effects,l),r.annotations,r.scrollIntoView)}let n=e.facet(f8);for(let i=n.length-1;i>=0;i--){let l=n[i](r);l instanceof Et?r=l:Array.isArray(l)&&l.length==1&&l[0]instanceof Et?r=l[0]:r=O8(e,Fs(l),!1)}return r}function D3(r){let e=r.startState,t=e.facet(d8),n=r;for(let i=t.length-1;i>=0;i--){let l=t[i](r);l&&Object.keys(l).length&&(n=m8(n,h1(e,l,r.changes.newLength),!0))}return n==r?r:Et.create(e,r.changes,r.selection,n.effects,n.annotations,n.scrollIntoView)}const I3=[];function Fs(r){return r==null?I3:Array.isArray(r)?r:[r]}var pt=(function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r})(pt||(pt={}));const W3=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let f1;try{f1=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function H3(r){if(f1)return f1.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||W3.test(t)))return!0}return!1}function Y3(r){return e=>{if(!/\S/.test(e))return pt.Space;if(H3(e))return pt.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return pt.Word;return pt.Other}}class qe{constructor(e,t,n,i,l,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=l,o&&(o._state=this);for(let c=0;c<this.config.dynamicSlots.length;c++)po(this,c<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return po(this,n),Xc(this,n)}update(...e){return O8(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:i}=t;for(let c of e.effects)c.is(du.reconfigure)?(t&&(i=new Map,t.compartments.forEach((u,f)=>i.set(f,u)),t=null),i.set(c.value.compartment,c.value.extension)):c.is(Ue.reconfigure)?(t=null,n=c.value):c.is(Ue.appendConfig)&&(t=null,n=Fs(n).concat(c.value));let l;t?l=e.startState.values.slice():(t=Lc.resolve(n,i,this),l=new qe(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(u,f)=>f.reconfigure(u,this),null).values);let o=e.startState.facet(u1)?e.newSelection:e.newSelection.asSingle();new qe(t,e.newDoc,o,l,(c,u)=>u.update(c,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:G.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),l=[n.range],o=Fs(n.effects);for(let c=1;c<t.ranges.length;c++){let u=e(t.ranges[c]),f=this.changes(u.changes),m=f.map(i);for(let y=0;y<c;y++)l[y]=l[y].map(m);let O=i.mapDesc(f,!0);l.push(u.range.map(O)),i=i.compose(m),o=Ue.mapEffects(o,m).concat(Ue.mapEffects(Fs(u.effects),O))}return{changes:i,selection:G.create(l,t.mainIndex),effects:o}}changes(e=[]){return e instanceof Nt?e:Nt.of(e,this.doc.length,this.facet(qe.lineSeparator))}toText(e){return Fe.of(e.split(this.facet(qe.lineSeparator)||s1))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(po(this,t),Xc(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let i=e[n];i instanceof Hn&&this.config.address[i.id]!=null&&(t[n]=i.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(n){for(let l in n)if(Object.prototype.hasOwnProperty.call(e,l)){let o=n[l],c=e[l];i.push(o.init(u=>o.spec.fromJSON(c,u)))}}return qe.create({doc:e.doc,selection:G.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Lc.resolve(e.extensions||[],new Map),n=e.doc instanceof Fe?e.doc:Fe.of((e.doc||"").split(t.staticFacet(qe.lineSeparator)||s1)),i=e.selection?e.selection instanceof G?e.selection:G.single(e.selection.anchor,e.selection.head):G.single(0);return o8(i,n.length),t.staticFacet(u1)||(i=i.asSingle()),new qe(t,n,i,t.dynamicSlots.map(()=>null),(l,o)=>o.create(l),null)}get tabSize(){return this.facet(qe.tabSize)}get lineBreak(){return this.facet(qe.lineSeparator)||`
58
- `}get readOnly(){return this.facet(p8)}phrase(e,...t){for(let n of this.facet(qe.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,i)=>{if(i=="$")return"$";let l=+(i||1);return!l||l>t.length?n:t[l-1]})),e}languageDataAt(e,t,n=-1){let i=[];for(let l of this.facet(c8))for(let o of l(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return Y3(t.length?t[0]:"")}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),l=this.charCategorizer(e),o=e-n,c=e-n;for(;o>0;){let u=Ft(t,o,!1);if(l(t.slice(u,o))!=pt.Word)break;o=u}for(;c<i;){let u=Ft(t,c);if(l(t.slice(c,u))!=pt.Word)break;c=u}return o==c?null:G.range(o+n,c+n)}}qe.allowMultipleSelections=u1;qe.tabSize=be.define({combine:r=>r.length?r[0]:4});qe.lineSeparator=u8;qe.readOnly=p8;qe.phrases=be.define({compare(r,e){let t=Object.keys(r),n=Object.keys(e);return t.length==n.length&&t.every(i=>r[i]==e[i])}});qe.languageData=c8;qe.changeFilter=h8;qe.transactionFilter=f8;qe.transactionExtender=d8;du.reconfigure=Ue.define();function fl(r,e,t={}){let n={};for(let i of r)for(let l of Object.keys(i)){let o=i[l],c=n[l];if(c===void 0)n[l]=o;else if(!(c===o||o===void 0))if(Object.hasOwnProperty.call(t,l))n[l]=t[l](c,o);else throw new Error("Config merge conflict for field "+l)}for(let i in e)n[i]===void 0&&(n[i]=e[i]);return n}class Li{eq(e){return this==e}range(e,t=e){return d1.create(e,t,this)}}Li.prototype.startSide=Li.prototype.endSide=0;Li.prototype.point=!1;Li.prototype.mapMode=an.TrackDel;function of(r,e){return r==e||r.constructor==e.constructor&&r.eq(e)}let d1=class g8{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new g8(e,t,n)}};function p1(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}class af{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let l=n?this.to:this.from;for(let o=i,c=l.length;;){if(o==c)return o;let u=o+c>>1,f=l[u]-e||(n?this.value[u].endSide:this.value[u].startSide)-t;if(u==o)return f>=0?o:c;f>=0?c=u:o=u+1}}between(e,t,n,i){for(let l=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,l);l<o;l++)if(i(this.from[l]+e,this.to[l]+e,this.value[l])===!1)return!1}map(e,t){let n=[],i=[],l=[],o=-1,c=-1;for(let u=0;u<this.value.length;u++){let f=this.value[u],m=this.from[u]+e,O=this.to[u]+e,y,S;if(m==O){let w=t.mapPos(m,f.startSide,f.mapMode);if(w==null||(y=S=w,f.startSide!=f.endSide&&(S=t.mapPos(m,f.endSide),S<y)))continue}else if(y=t.mapPos(m,f.startSide),S=t.mapPos(O,f.endSide),y>S||y==S&&f.startSide>0&&f.endSide<=0)continue;(S-y||f.endSide-f.startSide)<0||(o<0&&(o=y),f.point&&(c=Math.max(c,S-y)),n.push(f),i.push(y-o),l.push(S-o))}return{mapped:n.length?new af(i,l,n,c):null,pos:o}}}class He{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new He(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:l=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(n&&(t=t.slice().sort(p1)),this.isEmpty)return t.length?He.of(t):this;let c=new y8(this,null,-1).goto(0),u=0,f=[],m=new cs;for(;c.value||u<t.length;)if(u<t.length&&(c.from-t[u].from||c.startSide-t[u].value.startSide)>=0){let O=t[u++];m.addInner(O.from,O.to,O.value)||f.push(O)}else c.rangeIndex==1&&c.chunkIndex<this.chunk.length&&(u==t.length||this.chunkEnd(c.chunkIndex)<t[u].from)&&(!o||i>this.chunkEnd(c.chunkIndex)||l<this.chunkPos[c.chunkIndex])&&m.addChunk(this.chunkPos[c.chunkIndex],this.chunk[c.chunkIndex])?c.nextChunk():((!o||i>c.to||l<c.from||o(c.from,c.to,c.value))&&(m.addInner(c.from,c.to,c.value)||f.push(d1.create(c.from,c.to,c.value))),c.next());return m.finishInner(this.nextLayer.isEmpty&&!f.length?He.empty:this.nextLayer.update({add:f,filter:o,filterFrom:i,filterTo:l}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],i=-1;for(let o=0;o<this.chunk.length;o++){let c=this.chunkPos[o],u=this.chunk[o],f=e.touchesRange(c,c+u.length);if(f===!1)i=Math.max(i,u.maxPoint),t.push(u),n.push(e.mapPos(c));else if(f===!0){let{mapped:m,pos:O}=u.map(c,e);m&&(i=Math.max(i,m.maxPoint),t.push(m),n.push(O))}}let l=this.nextLayer.map(e);return t.length==0?l:new He(n,t,l||He.empty,i)}between(e,t,n){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let l=this.chunkPos[i],o=this.chunk[i];if(t>=l&&e<=l+o.length&&o.between(l,e-l,t-l,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return wo.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return wo.from(e).goto(t)}static compare(e,t,n,i,l=-1){let o=e.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=l),c=t.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=l),u=iO(o,c,n),f=new to(o,u,l),m=new to(c,u,l);n.iterGaps((O,y,S)=>sO(f,O,m,y,S,i)),n.empty&&n.length==0&&sO(f,0,m,0,0,i)}static eq(e,t,n=0,i){i==null&&(i=999999999);let l=e.filter(m=>!m.isEmpty&&t.indexOf(m)<0),o=t.filter(m=>!m.isEmpty&&e.indexOf(m)<0);if(l.length!=o.length)return!1;if(!l.length)return!0;let c=iO(l,o),u=new to(l,c,0).goto(n),f=new to(o,c,0).goto(n);for(;;){if(u.to!=f.to||!m1(u.active,f.active)||u.point&&(!f.point||!of(u.point,f.point)))return!1;if(u.to>i)return!0;u.next(),f.next()}}static spans(e,t,n,i,l=-1){let o=new to(e,null,l).goto(t),c=t,u=o.openStart;for(;;){let f=Math.min(o.to,n);if(o.point){let m=o.activeForPoint(o.to),O=o.pointFrom<t?m.length+1:o.point.startSide<0?m.length:Math.min(m.length,u);i.point(c,f,o.point,m,O,o.pointRank),u=Math.min(o.openEnd(f),m.length)}else f>c&&(i.span(c,f,o.active,u),u=o.openEnd(f));if(o.to>n)return u+(o.point&&o.to>n?1:0);c=o.to,o.next()}}static of(e,t=!1){let n=new cs;for(let i of e instanceof d1?[e]:t?F3(e):e)n.add(i.from,i.to,i.value);return n.finish()}static join(e){if(!e.length)return He.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let i=e[n];i!=He.empty;i=i.nextLayer)t=new He(i.chunkPos,i.chunk,t,Math.max(i.maxPoint,t.maxPoint));return t}}He.empty=new He([],[],null,-1);function F3(r){if(r.length>1)for(let e=r[0],t=1;t<r.length;t++){let n=r[t];if(p1(e,n)>0)return r.slice().sort(p1);e=n}return r}He.empty.nextLayer=He.empty;class cs{finishChunk(e){this.chunks.push(new af(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new cs)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(He.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=He.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function iO(r,e,t){let n=new Map;for(let l of r)for(let o=0;o<l.chunk.length;o++)l.chunk[o].maxPoint<=0&&n.set(l.chunk[o],l.chunkPos[o]);let i=new Set;for(let l of e)for(let o=0;o<l.chunk.length;o++){let c=n.get(l.chunk[o]);c!=null&&(t?t.mapPos(c):c)==l.chunkPos[o]&&!(t!=null&&t.touchesRange(c,c+l.chunk[o].length))&&i.add(l.chunk[o])}return i}class y8{constructor(e,t,n,i=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class wo{constructor(e){this.heap=e}static from(e,t=null,n=-1){let i=[];for(let l=0;l<e.length;l++)for(let o=e[l];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&i.push(new y8(o,t,n,l));return i.length==1?i[0]:new wo(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)xh(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)xh(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),xh(this.heap,0)}}}function xh(r,e){for(let t=r[e];;){let n=(e<<1)+1;if(n>=r.length)break;let i=r[n];if(n+1<r.length&&i.compare(r[n+1])>=0&&(i=r[n+1],n++),t.compare(i)<0)break;r[n]=t,r[e]=i,e=n}}class to{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=wo.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ec(this.active,e),ec(this.activeTo,e),ec(this.activeRank,e),this.minActive=lO(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:l}=this.cursor;for(;t<this.activeRank.length&&(l-this.activeRank[t]||i-this.activeTo[t])>0;)t++;tc(this.active,t,n),tc(this.activeTo,t,i),tc(this.activeRank,t,l),e&&tc(e,t,this.cursor.from),this.minActive=lO(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&ec(n,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let l=this.cursor.value;if(!l.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=l,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=l.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let i=n.length-1;i>=0&&n[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function sO(r,e,t,n,i,l){r.goto(e),t.goto(n);let o=n+i,c=n,u=n-e,f=!!l.boundChange;for(let m=!1;;){let O=r.to+u-t.to,y=O||r.endSide-t.endSide,S=y<0?r.to+u:t.to,w=Math.min(S,o);if(r.point||t.point?(r.point&&t.point&&of(r.point,t.point)&&m1(r.activeForPoint(r.to),t.activeForPoint(t.to))||l.comparePoint(c,w,r.point,t.point),m=!1):(m&&l.boundChange(c),w>c&&!m1(r.active,t.active)&&l.compareRange(c,w,r.active,t.active),f&&w<o&&(O||r.openEnd(S)!=t.openEnd(S))&&(m=!0)),S>o)break;c=S,y<=0&&r.next(),y>=0&&t.next()}}function m1(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!=e[t]&&!of(r[t],e[t]))return!1;return!0}function ec(r,e){for(let t=e,n=r.length-1;t<n;t++)r[t]=r[t+1];r.pop()}function tc(r,e,t){for(let n=r.length-1;n>=e;n--)r[n+1]=r[n];r[e]=t}function lO(r,e){let t=-1,n=1e9;for(let i=0;i<e.length;i++)(e[i]-n||r[i].endSide-r[t].endSide)<0&&(t=i,n=e[i]);return t}function pu(r,e,t=r.length){let n=0;for(let i=0;i<t&&i<r.length;)r.charCodeAt(i)==9?(n+=e-n%e,i++):(n++,i=Ft(r,i));return n}function B3(r,e,t,n){for(let i=0,l=0;;){if(l>=e)return i;if(i==r.length)break;l+=r.charCodeAt(i)==9?t-l%t:1,i=Ft(r,i)}return r.length}const O1="ͼ",oO=typeof Symbol>"u"?"__"+O1:Symbol.for(O1),g1=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),aO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Xi{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function l(o,c,u,f){let m=[],O=/^@(\w+)\b/.exec(o[0]),y=O&&O[1]=="keyframes";if(O&&c==null)return u.push(o[0]+";");for(let S in c){let w=c[S];if(/&/.test(S))l(S.split(/,\s*/).map(b=>o.map($=>b.replace(/&/,$))).reduce((b,$)=>b.concat($)),w,u);else if(w&&typeof w=="object"){if(!O)throw new RangeError("The value of a property ("+S+") should be a primitive value.");l(i(S),w,m,y)}else w!=null&&m.push(S.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+w+";")}(m.length||y)&&u.push((n&&!O&&!f?o.map(n):o).join(", ")+" {"+m.join(" ")+"}")}for(let o in e)l(i(o),e[o],this.rules)}getRules(){return this.rules.join(`
59
- `)}static newName(){let e=aO[oO]||1;return aO[oO]=e+1,O1+e.toString(36)}static mount(e,t,n){let i=e[g1],l=n&&n.nonce;i?l&&i.setNonce(l):i=new q3(e,l),i.mount(Array.isArray(t)?t:[t],e)}}let cO=new Map;class q3{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let l=cO.get(n);if(l)return e[g1]=l;this.sheet=new i.CSSStyleSheet,cO.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[g1]=this}mount(e,t){let n=this.sheet,i=0,l=0;for(let o=0;o<e.length;o++){let c=e[o],u=this.modules.indexOf(c);if(u<l&&u>-1&&(this.modules.splice(u,1),l--,u=-1),u==-1){if(this.modules.splice(l++,0,c),n)for(let f=0;f<c.rules.length;f++)n.insertRule(c.rules[f],i++)}else{for(;l<u;)i+=this.modules[l++].rules.length;i+=c.rules.length,l++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let u=0;u<this.modules.length;u++)o+=this.modules[u].getRules()+`
60
- `;this.styleTag.textContent=o;let c=t.head||t;this.styleTag.parentNode!=c&&c.insertBefore(this.styleTag,c.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Ni={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ko={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},U3=typeof navigator<"u"&&/Mac/.test(navigator.platform),G3=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var en=0;en<10;en++)Ni[48+en]=Ni[96+en]=String(en);for(var en=1;en<=24;en++)Ni[en+111]="F"+en;for(var en=65;en<=90;en++)Ni[en]=String.fromCharCode(en+32),ko[en]=String.fromCharCode(en);for(var vh in Ni)ko.hasOwnProperty(vh)||(ko[vh]=Ni[vh]);function K3(r){var e=U3&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||G3&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?ko:Ni)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Yt(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];typeof i=="string"?r.setAttribute(n,i):i!=null&&(r[n]=i)}e++}for(;e<arguments.length;e++)x8(r,arguments[e]);return r}function x8(r,e){if(typeof e=="string")r.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)r.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)x8(r,e[t]);else throw new RangeError("Unsupported child node: "+e)}let pn=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},y1=typeof document<"u"?document:{documentElement:{style:{}}};const x1=/Edge\/(\d+)/.exec(pn.userAgent),v8=/MSIE \d/.test(pn.userAgent),v1=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pn.userAgent),mu=!!(v8||v1||x1),uO=!mu&&/gecko\/(\d+)/i.test(pn.userAgent),Sh=!mu&&/Chrome\/(\d+)/.exec(pn.userAgent),J3="webkitFontSmoothing"in y1.documentElement.style,S1=!mu&&/Apple Computer/.test(pn.vendor),hO=S1&&(/Mobile\/\w+/.test(pn.userAgent)||pn.maxTouchPoints>2);var Se={mac:hO||/Mac/.test(pn.platform),windows:/Win/.test(pn.platform),linux:/Linux|X11/.test(pn.platform),ie:mu,ie_version:v8?y1.documentMode||6:v1?+v1[1]:x1?+x1[1]:0,gecko:uO,gecko_version:uO?+(/Firefox\/(\d+)/.exec(pn.userAgent)||[0,0])[1]:0,chrome:!!Sh,chrome_version:Sh?+Sh[1]:0,ios:hO,android:/Android\b/.test(pn.userAgent),webkit_version:J3?+(/\bAppleWebKit\/(\d+)/.exec(pn.userAgent)||[0,0])[1]:0,safari:S1,safari_version:S1?+(/\bVersion\/(\d+(\.\d+)?)/.exec(pn.userAgent)||[0,0])[1]:0,tabSize:y1.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function cf(r,e){for(let t in r)t=="class"&&e.class?e.class+=" "+r.class:t=="style"&&e.style?e.style+=";"+r.style:e[t]=r[t];return e}const Nc=Object.create(null);function uf(r,e,t){if(r==e)return!0;r||(r=Nc),e||(e=Nc);let n=Object.keys(r),i=Object.keys(e);if(n.length-0!=i.length-0)return!1;for(let l of n)if(l!=t&&(i.indexOf(l)==-1||r[l]!==e[l]))return!1;return!0}function eS(r,e){for(let t=r.attributes.length-1;t>=0;t--){let n=r.attributes[t].name;e[n]==null&&r.removeAttribute(n)}for(let t in e){let n=e[t];t=="style"?r.style.cssText=n:r.getAttribute(t)!=n&&r.setAttribute(t,n)}}function fO(r,e,t){let n=!1;if(e)for(let i in e)t&&i in t||(n=!0,i=="style"?r.style.cssText="":r.removeAttribute(i));if(t)for(let i in t)e&&e[i]==t[i]||(n=!0,i=="style"?r.style.cssText=t[i]:r.setAttribute(i,t[i]));return n}function tS(r){let e=Object.create(null);for(let t=0;t<r.attributes.length;t++){let n=r.attributes[t];e[n.name]=n.value}return e}class ps{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Tn=(function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r})(Tn||(Tn={}));class Re extends Li{constructor(e,t,n,i){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=i}get heightRelevant(){return!1}static mark(e){return new Ro(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new us(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,i;if(e.isBlockGap)n=-5e8,i=4e8;else{let{start:l,end:o}=S8(e,t);n=(l?t?-3e8:-1:5e8)-1,i=(o?t?2e8:1:-6e8)+1}return new us(e,n,i,t,e.widget||null,!0)}static line(e){return new Lo(e)}static set(e,t=!1){return He.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Re.none=He.empty;class Ro extends Re{constructor(e){let{start:t,end:n}=S8(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?cf(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Nc}eq(e){return this==e||e instanceof Ro&&this.tagName==e.tagName&&uf(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Ro.prototype.point=!1;class Lo extends Re{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Lo&&this.spec.class==e.spec.class&&uf(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Lo.prototype.mapMode=an.TrackBefore;Lo.prototype.point=!0;class us extends Re{constructor(e,t,n,i,l,o){super(t,n,l,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?an.TrackBefore:an.TrackAfter:an.TrackDel}get type(){return this.startSide!=this.endSide?Tn.WidgetRange:this.startSide<=0?Tn.WidgetBefore:Tn.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof us&&nS(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}us.prototype.point=!0;function S8(r,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=r;return t==null&&(t=r.inclusive),n==null&&(n=r.inclusive),{start:t??e,end:n??e}}function nS(r,e){return r==e||!!(r&&e&&r.compare(e))}function Bs(r,e,t,n=0){let i=t.length-1;i>=0&&t[i]+n>=r?t[i]=Math.max(t[i],e):t.push(r,e)}class bo extends Li{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof bo&&this.tagName==e.tagName&&uf(this.attributes,e.attributes)}static create(e){return new bo(e.tagName,e.attributes||Nc)}static set(e,t=!1){return He.of(e,t)}}bo.prototype.startSide=bo.prototype.endSide=-1;function Qo(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function w1(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function mo(r,e){if(!e.anchorNode)return!1;try{return w1(r,e.anchorNode)}catch{return!1}}function Qc(r){return r.nodeType==3?$o(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function Oo(r,e,t,n){return t?dO(r,e,t,n,-1)||dO(r,e,t,n,1):!1}function _i(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function _c(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function dO(r,e,t,n,i){for(;;){if(r==t&&e==n)return!0;if(e==(i<0?0:oi(r))){if(r.nodeName=="DIV")return!1;let l=r.parentNode;if(!l||l.nodeType!=1)return!1;e=_i(r)+(i<0?0:1),r=l}else if(r.nodeType==1){if(r=r.childNodes[e+(i<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=i<0?oi(r):0}else return!1}}function oi(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function zc(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function rS(r){let e=r.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function w8(r,e){let t=e.width/r.offsetWidth,n=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-r.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function iS(r,e,t,n,i,l,o,c){let u=r.ownerDocument,f=u.defaultView||window;for(let m=r,O=!1;m&&!O;)if(m.nodeType==1){let y,S=m==u.body,w=1,b=1;if(S)y=rS(f);else{if(/^(fixed|sticky)$/.test(getComputedStyle(m).position)&&(O=!0),m.scrollHeight<=m.clientHeight&&m.scrollWidth<=m.clientWidth){m=m.assignedSlot||m.parentNode;continue}let _=m.getBoundingClientRect();({scaleX:w,scaleY:b}=w8(m,_)),y={left:_.left,right:_.left+m.clientWidth*w,top:_.top,bottom:_.top+m.clientHeight*b}}let $=0,C=0;if(i=="nearest")e.top<y.top?(C=e.top-(y.top+o),t>0&&e.bottom>y.bottom+C&&(C=e.bottom-y.bottom+o)):e.bottom>y.bottom&&(C=e.bottom-y.bottom+o,t<0&&e.top-C<y.top&&(C=e.top-(y.top+o)));else{let _=e.bottom-e.top,A=y.bottom-y.top;C=(i=="center"&&_<=A?e.top+_/2-A/2:i=="start"||i=="center"&&t<0?e.top-o:e.bottom-A+o)-y.top}if(n=="nearest"?e.left<y.left?($=e.left-(y.left+l),t>0&&e.right>y.right+$&&($=e.right-y.right+l)):e.right>y.right&&($=e.right-y.right+l,t<0&&e.left<y.left+$&&($=e.left-(y.left+l))):$=(n=="center"?e.left+(e.right-e.left)/2-(y.right-y.left)/2:n=="start"==c?e.left-l:e.right-(y.right-y.left)+l)-y.left,$||C)if(S)f.scrollBy($,C);else{let _=0,A=0;if(C){let T=m.scrollTop;m.scrollTop+=C/b,A=(m.scrollTop-T)*b}if($){let T=m.scrollLeft;m.scrollLeft+=$/w,_=(m.scrollLeft-T)*w}e={left:e.left-_,top:e.top-A,right:e.right-_,bottom:e.bottom-A},_&&Math.abs(_-$)<1&&(n="nearest"),A&&Math.abs(A-C)<1&&(i="nearest")}if(S)break;(e.top<y.top||e.bottom>y.bottom||e.left<y.left||e.right>y.right)&&(e={left:Math.max(e.left,y.left),right:Math.min(e.right,y.right),top:Math.max(e.top,y.top),bottom:Math.min(e.bottom,y.bottom)}),m=m.assignedSlot||m.parentNode}else if(m.nodeType==11)m=m.host;else break}function k8(r,e=!0){let t=r.ownerDocument,n=null,i=null;for(let l=r.parentNode;l&&!(l==t.body||(!e||n)&&i);)if(l.nodeType==1)!i&&l.scrollHeight>l.clientHeight&&(i=l),e&&!n&&l.scrollWidth>l.clientWidth&&(n=l),l=l.assignedSlot||l.parentNode;else if(l.nodeType==11)l=l.host;else break;return{x:n,y:i}}class sS{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?oi(t):0),n,Math.min(e.focusOffset,n?oi(n):0))}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let is=null;Se.safari&&Se.safari_version>=26&&(is=!1);function b8(r){if(r.setActive)return r.setActive();if(is)return r.focus(is);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(is==null?{get preventScroll(){return is={preventScroll:!0},!0}}:void 0),!is){is=!1;for(let t=0;t<e.length;){let n=e[t++],i=e[t++],l=e[t++];n.scrollTop!=i&&(n.scrollTop=i),n.scrollLeft!=l&&(n.scrollLeft=l)}}}let pO;function $o(r,e,t=e){let n=pO||(pO=document.createRange());return n.setEnd(r,t),n.setStart(r,e),n}function qs(r,e,t,n){let i={key:e,code:e,keyCode:t,which:t,cancelable:!0};n&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=n);let l=new KeyboardEvent("keydown",i);l.synthetic=!0,r.dispatchEvent(l);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,r.dispatchEvent(o),l.defaultPrevented||o.defaultPrevented}function lS(r){for(;r;){if(r&&(r.nodeType==9||r.nodeType==11&&r.host))return r;r=r.assignedSlot||r.parentNode}return null}function oS(r,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,oi(t));;)if(n){if(t.nodeType!=1)return!1;let i=t.childNodes[n-1];i.contentEditable=="false"?n--:(t=i,n=oi(t))}else{if(t==r)return!0;n=_i(t),t=t.parentNode}}function Q8(r){return r instanceof Window?r.pageYOffset>Math.max(0,r.document.documentElement.scrollHeight-r.innerHeight-4):r.scrollTop>Math.max(1,r.scrollHeight-r.clientHeight-4)}function $8(r,e){for(let t=r,n=e;;){if(t.nodeType==3&&n>0)return{node:t,offset:n};if(t.nodeType==1&&n>0){if(t.contentEditable=="false")return null;t=t.childNodes[n-1],n=oi(t)}else if(t.parentNode&&!_c(t))n=_i(t),t=t.parentNode;else return null}}function P8(r,e){for(let t=r,n=e;;){if(t.nodeType==3&&n<t.nodeValue.length)return{node:t,offset:n};if(t.nodeType==1&&n<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[n],n=0}else if(t.parentNode&&!_c(t))n=_i(t)+1,t=t.parentNode;else return null}}class Or{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new Or(e.parentNode,_i(e),t)}static after(e,t){return new Or(e.parentNode,_i(e)+1,t)}}var $t=(function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r})($t||($t={}));const hs=$t.LTR,hf=$t.RTL;function A8(r){let e=[];for(let t=0;t<r.length;t++)e.push(1<<+r[t]);return e}const aS=A8("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),cS=A8("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),k1=Object.create(null),Zr=[];for(let r of["()","[]","{}"]){let e=r.charCodeAt(0),t=r.charCodeAt(1);k1[e]=t,k1[t]=-e}function C8(r){return r<=247?aS[r]:1424<=r&&r<=1524?2:1536<=r&&r<=1785?cS[r-1536]:1774<=r&&r<=2220?4:8192<=r&&r<=8204?256:64336<=r&&r<=65023?4:1}const uS=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Xr{get dir(){return this.level%2?hf:hs}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,i){let l=-1;for(let o=0;o<e.length;o++){let c=e[o];if(c.from<=t&&c.to>=t){if(c.level==n)return o;(l<0||(i!=0?i<0?c.from<t:c.to>t:e[l].level>c.level))&&(l=o)}}if(l<0)throw new RangeError("Index out of range");return l}}function T8(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++){let n=r[t],i=e[t];if(n.from!=i.from||n.to!=i.to||n.direction!=i.direction||!T8(n.inner,i.inner))return!1}return!0}const lt=[];function hS(r,e,t,n,i){for(let l=0;l<=n.length;l++){let o=l?n[l-1].to:e,c=l<n.length?n[l].from:t,u=l?256:i;for(let f=o,m=u,O=u;f<c;f++){let y=C8(r.charCodeAt(f));y==512?y=m:y==8&&O==4&&(y=16),lt[f]=y==4?2:y,y&7&&(O=y),m=y}for(let f=o,m=u,O=u;f<c;f++){let y=lt[f];if(y==128)f<c-1&&m==lt[f+1]&&m&24?y=lt[f]=m:lt[f]=256;else if(y==64){let S=f+1;for(;S<c&&lt[S]==64;)S++;let w=f&&m==8||S<t&&lt[S]==8?O==1?1:8:256;for(let b=f;b<S;b++)lt[b]=w;f=S-1}else y==8&&O==1&&(lt[f]=1);m=y,y&7&&(O=y)}}}function fS(r,e,t,n,i){let l=i==1?2:1;for(let o=0,c=0,u=0;o<=n.length;o++){let f=o?n[o-1].to:e,m=o<n.length?n[o].from:t;for(let O=f,y,S,w;O<m;O++)if(S=k1[y=r.charCodeAt(O)])if(S<0){for(let b=c-3;b>=0;b-=3)if(Zr[b+1]==-S){let $=Zr[b+2],C=$&2?i:$&4?$&1?l:i:0;C&&(lt[O]=lt[Zr[b]]=C),c=b;break}}else{if(Zr.length==189)break;Zr[c++]=O,Zr[c++]=y,Zr[c++]=u}else if((w=lt[O])==2||w==1){let b=w==i;u=b?0:1;for(let $=c-3;$>=0;$-=3){let C=Zr[$+2];if(C&2)break;if(b)Zr[$+2]|=2;else{if(C&4)break;Zr[$+2]|=4}}}}}function dS(r,e,t,n){for(let i=0,l=n;i<=t.length;i++){let o=i?t[i-1].to:r,c=i<t.length?t[i].from:e;for(let u=o;u<c;){let f=lt[u];if(f==256){let m=u+1;for(;;)if(m==c){if(i==t.length)break;m=t[i++].to,c=i<t.length?t[i].from:e}else if(lt[m]==256)m++;else break;let O=l==1,y=(m<e?lt[m]:n)==1,S=O==y?O?1:2:n;for(let w=m,b=i,$=b?t[b-1].to:r;w>u;)w==$&&(w=t[--b].from,$=b?t[b-1].to:r),lt[--w]=S;u=m}else l=f,u++}}}function b1(r,e,t,n,i,l,o){let c=n%2?2:1;if(n%2==i%2)for(let u=e,f=0;u<t;){let m=!0,O=!1;if(f==l.length||u<l[f].from){let b=lt[u];b!=c&&(m=!1,O=b==16)}let y=!m&&c==1?[]:null,S=m?n:n+1,w=u;e:for(;;)if(f<l.length&&w==l[f].from){if(O)break e;let b=l[f];if(!m)for(let $=b.to,C=f+1;;){if($==t)break e;if(C<l.length&&l[C].from==$)$=l[C++].to;else{if(lt[$]==c)break e;break}}if(f++,y)y.push(b);else{b.from>u&&o.push(new Xr(u,b.from,S));let $=b.direction==hs!=!(S%2);Q1(r,$?n+1:n,i,b.inner,b.from,b.to,o),u=b.to}w=b.to}else{if(w==t||(m?lt[w]!=c:lt[w]==c))break;w++}y?b1(r,u,w,n+1,i,y,o):u<w&&o.push(new Xr(u,w,S)),u=w}else for(let u=t,f=l.length;u>e;){let m=!0,O=!1;if(!f||u>l[f-1].to){let b=lt[u-1];b!=c&&(m=!1,O=b==16)}let y=!m&&c==1?[]:null,S=m?n:n+1,w=u;e:for(;;)if(f&&w==l[f-1].to){if(O)break e;let b=l[--f];if(!m)for(let $=b.from,C=f;;){if($==e)break e;if(C&&l[C-1].to==$)$=l[--C].from;else{if(lt[$-1]==c)break e;break}}if(y)y.push(b);else{b.to<u&&o.push(new Xr(b.to,u,S));let $=b.direction==hs!=!(S%2);Q1(r,$?n+1:n,i,b.inner,b.from,b.to,o),u=b.from}w=b.from}else{if(w==e||(m?lt[w-1]!=c:lt[w-1]==c))break;w--}y?b1(r,w,u,n+1,i,y,o):w<u&&o.push(new Xr(w,u,S)),u=w}}function Q1(r,e,t,n,i,l,o){let c=e%2?2:1;hS(r,i,l,n,c),fS(r,i,l,n,c),dS(i,l,n,c),b1(r,i,l,e,t,n,o)}function pS(r,e,t){if(!r)return[new Xr(0,0,e==hf?1:0)];if(e==hs&&!t.length&&!uS.test(r))return Z8(r.length);if(t.length)for(;r.length>lt.length;)lt[lt.length]=256;let n=[],i=e==hs?0:1;return Q1(r,i,i,t,0,r.length,n),n}function Z8(r){return[new Xr(0,r,0)]}let M8="";function mS(r,e,t,n,i){var l;let o=n.head-r.from,c=Xr.find(e,o,(l=n.bidiLevel)!==null&&l!==void 0?l:-1,n.assoc),u=e[c],f=u.side(i,t);if(o==f){let y=c+=i?1:-1;if(y<0||y>=e.length)return null;u=e[c=y],o=u.side(!i,t),f=u.side(i,t)}let m=Ft(r.text,o,u.forward(i,t));(m<u.from||m>u.to)&&(m=f),M8=r.text.slice(Math.min(o,m),Math.max(o,m));let O=c==(i?e.length-1:0)?null:e[c+(i?1:-1)];return O&&m==f&&O.level+(i?0:1)<u.level?G.cursor(O.side(!i,t)+r.from,O.forward(i,t)?1:-1,O.level):G.cursor(m+r.from,u.forward(i,t)?-1:1,u.level)}function OS(r,e,t){for(let n=e;n<t;n++){let i=C8(r.charCodeAt(n));if(i==1)return hs;if(i==2||i==4)return hf}return hs}const E8=be.define(),j8=be.define(),V8=be.define(),R8=be.define(),$1=be.define(),L8=be.define(),X8=be.define(),ff=be.define(),df=be.define(),N8=be.define({combine:r=>r.some(e=>e)}),gS=be.define({combine:r=>r.some(e=>e)}),_8=be.define();class Us{constructor(e,t="nearest",n="nearest",i=5,l=5,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=l,this.isSnapshot=o}map(e){return e.empty?this:new Us(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Us(G.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const nc=Ue.define({map:(r,e)=>r.map(e)}),z8=Ue.define();function Nr(r,e,t){let n=r.facet(R8);n.length?n[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const ri=be.define({combine:r=>r.length?r[0]:!0});let yS=0;const Is=be.define({combine(r){return r.filter((e,t)=>{for(let n=0;n<t;n++)if(r[n].plugin==e.plugin)return!1;return!0})}});class Zn{constructor(e,t,n,i,l){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=i,this.baseExtensions=l(this),this.extension=this.baseExtensions.concat(Is.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Is.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:n,eventObservers:i,provide:l,decorations:o}=t||{};return new Zn(yS++,e,n,i,c=>{let u=[];return o&&u.push(Ou.of(f=>{let m=f.plugin(c);return m?o(m):Re.none})),l&&u.push(l(c)),u})}static fromClass(e,t){return Zn.define((n,i)=>new e(n,i),t)}}class wh{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(Nr(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Nr(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){Nr(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const D8=be.define(),pf=be.define(),Ou=be.define(),I8=be.define(),mf=be.define(),Xo=be.define(),W8=be.define();function mO(r,e){let t=r.state.facet(W8);if(!t.length)return t;let n=t.map(l=>l instanceof Function?l(r):l),i=[];return He.spans(n,e.from,e.to,{point(){},span(l,o,c,u){let f=l-e.from,m=o-e.from,O=i;for(let y=c.length-1;y>=0;y--,u--){let S=c[y].spec.bidiIsolate,w;if(S==null&&(S=OS(e.text,f,m)),u>0&&O.length&&(w=O[O.length-1]).to==f&&w.direction==S)w.to=m,O=w.inner;else{let b={from:f,to:m,direction:S,inner:[]};O.push(b),O=b.inner}}}}),i}const H8=be.define();function Y8(r){let e=0,t=0,n=0,i=0;for(let l of r.state.facet(H8)){let o=l(r);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(n=Math.max(n,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:e,right:t,top:n,bottom:i}}const ao=be.define();class rr{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new rr(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toA<n.fromA)break;n=n.join(i),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(t.length==0)return e;let n=[];for(let i=0,l=0,o=0;;){let c=i<e.length?e[i].fromB:1e9,u=l<t.length?t[l]:1e9,f=Math.min(c,u);if(f==1e9)break;let m=f+o,O=f,y=m;for(;;)if(l<t.length&&t[l]<=O){let S=t[l+1];l+=2,O=Math.max(O,S);for(let w=i;w<e.length&&e[w].fromB<=O;w++)o=e[w].toA-e[w].toB;y=Math.max(y,S+o)}else if(i<e.length&&e[i].fromB<=O){let S=e[i++];O=Math.max(O,S.toB),y=Math.max(y,S.toA),o=S.toA-S.toB}else break;n.push(new rr(m,y,f,O))}return n}}class Dc{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Nt.empty(this.startState.doc.length);for(let l of n)this.changes=this.changes.compose(l.changes);let i=[];this.changes.iterChangedRanges((l,o,c,u)=>i.push(new rr(l,o,c,u))),this.changedRanges=i}static create(e,t,n){return new Dc(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const xS=[];class St{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return xS}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let t=this.domAttrs;t&&eS(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let i of this.children){if(i==e)return n;n+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let n=_i(this.dom),i=this.length?e>0:t>0;return new Or(this.parent.dom,n+(i?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof yu)return e;return null}static get(e){return e.cmTile}}class gu extends St{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,n=null,i,l=(e==null?void 0:e.node)==t?e:null,o=0;for(let c of this.children){if(c.sync(e),o+=c.length+c.breakAfter,i=n?n.nextSibling:t.firstChild,l&&i!=c.dom&&(l.written=!0),c.dom.parentNode==t)for(;i&&i!=c.dom;)i=OO(i);else t.insertBefore(c.dom,i);n=c.dom}for(i=n?n.nextSibling:t.firstChild,l&&i&&(l.written=!0);i;)i=OO(i);this.length=o}}function OO(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class yu extends gu{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=St.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,i=0,l=0;;)if(i==n.children.length){if(!t.length)return;n=n.parent,n.breakAfter&&l++,i=t.pop()}else{let o=n.children[i++];if(o instanceof si)t.push(i),n=o,i=0;else{let c=l+o.length,u=e(o,l);if(u!==void 0)return u;l=c+o.breakAfter}}}resolveBlock(e,t){let n,i=-1,l,o=-1;if(this.blockTiles((c,u)=>{let f=u+c.length;if(e>=u&&e<=f){if(c.isWidget()&&t>=-1&&t<=1){if(c.flags&32)return!0;c.flags&16&&(n=void 0)}(u<e||e==f&&(t<-1?c.length:c.covers(1)))&&(!n||!c.isWidget()&&n.isWidget())&&(n=c,i=e-u),(f>e||e==u&&(t>1?c.length:c.covers(-1)))&&(!l||!c.isWidget()&&l.isWidget())&&(l=c,o=e-u)}}),!n&&!l)throw new Error("No tile at position "+e);return n&&t<0||!l?{tile:n,offset:i}:{tile:l,offset:o}}}class si extends gu{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,t){let n=new si(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class tl extends gu{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let i=new tl(t||document.createElement("div"),e);return(!t||!n)&&(i.flags|=4),i}get domAttrs(){return this.attrs}resolveInline(e,t,n){let i=null,l=-1,o=null,c=-1;function u(m,O){for(let y=0,S=0;y<m.children.length&&S<=O;y++){let w=m.children[y],b=S+w.length;b>=O&&(w.isComposite()?u(w,O-S):(!o||o.isHidden&&(t>0||n&&SS(o,w)))&&(b>O||w.flags&32)?(o=w,c=O-S):(S<O||w.flags&16&&!w.isHidden)&&(i=w,l=O-S)),S=b}}u(this,e);let f=(t<0?i:o)||i||o;return f?{tile:f,offset:f==i?l:c}:null}coordsIn(e,t){let n=this.resolveInline(e,t,!0);return n?n.tile.coordsIn(Math.max(0,n.offset),t):vS(this)}domIn(e,t){let n=this.resolveInline(e,t);if(n){let{tile:i,offset:l}=n;if(this.dom.contains(i.dom))return i.isText()?new Or(i.dom,Math.min(i.dom.nodeValue.length,l)):i.domPosFor(l,i.flags&16?1:i.flags&32?-1:t);let o=n.tile.parent,c=!1;for(let u of o.children){if(c)return new Or(u.dom,0);u==n.tile&&(c=!0)}}return new Or(this.dom,0)}}function vS(r){let e=r.dom.lastChild;if(!e)return r.dom.getBoundingClientRect();let t=Qc(e);return t[t.length-1]||null}function SS(r,e){let t=r.coordsIn(0,1),n=e.coordsIn(0,1);return t&&n&&n.top<t.bottom}class An extends gu{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let n=new An(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class os extends St{constructor(e,t){super(e,t.length),this.text=t}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let n=this.dom.nodeValue.length;e>n&&(e=n);let i=e,l=e,o=0;e==0&&t<0||e==n&&t>=0?Se.chrome||Se.gecko||(e?(i--,o=1):l<n&&(l++,o=-1)):t<0?i--:l<n&&l++;let c=$o(this.dom,i,l).getClientRects();if(!c.length)return null;let u=c[(o?o<0:t>=0)?0:c.length-1];return Se.safari&&!o&&u.width==0&&(u=Array.prototype.find.call(c,f=>f.width)||u),o?zc(u,o<0):u||null}static of(e,t){let n=new os(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class fs extends St{constructor(e,t,n,i){super(e,t,i),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;if(n)return zc(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let l=this.dom.getClientRects(),o=null;if(!l.length)return null;let c=this.flags&16?!0:this.flags&32?!1:e>0;for(let u=c?l.length-1:0;o=l[u],!(e>0?u==0:u==l.length-1||o.top<o.bottom);u+=c?-1:1);return zc(o,!c)}}get overrideDOMText(){if(!this.length)return Fe.empty;let{root:e}=this;if(!e)return Fe.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,n,i,l){return l||(l=e.toDOM(t),e.editable||(l.contentEditable="false")),new fs(l,n,e,i)}}class Ic extends St{constructor(e){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return Fe.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class wS{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:i,index:l,beforeBreak:o,parents:c}=this;for(;e||t>0;)if(i.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(l==i.children.length){if(!e&&!c.length)break;n&&n.leave(i),o=!!i.breakAfter,{tile:i,index:l}=c.pop(),l++}else{let u=i.children[l],f=u.breakAfter;(t>0?u.length<=e:u.length<e)&&(!n||n.skip(u,0,u.length)!==!1||!u.isComposite)?(o=!!f,l++,e-=u.length):(c.push({tile:i,index:l}),i=u,l=0,n&&u.isComposite()&&n.enter(u))}else if(l==i.length)o=!!i.breakAfter,{tile:i,index:l}=c.pop(),l++;else if(e){let u=Math.min(e,i.length-l);n&&n.skip(i,l,l+u),e-=u,l+=u}else break;return this.tile=i,this.index=l,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class kS{constructor(e,t,n,i){this.from=e,this.to=t,this.wrapper=n,this.rank=i}}class bS{constructor(e,t,n){this.cache=e,this.root=t,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,n,i){var l;this.flushBuffer();let o=this.ensureMarks(t,n),c=o.lastChild;if(c&&c.isText()&&!(c.flags&8)&&c.length+e.length<512){this.cache.reused.set(c,2);let u=o.children[o.children.length-1]=new os(c.dom,c.text+e);u.parent=o}else o.append(i||os.of(e,(l=this.cache.find(os))===null||l===void 0?void 0:l.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let n=this.curLine;n.dom!=t.line.dom&&(n.setDOM(this.cache.reused.has(t.line)?kh(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let i=n;for(let c=t.marks.length-1;c>=0;c--){let u=t.marks[c],f=i.lastChild;if(f instanceof An&&f.mark.eq(u.mark))f.dom!=u.dom&&f.setDOM(kh(u.dom)),i=f;else{if(this.cache.reused.get(u)){let O=St.get(u.dom);O&&O.setDOM(kh(u.dom))}let m=An.of(u.mark,u.dom);i.append(m),i=m}this.cache.reused.set(u,2)}let l=St.get(e.text);l&&this.cache.reused.set(l,2);let o=new os(e.text,e.text.nodeValue);o.flags|=8,i.append(o)}addInlineWidget(e,t,n){let i=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);i||this.flushBuffer();let l=this.ensureMarks(t,n);!i&&!(e.flags&16)&&l.append(this.getBuffer(1)),l.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var n;e||(e=F8);let i=tl.start(e,t||((n=this.cache.find(tl))===null||n===void 0?void 0:n.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=i)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var n;let i=this.curLine;for(let l=e.length-1;l>=0;l--){let o=e[l],c;if(t>0&&(c=i.lastChild)&&c instanceof An&&c.mark.eq(o))i=c,t--;else{let u=An.of(o,(n=this.cache.find(An,f=>f.mark.eq(o)))===null||n===void 0?void 0:n.dom);i.append(u),i=u,t=0}}return i}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!gO(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(Se.ios&&gO(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(bh,0,32)||new fs(bh.toDOM(),0,bh,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=new kS(e.from,e.to,e.value,e.rank),n=this.wrappers.length;for(;n>0&&(this.wrappers[n-1].rank-t.rank||this.wrappers[n-1].to-t.to)<0;)n--;this.wrappers.splice(n,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let n of this.wrappers){let i=t.lastChild;if(n.from<this.pos&&i instanceof si&&i.wrapper.eq(n.wrapper))t=i;else{let l=si.of(n.wrapper,(e=this.cache.find(si,o=>o.wrapper.eq(n.wrapper)))===null||e===void 0?void 0:e.dom);t.append(l),t=l}}return t}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(Ic,void 0,1);return n&&(n.flags=t),n||new Ic(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class QS{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:i,lineBreak:l,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=i;let c=this.textOff=Math.min(e,i.length);return l?null:i.slice(0,c)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}}const Wc=[fs,tl,os,An,Ic,si,yu];for(let r=0;r<Wc.length;r++)Wc[r].bucket=r;class $S{constructor(e){this.view=e,this.buckets=Wc.map(()=>[]),this.index=Wc.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let i=e.bucket,l=this.buckets[i],o=this.index[i];for(let c=l.length-1;c>=0;c--){let u=(c+o)%l.length,f=l[u];if((!t||t(f))&&!this.reused.has(f))return l.splice(u,1),u<o&&this.index[i]--,this.reused.set(f,n),f}return null}findWidget(e,t,n){let i=this.buckets[0];if(i.length)for(let l=0,o=0;;l++){if(l==i.length){if(o)return null;o=1,l=0}let c=i[l];if(!this.reused.has(c)&&(o==0?c.widget.compare(e):c.widget.constructor==e.constructor&&e.updateDOM(c.dom,this.view,c.widget)))return i.splice(l,1),l<this.index[0]&&this.index[0]--,c.widget==e&&c.length==t&&(c.flags&497)==n?(this.reused.set(c,1),c):(this.reused.set(c,2),new fs(c.dom,t,e,c.flags&-498|n))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class PS{constructor(e,t,n,i,l){this.view=e,this.decorations=i,this.disallowBlockEffectsFor=l,this.openWidget=!1,this.openMarks=0,this.cache=new $S(e),this.text=new QS(e.state.doc),this.builder=new bS(this.cache,new yu(e,e.contentDOM),He.iter(n)),this.cache.reused.set(t,2),this.old=new wS(t),this.reuseWalker={skip:(o,c,u)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let i=0,l=0,o=0;;){let c=o<e.length?e[o++]:null,u=c?c.fromA:this.old.root.length;if(u>i){let f=u-i;this.preserve(f,!o,!c),i=u,l+=f}if(!c)break;t&&c.fromA<=t.range.fromA&&c.toA>=t.range.toA?(this.forward(c.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(l,t.range.fromB),this.cache.clear(),this.builder.addComposition(t,n),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,c.toA),this.emit(t.range.toB,c.toB)):(this.forward(c.fromA,c.toA),this.emit(l,c.toB)),l=c.toB,i=c.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,n){let i=TS(this.old),l=this.openMarks;this.old.advance(e,n?1:-1,{skip:(o,c,u)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(u-c);else{let f=u>0||c<o.length?fs.of(o.widget,this.view,u-c,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);f.flags&256?(f.flags&=-2,this.builder.addBlockWidget(f)):(this.builder.ensureLine(null),this.builder.addInlineWidget(f,i,l),l=i.length)}else if(o.isText())this.builder.ensureLine(null),!c&&u==o.length&&!this.cache.reused.has(o)?this.builder.addText(o.text,i,l,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(c,u),i,l)),l=i.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof Ic)this.cache.add(o);else if(o instanceof An)this.builder.ensureLine(null),this.builder.addMark(o,i,l),this.cache.reused.set(o,1),l=i.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof An&&i.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?i.length&&(i.length=l=0):o instanceof An&&(i.shift(),l=Math.min(l,i.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,i=this.builder,l=0,o=He.spans(this.decorations,e,t,{point:(c,u,f,m,O,y)=>{if(f instanceof us){if(this.disallowBlockEffectsFor[y]){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(u>this.view.state.doc.lineAt(c).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(l=m.length,O>m.length)i.continueWidget(u-c);else{let S=f.widget||(f.block?nl.block:nl.inline),w=AS(f),b=this.cache.findWidget(S,u-c,w)||fs.of(S,this.view,u-c,w);f.block?(f.startSide>0&&i.addLineStartIfNotCovered(n),i.addBlockWidget(b)):(i.ensureLine(n),i.addInlineWidget(b,m,O))}n=null}else n=CS(n,f);u>c&&this.text.skip(u-c)},span:(c,u,f,m)=>{for(let O=c;O<u;){let y=this.text.next(Math.min(512,u-O));y==null?(i.addLineStartIfNotCovered(n),i.addBreak(),O++):(i.ensureLine(n),i.addText(y,f,O==c?m:f.length),O+=y.length),n=null}}});i.addLineStartIfNotCovered(n),this.openWidget=o>l,this.openMarks=o}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let i=e.parentNode;;i=i.parentNode){let l=St.get(i);if(i==this.view.contentDOM)break;l instanceof An?t.push(l):l!=null&&l.isLine()?n=l:l instanceof si||(i.nodeName=="DIV"&&!n&&i!=this.view.contentDOM?n=new tl(i,F8):n||t.push(An.of(new Ro({tagName:i.nodeName.toLowerCase(),attributes:tS(i)}),i)))}return{line:n,marks:t}}}function gO(r,e){let t=n=>{for(let i of n.children)if((e?i.isText():i.length)||t(i))return!0;return!1};return t(r)}function AS(r){let e=r.isReplace?(r.startSide<0?64:0)|(r.endSide>0?128:0):r.startSide>0?32:16;return r.block&&(e|=256),e}const F8={class:"cm-line"};function CS(r,e){let t=e.spec.attributes,n=e.spec.class;return!t&&!n||(r||(r={class:"cm-line"}),t&&cf(t,r),n&&(r.class+=" "+n)),r}function TS(r){let e=[];for(let t=r.parents.length;t>1;t--){let n=t==r.parents.length?r.tile:r.parents[t].tile;n instanceof An&&e.push(n.mark)}return e}function kh(r){let e=St.get(r);return e&&e.setDOM(r.cloneNode()),r}class nl extends ps{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}nl.inline=new nl("span");nl.block=new nl("div");const bh=new class extends ps{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class yO{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Re.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new yu(e,e.contentDOM),this.updateInner([new rr(0,0,0,e.state.doc.length)],null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:m,toA:O})=>O<this.minWidthFrom||m>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?i=this.domChanged.newSel.head:!NS(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let l=i>-1?MS(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){let{from:m,to:O}=this.hasComposition;n=new rr(m,O,e.changes.mapPos(m,-1),e.changes.mapPos(O,1)).addToSet(n.slice())}this.hasComposition=l?{from:l.range.fromB,to:l.range.toB}:null,(Se.ie||Se.chrome)&&!l&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,c=this.blockWrappers;this.updateDeco();let u=VS(o,this.decorations,e.changes);u.length&&(n=rr.extendWithRanges(n,u));let f=LS(c,this.blockWrappers,e.changes);return f.length&&(n=rr.extendWithRanges(n,f)),l&&!n.some(m=>m.fromA<=l.range.fromA&&m.toA>=l.range.toA)&&(n=l.range.addToSet(n.slice())),this.tile.flags&2&&n.length==0?!1:(this.updateInner(n,l),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let o=this.tile,c=new PS(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&St.get(t.text)&&c.cache.reused.set(St.get(t.text),2),this.tile=c.run(e,t),P1(o,c.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let l=Se.chrome||Se.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(l),l&&(l.written||n.selectionRange.focusNode!=l.node||!this.tile.dom.contains(l.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let l of this.tile.children)l.isWidget()&&l.widget instanceof Qh&&i.push(l.dom);n.updateGaps(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let n of t.effects)n.is(z8)&&(this.editContextFormatting=n.value)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:n}=this.tile,i=this.view.root.activeElement,l=i==n,o=!l&&!(this.view.state.facet(ri)||n.tabIndex>-1)&&mo(n,this.view.observer.selectionRange)&&!(i&&n.contains(i));if(!(l||t||o))return;let c=this.forceSelection;this.forceSelection=!1;let u=this.view.state.selection.main,f,m;if(u.empty?m=f=this.inlineDOMNearPos(u.anchor,u.assoc||1):(m=this.inlineDOMNearPos(u.head,u.head==u.from?1:-1),f=this.inlineDOMNearPos(u.anchor,u.anchor==u.from?1:-1)),Se.gecko&&u.empty&&!this.hasComposition&&ZS(f)){let y=document.createTextNode("");this.view.observer.ignore(()=>f.node.insertBefore(y,f.node.childNodes[f.offset]||null)),f=m=new Or(y,0),c=!0}let O=this.view.observer.selectionRange;(c||!O.focusNode||(!Oo(f.node,f.offset,O.anchorNode,O.anchorOffset)||!Oo(m.node,m.offset,O.focusNode,O.focusOffset))&&!this.suppressWidgetCursorChange(O,u))&&(this.view.observer.ignore(()=>{Se.android&&Se.chrome&&n.contains(O.focusNode)&&XS(O.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let y=Qo(this.view.root);if(y)if(u.empty){if(Se.gecko){let S=ES(f.node,f.offset);if(S&&S!=3){let w=(S==1?$8:P8)(f.node,f.offset);w&&(f=new Or(w.node,w.offset))}}y.collapse(f.node,f.offset),u.bidiLevel!=null&&y.caretBidiLevel!==void 0&&(y.caretBidiLevel=u.bidiLevel)}else if(y.extend){y.collapse(f.node,f.offset);try{y.extend(m.node,m.offset)}catch{}}else{let S=document.createRange();u.anchor>u.head&&([f,m]=[m,f]),S.setEnd(m.node,m.offset),S.setStart(f.node,f.offset),y.removeAllRanges(),y.addRange(S)}o&&this.view.root.activeElement==n&&(n.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(f,m)),this.impreciseAnchor=f.precise?null:new Or(O.anchorNode,O.anchorOffset),this.impreciseHead=m.precise?null:new Or(O.focusNode,O.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Oo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=Qo(e.root),{anchorNode:i,anchorOffset:l}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let c=o.posAtStart;if(t.head==c||t.head==c+o.length)return;let u=this.coordsAt(t.head,-1),f=this.coordsAt(t.head,1);if(!u||!f||u.bottom>f.top)return;let m=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(m.node,m.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let O=e.observer.selectionRange;e.docView.posFromDOM(O.anchorNode,O.anchorOffset)!=t.from&&n.collapse(i,l)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let i=n.posAtStart;if(n.isComposite()){let l;if(e==n.dom)l=n.dom.childNodes[t];else{let o=oi(e)==0?0:t==0?-1:1;for(;;){let c=e.parentNode;if(c==n.dom)break;o==0&&c.firstChild!=c.lastChild&&(e==c.firstChild?o=-1:o=1),e=c}o<0?l=e:l=e.nextSibling}if(l==n.dom.firstChild)return i;for(;l&&!St.get(l);)l=l.nextSibling;if(!l)return i+n.length;for(let o=0,c=i;;o++){let u=n.children[o];if(u.dom==l)return c;c+=u.length+u.breakAfter}}else return n.isText()?e==n.dom?i+t:i+(t?n.length:0):i}domAtPos(e,t){let{tile:n,offset:i}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(e,t):n.domIn(i,t)}inlineDOMNearPos(e,t){let n,i=-1,l=!1,o,c=-1,u=!1;return this.tile.blockTiles((f,m)=>{if(f.isWidget()){if(f.flags&32&&m>=e)return!0;f.flags&16&&(l=!0)}else{let O=m+f.length;if(m<=e&&(n=f,i=e-m,l=O<e),O>=e&&!o&&(o=f,c=e-m,u=m>e),m>e&&o)return!0}}),!n&&!o?this.domAtPos(e,t):(l&&o?n=null:u&&n&&(o=null),n&&t<0||!o?n.domIn(i,t):o.domIn(c,t))}coordsAt(e,t){let{tile:n,offset:i}=this.tile.resolveBlock(e,t);return n.isWidget()?n.widget instanceof Qh?null:n.coordsInWidget(i,t,!0):n.coordsIn(i,t)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function i(l,o){if(l.isComposite())for(let c of l.children){if(c.length>=o){let u=i(c,o);if(u)return u}if(o-=c.length,o<0)break}else if(l.isText()&&o<l.length){let c=Ft(l.text,o);if(c==o)return null;let u=$o(l.dom,o,c).getClientRects();for(let f=0;f<u.length;f++){let m=u[f];if(f==u.length-1||m.top<m.bottom&&m.left<m.right)return m}}return null}return i(t,n)}measureVisibleLineHeights(e){let t=[],{from:n,to:i}=e,l=this.view.contentDOM.clientWidth,o=l>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==$t.LTR,f=0,m=(O,y,S)=>{for(let w=0;w<O.children.length&&!(y>i);w++){let b=O.children[w],$=y+b.length,C=b.dom.getBoundingClientRect(),{height:_}=C;if(S&&!w&&(f+=C.top-S.top),b instanceof si)$>n&&m(b,y,C);else if(y>=n&&(f>0&&t.push(-f),t.push(_+f),f=0,o)){let A=b.dom.lastChild,T=A?Qc(A):[];if(T.length){let Z=T[T.length-1],X=u?Z.right-C.left:C.right-Z.left;X>c&&(c=X,this.minWidth=l,this.minWidthFrom=y,this.minWidthTo=$)}}S&&w==O.children.length-1&&(f+=S.bottom-C.bottom),y=$+b.breakAfter}};return m(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction=="rtl"?$t.RTL:$t.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let c=0,u;for(let f of o.children){if(!f.isText()||/[^ -~]/.test(f.text))return;let m=Qc(f.dom);if(m.length!=1)return;c+=m[0].width,u=m[0].height}if(c)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:c/o.length,textHeight:u}}});if(e)return e;let t=document.createElement("div"),n,i,l;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let o=Qc(t.firstChild)[0];n=t.getBoundingClientRect().height,i=o&&o.width?o.width/27:7,l=o&&o.height?o.height:n,t.remove()}),{lineHeight:n,charWidth:i,textHeight:l}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let l=i==t.viewports.length?null:t.viewports[i],o=l?l.from-1:this.view.state.doc.length;if(o>n){let c=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(Re.replace({widget:new Qh(c),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!l)break;n=l.to+1}return Re.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Ou).map(l=>(this.dynamicDecorationMap[e++]=typeof l=="function")?l(this.view):l),n=!1,i=this.view.state.facet(mf).map((l,o)=>{let c=typeof l=="function";return c&&(n=!0),c?l(this.view):l});for(i.length&&(this.dynamicDecorationMap[e++]=n,t.push(He.join(i))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(I8).map(l=>typeof l=="function"?l(this.view):l)}scrollIntoView(e){var t;if(e.isSnapshot){let m=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=m.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let m of this.view.state.facet(_8))try{if(m(this.view,e.range,e))return!0}catch(O){Nr(this.view.state,O,"scroll handler")}let{range:n}=e,i=this.coordsAt(n.head,(t=n.assoc)!==null&&t!==void 0?t:n.empty?0:n.head>n.anchor?-1:1),l;if(!i)return;!n.empty&&(l=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,l.left),top:Math.min(i.top,l.top),right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)});let o=Y8(this.view),c={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:u,offsetHeight:f}=this.view.scrollDOM;if(iS(this.view.scrollDOM,c,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,u),-u),Math.max(Math.min(e.yMargin,f),-f),this.view.textDirection==$t.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(i.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||i.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let m=this.view.docView.lineAt(n.head,1);m&&m.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(e){let t=n=>n.isWidget()||n.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){P1(this.tile)}}function P1(r,e){let t=e==null?void 0:e.get(r);if(t!=1){t==null&&r.destroy();for(let n of r.children)P1(n,e)}}function ZS(r){return r.node.nodeType==1&&r.node.firstChild&&(r.offset==0||r.node.childNodes[r.offset-1].contentEditable=="false")&&(r.offset==r.node.childNodes.length||r.node.childNodes[r.offset].contentEditable=="false")}function B8(r,e){let t=r.observer.selectionRange;if(!t.focusNode)return null;let n=$8(t.focusNode,t.focusOffset),i=P8(t.focusNode,t.focusOffset),l=n||i;if(i&&n&&i.node!=n.node){let c=St.get(i.node);if(!c||c.isText()&&c.text!=i.node.nodeValue)l=i;else if(r.docView.lastCompositionAfterCursor){let u=St.get(n.node);!u||u.isText()&&u.text!=n.node.nodeValue||(l=i)}}if(r.docView.lastCompositionAfterCursor=l!=n,!l)return null;let o=e-l.offset;return{from:o,to:o+l.node.nodeValue.length,node:l.node}}function MS(r,e,t){let n=B8(r,t);if(!n)return null;let{node:i,from:l,to:o}=n,c=i.nodeValue;if(/[\n\r]/.test(c)||r.state.doc.sliceString(n.from,n.to)!=c)return null;let u=e.invertedDesc;return{range:new rr(u.mapPos(l),u.mapPos(o),l,o),text:i}}function ES(r,e){return r.nodeType!=1?0:(e&&r.childNodes[e-1].contentEditable=="false"?1:0)|(e<r.childNodes.length&&r.childNodes[e].contentEditable=="false"?2:0)}let jS=class{constructor(){this.changes=[]}compareRange(e,t){Bs(e,t,this.changes)}comparePoint(e,t){Bs(e,t,this.changes)}boundChange(e){Bs(e,e,this.changes)}};function VS(r,e,t){let n=new jS;return He.compare(r,e,t,n),n.changes}class RS{constructor(){this.changes=[]}compareRange(e,t){Bs(e,t,this.changes)}comparePoint(){}boundChange(e){Bs(e,e,this.changes)}}function LS(r,e,t){let n=new RS;return He.compare(r,e,t,n),n.changes}function XS(r,e){for(let t=r;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function NS(r,e){let t=!1;return e&&r.iterChangedRanges((n,i)=>{n<e.to&&i>e.from&&(t=!0)}),t}class Qh extends ps{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function _S(r,e,t=1){let n=r.charCategorizer(e),i=r.doc.lineAt(e),l=e-i.from;if(i.length==0)return G.cursor(e);l==0?t=1:l==i.length&&(t=-1);let o=l,c=l;t<0?o=Ft(i.text,l,!1):c=Ft(i.text,l);let u=n(i.text.slice(o,c));for(;o>0;){let f=Ft(i.text,o,!1);if(n(i.text.slice(f,o))!=u)break;o=f}for(;c<i.length;){let f=Ft(i.text,c);if(n(i.text.slice(c,f))!=u)break;c=f}return G.range(o+i.from,c+i.from)}function zS(r,e,t,n,i){let l=Math.round((n-e.left)*r.defaultCharacterWidth);if(r.lineWrapping&&t.height>r.defaultLineHeight*1.5){let c=r.viewState.heightOracle.textHeight,u=Math.floor((i-t.top-(r.defaultLineHeight-c)*.5)/c);l+=u*r.viewState.heightOracle.lineLength}let o=r.state.sliceDoc(t.from,t.to);return t.from+B3(o,l,r.state.tabSize)}function DS(r,e,t){let n=r.lineBlockAt(e);if(Array.isArray(n.type)){let i;for(let l of n.type){if(l.from>e)break;if(!(l.to<e)){if(l.from<e&&l.to>e)return l;(!i||l.type==Tn.Text&&(i.type!=l.type||(t<0?l.from<e:l.to>e)))&&(i=l)}}return i||n}return n}function IS(r,e,t,n){let i=DS(r,e.head,e.assoc||-1),l=!n||i.type!=Tn.Text||!(r.lineWrapping||i.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(l){let o=r.dom.getBoundingClientRect(),c=r.textDirectionAt(i.from),u=r.posAtCoords({x:t==(c==$t.LTR)?o.right-1:o.left+1,y:(l.top+l.bottom)/2});if(u!=null)return G.cursor(u,t?-1:1)}return G.cursor(t?i.to:i.from,t?-1:1)}function xO(r,e,t,n){let i=r.state.doc.lineAt(e.head),l=r.bidiSpans(i),o=r.textDirectionAt(i.from);for(let c=e,u=null;;){let f=mS(i,l,o,c,t),m=M8;if(!f){if(i.number==(t?r.state.doc.lines:1))return c;m=`
61
- `,i=r.state.doc.line(i.number+(t?1:-1)),l=r.bidiSpans(i),f=r.visualLineSide(i,!t)}if(u){if(!u(m))return c}else{if(!n)return f;u=n(m)}c=f}}function WS(r,e,t){let n=r.state.charCategorizer(e),i=n(t);return l=>{let o=n(l);return i==pt.Space&&(i=o),i==o}}function HS(r,e,t,n){let i=e.head,l=t?1:-1;if(i==(t?r.state.doc.length:0))return G.cursor(i,e.assoc);let o=e.goalColumn,c,u=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(i,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),m=r.documentTop;if(f)o==null&&(o=f.left-u.left),c=l<0?f.top:f.bottom;else{let w=r.viewState.lineBlockAt(i);o==null&&(o=Math.min(u.right-u.left,r.defaultCharacterWidth*(i-w.from))),c=(l<0?w.top:w.bottom)+m}let O=u.left+o,y=r.viewState.heightOracle.textHeight>>1,S=n??y;for(let w=0;;w+=y){let b=c+(S+w)*l,$=A1(r,{x:O,y:b},!1,l);if(t?b>u.bottom:b<u.top)return G.cursor($.pos,$.assoc);let C=r.coordsAtPos($.pos,$.assoc),_=C?(C.top+C.bottom)/2:0;if(!C||(t?_>c:_<c))return G.cursor($.pos,$.assoc,void 0,o)}}function go(r,e,t){for(;;){let n=0;for(let i of r)i.between(e-1,e+1,(l,o,c)=>{if(e>l&&e<o){let u=n||t||(e-l<o-e?-1:1);e=u<0?l:o,n=u}});if(!n)return e}}function q8(r,e){let t=null;for(let n=0;n<e.ranges.length;n++){let i=e.ranges[n],l=null;if(i.empty){let o=go(r,i.from,0);o!=i.from&&(l=G.cursor(o,-1))}else{let o=go(r,i.from,-1),c=go(r,i.to,1);(o!=i.from||c!=i.to)&&(l=G.range(i.from==i.anchor?o:c,i.from==i.head?o:c))}l&&(t||(t=e.ranges.slice()),t[n]=l)}return t?G.create(t,e.mainIndex):e}function $h(r,e,t){let n=go(r.state.facet(Xo).map(i=>i(r)),t.from,e.head>t.from?-1:1);return n==t.from?t:G.cursor(n,n<t.from?1:-1)}class Lr{constructor(e,t){this.pos=e,this.assoc=t}}function A1(r,e,t,n){let i=r.contentDOM.getBoundingClientRect(),l=i.top+r.viewState.paddingTop,{x:o,y:c}=e,u=c-l,f;for(;;){if(u<0)return new Lr(0,1);if(u>r.viewState.docHeight)return new Lr(r.state.doc.length,-1);if(f=r.elementAtHeight(u),n==null)break;if(f.type==Tn.Text){if(n<0?f.to<r.viewport.from:f.from>r.viewport.to)break;let y=r.docView.coordsAt(n<0?f.from:f.to,n>0?-1:1);if(y&&(n<0?y.top<=u+l:y.bottom>=u+l))break}let O=r.viewState.heightOracle.textHeight/2;u=n>0?f.bottom+O:f.top-O}if(r.viewport.from>=f.to||r.viewport.to<=f.from){if(t)return null;if(f.type==Tn.Text){let O=zS(r,i,f,o,c);return new Lr(O,O==f.from?1:-1)}}if(f.type!=Tn.Text)return u<(f.top+f.bottom)/2?new Lr(f.from,1):new Lr(f.to,-1);let m=r.docView.lineAt(f.from,2);return(!m||m.length!=f.length)&&(m=r.docView.lineAt(f.from,-2)),new YS(r,o,c,r.textDirectionAt(f.from)).scanTile(m,f.from)}class YS{constructor(e,t,n,i){this.view=e,this.x=t,this.y=n,this.baseDir=i,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:i}=this.bidiSpansAt(e);return i[Xr.find(i,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:i}=this.bidiSpansAt(e);return i[Xr.find(i,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:i}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+i.from<t)}scan(e,t){let n=0,i=e.length-1,l=new Set,o=this.bidiIn(e[0],e[i]),c,u,f=-1,m=1e9,O;e:for(;n<i;){let S=i-n,w=n+i>>1;t:if(l.has(w)){let $=n+Math.floor(Math.random()*S);for(let C=0;C<S;C++){if(!l.has($)){w=$;break t}$++,$==i&&($=n)}break e}l.add(w);let b=t(w);if(b)for(let $=0;$<b.length;$++){let C=b[$],_=0;if(!(C.width==0&&b.length>1)){if(C.bottom<this.y)(!c||c.bottom<C.bottom)&&(c=C),_=1;else if(C.top>this.y)(!u||u.top>C.top)&&(u=C),_=-1;else{let A=C.left>this.x?this.x-C.left:C.right<this.x?this.x-C.right:0,T=Math.abs(A);T<m&&(f=w,m=T,O=C),A&&(_=A<0==(this.baseDir==$t.LTR)?-1:1)}_==-1&&(!o||this.baseDirAt(e[w],1))?i=w:_==1&&(!o||this.baseDirAt(e[w+1],-1))&&(n=w+1)}}}if(!O){let S=c&&(!u||this.y-c.bottom<u.top-this.y)?c:u;return this.y=(S.top+S.bottom)/2,this.scan(e,t)}let y=(o?this.dirAt(e[f],1):this.baseDir)==$t.LTR;return{i:f,after:this.x>(O.left+O.right)/2==y}}scanText(e,t){let n=[];for(let l=0;l<e.length;l=Ft(e.text,l))n.push(t+l);n.push(t+e.length);let i=this.scan(n,l=>{let o=n[l]-t,c=n[l+1]-t;return $o(e.dom,o,c).getClientRects()});return i.after?new Lr(n[i.i+1],-1):new Lr(n[i.i],1)}scanTile(e,t){if(!e.length)return new Lr(t,1);if(e.children.length==1){let c=e.children[0];if(c.isText())return this.scanText(c,t);if(c.isComposite())return this.scanTile(c,t)}let n=[t];for(let c=0,u=t;c<e.children.length;c++)n.push(u+=e.children[c].length);let i=this.scan(n,c=>{let u=e.children[c];return u.flags&48?null:(u.dom.nodeType==1?u.dom:$o(u.dom,0,u.length)).getClientRects()}),l=e.children[i.i],o=n[i.i];return l.isText()?this.scanText(l,o):l.isComposite()?this.scanTile(l,o):i.after?new Lr(n[i.i+1],-1):new Lr(o,1)}}const Ns="￿";class FS{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(qe.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Ns}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let i=e;;){this.findPointBefore(n,i);let l=this.text.length;this.readNode(i);let o=St.get(i),c=i.nextSibling;if(c==t){o!=null&&o.breakAfter&&!c&&n!=this.view.contentDOM&&this.lineBreak();break}let u=St.get(c);(o&&u?o.breakAfter:(o?o.breakAfter:_c(i))||_c(c)&&(i.nodeName!="BR"||o!=null&&o.isWidget())&&this.text.length>l)&&!qS(c,t)&&this.lineBreak(),i=c}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let l=-1,o=1,c;if(this.lineSeparator?(l=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(c=i.exec(t))&&(l=c.index,o=c[0].length),this.append(t.slice(n,l<0?t.length:l)),l<0)break;if(this.lineBreak(),o>1)for(let u of this.points)u.node==e&&u.pos>this.text.length&&(u.pos-=o-1);n=l+o}}readNode(e){let t=St.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let i=n.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(BS(e,n.node,n.offset)?t:0))}}function BS(r,e,t){for(;;){if(!e||t<oi(e))return!1;if(e==r)return!0;t=_i(e)+1,e=e.parentNode}}function qS(r,e){let t;for(;!(r==e||!r);r=r.nextSibling){let n=St.get(r);if(!(n!=null&&n.isWidget()))return!1;n&&(t||(t=[])).push(n)}if(t)for(let n of t){let i=n.overrideDOMText;if(i!=null&&i.length)return!1}return!0}class vO{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class US{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:l,impreciseAnchor:o}=e.docView,c=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=U8(e.docView.tile,t,n,0))){let u=l||o?[]:KS(e),f=new FS(u,e);f.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=f.text,this.newSel=JS(u,this.bounds.from)}else{let u=e.observer.selectionRange,f=l&&l.node==u.focusNode&&l.offset==u.focusOffset||!w1(e.contentDOM,u.focusNode)?c.main.head:e.docView.posFromDOM(u.focusNode,u.focusOffset),m=o&&o.node==u.anchorNode&&o.offset==u.anchorOffset||!w1(e.contentDOM,u.anchorNode)?c.main.anchor:e.docView.posFromDOM(u.anchorNode,u.anchorOffset),O=e.viewport;if((Se.ios||Se.chrome)&&c.main.empty&&f!=m&&(O.from>0||O.to<e.state.doc.length)){let y=Math.min(f,m),S=Math.max(f,m),w=O.from-y,b=O.to-S;(w==0||w==1||y==0)&&(b==0||b==-1||S==e.state.doc.length)&&(f=0,m=e.state.doc.length)}if(e.inputState.composing>-1&&c.ranges.length>1)this.newSel=c.replaceRange(G.range(m,f));else if(e.lineWrapping&&m==f&&!(c.main.empty&&c.main.head==f)&&e.inputState.lastTouchTime>Date.now()-100){let y=e.coordsAtPos(f,-1),S=0;y&&(S=e.inputState.lastTouchY<=y.bottom?-1:1),this.newSel=G.create([G.cursor(f,S)])}else this.newSel=G.single(m,f)}}}function U8(r,e,t,n){if(r.isComposite()){let i=-1,l=-1,o=-1,c=-1;for(let u=0,f=n,m=n;u<r.children.length;u++){let O=r.children[u],y=f+O.length;if(f<e&&y>t)return U8(O,e,t,f);if(y>=e&&i==-1&&(i=u,l=f),f>t&&O.dom.parentNode==r.dom){o=u,c=m;break}m=y,f=y+O.breakAfter}return{from:l,to:c<0?n+r.length:c,startDOM:(i?r.children[i-1].dom.nextSibling:null)||r.dom.firstChild,endDOM:o<r.children.length&&o>=0?r.children[o].dom:null}}else return r.isText()?{from:n,to:n+r.length,startDOM:r.dom,endDOM:r.dom.nextSibling}:null}function G8(r,e){let t,{newSel:n}=e,{state:i}=r,l=i.selection.main,o=r.inputState.lastKeyTime>Date.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:c,to:u}=e.bounds,f=l.from,m=null;(o===8||Se.android&&e.text.length<u-c)&&(f=l.to,m="end");let O=i.doc.sliceString(c,u,Ns),y,S;!l.empty&&l.from>=c&&l.to<=u&&(e.typeOver||O!=e.text)&&O.slice(0,l.from-c)==e.text.slice(0,l.from-c)&&O.slice(l.to-c)==e.text.slice(y=e.text.length-(O.length-(l.to-c)))?t={from:l.from,to:l.to,insert:Fe.of(e.text.slice(l.from-c,y).split(Ns))}:(S=K8(O,e.text,f-c,m))&&(Se.chrome&&o==13&&S.toB==S.from+2&&e.text.slice(S.from,S.toB)==Ns+Ns&&S.toB--,t={from:c+S.from,to:c+S.toA,insert:Fe.of(e.text.slice(S.from,S.toB).split(Ns))})}else n&&(!r.hasFocus&&i.facet(ri)||Hc(n,l))&&(n=null);if(!t&&!n)return!1;if((Se.mac||Se.android)&&t&&t.from==t.to&&t.from==l.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=G.single(n.main.anchor-1,n.main.head-1)),t={from:t.from,to:t.to,insert:Fe.of([t.insert.toString().replace("."," ")])}):i.doc.lineAt(l.from).to<l.to&&r.docView.lineHasWidget(l.to)&&r.inputState.insertingTextAt>Date.now()-50?t={from:l.from,to:l.to,insert:i.toText(r.inputState.insertingText)}:Se.chrome&&t&&t.from==t.to&&t.from==l.head&&t.insert.toString()==`
62
- `&&r.lineWrapping&&(n&&(n=G.single(n.main.anchor-1,n.main.head-1)),t={from:l.from,to:l.to,insert:Fe.of([" "])}),t)return Of(r,t,n,o);if(n&&!Hc(n,l)){let c=!1,u="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(c=!0),u=r.inputState.lastSelectionOrigin,u=="select.pointer"&&(n=q8(i.facet(Xo).map(f=>f(r)),n))),r.dispatch({selection:n,scrollIntoView:c,userEvent:u}),!0}else return!1}function Of(r,e,t,n=-1){if(Se.ios&&r.inputState.flushIOSKey(e))return!0;let i=r.state.selection.main;if(Se.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&r.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&qs(r.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||n==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&qs(r.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&qs(r.contentDOM,"Delete",46)))return!0;let l=e.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let o,c=()=>o||(o=GS(r,e,t));return r.state.facet(L8).some(u=>u(r,e.from,e.to,l,c))||r.dispatch(c()),!0}function GS(r,e,t){let n,i=r.state,l=i.selection.main,o=-1;if(e.from==e.to&&e.from<l.from||e.from>l.to){let u=e.from<l.from?-1:1,f=u<0?l.from:l.to,m=go(i.facet(Xo).map(O=>O(r)),f,u);e.from==m&&(o=m)}if(o>-1)n={changes:e,selection:G.cursor(e.from+e.insert.length,-1)};else if(e.from>=l.from&&e.to<=l.to&&e.to-e.from>=(l.to-l.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let u=l.from<e.from?i.sliceDoc(l.from,e.from):"",f=l.to>e.to?i.sliceDoc(e.to,l.to):"";n=i.replaceSelection(r.state.toText(u+e.insert.sliceString(0,void 0,r.state.lineBreak)+f))}else{let u=i.changes(e),f=t&&t.main.to<=u.newLength?t.main:void 0;if(i.selection.ranges.length>1&&(r.inputState.composing>=0||r.inputState.compositionPendingChange)&&e.to<=l.to+10&&e.to>=l.to-10){let m=r.state.sliceDoc(e.from,e.to),O,y=t&&B8(r,t.main.head);if(y){let w=e.insert.length-(e.to-e.from);O={from:y.from,to:y.to-w}}else O=r.state.doc.lineAt(l.head);let S=l.to-e.to;n=i.changeByRange(w=>{if(w.from==l.from&&w.to==l.to)return{changes:u,range:f||w.map(u)};let b=w.to-S,$=b-m.length;if(r.state.sliceDoc($,b)!=m||b>=O.from&&$<=O.to)return{range:w};let C=i.changes({from:$,to:b,insert:e.insert}),_=w.to-l.to;return{changes:C,range:f?G.range(Math.max(0,f.anchor+_),Math.max(0,f.head+_)):w.map(C)}})}else n={changes:u,selection:f&&i.selection.replaceRange(f)}}let c="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,c+=".compose",r.inputState.compositionFirstChange&&(c+=".start",r.inputState.compositionFirstChange=!1)),i.update(n,{userEvent:c,scrollIntoView:!0})}function K8(r,e,t,n){let i=Math.min(r.length,e.length),l=0;for(;l<i&&r.charCodeAt(l)==e.charCodeAt(l);)l++;if(l==i&&r.length==e.length)return null;let o=r.length,c=e.length;for(;o>0&&c>0&&r.charCodeAt(o-1)==e.charCodeAt(c-1);)o--,c--;if(n=="end"){let u=Math.max(0,l-Math.min(o,c));t-=o+u-l}if(o<l&&r.length<e.length){let u=t<=l&&t>=o?l-t:0;l-=u,c=l+(c-o),o=l}else if(c<l){let u=t<=l&&t>=c?l-t:0;l-=u,o=l+(o-c),c=l}return{from:l,toA:o,toB:c}}function KS(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:l}=r.observer.selectionRange;return t&&(e.push(new vO(t,n)),(i!=t||l!=n)&&e.push(new vO(i,l))),e}function JS(r,e){if(r.length==0)return null;let t=r[0].pos,n=r.length==2?r[1].pos:t;return t>-1&&n>-1?G.single(t+e,n+e):null}function Hc(r,e){return e.head==r.main.head&&e.anchor==r.main.anchor}class ew{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Se.safari&&e.contentDOM.addEventListener("input",()=>null),Se.gecko&&mw(e.contentDOM.ownerDocument)}handleEvent(e){!aw(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let i of n.observers)i(this.view,t);for(let i of n.handlers){if(t.defaultPrevented)break;if(i(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=tw(e),n=this.handlers,i=this.view.contentDOM;for(let l in t)if(l!="scroll"){let o=!t[l].handlers.length,c=n[l];c&&o!=!c.handlers.length&&(i.removeEventListener(l,this.handleEvent),c=null),c||i.addEventListener(l,this.handleEvent,{passive:o})}for(let l in n)l!="scroll"&&!t[l]&&i.removeEventListener(l,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&e4.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Se.android&&Se.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return Se.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&!e.shiftKey&&((t=J8.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||nw.indexOf(e.key)>-1&&e.ctrlKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,qs(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:Se.safari&&!Se.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function SO(r,e){return(t,n)=>{try{return e.call(r,n,t)}catch(i){Nr(t.state,i)}}}function tw(r){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of r){let i=n.spec,l=i&&i.plugin.domEventHandlers,o=i&&i.plugin.domEventObservers;if(l)for(let c in l){let u=l[c];u&&t(c).handlers.push(SO(n.value,u))}if(o)for(let c in o){let u=o[c];u&&t(c).observers.push(SO(n.value,u))}}for(let n in yr)t(n).handlers.push(yr[n]);for(let n in Mn)t(n).observers.push(Mn[n]);return e}const J8=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],nw="dthko",e4=[16,17,18,20,91,92,224,225],rc=6;function ic(r){return Math.max(0,r)*.7+8}function rw(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}class iw{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=k8(e.contentDOM),this.atoms=e.state.facet(Xo).map(o=>o(e));let l=e.contentDOM.ownerDocument;l.addEventListener("mousemove",this.move=this.move.bind(this)),l.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(qe.allowMultipleSelections)&&sw(e,t),this.dragging=ow(e,t)&&r4(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&rw(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,i=0,l=0,o=this.view.win.innerWidth,c=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:l,bottom:c}=this.scrollParents.y.getBoundingClientRect());let u=Y8(this.view);e.clientX-u.left<=i+rc?t=-ic(i-e.clientX):e.clientX+u.right>=o-rc&&(t=ic(e.clientX-o)),e.clientY-u.top<=l+rc?n=-ic(l-e.clientY):e.clientY+u.bottom>=c-rc&&(n=ic(e.clientY-c)),this.setScrollSpeed(t,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=q8(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function sw(r,e){let t=r.state.facet(E8);return t.length?t[0](e):Se.mac?e.metaKey:e.ctrlKey}function lw(r,e){let t=r.state.facet(j8);return t.length?t[0](e):Se.mac?!e.altKey:!e.ctrlKey}function ow(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let n=Qo(r.root);if(!n||n.rangeCount==0)return!0;let i=n.getRangeAt(0).getClientRects();for(let l=0;l<i.length;l++){let o=i[l];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function aw(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=St.get(t))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(e))return!1;return!0}const yr=Object.create(null),Mn=Object.create(null),t4=Se.ie&&Se.ie_version<15||Se.ios&&Se.webkit_version<604;function cw(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),n4(r,t.value)},50)}function xu(r,e,t){for(let n of r.facet(e))t=n(t,r);return t}function n4(r,e){e=xu(r.state,ff,e);let{state:t}=r,n,i=1,l=t.toText(e),o=l.lines==t.selection.ranges.length;if(C1!=null&&t.selection.ranges.every(u=>u.empty)&&C1==l.toString()){let u=-1;n=t.changeByRange(f=>{let m=t.doc.lineAt(f.from);if(m.from==u)return{range:f};u=m.from;let O=t.toText((o?l.line(i++).text:e)+t.lineBreak);return{changes:{from:m.from,insert:O},range:G.cursor(f.from+O.length)}})}else o?n=t.changeByRange(u=>{let f=l.line(i++);return{changes:{from:u.from,to:u.to,insert:f.text},range:G.cursor(u.from+f.length)}}):n=t.replaceSelection(l);r.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Mn.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};Mn.wheel=Mn.mousewheel=r=>{r.inputState.lastWheelEvent=Date.now()};yr.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&r.inputState.tabFocusMode!=0&&(r.inputState.tabFocusMode=Date.now()+2e3),!1);Mn.touchstart=(r,e)=>{let t=r.inputState,n=e.targetTouches[0];t.lastTouchTime=Date.now(),n&&(t.lastTouchX=n.clientX,t.lastTouchY=n.clientY),t.setSelectionOrigin("select.pointer")};Mn.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};yr.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of r.state.facet(V8))if(t=n(r,e),t)break;if(!t&&e.button==0&&(t=hw(r,e)),t){let n=!r.hasFocus;r.inputState.startMouseSelection(new iw(r,e,t,n)),n&&r.observer.ignore(()=>{b8(r.contentDOM);let l=r.root.activeElement;l&&!l.contains(r.contentDOM)&&l.blur()});let i=r.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}else r.inputState.setSelectionOrigin("select.pointer");return!1};function wO(r,e,t,n){if(n==1)return G.cursor(e,t);if(n==2)return _S(r.state,e,t);{let i=r.docView.lineAt(e,t),l=r.state.doc.lineAt(i?i.posAtEnd:e),o=i?i.posAtStart:l.from,c=i?i.posAtEnd:l.to;return c<r.state.doc.length&&c==l.to&&c++,G.range(o,c)}}const uw=Se.ie&&Se.ie_version<=11;let kO=null,bO=0,QO=0;function r4(r){if(!uw)return r.detail;let e=kO,t=QO;return kO=r,QO=Date.now(),bO=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(bO+1)%3:1}function hw(r,e){let t=r.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),n=r4(e),i=r.state.selection;return{update(l){l.docChanged&&(t.pos=l.changes.mapPos(t.pos),i=i.map(l.changes))},get(l,o,c){let u=r.posAndSideAtCoords({x:l.clientX,y:l.clientY},!1),f,m=wO(r,u.pos,u.assoc,n);if(t.pos!=u.pos&&!o){let O=wO(r,t.pos,t.assoc,n),y=Math.min(O.from,m.from),S=Math.max(O.to,m.to);m=y<m.from?G.range(y,S,m.assoc):G.range(S,y,m.assoc)}return o?i.replaceRange(i.main.extend(m.from,m.to,m.assoc)):c&&n==1&&i.ranges.length>1&&(f=fw(i,u.pos))?f:c?i.addRange(m):G.create([m])}}}function fw(r,e){for(let t=0;t<r.ranges.length;t++){let{from:n,to:i}=r.ranges[t];if(n<=e&&i>=e)return G.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}yr.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let i=r.docView.tile.nearest(e.target);if(i&&i.isWidget()){let l=i.posAtStart,o=l+i.length;(l>=t.to||o<=t.from)&&(t=G.range(l,o))}}let{inputState:n}=r;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",xu(r.state,df,r.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};yr.dragend=r=>(r.inputState.draggedContent=null,!1);function $O(r,e,t,n){if(t=xu(r.state,ff,t),!t)return;let i=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:l}=r.inputState,o=n&&l&&lw(r,e)?{from:l.from,to:l.to}:null,c={from:i,insert:t},u=r.state.changes(o?[o,c]:c);r.focus(),r.dispatch({changes:u,selection:{anchor:u.mapPos(i,-1),head:u.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),r.inputState.draggedContent=null}yr.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),i=0,l=()=>{++i==t.length&&$O(r,e,n.filter(o=>o!=null).join(r.state.lineBreak),!1)};for(let o=0;o<t.length;o++){let c=new FileReader;c.onerror=l,c.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(n[o]=c.result),l()},c.readAsText(t[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return $O(r,e,n,!0),!0}return!1};yr.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=t4?null:e.clipboardData;return t?(n4(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(cw(r),!1)};function dw(r,e){let t=r.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),r.focus()},50)}function pw(r){let e=[],t=[],n=!1;for(let i of r.selection.ranges)i.empty||(e.push(r.sliceDoc(i.from,i.to)),t.push(i));if(!e.length){let i=-1;for(let{from:l}of r.selection.ranges){let o=r.doc.lineAt(l);o.number>i&&(e.push(o.text),t.push({from:o.from,to:Math.min(r.doc.length,o.to+1)})),i=o.number}n=!0}return{text:xu(r,df,e.join(r.lineBreak)),ranges:t,linewise:n}}let C1=null;yr.copy=yr.cut=(r,e)=>{if(!mo(r.contentDOM,r.observer.selectionRange))return!1;let{text:t,ranges:n,linewise:i}=pw(r.state);if(!t&&!i)return!1;C1=i?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let l=t4?null:e.clipboardData;return l?(l.clearData(),l.setData("text/plain",t),!0):(dw(r,t),!1)};const i4=ci.define();function s4(r,e){let t=[];for(let n of r.facet(X8)){let i=n(r,e);i&&t.push(i)}return t.length?r.update({effects:t,annotations:i4.of(!0)}):null}function l4(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=s4(r.state,e);t?r.dispatch(t):r.update([])}},10)}Mn.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),l4(r)};Mn.blur=r=>{r.observer.clearSelectionRange(),l4(r)};Mn.compositionstart=Mn.compositionupdate=r=>{r.observer.editContext||(r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0))};Mn.compositionend=r=>{r.observer.editContext||(r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,Se.chrome&&Se.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50))};Mn.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};yr.beforeinput=(r,e)=>{var t,n;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(r.inputState.insertingText=e.data,r.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&r.observer.editContext){let l=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(l&&o.length){let c=o[0],u=r.posAtDOM(c.startContainer,c.startOffset),f=r.posAtDOM(c.endContainer,c.endOffset);return Of(r,{from:u,to:f,insert:r.state.toText(l)},null),!0}}let i;if(Se.chrome&&Se.android&&(i=J8.find(l=>l.inputType==e.inputType))&&(r.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let l=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>l+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return Se.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),Se.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>Mn.compositionend(r,e),20),!1};const PO=new Set;function mw(r){PO.has(r)||(PO.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}const AO=["pre-wrap","normal","pre-line","break-spaces"];let rl=!1;function CO(){rl=!1}class Ow{constructor(e){this.lineWrapping=e,this.doc=Fe.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return AO.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];i<0?n++:this.heightSamples[Math.floor(i*10)]||(t=!0,this.heightSamples[Math.floor(i*10)]=!0)}return t}refresh(e,t,n,i,l,o){let c=AO.indexOf(e)>-1,u=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=c||Math.abs(n-this.charWidth)>.1;if(this.lineWrapping=c,this.lineHeight=t,this.charWidth=n,this.textHeight=i,this.lineLength=l,u){this.heightSamples={};for(let f=0;f<o.length;f++){let m=o[f];m<0?f++:this.heightSamples[Math.floor(m*10)]=!0}}return u}}class gw{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class mr{constructor(e,t,n,i,l){this.from=e,this.length=t,this.top=n,this.height=i,this._content=l}get type(){return typeof this._content=="number"?Tn.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof us?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new mr(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var ct=(function(r){return r[r.ByPos=0]="ByPos",r[r.ByHeight=1]="ByHeight",r[r.ByPosNoHeight=2]="ByPosNoHeight",r})(ct||(ct={}));const $c=.001;class mn{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>$c&&(rl=!0),this.height=e)}replace(e,t,n){return mn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let l=this,o=n.doc;for(let c=i.length-1;c>=0;c--){let{fromA:u,toA:f,fromB:m,toB:O}=i[c],y=l.lineAt(u,ct.ByPosNoHeight,n.setDoc(t),0,0),S=y.to>=f?y:l.lineAt(f,ct.ByPosNoHeight,n,0,0);for(O+=S.to-f,f=S.to;c>0&&y.from<=i[c-1].toA;)u=i[c-1].fromA,m=i[c-1].fromB,c--,u<y.from&&(y=l.lineAt(u,ct.ByPosNoHeight,n,0,0));m+=y.from-u,u=y.from;let w=gf.build(n.setDoc(o),e,m,O);l=Yc(l,l.replace(u,f,w))}return l.updateHeight(n,0)}static empty(){return new Wn(0,0,0)}static of(e){if(e.length==1)return e[0];let t=0,n=e.length,i=0,l=0;for(;;)if(t==n)if(i>l*2){let c=e[t-1];c.break?e.splice(--t,1,c.left,null,c.right):e.splice(--t,1,c.left,c.right),n+=1+c.break,i-=c.size}else if(l>i*2){let c=e[n];c.break?e.splice(n,1,c.left,null,c.right):e.splice(n,1,c.left,c.right),n+=2+c.break,l-=c.size}else break;else if(i<l){let c=e[t++];c&&(i+=c.size)}else{let c=e[--n];c&&(l+=c.size)}let o=0;return e[t-1]==null?(o=1,t--):e[t]==null&&(o=1,n++),new xw(mn.of(e.slice(0,t)),o,mn.of(e.slice(n)))}}function Yc(r,e){return r==e?r:(r.constructor!=e.constructor&&(rl=!0),e)}mn.prototype.size=1;const yw=Re.replace({});class o4 extends mn{constructor(e,t,n){super(e,t),this.deco=n,this.spaceAbove=0}mainBlock(e,t){return new mr(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,n,i){return this.spaceAbove&&e<n+this.spaceAbove?new mr(i,0,n,this.spaceAbove,yw):this.mainBlock(n,i)}lineAt(e,t,n,i,l){let o=this.mainBlock(i,l);return this.spaceAbove?this.blockAt(0,n,i,l).join(o):o}forEachLine(e,t,n,i,l,o){e<=l+this.length&&t>=l&&o(this.lineAt(0,ct.ByPos,n,i,l))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more&&this.setMeasuredHeight(i),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Wn extends o4{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new mr(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,n){let i=n[0];return n.length==1&&(i instanceof Wn||i instanceof Jt&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Jt?i=new Wn(i.length,this.height,this.spaceAbove):i.height=this.height,this.outdated||(i.outdated=!1),i):mn.of(n)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more?this.setMeasuredHeight(i):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Jt extends mn{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,l=i-n+1,o,c=0;if(e.lineWrapping){let u=Math.min(this.height,e.lineHeight*l);o=u/l,this.length>l+1&&(c=(this.height-u)/(this.length-l-1))}else o=this.height/l;return{firstLine:n,lastLine:i,perLine:o,perChar:c}}blockAt(e,t,n,i){let{firstLine:l,lastLine:o,perLine:c,perChar:u}=this.heightMetrics(t,i);if(t.lineWrapping){let f=i+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),m=t.doc.lineAt(f),O=c+m.length*u,y=Math.max(n,e-O/2);return new mr(m.from,m.length,y,O,0)}else{let f=Math.max(0,Math.min(o-l,Math.floor((e-n)/c))),{from:m,length:O}=t.doc.line(l+f);return new mr(m,O,n+c*f,c,0)}}lineAt(e,t,n,i,l){if(t==ct.ByHeight)return this.blockAt(e,n,i,l);if(t==ct.ByPosNoHeight){let{from:S,to:w}=n.doc.lineAt(e);return new mr(S,w-S,0,0,0)}let{firstLine:o,perLine:c,perChar:u}=this.heightMetrics(n,l),f=n.doc.lineAt(e),m=c+f.length*u,O=f.number-o,y=i+c*O+u*(f.from-l-O);return new mr(f.from,f.length,Math.max(i,Math.min(y,i+this.height-m)),m,0)}forEachLine(e,t,n,i,l,o){e=Math.max(e,l),t=Math.min(t,l+this.length);let{firstLine:c,perLine:u,perChar:f}=this.heightMetrics(n,l);for(let m=e,O=i;m<=t;){let y=n.doc.lineAt(m);if(m==e){let w=y.number-c;O+=u*w+f*(e-l-w)}let S=u+f*y.length;o(new mr(y.from,y.length,O,S,0)),O+=S,m=y.to+1}}replace(e,t,n){let i=this.length-t;if(i>0){let l=n[n.length-1];l instanceof Jt?n[n.length-1]=new Jt(l.length+i):n.push(null,new Jt(i-1))}if(e>0){let l=n[0];l instanceof Jt?n[0]=new Jt(e+l.length):n.unshift(new Jt(e-1),null)}return mn.of(n)}decomposeLeft(e,t){t.push(new Jt(e-1),null)}decomposeRight(e,t){t.push(null,new Jt(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let l=t+this.length;if(i&&i.from<=t+this.length&&i.more){let o=[],c=Math.max(t,i.from),u=-1;for(i.from>t&&o.push(new Jt(i.from-t-1).updateHeight(e,t));c<=l&&i.more;){let m=e.doc.lineAt(c).length;o.length&&o.push(null);let O=i.heights[i.index++],y=0;O<0&&(y=-O,O=i.heights[i.index++]),u==-1?u=O:Math.abs(O-u)>=$c&&(u=-2);let S=new Wn(m,O,y);S.outdated=!1,o.push(S),c+=m+1}c<=l&&o.push(null,new Jt(l-c).updateHeight(e,c));let f=mn.of(o);return(u<0||Math.abs(f.height-this.height)>=$c||Math.abs(u-this.heightMetrics(e,t).perLine)>=$c)&&(rl=!0),Yc(this,f)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class xw extends mn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,i){let l=n+this.left.height;return e<l?this.left.blockAt(e,t,n,i):this.right.blockAt(e,t,l,i+this.left.length+this.break)}lineAt(e,t,n,i,l){let o=i+this.left.height,c=l+this.left.length+this.break,u=t==ct.ByHeight?e<o:e<c,f=u?this.left.lineAt(e,t,n,i,l):this.right.lineAt(e,t,n,o,c);if(this.break||(u?f.to<c:f.from>c))return f;let m=t==ct.ByPosNoHeight?ct.ByPosNoHeight:ct.ByPos;return u?f.join(this.right.lineAt(c,m,n,o,c)):this.left.lineAt(c,m,n,i,l).join(f)}forEachLine(e,t,n,i,l,o){let c=i+this.left.height,u=l+this.left.length+this.break;if(this.break)e<u&&this.left.forEachLine(e,t,n,i,l,o),t>=u&&this.right.forEachLine(e,t,n,c,u,o);else{let f=this.lineAt(u,ct.ByPos,n,i,l);e<f.from&&this.left.forEachLine(e,f.from-1,n,i,l,o),f.to>=e&&f.from<=t&&o(f),t>f.to&&this.right.forEachLine(f.to+1,t,n,c,u,o)}}replace(e,t,n){let i=this.left.length+this.break;if(t<i)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let l=[];e>0&&this.decomposeLeft(e,l);let o=l.length;for(let c of n)l.push(c);if(e>0&&TO(l,o-1),t<this.length){let c=l.length;this.decomposeRight(t,l),TO(l,c)}return mn.of(l)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<i&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?mn.of(this.break?[e,null,t]:[e,t]):(this.left=Yc(this.left,e),this.right=Yc(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:l,right:o}=this,c=t+l.length+this.break,u=null;return i&&i.from<=t+l.length&&i.more?u=l=l.updateHeight(e,t,n,i):l.updateHeight(e,t,n),i&&i.from<=c+o.length&&i.more?u=o=o.updateHeight(e,c,n,i):o.updateHeight(e,c,n),u?this.balanced(l,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function TO(r,e){let t,n;r[e]==null&&(t=r[e-1])instanceof Jt&&(n=r[e+1])instanceof Jt&&r.splice(e-1,3,new Jt(t.length+1+n.length))}const vw=5;class gf{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Wn?i.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Wn(n-this.pos,-1,0)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let i=n.widget?n.widget.estimatedHeight:0,l=n.widget?n.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new o4(o,i,n)):(o||l||i>=vw)&&this.addLineDeco(i,l,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Wn(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new Jt(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Wn)return e;let t=new Wn(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let i=this.ensureLine();i.length+=n,i.collapsed+=n,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Wn)&&!this.isCovered?this.nodes.push(new Wn(0,-1,0)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let i of this.nodes)i instanceof Wn&&i.updateHeight(this.oracle,n),n+=i?i.length:1;return this.nodes}static build(e,t,n,i){let l=new gf(n,e);return He.spans(t,n,i,l,0),l.finish(n)}}function Sw(r,e,t){let n=new ww;return He.compare(r,e,t,n,0),n.changes}class ww{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,i){(e<t||n&&n.heightRelevant||i&&i.heightRelevant)&&Bs(e,t,this.changes,5)}}function kw(r,e){let t=r.getBoundingClientRect(),n=r.ownerDocument,i=n.defaultView||window,l=Math.max(0,t.left),o=Math.min(i.innerWidth,t.right),c=Math.max(0,t.top),u=Math.min(i.innerHeight,t.bottom);for(let f=r.parentNode;f&&f!=n.body;)if(f.nodeType==1){let m=f,O=window.getComputedStyle(m);if((m.scrollHeight>m.clientHeight||m.scrollWidth>m.clientWidth)&&O.overflow!="visible"){let y=m.getBoundingClientRect();l=Math.max(l,y.left),o=Math.min(o,y.right),c=Math.max(c,y.top),u=Math.min(f==r.parentNode?i.innerHeight:u,y.bottom)}f=O.position=="absolute"||O.position=="fixed"?m.offsetParent:m.parentNode}else if(f.nodeType==11)f=f.host;else break;return{left:l-t.left,right:Math.max(l,o)-t.left,top:c-(t.top+e),bottom:Math.max(c,u)-(t.top+e)}}function bw(r){let e=r.getBoundingClientRect(),t=r.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function Qw(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Ph{constructor(e,t,n,i){this.from=e,this.to=t,this.size=n,this.displaySize=i}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],l=t[n];if(i.from!=l.from||i.to!=l.to||i.size!=l.size)return!1}return!0}draw(e,t){return Re.replace({widget:new $w(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class $w extends ps{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class ZO{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=MO,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=$t.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(pf).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Ow(n),this.stateDeco=EO(t),this.heightMap=mn.empty().applyChanges(this.stateDeco,Fe.empty,this.heightOracle.setDoc(t.doc),[new rr(0,0,0,t.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Re.set(this.lineGaps.map(i=>i.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some(({from:l,to:o})=>i>=l&&i<=o)){let{from:l,to:o}=this.lineBlockAt(i);e.push(new sc(l,o))}}return this.viewports=e.sort((n,i)=>n.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?MO:new yf(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(co(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=EO(this.state);let i=e.changedRanges,l=rr.extendWithRanges(i,Sw(n,this.stateDeco,e?e.changes:Nt.empty(this.state.doc.length))),o=this.heightMap.height,c=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);CO(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),l),(this.heightMap.height!=o||rl)&&(e.flags|=2),c?(this.scrollAnchorPos=e.changes.mapPos(c.from,-1),this.scrollAnchorHeight=c.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let u=l.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<u.from||t.range.head>u.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,t));let f=u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,e.flags|=this.updateForViewport(),(f||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(gS)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,l=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?$t.RTL:$t.LTR;let o=this.heightOracle.mustRefreshForWrapping(l)||this.mustMeasureContent==="refresh",c=t.getBoundingClientRect(),u=o||this.mustMeasureContent||this.contentDOMHeight!=c.height;this.contentDOMHeight=c.height,this.mustMeasureContent=!1;let f=0,m=0;if(c.width&&c.height){let{scaleX:Z,scaleY:X}=w8(t,c);(Z>.005&&Math.abs(this.scaleX-Z)>.005||X>.005&&Math.abs(this.scaleY-X)>.005)&&(this.scaleX=Z,this.scaleY=X,f|=16,o=u=!0)}let O=(parseInt(n.paddingTop)||0)*this.scaleY,y=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=O||this.paddingBottom!=y)&&(this.paddingTop=O,this.paddingBottom=y,f|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,f|=16);let S=k8(this.view.contentDOM,!1).y;S!=this.scrollParent&&(this.scrollParent=S,this.scrollAnchorHeight=-1,this.scrollOffset=0);let w=this.getScrollOffset();this.scrollOffset!=w&&(this.scrollAnchorHeight=-1,this.scrollOffset=w),this.scrolledToBottom=Q8(this.scrollParent||e.win);let b=(this.printing?Qw:kw)(t,this.paddingTop),$=b.top-this.pixelViewport.top,C=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_!=this.inView&&(this.inView=_,_&&(u=!0)),!this.inView&&!this.scrollTarget&&!bw(e.dom))return 0;let A=c.width;if((this.contentDOMWidth!=A||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=c.width,this.editorHeight=e.scrollDOM.clientHeight,f|=16),u){let Z=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(Z)&&(o=!0),o||i.lineWrapping&&Math.abs(A-this.contentDOMWidth)>i.charWidth){let{lineHeight:X,charWidth:M,textHeight:N}=e.docView.measureTextSize();o=X>0&&i.refresh(l,X,M,N,Math.max(5,A/M),Z),o&&(e.docView.minWidth=0,f|=16)}$>0&&C>0?m=Math.max($,C):$<0&&C<0&&(m=Math.min($,C)),CO();for(let X of this.viewports){let M=X.from==this.viewport.from?Z:e.docView.measureVisibleLineHeights(X);this.heightMap=(o?mn.empty().applyChanges(this.stateDeco,Fe.empty,this.heightOracle,[new rr(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new gw(X.from,M))}rl&&(f|=2)}let T=!this.viewportIsAppropriate(this.viewport,m)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return T&&(f&2&&(f|=this.updateScaler()),this.viewport=this.getViewport(m,this.scrollTarget),f|=this.updateForViewport()),(f&2||T)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),f|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),f}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,l=this.heightOracle,{visibleTop:o,visibleBottom:c}=this,u=new sc(i.lineAt(o-n*1e3,ct.ByHeight,l,0,0).from,i.lineAt(c+(1-n)*1e3,ct.ByHeight,l,0,0).to);if(t){let{head:f}=t.range;if(f<u.from||f>u.to){let m=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),O=i.lineAt(f,ct.ByPos,l,0,0),y;t.y=="center"?y=(O.top+O.bottom)/2-m/2:t.y=="start"||t.y=="nearest"&&f<u.from?y=O.top:y=O.bottom-m,u=new sc(i.lineAt(y-1e3/2,ct.ByHeight,l,0,0).from,i.lineAt(y+m+1e3/2,ct.ByHeight,l,0,0).to)}}return u}mapViewport(e,t){let n=t.mapPos(e.from,-1),i=t.mapPos(e.to,1);return new sc(this.heightMap.lineAt(n,ct.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,ct.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,ct.ByPos,this.heightOracle,0,0),{bottom:l}=this.heightMap.lineAt(t,ct.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:c}=this;return(e==0||i<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||l>=c+Math.max(10,Math.min(n,250)))&&i>o-2*1e3&&l<c+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let i of e)t.touchesRange(i.from,i.to)||n.push(new Ph(t.mapPos(i.from),t.mapPos(i.to),i.size,i.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,l=i>>1,o=i<<1;if(this.defaultTextDirection!=$t.LTR&&!n)return[];let c=[],u=(m,O,y,S)=>{if(O-m<l)return;let w=this.state.selection.main,b=[w.from];w.empty||b.push(w.to);for(let C of b)if(C>m&&C<O){u(m,C-10,y,S),u(C+10,O,y,S);return}let $=Aw(e,C=>C.from>=y.from&&C.to<=y.to&&Math.abs(C.from-m)<l&&Math.abs(C.to-O)<l&&!b.some(_=>C.from<_&&C.to>_));if(!$){if(O<y.to&&t&&n&&t.visibleRanges.some(A=>A.from<=O&&A.to>=O)){let A=t.moveToLineBoundary(G.cursor(O),!1,!0).head;A>m&&(O=A)}let C=this.gapSize(y,m,O,S),_=n||C<2e6?C:2e6;$=new Ph(m,O,C,_)}c.push($)},f=m=>{if(m.length<o||m.type!=Tn.Text)return;let O=Pw(m.from,m.to,this.stateDeco);if(O.total<o)return;let y=this.scrollTarget?this.scrollTarget.range.head:null,S,w;if(n){let b=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,$,C;if(y!=null){let _=oc(O,y),A=((this.visibleBottom-this.visibleTop)/2+b)/m.height;$=_-A,C=_+A}else $=(this.visibleTop-m.top-b)/m.height,C=(this.visibleBottom-m.top+b)/m.height;S=lc(O,$),w=lc(O,C)}else{let b=O.total*this.heightOracle.charWidth,$=i*this.heightOracle.charWidth,C=0;if(b>2e6)for(let X of e)X.from>=m.from&&X.from<m.to&&X.size!=X.displaySize&&X.from*this.heightOracle.charWidth+C<this.pixelViewport.left&&(C=X.size-X.displaySize);let _=this.pixelViewport.left+C,A=this.pixelViewport.right+C,T,Z;if(y!=null){let X=oc(O,y),M=((A-_)/2+$)/b;T=X-M,Z=X+M}else T=(_-$)/b,Z=(A+$)/b;S=lc(O,T),w=lc(O,Z)}S>m.from&&u(m.from,S,m,O),w<m.to&&u(w,m.to,m,O)};for(let m of this.viewportLines)Array.isArray(m.type)?m.type.forEach(f):f(m);return c}gapSize(e,t,n,i){let l=oc(i,n)-oc(i,t);return this.heightOracle.lineWrapping?e.height*l:i.total*this.heightOracle.charWidth*l}updateLineGaps(e){Ph.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Re.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];He.spans(t,this.viewport.from,this.viewport.to,{span(l,o){n.push({from:l,to:o})},point(){}},20);let i=0;if(n.length!=this.visibleRanges.length)i=12;else for(let l=0;l<n.length&&!(i&8);l++){let o=this.visibleRanges[l],c=n[l];(o.from!=c.from||o.to!=c.to)&&(i|=4,e&&e.mapPos(o.from,-1)==c.from&&e.mapPos(o.to,1)==c.to||(i|=8))}return this.visibleRanges=n,i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||co(this.heightMap.lineAt(e,ct.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||co(this.heightMap.lineAt(this.scaler.fromDOM(e),ct.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return co(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class sc{constructor(e,t){this.from=e,this.to=t}}function Pw(r,e,t){let n=[],i=r,l=0;return He.spans(t,r,e,{span(){},point(o,c){o>i&&(n.push({from:i,to:o}),l+=o-i),i=c}},20),i<e&&(n.push({from:i,to:e}),l+=e-i),{total:l,ranges:n}}function lc({total:r,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let n=Math.floor(r*t);for(let i=0;;i++){let{from:l,to:o}=e[i],c=o-l;if(n<=c)return l+n;n-=c}}function oc(r,e){let t=0;for(let{from:n,to:i}of r.ranges){if(e<=i){t+=e-n;break}t+=i-n}return t/r.total}function Aw(r,e){for(let t of r)if(e(t))return t}const MO={toDOM(r){return r},fromDOM(r){return r},scale:1,eq(r){return r==this}};function EO(r){let e=r.facet(Ou).filter(n=>typeof n!="function"),t=r.facet(mf).filter(n=>typeof n!="function");return t.length&&e.push(He.join(t)),e}class yf{constructor(e,t,n){let i=0,l=0,o=0;this.viewports=n.map(({from:c,to:u})=>{let f=t.lineAt(c,ct.ByPos,e,0,0).top,m=t.lineAt(u,ct.ByPos,e,0,0).bottom;return i+=m-f,{from:c,to:u,top:f,bottom:m,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(t.height-i);for(let c of this.viewports)c.domTop=o+(c.top-l)*this.scale,o=c.domBottom=c.domTop+(c.bottom-c.top),l=c.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let l=t<this.viewports.length?this.viewports[t]:null;if(!l||e<l.top)return i+(e-n)*this.scale;if(e<=l.bottom)return l.domTop+(e-l.top);n=l.bottom,i=l.domBottom}}fromDOM(e){for(let t=0,n=0,i=0;;t++){let l=t<this.viewports.length?this.viewports[t]:null;if(!l||e<l.domTop)return n+(e-i)/this.scale;if(e<=l.domBottom)return l.top+(e-l.domTop);n=l.bottom,i=l.domBottom}}eq(e){return e instanceof yf?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to):!1}}function co(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),n=e.toDOM(r.bottom);return new mr(r.from,r.length,t,n-t,Array.isArray(r._content)?r._content.map(i=>co(i,e)):r._content)}const ac=be.define({combine:r=>r.join(" ")}),T1=be.define({combine:r=>r.indexOf(!0)>-1}),Z1=Xi.newName(),a4=Xi.newName(),c4=Xi.newName(),u4={"&light":"."+a4,"&dark":"."+c4};function M1(r,e,t){return new Xi(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,i=>{if(i=="&")return r;if(!t||!t[i])throw new RangeError(`Unsupported selector: ${i}`);return t[i]}):r+" "+n}})}const Cw=M1("."+Z1,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},u4),Tw={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ah=Se.ie&&Se.ie_version<=11;class Zw{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new sS,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(Se.ie&&Se.ie_version<=11||Se.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&Se.android&&e.constructor.EDIT_CONTEXT!==!1&&!(Se.chrome&&Se.chrome_version<126)&&(this.editContext=new Ew(e),e.state.facet(ri)&&(e.contentDOM.editContext=this.editContext.editContext)),Ah&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,i=this.selectionRange;if(n.state.facet(ri)?n.root.activeElement!=this.dom:!mo(this.dom,i))return;let l=i.anchorNode&&n.docView.tile.nearest(i.anchorNode);if(l&&l.isWidget()&&l.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(Se.ie&&Se.ie_version<=11||Se.android&&Se.chrome)&&!n.state.selection.main.empty&&i.focusNode&&Oo(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Qo(e.root);if(!t)return!1;let n=Se.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&Mw(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let i=mo(this.dom,n);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&oS(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(n.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=t)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Tw),Ah&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Ah&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let i=()=>{let l=this.delayedAndroidKey;l&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=l.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&l.force&&qs(this.dom,l.key,l.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let l of e){let o=this.readMutation(l);o&&(o.typeOver&&(i=!0),t==-1?{from:t,to:n}=o:(t=Math.min(o.from,t),n=Math.max(o.to,n)))}return{from:t,to:n,typeOver:i}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),i=this.selectionChanged&&mo(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let l=new US(this.view,e,t,n);return this.view.docView.domChanged={newSel:l.newSel?l.newSel.main:null},l}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,i=G8(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!Hc(this.view.state.selection,t.newSel.main))&&this.view.update([]),i}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type=="attributes"),e.type=="childList"){let n=jO(t,e.previousSibling||e.target.previousSibling,-1),i=jO(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(ri)!=e.state.facet(ri)&&(e.view.contentDOM.editContext=e.state.facet(ri)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function jO(r,e,t){for(;e;){let n=St.get(e);if(n&&n.parent==r)return n;let i=e.parentNode;e=i!=r.dom?i:t>0?e.nextSibling:e.previousSibling}return null}function VO(r,e){let t=e.startContainer,n=e.startOffset,i=e.endContainer,l=e.endOffset,o=r.docView.domAtPos(r.state.selection.main.anchor,1);return Oo(o.node,o.offset,i,l)&&([t,n,i,l]=[i,l,t,n]),{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:l}}function Mw(r,e){if(e.getComposedRanges){let i=e.getComposedRanges(r.root)[0];if(i)return VO(r,i)}let t=null;function n(i){i.preventDefault(),i.stopImmediatePropagation(),t=i.getTargetRanges()[0]}return r.contentDOM.addEventListener("beforeinput",n,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",n,!0),t?VO(r,t):null}class Ew{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let i=e.state.selection.main,{anchor:l,head:o}=i,c=this.toEditorPos(n.updateRangeStart),u=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:c,drifted:!1});let f=u-c>n.text.length;c==this.from&&l<this.from?c=l:u==this.to&&l>this.to&&(u=l);let m=K8(e.state.sliceDoc(c,u),n.text,(f?i.from:i.to)-c,f?"end":null);if(!m){let y=G.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));Hc(y,i)||e.dispatch({selection:y,userEvent:"select"});return}let O={from:m.from+c,to:m.toA+c,insert:Fe.of(n.text.slice(m.from,m.toB).split(`
63
- `))};if((Se.mac||Se.android)&&O.from==o-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(O={from:c,to:u,insert:Fe.of([n.text.replace("."," ")])}),this.pendingContextChange=O,!e.state.readOnly){let y=this.to-this.from+(O.to-O.from+O.insert.length);Of(e,O,G.single(this.toEditorPos(n.selectionStart,y),this.toEditorPos(n.selectionEnd,y)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),O.from<O.to&&!O.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let i=[],l=null;for(let o=this.toEditorPos(n.rangeStart),c=this.toEditorPos(n.rangeEnd);o<c;o++){let u=e.coordsForChar(o);l=u&&new DOMRect(u.left,u.top,u.right-u.left,u.bottom-u.top)||l||new DOMRect,i.push(l)}t.updateCharacterBounds(n.rangeStart,i)},this.handlers.textformatupdate=n=>{let i=[];for(let l of n.getTextFormats()){let o=l.underlineStyle,c=l.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(c)){let u=this.toEditorPos(l.rangeStart),f=this.toEditorPos(l.rangeEnd);if(u<f){let m=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(c)?1:2}px`;i.push(Re.mark({attributes:{style:m}}).range(u,f))}}}e.dispatch({effects:z8.of(Re.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{this.editContext.updateControlBounds(n.contentDOM.getBoundingClientRect());let i=Qo(n.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,i=this.pendingContextChange;return e.changes.iterChanges((l,o,c,u,f)=>{if(n)return;let m=f.length-(o-l);if(i&&o>=i.to)if(i.from==l&&i.to==o&&i.insert.eq(f)){i=this.pendingContextChange=null,t+=m,this.to+=m;return}else i=null,this.revertPending(e.state);if(l+=t,o+=t,o<=this.from)this.from+=m,this.to+=m;else if(l<this.to){if(l<this.from||o>this.to||this.to-this.from+f.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(l),this.toContextPos(o),f.toString()),this.to+=m}t+=m}),i&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),i=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(n,i)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class ke{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(i=>i.forEach(l=>n(l,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||lS(e.parent)||document,this.viewState=new ZO(this,e.state||qe.create(e)),e.scrollTo&&e.scrollTo.is(nc)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Is).map(i=>new wh(i));for(let i of this.plugins)i.update(this);this.observer=new Zw(this),this.inputState=new ew(this),this.inputState.ensureHandlers(this.plugins),this.docView=new yO(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=e.length==1&&e[0]instanceof Et?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,i,l=this.state;for(let y of e){if(y.startState!=l)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");l=y.state}if(this.destroyed){this.viewState.state=l;return}let o=this.hasFocus,c=0,u=null;e.some(y=>y.annotation(i4))?(this.inputState.notifiedFocused=o,c=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,u=s4(l,o),u||(c=1));let f=this.observer.delayedAndroidKey,m=null;if(f?(this.observer.clearDelayedAndroidKey(),m=this.observer.readChange(),(m&&!this.state.doc.eq(l.doc)||!this.state.selection.eq(l.selection))&&(m=null)):this.observer.clear(),l.facet(qe.phrases)!=this.state.facet(qe.phrases))return this.setState(l);i=Dc.create(this,l,e),i.flags|=c;let O=this.viewState.scrollTarget;try{this.updateState=2;for(let y of e){if(O&&(O=O.map(y.changes)),y.scrollIntoView){let{main:S}=y.state.selection;O=new Us(S.empty?S:G.cursor(S.head,S.head>S.anchor?-1:1))}for(let S of y.effects)S.is(nc)&&(O=S.value.clip(this.state))}this.viewState.update(i,O),this.bidiCache=Fc.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),t=this.docView.update(i),this.state.facet(ao)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(y=>y.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(ac)!=i.state.facet(ac)&&(this.viewState.mustMeasureContent=!0),(t||n||O||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!i.empty)for(let y of this.state.facet($1))try{y(i)}catch(S){Nr(this.state,S,"update listener")}(u||m)&&Promise.resolve().then(()=>{u&&this.state==u.startState&&this.dispatch(u),m&&!G8(this,m)&&f.force&&qs(this.contentDOM,f.key,f.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new ZO(this,e),this.plugins=e.facet(Is).map(n=>new wh(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new yO(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Is),n=e.state.facet(Is);if(t!=n){let i=[];for(let l of n){let o=t.indexOf(l);if(o<0)i.push(new wh(l));else{let c=this.plugins[o];c.mustUpdate=e,i.push(c)}}for(let l of this.plugins)l.mustUpdate!=e&&l.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(n){Nr(this.state,n,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,i=this.viewState.getScrollOffset(),{scrollAnchorPos:l,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let c=0;;c++){if(o<0)if(Q8(n||this.win))l=-1,o=this.viewState.heightMap.height;else{let S=this.viewState.scrollAnchorAt(i);l=S.from,o=S.top}this.updateState=1;let u=this.viewState.measure();if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let f=[];u&4||([this.measureRequests,f]=[f,this.measureRequests]);let m=f.map(S=>{try{return S.read(this)}catch(w){return Nr(this.state,w),RO}}),O=Dc.create(this,this.state,[]),y=!1;O.flags|=u,t?t.flags|=u:t=O,this.updateState=2,O.empty||(this.updatePlugins(O),this.inputState.update(O),this.updateAttrs(),y=this.docView.update(O),y&&this.docViewUpdate());for(let S=0;S<f.length;S++)if(m[S]!=RO)try{let w=f[S];w.write&&w.write(m[S],this)}catch(w){Nr(this.state,w)}if(y&&this.docView.updateSelection(!0),!O.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let w=((l<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(l).top)-o)/this.scaleY;if((w>1||w<-1)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){i=i+w,n?n.scrollTop+=w:this.win.scrollBy(0,w),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let c of this.state.facet($1))c(t)}get themeClasses(){return Z1+" "+(this.state.facet(T1)?c4:a4)+" "+this.state.facet(ac)}updateAttrs(){let e=LO(this,D8,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(ri)?"true":"false",class:"cm-content",style:`${Se.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),LO(this,pf,t);let n=this.observer.ignore(()=>{let i=fO(this.contentDOM,this.contentAttrs,t),l=fO(this.dom,this.editorAttrs,e);return i||l});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let i of n.effects)if(i.is(ke.announce)){t&&(this.announceDOM.textContent=""),t=!1;let l=this.announceDOM.appendChild(document.createElement("div"));l.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(ao);let e=this.state.facet(ke.cspNonce);Xi.mount(this.root,this.styleModules.concat(Cw).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(n=>n.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return $h(this,e,xO(this,e,t,n))}moveByGroup(e,t){return $h(this,e,xO(this,e,t,n=>WS(this,e.head,n)))}visualLineSide(e,t){let n=this.bidiSpans(e),i=this.textDirectionAt(e.from),l=n[t?n.length-1:0];return G.cursor(l.side(t,i)+e.from,l.forward(!t,i)?1:-1)}moveToLineBoundary(e,t,n=!0){return IS(this,e,t,n)}moveVertically(e,t,n){return $h(this,e,HS(this,e,t,n))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let n=A1(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),A1(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),l=this.bidiSpans(i),o=l[Xr.find(l,e-i.from,-1,t)];return zc(n,o.dir==$t.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(N8)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>jw)return Z8(e.length);let t=this.textDirectionAt(e.from),n;for(let l of this.bidiCache)if(l.from==e.from&&l.dir==t&&(l.fresh||T8(l.isolates,n=mO(this,e))))return l.order;n||(n=mO(this,e));let i=pS(e.text,t,n);return this.bidiCache.push(new Fc(e.from,e.to,t,n,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Se.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{b8(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return nc.of(new Us(typeof e=="number"?G.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return nc.of(new Us(G.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Zn.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Zn.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=Xi.newName(),i=[ac.of(n),ao.of(M1(`.${n}`,e))];return t&&t.dark&&i.push(T1.of(!0)),i}static baseTheme(e){return Vo.lowest(ao.of(M1("."+Z1,e,u4)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&St.get(n)||St.get(e);return((t=i==null?void 0:i.root)===null||t===void 0?void 0:t.view)||null}}ke.styleModule=ao;ke.inputHandler=L8;ke.clipboardInputFilter=ff;ke.clipboardOutputFilter=df;ke.scrollHandler=_8;ke.focusChangeEffect=X8;ke.perLineTextDirection=N8;ke.exceptionSink=R8;ke.updateListener=$1;ke.editable=ri;ke.mouseSelectionStyle=V8;ke.dragMovesSelection=j8;ke.clickAddsSelectionRange=E8;ke.decorations=Ou;ke.blockWrappers=I8;ke.outerDecorations=mf;ke.atomicRanges=Xo;ke.bidiIsolatedRanges=W8;ke.scrollMargins=H8;ke.darkTheme=T1;ke.cspNonce=be.define({combine:r=>r.length?r[0]:""});ke.contentAttributes=pf;ke.editorAttributes=D8;ke.lineWrapping=ke.contentAttributes.of({class:"cm-lineWrapping"});ke.announce=Ue.define();const jw=4096,RO={};class Fc{constructor(e,t,n,i,l,o){this.from=e,this.to=t,this.dir=n,this.isolates=i,this.fresh=l,this.order=o}static update(e,t){if(t.empty&&!e.some(l=>l.fresh))return e;let n=[],i=e.length?e[e.length-1].dir:$t.LTR;for(let l=Math.max(0,e.length-10);l<e.length;l++){let o=e[l];o.dir==i&&!t.touchesRange(o.from,o.to)&&n.push(new Fc(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function LO(r,e,t){for(let n=r.state.facet(e),i=n.length-1;i>=0;i--){let l=n[i],o=typeof l=="function"?l(r):l;o&&cf(o,t)}return t}const Vw=Se.mac?"mac":Se.windows?"win":Se.linux?"linux":"key";function Rw(r,e){const t=r.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let i,l,o,c;for(let u=0;u<t.length-1;++u){const f=t[u];if(/^(cmd|meta|m)$/i.test(f))c=!0;else if(/^a(lt)?$/i.test(f))i=!0;else if(/^(c|ctrl|control)$/i.test(f))l=!0;else if(/^s(hift)?$/i.test(f))o=!0;else if(/^mod$/i.test(f))e=="mac"?c=!0:l=!0;else throw new Error("Unrecognized modifier name: "+f)}return i&&(n="Alt-"+n),l&&(n="Ctrl-"+n),c&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function cc(r,e,t){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t!==!1&&e.shiftKey&&(r="Shift-"+r),r}const Lw=Vo.default(ke.domEventHandlers({keydown(r,e){return f4(h4(e.state),r,e,"editor")}})),xf=be.define({enables:Lw}),XO=new WeakMap;function h4(r){let e=r.facet(xf),t=XO.get(e);return t||XO.set(e,t=_w(e.reduce((n,i)=>n.concat(i),[]))),t}function Xw(r,e,t){return f4(h4(r.state),e,r,t)}let Ei=null;const Nw=4e3;function _w(r,e=Vw){let t=Object.create(null),n=Object.create(null),i=(o,c)=>{let u=n[o];if(u==null)n[o]=c;else if(u!=c)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},l=(o,c,u,f,m)=>{var O,y;let S=t[o]||(t[o]=Object.create(null)),w=c.split(/ (?!$)/).map(C=>Rw(C,e));for(let C=1;C<w.length;C++){let _=w.slice(0,C).join(" ");i(_,!0),S[_]||(S[_]={preventDefault:!0,stopPropagation:!1,run:[A=>{let T=Ei={view:A,prefix:_,scope:o};return setTimeout(()=>{Ei==T&&(Ei=null)},Nw),!0}]})}let b=w.join(" ");i(b,!1);let $=S[b]||(S[b]={preventDefault:!1,stopPropagation:!1,run:((y=(O=S._any)===null||O===void 0?void 0:O.run)===null||y===void 0?void 0:y.slice())||[]});u&&$.run.push(u),f&&($.preventDefault=!0),m&&($.stopPropagation=!0)};for(let o of r){let c=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let f of c){let m=t[f]||(t[f]=Object.create(null));m._any||(m._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:O}=o;for(let y in m)m[y].run.push(S=>O(S,E1))}let u=o[e]||o.key;if(u)for(let f of c)l(f,u,o.run,o.preventDefault,o.stopPropagation),o.shift&&l(f,"Shift-"+u,o.shift,o.preventDefault,o.stopPropagation)}return t}let E1=null;function f4(r,e,t,n){E1=e;let i=K3(e),l=ds(i,0),o=jo(l)==i.length&&i!=" ",c="",u=!1,f=!1,m=!1;Ei&&Ei.view==t&&Ei.scope==n&&(c=Ei.prefix+" ",e4.indexOf(e.keyCode)<0&&(f=!0,Ei=null));let O=new Set,y=$=>{if($){for(let C of $.run)if(!O.has(C)&&(O.add(C),C(t)))return $.stopPropagation&&(m=!0),!0;$.preventDefault&&($.stopPropagation&&(m=!0),f=!0)}return!1},S=r[n],w,b;return S&&(y(S[c+cc(i,e,!o)])?u=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Se.windows&&e.ctrlKey&&e.altKey)&&!(Se.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(w=Ni[e.keyCode])&&w!=i?(y(S[c+cc(w,e,!0)])||e.shiftKey&&(b=ko[e.keyCode])!=i&&b!=w&&y(S[c+cc(b,e,!1)]))&&(u=!0):o&&e.shiftKey&&y(S[c+cc(i,e,!0)])&&(u=!0),!u&&y(S._any)&&(u=!0)),f&&(u=!0),u&&m&&e.stopPropagation(),E1=null,u}function zw(){return Iw}const Dw=Re.line({class:"cm-activeLine"}),Iw=Zn.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let n of r.state.selection.ranges){let i=r.lineBlockAt(n.head);i.from>e&&(t.push(Dw.range(i.from)),e=i.from)}return Re.set(t)}},{decorations:r=>r.decorations}),NO=be.define({combine(r){let e,t;for(let n of r)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function d4(r,e){let t=r.plugin(p4),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const p4=Zn.fromClass(class{constructor(r){this.input=r.state.facet(Bc),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(NO);this.top=new uc(r,!0,e.topContainer),this.bottom=new uc(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(NO);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new uc(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new uc(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(Bc);if(t!=this.input){let n=t.filter(u=>u),i=[],l=[],o=[],c=[];for(let u of n){let f=this.specs.indexOf(u),m;f<0?(m=u(r.view),c.push(m)):(m=this.panels[f],m.update&&m.update(r)),i.push(m),(m.top?l:o).push(m)}this.specs=n,this.panels=i,this.top.sync(l),this.bottom.sync(o);for(let u of c)u.dom.classList.add("cm-panel"),u.mount&&u.mount()}else for(let n of this.panels)n.update&&n.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>ke.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class uc{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=_O(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=_O(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function _O(r){let e=r.nextSibling;return r.remove(),e}const Bc=be.define({enables:p4});function Ww(r,e){let t,n=new Promise(o=>t=o),i=o=>Hw(o,e,t);r.state.field(Ch,!1)?r.dispatch({effects:m4.of(i)}):r.dispatch({effects:Ue.appendConfig.of(Ch.init(()=>[i]))});let l=O4.of(i);return{close:l,result:n.then(o=>((r.win.queueMicrotask||(u=>r.win.setTimeout(u,10)))(()=>{r.state.field(Ch).indexOf(i)>-1&&r.dispatch({effects:l})}),o))}}const Ch=Hn.define({create(){return[]},update(r,e){for(let t of e.effects)t.is(m4)?r=[t.value].concat(r):t.is(O4)&&(r=r.filter(n=>n!=t.value));return r},provide:r=>Bc.computeN([r],e=>e.field(r))}),m4=Ue.define(),O4=Ue.define();function Hw(r,e,t){let n=e.content?e.content(r,()=>o(null)):null;if(!n){if(n=Yt("form"),e.input){let c=Yt("input",e.input);/^(text|password|number|email|tel|url)$/.test(c.type)&&c.classList.add("cm-textfield"),c.name||(c.name="input"),n.appendChild(Yt("label",(e.label||"")+": ",c))}else n.appendChild(document.createTextNode(e.label||""));n.appendChild(document.createTextNode(" ")),n.appendChild(Yt("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let i=n.nodeName=="FORM"?[n]:n.querySelectorAll("form");for(let c=0;c<i.length;c++){let u=i[c];u.addEventListener("keydown",f=>{f.keyCode==27?(f.preventDefault(),o(null)):f.keyCode==13&&(f.preventDefault(),o(u))}),u.addEventListener("submit",f=>{f.preventDefault(),o(u)})}let l=Yt("div",n,Yt("button",{onclick:()=>o(null),"aria-label":r.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));e.class&&(l.className=e.class),l.classList.add("cm-dialog");function o(c){l.contains(l.ownerDocument.activeElement)&&r.focus(),t(c)}return{dom:l,top:e.top,mount:()=>{if(e.focus){let c;typeof e.focus=="string"?c=n.querySelector(e.focus):c=n.querySelector("input")||n.querySelector("button"),c&&"select"in c?c.select():c&&"focus"in c&&c.focus()}}}}class ai extends Li{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}ai.prototype.elementClass="";ai.prototype.toDOM=void 0;ai.prototype.mapMode=an.TrackBefore;ai.prototype.startSide=ai.prototype.endSide=-1;ai.prototype.point=!0;const Pc=be.define(),Yw=be.define(),Fw={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>He.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},yo=be.define();function Bw(r){return[g4(),yo.of({...Fw,...r})]}const zO=be.define({combine:r=>r.some(e=>e)});function g4(r){return[qw]}const qw=Zn.fromClass(class{constructor(r){this.view=r,this.domAfter=null,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(yo).map(e=>new IO(r,e)),this.fixed=!r.state.facet(zO);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}if(r.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(zO)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=He.iter(this.view.state.facet(Pc),this.view.viewport.from),n=[],i=this.gutters.map(l=>new Uw(l,this.view.viewport,-this.view.documentPadding.top));for(let l of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(l.type)){let o=!0;for(let c of l.type)if(c.type==Tn.Text&&o){j1(t,n,c.from);for(let u of i)u.line(this.view,c,n);o=!1}else if(c.widget)for(let u of i)u.widget(this.view,c)}else if(l.type==Tn.Text){j1(t,n,l.from);for(let o of i)o.line(this.view,l,n)}else if(l.widget)for(let o of i)o.widget(this.view,l);for(let l of i)l.finish();r&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(r){let e=r.startState.facet(yo),t=r.state.facet(yo),n=r.docChanged||r.heightChanged||r.viewportChanged||!He.eq(r.startState.facet(Pc),r.state.facet(Pc),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let i of this.gutters)i.update(r)&&(n=!0);else{n=!0;let i=[];for(let l of t){let o=e.indexOf(l);o<0?i.push(new IO(this.view,l)):(this.gutters[o].update(r),i.push(this.gutters[o]))}for(let l of this.gutters)l.dom.remove(),i.indexOf(l)<0&&l.destroy();for(let l of i)l.config.side=="after"?this.getDOMAfter().appendChild(l.dom):this.dom.appendChild(l.dom);this.gutters=i}return n}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:r=>ke.scrollMargins.of(e=>{let t=e.plugin(r);if(!t||t.gutters.length==0||!t.fixed)return null;let n=t.dom.offsetWidth*e.scaleX,i=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==$t.LTR?{left:n,right:i}:{right:n,left:i}})});function DO(r){return Array.isArray(r)?r:[r]}function j1(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}class Uw{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=He.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,l=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==i.elements.length){let c=new y4(e,o,l,n);i.elements.push(c),i.dom.appendChild(c.dom)}else i.elements[this.i].update(e,o,l,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];j1(this.cursor,i,t.from),n.length&&(i=i.concat(n));let l=this.gutter.config.lineMarker(e,t,i);l&&i.unshift(l);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,i)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),i=n?[n]:null;for(let l of e.state.facet(Yw)){let o=l(e,t.widget,t);o&&(i||(i=[])).push(o)}i&&this.addElement(e,t,i)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class IO{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,i=>{let l=i.target,o;if(l!=this.dom&&this.dom.contains(l)){for(;l.parentNode!=this.dom;)l=l.parentNode;let u=l.getBoundingClientRect();o=(u.top+u.bottom)/2}else o=i.clientY;let c=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[n](e,c,i)&&i.preventDefault()});this.markers=DO(t.markers(e)),t.initialSpacer&&(this.spacer=new y4(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=DO(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let n=e.view.viewport;return!He.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class y4{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),Gw(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let l=0,o=0;;){let c=o,u=l<t.length?t[l++]:null,f=!1;if(u){let m=u.elementClass;m&&(n+=" "+m);for(let O=o;O<this.markers.length;O++)if(this.markers[O].compare(u)){c=O,f=!0;break}}else c=this.markers.length;for(;o<c;){let m=this.markers[o++];if(m.toDOM){m.destroy(i);let O=i.nextSibling;i.remove(),i=O}}if(!u)break;u.toDOM&&(f?i=i.nextSibling:this.dom.insertBefore(u.toDOM(e),i)),f&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function Gw(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].compare(e[t]))return!1;return!0}const Kw=be.define(),Jw=be.define(),Ws=be.define({combine(r){return fl(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let i in t){let l=n[i],o=t[i];n[i]=l?(c,u,f)=>l(c,u,f)||o(c,u,f):o}return n}})}});class Th extends ai{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Zh(r,e){return r.state.facet(Ws).formatNumber(e,r.state)}const ek=yo.compute([Ws],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Kw)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new Th(Zh(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,n)=>{for(let i of e.state.facet(Jw)){let l=i(e,t,n);if(l)return l}return null},lineMarkerChange:e=>e.startState.facet(Ws)!=e.state.facet(Ws),initialSpacer(e){return new Th(Zh(e,WO(e.state.doc.lines)))},updateSpacer(e,t){let n=Zh(t.view,WO(t.view.state.doc.lines));return n==e.number?e:new Th(n)},domEventHandlers:r.facet(Ws).domEventHandlers,side:"before"}));function tk(r={}){return[Ws.of(r),g4(),ek]}function WO(r){let e=9;for(;e<r;)e=e*10+9;return e}const nk=new class extends ai{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},rk=Pc.compute(["selection"],r=>{let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.head).from;i>t&&(t=i,e.push(nk.range(i)))}return He.of(e)});function ik(){return rk}const x4=1024;let sk=0;class ir{constructor(e,t){this.from=e,this.to=t}}class Ie{constructor(e={}){this.id=sk++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=On.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}Ie.closedBy=new Ie({deserialize:r=>r.split(" ")});Ie.openedBy=new Ie({deserialize:r=>r.split(" ")});Ie.group=new Ie({deserialize:r=>r.split(" ")});Ie.isolate=new Ie({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});Ie.contextHash=new Ie({perNode:!0});Ie.lookAhead=new Ie({perNode:!0});Ie.mounted=new Ie({perNode:!0});class Gs{constructor(e,t,n,i=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=i}static get(e){return e&&e.props&&e.props[Ie.mounted.id]}}const lk=Object.create(null);class On{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):lk,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new On(e.name||"",t,e.id,n);if(e.props){for(let l of e.props)if(Array.isArray(l)||(l=l(i)),l){if(l[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[l[0].id]=l[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(Ie.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(Ie.group),l=-1;l<(i?i.length:0);l++){let o=t[l<0?n.name:i[l]];if(o)return o}}}}On.none=new On("",Object.create(null),0,8);class vf{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let l of e){let o=l(n);if(o){i||(i=Object.assign({},n.props));let c=o[1],u=o[0];u.combine&&u.id in i&&(c=u.combine(i[u.id],c)),i[u.id]=c}}t.push(i?new On(n.name,i,n.id,n.flags):n)}return new vf(t)}}const hc=new WeakMap,HO=new WeakMap;var rt;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays",r[r.EnterBracketed=16]="EnterBracketed"})(rt||(rt={}));class mt{constructor(e,t,n,i,l){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,l&&l.length){this.props=Object.create(null);for(let[o,c]of l)this.props[typeof o=="number"?o:o.id]=c}}toString(){let e=Gs.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let i=n.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new qc(this.topNode,e)}cursorAt(e,t=0,n=0){let i=hc.get(this)||this.topNode,l=new qc(i);return l.moveTo(e,t),hc.set(this,l._tree),l}get topNode(){return new cn(this,0,0,null)}resolve(e,t=0){let n=Po(hc.get(this)||this.topNode,e,t,!1);return hc.set(this,n),n}resolveInner(e,t=0){let n=Po(HO.get(this)||this.topNode,e,t,!0);return HO.set(this,n),n}resolveStack(e,t=0){return ck(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:l=this.length}=e,o=e.mode||0,c=(o&rt.IncludeAnonymous)>0;for(let u=this.cursor(o|rt.IncludeAnonymous);;){let f=!1;if(u.from<=l&&u.to>=i&&(!c&&u.type.isAnonymous||t(u)!==!1)){if(u.firstChild())continue;f=!0}for(;f&&n&&(c||!u.type.isAnonymous)&&n(u),!u.nextSibling();){if(!u.parent())return;f=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:kf(On.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new mt(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new mt(On.none,t,n,i)))}static build(e){return uk(e)}}mt.empty=new mt(On.none,[],[],0);class Sf{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Sf(this.buffer,this.index)}}class zi{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return On.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],l=i.name;if(/\W/.test(l)&&!i.isError&&(l=JSON.stringify(l)),e+=4,n==e)return l;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return l+"("+o.join(",")+")"}findChild(e,t,n,i,l){let{buffer:o}=this,c=-1;for(let u=e;u!=t&&!(v4(l,i,o[u+1],o[u+2])&&(c=u,n>0));u=o[u+3]);return c}slice(e,t,n){let i=this.buffer,l=new Uint16Array(t-e),o=0;for(let c=e,u=0;c<t;){l[u++]=i[c++],l[u++]=i[c++]-n;let f=l[u++]=i[c++]-n;l[u++]=i[c++]-e,o=Math.max(o,f)}return new zi(l,o,this.set)}}function v4(r,e,t,n){switch(r){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function Po(r,e,t,n){for(var i;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let o=!n&&r instanceof cn&&r.index<0?null:r.parent;if(!o)return r;r=o}let l=n?0:rt.IgnoreOverlays;if(n)for(let o=r,c=o.parent;c;o=c,c=o.parent)o instanceof cn&&o.index<0&&((i=c.enter(e,t,l))===null||i===void 0?void 0:i.from)!=o.from&&(r=c);for(;;){let o=r.enter(e,t,l);if(!o)return r;r=o}}class S4{cursor(e=0){return new qc(this,e)}getChild(e,t=null,n=null){let i=YO(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return YO(this,e,t,n)}resolve(e,t=0){return Po(this,e,t,!1)}resolveInner(e,t=0){return Po(this,e,t,!0)}matchContext(e){return V1(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let i=t.lastChild;if(!i||i.to!=t.to)break;i.type.isError&&i.from==i.to?(n=t,t=i.prevSibling):t=i}return n}get node(){return this}get next(){return this.parent}}class cn extends S4{constructor(e,t,n,i){super(),this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,l=0){for(let o=this;;){for(let{children:c,positions:u}=o._tree,f=t>0?c.length:-1;e!=f;e+=t){let m=c[e],O=u[e]+o.from,y;if(!(!(l&rt.EnterBracketed&&m instanceof mt&&(y=Gs.get(m))&&!y.overlay&&y.bracketed&&n>=O&&n<=O+m.length)&&!v4(i,n,O,O+m.length))){if(m instanceof zi){if(l&rt.ExcludeBuffers)continue;let S=m.findChild(0,m.buffer.length,t,n-O,i);if(S>-1)return new _r(new ok(o,m,e,O),null,S)}else if(l&rt.IncludeAnonymous||!m.type.isAnonymous||wf(m)){let S;if(!(l&rt.IgnoreMounts)&&(S=Gs.get(m))&&!S.overlay)return new cn(S.tree,O,e,o);let w=new cn(m,O,e,o);return l&rt.IncludeAnonymous||!w.type.isAnonymous?w:w.nextChild(t<0?m.children.length-1:0,t,n,i,l)}}}if(l&rt.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let i;if(!(n&rt.IgnoreOverlays)&&(i=Gs.get(this._tree))&&i.overlay){let l=e-this.from,o=n&rt.EnterBracketed&&i.bracketed;for(let{from:c,to:u}of i.overlay)if((t>0||o?c<=l:c<l)&&(t<0||o?u>=l:u>l))return new cn(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function YO(r,e,t,n){let i=r.cursor(),l=[];if(!i.firstChild())return l;if(t!=null){for(let o=!1;!o;)if(o=i.type.is(t),!i.nextSibling())return l}for(;;){if(n!=null&&i.type.is(n))return l;if(i.type.is(e)&&l.push(i.node),!i.nextSibling())return n==null?l:[]}}function V1(r,e,t=e.length-1){for(let n=r;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class ok{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class _r extends S4{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,l=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return l<0?null:new _r(this.context,this,l)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&rt.ExcludeBuffers)return null;let{buffer:i}=this.context,l=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return l<0?null:new _r(this.context,this,l)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new _r(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new _r(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,l=n.buffer[this.index+3];if(l>i){let o=n.buffer[this.index+1];e.push(n.slice(i,l,o)),t.push(0)}return new mt(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function w4(r){if(!r.length)return null;let e=0,t=r[0];for(let l=1;l<r.length;l++){let o=r[l];(o.from>t.from||o.to<t.to)&&(t=o,e=l)}let n=t instanceof cn&&t.index<0?null:t.parent,i=r.slice();return n?i[e]=n:i.splice(e,1),new ak(i,t)}class ak{constructor(e,t){this.heads=e,this.node=t}get next(){return w4(this.heads)}}function ck(r,e,t){let n=r.resolveInner(e,t),i=null;for(let l=n instanceof cn?n:n.context.parent;l;l=l.parent)if(l.index<0){let o=l.parent;(i||(i=[n])).push(o.resolve(e,t)),l=o}else{let o=Gs.get(l.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let c=new cn(o.tree,o.overlay[0].from+l.from,-1,l);(i||(i=[n])).push(Po(c,e,t,!1))}}return i?w4(i):n}class qc{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~rt.EnterBracketed,e instanceof cn)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof cn?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,l=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return l<0?!1:(this.stack.push(this.index),this.yieldBuf(l))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&rt.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&rt.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&rt.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let l=0;l<this.index;l++)if(i.buffer.buffer[l+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let l=t+e,o=e<0?-1:n._tree.children.length;l!=o;l+=e){let c=n._tree.children[l];if(this.mode&rt.IncludeAnonymous||c instanceof zi||!c.type.isAnonymous||wf(c))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,l=this.stack.length;l>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=l+1;break e}i=this.stack[--l]}for(let i=n;i<this.stack.length;i++)t=new _r(this.buffer,t,this.stack[i]);return this.bufferNode=new _r(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&t&&t(this),i=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return V1(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,l=this.stack.length-1;i>=0;l--){if(l<0)return V1(this._tree,e,i);let o=n[t.buffer[this.stack[l]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function wf(r){return r.children.some(e=>e instanceof zi||!e.type.isAnonymous||wf(e))}function uk(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=x4,reused:l=[],minRepeatType:o=n.types.length}=r,c=Array.isArray(t)?new Sf(t,t.length):t,u=n.types,f=0,m=0;function O(Z,X,M,N,Y,fe){let{id:K,start:te,end:F,size:re}=c,B=m,he=f;if(re<0)if(c.next(),re==-1){let Q=l[K];M.push(Q),N.push(te-Z);return}else if(re==-3){f=K;return}else if(re==-4){m=K;return}else throw new RangeError(`Unrecognized record size: ${re}`);let ce=u[K],H,J,U=te-Z;if(F-te<=i&&(J=$(c.pos-X,Y))){let Q=new Uint16Array(J.size-J.skip),z=c.pos-J.size,ie=Q.length;for(;c.pos>z;)ie=C(J.start,Q,ie);H=new zi(Q,F-J.start,n),U=J.start-Z}else{let Q=c.pos-re;c.next();let z=[],ie=[],de=K>=o?K:-1,ee=0,Qe=F;for(;c.pos>Q;)de>=0&&c.id==de&&c.size>=0?(c.end<=Qe-i&&(w(z,ie,te,ee,c.end,Qe,de,B,he),ee=z.length,Qe=c.end),c.next()):fe>2500?y(te,Q,z,ie):O(te,Q,z,ie,de,fe+1);if(de>=0&&ee>0&&ee<z.length&&w(z,ie,te,ee,te,Qe,de,B,he),z.reverse(),ie.reverse(),de>-1&&ee>0){let Le=S(ce,he);H=kf(ce,z,ie,0,z.length,0,F-te,Le,Le)}else H=b(ce,z,ie,F-te,B-F,he)}M.push(H),N.push(U)}function y(Z,X,M,N){let Y=[],fe=0,K=-1;for(;c.pos>X;){let{id:te,start:F,end:re,size:B}=c;if(B>4)c.next();else{if(K>-1&&F<K)break;K<0&&(K=re-i),Y.push(te,F,re),fe++,c.next()}}if(fe){let te=new Uint16Array(fe*4),F=Y[Y.length-2];for(let re=Y.length-3,B=0;re>=0;re-=3)te[B++]=Y[re],te[B++]=Y[re+1]-F,te[B++]=Y[re+2]-F,te[B++]=B;M.push(new zi(te,Y[2]-F,n)),N.push(F-Z)}}function S(Z,X){return(M,N,Y)=>{let fe=0,K=M.length-1,te,F;if(K>=0&&(te=M[K])instanceof mt){if(!K&&te.type==Z&&te.length==Y)return te;(F=te.prop(Ie.lookAhead))&&(fe=N[K]+te.length+F)}return b(Z,M,N,Y,fe,X)}}function w(Z,X,M,N,Y,fe,K,te,F){let re=[],B=[];for(;Z.length>N;)re.push(Z.pop()),B.push(X.pop()+M-Y);Z.push(b(n.types[K],re,B,fe-Y,te-fe,F)),X.push(Y-M)}function b(Z,X,M,N,Y,fe,K){if(fe){let te=[Ie.contextHash,fe];K=K?[te].concat(K):[te]}if(Y>25){let te=[Ie.lookAhead,Y];K=K?[te].concat(K):[te]}return new mt(Z,X,M,N,K)}function $(Z,X){let M=c.fork(),N=0,Y=0,fe=0,K=M.end-i,te={size:0,start:0,skip:0};e:for(let F=M.pos-Z;M.pos>F;){let re=M.size;if(M.id==X&&re>=0){te.size=N,te.start=Y,te.skip=fe,fe+=4,N+=4,M.next();continue}let B=M.pos-re;if(re<0||B<F||M.start<K)break;let he=M.id>=o?4:0,ce=M.start;for(M.next();M.pos>B;){if(M.size<0)if(M.size==-3||M.size==-4)he+=4;else break e;else M.id>=o&&(he+=4);M.next()}Y=ce,N+=re,fe+=he}return(X<0||N==Z)&&(te.size=N,te.start=Y,te.skip=fe),te.size>4?te:void 0}function C(Z,X,M){let{id:N,start:Y,end:fe,size:K}=c;if(c.next(),K>=0&&N<o){let te=M;if(K>4){let F=c.pos-(K-4);for(;c.pos>F;)M=C(Z,X,M)}X[--M]=te,X[--M]=fe-Z,X[--M]=Y-Z,X[--M]=N}else K==-3?f=N:K==-4&&(m=N);return M}let _=[],A=[];for(;c.pos>0;)O(r.start||0,r.bufferStart||0,_,A,-1,0);let T=(e=r.length)!==null&&e!==void 0?e:_.length?A[0]+_[0].length:0;return new mt(u[r.topID],_.reverse(),A.reverse(),T)}const FO=new WeakMap;function Ac(r,e){if(!r.isAnonymous||e instanceof zi||e.type!=r)return 1;let t=FO.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof mt)){t=1;break}t+=Ac(r,n)}FO.set(e,t)}return t}function kf(r,e,t,n,i,l,o,c,u){let f=0;for(let w=n;w<i;w++)f+=Ac(r,e[w]);let m=Math.ceil(f*1.5/8),O=[],y=[];function S(w,b,$,C,_){for(let A=$;A<C;){let T=A,Z=b[A],X=Ac(r,w[A]);for(A++;A<C;A++){let M=Ac(r,w[A]);if(X+M>=m)break;X+=M}if(A==T+1){if(X>m){let M=w[T];S(M.children,M.positions,0,M.children.length,b[T]+_);continue}O.push(w[T])}else{let M=b[A-1]+w[A-1].length-Z;O.push(kf(r,w,b,T,A,Z,M,null,u))}y.push(Z+_-l)}}return S(e,t,n,i,0),(c||u)(O,y,o)}class k4{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof _r?this.setBuffer(e.context.buffer,e.index,t):e instanceof cn&&this.map.set(e.tree,t)}get(e){return e instanceof _r?this.getBuffer(e.context.buffer,e.index):e instanceof cn?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class li{constructor(e,t,n,i,l=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(l?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let i=[new li(0,e.length,e,0,!1,n)];for(let l of t)l.to>e.length&&i.push(l);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],l=1,o=e.length?e[0]:null;for(let c=0,u=0,f=0;;c++){let m=c<t.length?t[c]:null,O=m?m.fromA:1e9;if(O-u>=n)for(;o&&o.from<O;){let y=o;if(u>=y.from||O<=y.to||f){let S=Math.max(y.from,u)-f,w=Math.min(y.to,O)-f;y=S>=w?null:new li(S,w,y.tree,y.offset+f,c>0,!!m)}if(y&&i.push(y),o.to>O)break;o=l<e.length?e[l++]:null}if(!m)break;u=m.toA,f=m.toA-m.toB}return i}}class b4{startParse(e,t,n){return typeof e=="string"&&(e=new hk(e)),n=n?n.length?n.map(i=>new ir(i.from,i.to)):[new ir(0,0)]:[new ir(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let l=i.advance();if(l)return l}}}class hk{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function fk(r){return(e,t,n,i)=>new pk(e,r,t,n,i)}class BO{constructor(e,t,n,i,l,o){this.parser=e,this.parse=t,this.overlay=n,this.bracketed=i,this.target=l,this.from=o}}function qO(r){if(!r.length||r.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(r))}class dk{constructor(e,t,n,i,l,o,c,u){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=l,this.bracketed=o,this.target=c,this.prev=u,this.depth=0,this.ranges=[]}}const R1=new Ie({perNode:!0});class pk{constructor(e,t,n,i,l){this.nest=t,this.input=n,this.fragments=i,this.ranges=l,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new mt(n.type,n.children,n.positions,n.length,n.propValues.concat([[R1,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[Ie.mounted.id]=new Gs(t,e.overlay,e.parser,e.bracketed),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new gk(this.fragments),t=null,n=null,i=new qc(new cn(this.baseTree,this.ranges[0].from,0,null),rt.IncludeAnonymous|rt.IgnoreMounts);e:for(let l,o;;){let c=!0,u;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)c=!1;else if(e.hasNode(i)){if(t){let f=t.mounts.find(m=>m.frag.from<=i.from&&m.frag.to>=i.to&&m.mount.overlay);if(f)for(let m of f.mount.overlay){let O=m.from+f.pos,y=m.to+f.pos;O>=i.from&&y<=i.to&&!t.ranges.some(S=>S.from<y&&S.to>O)&&t.ranges.push({from:O,to:y})}}c=!1}else if(n&&(o=mk(n.ranges,i.from,i.to)))c=o!=2;else if(!i.type.isAnonymous&&(l=this.nest(i,this.input))&&(i.from<i.to||!l.overlay)){i.tree||(Ok(i),t&&t.depth++,n&&n.depth++);let f=e.findMounts(i.from,l.parser);if(typeof l.overlay=="function")t=new dk(l.parser,l.overlay,f,this.inner.length,i.from,!!l.bracketed,i.tree,t);else{let m=KO(this.ranges,l.overlay||(i.from<i.to?[new ir(i.from,i.to)]:[]));m.length&&qO(m),(m.length||!l.overlay)&&this.inner.push(new BO(l.parser,m.length?l.parser.startParse(this.input,JO(f,m),m):l.parser.startParse(""),l.overlay?l.overlay.map(O=>new ir(O.from-i.from,O.to-i.from)):null,!!l.bracketed,i.tree,m.length?m[0].from:i.from)),l.overlay?m.length&&(n={ranges:m,depth:0,prev:n}):c=!1}}else if(t&&(u=t.predicate(i))&&(u===!0&&(u=new ir(i.from,i.to)),u.from<u.to)){let f=t.ranges.length-1;f>=0&&t.ranges[f].to==u.from?t.ranges[f]={from:t.ranges[f].from,to:u.to}:t.ranges.push(u)}if(c&&i.firstChild())t&&t.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(t&&!--t.depth){let f=KO(this.ranges,t.ranges);f.length&&(qO(f),this.inner.splice(t.index,0,new BO(t.parser,t.parser.startParse(this.input,JO(t.mounts,f),f),t.ranges.map(m=>new ir(m.from-t.start,m.to-t.start)),t.bracketed,t.target,f[0].from))),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function mk(r,e,t){for(let n of r){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function UO(r,e,t,n,i,l){if(e<t){let o=r.buffer[e+1];n.push(r.slice(e,t,o)),i.push(o-l)}}function Ok(r){let{node:e}=r,t=[],n=e.context.buffer;do t.push(r.index),r.parent();while(!r.tree);let i=r.tree,l=i.children.indexOf(n),o=i.children[l],c=o.buffer,u=[l];function f(m,O,y,S,w,b){let $=t[b],C=[],_=[];UO(o,m,$,C,_,S);let A=c[$+1],T=c[$+2];u.push(C.length);let Z=b?f($+4,c[$+3],o.set.types[c[$]],A,T-A,b-1):e.toTree();return C.push(Z),_.push(A-S),UO(o,c[$+3],O,C,_,S),new mt(y,C,_,w)}i.children[l]=f(0,c.length,On.none,0,o.length,t.length-1);for(let m of u){let O=r.tree.children[m],y=r.tree.positions[m];r.yield(new cn(O,y+r.from,m,r._tree))}}class GO{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(rt.IncludeAnonymous|rt.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,rt.IgnoreOverlays|rt.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof mt)t=t.children[0];else break}return!1}}let gk=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(R1))!==null&&t!==void 0?t:n.to,this.inner=new GO(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(R1))!==null&&e!==void 0?e:t.to,this.inner=new GO(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let l=this.inner.cursor.node;l;l=l.parent){let o=(n=l.tree)===null||n===void 0?void 0:n.prop(Ie.mounted);if(o&&o.parser==t)for(let c=this.fragI;c<this.fragments.length;c++){let u=this.fragments[c];if(u.from>=l.to)break;u.tree==this.curFrag.tree&&i.push({frag:u,pos:l.from-u.offset,mount:o})}}}return i}};function KO(r,e){let t=null,n=e;for(let i=1,l=0;i<r.length;i++){let o=r[i-1].to,c=r[i].from;for(;l<n.length;l++){let u=n[l];if(u.from>=c)break;u.to<=o||(t||(n=t=e.slice()),u.from<o?(t[l]=new ir(u.from,o),u.to>c&&t.splice(l+1,0,new ir(c,u.to))):u.to>c?t[l--]=new ir(c,u.to):t.splice(l--,1))}}return n}function yk(r,e,t,n){let i=0,l=0,o=!1,c=!1,u=-1e9,f=[];for(;;){let m=i==r.length?1e9:o?r[i].to:r[i].from,O=l==e.length?1e9:c?e[l].to:e[l].from;if(o!=c){let y=Math.max(u,t),S=Math.min(m,O,n);y<S&&f.push(new ir(y,S))}if(u=Math.min(m,O),u==1e9)break;m==u&&(o?(o=!1,i++):o=!0),O==u&&(c?(c=!1,l++):c=!0)}return f}function JO(r,e){let t=[];for(let{pos:n,mount:i,frag:l}of r){let o=n+(i.overlay?i.overlay[0].from:0),c=o+i.tree.length,u=Math.max(l.from,o),f=Math.min(l.to,c);if(i.overlay){let m=i.overlay.map(y=>new ir(y.from+n,y.to+n)),O=yk(e,m,u,f);for(let y=0,S=u;;y++){let w=y==O.length,b=w?f:O[y].from;if(b>S&&t.push(new li(S,b,i.tree,-o,l.from>=S||l.openStart,l.to<=b||l.openEnd)),w)break;S=O[y].to}}else t.push(new li(u,f,i.tree,-o,l.from>=o||l.openStart,l.to<=c||l.openEnd))}return t}let xk=0;class tr{constructor(e,t,n,i){this.name=e,this.set=t,this.base=n,this.modified=i,this.id=xk++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n=typeof e=="string"?e:"?";if(e instanceof tr&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let i=new tr(n,[],null,[]);if(i.set.push(i),t)for(let l of t.set)i.set.push(l);return i}static defineModifier(e){let t=new Uc(e);return n=>n.modified.indexOf(t)>-1?n:Uc.get(n.base||n,n.modified.concat(t).sort((i,l)=>i.id-l.id))}}let vk=0;class Uc{constructor(e){this.name=e,this.instances=[],this.id=vk++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(c=>c.base==e&&Sk(t,c.modified));if(n)return n;let i=[],l=new tr(e.name,i,e,t);for(let c of t)c.instances.push(l);let o=wk(t);for(let c of e.set)if(!c.modified.length)for(let u of o)i.push(Uc.get(c,u));return l}}function Sk(r,e){return r.length==e.length&&r.every((t,n)=>t==e[n])}function wk(r){let e=[[]];for(let t=0;t<r.length;t++)for(let n=0,i=e.length;n<i;n++)e.push(e[n].concat(r[t]));return e.sort((t,n)=>n.length-t.length)}function vu(r){let e=Object.create(null);for(let t in r){let n=r[t];Array.isArray(n)||(n=[n]);for(let i of t.split(" "))if(i){let l=[],o=2,c=i;for(let O=0;;){if(c=="..."&&O>0&&O+3==i.length){o=1;break}let y=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!y)throw new RangeError("Invalid path: "+i);if(l.push(y[0]=="*"?"":y[0][0]=='"'?JSON.parse(y[0]):y[0]),O+=y[0].length,O==i.length)break;let S=i[O++];if(O==i.length&&S=="!"){o=0;break}if(S!="/")throw new RangeError("Invalid path: "+i);c=i.slice(O)}let u=l.length-1,f=l[u];if(!f)throw new RangeError("Invalid path: "+i);let m=new Ao(n,o,u>0?l.slice(0,u):null);e[f]=m.sort(e[f])}}return Q4.add(e)}const Q4=new Ie({combine(r,e){let t,n,i;for(;r||e;){if(!r||e&&r.depth>=e.depth?(i=e,e=e.next):(i=r,r=r.next),t&&t.mode==i.mode&&!i.context&&!t.context)continue;let l=new Ao(i.tags,i.mode,i.context);t?t.next=l:n=l,t=l}return n}});class Ao{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Ao.empty=new Ao([],2,null);function $4(r,e){let t=Object.create(null);for(let l of r)if(!Array.isArray(l.tag))t[l.tag.id]=l.class;else for(let o of l.tag)t[o.id]=l.class;let{scope:n,all:i=null}=e||{};return{style:l=>{let o=i;for(let c of l)for(let u of c.set){let f=t[u.id];if(f){o=o?o+" "+f:f;break}}return o},scope:n}}function kk(r,e){let t=null;for(let n of r){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function bk(r,e,t,n=0,i=r.length){let l=new Qk(n,Array.isArray(e)?e:[e],t);l.highlightRange(r.cursor(),n,i,"",l.highlighters),l.flush(i)}class Qk{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,l){let{type:o,from:c,to:u}=e;if(c>=n||u<=t)return;o.isTop&&(l=this.highlighters.filter(S=>!S.scope||S.scope(o)));let f=i,m=$k(e)||Ao.empty,O=kk(l,m.tags);if(O&&(f&&(f+=" "),f+=O,m.mode==1&&(i+=(i?" ":"")+O)),this.startSpan(Math.max(t,c),f),m.opaque)return;let y=e.tree&&e.tree.prop(Ie.mounted);if(y&&y.overlay){let S=e.node.enter(y.overlay[0].from+c,1),w=this.highlighters.filter($=>!$.scope||$.scope(y.tree.type)),b=e.firstChild();for(let $=0,C=c;;$++){let _=$<y.overlay.length?y.overlay[$]:null,A=_?_.from+c:u,T=Math.max(t,C),Z=Math.min(n,A);if(T<Z&&b)for(;e.from<Z&&(this.highlightRange(e,T,Z,i,l),this.startSpan(Math.min(Z,e.to),f),!(e.to>=A||!e.nextSibling())););if(!_||A>n)break;C=_.to+c,C>t&&(this.highlightRange(S.cursor(),Math.max(t,_.from+c),Math.min(n,C),"",w),this.startSpan(Math.min(n,C),f))}b&&e.parent()}else if(e.firstChild()){y&&(i="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,l),this.startSpan(Math.min(n,e.to),f)}while(e.nextSibling());e.parent()}}}function $k(r){let e=r.type.prop(Q4);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}const ye=tr.define,fc=ye(),Zi=ye(),e2=ye(Zi),t2=ye(Zi),Mi=ye(),dc=ye(Mi),Mh=ye(Mi),Vr=ye(),rs=ye(Vr),Mr=ye(),Er=ye(),L1=ye(),no=ye(L1),pc=ye(),V={comment:fc,lineComment:ye(fc),blockComment:ye(fc),docComment:ye(fc),name:Zi,variableName:ye(Zi),typeName:e2,tagName:ye(e2),propertyName:t2,attributeName:ye(t2),className:ye(Zi),labelName:ye(Zi),namespace:ye(Zi),macroName:ye(Zi),literal:Mi,string:dc,docString:ye(dc),character:ye(dc),attributeValue:ye(dc),number:Mh,integer:ye(Mh),float:ye(Mh),bool:ye(Mi),regexp:ye(Mi),escape:ye(Mi),color:ye(Mi),url:ye(Mi),keyword:Mr,self:ye(Mr),null:ye(Mr),atom:ye(Mr),unit:ye(Mr),modifier:ye(Mr),operatorKeyword:ye(Mr),controlKeyword:ye(Mr),definitionKeyword:ye(Mr),moduleKeyword:ye(Mr),operator:Er,derefOperator:ye(Er),arithmeticOperator:ye(Er),logicOperator:ye(Er),bitwiseOperator:ye(Er),compareOperator:ye(Er),updateOperator:ye(Er),definitionOperator:ye(Er),typeOperator:ye(Er),controlOperator:ye(Er),punctuation:L1,separator:ye(L1),bracket:no,angleBracket:ye(no),squareBracket:ye(no),paren:ye(no),brace:ye(no),content:Vr,heading:rs,heading1:ye(rs),heading2:ye(rs),heading3:ye(rs),heading4:ye(rs),heading5:ye(rs),heading6:ye(rs),contentSeparator:ye(Vr),list:ye(Vr),quote:ye(Vr),emphasis:ye(Vr),strong:ye(Vr),link:ye(Vr),monospace:ye(Vr),strikethrough:ye(Vr),inserted:ye(),deleted:ye(),changed:ye(),invalid:ye(),meta:pc,documentMeta:ye(pc),annotation:ye(pc),processingInstruction:ye(pc),definition:tr.defineModifier("definition"),constant:tr.defineModifier("constant"),function:tr.defineModifier("function"),standard:tr.defineModifier("standard"),local:tr.defineModifier("local"),special:tr.defineModifier("special")};for(let r in V){let e=V[r];e instanceof tr&&(e.name=r)}$4([{tag:V.link,class:"tok-link"},{tag:V.heading,class:"tok-heading"},{tag:V.emphasis,class:"tok-emphasis"},{tag:V.strong,class:"tok-strong"},{tag:V.keyword,class:"tok-keyword"},{tag:V.atom,class:"tok-atom"},{tag:V.bool,class:"tok-bool"},{tag:V.url,class:"tok-url"},{tag:V.labelName,class:"tok-labelName"},{tag:V.inserted,class:"tok-inserted"},{tag:V.deleted,class:"tok-deleted"},{tag:V.literal,class:"tok-literal"},{tag:V.string,class:"tok-string"},{tag:V.number,class:"tok-number"},{tag:[V.regexp,V.escape,V.special(V.string)],class:"tok-string2"},{tag:V.variableName,class:"tok-variableName"},{tag:V.local(V.variableName),class:"tok-variableName tok-local"},{tag:V.definition(V.variableName),class:"tok-variableName tok-definition"},{tag:V.special(V.variableName),class:"tok-variableName2"},{tag:V.definition(V.propertyName),class:"tok-propertyName tok-definition"},{tag:V.typeName,class:"tok-typeName"},{tag:V.namespace,class:"tok-namespace"},{tag:V.className,class:"tok-className"},{tag:V.macroName,class:"tok-macroName"},{tag:V.propertyName,class:"tok-propertyName"},{tag:V.operator,class:"tok-operator"},{tag:V.comment,class:"tok-comment"},{tag:V.meta,class:"tok-meta"},{tag:V.invalid,class:"tok-invalid"},{tag:V.punctuation,class:"tok-punctuation"}]);var Eh;const Hs=new Ie;function P4(r){return be.define({combine:r?e=>e.concat(r):void 0})}const bf=new Ie;class gr{constructor(e,t,n=[],i=""){this.data=e,this.name=i,qe.prototype.hasOwnProperty("tree")||Object.defineProperty(qe.prototype,"tree",{get(){return Pt(this)}}),this.parser=t,this.extension=[Di.of(this),qe.languageData.of((l,o,c)=>{let u=n2(l,o,c),f=u.type.prop(Hs);if(!f)return[];let m=l.facet(f),O=u.type.prop(bf);if(O){let y=u.resolve(o-u.from,c);for(let S of O)if(S.test(y,l)){let w=l.facet(S.facet);return S.type=="replace"?w:w.concat(m)}}return m})].concat(n)}isActiveAt(e,t,n=-1){return n2(e,t,n).type.prop(Hs)==this.data}findRegions(e){let t=e.facet(Di);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(l,o)=>{if(l.prop(Hs)==this.data){n.push({from:o,to:o+l.length});return}let c=l.prop(Ie.mounted);if(c){if(c.tree.prop(Hs)==this.data){if(c.overlay)for(let u of c.overlay)n.push({from:u.from+o,to:u.to+o});else n.push({from:o,to:o+l.length});return}else if(c.overlay){let u=n.length;if(i(c.tree,c.overlay[0].from+o),n.length>u)return}}for(let u=0;u<l.children.length;u++){let f=l.children[u];f instanceof mt&&i(f,l.positions[u]+o)}};return i(Pt(e),0),n}get allowsNesting(){return!0}}gr.setState=Ue.define();function n2(r,e,t){let n=r.facet(Di),i=Pt(r).topNode;if(!n||n.allowsNesting)for(let l=i;l;l=l.enter(e,t,rt.ExcludeBuffers|rt.EnterBracketed))l.type.isTop&&(i=l);return i}class il extends gr{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=P4(e.languageData);return new il(t,e.parser.configure({props:[Hs.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new il(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Pt(r){let e=r.field(gr.state,!1);return e?e.tree:mt.empty}class Pk{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let ro=null;class Gc{constructor(e,t,n=[],i,l,o,c,u){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=l,this.viewport=o,this.skipped=c,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Gc(e,t,[],mt.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Pk(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=mt.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(li.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(li.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ro;ro=this;try{return e()}finally{ro=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=r2(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:l,viewport:o,skipped:c}=this;if(this.takeTree(),!e.empty){let u=[];if(e.iterChangedRanges((f,m,O,y)=>u.push({fromA:f,toA:m,fromB:O,toB:y})),n=li.applyChanges(n,u),i=mt.empty,l=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){c=[];for(let f of this.skipped){let m=e.mapPos(f.from,1),O=e.mapPos(f.to,-1);m<O&&c.push({from:m,to:O})}}}return new Gc(this.parser,t,n,i,l,o,c,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:i,to:l}=this.skipped[n];i<e.to&&l>e.from&&(this.fragments=r2(this.fragments,i,l),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends b4{createParse(t,n,i){let l=i[0].from,o=i[i.length-1].to;return{parsedPos:l,advance(){let u=ro;if(u){for(let f of i)u.tempSkipped.push(f);e&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,e]):e)}return this.parsedPos=o,new mt(On.none,[],[],o-l)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return ro}}function r2(r,e,t){return li.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}class sl{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new sl(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Gc.create(e.facet(Di).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new sl(n)}}gr.state=Hn.define({create:sl.init,update(r,e){for(let t of e.effects)if(t.is(gr.setState))return t.value;return e.startState.facet(Di)!=e.state.facet(Di)?sl.init(e.state):r.apply(e)}});let A4=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(A4=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const jh=typeof navigator<"u"&&(!((Eh=navigator.scheduling)===null||Eh===void 0)&&Eh.isInputPending)?()=>navigator.scheduling.isInputPending():null,Ak=Zn.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(gr.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(gr.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=A4(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,l=n.field(gr.state);if(l.tree==l.context.tree&&l.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!jh?Math.max(25,e.timeRemaining()-5):1e9),c=l.context.treeLen<i&&n.doc.length>i+1e3,u=l.context.work(()=>jh&&jh()||Date.now()>o,i+(c?0:1e5));this.chunkBudget-=Date.now()-t,(u||this.chunkBudget<=0)&&(l.context.takeTree(),this.view.dispatch({effects:gr.setState.of(new sl(l.context))})),this.chunkBudget>0&&!(u&&!c)&&this.scheduleWork(),this.checkAsyncSchedule(l.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Nr(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Di=be.define({combine(r){return r.length?r[0]:null},enables:r=>[gr.state,Ak,ke.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});class Qf{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Ck=be.define(),Su=be.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function Kc(r){let e=r.facet(Su);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function Co(r,e){let t="",n=r.tabSize,i=r.facet(Su)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let l=0;l<e;l++)t+=i;return t}function $f(r,e){r instanceof qe&&(r=new wu(r));for(let n of r.state.facet(Ck)){let i=n(r,e);if(i!==void 0)return i}let t=Pt(r.state);return t.length>=e?Tk(r,t,e):null}class wu{constructor(e,t={}){this.state=e,this.options=t,this.unit=Kc(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:l}=this.options;return i!=null&&i>=n.from&&i<=n.to?l&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:n.text.slice(i-n.from),from:i}:{text:n.text.slice(0,i-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:i}=this.lineAt(e,t);return n.slice(e-i,Math.min(n.length,e+100-i))}column(e,t=1){let{text:n,from:i}=this.lineAt(e,t),l=this.countColumn(n,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(l+=o-this.countColumn(n,n.search(/\S|$/))),l}countColumn(e,t=e.length){return pu(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),l=this.options.overrideIndentation;if(l){let o=l(i);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const ku=new Ie;function Tk(r,e,t){let n=e.resolveStack(t),i=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(i!=n.node){let l=[];for(let o=i;o&&!(o.from<n.node.from||o.to>n.node.to||o.from==n.node.from&&o.type==n.node.type);o=o.parent)l.push(o);for(let o=l.length-1;o>=0;o--)n={node:l[o],next:n}}return C4(n,r,t)}function C4(r,e,t){for(let n=r;n;n=n.next){let i=Mk(n.node);if(i)return i(Pf.create(e,t,n))}return 0}function Zk(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Mk(r){let e=r.type.prop(ku);if(e)return e;let t=r.firstChild,n;if(t&&(n=t.type.prop(Ie.closedBy))){let i=r.lastChild,l=i&&n.indexOf(i.name)>-1;return o=>T4(o,!0,1,void 0,l&&!Zk(o)?i.from:void 0)}return r.parent==null?Ek:null}function Ek(){return 0}class Pf extends wu{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new Pf(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(jk(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return C4(this.context.next,this.base,this.pos)}}function jk(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function Vk(r){let e=r.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let i=r.options.simulateBreak,l=r.state.doc.lineAt(t.from),o=i==null||i<=l.from?l.to:Math.min(l.to,i);for(let c=t.to;;){let u=e.childAfter(c);if(!u||u==n)return null;if(!u.type.isSkipped){if(u.from>=o)return null;let f=/^ */.exec(l.text.slice(t.to-l.from))[0].length;return{from:t.from,to:t.to+f}}c=u.to}}function Rk({closing:r,align:e=!0,units:t=1}){return n=>T4(n,e,t,r)}function T4(r,e,t,n,i){let l=r.textAfter,o=l.match(/^\s*/)[0].length,c=n&&l.slice(o,o+n.length)==n||i==r.pos+o,u=e?Vk(r):null;return u?c?r.column(u.from):r.column(u.to):r.baseIndent+(c?0:r.unit*t)}const Lk=r=>r.baseIndent;function Cc({except:r,units:e=1}={}){return t=>{let n=r&&r.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const Xk=200;function Nk(){return qe.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:n}=r.newSelection.main,i=t.lineAt(n);if(n>i.from+Xk)return r;let l=t.sliceString(i.from,n);if(!e.some(f=>f.test(l)))return r;let{state:o}=r,c=-1,u=[];for(let{head:f}of o.selection.ranges){let m=o.doc.lineAt(f);if(m.from==c)continue;c=m.from;let O=$f(o,m.from);if(O==null)continue;let y=/^\s*/.exec(m.text)[0],S=Co(o,O);y!=S&&u.push({from:m.from,to:m.from+y.length,insert:S})}return u.length?[r,{changes:u,sequential:!0}]:r})}const _k=be.define(),bu=new Ie;function Z4(r){let e=r.firstChild,t=r.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?r.to:t.from}:null}function zk(r,e,t){let n=Pt(r);if(n.length<t)return null;let i=n.resolveStack(t,1),l=null;for(let o=i;o;o=o.next){let c=o.node;if(c.to<=t||c.from>t)continue;if(l&&c.from<e)break;let u=c.type.prop(bu);if(u&&(c.to<n.length-50||n.length==r.doc.length||!Dk(c))){let f=u(c,r);f&&f.from<=t&&f.from>=e&&f.to>t&&(l=f)}}return l}function Dk(r){let e=r.lastChild;return e&&e.to==r.to&&e.type.isError}function i2(r,e,t){for(let n of r.facet(_k)){let i=n(r,e,t);if(i)return i}return zk(r,e,t)}function M4(r,e){let t=e.mapPos(r.from,1),n=e.mapPos(r.to,-1);return t>=n?void 0:{from:t,to:n}}const E4=Ue.define({map:M4}),Af=Ue.define({map:M4}),Jc=Hn.define({create(){return Re.none},update(r,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,n)=>r=s2(r,t,n)),r=r.map(e.changes);for(let t of e.effects)if(t.is(E4)&&!Ik(r,t.value.from,t.value.to)){let{preparePlaceholder:n}=e.state.facet(j4),i=n?Re.replace({widget:new Yk(n(e.state,t.value))}):l2;r=r.update({add:[i.range(t.value.from,t.value.to)]})}else t.is(Af)&&(r=r.update({filter:(n,i)=>t.value.from!=n||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(r=s2(r,e.selection.main.head)),r},provide:r=>ke.decorations.from(r),toJSON(r,e){let t=[];return r.between(0,e.doc.length,(n,i)=>{t.push(n,i)}),t},fromJSON(r){if(!Array.isArray(r)||r.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<r.length;){let n=r[t++],i=r[t++];if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(l2.range(n,i))}return Re.set(e,!0)}});function s2(r,e,t=e){let n=!1;return r.between(e,t,(i,l)=>{i<t&&l>e&&(n=!0)}),n?r.update({filterFrom:e,filterTo:t,filter:(i,l)=>i>=t||l<=e}):r}function X1(r,e,t){var n;let i=null;return(n=r.field(Jc,!1))===null||n===void 0||n.between(e,t,(l,o)=>{(!i||i.from>l)&&(i={from:l,to:o})}),i}function Ik(r,e,t){let n=!1;return r.between(e,e,(i,l)=>{i==e&&l==t&&(n=!0)}),n}const Wk={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},j4=be.define({combine(r){return fl(r,Wk)}});function Hk(r){return[Jc,qk]}function V4(r,e){let{state:t}=r,n=t.facet(j4),i=o=>{let c=r.lineBlockAt(r.posAtDOM(o.target)),u=X1(r.state,c.from,c.to);u&&r.dispatch({effects:Af.of(u)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(r,i,e);let l=document.createElement("span");return l.textContent=n.placeholderText,l.setAttribute("aria-label",t.phrase("folded code")),l.title=t.phrase("unfold"),l.className="cm-foldPlaceholder",l.onclick=i,l}const l2=Re.replace({widget:new class extends ps{toDOM(r){return V4(r,null)}}});class Yk extends ps{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return V4(e,this.value)}}const Fk={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Vh extends ai{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function Bk(r={}){let e={...Fk,...r},t=new Vh(e,!0),n=new Vh(e,!1),i=Zn.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Di)!=o.state.facet(Di)||o.startState.field(Jc,!1)!=o.state.field(Jc,!1)||Pt(o.startState)!=Pt(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let c=new cs;for(let u of o.viewportLineBlocks){let f=X1(o.state,u.from,u.to)?n:i2(o.state,u.from,u.to)?t:null;f&&c.add(u.from,u.from,f)}return c.finish()}}),{domEventHandlers:l}=e;return[i,Bw({class:"cm-foldGutter",markers(o){var c;return((c=o.plugin(i))===null||c===void 0?void 0:c.markers)||He.empty},initialSpacer(){return new Vh(e,!1)},domEventHandlers:{...l,click:(o,c,u)=>{if(l.click&&l.click(o,c,u))return!0;let f=X1(o.state,c.from,c.to);if(f)return o.dispatch({effects:Af.of(f)}),!0;let m=i2(o.state,c.from,c.to);return m?(o.dispatch({effects:E4.of(m)}),!0):!1}}}),Hk()]}const qk=ke.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Qu{constructor(e,t){this.specs=e;let n;function i(c){let u=Xi.newName();return(n||(n=Object.create(null)))["."+u]=c,u}const l=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,o=t.scope;this.scope=o instanceof gr?c=>c.prop(Hs)==o.data:o?c=>c==o:void 0,this.style=$4(e.map(c=>({tag:c.tag,class:c.class||i(Object.assign({},c,{tag:null}))})),{all:l}).style,this.module=n?new Xi(n):null,this.themeType=t.themeType}static define(e,t){return new Qu(e,t||{})}}const N1=be.define(),Uk=be.define({combine(r){return r.length?[r[0]]:null}});function Rh(r){let e=r.facet(N1);return e.length?e:r.facet(Uk)}function Gk(r,e){let t=[Jk],n;return r instanceof Qu&&(r.module&&t.push(ke.styleModule.of(r.module)),n=r.themeType),n?t.push(N1.computeN([ke.darkTheme],i=>i.facet(ke.darkTheme)==(n=="dark")?[r]:[])):t.push(N1.of(r)),t}class Kk{constructor(e){this.markCache=Object.create(null),this.tree=Pt(e.state),this.decorations=this.buildDeco(e,Rh(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Pt(e.state),n=Rh(e.state),i=n!=Rh(e.startState),{viewport:l}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<l.to&&!i&&t.type==this.tree.type&&o>=l.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=l.to)}buildDeco(e,t){if(!t||!this.tree.length)return Re.none;let n=new cs;for(let{from:i,to:l}of e.visibleRanges)bk(this.tree,t,(o,c,u)=>{n.add(o,c,this.markCache[u]||(this.markCache[u]=Re.mark({class:u})))},i,l);return n.finish()}}const Jk=Vo.high(Zn.fromClass(Kk,{decorations:r=>r.decorations})),eb=ke.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),R4=1e4,L4="()[]{}",X4=be.define({combine(r){return fl(r,{afterCursor:!0,brackets:L4,maxScanDistance:R4,renderMatch:rb})}}),tb=Re.mark({class:"cm-matchingBracket"}),nb=Re.mark({class:"cm-nonmatchingBracket"});function rb(r){let e=[],t=r.matched?tb:nb;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}function o2(r){let e=[],t=r.facet(X4);for(let n of r.selection.ranges){if(!n.empty)continue;let i=zr(r,n.head,-1,t)||n.head>0&&zr(r,n.head-1,1,t)||t.afterCursor&&(zr(r,n.head,1,t)||n.head<r.doc.length&&zr(r,n.head+1,-1,t));i&&(e=e.concat(t.renderMatch(i,r)))}return Re.set(e,!0)}const ib=Zn.fromClass(class{constructor(r){this.paused=!1,this.decorations=o2(r.state)}update(r){(r.docChanged||r.selectionSet||this.paused)&&(r.view.composing?(this.decorations=this.decorations.map(r.changes),this.paused=!0):(this.decorations=o2(r.state),this.paused=!1))}},{decorations:r=>r.decorations}),sb=[ib,eb];function lb(r={}){return[X4.of(r),sb]}const N4=new Ie;function _1(r,e,t){let n=r.prop(e<0?Ie.openedBy:Ie.closedBy);if(n)return n;if(r.name.length==1){let i=t.indexOf(r.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function z1(r){let e=r.type.prop(N4);return e?e(r.node):r}function zr(r,e,t,n={}){let i=n.maxScanDistance||R4,l=n.brackets||L4,o=Pt(r),c=o.resolveInner(e,t);for(let u=c;u;u=u.parent){let f=_1(u.type,t,l);if(f&&u.from<u.to){let m=z1(u);if(m&&(t>0?e>=m.from&&e<m.to:e>m.from&&e<=m.to))return ob(r,e,t,u,m,f,l)}}return ab(r,e,t,o,c.type,i,l)}function ob(r,e,t,n,i,l,o){let c=n.parent,u={from:i.from,to:i.to},f=0,m=c==null?void 0:c.cursor();if(m&&(t<0?m.childBefore(n.from):m.childAfter(n.to)))do if(t<0?m.to<=n.from:m.from>=n.to){if(f==0&&l.indexOf(m.type.name)>-1&&m.from<m.to){let O=z1(m);return{start:u,end:O?{from:O.from,to:O.to}:void 0,matched:!0}}else if(_1(m.type,t,o))f++;else if(_1(m.type,-t,o)){if(f==0){let O=z1(m);return{start:u,end:O&&O.from<O.to?{from:O.from,to:O.to}:void 0,matched:!1}}f--}}while(t<0?m.prevSibling():m.nextSibling());return{start:u,matched:!1}}function ab(r,e,t,n,i,l,o){let c=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),u=o.indexOf(c);if(u<0||u%2==0!=t>0)return null;let f={from:t<0?e-1:e,to:t>0?e+1:e},m=r.doc.iterRange(e,t>0?r.doc.length:0),O=0;for(let y=0;!m.next().done&&y<=l;){let S=m.value;t<0&&(y+=S.length);let w=e+y*t;for(let b=t>0?0:S.length-1,$=t>0?S.length:-1;b!=$;b+=t){let C=o.indexOf(S[b]);if(!(C<0||n.resolveInner(w+b,1).type!=i))if(C%2==0==t>0)O++;else{if(O==1)return{start:f,end:{from:w+b,to:w+b+1},matched:C>>1==u>>1};O--}}t>0&&(y+=S.length)}return m.done?{start:f,matched:!1}:null}const cb=Object.create(null),a2=[On.none],c2=[],u2=Object.create(null),ub=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])ub[r]=hb(cb,e);function Lh(r,e){c2.indexOf(r)>-1||(c2.push(r),console.warn(e))}function hb(r,e){let t=[];for(let c of e.split(" ")){let u=[];for(let f of c.split(".")){let m=r[f]||V[f];m?typeof m=="function"?u.length?u=u.map(m):Lh(f,`Modifier ${f} used at start of tag`):u.length?Lh(f,`Tag ${f} used as modifier`):u=Array.isArray(m)?m:[m]:Lh(f,`Unknown highlighting tag ${f}`)}for(let f of u)t.push(f)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),i=n+" "+t.map(c=>c.id),l=u2[i];if(l)return l.id;let o=u2[i]=On.define({id:a2.length,name:n,props:[vu({[n]:t})]});return a2.push(o),o.id}$t.RTL,$t.LTR;const fb=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),n=Tf(r.state,t.from);return n.line?db(r):n.block?mb(r):!1};function Cf(r,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=r(e,t);return i?(n(t.update(i)),!0):!1}}const db=Cf(yb,0),pb=Cf(_4,0),mb=Cf((r,e)=>_4(r,e,gb(e)),0);function Tf(r,e){let t=r.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const io=50;function Ob(r,{open:e,close:t},n,i){let l=r.sliceDoc(n-io,n),o=r.sliceDoc(i,i+io),c=/\s*$/.exec(l)[0].length,u=/^\s*/.exec(o)[0].length,f=l.length-c;if(l.slice(f-e.length,f)==e&&o.slice(u,u+t.length)==t)return{open:{pos:n-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};let m,O;i-n<=2*io?m=O=r.sliceDoc(n,i):(m=r.sliceDoc(n,n+io),O=r.sliceDoc(i-io,i));let y=/^\s*/.exec(m)[0].length,S=/\s*$/.exec(O)[0].length,w=O.length-S-t.length;return m.slice(y,y+e.length)==e&&O.slice(w,w+t.length)==t?{open:{pos:n+y+e.length,margin:/\s/.test(m.charAt(y+e.length))?1:0},close:{pos:i-S-t.length,margin:/\s/.test(O.charAt(w-1))?1:0}}:null}function gb(r){let e=[];for(let t of r.selection.ranges){let n=r.doc.lineAt(t.from),i=t.to<=n.to?n:r.doc.lineAt(t.to);i.from>n.from&&i.from==t.to&&(i=t.to==n.to+1?n:r.doc.lineAt(t.to-1));let l=e.length-1;l>=0&&e[l].to>n.from?e[l].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return e}function _4(r,e,t=e.selection.ranges){let n=t.map(l=>Tf(e,l.from).block);if(!n.every(l=>l))return null;let i=t.map((l,o)=>Ob(e,n[o],l.from,l.to));if(r!=2&&!i.every(l=>l))return{changes:e.changes(t.map((l,o)=>i[o]?[]:[{from:l.from,insert:n[o].open+" "},{from:l.to,insert:" "+n[o].close}]))};if(r!=1&&i.some(l=>l)){let l=[];for(let o=0,c;o<i.length;o++)if(c=i[o]){let u=n[o],{open:f,close:m}=c;l.push({from:f.pos-u.open.length,to:f.pos+f.margin},{from:m.pos-m.margin,to:m.pos+u.close.length})}return{changes:l}}return null}function yb(r,e,t=e.selection.ranges){let n=[],i=-1;e:for(let{from:l,to:o}of t){let c=n.length,u=1e9,f;for(let m=l;m<=o;){let O=e.doc.lineAt(m);if(f==null&&(f=Tf(e,O.from).line,!f))continue e;if(O.from>i&&(l==o||o>O.from)){i=O.from;let y=/^\s*/.exec(O.text)[0].length,S=y==O.length,w=O.text.slice(y,y+f.length)==f?y:-1;y<O.text.length&&y<u&&(u=y),n.push({line:O,comment:w,token:f,indent:y,empty:S,single:!1})}m=O.to+1}if(u<1e9)for(let m=c;m<n.length;m++)n[m].indent<n[m].line.text.length&&(n[m].indent=u);n.length==c+1&&(n[c].single=!0)}if(r!=2&&n.some(l=>l.comment<0&&(!l.empty||l.single))){let l=[];for(let{line:c,token:u,indent:f,empty:m,single:O}of n)(O||!m)&&l.push({from:c.from+f,insert:u+" "});let o=e.changes(l);return{changes:o,selection:e.selection.map(o,1)}}else if(r!=1&&n.some(l=>l.comment>=0)){let l=[];for(let{line:o,comment:c,token:u}of n)if(c>=0){let f=o.from+c,m=f+u.length;o.text[m-o.from]==" "&&m++,l.push({from:f,to:m})}return{changes:l}}return null}const D1=ci.define(),xb=ci.define(),vb=be.define(),z4=be.define({combine(r){return fl(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}}),D4=Hn.define({create(){return Dr.empty},update(r,e){let t=e.state.facet(z4),n=e.annotation(D1);if(n){let u=Cn.fromTransaction(e,n.selection),f=n.side,m=f==0?r.undone:r.done;return u?m=eu(m,m.length,t.minDepth,u):m=H4(m,e.startState.selection),new Dr(f==0?n.rest:m,f==0?m:n.rest)}let i=e.annotation(xb);if((i=="full"||i=="before")&&(r=r.isolate()),e.annotation(Et.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let l=Cn.fromTransaction(e),o=e.annotation(Et.time),c=e.annotation(Et.userEvent);return l?r=r.addChanges(l,o,c,t,e):e.selection&&(r=r.addSelection(e.startState.selection,o,c,t.newGroupDelay)),(i=="full"||i=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new Dr(r.done.map(Cn.fromJSON),r.undone.map(Cn.fromJSON))}});function Sb(r={}){return[D4,z4.of(r),ke.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?I4:e.inputType=="historyRedo"?I1:null;return n?(e.preventDefault(),n(t)):!1}})]}function $u(r,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let i=t.field(D4,!1);if(!i)return!1;let l=i.pop(r,t,e);return l?(n(l),!0):!1}}const I4=$u(0,!1),I1=$u(1,!1),wb=$u(0,!0),kb=$u(1,!0);class Cn{constructor(e,t,n,i,l){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=l}setSelAfter(e){return new Cn(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new Cn(e.changes&&Nt.fromJSON(e.changes),[],e.mapped&&Ir.fromJSON(e.mapped),e.startSelection&&G.fromJSON(e.startSelection),e.selectionsAfter.map(G.fromJSON))}static fromTransaction(e,t){let n=sr;for(let i of e.startState.facet(vb)){let l=i(e);l.length&&(n=n.concat(l))}return!n.length&&e.changes.empty?null:new Cn(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,sr)}static selection(e){return new Cn(void 0,sr,void 0,void 0,e)}}function eu(r,e,t,n){let i=e+1>t+20?e-t-1:0,l=r.slice(i,e);return l.push(n),l}function bb(r,e){let t=[],n=!1;return r.iterChangedRanges((i,l)=>t.push(i,l)),e.iterChangedRanges((i,l,o,c)=>{for(let u=0;u<t.length;){let f=t[u++],m=t[u++];c>=f&&o<=m&&(n=!0)}}),n}function Qb(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function W4(r,e){return r.length?e.length?r.concat(e):r:e}const sr=[],$b=200;function H4(r,e){if(r.length){let t=r[r.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-$b));return n.length&&n[n.length-1].eq(e)?r:(n.push(e),eu(r,r.length-1,1e9,t.setSelAfter(n)))}else return[Cn.selection([e])]}function Pb(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Xh(r,e){if(!r.length)return r;let t=r.length,n=sr;for(;t;){let i=Ab(r[t-1],e,n);if(i.changes&&!i.changes.empty||i.effects.length){let l=r.slice(0,t);return l[t-1]=i,l}else e=i.mapped,t--,n=i.selectionsAfter}return n.length?[Cn.selection(n)]:sr}function Ab(r,e,t){let n=W4(r.selectionsAfter.length?r.selectionsAfter.map(c=>c.map(e)):sr,t);if(!r.changes)return Cn.selection(n);let i=r.changes.map(e),l=e.mapDesc(r.changes,!0),o=r.mapped?r.mapped.composeDesc(l):l;return new Cn(i,Ue.mapEffects(r.effects,e),o,r.startSelection.map(l),n)}const Cb=/^(input\.type|delete)($|\.)/;class Dr{constructor(e,t,n=0,i=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new Dr(this.done,this.undone):this}addChanges(e,t,n,i,l){let o=this.done,c=o[o.length-1];return c&&c.changes&&!c.changes.empty&&e.changes&&(!n||Cb.test(n))&&(!c.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(l,bb(c.changes,e.changes))||n=="input.type.compose")?o=eu(o,o.length-1,i.minDepth,new Cn(e.changes.compose(c.changes),W4(Ue.mapEffects(e.effects,c.changes),c.effects),c.mapped,c.startSelection,sr)):o=eu(o,o.length,i.minDepth,e),new Dr(o,sr,t,n)}addSelection(e,t,n,i){let l=this.done.length?this.done[this.done.length-1].selectionsAfter:sr;return l.length>0&&t-this.prevTime<i&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&Qb(l[l.length-1],e)?this:new Dr(H4(this.done,e),this.undone,t,n)}addMapping(e){return new Dr(Xh(this.done,e),Xh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=e==0?this.done:this.undone;if(i.length==0)return null;let l=i[i.length-1],o=l.selectionsAfter[0]||(l.startSelection?l.startSelection.map(l.changes.invertedDesc,1):t.selection);if(n&&l.selectionsAfter.length)return t.update({selection:l.selectionsAfter[l.selectionsAfter.length-1],annotations:D1.of({side:e,rest:Pb(i),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(l.changes){let c=i.length==1?sr:i.slice(0,i.length-1);return l.mapped&&(c=Xh(c,l.mapped)),t.update({changes:l.changes,selection:l.startSelection,effects:l.effects,annotations:D1.of({side:e,rest:c,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}Dr.empty=new Dr(sr,sr);const Tb=[{key:"Mod-z",run:I4,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:I1,preventDefault:!0},{linux:"Ctrl-Shift-z",run:I1,preventDefault:!0},{key:"Mod-u",run:wb,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:kb,preventDefault:!0}];function dl(r,e){return G.create(r.ranges.map(e),r.mainIndex)}function xr(r,e){return r.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function vr({state:r,dispatch:e},t){let n=dl(r.selection,t);return n.eq(r.selection,!0)?!1:(e(xr(r,n)),!0)}function Pu(r,e){return G.cursor(e?r.to:r.from)}function Y4(r,e){return vr(r,t=>t.empty?r.moveByChar(t,e):Pu(t,e))}function un(r){return r.textDirectionAt(r.state.selection.main.head)==$t.LTR}const F4=r=>Y4(r,!un(r)),B4=r=>Y4(r,un(r));function q4(r,e){return vr(r,t=>t.empty?r.moveByGroup(t,e):Pu(t,e))}const Zb=r=>q4(r,!un(r)),Mb=r=>q4(r,un(r));function Eb(r,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function Au(r,e,t){let n=Pt(r).resolveInner(e.head),i=t?Ie.closedBy:Ie.openedBy;for(let u=e.head;;){let f=t?n.childAfter(u):n.childBefore(u);if(!f)break;Eb(r,f,i)?n=f:u=t?f.to:f.from}let l=n.type.prop(i),o,c;return l&&(o=t?zr(r,n.from,1):zr(r,n.to,-1))&&o.matched?c=t?o.end.to:o.end.from:c=t?n.to:n.from,G.cursor(c,t?-1:1)}const jb=r=>vr(r,e=>Au(r.state,e,!un(r))),Vb=r=>vr(r,e=>Au(r.state,e,un(r)));function U4(r,e){return vr(r,t=>{if(!t.empty)return Pu(t,e);let n=r.moveVertically(t,e);return n.head!=t.head?n:r.moveToLineBoundary(t,e)})}const G4=r=>U4(r,!1),K4=r=>U4(r,!0);function J4(r){let e=r.scrollDOM.clientHeight<r.scrollDOM.scrollHeight-2,t=0,n=0,i;if(e){for(let l of r.state.facet(ke.scrollMargins)){let o=l(r);o!=null&&o.top&&(t=Math.max(o==null?void 0:o.top,t)),o!=null&&o.bottom&&(n=Math.max(o==null?void 0:o.bottom,n))}i=r.scrollDOM.clientHeight-t-n}else i=(r.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:n,selfScroll:e,height:Math.max(r.defaultLineHeight,i-5)}}function e6(r,e){let t=J4(r),{state:n}=r,i=dl(n.selection,o=>o.empty?r.moveVertically(o,e,t.height):Pu(o,e));if(i.eq(n.selection))return!1;let l;if(t.selfScroll){let o=r.coordsAtPos(n.selection.main.head),c=r.scrollDOM.getBoundingClientRect(),u=c.top+t.marginTop,f=c.bottom-t.marginBottom;o&&o.top>u&&o.bottom<f&&(l=ke.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-u}))}return r.dispatch(xr(n,i),{effects:l}),!0}const h2=r=>e6(r,!1),W1=r=>e6(r,!0);function Ii(r,e,t){let n=r.lineBlockAt(e.head),i=r.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?n.to:n.from)&&(i=r.moveToLineBoundary(e,t,!1)),!t&&i.head==n.from&&n.length){let l=/^\s*/.exec(r.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;l&&e.head!=n.from+l&&(i=G.cursor(n.from+l))}return i}const Rb=r=>vr(r,e=>Ii(r,e,!0)),Lb=r=>vr(r,e=>Ii(r,e,!1)),Xb=r=>vr(r,e=>Ii(r,e,!un(r))),Nb=r=>vr(r,e=>Ii(r,e,un(r))),_b=r=>vr(r,e=>G.cursor(r.lineBlockAt(e.head).from,1)),zb=r=>vr(r,e=>G.cursor(r.lineBlockAt(e.head).to,-1));function Db(r,e,t){let n=!1,i=dl(r.selection,l=>{let o=zr(r,l.head,-1)||zr(r,l.head,1)||l.head>0&&zr(r,l.head-1,1)||l.head<r.doc.length&&zr(r,l.head+1,-1);if(!o||!o.end)return l;n=!0;let c=o.start.from==l.head?o.end.to:o.end.from;return G.cursor(c)});return n?(e(xr(r,i)),!0):!1}const Ib=({state:r,dispatch:e})=>Db(r,e);function lr(r,e){let t=dl(r.state.selection,n=>{let i=e(n);return G.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return t.eq(r.state.selection)?!1:(r.dispatch(xr(r.state,t)),!0)}function t6(r,e){return lr(r,t=>r.moveByChar(t,e))}const n6=r=>t6(r,!un(r)),r6=r=>t6(r,un(r));function i6(r,e){return lr(r,t=>r.moveByGroup(t,e))}const Wb=r=>i6(r,!un(r)),Hb=r=>i6(r,un(r)),Yb=r=>lr(r,e=>Au(r.state,e,!un(r))),Fb=r=>lr(r,e=>Au(r.state,e,un(r)));function s6(r,e){return lr(r,t=>r.moveVertically(t,e))}const l6=r=>s6(r,!1),o6=r=>s6(r,!0);function a6(r,e){return lr(r,t=>r.moveVertically(t,e,J4(r).height))}const f2=r=>a6(r,!1),d2=r=>a6(r,!0),Bb=r=>lr(r,e=>Ii(r,e,!0)),qb=r=>lr(r,e=>Ii(r,e,!1)),Ub=r=>lr(r,e=>Ii(r,e,!un(r))),Gb=r=>lr(r,e=>Ii(r,e,un(r))),Kb=r=>lr(r,e=>G.cursor(r.lineBlockAt(e.head).from)),Jb=r=>lr(r,e=>G.cursor(r.lineBlockAt(e.head).to)),p2=({state:r,dispatch:e})=>(e(xr(r,{anchor:0})),!0),m2=({state:r,dispatch:e})=>(e(xr(r,{anchor:r.doc.length})),!0),O2=({state:r,dispatch:e})=>(e(xr(r,{anchor:r.selection.main.anchor,head:0})),!0),g2=({state:r,dispatch:e})=>(e(xr(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),e7=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),t7=({state:r,dispatch:e})=>{let t=Cu(r).map(({from:n,to:i})=>G.range(n,Math.min(i+1,r.doc.length)));return e(r.update({selection:G.create(t),userEvent:"select"})),!0},n7=({state:r,dispatch:e})=>{let t=dl(r.selection,n=>{let i=Pt(r),l=i.resolveStack(n.from,1);if(n.empty){let o=i.resolveStack(n.from,-1);o.node.from>=l.node.from&&o.node.to<=l.node.to&&(l=o)}for(let o=l;o;o=o.next){let{node:c}=o;if((c.from<n.from&&c.to>=n.to||c.to>n.to&&c.from<=n.from)&&o.next)return G.range(c.to,c.from)}return n});return t.eq(r.selection)?!1:(e(xr(r,t)),!0)};function c6(r,e){let{state:t}=r,n=t.selection,i=t.selection.ranges.slice();for(let l of t.selection.ranges){let o=t.doc.lineAt(l.head);if(e?o.to<r.state.doc.length:o.from>0)for(let c=l;;){let u=r.moveVertically(c,e);if(u.head<o.from||u.head>o.to){i.some(f=>f.head==u.head)||i.push(u);break}else{if(u.head==c.head)break;c=u}}}return i.length==n.ranges.length?!1:(r.dispatch(xr(t,G.create(i,i.length-1))),!0)}const r7=r=>c6(r,!1),i7=r=>c6(r,!0),s7=({state:r,dispatch:e})=>{let t=r.selection,n=null;return t.ranges.length>1?n=G.create([t.main]):t.main.empty||(n=G.create([G.cursor(t.main.head)])),n?(e(xr(r,n)),!0):!1};function No(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:n}=r,i=n.changeByRange(l=>{let{from:o,to:c}=l;if(o==c){let u=e(l);u<o?(t="delete.backward",u=mc(r,u,!1)):u>o&&(t="delete.forward",u=mc(r,u,!0)),o=Math.min(o,u),c=Math.max(c,u)}else o=mc(r,o,!1),c=mc(r,c,!0);return o==c?{range:l}:{changes:{from:o,to:c},range:G.cursor(o,o<l.head?-1:1)}});return i.changes.empty?!1:(r.dispatch(n.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?ke.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function mc(r,e,t){if(r instanceof ke)for(let n of r.state.facet(ke.atomicRanges).map(i=>i(r)))n.between(e,e,(i,l)=>{i<e&&l>e&&(e=t?l:i)});return e}const u6=(r,e,t)=>No(r,n=>{let i=n.from,{state:l}=r,o=l.doc.lineAt(i),c,u;if(t&&!e&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(c=o.text.slice(0,i-o.from))){if(c[c.length-1]==" ")return i-1;let f=pu(c,l.tabSize),m=f%Kc(l)||Kc(l);for(let O=0;O<m&&c[c.length-1-O]==" ";O++)i--;u=i}else u=Ft(o.text,i-o.from,e,e)+o.from,u==i&&o.number!=(e?l.doc.lines:1)?u+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(u-o.from,i-o.from))&&(u=Ft(o.text,u-o.from,!1,!1)+o.from);return u}),H1=r=>u6(r,!1,!0),h6=r=>u6(r,!0,!1),f6=(r,e)=>No(r,t=>{let n=t.head,{state:i}=r,l=i.doc.lineAt(n),o=i.charCategorizer(n);for(let c=null;;){if(n==(e?l.to:l.from)){n==t.head&&l.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let u=Ft(l.text,n-l.from,e)+l.from,f=l.text.slice(Math.min(n,u)-l.from,Math.max(n,u)-l.from),m=o(f);if(c!=null&&m!=c)break;(f!=" "||n!=t.head)&&(c=m),n=u}return n}),d6=r=>f6(r,!1),l7=r=>f6(r,!0),o7=r=>No(r,e=>{let t=r.lineBlockAt(e.head).to;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)}),a7=r=>No(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),c7=r=>No(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)}),u7=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Fe.of(["",""])},range:G.cursor(n.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},h7=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>{if(!n.empty||n.from==0||n.from==r.doc.length)return{range:n};let i=n.from,l=r.doc.lineAt(i),o=i==l.from?i-1:Ft(l.text,i-l.from,!1)+l.from,c=i==l.to?i+1:Ft(l.text,i-l.from,!0)+l.from;return{changes:{from:o,to:c,insert:r.doc.slice(i,c).append(r.doc.slice(o,i))},range:G.cursor(c)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Cu(r){let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.from),l=r.doc.lineAt(n.to);if(!n.empty&&n.to==l.from&&(l=r.doc.lineAt(n.to-1)),t>=i.number){let o=e[e.length-1];o.to=l.to,o.ranges.push(n)}else e.push({from:i.from,to:l.to,ranges:[n]});t=l.number+1}return e}function p6(r,e,t){if(r.readOnly)return!1;let n=[],i=[];for(let l of Cu(r)){if(t?l.to==r.doc.length:l.from==0)continue;let o=r.doc.lineAt(t?l.to+1:l.from-1),c=o.length+1;if(t){n.push({from:l.to,to:o.to},{from:l.from,insert:o.text+r.lineBreak});for(let u of l.ranges)i.push(G.range(Math.min(r.doc.length,u.anchor+c),Math.min(r.doc.length,u.head+c)))}else{n.push({from:o.from,to:l.from},{from:l.to,insert:r.lineBreak+o.text});for(let u of l.ranges)i.push(G.range(u.anchor-c,u.head-c))}}return n.length?(e(r.update({changes:n,scrollIntoView:!0,selection:G.create(i,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}const f7=({state:r,dispatch:e})=>p6(r,e,!1),d7=({state:r,dispatch:e})=>p6(r,e,!0);function m6(r,e,t){if(r.readOnly)return!1;let n=[];for(let l of Cu(r))t?n.push({from:l.from,insert:r.doc.slice(l.from,l.to)+r.lineBreak}):n.push({from:l.to,insert:r.lineBreak+r.doc.slice(l.from,l.to)});let i=r.changes(n);return e(r.update({changes:i,selection:r.selection.map(i,t?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const p7=({state:r,dispatch:e})=>m6(r,e,!1),m7=({state:r,dispatch:e})=>m6(r,e,!0),O7=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(Cu(e).map(({from:i,to:l})=>(i>0?i--:l<e.doc.length&&l++,{from:i,to:l}))),n=dl(e.selection,i=>{let l;if(r.lineWrapping){let o=r.lineBlockAt(i.head),c=r.coordsAtPos(i.head,i.assoc||1);c&&(l=o.bottom+r.documentTop-c.bottom+r.defaultLineHeight/2)}return r.moveVertically(i,!0,l)}).map(t);return r.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function g7(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Pt(r).resolveInner(e),n=t.childBefore(e),i=t.childAfter(e),l;return n&&i&&n.to<=e&&i.from>=e&&(l=n.type.prop(Ie.closedBy))&&l.indexOf(i.name)>-1&&r.doc.lineAt(n.to).from==r.doc.lineAt(i.from).from&&!/\S/.test(r.sliceDoc(n.to,i.from))?{from:n.to,to:i.from}:null}const y2=O6(!1),y7=O6(!0);function O6(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:l,to:o}=i,c=e.doc.lineAt(l),u=!r&&l==o&&g7(e,l);r&&(l=o=(o<=c.to?c:e.doc.lineAt(o)).to);let f=new wu(e,{simulateBreak:l,simulateDoubleBreak:!!u}),m=$f(f,l);for(m==null&&(m=pu(/^\s*/.exec(e.doc.lineAt(l).text)[0],e.tabSize));o<c.to&&/\s/.test(c.text[o-c.from]);)o++;u?{from:l,to:o}=u:l>c.from&&l<c.from+100&&!/\S/.test(c.text.slice(0,l))&&(l=c.from);let O=["",Co(e,m)];return u&&O.push(Co(e,f.lineIndent(c.from,-1))),{changes:{from:l,to:o,insert:Fe.of(O)},range:G.cursor(l+1+O[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function Zf(r,e){let t=-1;return r.changeByRange(n=>{let i=[];for(let o=n.from;o<=n.to;){let c=r.doc.lineAt(o);c.number>t&&(n.empty||n.to>c.from)&&(e(c,i,n),t=c.number),o=c.to+1}let l=r.changes(i);return{changes:i,range:G.range(l.mapPos(n.anchor,1),l.mapPos(n.head,1))}})}const x7=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),n=new wu(r,{overrideIndentation:l=>{let o=t[l];return o??-1}}),i=Zf(r,(l,o,c)=>{let u=$f(n,l.from);if(u==null)return;/\S/.test(l.text)||(u=0);let f=/^\s*/.exec(l.text)[0],m=Co(r,u);(f!=m||c.from<l.from+f.length)&&(t[l.from]=u,o.push({from:l.from,to:l.from+f.length,insert:m}))});return i.changes.empty||e(r.update(i,{userEvent:"indent"})),!0},v7=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(Zf(r,(t,n)=>{n.push({from:t.from,insert:r.facet(Su)})}),{userEvent:"input.indent"})),!0),S7=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(Zf(r,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let l=pu(i,r.tabSize),o=0,c=Co(r,Math.max(0,l-Kc(r)));for(;o<i.length&&o<c.length&&i.charCodeAt(o)==c.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+i.length,insert:c.slice(o)})}),{userEvent:"delete.dedent"})),!0),w7=r=>(r.setTabFocusMode(),!0),k7=[{key:"Ctrl-b",run:F4,shift:n6,preventDefault:!0},{key:"Ctrl-f",run:B4,shift:r6},{key:"Ctrl-p",run:G4,shift:l6},{key:"Ctrl-n",run:K4,shift:o6},{key:"Ctrl-a",run:_b,shift:Kb},{key:"Ctrl-e",run:zb,shift:Jb},{key:"Ctrl-d",run:h6},{key:"Ctrl-h",run:H1},{key:"Ctrl-k",run:o7},{key:"Ctrl-Alt-h",run:d6},{key:"Ctrl-o",run:u7},{key:"Ctrl-t",run:h7},{key:"Ctrl-v",run:W1}],b7=[{key:"ArrowLeft",run:F4,shift:n6,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Zb,shift:Wb,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Xb,shift:Ub,preventDefault:!0},{key:"ArrowRight",run:B4,shift:r6,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Mb,shift:Hb,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Nb,shift:Gb,preventDefault:!0},{key:"ArrowUp",run:G4,shift:l6,preventDefault:!0},{mac:"Cmd-ArrowUp",run:p2,shift:O2},{mac:"Ctrl-ArrowUp",run:h2,shift:f2},{key:"ArrowDown",run:K4,shift:o6,preventDefault:!0},{mac:"Cmd-ArrowDown",run:m2,shift:g2},{mac:"Ctrl-ArrowDown",run:W1,shift:d2},{key:"PageUp",run:h2,shift:f2},{key:"PageDown",run:W1,shift:d2},{key:"Home",run:Lb,shift:qb,preventDefault:!0},{key:"Mod-Home",run:p2,shift:O2},{key:"End",run:Rb,shift:Bb,preventDefault:!0},{key:"Mod-End",run:m2,shift:g2},{key:"Enter",run:y2,shift:y2},{key:"Mod-a",run:e7},{key:"Backspace",run:H1,shift:H1,preventDefault:!0},{key:"Delete",run:h6,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:d6,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:l7,preventDefault:!0},{mac:"Mod-Backspace",run:a7,preventDefault:!0},{mac:"Mod-Delete",run:c7,preventDefault:!0}].concat(k7.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),Q7=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:jb,shift:Yb},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Vb,shift:Fb},{key:"Alt-ArrowUp",run:f7},{key:"Shift-Alt-ArrowUp",run:p7},{key:"Alt-ArrowDown",run:d7},{key:"Shift-Alt-ArrowDown",run:m7},{key:"Mod-Alt-ArrowUp",run:r7},{key:"Mod-Alt-ArrowDown",run:i7},{key:"Escape",run:s7},{key:"Mod-Enter",run:y7},{key:"Alt-l",mac:"Ctrl-l",run:t7},{key:"Mod-i",run:n7,preventDefault:!0},{key:"Mod-[",run:S7},{key:"Mod-]",run:v7},{key:"Mod-Alt-\\",run:x7},{key:"Shift-Mod-k",run:O7},{key:"Shift-Mod-\\",run:Ib},{key:"Mod-/",run:fb},{key:"Alt-A",run:pb},{key:"Ctrl-m",mac:"Shift-Alt-m",run:w7}].concat(b7);function x2(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function $7(r){let e=Object.create(null),t=Object.create(null);for(let{label:i}of r){e[i[0]]=!0;for(let l=1;l<i.length;l++)t[i[l]]=!0}let n=x2(e)+x2(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function P7(r){let e=r.map(i=>typeof i=="string"?{label:i}:i),[t,n]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:$7(e);return i=>{let l=i.matchBefore(n);return l||i.explicit?{from:l?l.from:i.pos,options:e,validFor:t}:null}}function A7(r,e){return t=>{for(let n=Pt(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(r.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}const C7=ci.define(),T7=ke.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Z7{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class Mf{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,an.TrackDel),n=e.mapPos(this.to,1,an.TrackDel);return t==null||n==null?null:new Mf(this.field,t,n)}}class Ef{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],l=e.doc.lineAt(t),o=/^\s*/.exec(l.text)[0];for(let u of this.lines){if(n.length){let f=o,m=/^\t*/.exec(u)[0].length;for(let O=0;O<m;O++)f+=e.facet(Su);i.push(t+f.length-m),u=f+u.slice(m)}n.push(u),t+=u.length+1}let c=this.fieldPositions.map(u=>new Mf(u.field,i[u.line]+u.from,i[u.line]+u.to));return{text:n,ranges:c}}static parse(e){let t=[],n=[],i=[],l;for(let o of e.split(/\r\n?|\n/)){for(;l=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let c=l[1]?+l[1]:null,u=l[2]||l[3]||"",f=-1,m=u.replace(/\\[{}]/g,O=>O[1]);for(let O=0;O<t.length;O++)(c!=null?t[O].seq==c:m&&t[O].name==m)&&(f=O);if(f<0){let O=0;for(;O<t.length&&(c==null||t[O].seq!=null&&t[O].seq<c);)O++;t.splice(O,0,{seq:c,name:m}),f=O;for(let y of i)y.field>=f&&y.field++}for(let O of i)if(O.line==n.length&&O.from>l.index){let y=l[2]?3+(l[1]||"").length:2;O.from-=y,O.to-=y}i.push(new Z7(f,n.length,l.index,l.index+m.length)),o=o.slice(0,l.index)+u+o.slice(l.index+l[0].length)}o=o.replace(/\\([{}])/g,(c,u,f)=>{for(let m of i)m.line==n.length&&m.from>f&&(m.from--,m.to--);return u}),n.push(o)}return new Ef(n,i)}}let M7=Re.widget({widget:new class extends ps{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),E7=Re.mark({class:"cm-snippetField"});class pl{constructor(e,t){this.ranges=e,this.active=t,this.deco=Re.set(e.map(n=>(n.from==n.to?M7:E7).range(n.from,n.to)),!0)}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new pl(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const _o=Ue.define({map(r,e){return r&&r.map(e)}}),j7=Ue.define(),To=Hn.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(_o))return t.value;if(t.is(j7)&&r)return new pl(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>ke.decorations.from(r,e=>e?e.deco:Re.none)});function jf(r,e){return G.create(r.filter(t=>t.field==e).map(t=>G.range(t.from,t.to)))}function V7(r){let e=Ef.parse(r);return(t,n,i,l)=>{let{text:o,ranges:c}=e.instantiate(t.state,i),{main:u}=t.state.selection,f={changes:{from:i,to:l==u.from?u.to:l,insert:Fe.of(o)},scrollIntoView:!0,annotations:n?[C7.of(n),Et.userEvent.of("input.complete")]:void 0};if(c.length&&(f.selection=jf(c,0)),c.some(m=>m.field>0)){let m=new pl(c,0),O=f.effects=[_o.of(m)];t.state.field(To,!1)===void 0&&O.push(Ue.appendConfig.of([To,_7,z7,T7]))}t.dispatch(t.state.update(f))}}function g6(r){return({state:e,dispatch:t})=>{let n=e.field(To,!1);if(!n||r<0&&n.active==0)return!1;let i=n.active+r,l=r>0&&!n.ranges.some(o=>o.field==i+r);return t(e.update({selection:jf(n.ranges,i),effects:_o.of(l?null:new pl(n.ranges,i)),scrollIntoView:!0})),!0}}const R7=({state:r,dispatch:e})=>r.field(To,!1)?(e(r.update({effects:_o.of(null)})),!0):!1,L7=g6(1),X7=g6(-1),N7=[{key:"Tab",run:L7,shift:X7},{key:"Escape",run:R7}],v2=be.define({combine(r){return r.length?r[0]:N7}}),_7=Vo.highest(xf.compute([v2],r=>r.facet(v2)));function Pn(r,e){return{...e,apply:V7(r)}}const z7=ke.domEventHandlers({mousedown(r,e){let t=e.state.field(To,!1),n;if(!t||(n=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let i=t.ranges.find(l=>l.from<=n&&l.to>=n);return!i||i.field==t.active?!1:(e.dispatch({selection:jf(t.ranges,i.field),effects:_o.of(t.ranges.some(l=>l.field>i.field)?new pl(t.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Zo={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},as=Ue.define({map(r,e){let t=e.mapPos(r,-1,an.TrackAfter);return t??void 0}}),Vf=new class extends Li{};Vf.startSide=1;Vf.endSide=-1;const y6=Hn.define({create(){return He.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:n=>n>=t.from&&n<=t.to})}for(let t of e.effects)t.is(as)&&(r=r.update({add:[Vf.range(t.value,t.value+1)]}));return r}});function D7(){return[W7,y6]}const Nh="()[]{}<>«»»«[]{}";function x6(r){for(let e=0;e<Nh.length;e+=2)if(Nh.charCodeAt(e)==r)return Nh.charAt(e+1);return s8(r<128?r:r+1)}function v6(r,e){return r.languageDataAt("closeBrackets",e)[0]||Zo}const I7=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),W7=ke.inputHandler.of((r,e,t,n)=>{if((I7?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let i=r.state.selection.main;if(n.length>2||n.length==2&&jo(ds(n,0))==1||e!=i.from||t!=i.to)return!1;let l=F7(r.state,n);return l?(r.dispatch(l),!0):!1}),H7=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let n=v6(r,r.selection.main.head).brackets||Zo.brackets,i=null,l=r.changeByRange(o=>{if(o.empty){let c=B7(r.doc,o.head);for(let u of n)if(u==c&&Tu(r.doc,o.head)==x6(ds(u,0)))return{changes:{from:o.head-u.length,to:o.head+u.length},range:G.cursor(o.head-u.length)}}return{range:i=o}});return i||e(r.update(l,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},Y7=[{key:"Backspace",run:H7}];function F7(r,e){let t=v6(r,r.selection.main.head),n=t.brackets||Zo.brackets;for(let i of n){let l=x6(ds(i,0));if(e==i)return l==i?G7(r,i,n.indexOf(i+i+i)>-1,t):q7(r,i,l,t.before||Zo.before);if(e==l&&S6(r,r.selection.main.from))return U7(r,i,l)}return null}function S6(r,e){let t=!1;return r.field(y6).between(0,r.doc.length,n=>{n==e&&(t=!0)}),t}function Tu(r,e){let t=r.sliceString(e,e+2);return t.slice(0,jo(ds(t,0)))}function B7(r,e){let t=r.sliceString(e-2,e);return jo(ds(t,0))==t.length?t:t.slice(1)}function q7(r,e,t,n){let i=null,l=r.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:t,from:o.to}],effects:as.of(o.to+e.length),range:G.range(o.anchor+e.length,o.head+e.length)};let c=Tu(r.doc,o.head);return!c||/\s/.test(c)||n.indexOf(c)>-1?{changes:{insert:e+t,from:o.head},effects:as.of(o.head+e.length),range:G.cursor(o.head+e.length)}:{range:i=o}});return i?null:r.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function U7(r,e,t){let n=null,i=r.changeByRange(l=>l.empty&&Tu(r.doc,l.head)==t?{changes:{from:l.head,to:l.head+t.length,insert:t},range:G.cursor(l.head+t.length)}:n={range:l});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function G7(r,e,t,n){let i=n.stringPrefixes||Zo.stringPrefixes,l=null,o=r.changeByRange(c=>{if(!c.empty)return{changes:[{insert:e,from:c.from},{insert:e,from:c.to}],effects:as.of(c.to+e.length),range:G.range(c.anchor+e.length,c.head+e.length)};let u=c.head,f=Tu(r.doc,u),m;if(f==e){if(S2(r,u))return{changes:{insert:e+e,from:u},effects:as.of(u+e.length),range:G.cursor(u+e.length)};if(S6(r,u)){let y=t&&r.sliceDoc(u,u+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:u,to:u+y.length,insert:y},range:G.cursor(u+y.length)}}}else{if(t&&r.sliceDoc(u-2*e.length,u)==e+e&&(m=w2(r,u-2*e.length,i))>-1&&S2(r,m))return{changes:{insert:e+e+e+e,from:u},effects:as.of(u+e.length),range:G.cursor(u+e.length)};if(r.charCategorizer(u)(f)!=pt.Word&&w2(r,u,i)>-1&&!K7(r,u,e,i))return{changes:{insert:e+e,from:u},effects:as.of(u+e.length),range:G.cursor(u+e.length)}}return{range:l=c}});return l?null:r.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function S2(r,e){let t=Pt(r).resolveInner(e+1);return t.parent&&t.from==e}function K7(r,e,t,n){let i=Pt(r).resolveInner(e,-1),l=n.reduce((o,c)=>Math.max(o,c.length),0);for(let o=0;o<5;o++){let c=r.sliceDoc(i.from,Math.min(i.to,i.from+t.length+l)),u=c.indexOf(t);if(!u||u>-1&&n.indexOf(c.slice(0,u))>-1){let m=i.firstChild;for(;m&&m.from==i.from&&m.to-m.from>t.length+u;){if(r.sliceDoc(m.to-t.length,m.to)==t)return!1;m=m.firstChild}return!0}let f=i.to==e&&i.parent;if(!f)break;i=f}return!1}function w2(r,e,t){let n=r.charCategorizer(e);if(n(r.sliceDoc(e-1,e))!=pt.Word)return e;for(let i of t){let l=e-i.length;if(r.sliceDoc(l,e)==i&&n(r.sliceDoc(l-1,l))!=pt.Word)return l}return-1}const k2=typeof String.prototype.normalize=="function"?r=>r.normalize("NFKD"):r=>r;class ll{constructor(e,t,n=0,i=e.length,l,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=l?c=>l(k2(c)):k2,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ds(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=s8(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=jo(e);let i=this.normalize(t);if(i.length)for(let l=0,o=n;;l++){let c=i.charCodeAt(l),u=this.match(c,o,this.bufferPos+this.bufferStart);if(l==i.length-1){if(u)return this.value=u,this;break}o==n&&l<t.length&&t.charCodeAt(l)==c&&o++}}}match(e,t,n){let i=null;for(let l=0;l<this.matches.length;l+=2){let o=this.matches[l],c=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?i={from:this.matches[l+1],to:n}:(this.matches[l]++,c=!0)),c||(this.matches.splice(l,2),l-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:t,to:n}:this.matches.push(1,t)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(ll.prototype[Symbol.iterator]=function(){return this});const w6={from:-1,to:-1,match:/.*/.exec("")},Rf="gm"+(/x/.unicode==null?"":"u");class k6{constructor(e,t,n,i=0,l=e.length){if(this.text=e,this.to=l,this.curLine="",this.done=!1,this.value=w6,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new b6(e,t,n,i,l);this.re=new RegExp(t,Rf+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let o=e.lineAt(i);this.curLineStart=o.from,this.matchPos=tu(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=tu(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<i||n>this.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const _h=new WeakMap;class Ks{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let i=_h.get(e);if(!i||i.from>=n||i.to<=t){let c=new Ks(t,e.sliceString(t,n));return _h.set(e,c),c}if(i.from==t&&i.to==n)return i;let{text:l,from:o}=i;return o>t&&(l=e.sliceString(t,o)+l,o=t),i.to<n&&(l+=e.sliceString(i.to,n)),_h.set(e,new Ks(o,l)),new Ks(t,l.slice(t-o,n-o))}}class b6{constructor(e,t,n,i,l){this.text=e,this.to=l,this.done=!1,this.value=w6,this.matchPos=tu(e,i),this.re=new RegExp(t,Rf+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=Ks.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,i=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this.matchPos=tu(this.text,i+(n==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ks.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(k6.prototype[Symbol.iterator]=b6.prototype[Symbol.iterator]=function(){return this});function J7(r){try{return new RegExp(r,Rf),!0}catch{return!1}}function tu(r,e){if(e>=r.length)return e;let t=r.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}const eQ=r=>{let{state:e}=r,t=String(e.doc.lineAt(r.state.selection.main.head).number),{close:n,result:i}=Ww(r,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:t},focus:!0,submitLabel:e.phrase("go")});return i.then(l=>{let o=l&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(l.elements.line.value);if(!o){r.dispatch({effects:n});return}let c=e.doc.lineAt(e.selection.main.head),[,u,f,m,O]=o,y=m?+m.slice(1):0,S=f?+f:c.number;if(f&&O){let $=S/100;u&&($=$*(u=="-"?-1:1)+c.number/e.doc.lines),S=Math.round(e.doc.lines*$)}else f&&u&&(S=S*(u=="-"?-1:1)+c.number);let w=e.doc.line(Math.max(1,Math.min(e.doc.lines,S))),b=G.cursor(w.from+Math.max(0,Math.min(y,w.length)));r.dispatch({effects:[n,ke.scrollIntoView(b.from,{y:"center"})],selection:b})}),!0},tQ={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},nQ=be.define({combine(r){return fl(r,tQ,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function rQ(r){return[aQ,oQ]}const iQ=Re.mark({class:"cm-selectionMatch"}),sQ=Re.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function b2(r,e,t,n){return(t==0||r(e.sliceDoc(t-1,t))!=pt.Word)&&(n==e.doc.length||r(e.sliceDoc(n,n+1))!=pt.Word)}function lQ(r,e,t,n){return r(e.sliceDoc(t,t+1))==pt.Word&&r(e.sliceDoc(n-1,n))==pt.Word}const oQ=Zn.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(nQ),{state:t}=r,n=t.selection;if(n.ranges.length>1)return Re.none;let i=n.main,l,o=null;if(i.empty){if(!e.highlightWordAroundCursor)return Re.none;let u=t.wordAt(i.head);if(!u)return Re.none;o=t.charCategorizer(i.head),l=t.sliceDoc(u.from,u.to)}else{let u=i.to-i.from;if(u<e.minSelectionLength||u>200)return Re.none;if(e.wholeWords){if(l=t.sliceDoc(i.from,i.to),o=t.charCategorizer(i.head),!(b2(o,t,i.from,i.to)&&lQ(o,t,i.from,i.to)))return Re.none}else if(l=t.sliceDoc(i.from,i.to),!l)return Re.none}let c=[];for(let u of r.visibleRanges){let f=new ll(t.doc,l,u.from,u.to);for(;!f.next().done;){let{from:m,to:O}=f.value;if((!o||b2(o,t,m,O))&&(i.empty&&m<=i.from&&O>=i.to?c.push(sQ.range(m,O)):(m>=i.to||O<=i.from)&&c.push(iQ.range(m,O)),c.length>e.maxMatches))return Re.none}}return Re.set(c)}},{decorations:r=>r.decorations}),aQ=ke.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),cQ=({state:r,dispatch:e})=>{let{selection:t}=r,n=G.create(t.ranges.map(i=>r.wordAt(i.head)||G.cursor(i.head)),t.mainIndex);return n.eq(t)?!1:(e(r.update({selection:n})),!0)};function uQ(r,e){let{main:t,ranges:n}=r.selection,i=r.wordAt(t.head),l=i&&i.from==t.from&&i.to==t.to;for(let o=!1,c=new ll(r.doc,e,n[n.length-1].to);;)if(c.next(),c.done){if(o)return null;c=new ll(r.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(u=>u.from==c.value.from))continue;if(l){let u=r.wordAt(c.value.from);if(!u||u.from!=c.value.from||u.to!=c.value.to)continue}return c.value}}const hQ=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(l=>l.from===l.to))return cQ({state:r,dispatch:e});let n=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(l=>r.sliceDoc(l.from,l.to)!=n))return!1;let i=uQ(r,n);return i?(e(r.update({selection:r.selection.addRange(G.range(i.from,i.to),!1),effects:ke.scrollIntoView(i.to)})),!0):!1},ml=be.define({combine(r){return fl(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new QQ(e),scrollToMatch:e=>ke.scrollIntoView(e)})}});class Q6{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||J7(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
64
- `:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new gQ(this):new pQ(this)}getCursor(e,t=0,n){let i=e.doc?e:qe.create({doc:e});return n==null&&(n=i.doc.length),this.regexp?zs(this,i,t,n):_s(this,i,t,n)}}class $6{constructor(e){this.spec=e}}function fQ(r,e,t){return(n,i,l,o)=>{if(t&&!t(n,i,l,o))return!1;let c=n>=o&&i<=o+l.length?l.slice(n-o,i-o):e.doc.sliceString(n,i);return r(c,e,n,i)}}function _s(r,e,t,n){let i;return r.wholeWord&&(i=dQ(e.doc,e.charCategorizer(e.selection.main.head))),r.test&&(i=fQ(r.test,e,i)),new ll(e.doc,r.unquoted,t,n,r.caseSensitive?void 0:l=>l.toLowerCase(),i)}function dQ(r,e){return(t,n,i,l)=>((l>t||l+i.length<n)&&(l=Math.max(0,t-2),i=r.sliceString(l,Math.min(r.length,n+2))),(e(nu(i,t-l))!=pt.Word||e(ru(i,t-l))!=pt.Word)&&(e(ru(i,n-l))!=pt.Word||e(nu(i,n-l))!=pt.Word))}class pQ extends $6{constructor(e){super(e)}nextMatch(e,t,n){let i=_s(this.spec,e,n,e.doc.length).nextOverlapping();if(i.done){let l=Math.min(e.doc.length,t+this.spec.unquoted.length);i=_s(this.spec,e,0,l).nextOverlapping()}return i.done||i.value.from==t&&i.value.to==n?null:i.value}prevMatchInRange(e,t,n){for(let i=n;;){let l=Math.max(t,i-1e4-this.spec.unquoted.length),o=_s(this.spec,e,l,i),c=null;for(;!o.nextOverlapping().done;)c=o.value;if(c)return c;if(l==t)return null;i-=1e4}}prevMatch(e,t,n){let i=this.prevMatchInRange(e,0,t);return i||(i=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),i&&(i.from!=t||i.to!=n)?i:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=_s(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let l=_s(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!l.next().done;)i(l.value.from,l.value.to)}}function mQ(r,e,t){return(n,i,l)=>(!t||t(n,i,l))&&r(l[0],e,n,i)}function zs(r,e,t,n){let i;return r.wholeWord&&(i=OQ(e.charCategorizer(e.selection.main.head))),r.test&&(i=mQ(r.test,e,i)),new k6(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:i},t,n)}function nu(r,e){return r.slice(Ft(r,e,!1),e)}function ru(r,e){return r.slice(e,Ft(r,e))}function OQ(r){return(e,t,n)=>!n[0].length||(r(nu(n.input,n.index))!=pt.Word||r(ru(n.input,n.index))!=pt.Word)&&(r(ru(n.input,n.index+n[0].length))!=pt.Word||r(nu(n.input,n.index+n[0].length))!=pt.Word)}class gQ extends $6{nextMatch(e,t,n){let i=zs(this.spec,e,n,e.doc.length).next();return i.done&&(i=zs(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let l=Math.max(t,n-i*1e4),o=zs(this.spec,e,l,n),c=null;for(;!o.next().done;)c=o.value;if(c&&(l==t||c.from>l+10))return c;if(l==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let i=n.length;i>0;i--){let l=+n.slice(0,i);if(l>0&&l<e.match.length)return e.match[l]+n.slice(i)}return t})}matchAll(e,t){let n=zs(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let l=zs(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!l.next().done;)i(l.value.from,l.value.to)}}const Mo=Ue.define(),Lf=Ue.define(),Ri=Hn.define({create(r){return new zh(Y1(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Mo)?r=new zh(t.value.create(),r.panel):t.is(Lf)&&(r=new zh(r.query,t.value?Xf:null));return r},provide:r=>Bc.from(r,e=>e.panel)});class zh{constructor(e,t){this.query=e,this.panel=t}}const yQ=Re.mark({class:"cm-searchMatch"}),xQ=Re.mark({class:"cm-searchMatch cm-searchMatch-selected"}),vQ=Zn.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Ri))}update(r){let e=r.state.field(Ri);(e!=r.startState.field(Ri)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return Re.none;let{view:t}=this,n=new cs;for(let i=0,l=t.visibleRanges,o=l.length;i<o;i++){let{from:c,to:u}=l[i];for(;i<o-1&&u>l[i+1].from-500;)u=l[++i].to;r.highlight(t.state,c,u,(f,m)=>{let O=t.state.selection.ranges.some(y=>y.from==f&&y.to==m);n.add(f,m,O?xQ:yQ)})}return n.finish()}},{decorations:r=>r.decorations});function zo(r){return e=>{let t=e.state.field(Ri,!1);return t&&t.query.spec.valid?r(e,t):C6(e)}}const iu=zo((r,{query:e})=>{let{to:t}=r.state.selection.main,n=e.nextMatch(r.state,t,t);if(!n)return!1;let i=G.single(n.from,n.to),l=r.state.facet(ml);return r.dispatch({selection:i,effects:[Nf(r,n),l.scrollToMatch(i.main,r)],userEvent:"select.search"}),A6(r),!0}),su=zo((r,{query:e})=>{let{state:t}=r,{from:n}=t.selection.main,i=e.prevMatch(t,n,n);if(!i)return!1;let l=G.single(i.from,i.to),o=r.state.facet(ml);return r.dispatch({selection:l,effects:[Nf(r,i),o.scrollToMatch(l.main,r)],userEvent:"select.search"}),A6(r),!0}),SQ=zo((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:G.create(t.map(n=>G.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),wQ=({state:r,dispatch:e})=>{let t=r.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:i}=t.main,l=[],o=0;for(let c=new ll(r.doc,r.sliceDoc(n,i));!c.next().done;){if(l.length>1e3)return!1;c.value.from==n&&(o=l.length),l.push(G.range(c.value.from,c.value.to))}return e(r.update({selection:G.create(l,o),userEvent:"select.search.matches"})),!0},Q2=zo((r,{query:e})=>{let{state:t}=r,{from:n,to:i}=t.selection.main;if(t.readOnly)return!1;let l=e.nextMatch(t,n,n);if(!l)return!1;let o=l,c=[],u,f,m=[];o.from==n&&o.to==i&&(f=t.toText(e.getReplacement(o)),c.push({from:o.from,to:o.to,insert:f}),o=e.nextMatch(t,o.from,o.to),m.push(ke.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+".")));let O=r.state.changes(c);return o&&(u=G.single(o.from,o.to).map(O),m.push(Nf(r,o)),m.push(t.facet(ml).scrollToMatch(u.main,r))),r.dispatch({changes:O,selection:u,effects:m,userEvent:"input.replace"}),!0}),kQ=zo((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(i=>{let{from:l,to:o}=i;return{from:l,to:o,insert:e.getReplacement(i)}});if(!t.length)return!1;let n=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:ke.announce.of(n),userEvent:"input.replace.all"}),!0});function Xf(r){return r.state.facet(ml).createPanel(r)}function Y1(r,e){var t,n,i,l,o;let c=r.selection.main,u=c.empty||c.to>c.from+100?"":r.sliceDoc(c.from,c.to);if(e&&!u)return e;let f=r.facet(ml);return new Q6({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:f.literal)?u:u.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:f.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:f.literal,regexp:(l=e==null?void 0:e.regexp)!==null&&l!==void 0?l:f.regexp,wholeWord:(o=e==null?void 0:e.wholeWord)!==null&&o!==void 0?o:f.wholeWord})}function P6(r){let e=d4(r,Xf);return e&&e.dom.querySelector("[main-field]")}function A6(r){let e=P6(r);e&&e==r.root.activeElement&&e.select()}const C6=r=>{let e=r.state.field(Ri,!1);if(e&&e.panel){let t=P6(r);if(t&&t!=r.root.activeElement){let n=Y1(r.state,e.query.spec);n.valid&&r.dispatch({effects:Mo.of(n)}),t.focus(),t.select()}}else r.dispatch({effects:[Lf.of(!0),e?Mo.of(Y1(r.state,e.query.spec)):Ue.appendConfig.of(PQ)]});return!0},T6=r=>{let e=r.state.field(Ri,!1);if(!e||!e.panel)return!1;let t=d4(r,Xf);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:Lf.of(!1)}),!0},bQ=[{key:"Mod-f",run:C6,scope:"editor search-panel"},{key:"F3",run:iu,shift:su,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:iu,shift:su,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:T6,scope:"editor search-panel"},{key:"Mod-Shift-l",run:wQ},{key:"Mod-Alt-g",run:eQ},{key:"Mod-d",run:hQ,preventDefault:!0}];class QQ{constructor(e){this.view=e;let t=this.query=e.state.field(Ri).query.spec;this.commit=this.commit.bind(this),this.searchField=Yt("input",{value:t.search,placeholder:zn(e,"Find"),"aria-label":zn(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Yt("input",{value:t.replace,placeholder:zn(e,"Replace"),"aria-label":zn(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Yt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Yt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Yt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(i,l,o){return Yt("button",{class:"cm-button",name:i,onclick:l,type:"button"},o)}this.dom=Yt("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,n("next",()=>iu(e),[zn(e,"next")]),n("prev",()=>su(e),[zn(e,"previous")]),n("select",()=>SQ(e),[zn(e,"all")]),Yt("label",null,[this.caseField,zn(e,"match case")]),Yt("label",null,[this.reField,zn(e,"regexp")]),Yt("label",null,[this.wordField,zn(e,"by word")]),...e.state.readOnly?[]:[Yt("br"),this.replaceField,n("replace",()=>Q2(e),[zn(e,"replace")]),n("replaceAll",()=>kQ(e),[zn(e,"replace all")])],Yt("button",{name:"close",onclick:()=>T6(e),"aria-label":zn(e,"close"),type:"button"},["×"])])}commit(){let e=new Q6({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Mo.of(e)}))}keydown(e){Xw(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?su:iu)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Q2(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(Mo)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ml).top}}function zn(r,e){return r.state.phrase(e)}const Oc=30,gc=/[\s\.,:;?!]/;function Nf(r,{from:e,to:t}){let n=r.state.doc.lineAt(e),i=r.state.doc.lineAt(t).to,l=Math.max(n.from,e-Oc),o=Math.min(i,t+Oc),c=r.state.sliceDoc(l,o);if(l!=n.from){for(let u=0;u<Oc;u++)if(!gc.test(c[u+1])&&gc.test(c[u])){c=c.slice(u);break}}if(o!=i){for(let u=c.length-1;u>c.length-Oc;u--)if(!gc.test(c[u-1])&&gc.test(c[u])){c=c.slice(0,u);break}}return ke.announce.of(`${r.state.phrase("current match")}. ${c} ${r.state.phrase("on line")} ${n.number}.`)}const $Q=ke.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),PQ=[Ri,Vo.low(vQ),$Q],AQ="#e5c07b",$2="#e06c75",CQ="#56b6c2",TQ="#ffffff",Tc="#abb2bf",F1="#7d8799",ZQ="#61afef",MQ="#98c379",P2="#d19a66",EQ="#c678dd",jQ="#21252b",A2="#2c313a",C2="#282c34",Dh="#353a42",VQ="#3E4451",T2="#528bff",RQ=ke.theme({"&":{color:Tc,backgroundColor:C2},".cm-content":{caretColor:T2},".cm-cursor, .cm-dropCursor":{borderLeftColor:T2},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:VQ},".cm-panels":{backgroundColor:jQ,color:Tc},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:C2,color:F1,border:"none"},".cm-activeLineGutter":{backgroundColor:A2},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Dh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Dh,borderBottomColor:Dh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:A2,color:Tc}}},{dark:!0}),LQ=Qu.define([{tag:V.keyword,color:EQ},{tag:[V.name,V.deleted,V.character,V.propertyName,V.macroName],color:$2},{tag:[V.function(V.variableName),V.labelName],color:ZQ},{tag:[V.color,V.constant(V.name),V.standard(V.name)],color:P2},{tag:[V.definition(V.name),V.separator],color:Tc},{tag:[V.typeName,V.className,V.number,V.changed,V.annotation,V.modifier,V.self,V.namespace],color:AQ},{tag:[V.operator,V.operatorKeyword,V.url,V.escape,V.regexp,V.link,V.special(V.string)],color:CQ},{tag:[V.meta,V.comment],color:F1},{tag:V.strong,fontWeight:"bold"},{tag:V.emphasis,fontStyle:"italic"},{tag:V.strikethrough,textDecoration:"line-through"},{tag:V.link,color:F1,textDecoration:"underline"},{tag:V.heading,fontWeight:"bold",color:$2},{tag:[V.atom,V.bool,V.special(V.variableName)],color:P2},{tag:[V.processingInstruction,V.string,V.inserted],color:MQ},{tag:V.invalid,color:TQ}]),XQ=[RQ,Gk(LQ)];var Z2={};class lu{constructor(e,t,n,i,l,o,c,u,f,m=0,O){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=l,this.score=o,this.buffer=c,this.bufferBase=u,this.curContext=f,this.lookAhead=m,this.parent=O}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new lu(e,[],t,n,n,0,[],0,i?new M2(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=e&65535,{parser:l}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),c=l.dynamicPrecedence(i);if(c&&(this.score+=c),n==0){this.pushState(l.getGoto(this.state,i,!0),this.reducePos),i<l.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(i,this.reducePos);return}let u=this.stack.length-(n-1)*3-(e&262144?6:0),f=u?this.stack[u-2]:this.p.ranges[0].from,m=this.reducePos-f;m>=2e3&&!(!((t=this.p.parser.nodeSet.types[i])===null||t===void 0)&&t.isAnonymous)&&(f==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=m):this.p.lastBigReductionSize<m&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=f,this.p.lastBigReductionSize=m));let O=u?this.stack[u-1]:0,y=this.bufferBase+this.buffer.length-O;if(i<l.minRepeatTerm||e&131072){let S=l.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,f,S,y+4,!0)}if(e&262144)this.state=this.stack[u];else{let S=this.stack[u-3];this.state=l.getGoto(S,i,!0)}for(;this.stack.length>u;)this.stack.pop();this.reduceContext(i,f)}storeNode(e,t,n,i=4,l=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,c=this.buffer.length;if(c==0&&o.parent&&(c=o.bufferBase-o.parent.bufferBase,o=o.parent),c>0&&o.buffer[c-4]==0&&o.buffer[c-1]>-1){if(t==n)return;if(o.buffer[c-2]>=t){o.buffer[c-2]=n;return}}}if(!l||this.pos==n)this.buffer.push(e,t,n,i);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let c=!1;for(let u=o;u>0&&this.buffer[u-2]>n;u-=4)if(this.buffer[u-1]>=0){c=!0;break}if(c)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=i}}shift(e,t,n,i){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let l=e,{parser:o}=this.p;this.pos=i;let c=o.stateFlag(l,1);!c&&(i>n||t<=o.maxNode)&&(this.reducePos=i),this.pushState(l,c?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,i,4)}else this.pos=i,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,i,4)}apply(e,t,n,i){e&65536?this.reduce(e):this.shift(e,t,n,i)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new lu(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new NQ(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if((n&65536)==0)return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let i=[];for(let l=0,o;l<t.length;l+=2)(o=t[l+1])!=this.state&&this.p.parser.hasAction(o,e)&&i.push(t[l],o);if(this.stack.length<120)for(let l=0;i.length<8&&l<t.length;l+=2){let o=t[l+1];i.some((c,u)=>u&1&&c==o)||i.push(t[l],o)}t=i}let n=[];for(let i=0;i<t.length&&n.length<4;i+=2){let l=t[i+1];if(l==this.state)continue;let o=this.split();o.pushState(l,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[i],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((t&65536)==0)return!1;if(!e.validAction(this.state,t)){let n=t>>19,i=t&65535,l=this.stack.length-n*3;if(l<0||e.getGoto(this.stack[l],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(i,l)=>{if(!t.includes(i))return t.push(i),e.allActions(i,o=>{if(!(o&393216))if(o&65536){let c=(o>>19)-l;if(c>1){let u=o&65535,f=this.stack.length-c*3;if(f>=0&&e.getGoto(this.stack[f],u,!1)>=0)return c<<19|65536|u}}else{let c=n(o,l+1);if(c!=null)return c}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new M2(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class M2{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class NQ{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class ou{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new ou(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new ou(this.stack,this.pos,this.index)}}function uo(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let n=0,i=0;n<r.length;){let l=0;for(;;){let o=r.charCodeAt(n++),c=!1;if(o==126){l=65535;break}o>=92&&o--,o>=34&&o--;let u=o-32;if(u>=46&&(u-=46,c=!0),l+=u,c)break;l*=46}t?t[i++]=l:t=new e(l)}return t}class Zc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const E2=new Zc;class _Q{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=E2,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,l=this.pos+e;for(;l<n.from;){if(!i)return null;let o=this.ranges[--i];l-=n.from-o.to,n=o}for(;t<0?l>n.to:l>=n.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];l+=o.from-n.to,n=o}return l}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(t);else{let l=this.resolveOffset(e,1);if(l==null)return-1;if(n=l,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,c=this.range;for(;c.to<=n;)c=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>c.to&&(this.chunk2=this.chunk2.slice(0,c.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=E2,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class Js{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;Z6(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}Js.prototype.contextual=Js.prototype.fallback=Js.prototype.extend=!1;class au{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?uo(e):e}token(e,t){let n=e.pos,i=0;for(;;){let l=e.next<0,o=e.resolveOffset(1,1);if(Z6(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(l||i++,o==null)break;e.reset(o,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}au.prototype.contextual=Js.prototype.fallback=Js.prototype.extend=!1;class Yn{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Z6(r,e,t,n,i,l){let o=0,c=1<<n,{dialect:u}=t.p.parser;e:for(;(c&r[o])!=0;){let f=r[o+1];for(let S=o+3;S<f;S+=2)if((r[S+1]&c)>0){let w=r[S];if(u.allows(w)&&(e.token.value==-1||e.token.value==w||zQ(w,e.token.value,i,l))){e.acceptToken(w);break}}let m=e.next,O=0,y=r[o+2];if(e.next<0&&y>O&&r[f+y*3-3]==65535){o=r[f+y*3-1];continue e}for(;O<y;){let S=O+y>>1,w=f+S+(S<<1),b=r[w],$=r[w+1]||65536;if(m<b)y=S;else if(m>=$)O=S+1;else{o=r[w+2],e.advance();continue e}}break}}function j2(r,e,t){for(let n=e,i;(i=r[n])!=65535;n++)if(i==t)return n-e;return-1}function zQ(r,e,t,n){let i=j2(t,n,e);return i<0||j2(t,n,r)<i}const Dn=typeof process<"u"&&Z2&&/\bparse\b/.test(Z2.LOG);let Ih=null;function V2(r,e,t){let n=r.cursor(rt.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(r.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:r.length}}class DQ{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?V2(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?V2(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],i=this.index[t];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let l=n.children[i],o=this.start[t]+n.positions[i];if(o>e)return this.nextStart=o,null;if(l instanceof mt){if(o==e){if(o<this.safeFrom)return null;let c=o+l.length;if(c<=this.safeTo){let u=l.prop(Ie.lookAhead);if(!u||c+u<this.fragment.to)return l}}this.index[t]++,o+l.length>=Math.max(this.safeFrom,e)&&(this.trees.push(l),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+l.length}}}class IQ{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Zc)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:l}=i,o=i.stateSlot(e.state,3),c=e.curContext?e.curContext.hash:0,u=0;for(let f=0;f<l.length;f++){if((1<<f&o)==0)continue;let m=l[f],O=this.tokens[f];if(!(n&&!m.fallback)&&((m.contextual||O.start!=e.pos||O.mask!=o||O.context!=c)&&(this.updateCachedToken(O,m,e),O.mask=o,O.context=c),O.lookAhead>O.end+25&&(u=Math.max(O.lookAhead,u)),O.value!=0)){let y=t;if(O.extended>-1&&(t=this.addActions(e,O.extended,O.end,t)),t=this.addActions(e,O.value,O.end,t),!m.extend&&(n=O,t>y))break}}for(;this.actions.length>t;)this.actions.pop();return u&&e.setLookAhead(u),!n&&e.pos==this.stream.end&&(n=new Zc,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Zc,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:l}=n.p;for(let o=0;o<l.specialized.length;o++)if(l.specialized[o]==e.value){let c=l.specializers[o](this.stream.read(e.start,e.end),n);if(c>=0&&n.p.parser.dialect.allows(c>>1)){(c&1)==0?e.value=c>>1:e.extended=c>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let l=0;l<i;l+=3)if(this.actions[l]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=n,i}addActions(e,t,n,i){let{state:l}=e,{parser:o}=e.p,{data:c}=o;for(let u=0;u<2;u++)for(let f=o.stateSlot(l,u?2:1);;f+=3){if(c[f]==65535)if(c[f+1]==1)f=ni(c,f+2);else{i==0&&c[f+1]==2&&(i=this.putAction(ni(c,f+2),t,n,i));break}c[f]==t&&(i=this.putAction(ni(c,f+1),t,n,i))}return i}}class WQ{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new _Q(t,i),this.tokens=new IQ(e,this.stream),this.topTerm=e.top[1];let{from:l}=i[0];this.stacks=[lu.start(this,e.top[0],l)],this.fragments=n.length&&this.stream.end-l>e.bufferLength*4?new DQ(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],i,l;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let c=e[o];for(;;){if(this.tokens.mainToken=null,c.pos>t)n.push(c);else{if(this.advanceStack(c,n,e))continue;{i||(i=[],l=[]),i.push(c);let u=this.tokens.getMainToken(c);l.push(u.value,u.end)}}break}}if(!n.length){let o=i&&YQ(i);if(o)return Dn&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Dn&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,l,n);if(o)return Dn&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((c,u)=>u.score-c.score);n.length>o;)n.pop();n.some(c=>c.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let c=n[o];for(let u=o+1;u<n.length;u++){let f=n[u];if(c.sameState(f)||c.buffer.length>500&&f.buffer.length>500)if((c.score-f.score||c.buffer.length-f.buffer.length)>0)n.splice(u--,1);else{n.splice(o--,1);continue e}}}n.length>12&&(n.sort((o,c)=>c.score-o.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let i=e.pos,{parser:l}=this,o=Dn?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let f=e.curContext&&e.curContext.tracker.strict,m=f?e.curContext.hash:0;for(let O=this.fragments.nodeAt(i);O;){let y=this.parser.nodeSet.types[O.type.id]==O.type?l.getGoto(e.state,O.type.id):-1;if(y>-1&&O.length&&(!f||(O.prop(Ie.contextHash)||0)==m))return e.useNode(O,y),Dn&&console.log(o+this.stackID(e)+` (via reuse of ${l.getName(O.type.id)})`),!0;if(!(O instanceof mt)||O.children.length==0||O.positions[0]>0)break;let S=O.children[0];if(S instanceof mt&&O.positions[0]==0)O=S;else break}}let c=l.stateSlot(e.state,4);if(c>0)return e.reduce(c),Dn&&console.log(o+this.stackID(e)+` (via always-reduce ${l.getName(c&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let u=this.tokens.getActions(e);for(let f=0;f<u.length;){let m=u[f++],O=u[f++],y=u[f++],S=f==u.length||!n,w=S?e:e.split(),b=this.tokens.mainToken;if(w.apply(m,O,b?b.start:w.pos,y),Dn&&console.log(o+this.stackID(w)+` (via ${(m&65536)==0?"shift":`reduce of ${l.getName(m&65535)}`} for ${l.getName(O)} @ ${i}${w==e?"":", split"})`),S)return!0;w.pos>i?t.push(w):n.push(w)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return R2(e,t),!0}}runRecovery(e,t,n){let i=null,l=!1;for(let o=0;o<e.length;o++){let c=e[o],u=t[o<<1],f=t[(o<<1)+1],m=Dn?this.stackID(c)+" -> ":"";if(c.deadEnd&&(l||(l=!0,c.restart(),Dn&&console.log(m+this.stackID(c)+" (restarted)"),this.advanceFully(c,n))))continue;let O=c.split(),y=m;for(let S=0;S<10&&O.forceReduce()&&(Dn&&console.log(y+this.stackID(O)+" (via force-reduce)"),!this.advanceFully(O,n));S++)Dn&&(y=this.stackID(O)+" -> ");for(let S of c.recoverByInsert(u))Dn&&console.log(m+this.stackID(S)+" (via recover-insert)"),this.advanceFully(S,n);this.stream.end>c.pos?(f==c.pos&&(f++,u=0),c.recoverByDelete(u,f),Dn&&console.log(m+this.stackID(c)+` (via recover-delete ${this.parser.getName(u)})`),R2(c,n)):(!i||i.score<O.score)&&(i=O)}return i}stackToTree(e){return e.close(),mt.build({buffer:ou.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Ih||(Ih=new WeakMap)).get(e);return t||Ih.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function R2(r,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==r.pos&&n.sameState(r)){e[t].score<r.score&&(e[t]=r);return}}e.push(r)}class HQ{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const Wh=r=>r;class M6{constructor(e){this.start=e.start,this.shift=e.shift||Wh,this.reduce=e.reduce||Wh,this.reuse=e.reuse||Wh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class ol extends b4{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let c=0;c<e.repeatNodeCount;c++)t.push("");let n=Object.keys(e.topRules).map(c=>e.topRules[c][1]),i=[];for(let c=0;c<t.length;c++)i.push([]);function l(c,u,f){i[c].push([u,u.deserialize(String(f))])}if(e.nodeProps)for(let c of e.nodeProps){let u=c[0];typeof u=="string"&&(u=Ie[u]);for(let f=1;f<c.length;){let m=c[f++];if(m>=0)l(m,u,c[f++]);else{let O=c[f+-m];for(let y=-m;y>0;y--)l(c[f++],u,O);f++}}}this.nodeSet=new vf(t.map((c,u)=>On.define({name:u>=this.minRepeatTerm?void 0:c,id:u,props:i[u],top:n.indexOf(u)>-1,error:u==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(u)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=x4;let o=uo(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let c=0;c<this.specializerSpecs.length;c++)this.specialized[c]=this.specializerSpecs[c].term;this.specializers=this.specializerSpecs.map(L2),this.states=uo(e.states,Uint32Array),this.data=uo(e.stateData),this.goto=uo(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(c=>typeof c=="number"?new Js(o,c):c),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new WQ(this,e,t,n);for(let l of this.wrappers)i=l(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let l=i[t+1];;){let o=i[l++],c=o&1,u=i[l++];if(c&&n)return u;for(let f=l+(o>>1);l<f;l++)if(i[l]==e)return u;if(c)return-1}}hasAction(e,t){let n=this.data;for(let i=0;i<2;i++)for(let l=this.stateSlot(e,i?2:1),o;;l+=3){if((o=n[l])==65535)if(n[l+1]==1)o=n[l=ni(n,l+2)];else{if(n[l+1]==2)return ni(n,l+2);break}if(o==t||o==0)return ni(n,l+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let l=this.stateSlot(e,1);i==null;l+=3){if(this.data[l]==65535)if(this.data[l+1]==1)l=ni(this.data,l+2);else break;i=t(ni(this.data,l+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=ni(this.data,n+2);else break;if((this.data[n+2]&1)==0){let i=this.data[n+1];t.some((l,o)=>o&1&&l==i)||t.push(this.data[n],i)}}return t}configure(e){let t=Object.assign(Object.create(ol.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(l=>l.from==n);return i?i.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let l=e.specializers.find(c=>c.from==n.external);if(!l)return n;let o=Object.assign(Object.assign({},n),{external:l.to});return t.specializers[i]=L2(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let l of e.split(" ")){let o=t.indexOf(l);o>=0&&(n[o]=!0)}let i=null;for(let l=0;l<t.length;l++)if(!n[l])for(let o=this.dialects[t[l]],c;(c=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[c]=1;return new HQ(e,n,i)}static deserialize(e){return new ol(e)}}function ni(r,e){return r[e]|r[e+1]<<16}function YQ(r){let e=null;for(let t of r){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function L2(r){if(r.external){let e=r.extend?1:0;return(t,n)=>r.external(t,n)<<1|e}return r.get}const FQ=55,BQ=1,qQ=56,UQ=2,GQ=57,KQ=3,X2=4,JQ=5,_f=6,E6=7,j6=8,V6=9,R6=10,e$=11,t$=12,n$=13,Hh=58,r$=14,i$=15,N2=59,L6=21,s$=23,X6=24,l$=25,B1=27,N6=28,o$=29,a$=32,c$=35,u$=37,h$=38,f$=0,d$=1,p$={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},m$={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},_2={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function O$(r){return r==45||r==46||r==58||r>=65&&r<=90||r==95||r>=97&&r<=122||r>=161}let z2=null,D2=null,I2=0;function q1(r,e){let t=r.pos+e;if(I2==t&&D2==r)return z2;let n=r.peek(e),i="";for(;O$(n);)i+=String.fromCharCode(n),n=r.peek(++e);return D2=r,I2=t,z2=i?i.toLowerCase():n==g$||n==y$?void 0:null}const _6=60,cu=62,zf=47,g$=63,y$=33,x$=45;function W2(r,e){this.name=r,this.parent=e}const v$=[_f,R6,E6,j6,V6],S$=new M6({start:null,shift(r,e,t,n){return v$.indexOf(e)>-1?new W2(q1(n,1)||"",r):r},reduce(r,e){return e==L6&&r?r.parent:r},reuse(r,e,t,n){let i=e.type.id;return i==_f||i==u$?new W2(q1(n,1)||"",r):r},strict:!1}),w$=new Yn((r,e)=>{if(r.next!=_6){r.next<0&&e.context&&r.acceptToken(Hh);return}r.advance();let t=r.next==zf;t&&r.advance();let n=q1(r,0);if(n===void 0)return;if(!n)return r.acceptToken(t?i$:r$);let i=e.context?e.context.name:null;if(t){if(n==i)return r.acceptToken(e$);if(i&&m$[i])return r.acceptToken(Hh,-2);if(e.dialectEnabled(f$))return r.acceptToken(t$);for(let l=e.context;l;l=l.parent)if(l.name==n)return;r.acceptToken(n$)}else{if(n=="script")return r.acceptToken(E6);if(n=="style")return r.acceptToken(j6);if(n=="textarea")return r.acceptToken(V6);if(p$.hasOwnProperty(n))return r.acceptToken(R6);i&&_2[i]&&_2[i][n]?r.acceptToken(Hh,-1):r.acceptToken(_f)}},{contextual:!0}),k$=new Yn(r=>{for(let e=0,t=0;;t++){if(r.next<0){t&&r.acceptToken(N2);break}if(r.next==x$)e++;else if(r.next==cu&&e>=2){t>=3&&r.acceptToken(N2,-2);break}else e=0;r.advance()}});function b$(r){for(;r;r=r.parent)if(r.name=="svg"||r.name=="math")return!0;return!1}const Q$=new Yn((r,e)=>{if(r.next==zf&&r.peek(1)==cu){let t=e.dialectEnabled(d$)||b$(e.context);r.acceptToken(t?JQ:X2,2)}else r.next==cu&&r.acceptToken(X2,1)});function Df(r,e,t){let n=2+r.length;return new Yn(i=>{for(let l=0,o=0,c=0;;c++){if(i.next<0){c&&i.acceptToken(e);break}if(l==0&&i.next==_6||l==1&&i.next==zf||l>=2&&l<n&&i.next==r.charCodeAt(l-2))l++,o++;else if(l==n&&i.next==cu){c>o?i.acceptToken(e,-o):i.acceptToken(t,-(o-2));break}else if((i.next==10||i.next==13)&&c){i.acceptToken(e,1);break}else l=o=0;i.advance()}})}const $$=Df("script",FQ,BQ),P$=Df("style",qQ,UQ),A$=Df("textarea",GQ,KQ),C$=vu({"Text RawText IncompleteTag IncompleteCloseTag":V.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":V.angleBracket,TagName:V.tagName,"MismatchedCloseTag/TagName":[V.tagName,V.invalid],AttributeName:V.attributeName,"AttributeValue UnquotedAttributeValue":V.attributeValue,Is:V.definitionOperator,"EntityReference CharacterReference":V.character,Comment:V.blockComment,ProcessingInst:V.processingInstruction,DoctypeDecl:V.documentMeta}),T$=ol.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+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XOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:S$,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[C$],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!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,Q$,w$,k$,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function z6(r,e){let t=Object.create(null);for(let n of r.getChildren(X6)){let i=n.getChild(l$),l=n.getChild(B1)||n.getChild(N6);i&&(t[e.read(i.from,i.to)]=l?l.type.id==B1?e.read(l.from+1,l.to-1):e.read(l.from,l.to):"")}return t}function H2(r,e){let t=r.getChild(s$);return t?e.read(t.from,t.to):" "}function Yh(r,e,t){let n;for(let i of t)if(!i.attrs||i.attrs(n||(n=z6(r.node.parent.firstChild,e))))return{parser:i.parser,bracketed:!0};return null}function D6(r=[],e=[]){let t=[],n=[],i=[],l=[];for(let c of r)(c.tag=="script"?t:c.tag=="style"?n:c.tag=="textarea"?i:l).push(c);let o=e.length?Object.create(null):null;for(let c of e)(o[c.name]||(o[c.name]=[])).push(c);return fk((c,u)=>{let f=c.type.id;if(f==o$)return Yh(c,u,t);if(f==a$)return Yh(c,u,n);if(f==c$)return Yh(c,u,i);if(f==L6&&l.length){let m=c.node,O=m.firstChild,y=O&&H2(O,u),S;if(y){for(let w of l)if(w.tag==y&&(!w.attrs||w.attrs(S||(S=z6(O,u))))){let b=m.lastChild,$=b.type.id==h$?b.from:m.to;if($>O.to)return{parser:w.parser,overlay:[{from:O.to,to:$}]}}}}if(o&&f==X6){let m=c.node,O;if(O=m.firstChild){let y=o[u.read(O.from,O.to)];if(y)for(let S of y){if(S.tagName&&S.tagName!=H2(m.parent,u))continue;let w=m.lastChild;if(w.type.id==B1){let b=w.from+1,$=w.lastChild,C=w.to-($&&$.isError?0:1);if(C>b)return{parser:S.parser,overlay:[{from:b,to:C}],bracketed:!0}}else if(w.type.id==N6)return{parser:S.parser,overlay:[{from:w.from,to:w.to}]}}}}return null})}const Z$=132,Y2=1,M$=133,E$=134,I6=2,j$=135,V$=3,R$=4,W6=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],L$=58,X$=40,H6=95,N$=91,Mc=45,_$=46,z$=35,D$=37,I$=38,W$=92,H$=10,Y$=42;function Eo(r){return r>=65&&r<=90||r>=97&&r<=122||r>=161}function If(r){return r>=48&&r<=57}function F2(r){return If(r)||r>=97&&r<=102||r>=65&&r<=70}const Y6=(r,e,t)=>(n,i)=>{for(let l=!1,o=0,c=0;;c++){let{next:u}=n;if(Eo(u)||u==Mc||u==H6||l&&If(u))!l&&(u!=Mc||c>0)&&(l=!0),o===c&&u==Mc&&o++,n.advance();else if(u==W$&&n.peek(1)!=H$){if(n.advance(),F2(n.next)){do n.advance();while(F2(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();l=!0}else{l&&n.acceptToken(o==2&&i.canShift(I6)?e:u==X$?t:r);break}}},F$=new Yn(Y6(M$,I6,E$),{contextual:!0}),B$=new Yn(Y6(j$,V$,R$),{contextual:!0}),q$=new Yn(r=>{if(W6.includes(r.peek(-1))){let{next:e}=r;(Eo(e)||e==H6||e==z$||e==_$||e==Y$||e==N$||e==L$&&Eo(r.peek(1))||e==Mc||e==I$)&&r.acceptToken(Z$)}}),U$=new Yn(r=>{if(!W6.includes(r.peek(-1))){let{next:e}=r;if(e==D$&&(r.advance(),r.acceptToken(Y2)),Eo(e)){do r.advance();while(Eo(r.next)||If(r.next));r.acceptToken(Y2)}}}),G$=vu({"AtKeyword import charset namespace keyframes media supports font-feature-values":V.definitionKeyword,"from to selector scope MatchFlag":V.keyword,NamespaceName:V.namespace,KeyframeName:V.labelName,KeyframeRangeName:V.operatorKeyword,TagName:V.tagName,ClassName:V.className,PseudoClassName:V.constant(V.className),IdName:V.labelName,"FeatureName PropertyName":V.propertyName,AttributeName:V.attributeName,NumberLiteral:V.number,KeywordQuery:V.keyword,UnaryQueryOp:V.operatorKeyword,"CallTag ValueName FontName":V.atom,VariableName:V.variableName,Callee:V.operatorKeyword,Unit:V.unit,"UniversalSelector NestingSelector":V.definitionOperator,"MatchOp CompareOp":V.compareOperator,"ChildOp SiblingOp, LogicOp":V.logicOperator,BinOp:V.arithmeticOperator,Important:V.modifier,Comment:V.blockComment,ColorLiteral:V.color,"ParenthesizedContent StringLiteral":V.string,":":V.punctuation,"PseudoOp #":V.derefOperator,"; , |":V.separator,"( )":V.paren,"[ ]":V.squareBracket,"{ }":V.brace}),K$={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},J$={__proto__:null,or:104,and:104,not:112,only:112,layer:180},eP={__proto__:null,selector:118,layer:176},tP={__proto__:null,"@import":172,"@media":184,"@charset":188,"@namespace":192,"@keyframes":198,"@supports":210,"@scope":214,"@font-feature-values":220},nP={__proto__:null,to:217},rP=ol.deserialize({version:14,states:"HhQYQdOOO#wQdOOP$OO`OOO$xQaO'#CfOOQP'#Ce'#CeO%PQ`O'#CgO%UQdO'#CkO%uQaO'#CcO&PQdO'#CnO&[QdO'#DtO&aQdO'#DvO&fQdO'#DzO&fQdO'#D}OOQP'#Fa'#FaO'rQhO'#EpOOQS'#F`'#F`OOQS'#Es'#EsQYQdOOO'yQdO'#ETO)VQhO'#EZO'yQdO'#E]O)^QdO'#E_O)iQdO'#EbO(nQhO'#EhO)qQdO'#EjO)|QdO'#EmO*RQaO'#CfO*YQ`O'#EQO*_Q`O'#FkO*jQdO'#FkQOQ`OOP*tO&jO'#CaPOOO)CAO)CAOO+PQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO%UQdO,59VO+UQdO,59YO&[QdO,5:`O&aQdO,5:bO&fQdO,5:fO&fQdO,5:hO&fQdO,5:iO&fQdO'#EzO+aQ`O,58}O+iQdO'#EPOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO+pQ`O,59YO+uQ`O,59YOOQP'#Du'#DuOOQP,5:`,5:`OOQO'#Dw'#DwO+zQpO,5:bO,eQaO,5:fO,{QaO,5:iOOQW'#D^'#D^O-wQhO'#DgO.[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r!]Q&_%VR'a'PR%`#yR%P#jQnPR#i}Q!scQ$[!kR%h$]",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:156,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[G$],skippedNodes:[0,5,114],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY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;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$`Q!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$UQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!rQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[q$,U$,F$,B$,1,2,3,4,new au("m~RRYZ[z{a~~g~aO$Q~~dP!P!Qg~lO$R~~",28,139)],topRules:{StyleSheet:[0,6],Styles:[1,113]},dynamicPrecedences:{81:1},specialized:[{term:134,get:r=>K$[r]||-1},{term:135,get:r=>J$[r]||-1},{term:4,get:r=>eP[r]||-1},{term:28,get:r=>tP[r]||-1},{term:133,get:r=>nP[r]||-1}],tokenPrec:2182});let Fh=null;function Bh(){if(!Fh&&typeof document=="object"&&document.body){let{style:r}=document.body,e=[],t=new Set;for(let n in r)n!="cssText"&&n!="cssFloat"&&typeof r[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),t.has(n)||(e.push(n),t.add(n)));Fh=e.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return Fh||[]}const B2=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(r=>({type:"class",label:r})),q2=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(r=>({type:"keyword",label:r})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(r=>({type:"constant",label:r}))),iP=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(r=>({type:"type",label:r})),sP=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(r=>({type:"keyword",label:r})),ti=/^(\w[\w-]*|-\w[\w-]*|)$/,lP=/^-(-[\w-]*)?$/;function oP(r,e){var t;if((r.name=="("||r.type.isError)&&(r=r.parent||r),r.name!="ArgList")return!1;let n=(t=r.parent)===null||t===void 0?void 0:t.firstChild;return(n==null?void 0:n.name)!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}const U2=new k4,aP=["Declaration"];function cP(r){for(let e=r;;){if(e.type.isTop)return e;if(!(e=e.parent))return r}}function F6(r,e,t){if(e.to-e.from>4096){let n=U2.get(e);if(n)return n;let i=[],l=new Set,o=e.cursor(rt.IncludeAnonymous);if(o.firstChild())do for(let c of F6(r,o.node,t))l.has(c.label)||(l.add(c.label),i.push(c));while(o.nextSibling());return U2.set(e,i),i}else{let n=[],i=new Set;return e.cursor().iterate(l=>{var o;if(t(l)&&l.matchContext(aP)&&((o=l.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let c=r.sliceString(l.from,l.to);i.has(c)||(i.add(c),n.push({label:c,type:"variable"}))}}),n}}const uP=r=>e=>{let{state:t,pos:n}=e,i=Pt(t).resolveInner(n,-1),l=i.type.isError&&i.from==i.to-1&&t.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(l||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:Bh(),validFor:ti};if(i.name=="ValueName")return{from:i.from,options:q2,validFor:ti};if(i.name=="PseudoClassName")return{from:i.from,options:B2,validFor:ti};if(r(i)||(e.explicit||l)&&oP(i,t.doc))return{from:r(i)||l?i.from:n,options:F6(t.doc,cP(i),r),validFor:lP};if(i.name=="TagName"){for(let{parent:u}=i;u;u=u.parent)if(u.name=="Block")return{from:i.from,options:Bh(),validFor:ti};return{from:i.from,options:iP,validFor:ti}}if(i.name=="AtKeyword")return{from:i.from,options:sP,validFor:ti};if(!e.explicit)return null;let o=i.resolve(n),c=o.childBefore(n);return c&&c.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:B2,validFor:ti}:c&&c.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:q2,validFor:ti}:o.name=="Block"||o.name=="Styles"?{from:n,options:Bh(),validFor:ti}:null},hP=uP(r=>r.name=="VariableName"),uu=il.define({name:"css",parser:rP.configure({props:[ku.add({Declaration:Cc()}),bu.add({"Block KeyframeList":Z4})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function B6(){return new Qf(uu,uu.data.of({autocomplete:hP}))}const fP=316,dP=317,G2=1,pP=2,mP=3,OP=4,gP=318,yP=320,xP=321,vP=5,SP=6,wP=0,U1=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],q6=125,kP=59,G1=47,bP=42,QP=43,$P=45,PP=60,AP=44,CP=63,TP=46,ZP=91,MP=new M6({start:!1,shift(r,e){return e==vP||e==SP||e==yP?r:e==xP},strict:!1}),EP=new Yn((r,e)=>{let{next:t}=r;(t==q6||t==-1||e.context)&&r.acceptToken(gP)},{contextual:!0,fallback:!0}),jP=new Yn((r,e)=>{let{next:t}=r,n;U1.indexOf(t)>-1||t==G1&&((n=r.peek(1))==G1||n==bP)||t!=q6&&t!=kP&&t!=-1&&!e.context&&r.acceptToken(fP)},{contextual:!0}),VP=new Yn((r,e)=>{r.next==ZP&&!e.context&&r.acceptToken(dP)},{contextual:!0}),RP=new Yn((r,e)=>{let{next:t}=r;if(t==QP||t==$P){if(r.advance(),t==r.next){r.advance();let n=!e.context&&e.canShift(G2);r.acceptToken(n?G2:pP)}}else t==CP&&r.peek(1)==TP&&(r.advance(),r.advance(),(r.next<48||r.next>57)&&r.acceptToken(mP))},{contextual:!0});function qh(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}const LP=new Yn((r,e)=>{if(r.next!=PP||!e.dialectEnabled(wP)||(r.advance(),r.next==G1))return;let t=0;for(;U1.indexOf(r.next)>-1;)r.advance(),t++;if(qh(r.next,!0)){for(r.advance(),t++;qh(r.next,!1);)r.advance(),t++;for(;U1.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==AP)return;for(let n=0;;n++){if(n==7){if(!qh(r.next,!0))return;break}if(r.next!="extends".charCodeAt(n))break;r.advance(),t++}}r.acceptToken(OP,-t)}),XP=vu({"get set async static":V.modifier,"for while do if else switch try catch finally return throw break continue default case defer":V.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":V.operatorKeyword,"let var const using function class extends":V.definitionKeyword,"import export from":V.moduleKeyword,"with debugger new":V.keyword,TemplateString:V.special(V.string),super:V.atom,BooleanLiteral:V.bool,this:V.self,null:V.null,Star:V.modifier,VariableName:V.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":V.function(V.variableName),VariableDefinition:V.definition(V.variableName),Label:V.labelName,PropertyName:V.propertyName,PrivatePropertyName:V.special(V.propertyName),"CallExpression/MemberExpression/PropertyName":V.function(V.propertyName),"FunctionDeclaration/VariableDefinition":V.function(V.definition(V.variableName)),"ClassDeclaration/VariableDefinition":V.definition(V.className),"NewExpression/VariableName":V.className,PropertyDefinition:V.definition(V.propertyName),PrivatePropertyDefinition:V.definition(V.special(V.propertyName)),UpdateOp:V.updateOperator,"LineComment Hashbang":V.lineComment,BlockComment:V.blockComment,Number:V.number,String:V.string,Escape:V.escape,ArithOp:V.arithmeticOperator,LogicOp:V.logicOperator,BitOp:V.bitwiseOperator,CompareOp:V.compareOperator,RegExp:V.regexp,Equals:V.definitionOperator,Arrow:V.function(V.punctuation),": Spread":V.punctuation,"( )":V.paren,"[ ]":V.squareBracket,"{ }":V.brace,"InterpolationStart InterpolationEnd":V.special(V.brace),".":V.derefOperator,", ;":V.separator,"@":V.meta,TypeName:V.typeName,TypeDefinition:V.definition(V.typeName),"type enum interface implements namespace module declare":V.definitionKeyword,"abstract global Privacy readonly override":V.modifier,"is keyof unique infer asserts":V.operatorKeyword,JSXAttributeValue:V.attributeValue,JSXText:V.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":V.angleBracket,"JSXIdentifier JSXNameSpacedName":V.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":V.attributeName,"JSXBuiltin/JSXIdentifier":V.standard(V.tagName)}),NP={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},_P={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},zP={__proto__:null,"<":193},DP=ol.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`Ql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Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:MP,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[XP],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW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TEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[jP,VP,RP,LP,2,3,4,5,6,7,8,9,10,11,12,13,14,EP,new au("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new au("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:r=>NP[r]||-1},{term:343,get:r=>_P[r]||-1},{term:95,get:r=>zP[r]||-1}],tokenPrec:15201}),U6=[Pn("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Pn("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Pn("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Pn("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Pn("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Pn(`try {
65
- \${}
66
- } catch (\${error}) {
67
- \${}
68
- }`,{label:"try",detail:"/ catch block",type:"keyword"}),Pn("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Pn(`if (\${}) {
69
- \${}
70
- } else {
71
- \${}
72
- }`,{label:"if",detail:"/ else block",type:"keyword"}),Pn(`class \${name} {
73
- constructor(\${params}) {
74
- \${}
75
- }
76
- }`,{label:"class",detail:"definition",type:"keyword"}),Pn('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Pn('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],IP=U6.concat([Pn("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Pn("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Pn("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),K2=new k4,G6=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function so(r){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,r),!0}}const WP=["FunctionDeclaration"],HP={FunctionDeclaration:so("function"),ClassDeclaration:so("class"),ClassExpression:()=>!0,EnumDeclaration:so("constant"),TypeAliasDeclaration:so("type"),NamespaceDeclaration:so("namespace"),VariableDefinition(r,e){r.matchContext(WP)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function K6(r,e){let t=K2.get(e);if(t)return t;let n=[],i=!0;function l(o,c){let u=r.sliceString(o.from,o.to);n.push({label:u,type:c})}return e.cursor(rt.IncludeAnonymous).iterate(o=>{if(i)i=!1;else if(o.name){let c=HP[o.name];if(c&&c(o,l)||G6.has(o.name))return!1}else if(o.to-o.from>8192){for(let c of K6(r,o.node))n.push(c);return!1}}),K2.set(e,n),n}const J2=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,J6=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function YP(r){let e=Pt(r.state).resolveInner(r.pos,-1);if(J6.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&J2.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let n=[];for(let i=e;i;i=i.parent)G6.has(i.name)&&(n=n.concat(K6(r.state.doc,i)));return{options:n,from:t?e.from:r.pos,validFor:J2}}const Wr=il.define({name:"javascript",parser:DP.configure({props:[ku.add({IfStatement:Cc({except:/^\s*({|else\b)/}),TryStatement:Cc({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Lk,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:n?1:2)*r.unit},Block:Rk({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":Cc({except:/^\s*{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),bu.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Z4,BlockComment(r){return{from:r.from+2,to:r.to-2}},JSXElement(r){let e=r.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let t=r.lastChild;return{from:e.to,to:t.type.isError?r.to:t.from}},"JSXSelfClosingTag JSXOpenTag"(r){var e;let t=(e=r.firstChild)===null||e===void 0?void 0:e.nextSibling,n=r.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?r.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),e5={test:r=>/^JSX/.test(r.name),facet:P4({commentTokens:{block:{open:"{/*",close:"*/}"}}})},t5=Wr.configure({dialect:"ts"},"typescript"),n5=Wr.configure({dialect:"jsx",props:[bf.add(r=>r.isTop?[e5]:void 0)]}),r5=Wr.configure({dialect:"jsx ts",props:[bf.add(r=>r.isTop?[e5]:void 0)]},"typescript");let i5=r=>({label:r,type:"keyword"});const s5="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(i5),FP=s5.concat(["declare","implements","private","protected","public"].map(i5));function l5(r={}){let e=r.jsx?r.typescript?r5:n5:r.typescript?t5:Wr,t=r.typescript?IP.concat(FP):U6.concat(s5);return new Qf(e,[Wr.data.of({autocomplete:A7(J6,P7(t))}),Wr.data.of({autocomplete:YP}),r.jsx?UP:[]])}function BP(r){for(;;){if(r.name=="JSXOpenTag"||r.name=="JSXSelfClosingTag"||r.name=="JSXFragmentTag")return r;if(r.name=="JSXEscape"||!r.parent)return null;r=r.parent}}function eg(r,e,t=r.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return r.sliceString(n.from,Math.min(n.to,t));return""}const qP=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),UP=ke.inputHandler.of((r,e,t,n,i)=>{if((qP?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||n!=">"&&n!="/"||!Wr.isActiveAt(r.state,e,-1))return!1;let l=i(),{state:o}=l,c=o.changeByRange(u=>{var f;let{head:m}=u,O=Pt(o).resolveInner(m-1,-1),y;if(O.name=="JSXStartTag"&&(O=O.parent),!(o.doc.sliceString(m-1,m)!=n||O.name=="JSXAttributeValue"&&O.to>m)){if(n==">"&&O.name=="JSXFragmentTag")return{range:u,changes:{from:m,insert:"</>"}};if(n=="/"&&O.name=="JSXStartCloseTag"){let S=O.parent,w=S.parent;if(w&&S.from==m-2&&((y=eg(o.doc,w.firstChild,m))||((f=w.firstChild)===null||f===void 0?void 0:f.name)=="JSXFragmentTag")){let b=`${y}>`;return{range:G.cursor(m+b.length,-1),changes:{from:m,insert:b}}}}else if(n==">"){let S=BP(O);if(S&&S.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(m,m+2))&&(y=eg(o.doc,S,m)))return{range:u,changes:{from:m,insert:`</${y}>`}}}}return{range:u}});return c.changes.empty?!1:(r.dispatch([l,o.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),lo=["_blank","_self","_top","_parent"],Uh=["ascii","utf-8","utf-16","latin1","latin1"],Gh=["get","post","put","delete"],Kh=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],In=["true","false"],Ae={},GP={a:{attrs:{href:null,ping:null,type:null,media:null,target:lo,hreflang:null}},abbr:Ae,address:Ae,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Ae,aside:Ae,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Ae,base:{attrs:{href:null,target:lo}},bdi:Ae,bdo:Ae,blockquote:{attrs:{cite:null}},body:Ae,br:Ae,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Kh,formmethod:Gh,formnovalidate:["novalidate"],formtarget:lo,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Ae,center:Ae,cite:Ae,code:Ae,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Ae,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Ae,div:Ae,dl:Ae,dt:Ae,em:Ae,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Ae,figure:Ae,footer:Ae,form:{attrs:{action:null,name:null,"accept-charset":Uh,autocomplete:["on","off"],enctype:Kh,method:Gh,novalidate:["novalidate"],target:lo}},h1:Ae,h2:Ae,h3:Ae,h4:Ae,h5:Ae,h6:Ae,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Ae,hgroup:Ae,hr:Ae,html:{attrs:{manifest:null}},i:Ae,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Kh,formmethod:Gh,formnovalidate:["novalidate"],formtarget:lo,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Ae,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Ae,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Ae,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Uh,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Ae,noscript:Ae,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Ae,param:{attrs:{name:null,value:null}},pre:Ae,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Ae,rt:Ae,ruby:Ae,samp:Ae,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Uh}},section:Ae,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Ae,source:{attrs:{src:null,type:null,media:null}},span:Ae,strong:Ae,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Ae,summary:Ae,sup:Ae,table:Ae,tbody:Ae,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Ae,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Ae,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Ae,time:{attrs:{datetime:null}},title:Ae,tr:Ae,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Ae,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Ae},o5={accesskey:null,class:null,contenteditable:In,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:In,autocorrect:In,autocapitalize:In,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":In,"aria-autocomplete":["inline","list","both","none"],"aria-busy":In,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":In,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":In,"aria-hidden":In,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":In,"aria-multiselectable":In,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":In,"aria-relevant":null,"aria-required":In,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},a5="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(r=>"on"+r);for(let r of a5)o5[r]=null;class hu{constructor(e,t){this.tags={...GP,...e},this.globalAttrs={...o5,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}hu.default=new hu;function al(r,e,t=r.length){if(!e)return"";let n=e.firstChild,i=n&&n.getChild("TagName");return i?r.sliceString(i.from,Math.min(i.to,t)):""}function cl(r,e=!1){for(;r;r=r.parent)if(r.name=="Element")if(e)e=!1;else return r;return null}function c5(r,e,t){let n=t.tags[al(r,cl(e))];return(n==null?void 0:n.children)||t.allTags}function Wf(r,e){let t=[];for(let n=cl(e);n&&!n.type.isTop;n=cl(n.parent)){let i=al(r,n);if(i&&n.lastChild.name=="CloseTag")break;i&&t.indexOf(i)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&t.push(i)}return t}const u5=/^[:\-\.\w\u00b7-\uffff]*$/;function tg(r,e,t,n,i){let l=/\s*>/.test(r.sliceDoc(i,i+5))?"":">",o=cl(t,t.name=="StartTag"||t.name=="TagName");return{from:n,to:i,options:c5(r.doc,o,e).map(c=>({label:c,type:"type"})).concat(Wf(r.doc,t).map((c,u)=>({label:"/"+c,apply:"/"+c+l,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ng(r,e,t,n){let i=/\s*>/.test(r.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:Wf(r.doc,e).map((l,o)=>({label:l,apply:l+i,type:"type",boost:99-o})),validFor:u5}}function KP(r,e,t,n){let i=[],l=0;for(let o of c5(r.doc,t,e))i.push({label:"<"+o,type:"type"});for(let o of Wf(r.doc,t))i.push({label:"</"+o+">",type:"type",boost:99-l++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function JP(r,e,t,n,i){let l=cl(t),o=l?e.tags[al(r.doc,l)]:null,c=o&&o.attrs?Object.keys(o.attrs):[],u=o&&o.globalAttrs===!1?c:c.length?c.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:i,options:u.map(f=>({label:f,type:"property"})),validFor:u5}}function e9(r,e,t,n,i){var l;let o=(l=t.parent)===null||l===void 0?void 0:l.getChild("AttributeName"),c=[],u;if(o){let f=r.sliceDoc(o.from,o.to),m=e.globalAttrs[f];if(!m){let O=cl(t),y=O?e.tags[al(r.doc,O)]:null;m=(y==null?void 0:y.attrs)&&y.attrs[f]}if(m){let O=r.sliceDoc(n,i).toLowerCase(),y='"',S='"';/^['"]/.test(O)?(u=O[0]=='"'?/^[^"]*$/:/^[^']*$/,y="",S=r.sliceDoc(i,i+1)==O[0]?"":O[0],O=O.slice(1),n++):u=/^[^\s<>='"]*$/;for(let w of m)c.push({label:w,apply:y+w+S,type:"constant"})}}return{from:n,to:i,options:c,validFor:u}}function t9(r,e){let{state:t,pos:n}=e,i=Pt(t).resolveInner(n,-1),l=i.resolve(n);for(let o=n,c;l==i&&(c=i.childBefore(o));){let u=c.lastChild;if(!u||!u.type.isError||u.from<u.to)break;l=i=c,o=u.from}return i.name=="TagName"?i.parent&&/CloseTag$/.test(i.parent.name)?ng(t,i,i.from,n):tg(t,r,i,i.from,n):i.name=="StartTag"||i.name=="IncompleteTag"?tg(t,r,i,n,n):i.name=="StartCloseTag"||i.name=="IncompleteCloseTag"?ng(t,i,n,n):i.name=="OpenTag"||i.name=="SelfClosingTag"||i.name=="AttributeName"?JP(t,r,i,i.name=="AttributeName"?i.from:n,n):i.name=="Is"||i.name=="AttributeValue"||i.name=="UnquotedAttributeValue"?e9(t,r,i,i.name=="Is"?n:i.from,n):e.explicit&&(l.name=="Element"||l.name=="Text"||l.name=="Document")?KP(t,r,i,n):null}function n9(r){let{extraTags:e,extraGlobalAttributes:t}=r,n=t||e?new hu(e,t):hu.default;return i=>t9(n,i)}const r9=Wr.parser.configure({top:"SingleExpression"}),h5=[{tag:"script",attrs:r=>r.type=="text/typescript"||r.lang=="ts",parser:t5.parser},{tag:"script",attrs:r=>r.type=="text/babel"||r.type=="text/jsx",parser:n5.parser},{tag:"script",attrs:r=>r.type=="text/typescript-jsx",parser:r5.parser},{tag:"script",attrs(r){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(r.type)},parser:r9},{tag:"script",attrs(r){return!r.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(r.type)},parser:Wr.parser},{tag:"style",attrs(r){return(!r.lang||r.lang=="css")&&(!r.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(r.type))},parser:uu.parser}],f5=[{name:"style",parser:uu.parser.configure({top:"Styles"})}].concat(a5.map(r=>({name:r,parser:Wr.parser}))),d5=il.define({name:"html",parser:T$.configure({props:[ku.add({Element(r){let e=/^(\s*)(<\/)?/.exec(r.textAfter);return r.node.to<=r.pos+e[0].length?r.continue():r.lineIndent(r.node.from)+(e[2]?0:r.unit)},"OpenTag CloseTag SelfClosingTag"(r){return r.column(r.node.from)+r.unit},Document(r){if(r.pos+/\s*/.exec(r.textAfter)[0].length<r.node.to)return r.continue();let e=null,t;for(let n=r.node;;){let i=n.lastChild;if(!i||i.name!="Element"||i.to!=n.to)break;e=n=i}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?r.lineIndent(e.from)+r.unit:null}}),bu.add({Element(r){let e=r.firstChild,t=r.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:r.to}}}),N4.add({"OpenTag CloseTag":r=>r.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Ec=d5.configure({wrap:D6(h5,f5)});function rg(r={}){let e="",t;r.matchClosingTags===!1&&(e="noMatch"),r.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(r.nestedLanguages&&r.nestedLanguages.length||r.nestedAttributes&&r.nestedAttributes.length)&&(t=D6((r.nestedLanguages||[]).concat(h5),(r.nestedAttributes||[]).concat(f5)));let n=t?d5.configure({wrap:t,dialect:e}):e?Ec.configure({dialect:e}):Ec;return new Qf(n,[Ec.data.of({autocomplete:n9(r)}),r.autoCloseTags!==!1?i9:[],l5().support,B6().support])}const ig=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),i9=ke.inputHandler.of((r,e,t,n,i)=>{if(r.composing||r.state.readOnly||e!=t||n!=">"&&n!="/"||!Ec.isActiveAt(r.state,e,-1))return!1;let l=i(),{state:o}=l,c=o.changeByRange(u=>{var f,m,O;let y=o.doc.sliceString(u.from-1,u.to)==n,{head:S}=u,w=Pt(o).resolveInner(S,-1),b;if(y&&n==">"&&w.name=="EndTag"){let $=w.parent;if(((m=(f=$.parent)===null||f===void 0?void 0:f.lastChild)===null||m===void 0?void 0:m.name)!="CloseTag"&&(b=al(o.doc,$.parent,S))&&!ig.has(b)){let C=S+(o.doc.sliceString(S,S+1)===">"?1:0),_=`</${b}>`;return{range:u,changes:{from:S,to:C,insert:_}}}}else if(y&&n=="/"&&w.name=="IncompleteCloseTag"){let $=w.parent;if(w.from==S-2&&((O=$.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(b=al(o.doc,$,S))&&!ig.has(b)){let C=S+(o.doc.sliceString(S,S+1)===">"?1:0),_=`${b}>`;return{range:G.cursor(S+_.length,-1),changes:{from:S,to:C,insert:_}}}}return{range:u}});return c.changes.empty?!1:(r.dispatch([l,o.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function s9(r){switch(r){case"html":return rg();case"css":return B6();case"javascript":case"js":case"typescript":case"ts":return l5({typescript:r==="typescript"||r==="ts"});default:return rg()}}function l9(r){var n;const e=((n=r.split(".").pop())==null?void 0:n.toLowerCase())??"";return{html:"html",htm:"html",css:"css",js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",json:"javascript"}[e]??"html"}const o9=p.memo(function({content:e,filePath:t,language:n,onChange:i,readOnly:l=!1}){const o=p.useRef(null),c=p.useRef(null),u=p.useRef(i);u.current=i;const f=p.useCallback(m=>{if(o.current&&(o.current.destroy(),o.current=null),!m)return;c.current=m;const O=n??(t?l9(t):"html"),y=ke.updateListener.of(w=>{w.docChanged&&u.current&&u.current(w.state.doc.toString())}),S=qe.create({doc:e,extensions:[tk(),zw(),ik(),Sb(),Bk(),Nk(),lb(),D7(),rQ(),xf.of([...Y7,...Q7,...bQ,...Tb]),s9(O),XQ,y,qe.readOnly.of(l),ke.theme({"&":{height:"100%"},".cm-scroller":{overflow:"auto"}})]});o.current=new ke({state:S,parent:m})},[e,t,n,l]);return v.jsx("div",{ref:f,className:"h-full w-full overflow-hidden"})});function a9({projectId:r,comp:e,isActive:t,onSelect:n}){const[i,l]=p.useState(!1),o=p.useRef(null),c=()=>{o.current=setTimeout(()=>l(!0),300)},u=()=>{o.current&&(clearTimeout(o.current),o.current=null),l(!1)},f=e.replace(/^compositions\//,"").replace(/\.html$/,""),m=`/api/projects/${r}/thumbnail/${e}?t=2`,O=`/api/projects/${r}/preview/comp/${e}`;return v.jsxs("div",{onClick:n,onPointerEnter:c,onPointerLeave:u,className:`w-full text-left px-2 py-1.5 flex items-center gap-2.5 transition-colors cursor-pointer ${t?"bg-studio-accent/10 border-l-2 border-studio-accent":"border-l-2 border-transparent hover:bg-neutral-800/50"}`,children:[v.jsxs("div",{className:"w-20 h-[45px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[i&&v.jsx("iframe",{src:O,sandbox:"allow-scripts allow-same-origin",className:"absolute inset-0 w-[1920px] h-[1080px] border-none pointer-events-none",style:{transformOrigin:"0 0",transform:`scale(${80/1920})`},tabIndex:-1}),v.jsx("div",{className:"absolute inset-0 transition-opacity duration-150",style:{opacity:i?0:1},children:v.jsx("img",{src:m,alt:f,loading:"lazy",className:"w-full h-full object-contain",onError:y=>{y.target.style.display="none"}})})]}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate block",children:f}),v.jsx("span",{className:"text-[9px] text-neutral-600 truncate block",children:e})]})]})}const c9=p.memo(function({projectId:e,compositions:t,activeComposition:n,onSelect:i}){return t.length===0?v.jsx("div",{className:"flex-1 flex items-center justify-center px-4",children:v.jsx("p",{className:"text-xs text-neutral-600 text-center",children:"No compositions found"})}):v.jsx("div",{className:"flex-1 overflow-y-auto",children:t.map(l=>v.jsx(a9,{projectId:e,comp:l,isActive:n===l,onSelect:()=>i(l)},l))})});function p5({src:r}){const[e,t]=p.useState(null);return p.useEffect(()=>{const n=document.createElement("video");n.crossOrigin="anonymous",n.muted=!0,n.preload="metadata";const i=document.createElement("canvas"),l=i.getContext("2d"),o=()=>{n.src="",n.load()};return n.addEventListener("loadedmetadata",()=>{n.currentTime=Math.min(2,n.duration*.1||2)}),n.addEventListener("seeked",()=>{l&&(i.width=n.videoWidth,i.height=n.videoHeight,l.drawImage(n,0,0),t(i.toDataURL("image/jpeg",.7)),o())}),n.addEventListener("error",o),n.src=r,n.load(),o},[r]),e?v.jsx("img",{src:e,alt:"",draggable:!1,className:"w-full h-full object-contain"}):v.jsx("div",{className:"w-full h-full bg-neutral-800 animate-pulse"})}const m5=/\.(jpg|jpeg|png|gif|webp|svg|ico)$/i,O5=/\.(mp4|webm|mov)$/i,g5=/\.(mp3|wav|ogg|m4a|aac)$/i,y5=/\.(mp4|webm|mov|mp3|wav|ogg|m4a|aac|jpg|jpeg|png|gif|webp|svg|ico)$/i;function sg(r){return y5.test(r)}function u9({serveUrl:r,name:e,isImage:t,isVideo:n,isAudio:i}){return v.jsxs(v.Fragment,{children:[t&&v.jsx("img",{src:r,alt:e,loading:"lazy",className:"w-full h-full object-contain",onError:l=>{l.target.style.display="none"}}),n&&v.jsx(p5,{src:r}),i&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-purple-400",children:[v.jsx("path",{d:"M9 18V5l12-2v13",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("circle",{cx:"18",cy:"16",r:"3"})]})}),!t&&!n&&!i&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[v.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("polyline",{points:"14 2 14 8 20 8",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}function h9({projectId:r,asset:e,onCopy:t,isCopied:n,onDelete:i,onRename:l}){const[o,c]=p.useState(!1),[u,f]=p.useState(null),[m,O]=p.useState(!1),[y,S]=p.useState(""),[w,b]=p.useState(!1),$=e.split("/").pop()??e,C=`/api/projects/${r}/preview/${e}`,_=O5.test(e);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{onClick:()=>t(e),onContextMenu:A=>{A.preventDefault(),f({x:A.clientX,y:A.clientY})},onPointerEnter:()=>c(!0),onPointerLeave:()=>c(!1),className:`w-full text-left px-2 py-1.5 flex items-center gap-2.5 transition-colors cursor-pointer ${n?"bg-studio-accent/10 border-l-2 border-studio-accent":"border-l-2 border-transparent hover:bg-neutral-800/50"}`,children:[v.jsxs("div",{className:"w-16 h-10 rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[v.jsx(u9,{serveUrl:C,name:$,isImage:m5.test(e),isVideo:_,isAudio:g5.test(e)}),_&&o&&v.jsx("video",{src:C,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain"})]}),v.jsx("div",{className:"min-w-0 flex-1",children:m?v.jsx("input",{autoFocus:!0,value:y,onChange:A=>S(A.target.value),onKeyDown:A=>{if(A.key==="Enter"){A.preventDefault();const T=y.trim();if(T&&T!==$){const Z=e.includes("/")?e.slice(0,e.lastIndexOf("/")+1):"";l==null||l(e,Z+T)}O(!1)}else A.key==="Escape"&&O(!1)},onBlur:()=>{const A=y.trim();if(A&&A!==$){const T=e.includes("/")?e.slice(0,e.lastIndexOf("/")+1):"";l==null||l(e,T+A)}O(!1)},onClick:A=>A.stopPropagation(),className:"w-full bg-neutral-800 text-neutral-200 text-[11px] px-1.5 py-0.5 rounded border border-neutral-600 outline-none focus:border-studio-accent",spellCheck:!1}):v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate block",children:$}),n?v.jsx("span",{className:"text-[9px] text-studio-accent",children:"Copied!"}):v.jsx("span",{className:"text-[9px] text-neutral-600 truncate block",children:e})]})})]}),u&&v.jsx("div",{className:"fixed inset-0 z-[200]",onClick:()=>f(null),onContextMenu:A=>{A.preventDefault(),f(null)},children:v.jsxs("div",{className:"absolute bg-neutral-900 border border-neutral-700 rounded-lg shadow-xl py-1 min-w-[140px] text-xs",style:{left:u.x,top:u.y},children:[v.jsx("button",{onClick:A=>{A.stopPropagation(),t(e),f(null)},className:"w-full text-left px-3 py-1.5 text-neutral-300 hover:bg-neutral-800 transition-colors",children:"Copy path"}),l&&v.jsx("button",{onClick:A=>{A.stopPropagation(),S($),O(!0),f(null)},className:"w-full text-left px-3 py-1.5 text-neutral-300 hover:bg-neutral-800 transition-colors",children:"Rename"}),i&&v.jsx("button",{onClick:A=>{A.stopPropagation(),b(!0),f(null)},className:"w-full text-left px-3 py-1.5 text-red-400 hover:bg-neutral-800 transition-colors",children:"Delete"})]})}),w&&v.jsxs("div",{className:"px-2 py-1.5 bg-red-950/30 border-l-2 border-red-500 flex items-center justify-between gap-2",children:[v.jsxs("span",{className:"text-[10px] text-red-400 truncate",children:["Delete ",$,"?"]}),v.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[v.jsx("button",{onClick:A=>{A.stopPropagation(),i==null||i(e),b(!1)},className:"px-2 py-0.5 text-[10px] rounded bg-red-600 text-white hover:bg-red-500 transition-colors",children:"Delete"}),v.jsx("button",{onClick:A=>{A.stopPropagation(),b(!1)},className:"px-2 py-0.5 text-[10px] rounded text-neutral-400 hover:text-neutral-200 transition-colors",children:"Cancel"})]})]})]})}const f9=p.memo(function({projectId:e,assets:t,onImport:n,onDelete:i,onRename:l}){const o=p.useRef(null),[c,u]=p.useState(!1),[f,m]=p.useState(null),O=p.useCallback(w=>{w.preventDefault(),u(!1),w.dataTransfer.files.length&&(n==null||n(w.dataTransfer.files))},[n]),y=p.useCallback(async w=>{try{await navigator.clipboard.writeText(w),m(w),setTimeout(()=>m(null),1500)}catch{}},[]),S=t.filter(w=>y5.test(w));return v.jsxs("div",{className:`flex-1 flex flex-col min-h-0 transition-colors ${c?"bg-studio-accent/[0.05]":""}`,onDragOver:w=>{w.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:O,children:[n&&v.jsxs("div",{className:"px-3 py-2 border-b border-neutral-800/40 flex-shrink-0",children:[v.jsxs("button",{onClick:()=>{var w;return(w=o.current)==null?void 0:w.click()},className:"w-full flex items-center justify-center gap-1.5 px-2 py-1.5 text-[11px] rounded-lg border border-dashed border-neutral-700/50 text-neutral-500 hover:text-neutral-300 hover:border-neutral-600 transition-colors",children:[v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:v.jsx("path",{d:"M12 5v14M5 12h14"})}),"Import media"]}),v.jsx("input",{ref:o,type:"file",accept:"video/*,image/*,audio/*",multiple:!0,className:"hidden",onChange:w=>{var b;(b=w.target.files)!=null&&b.length&&(n(w.target.files),w.target.value="")}})]}),v.jsx("div",{className:"flex-1 overflow-y-auto",children:S.length===0?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 gap-2",children:[v.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-700",children:[v.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("polyline",{points:"17 8 12 3 7 8",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"15",strokeLinecap:"round"})]}),v.jsx("p",{className:"text-[10px] text-neutral-600 text-center",children:"Drop media files here"})]}):S.map(w=>v.jsx(h9,{projectId:e,asset:w,onCopy:y,isCopied:f===w,onDelete:i,onRename:l},w))})]})}),x5=r=>({title:t,...n})=>v.jsx(r,{alt:t,"aria-label":t,"aria-hidden":t?void 0:!0,...n}),d9=x5(t3),p9=x5(Qg),Ht=14,Gt="duotone";function v5({path:r}){var n;const e=((n=r.split(".").pop())==null?void 0:n.toLowerCase())??"",t="flex-shrink-0";return e==="html"?v.jsx(l3,{size:Ht,weight:Gt,color:"#E44D26",className:t}):e==="css"?v.jsx(s3,{size:Ht,weight:Gt,color:"#264DE4",className:t}):e==="js"||e==="mjs"||e==="cjs"?v.jsx(a3,{size:Ht,weight:Gt,color:"#F0DB4F",className:t}):e==="jsx"?v.jsx(c3,{size:Ht,weight:Gt,color:"#61DAFB",className:t}):e==="ts"||e==="mts"?v.jsx(d3,{size:Ht,weight:Gt,color:"#3178C6",className:t}):e==="tsx"?v.jsx(p3,{size:Ht,weight:Gt,color:"#3178C6",className:t}):e==="json"?v.jsx(i3,{size:Ht,weight:Gt,color:"#4ADE80",className:t}):e==="svg"?v.jsx(f3,{size:Ht,weight:Gt,color:"#F97316",className:t}):e==="md"||e==="mdx"?v.jsx(u3,{size:Ht,weight:Gt,color:"#9CA3AF",className:t}):e==="txt"?v.jsx(m3,{size:Ht,weight:Gt,color:"#9CA3AF",className:t}):e==="png"?v.jsx(h3,{size:Ht,weight:Gt,color:"#22C55E",className:t}):e==="jpg"||e==="jpeg"?v.jsx(o3,{size:Ht,weight:Gt,color:"#22C55E",className:t}):e==="webp"||e==="gif"||e==="ico"?v.jsx(y3,{size:Ht,weight:Gt,color:"#22C55E",className:t}):e==="mp4"||e==="webm"||e==="mov"?v.jsx(O3,{size:Ht,weight:Gt,color:"#A855F7",className:t}):e==="mp3"||e==="wav"||e==="ogg"||e==="m4a"?v.jsx(k3,{size:Ht,weight:Gt,color:"#3CE6AC",className:t}):e==="woff"||e==="woff2"||e==="ttf"||e==="otf"?v.jsx(S3,{size:Ht,weight:Gt,color:"#6B7280",className:t}):v.jsx(r3,{size:Ht,weight:Gt,color:"#6B7280",className:t})}function m9(r){const e={name:"",fullPath:"",children:new Map,isFile:!1};for(const t of r){const n=t.split("/");let i=e;for(let l=0;l<n.length;l++){const o=n[l],c=l===n.length-1,u=n.slice(0,l+1).join("/");i.children.has(o)||i.children.set(o,{name:o,fullPath:u,children:new Map,isFile:c}),i=i.children.get(o),c&&(i.isFile=!0)}}return e}function S5(r){return Array.from(r.values()).sort((e,t)=>e.name==="index.html"?-1:t.name==="index.html"?1:!e.isFile&&t.isFile?-1:e.isFile&&!t.isFile?1:e.name.localeCompare(t.name))}function Hf(r,e){if(!e)return!1;if(r.fullPath===e)return!0;for(const t of r.children.values())if(Hf(t,e))return!0;return!1}function O9({state:r,onClose:e,onNewFile:t,onNewFolder:n,onRename:i,onDuplicate:l,onDelete:o}){const c=p.useRef(null);p.useEffect(()=>{const O=S=>{c.current&&!c.current.contains(S.target)&&e()},y=S=>{S.key==="Escape"&&e()};return document.addEventListener("mousedown",O),document.addEventListener("keydown",y),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",y)}},[e]);const u=Math.min(r.x,window.innerWidth-180),f=Math.min(r.y,window.innerHeight-200),m=r.targetIsFolder?r.targetPath:r.targetPath.includes("/")?r.targetPath.slice(0,r.targetPath.lastIndexOf("/")):"";return v.jsxs("div",{ref:c,className:"fixed z-50 bg-neutral-900 border border-neutral-700 rounded-md shadow-lg py-1 min-w-[160px]",style:{left:u,top:f},children:[r.targetIsFolder&&v.jsxs(v.Fragment,{children:[v.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{t(r.targetPath),e()},children:[v.jsx(Km,{size:12,weight:"duotone",className:"text-neutral-500"}),"New File"]}),v.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{n(r.targetPath),e()},children:[v.jsx(Hg,{size:12,weight:"duotone",className:"text-neutral-500"}),"New Folder"]}),v.jsx("div",{className:"border-t border-neutral-700 my-1"})]}),!r.targetIsFolder&&v.jsxs(v.Fragment,{children:[v.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{t(m),e()},children:[v.jsx(Km,{size:12,weight:"duotone",className:"text-neutral-500"}),"New File"]}),v.jsx("div",{className:"border-t border-neutral-700 my-1"})]}),v.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{i(r.targetPath),e()},children:[v.jsx(x3,{size:12,weight:"duotone",className:"text-neutral-500"}),"Rename"]}),!r.targetIsFolder&&v.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{l(r.targetPath),e()},children:[v.jsx(n3,{size:12,weight:"duotone",className:"text-neutral-500"}),"Duplicate"]}),v.jsx("div",{className:"border-t border-neutral-700 my-1"}),v.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-red-400 hover:bg-red-900/30 cursor-pointer text-left",onClick:()=>{o(r.targetPath),e()},children:[v.jsx(w3,{size:12,weight:"duotone"}),"Delete"]})]})}function fu({defaultValue:r,depth:e,isFolder:t,onCommit:n,onCancel:i}){const l=p.useRef(null),o=p.useRef(!1),[c,u]=p.useState(r);p.useEffect(()=>{const y=l.current;if(y)if(y.focus(),r&&r.includes(".")){const S=r.lastIndexOf(".");y.setSelectionRange(0,S)}else y.select()},[r]);const f=y=>{o.current||(o.current=!0,n(y))},m=y=>{if(y.key==="Enter"){y.preventDefault();const S=c.trim();S&&!(/[/\\]/.test(S)||S.includes(".."))?f(S):i()}else y.key==="Escape"&&(y.preventDefault(),i())},O=()=>{const y=c.trim();y&&y!==r&&!(/[/\\]/.test(y)||y.includes(".."))?f(y):i()};return v.jsxs("div",{className:"flex items-center gap-2 py-0.5 min-h-7",style:{paddingLeft:`${8+e*12+(t?0:14)}px`},children:[t?v.jsx(g3,{size:Ht,weight:"duotone",color:"#6B7280",className:"flex-shrink-0"}):v.jsx(v5,{path:c}),v.jsx("input",{ref:l,value:c,onChange:y=>u(y.target.value),onKeyDown:m,onBlur:O,className:"flex-1 min-w-0 bg-neutral-800 text-neutral-200 text-xs px-1.5 py-0.5 rounded border border-neutral-600 outline-none focus:border-[#3CE6AC]",spellCheck:!1})]})}function g9({name:r,onConfirm:e,onCancel:t}){const n=p.useRef(null);return p.useEffect(()=>{const i=o=>{o.key==="Escape"&&t()},l=o=>{n.current&&!n.current.contains(o.target)&&t()};return document.addEventListener("keydown",i),document.addEventListener("mousedown",l),()=>{document.removeEventListener("keydown",i),document.removeEventListener("mousedown",l)}},[t]),v.jsxs("div",{ref:n,className:"mx-1 my-0.5 p-2 bg-neutral-800 border border-neutral-700 rounded-md text-xs",children:[v.jsxs("p",{className:"text-neutral-300 mb-2",children:["Delete ",v.jsx("span",{className:"font-medium text-neutral-100",children:r}),"?"]}),v.jsxs("div",{className:"flex gap-1.5",children:[v.jsx("button",{onClick:t,className:"flex-1 px-2 py-1 rounded bg-neutral-700 text-neutral-300 hover:bg-neutral-600 transition-colors",children:"Cancel"}),v.jsx("button",{onClick:e,className:"flex-1 px-2 py-1 rounded bg-red-900/60 text-red-300 hover:bg-red-800/60 transition-colors",children:"Delete"})]})]})}function w5({node:r,depth:e,activeFile:t,onSelectFile:n,defaultOpen:i,onContextMenu:l,inlineInput:o,onDragStart:c,onDragOver:u,onDrop:f,onDragLeave:m,dragOverFolder:O}){const[y,S]=p.useState(i),w=p.useCallback(()=>S(A=>!A),[]),b=p.useMemo(()=>S5(r.children),[r.children]),$=y?d9:p9,C=O===r.fullPath;return(o==null?void 0:o.mode)==="rename"&&o.originalPath===r.fullPath?v.jsx(fu,{defaultValue:o.originalName??r.name,depth:e,isFolder:!0,onCommit:A=>{var T;(T=o==null?void 0:o.onCommit)==null||T.call(o,A)},onCancel:()=>{var A;(A=o==null?void 0:o.onCancel)==null||A.call(o)}}):v.jsxs(v.Fragment,{children:[v.jsxs("button",{draggable:!0,onDragStart:A=>c(A,r.fullPath),onClick:w,onContextMenu:A=>{A.preventDefault(),l(A,r.fullPath,!0)},onDragOver:A=>{A.preventDefault(),A.stopPropagation(),u(A,r.fullPath)},onDrop:A=>{A.preventDefault(),A.stopPropagation(),f(A,r.fullPath)},onDragLeave:m,className:`w-full flex items-center gap-1.5 px-2.5 py-1 min-h-7 text-left text-xs text-neutral-400 hover:bg-neutral-800/30 hover:text-neutral-300 transition-colors ${C?"bg-[#3CE6AC]/10 outline outline-1 outline-[#3CE6AC]/40":""}`,style:{paddingLeft:`${8+e*12}px`},children:[v.jsx($,{size:10,className:"flex-shrink-0 text-neutral-600"}),v.jsx("span",{className:"truncate font-medium",children:r.name})]}),y&&v.jsxs(v.Fragment,{children:[o&&(o.mode==="new-file"||o.mode==="new-folder")&&o.parentPath===r.fullPath&&v.jsx(fu,{defaultValue:"",depth:e+1,isFolder:o.mode==="new-folder",onCommit:A=>{var T;(T=o==null?void 0:o.onCommit)==null||T.call(o,A)},onCancel:()=>{var A;(A=o==null?void 0:o.onCancel)==null||A.call(o)}}),b.map(A=>A.isFile&&A.children.size===0?v.jsx(K1,{node:A,depth:e+1,activeFile:t,onSelectFile:n,onContextMenu:l,inlineInput:o,onDragStart:c},A.fullPath):A.children.size>0?v.jsx(w5,{node:A,depth:e+1,activeFile:t,onSelectFile:n,defaultOpen:Hf(A,t),onContextMenu:l,inlineInput:o,onDragStart:c,onDragOver:u,onDrop:f,onDragLeave:m,dragOverFolder:O},A.fullPath):v.jsx(K1,{node:A,depth:e+1,activeFile:t,onSelectFile:n,onContextMenu:l,inlineInput:o,onDragStart:c},A.fullPath))]})]})}function K1({node:r,depth:e,activeFile:t,onSelectFile:n,onContextMenu:i,inlineInput:l,onDragStart:o}){const c=r.fullPath===t;return(l==null?void 0:l.mode)==="rename"&&l.originalPath===r.fullPath?v.jsx(fu,{defaultValue:l.originalName??r.name,depth:e,isFolder:!1,onCommit:f=>{var m;(m=l==null?void 0:l.onCommit)==null||m.call(l,f)},onCancel:()=>{var f;(f=l==null?void 0:l.onCancel)==null||f.call(l)}}):v.jsxs("button",{draggable:!0,onDragStart:f=>o(f,r.fullPath),onClick:()=>n(r.fullPath),onContextMenu:f=>{f.preventDefault(),i(f,r.fullPath,!1)},className:`w-full flex items-center gap-2 py-1 min-h-7 text-left transition-all text-xs ${c?"bg-neutral-800/60 text-neutral-200":"text-neutral-500 hover:bg-neutral-800/30 hover:text-neutral-300"}`,style:{paddingLeft:`${8+e*12+14}px`},children:[v.jsx(v5,{path:r.name}),v.jsx("span",{className:"truncate",children:r.name})]})}const y9=p.memo(function({files:e,activeFile:t,onSelectFile:n,onCreateFile:i,onCreateFolder:l,onDeleteFile:o,onRenameFile:c,onDuplicateFile:u,onMoveFile:f,onImportFiles:m}){const O=p.useMemo(()=>m9(e),[e]),y=p.useMemo(()=>S5(O.children),[O]),[S,w]=p.useState(null),[b,$]=p.useState(null),[C,_]=p.useState(null),[A,T]=p.useState(null),Z=p.useRef(null),X=!!(i||l||o||c||u),M=p.useCallback((Q,z,ie)=>{X&&(Q.preventDefault(),w({x:Q.clientX,y:Q.clientY,targetPath:z,targetIsFolder:ie}))},[X]),N=p.useCallback(()=>w(null),[]),Y=p.useCallback(Q=>{$({parentPath:Q,mode:"new-file",onCommit:z=>{const ie=Q?`${Q}/${z}`:z;i==null||i(ie),$(null)},onCancel:()=>$(null)})},[i]),fe=p.useCallback(Q=>{$({parentPath:Q,mode:"new-folder",onCommit:z=>{const ie=Q?`${Q}/${z}`:z;l==null||l(ie),$(null)},onCancel:()=>$(null)})},[l]),K=p.useCallback(Q=>{const z=Q.includes("/")?Q.slice(Q.lastIndexOf("/")+1):Q,ie=Q.includes("/")?Q.slice(0,Q.lastIndexOf("/")):"";$({parentPath:ie,mode:"rename",originalPath:Q,originalName:z,onCommit:de=>{if(de!==z){const ee=ie?`${ie}/${de}`:de;c==null||c(Q,ee)}$(null)},onCancel:()=>$(null)})},[c]),te=p.useCallback(Q=>{u==null||u(Q)},[u]),F=p.useCallback(Q=>{_(Q)},[]),re=p.useCallback(()=>{C&&(o==null||o(C),_(null))},[C,o]),B=p.useCallback(()=>{_(null)},[]),he=p.useCallback((Q,z)=>{Z.current=z,Q.dataTransfer.effectAllowed="move",Q.dataTransfer.setData("text/plain",z)},[]),ce=p.useCallback((Q,z)=>{T(z)},[]),H=p.useCallback((Q,z)=>{if(Q.dataTransfer.files.length>0&&!Z.current){Q.preventDefault(),m==null||m(Q.dataTransfer.files,z||void 0),T(null);return}const ie=Z.current;if(!ie||!f){T(null);return}const de=ie.includes("/")?ie.slice(ie.lastIndexOf("/")+1):ie,ee=z?`${z}/${de}`:de;ee!==ie&&!z.startsWith(ie+"/")&&f(ie,ee),T(null),Z.current=null},[f,m]),J=p.useCallback(()=>{T(null)},[]),U=p.useCallback(Q=>{X&&Q.target===Q.currentTarget&&(Q.preventDefault(),w({x:Q.clientX,y:Q.clientY,targetPath:"",targetIsFolder:!0}))},[X]);return v.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[X&&v.jsxs("div",{className:"flex items-center justify-between px-2.5 py-1.5 border-b border-neutral-800/50 flex-shrink-0",children:[v.jsx("span",{className:"text-[10px] font-semibold tracking-wider text-neutral-600 uppercase",children:"Files"}),v.jsxs("div",{className:"flex items-center gap-0.5",children:[v.jsx("button",{onClick:()=>Y(""),className:"p-0.5 rounded hover:bg-neutral-800 text-neutral-600 hover:text-neutral-400 transition-colors",title:"New File",children:v.jsx(v3,{size:12,weight:"bold"})}),v.jsx("button",{onClick:()=>fe(""),className:"p-0.5 rounded hover:bg-neutral-800 text-neutral-600 hover:text-neutral-400 transition-colors",title:"New Folder",children:v.jsx(Hg,{size:12,weight:"duotone"})})]})]}),v.jsxs("div",{className:`flex-1 overflow-y-auto py-1 transition-colors ${A===""?"bg-[#3CE6AC]/5 outline outline-1 outline-[#3CE6AC]/30 -outline-offset-1":""}`,onContextMenu:U,onDragOver:Q=>{Q.preventDefault(),Q.target===Q.currentTarget&&T("")},onDragLeave:Q=>{Q.target===Q.currentTarget&&T(null)},onDrop:Q=>{Q.preventDefault(),H(Q,"")},children:[b&&(b.mode==="new-file"||b.mode==="new-folder")&&b.parentPath===""&&v.jsx(fu,{defaultValue:"",depth:0,isFolder:b.mode==="new-folder",onCommit:Q=>{var z;return(z=b.onCommit)==null?void 0:z.call(b,Q)},onCancel:()=>{var Q;return(Q=b.onCancel)==null?void 0:Q.call(b)}}),y.map(Q=>Q.isFile&&Q.children.size===0?v.jsx(K1,{node:Q,depth:0,activeFile:t,onSelectFile:n,onContextMenu:M,inlineInput:b,onDragStart:he},Q.fullPath):v.jsx(w5,{node:Q,depth:0,activeFile:t,onSelectFile:n,defaultOpen:Hf(Q,t),onContextMenu:M,inlineInput:b,onDragStart:he,onDragOver:ce,onDrop:H,onDragLeave:J,dragOverFolder:A},Q.fullPath))]}),C&&v.jsx("div",{className:"border-t border-neutral-800/50 flex-shrink-0",children:v.jsx(g9,{name:C.includes("/")?C.slice(C.lastIndexOf("/")+1):C,onConfirm:re,onCancel:B})}),S&&v.jsx(O9,{state:S,onClose:N,onNewFile:Y,onNewFolder:fe,onRename:K,onDuplicate:te,onDelete:F})]})}),k5="hf-studio-sidebar-tab";function x9(){const r=localStorage.getItem(k5);return r==="assets"?"assets":r==="code"?"code":"compositions"}const v9=p.memo(function({width:e=240,projectId:t,compositions:n,assets:i,activeComposition:l,onSelectComposition:o,onImportFiles:c,fileTree:u,editingFile:f,onSelectFile:m,onCreateFile:O,onCreateFolder:y,onDeleteFile:S,onRenameFile:w,onDuplicateFile:b,onMoveFile:$,codeChildren:C,onLint:_,linting:A}){const[T,Z]=p.useState(x9),X=p.useCallback(M=>{Z(M),localStorage.setItem(k5,M)},[]);return _t(()=>{const M=N=>{!N.metaKey&&!N.ctrlKey||(N.key==="1"&&(N.preventDefault(),X("compositions")),N.key==="2"&&(N.preventDefault(),X("assets")))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)}),v.jsxs("div",{className:"flex flex-col h-full bg-neutral-950 border-r border-neutral-800/50",style:{width:e},children:[v.jsxs("div",{className:"flex border-b border-neutral-800/50 flex-shrink-0",children:[v.jsx("button",{type:"button",onClick:()=>X("code"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${T==="code"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Code"}),v.jsx("button",{type:"button",onClick:()=>X("compositions"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${T==="compositions"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Compositions"}),v.jsx("button",{type:"button",onClick:()=>X("assets"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${T==="assets"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Assets"})]}),T==="compositions"&&v.jsx(c9,{projectId:t,compositions:n,activeComposition:l,onSelect:o}),T==="assets"&&v.jsx(f9,{projectId:t,assets:i,onImport:c,onDelete:S,onRename:w}),T==="code"&&v.jsxs("div",{className:"flex flex-1 min-h-0",children:[((u==null?void 0:u.length)??0)>0&&v.jsx("div",{className:"w-[160px] flex-shrink-0 border-r border-neutral-800 overflow-y-auto",children:v.jsx(y9,{files:u??[],activeFile:(f==null?void 0:f.path)??null,onSelectFile:m??(()=>{}),onCreateFile:O,onCreateFolder:y,onDeleteFile:S,onRenameFile:w,onDuplicateFile:b,onMoveFile:$,onImportFiles:c})}),v.jsx("div",{className:"flex-1 overflow-hidden min-w-0",children:C??v.jsx("div",{className:"flex items-center justify-center h-full text-neutral-600 text-sm",children:"Select a file to edit"})})]}),_&&v.jsx("div",{className:"border-t border-neutral-800 p-2 flex-shrink-0",children:v.jsxs("button",{onClick:_,disabled:A,className:"w-full flex items-center justify-center gap-1.5 px-2 py-1.5 rounded-md text-[11px] font-medium text-neutral-500 hover:text-amber-300 hover:bg-neutral-800 transition-colors disabled:opacity-40",children:[v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[v.jsx("path",{d:"M9 11l3 3L22 4"}),v.jsx("path",{d:"M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"})]}),A?"Linting…":"Lint"]})})]})});function S9(r){if(r<1e3)return`${r}ms`;const e=Math.round(r/1e3);return e<60?`${e}s`:`${Math.floor(e/60)}m ${e%60}s`}function w9(r){const e=Date.now()-r;return e<6e4?"just now":e<36e5?`${Math.floor(e/6e4)}m ago`:`${Math.floor(e/36e5)}h ago`}const k9=p.memo(function({job:e,projectId:t,onDelete:n}){const[i,l]=p.useState(!1),o=`/api/projects/${t}/renders/file/${e.filename}`,c=p.useCallback(()=>{window.open(o,"_blank")},[o]),u=p.useCallback(O=>{O.stopPropagation();const y=document.createElement("a");y.href=o,y.download=e.filename,y.click()},[o,e.filename]),f=o,m=e.status==="complete";return v.jsx("div",{onPointerEnter:()=>l(!0),onPointerLeave:()=>l(!1),onClick:m?c:void 0,className:["px-3 py-2.5 border-b border-neutral-800/30 last:border-0 transition-colors duration-150",m?"cursor-pointer hover:bg-neutral-800/30":""].filter(Boolean).join(" "),children:v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsxs("div",{className:"w-20 h-[45px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[m&&v.jsxs(v.Fragment,{children:[i&&v.jsx("video",{src:f,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain"}),v.jsx("div",{className:"absolute inset-0 transition-opacity duration-150",style:{opacity:i?0:1},children:v.jsx(p5,{src:f})})]}),e.status==="rendering"&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-studio-accent animate-pulse"})}),e.status==="failed"&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-red-400"})}),e.status==="cancelled"&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-neutral-600"})})]}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate",children:e.filename}),e.durationMs&&v.jsx("span",{className:"text-[9px] text-neutral-600 flex-shrink-0",children:S9(e.durationMs)})]}),e.status==="rendering"&&v.jsxs("div",{className:"mt-1",children:[v.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[v.jsx("span",{className:"text-[9px] text-neutral-500",children:e.stage||"Rendering"}),v.jsxs("span",{className:"text-[9px] font-mono text-studio-accent",children:[e.progress,"%"]})]}),v.jsx("div",{className:"w-full h-1 bg-neutral-800 rounded-full overflow-hidden",children:v.jsx("div",{className:"h-full bg-studio-accent rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),e.status==="failed"&&e.error&&v.jsx("span",{className:"text-[9px] text-red-400 mt-0.5 block",children:e.error}),e.status!=="rendering"&&v.jsx("span",{className:"text-[9px] text-neutral-600",children:w9(e.createdAt)})]}),i&&v.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[m&&v.jsx("button",{onClick:u,className:"p-1 rounded text-neutral-500 hover:text-green-400 transition-colors",title:"Download",children:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),v.jsx("polyline",{points:"7 10 12 15 17 10"}),v.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),v.jsx("button",{onClick:O=>{O.stopPropagation(),n()},className:"p-1 rounded text-neutral-500 hover:text-red-400 transition-colors",title:"Remove",children:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:v.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]})]})})}),Jh={mp4:{label:"MP4",desc:"Best for general use. Smallest file, universal playback."},mov:{label:"MOV (ProRes 4444)",desc:"Transparent video. Works in CapCut, Final Cut Pro, Premiere, DaVinci Resolve, After Effects. Large files."},webm:{label:"WebM (VP9)",desc:"Transparent video for web. Smaller than MOV but limited editor support."}};function b9({format:r}){const[e,t]=p.useState(!1),n=p.useRef(void 0),i=()=>{clearTimeout(n.current),t(!0)},l=()=>{n.current=setTimeout(()=>t(!1),120)};p.useEffect(()=>()=>clearTimeout(n.current),[]);const o=Jh[r];return v.jsxs("div",{className:"relative",onPointerEnter:i,onPointerLeave:l,children:[v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-neutral-600 hover:text-neutral-400 transition-colors cursor-help",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("path",{d:"M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3"}),v.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),e&&v.jsxs("div",{className:"absolute top-full right-0 mt-1.5 w-52 p-2 rounded bg-neutral-900 border border-neutral-700 shadow-lg z-50",children:[v.jsx("p",{className:"text-[10px] font-semibold text-neutral-200 mb-0.5",children:o.label}),v.jsx("p",{className:"text-[9px] text-neutral-400 leading-tight",children:o.desc}),v.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-neutral-800",children:["mp4","mov","webm"].filter(c=>c!==r).map(c=>v.jsxs("p",{className:"text-[9px] text-neutral-500 leading-relaxed",children:[v.jsx("span",{className:"text-neutral-400 font-medium",children:Jh[c].label})," — ",Jh[c].desc]},c))})]})]})}const lg=[{value:"draft",label:"Draft",title:"Fast render, smaller file"},{value:"standard",label:"Standard",title:"Good quality, balanced file size"},{value:"high",label:"High Quality",title:"Best quality, larger file"}];function Q9({onStartRender:r,isRendering:e}){var c;const[t,n]=p.useState("mp4"),[i,l]=p.useState("standard"),o=t!=="mov";return v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx(b9,{format:t}),o&&v.jsx("select",{value:i,onChange:u=>l(u.target.value),disabled:e,title:(c=lg.find(u=>u.value===i))==null?void 0:c.title,className:"h-5 px-1 text-[10px] rounded-l bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50",children:lg.map(u=>v.jsx("option",{value:u.value,title:u.title,children:u.label},u.value))}),v.jsxs("select",{value:t,onChange:u=>n(u.target.value),disabled:e,className:`h-5 px-1 text-[10px] bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50 ${o?"":"rounded-l"}`,children:[v.jsx("option",{value:"mp4",children:"MP4"}),v.jsx("option",{value:"mov",children:"MOV"}),v.jsx("option",{value:"webm",children:"WebM"})]}),v.jsx("button",{onClick:()=>r(t,i),disabled:e,className:"flex items-center gap-1 px-2 py-0.5 text-[10px] font-semibold rounded-r bg-studio-accent text-[#09090B] hover:brightness-110 transition-colors disabled:opacity-50",children:e?"Rendering...":"Export"})]})}const $9=p.memo(function({jobs:e,projectId:t,onDelete:n,onClearCompleted:i,onStartRender:l,isRendering:o}){const c=p.useRef(null);p.useEffect(()=>{c.current&&c.current.scrollTo({top:c.current.scrollHeight,behavior:"smooth"})},[e.length]);const u=e.filter(f=>f.status!=="rendering").length;return v.jsxs("div",{className:"flex flex-col h-full",children:[v.jsx("div",{className:"flex items-center justify-end px-3 py-2 border-b border-neutral-800/50 flex-shrink-0",children:v.jsxs("div",{className:"flex items-center gap-1.5",children:[u>0&&v.jsx("button",{onClick:i,className:"text-[10px] text-neutral-600 hover:text-neutral-400 transition-colors",children:"Clear"}),v.jsx(Q9,{onStartRender:l,isRendering:o})]})}),v.jsx("div",{ref:c,className:"flex-1 overflow-y-auto",children:e.length===0?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 gap-2",children:[v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-700",children:[v.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2.18",ry:"2.18",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("path",{d:"M7 2v20M17 2v20M2 12h20M2 7h5M2 17h5M17 17h5M17 7h5",strokeLinecap:"round",strokeLinejoin:"round"})]}),v.jsx("p",{className:"text-[10px] text-neutral-600 text-center",children:"No renders yet"})]}):e.map(f=>v.jsx(k9,{job:f,projectId:t,onDelete:()=>n(f.id)},f.id))})]})});function P9(r){const[e,t]=p.useState([]),n=p.useRef(null),i=p.useRef(null),l=p.useCallback(async()=>{if(r)try{const f=await fetch(`/api/projects/${r}/renders`);if(!f.ok)return;const m=await f.json();Array.isArray(m.renders)&&t(O=>{const y=new Set(O.map(w=>w.id)),S=m.renders.filter(w=>!y.has(w.id)).map(w=>({id:w.id,status:w.status==="failed"?"failed":"complete",progress:100,filename:w.filename,createdAt:w.createdAt,durationMs:w.durationMs}));return[...O,...S]})}catch{}},[r]);p.useEffect(()=>{l()},[l]);const o=p.useCallback(async(f=30,m="standard",O="mp4")=>{if(!r)return;const y=Date.now();let S;try{S=await fetch(`/api/projects/${r}/render`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fps:f,quality:m,format:O})})}catch{const A={id:crypto.randomUUID(),status:"failed",progress:0,error:"Could not reach render server. Use `hyperframes render` from the CLI instead.",filename:"Export failed",createdAt:y};t(T=>[...T,A]);return}if(!S.ok){const A={id:crypto.randomUUID(),status:"failed",progress:0,error:`Server error (${S.status}). Check the terminal for details.`,filename:"Export failed",createdAt:y};t(T=>[...T,A]);return}const{jobId:w}=await S.json(),$={mp4:".mp4",webm:".webm",mov:".mov"}[O]??".mp4",C={id:w,status:"rendering",progress:0,filename:`${w}${$}`,createdAt:y};t(A=>[...A,C]),i.current=w;const _=new EventSource(`/api/render/${w}/progress`);return n.current=_,_.addEventListener("progress",A=>{try{const T=JSON.parse(A.data);t(Z=>Z.map(X=>X.id===w?{...X,progress:T.progress??X.progress,stage:T.stage??T.message??X.stage,status:T.status==="complete"?"complete":T.status==="failed"?"failed":X.status,durationMs:T.status==="complete"?Date.now()-y:void 0,error:T.error??X.error}:X)),(T.status==="complete"||T.status==="failed")&&(_.close(),i.current=null)}catch{}}),_.onerror=()=>{_.close(),t(A=>A.map(T=>T.id===w&&T.status==="rendering"?{...T,status:"failed",error:"Connection lost. Is the render server running?"}:T)),i.current=null},w},[r]),c=p.useCallback(async f=>{try{await fetch(`/api/render/${f}`,{method:"DELETE"})}catch{}t(m=>m.filter(O=>O.id!==f))},[]),u=p.useCallback(()=>{t(f=>f.filter(m=>m.status==="rendering"))},[]);return p.useEffect(()=>()=>{var f;(f=n.current)==null||f.close(),n.current=null},[r]),{jobs:e,startRender:o,deleteRender:c,clearCompleted:u,isRendering:e.some(f=>f.status==="rendering")}}const b5=2,A9=1,og=b5+A9;function C9(r,e){const t=[],n=Math.floor(r.length/e);if(n===0)return Array(e).fill(0);for(let l=0;l<e;l++){let o=0;const c=l*n,u=Math.min(c+n,r.length);for(let f=c;f<u;f++){const m=Math.abs(r[f]??0);m>o&&(o=m)}t.push(o)}const i=Math.max(...t,.001);return t.map(l=>l/i)}function T9(r,e){let t=0;for(let l=0;l<r.length;l++)t=(t<<5)-t+r.charCodeAt(l)|0;t=Math.abs(t)||42;const n=()=>(t=t*16807%2147483647,(t&2147483647)/2147483647),i=[];for(let l=0;l<e;l++){const o=l/e,c=.3+.3*Math.sin(o*Math.PI*3.2)+.2*Math.sin(o*Math.PI*7.1);i.push(Math.max(.05,Math.min(1,c*(.4+.6*n()))))}return i}const e1=new Map,Z9=p.memo(function({audioUrl:e,label:t,labelColor:n}){const i=p.useRef(null),l=p.useRef(null),o=p.useRef(null),[c,u]=p.useState(e1.get(e)??null);p.useEffect(()=>{if(c||!e)return;const O=new AbortController;return fetch(e,{signal:O.signal}).then(y=>y.arrayBuffer()).then(y=>{const S=new AudioContext;return S.decodeAudioData(y).finally(()=>S.close())}).then(y=>{if(O.signal.aborted)return;const S=y.getChannelData(0),w=C9(S,4e3);e1.set(e,w),u(w)}).catch(()=>{if(O.signal.aborted)return;const y=T9(e,4e3);e1.set(e,y),u(y)}),()=>O.abort()},[e,c]);const f=p.useCallback(()=>{const O=i.current,y=l.current;if(!O||!y||!c)return;const S=O.clientWidth||400,w=Math.min(Math.floor(S/og),c.length);let b="";for(let $=0;$<w;$++){const C=Math.floor($/w*c.length),_=c[C]??0,A=Math.max(3,Math.round(_*100)),T=(.45+_*.4).toFixed(2);b+=`<div style="position:absolute;bottom:0;left:${$*og}px;width:${b5}px;height:${A}%;background:rgba(75,163,210,${T})"></div>`}y.innerHTML=b},[c]),m=p.useCallback(O=>{var y;(y=o.current)==null||y.disconnect(),i.current=O,O&&(f(),o.current=new ResizeObserver(()=>f()),o.current.observe(O))},[f]);return p.useEffect(()=>{f()},[f]),p.useEffect(()=>()=>{var O;(O=o.current)==null||O.disconnect()},[]),v.jsxs("div",{ref:m,className:"absolute inset-0 overflow-hidden",children:[v.jsx("div",{ref:l,className:"absolute left-0 right-0 bottom-0",style:{top:16}}),!c&&v.jsx("div",{className:"absolute left-0 right-0 bottom-0 animate-pulse",style:{top:16,background:"linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 100%)"}}),v.jsx("div",{className:"absolute top-0 left-0 right-0 px-1.5 py-0.5 z-10",children:v.jsx("span",{className:"text-[9px] font-semibold truncate block leading-tight",style:{color:n,textShadow:"0 1px 3px rgba(0,0,0,0.9)"},children:t})})]})});function ag({findings:r,projectId:e,onClose:t}){const n=r.filter(f=>f.severity==="error"),i=r.filter(f=>f.severity==="warning"),l=r.length>0,[o,c]=p.useState(!1),u=async()=>{const f=r.map(O=>{let y=`[${O.severity}] ${O.message}`;return O.file&&(y+=`
77
- File: ${O.file}`),O.fixHint&&(y+=`
78
- Fix: ${O.fixHint}`),y}),m=`Fix these HyperFrames lint issues for project "${e}":
79
-
80
- Project path: ${window.location.href}
81
-
82
- ${f.join(`
83
-
84
- `)}`;try{await navigator.clipboard.writeText(m),c(!0),setTimeout(()=>c(!1),2e3)}catch{}};return v.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:t,children:v.jsxs("div",{className:"bg-neutral-950 border border-neutral-800 rounded-xl shadow-2xl w-full max-w-xl max-h-[80vh] flex flex-col overflow-hidden",onClick:f=>f.stopPropagation(),children:[v.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-neutral-800",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[l?v.jsx("div",{className:"w-8 h-8 rounded-full bg-red-500/10 flex items-center justify-center",children:v.jsx(wc,{size:18,className:"text-red-400",weight:"fill"})}):v.jsx("div",{className:"w-8 h-8 rounded-full bg-studio-accent/10 flex items-center justify-center",children:v.jsx($g,{size:18,className:"text-studio-accent",weight:"fill"})}),v.jsxs("div",{children:[v.jsx("h2",{className:"text-sm font-semibold text-neutral-200",children:l?`${n.length} error${n.length!==1?"s":""}, ${i.length} warning${i.length!==1?"s":""}`:"All checks passed"}),v.jsx("p",{className:"text-xs text-neutral-500",children:"HyperFrame Lint Results"})]})]}),v.jsx("button",{onClick:t,className:"p-1.5 rounded-lg text-neutral-500 hover:text-neutral-200 hover:bg-neutral-800 transition-colors",children:v.jsx(Kg,{size:16})})]}),l&&v.jsx("div",{className:"flex items-center justify-end px-5 py-2 border-b border-neutral-800/50",children:v.jsx("button",{onClick:u,className:`px-3 py-1 text-xs font-medium rounded-lg transition-colors ${o?"bg-green-600 text-white":"bg-studio-accent hover:bg-studio-accent/80 text-white"}`,children:o?"Copied!":"Copy to Agent"})}),v.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[!l&&v.jsx("div",{className:"py-8 text-center text-neutral-500 text-sm",children:"No errors or warnings found. Your composition looks good!"}),n.map((f,m)=>v.jsx("div",{className:"py-3 border-b border-neutral-800/50 last:border-0",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(wc,{size:14,className:"text-red-400 flex-shrink-0 mt-0.5",weight:"fill"}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"text-sm text-neutral-200",children:f.message}),f.file&&v.jsx("p",{className:"text-xs text-neutral-600 font-mono mt-0.5",children:f.file}),f.fixHint&&v.jsxs("div",{className:"flex items-start gap-1 mt-1.5",children:[v.jsx(Rc,{size:10,className:"text-studio-accent flex-shrink-0 mt-0.5"}),v.jsx("p",{className:"text-xs text-studio-accent",children:f.fixHint})]})]})]})},`e-${m}`)),i.map((f,m)=>v.jsx("div",{className:"py-3 border-b border-neutral-800/50 last:border-0",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(wc,{size:14,className:"text-amber-400 flex-shrink-0 mt-0.5"}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"text-sm text-neutral-300",children:f.message}),f.file&&v.jsx("p",{className:"text-xs text-neutral-600 font-mono mt-0.5",children:f.file}),f.fixHint&&v.jsxs("div",{className:"flex items-start gap-1 mt-1.5",children:[v.jsx(Rc,{size:10,className:"text-studio-accent flex-shrink-0 mt-0.5"}),v.jsx("p",{className:"text-xs text-studio-accent",children:f.fixHint})]})]})]})},`w-${m}`))]})]})})}function M9({projectId:r,filePath:e}){const t=`/api/projects/${r}/preview/${e}`,n=e.split("/").pop()??e;return m5.test(e)?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950",children:[v.jsx("img",{src:t,alt:n,className:"max-w-full max-h-[70%] object-contain rounded border border-neutral-800"}),v.jsx("span",{className:"mt-3 text-[11px] text-neutral-500 font-mono",children:e})]}):O5.test(e)?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950",children:[v.jsx("video",{src:t,controls:!0,className:"max-w-full max-h-[70%] rounded border border-neutral-800"}),v.jsx("span",{className:"mt-3 text-[11px] text-neutral-500 font-mono",children:e})]}):g5.test(e)?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950 gap-3",children:[v.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[v.jsx("path",{d:"M9 18V5l12-2v13",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("circle",{cx:"18",cy:"16",r:"3"})]}),v.jsx("audio",{src:t,controls:!0,className:"w-full max-w-[280px]"}),v.jsx("span",{className:"text-[11px] text-neutral-500 font-mono",children:e})]}):v.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950 gap-2",children:[v.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[v.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("polyline",{points:"14 2 14 8 20 8",strokeLinecap:"round",strokeLinejoin:"round"})]}),v.jsx("span",{className:"text-sm text-neutral-400 font-medium",children:n}),v.jsx("span",{className:"text-[11px] text-neutral-600 font-mono",children:e}),v.jsx("span",{className:"text-[10px] text-neutral-600",children:"Binary file — preview not available"})]})}let E9=0;const cg={isEditMode:!1,model:null,selectedSegmentIds:new Set,selectedGroupId:null,sourceFilePath:null},Ke=gg(r=>({...cg,setEditMode:e=>r({isEditMode:e}),setModel:e=>r({model:e}),setSourceFilePath:e=>r({sourceFilePath:e}),selectSegment:(e,t=!1)=>r(n=>{if(t){const i=new Set(n.selectedSegmentIds);return i.has(e)?i.delete(e):i.add(e),{selectedSegmentIds:i,selectedGroupId:null}}return{selectedSegmentIds:new Set([e]),selectedGroupId:null}}),selectGroup:e=>r(t=>{var i;const n=(i=t.model)==null?void 0:i.groups.get(e);return n?{selectedSegmentIds:new Set(n.segmentIds),selectedGroupId:e}:{}}),selectAll:()=>r(e=>e.model?{selectedSegmentIds:new Set(e.model.segments.keys()),selectedGroupId:null}:{}),clearSelection:()=>r({selectedSegmentIds:new Set,selectedGroupId:null}),updateSegmentStyle:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.segments.get(e);if(!i)return{};const l=new Map(n.model.segments);return l.set(e,{...i,style:{...i.style,...t}}),{model:{...n.model,segments:l}}}),updateSegmentText:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.segments.get(e);if(!i)return{};const l=new Map(n.model.segments);return l.set(e,{...i,text:t}),{model:{...n.model,segments:l}}}),updateSegmentTiming:(e,t,n)=>r(i=>{if(!i.model)return{};const l=i.model.segments.get(e);if(!l)return{};const o=new Map(i.model.segments);return o.set(e,{...l,start:t,end:n}),{model:{...i.model,segments:o}}}),updateGroupStyle:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.groups.get(e);if(!i)return{};const l=new Map(n.model.groups);return l.set(e,{...i,style:{...i.style,...t}}),{model:{...n.model,groups:l}}}),updateGroupContainer:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.groups.get(e);if(!i)return{};const l=new Map(n.model.groups);return l.set(e,{...i,containerStyle:{...i.containerStyle,...t}}),{model:{...n.model,groups:l}}}),updateGroupAnimation:(e,t,n)=>r(i=>{if(!i.model)return{};const l=i.model.groups.get(e);if(!l)return{};const o=new Map(i.model.groups),c=l.animation[t],u=c!==null?{...c,...n}:n;return o.set(e,{...l,animation:{...l.animation,[t]:u}}),{model:{...i.model,groups:o}}}),splitGroup:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.groups.get(e);if(!i)return{};const l=i.segmentIds.indexOf(t);if(l<=0)return{};const o=i.segmentIds.slice(0,l),c=i.segmentIds.slice(l),u=`group-split-${E9++}`,f=new Map(n.model.groups);f.set(e,{...i,segmentIds:o}),f.set(u,{...i,id:u,segmentIds:c});const m=n.model.groupOrder.indexOf(e),O=[...n.model.groupOrder];O.splice(m+1,0,u);const y=new Map(n.model.segments);return c.forEach((S,w)=>{const b=y.get(S);b&&y.set(S,{...b,groupIndex:w})}),{model:{...n.model,groups:f,segments:y,groupOrder:O}}}),mergeGroups:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.groups.get(e),l=n.model.groups.get(t);if(!i||!l)return{};const o=[...i.segmentIds,...l.segmentIds],c=new Map(n.model.groups);c.set(e,{...i,segmentIds:o}),c.delete(t);const u=n.model.groupOrder.filter(O=>O!==t),f=new Map(n.model.segments);l.segmentIds.forEach((O,y)=>{const S=f.get(O);S&&f.set(O,{...S,groupIndex:i.segmentIds.length+y})});const m=n.selectedGroupId===t?null:n.selectedGroupId;return{model:{...n.model,groups:c,segments:f,groupOrder:u},selectedGroupId:m}}),updateSelectedStyle:e=>r(t=>{if(!t.model||t.selectedSegmentIds.size===0)return{};const n=new Map(t.model.segments);for(const i of t.selectedSegmentIds){const l=n.get(i);l&&n.set(i,{...l,style:{...l.style,...e}})}return{model:{...t.model,segments:n}}}),applyAnimationToAll:e=>r(t=>{if(!t.model)return{};const n=new Map(t.model.groups);for(const[i,l]of n)n.set(i,{...l,animation:e});return{model:{...t.model,groups:n}}}),reset:()=>r({...cg,selectedSegmentIds:new Set})}));function j9(r,e,t){var S,w;let n=null,i=null;try{n=r.contentDocument,i=r.contentWindow}catch{return[]}if(!n||!i)return[];const l=r.getBoundingClientRect(),o=t.getBoundingClientRect(),c=parseFloat(r.style.width)||l.width,u=l.width/c,f=l.left-o.left,m=l.top-o.top,O=n.querySelectorAll(".caption-group"),y=[];for(let b=0;b<e.groupOrder.length;b++){const $=e.groupOrder[b],C=e.groups.get($);if(!C)continue;const _=O[b];if(!_)continue;const A=i.getComputedStyle(_);if(parseFloat(A.opacity)<=.01||A.visibility==="hidden")continue;const T=[];for(const Z of _.children){const X=Z;if(X.dataset.captionWrapper==="true"){const M=X.querySelector(":scope > span");M&&T.push(M)}else X.tagName==="SPAN"&&T.push(X)}if(T.length===0&&((S=_.textContent)!=null&&S.trim())){const Z=_.childNodes[0];if(Z&&Z.nodeType===Node.TEXT_NODE){const X=(Z.textContent||"").split(/\s+/).filter(Boolean),M=n.createDocumentFragment();for(const N of X){const Y=n.createElement("span");Y.textContent=N+" ",Y.style.display="inline",M.appendChild(Y),T.push(Y)}_.replaceChild(M,Z)}else{const X=_.querySelector(":scope > span");if(X&&((w=X.textContent)!=null&&w.trim())){const M=X.textContent.split(/\s+/).filter(Boolean),N=n.createDocumentFragment();for(const Y of M){const fe=n.createElement("span");fe.textContent=Y+" ",fe.style.display="inline",N.appendChild(fe),T.push(fe)}X.replaceWith(N)}}}for(let Z=0;Z<C.segmentIds.length;Z++){const X=C.segmentIds[Z],M=T[Z];if(!M)continue;const N=M.getBoundingClientRect();y.push({segmentId:X,groupId:$,groupIndex:b,wordIndex:Z,x:N.left*u+f,y:N.top*u+m,width:N.width*u,height:N.height*u})}}return y}function yc(r,e,t){let n=null;try{n=r.contentDocument}catch{return null}if(!n)return null;const i=n.querySelectorAll(".caption-group")[e];if(!i)return null;const l=[];for(const o of i.children){const c=o;if(c.dataset.captionWrapper==="true"){const u=c.querySelector(":scope > span");u&&l.push(u)}else c.tagName==="SPAN"&&l.push(c)}return l[t]??null}function ho(r,e){const t=e.gsap;if(t&&t.getProperty)return{x:t.getProperty(r,"x")||0,y:t.getProperty(r,"y")||0,scale:t.getProperty(r,"scale")||1,rotation:t.getProperty(r,"rotation")||0};const n=r.style.transform||"",i=n.match(/scale\(([^)]+)\)/),l=n.match(/rotate\(([^)]+)deg\)/),o=n.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);return{x:o?parseFloat(o[1]):0,y:o?parseFloat(o[2]):0,scale:i?parseFloat(i[1]):1,rotation:l?parseFloat(l[1]):0}}function Ys(r){var i;if(r.dataset.captionWrapper==="true")return r;const e=r.parentElement;if(e&&e.dataset.captionWrapper==="true")return e;const n=r.ownerDocument.createElement("span");return n.style.display="inline-block",n.dataset.captionWrapper="true",(i=r.parentNode)==null||i.insertBefore(n,r),n.appendChild(r),n}function xc(r,e,t,n,i,l){const o=Ys(r),c=e.gsap;c&&c.set?c.set(o,{x:t,y:n,scale:i,rotation:l}):o.style.transform=`translate(${t.toFixed(1)}px, ${n.toFixed(1)}px) rotate(${l.toFixed(1)}deg) scale(${i.toFixed(3)})`}function ug(r,e,t){const n=Ys(e),{x:i,y:l,scale:o,rotation:c}=ho(n,t),u={};Math.abs(i)>.5&&(u.x=i),Math.abs(l)>.5&&(u.y=l),Math.abs(o-1)>.001&&(u.scaleX=o,u.scaleY=o),Math.abs(c)>.1&&(u.rotation=c),Object.keys(u).length>0&&Ke.getState().updateSegmentStyle(r,u)}const $n=8,t1=20,V9=p.memo(function({iframeRef:e}){const t=Ke(T=>T.isEditMode),n=Ke(T=>T.model),i=Ke(T=>T.selectedSegmentIds),l=Ke(T=>T.selectSegment),o=Ke(T=>T.clearSelection),[c,u]=p.useState([]),f=p.useRef(null),m=p.useRef(n);m.current=n;const O=p.useRef(null);_t(()=>{if(!t)return;let T=[];const Z=()=>{const N=e.current,Y=m.current,fe=f.current;if(!N||!Y||!fe)return;const K=j9(N,Y,fe);K.length===T.length&&K.every((te,F)=>Math.abs(te.x-T[F].x)<.5&&Math.abs(te.y-T[F].y)<.5)||(T=K,u(K))},X=setInterval(Z,66);Z();const M=N=>{const{selectedSegmentIds:Y,model:fe}=Ke.getState();if(Y.size===0||!fe)return;const K=N.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(K))return;N.preventDefault();const te=N.shiftKey?10:1,F=K==="ArrowLeft"?-te:K==="ArrowRight"?te:0,re=K==="ArrowUp"?-te:K==="ArrowDown"?te:0,B=e.current,he=B==null?void 0:B.contentWindow;if(!(!B||!he))for(const ce of Y)for(let H=0;H<fe.groupOrder.length;H++){const J=fe.groups.get(fe.groupOrder[H]);if(!J)continue;const U=J.segmentIds.indexOf(ce);if(U<0)continue;const Q=yc(B,H,U);if(!Q)continue;const z=Ys(Q),ie=ho(z,he);xc(Q,he,ie.x+F,ie.y+re,ie.scale,ie.rotation),ug(ce,Q,he);break}};return window.addEventListener("keydown",M),()=>{clearInterval(X),window.removeEventListener("keydown",M)}});const y=p.useCallback(()=>{const T=e.current;if(!T)return 1;const Z=T.getBoundingClientRect(),X=parseFloat(T.style.width)||Z.width;return Z.width/X},[e]),S=p.useCallback((T,Z,X,M)=>{M.stopPropagation(),M.currentTarget.setPointerCapture(M.pointerId);const N=e.current;if(!N)return;const Y=yc(N,T,Z),fe=N.contentWindow;if(!Y||!fe)return;const K=ho(Ys(Y),fe);O.current={type:"move",wordEl:Y,segmentId:X,startMX:M.clientX,startMY:M.clientY,origTX:K.x,origTY:K.y,origScale:K.scale,origRotation:K.rotation}},[e]),w=p.useCallback((T,Z,X,M)=>{var B;M.stopPropagation(),M.preventDefault(),M.currentTarget.setPointerCapture(M.pointerId);const N=e.current;if(!N)return;const Y=yc(N,T,Z),fe=N.contentWindow;if(!Y||!fe)return;const K=Y.getBoundingClientRect(),te=y(),F=K.left*te+(((B=e.current)==null?void 0:B.getBoundingClientRect().left)??0)+K.width*te/2,re=ho(Ys(Y),fe);O.current={type:"scale",wordEl:Y,segmentId:X,startMX:M.clientX,startDxFromCenter:M.clientX-F,origTX:re.x,origTY:re.y,origScale:re.scale,origRotation:re.rotation}},[e,y]),b=p.useCallback((T,Z)=>{Z.stopPropagation(),Z.preventDefault(),Z.currentTarget.setPointerCapture(Z.pointerId);const X=e.current;if(!X)return;const M=yc(X,T.groupIndex,T.wordIndex),N=X.contentWindow;if(!M||!N)return;const Y=ho(Ys(M),N);O.current={type:"rotate",wordEl:M,segmentId:T.segmentId,startMX:Z.clientX,origTX:Y.x,origTY:Y.y,origRotation:Y.rotation,origScale:Y.scale}},[e]),$=p.useCallback(()=>{var T;try{return((T=e.current)==null?void 0:T.contentWindow)??null}catch{return null}},[e]),C=p.useCallback(T=>{const Z=O.current;if(!Z)return;const X=$();if(X){if(Z.type==="move"){const M=y(),N=(T.clientX-Z.startMX)/M,Y=(T.clientY-Z.startMY)/M;xc(Z.wordEl,X,Z.origTX+N,Z.origTY+Y,Z.origScale,Z.origRotation)}else if(Z.type==="scale"){const M=Z.startMX-Z.startDxFromCenter,N=Math.abs(Z.startDxFromCenter),Y=Math.abs(T.clientX-M),fe=N>5?Y/N:1,K=Math.max(.1,Z.origScale*fe);xc(Z.wordEl,X,Z.origTX,Z.origTY,K,Z.origRotation)}else if(Z.type==="rotate"){const N=(T.clientX-Z.startMX)/200*90;xc(Z.wordEl,X,Z.origTX,Z.origTY,Z.origScale,Z.origRotation+N)}}},[y,$]),_=p.useCallback(()=>{const T=O.current;if(T){const Z=$();Z&&ug(T.segmentId,T.wordEl,Z),O.current=null}},[$]),A=p.useCallback(T=>{T.target===T.currentTarget&&o()},[o]);return t?v.jsx("div",{ref:f,className:"absolute inset-0 z-50",style:{pointerEvents:"auto"},onClick:A,onPointerMove:C,onPointerUp:_,onLostPointerCapture:_,children:c.map(T=>{const Z=i.has(T.segmentId);return v.jsx("div",{className:["absolute",Z?"ring-2 ring-studio-accent":"hover:ring-1 hover:ring-white/30"].join(" "),style:{left:T.x,top:T.y,width:T.width,height:T.height,cursor:Z?"move":"pointer",touchAction:"none",borderRadius:2},onClick:X=>{X.stopPropagation(),l(T.segmentId,X.shiftKey)},onPointerDown:X=>{Z&&S(T.groupIndex,T.wordIndex,T.segmentId,X)},children:Z&&v.jsxs(v.Fragment,{children:[v.jsx("div",{style:{position:"absolute",left:"50%",top:-t1-$n,marginLeft:-$n/2,width:$n,height:$n,borderRadius:"50%",backgroundColor:"var(--hf-accent, #3CE6AC)",border:"1px solid rgba(0,0,0,0.5)",cursor:"grab",touchAction:"none"},onPointerDown:X=>b(T,X)}),v.jsx("div",{style:{position:"absolute",left:"50%",top:-t1,width:1,height:t1,marginLeft:-.5,backgroundColor:"var(--hf-accent, #3CE6AC)",opacity:.5,pointerEvents:"none"}}),[{right:-$n/2,bottom:-$n/2,cursor:"nwse-resize"},{left:-$n/2,top:-$n/2,cursor:"nwse-resize"},{right:-$n/2,top:-$n/2,cursor:"nesw-resize"},{left:-$n/2,bottom:-$n/2,cursor:"nesw-resize"}].map((X,M)=>v.jsx("div",{style:{position:"absolute",...X,width:$n,height:$n,backgroundColor:"var(--hf-accent, #3CE6AC)",border:"1px solid rgba(0,0,0,0.5)",borderRadius:2,touchAction:"none"},onPointerDown:N=>w(T.groupIndex,T.wordIndex,T.segmentId,N)},M))]})},T.segmentId)})}):null}),Vi="w-full bg-neutral-900 border border-neutral-800 rounded px-1.5 py-0.5 text-2xs text-neutral-200 font-mono outline-none focus:border-neutral-600";function J1({label:r,children:e}){return v.jsxs("div",{className:"mb-3",children:[v.jsx("div",{className:"flex items-center gap-1.5 mt-2 mb-1.5",children:v.jsx("span",{className:"text-2xs font-medium text-neutral-500 uppercase tracking-wider",children:r})}),v.jsx("div",{className:"space-y-1",children:e})]})}function ii({label:r,children:e}){return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-2xs text-neutral-600 w-14 text-right flex-shrink-0",children:r}),v.jsx("div",{className:"flex-1 min-w-0",children:e})]})}const R9=["none","fade","slide-up","slide-down","slide-left","slide-right","pop","slam","bounce","typewriter","blur-in","flip","drop"],L9=["none","color-change","scale-pop","glow-pulse","underline-sweep","background-fill","bounce"],X9=["none","fade","slide-up","slide-down","slide-left","slide-right","scatter","drop","collapse","blur-out","shrink"],N9=["power1.out","power2.out","power3.out","power4.out","power1.in","power2.in","power3.in","power1.inOut","power2.inOut","back.out(1.7)","elastic.out(1,0.3)","bounce.out"];function n1({label:r,presets:e,animation:t,showIntensity:n,onChange:i}){const l=(t==null?void 0:t.preset)??"none",o=(t==null?void 0:t.duration)??.2,c=(t==null?void 0:t.ease)??"power2.out",u=(t==null?void 0:t.stagger)??0,f=(t==null?void 0:t.intensity)??1;return v.jsxs(J1,{label:r,children:[v.jsx(ii,{label:"Preset",children:v.jsx("select",{value:l,onChange:m=>i({preset:m.target.value}),className:Vi,children:e.map(m=>v.jsx("option",{value:m,children:m},m))})}),v.jsx(ii,{label:"Duration",children:v.jsx("input",{type:"number",value:o,step:.05,min:0,max:2,onChange:m=>i({duration:Number(m.target.value)}),className:Vi})}),v.jsx(ii,{label:"Ease",children:v.jsx("select",{value:c,onChange:m=>i({ease:m.target.value}),className:Vi,children:N9.map(m=>v.jsx("option",{value:m,children:m},m))})}),v.jsx(ii,{label:"Stagger",children:v.jsx("input",{type:"number",value:u,step:.02,min:0,max:.5,onChange:m=>i({stagger:Number(m.target.value)}),className:Vi})}),n&&v.jsx(ii,{label:"Intensity",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"range",min:0,max:1,step:.01,value:f,onChange:m=>i({intensity:Number(m.target.value)}),className:"flex-1 accent-studio-accent"}),v.jsx("span",{className:"text-2xs text-neutral-400 font-mono w-8 text-right flex-shrink-0",children:f.toFixed(2)})]})})]})}const _9=p.memo(function(){const e=Ke(S=>S.model),t=Ke(S=>S.selectedGroupId),n=Ke(S=>S.selectedSegmentIds),i=Ke(S=>S.updateGroupAnimation),l=Ke(S=>S.applyAnimationToAll);let o=t;if(!o&&e&&n.size>0){const S=[...n][0];if(S){for(const[w,b]of e.groups)if(b.segmentIds.includes(S)){o=w;break}}}const c=o?e==null?void 0:e.groups.get(o):void 0,u=c==null?void 0:c.animation,f=p.useCallback(S=>{o&&i(o,"entrance",S)},[o,i]),m=p.useCallback(S=>{o&&i(o,"highlight",S)},[o,i]),O=p.useCallback(S=>{o&&i(o,"exit",S)},[o,i]),y=p.useCallback(()=>{u&&l(u)},[u,l]);return!c||!o||!u?v.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:v.jsx("p",{className:"text-xs text-neutral-500",children:"Select a caption group to edit animations"})}):v.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[v.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[v.jsx(n1,{label:"Entrance",presets:R9,animation:u.entrance,onChange:f}),v.jsx(n1,{label:"Highlight",presets:L9,animation:u.highlight,showIntensity:!0,onChange:m}),v.jsx(n1,{label:"Exit",presets:X9,animation:u.exit,onChange:O})]}),v.jsx("div",{className:"flex-shrink-0 px-3 py-2 border-t border-neutral-800",children:v.jsx("button",{type:"button",onClick:y,className:"w-full py-1.5 rounded border border-neutral-700 text-2xs text-neutral-300 hover:border-studio-accent/50 hover:text-studio-accent transition-colors",children:"Apply to all groups"})})]})}),z9=p.memo(function({iframeRef:e}){var X;const t=Ke(M=>M.model),n=Ke(M=>M.selectedSegmentIds),i=Ke(M=>M.selectedGroupId),l=Ke(M=>M.updateSelectedStyle),o=Ke(M=>M.updateGroupStyle),[c,u]=p.useState("style"),f=n.size>0?[...n][0]:void 0,m=t==null?void 0:t.segments.get(f??"");let O=null;if(t&&f)for(const M of t.groupOrder){const N=t.groups.get(M);if(N&&N.segmentIds.includes(f)){O=M;break}}const y=O?(X=t==null?void 0:t.groups.get(O))==null?void 0:X.style:void 0,S=(m==null?void 0:m.style)??{},w={...y,...S},b=p.useCallback(M=>{var F,re,B;const N=e.current;if(!N||!t)return;let Y=null;try{Y=N.contentDocument}catch{return}if(!Y)return;const fe=Y.querySelectorAll(".caption-group"),K=[];for(const he of n)for(let ce=0;ce<t.groupOrder.length;ce++){const H=t.groups.get(t.groupOrder[ce]);if(!H)continue;const J=H.segmentIds.indexOf(he);if(J<0)continue;const U=fe[ce];if(!U)continue;const Q=U.children;let z=0;for(const ie of Q){const de=ie;if(de.dataset.captionWrapper==="true"){const ee=de.querySelector(":scope > span");if(ee&&z===J){K.push(ee);break}}else if(de.tagName==="SPAN"&&z===J){K.push(de);break}z++}break}if(M.x!==void 0||M.y!==void 0||M.scaleX!==void 0||M.scaleY!==void 0||M.rotation!==void 0)try{const he=(re=(F=e.current)==null?void 0:F.contentWindow)==null?void 0:re.gsap;if(he)for(const ce of K){let H=ce.parentElement;(!H||H.dataset.captionWrapper!=="true")&&(H=Y.createElement("span"),H.style.display="inline-block",H.dataset.captionWrapper="true",(B=ce.parentNode)==null||B.insertBefore(H,ce),H.appendChild(ce));const J=he.getProperty(H,"x")||0,U=he.getProperty(H,"y")||0,Q=he.getProperty(H,"scale")||1,z=he.getProperty(H,"rotation")||0;he.set(H,{x:M.x??J,y:M.y??U,scale:M.scaleX??Q,rotation:M.rotation??z})}}catch{}},[e,t,n]),$=p.useCallback(M=>{i?o(i,M):l(M),b(M)},[i,o,l,b]);if(n.size===0)return v.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:v.jsx("p",{className:"text-xs text-neutral-500",children:"Select caption words to edit their style"})});const C=w.x??0,_=w.y??0,A=w.rotation??0,T=w.scaleX??1,Z=n.size===1?"1 word":`${n.size} words`;return v.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[v.jsxs("div",{className:"px-3 py-2 border-b border-neutral-800 flex-shrink-0",children:[v.jsx("div",{className:"flex items-center justify-between mb-1.5",children:v.jsx("span",{className:"text-2xs text-neutral-500",children:Z})}),v.jsxs("div",{className:"flex gap-1",children:[v.jsx("button",{type:"button",onClick:()=>u("style"),className:["flex-1 py-0.5 rounded text-2xs font-medium transition-colors",c==="style"?"bg-studio-accent/20 text-studio-accent border border-studio-accent/50":"text-neutral-500 border border-neutral-800 hover:text-neutral-300 hover:border-neutral-600"].join(" "),children:"Style"}),v.jsx("button",{type:"button",onClick:()=>u("animation"),className:["flex-1 py-0.5 rounded text-2xs font-medium transition-colors",c==="animation"?"bg-studio-accent/20 text-studio-accent border border-studio-accent/50":"text-neutral-500 border border-neutral-800 hover:text-neutral-300 hover:border-neutral-600"].join(" "),children:"Animation"})]})]}),c==="animation"&&v.jsx(_9,{}),c==="style"&&v.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[v.jsxs(J1,{label:"Position",children:[v.jsx(ii,{label:"X",children:v.jsx("input",{type:"number",value:C,onChange:M=>$({x:Number(M.target.value)}),className:Vi})}),v.jsx(ii,{label:"Y",children:v.jsx("input",{type:"number",value:_,onChange:M=>$({y:Number(M.target.value)}),className:Vi})})]}),v.jsxs(J1,{label:"Transform",children:[v.jsx(ii,{label:"Scale",children:v.jsx("input",{type:"number",value:T,step:.1,onChange:M=>$({scaleX:Number(M.target.value),scaleY:Number(M.target.value)}),className:Vi})}),v.jsx(ii,{label:"Rotation",children:v.jsx("input",{type:"number",value:A,onChange:M=>$({rotation:Number(M.target.value)}),className:Vi})})]})]})]})}),hg=["#3CE6AC","#FF6B6B","#4ECDC4","#FFE66D","#A78BFA","#F472B6","#34D399","#FB923C","#60A5FA","#C084FC"],D9=p.memo(function({pixelsPerSecond:e,onSeek:t}){const n=Ke(b=>b.model),i=Ke(b=>b.selectedSegmentIds),l=Ke(b=>b.selectSegment),o=Ke(b=>b.updateSegmentTiming),c=Ke(b=>b.splitGroup),u=p.useRef(null),f=p.useCallback((b,$,C,_,A)=>{b.stopPropagation(),b.preventDefault(),b.target.setPointerCapture(b.pointerId),u.current={segId:$,edge:C,originalStart:_,originalEnd:A,startX:b.clientX}},[]),m=p.useCallback(b=>{const $=u.current;if(!$)return;const C=(b.clientX-$.startX)/e;if($.edge==="start"){const _=Math.max(0,$.originalStart+C),A=Math.min(_,$.originalEnd-.05);o($.segId,A,$.originalEnd)}else{const _=Math.max($.originalStart+.05,$.originalEnd+C),A=Math.max(0,_);o($.segId,$.originalStart,A)}},[e,o]),O=p.useCallback(()=>{u.current=null},[]),y=p.useCallback((b,$)=>{b.stopPropagation(),l($,b.shiftKey)},[l]),S=p.useCallback((b,$,C)=>{b.stopPropagation(),c($,C)},[c]),w=p.useCallback(b=>{if(!t)return;const $=b.currentTarget.getBoundingClientRect(),C=b.clientX-$.left-32,_=Math.max(0,C/e);t(_)},[t,e]);return n?v.jsx("div",{className:"relative select-none overflow-x-auto",style:{height:40,minWidth:"100%"},onPointerMove:m,onPointerUp:O,onPointerLeave:O,onClick:w,children:n.groupOrder.map((b,$)=>{const C=n.groups.get(b);if(!C)return null;const _=hg[$%hg.length];return C.segmentIds.map(A=>{const T=n.segments.get(A);if(!T)return null;const Z=32+T.start*e,X=Math.max((T.end-T.start)*e,4),M=i.has(A);return v.jsxs("div",{className:`absolute top-1 bottom-1 rounded flex items-center overflow-hidden cursor-pointer${M?" ring-1 ring-white/50 z-10":""}`,style:{left:Z,width:X,backgroundColor:_,zIndex:M?10:1},onClick:N=>y(N,A),onDoubleClick:N=>S(N,b,A),children:[v.jsx("div",{className:"absolute left-0 top-0 bottom-0 cursor-col-resize z-20",style:{width:6},onPointerDown:N=>f(N,A,"start",T.start,T.end)}),v.jsx("span",{className:"flex-1 truncate px-2 pointer-events-none",style:{fontSize:9,color:"#000000",lineHeight:1},children:T.text}),v.jsx("div",{className:"absolute right-0 top-0 bottom-0 cursor-col-resize z-20",style:{width:6},onPointerDown:N=>f(N,A,"end",T.start,T.end)})]},A)})})}):null});function I9(r){const e=[];let t=0;for(const n of r.groupOrder){const i=r.groups.get(n);if(i)for(const l of i.segmentIds){const o=r.segments.get(l);if(o&&Object.keys(o.style).length>0){const c={wordIndex:t};o.wordId&&(c.wordId=o.wordId);const u=o.style;u.x!==void 0&&(c.x=u.x),u.y!==void 0&&(c.y=u.y),u.scaleX!==void 0&&(c.scale=u.scaleX),u.rotation!==void 0&&(c.rotation=u.rotation),u.activeColor!==void 0&&(c.activeColor=u.activeColor),u.dimColor!==void 0&&(c.dimColor=u.dimColor),u.opacity!==void 0&&(c.opacity=u.opacity),u.fontSize!==void 0&&(c.fontSize=u.fontSize),u.fontWeight!==void 0&&(c.fontWeight=u.fontWeight),u.fontFamily!==void 0&&(c.fontFamily=u.fontFamily),e.push(c)}t++}}return e}function W9(r){const e=p.useRef(r);e.current=r;const t=p.useRef(null),n=p.useRef(!1),i=p.useCallback(()=>{const o=Ke.getState();if(!o.model||!o.sourceFilePath||!o.isEditMode)return;const c=e.current;if(!c)return;const u=I9(o.model);fetch(`/api/projects/${c}/files/${encodeURIComponent("caption-overrides.json")}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:JSON.stringify(u,null,2)}).catch(f=>console.warn("[captions] auto-save failed:",f))},[]);_t(()=>{let o=Ke.getState().model;const c=Ke.subscribe(u=>{if(!(!u.isEditMode||u.model===o||!u.model)){if(o=u.model,n.current){n.current=!1;return}t.current&&clearTimeout(t.current),t.current=setTimeout(i,800)}});return()=>{c(),t.current&&clearTimeout(t.current)}});const l=p.useCallback(async()=>{const o=Ke.getState();if(!o.model||!o.sourceFilePath)return;const c=e.current;if(c)try{const u=await fetch(`/api/projects/${c}/files/${encodeURIComponent("caption-overrides.json")}`);if(!u.ok)return;const f=await u.json();if(!f.content)return;const m=JSON.parse(f.content);if(!Array.isArray(m))return;const O=o.model,y=[];for(const w of O.groupOrder){const b=O.groups.get(w);if(b)for(const $ of b.segmentIds)y.push($)}const S=new Map(O.segments);for(const w of m){const b=y[w.wordIndex];if(!b)continue;const $=S.get(b);if(!$)continue;const C={...$.style};w.x!==void 0&&(C.x=w.x),w.y!==void 0&&(C.y=w.y),w.scale!==void 0&&(C.scaleX=w.scale,C.scaleY=w.scale),w.rotation!==void 0&&(C.rotation=w.rotation),w.activeColor!==void 0&&(C.activeColor=w.activeColor),w.dimColor!==void 0&&(C.dimColor=w.dimColor),w.opacity!==void 0&&(C.opacity=w.opacity),w.fontSize!==void 0&&(C.fontSize=w.fontSize),w.fontWeight!==void 0&&(C.fontWeight=w.fontWeight),w.fontFamily!==void 0&&(C.fontFamily=w.fontFamily),S.set(b,{...$,style:C})}n.current=!0,Ke.getState().setModel({...O,segments:S})}catch{}},[]);return{save:i,loadOverrides:l}}const Q5={fontFamily:"sans-serif",fontSize:48,fontWeight:700,fontStyle:"normal",textDecoration:"none",textTransform:"none",letterSpacing:0,lineHeight:1.2,color:"#ffffff",activeColor:"#ffffff",dimColor:"rgba(255, 255, 255, 0.3)",opacity:1,gradientFill:null,strokeWidth:0,strokeColor:"#000000",shadows:[],glow:null,x:0,y:0,rotation:0,scaleX:1,scaleY:1,skewX:0,skewY:0,transformOrigin:"center center",blendMode:"normal"},H9={backgroundColor:"transparent",backgroundOpacity:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,borderRadius:0,borderWidth:0,borderColor:"transparent",borderStyle:"solid",boxShadow:"none"},fg={preset:"fade",duration:.2,ease:"power2.out",stagger:0,staggerDirection:"start",intensity:1},Ls={entrance:fg,highlight:null,exit:{...fg}};function Y9(r,e){const{width:t,height:n,duration:i,wordsPerGroup:l=5}=e,o=new Map,c=new Map,u=[];for(let f=0;f<r.length;f+=l){const m=r.slice(f,f+l),O=`group-${f/l}`,y=[];m.forEach((w,b)=>{const $=`segment-${f+b}`,C={id:$,wordId:w.id??`w${f+b}`,text:w.text,start:w.start,end:w.end,groupIndex:b,style:{},animation:{}};o.set($,C),y.push($)});const S={id:O,segmentIds:y,style:{...Q5},animation:{entrance:{...Ls.entrance},highlight:Ls.highlight,exit:{...Ls.exit}},containerStyle:{...H9}};c.set(O,S),u.push(O)}return{width:t,height:n,duration:i,segments:o,groups:c,groupOrder:u,defaultAnimation:{entrance:{...Ls.entrance},highlight:Ls.highlight,exit:{...Ls.exit}}}}function F9(r){const e=/(?:const|let|var)\s+(?:TRANSCRIPT|script)\s*=\s*(\[[\s\S]*?\]);/,t=r.match(e);if(!t)return[];const n=t[1];try{return q9(n)}catch{return[]}}function B9(r,e,t,n,i,l){const o=F9(t);if(o.length===0)return null;const c=r.querySelectorAll(".caption-group, .caption-line, .caption-block"),u=r.querySelectorAll(".word, .caption-word");let f=5;c.length>0&&u.length>0&&(f=Math.round(u.length/c.length),f<1&&(f=1));const m=Y9(o,{width:n,height:i,duration:l,wordsPerGroup:f}),O=u.item(0),y=c.item(0),S=O??y;if(S){const w=e.getComputedStyle(S),b={},$=parseFloat(w.fontSize);!isNaN($)&&$>0&&(b.fontSize=$);const C=w.fontWeight;if(C){const M=parseInt(C,10);b.fontWeight=isNaN(M)?C:M}const _=w.fontFamily;_&&(b.fontFamily=_);const A=w.color;A&&(b.color=A);const T=w.textTransform;(T==="none"||T==="uppercase"||T==="lowercase"||T==="capitalize")&&(b.textTransform=T);const Z=w.letterSpacing;if(Z&&Z!=="normal"){const M=parseFloat(Z),N=b.fontSize??Q5.fontSize;!isNaN(M)&&N>0&&(b.letterSpacing=M/N)}const X={};if(y){const M=e.getComputedStyle(y),N=M.backgroundColor;N&&N!=="rgba(0, 0, 0, 0)"&&N!=="transparent"&&(X.backgroundColor=N,X.backgroundOpacity=1);const Y=parseFloat(M.borderRadius);!isNaN(Y)&&Y>0&&(X.borderRadius=Y);const fe=parseFloat(M.paddingTop),K=parseFloat(M.paddingRight),te=parseFloat(M.paddingBottom),F=parseFloat(M.paddingLeft);isNaN(fe)||(X.paddingTop=fe),isNaN(K)||(X.paddingRight=K),isNaN(te)||(X.paddingBottom=te),isNaN(F)||(X.paddingLeft=F)}for(const M of m.groupOrder){const N=m.groups.get(M);N&&(N.style={...N.style,...b},N.containerStyle={...N.containerStyle,...X})}}return m}function q9(r){let e;try{e=JSON.parse(r)}catch{let n=r;n=n.replace(/'((?:[^'\\]|\\.)*)'/g,(i,l)=>`"${l.replace(/\\'/g,"'").replace(/"/g,'\\"')}"`),n=n.replace(/([{,]\s*)([a-zA-Z_$][a-zA-Z0-9_$]*)\s*:/g,'$1"$2":'),n=n.replace(/,(\s*[}\]])/g,"$1"),e=JSON.parse(n)}if(!Array.isArray(e))return[];const t=[];for(const n of e)if(n!==null&&typeof n=="object"&&typeof n.text=="string"&&typeof n.start=="number"&&typeof n.end=="number"){const i=n;t.push({text:i.text,start:i.start,end:i.end})}return t}function xo(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function U9(r,e,t,n){const l=new RegExp(`(<[^>]*\\bid="${xo(e)}"[^>]*)>`,"i").exec(r);if(!l)return r;const o=l[1];return $5(r,o,t,n)}function $5(r,e,t,n){if(!e)return r;const i=/\bstyle="([^"]*)"/.exec(e);if(i){const l=i[1],o=new Map;for(const f of l.split(";")){const m=f.indexOf(":");if(m<0)continue;const O=f.slice(0,m).trim(),y=f.slice(m+1).trim();O&&o.set(O,y)}o.set(t,n);const c=Array.from(o.entries()).map(([f,m])=>`${f}: ${m}`).join("; "),u=e.replace(/\bstyle="[^"]*"/,`style="${c}"`);return r.replace(e,u)}else{const l=e.replace(/>$/,"")+` style="${t}: ${n}"`;return r.replace(e,l)}}function G9(r,e,t,n){const i=Yf(r,e);if(!i)return r;const l=$5(i.tag,i.tag,t,n);return ef(r,i,l)}function ef(r,e,t){return`${r.slice(0,e.start)}${t}${r.slice(e.end)}`}function Yf(r,e){if(e.id){const l=new RegExp(`(<[^>]*\\bid="${xo(e.id)}"[^>]*)>`,"i").exec(r);if((l==null?void 0:l.index)!=null)return{tag:l[1],start:l.index,end:l.index+l[1].length}}if(!e.selector)return null;const t=e.selector.match(/^\[data-composition-id="([^"]+)"\]$/);if(t){const i=t[1],o=new RegExp(`(<[^>]*\\bdata-composition-id="${xo(i)}"[^>]*)>`,"i").exec(r);if((o==null?void 0:o.index)!=null)return{tag:o[1],start:o.index,end:o.index+o[1].length}}const n=e.selector.match(/^\.([a-zA-Z0-9_-]+)$/);if(n){const i=n[1],l=new RegExp(`(<[^>]*\\bclass=(["'])[^"']*\\b${xo(i)}\\b[^"']*\\2[^>]*)>`,"gi"),o=e.selectorIndex??0;let c,u=0;for(;(c=l.exec(r))!==null;){if(u===o&&c.index!=null)return{tag:c[1],start:c.index,end:c.index+c[1].length};u+=1}}return null}function dg(r,e,t){const n=Yf(r,e);if(!n)return;const i=t.startsWith("data-")?t:`data-${t}`,l=new RegExp(`\\b${i}="([^"]*)"`).exec(n.tag);return l==null?void 0:l[1]}function K9(r,e,t,n){const i=Yf(r,e);if(!i)return r;const l=t.startsWith("data-")?t:`data-${t}`,o=new RegExp(`\\b${l}="[^"]*"`),c=i.tag;if(o.test(c)){const f=c.replace(o,`${l}="${n}"`);return ef(r,i,f)}const u=c+` ${l}="${n}"`;return ef(r,i,u)}function J9(r,e,t,n){const l=new RegExp(`(<[^>]*\\bid="${xo(e)}"[^>]*)>`,"i").exec(r);if(!l)return r;const o=l[1],c=t.startsWith("data-")?t:`data-${t}`,u=new RegExp(`\\b${c}="[^"]*"`);if(u.test(o)){const f=o.replace(u,`${c}="${n}"`);return r.replace(o,f)}else{const f=o+` ${c}="${n}"`;return r.replace(o,f)}}function eA(r,e,t){const n=new RegExp(`(<[^>]*\\bid="${e}"[^>]*>)([\\s\\S]*?)(<\\/[a-z]+>)`,"i"),i=n.exec(r);return i?r.replace(n,`${i[1]}${t}${i[3]}`):r}function tA(r,e,t){switch(t.type){case"inline-style":return U9(r,e,t.property,t.value);case"attribute":return J9(r,e,t.property,t.value);case"text-content":return eA(r,e,t.value);default:return r}}function Xs(r,e,t){if(e.id){const n=tA(r,e.id,t);if(n!==r||!e.selector)return n}switch(t.type){case"inline-style":return G9(r,e,t.property,t.value);case"attribute":return K9(r,e,t.property,t.value);default:return r}}function nA(){const[r,e]=p.useState(null),[t,n]=p.useState(!0);_t(()=>{const L=window.location.hash.match(/^#project\/([^/]+)/);if(L){e(L[1]),n(!1);return}fetch("/api/projects").then(le=>le.json()).then(le=>{const E=(le.projects??[])[0];E&&(e(E.id),window.location.hash=`#project/${E.id}`)}).catch(()=>{}).finally(()=>n(!1))});const[i,l]=p.useState(null),[o,c]=p.useState(null),[u,f]=p.useState([]),[m,O]=p.useState(new Map),y=P9(r),S=Ke(L=>L.isEditMode),w=Ke(L=>L.selectedSegmentIds.size>0),b=W9(r),[$,C]=p.useState(240),[_,A]=p.useState(400),[T,Z]=p.useState(!1),[X,M]=p.useState(!0);p.useEffect(()=>{if(!r)return;let L=!1;const le=()=>{if(Ke.getState().isEditMode||L)return;const q=wt.current;let ne=null,ae=null;try{ne=(q==null?void 0:q.contentDocument)??null,ae=(q==null?void 0:q.contentWindow)??null}catch{return}if(!ne||!ae||ne.querySelectorAll(".caption-group").length===0)return;let ge=null;const tt=ne.querySelectorAll("[data-composition-src], [data-composition-file]");for(const Ye of tt){const _e=Ye.getAttribute("data-composition-src")||Ye.getAttribute("data-composition-file");if(_e&&_e.includes("captions")){ge=_e;break}}if(!ge){for(const[Ye,_e]of m)if(Ye.includes("caption")||_e.includes("caption")){ge=_e;break}}if(!ge&&(o!=null&&o.includes("captions"))&&(ge=o),!ge){const Ye=ne.querySelector('[data-composition-id*="caption"]');if(Ye){const _e=Ye.getAttribute("data-composition-id")||"";ge=m.get(_e)||null}}if(!ge)return;L=!0;const nt=ge;fetch(`/api/projects/${r}/files/${encodeURIComponent(nt)}`).then(Ye=>Ye.json()).then(Ye=>{if(!Ye.content||!ne||!ae||Ke.getState().isEditMode)return;const _e=ne.querySelector("[data-composition-id]"),Bt=parseInt((_e==null?void 0:_e.getAttribute("data-width"))??"1920",10),it=parseInt((_e==null?void 0:_e.getAttribute("data-height"))??"1080",10),ot=parseFloat((_e==null?void 0:_e.getAttribute("data-duration"))??"0"),or=B9(ne,ae,Ye.content,Bt,it,ot);if(!or)return;const br=Ke.getState();br.setModel(or),br.setSourceFilePath(nt),br.setEditMode(!0),b.loadOverrides()}).catch(()=>{}).finally(()=>{L=!1})},E=q=>{const ne=q.data;(ne==null?void 0:ne.source)==="hf-preview"&&((ne==null?void 0:ne.type)==="state"||(ne==null?void 0:ne.type)==="timeline")&&le()};return window.addEventListener("message",E),le(),()=>{window.removeEventListener("message",E)}},[o,r,m,b]),p.useEffect(()=>{S&&M(!w)},[w,S]);const[N,Y]=p.useState(!1),[fe,K]=p.useState(null),[te,F]=p.useState(!0),[re,B]=p.useState(Zx),he=p.useRef(0),ce=p.useRef(null),H=p.useRef(null),J=o?`/api/projects/${r}/preview/comp/${o}`:null,U=Ee(L=>L.zoomMode),Q=Ee(L=>L.manualZoomPercent),z=Ee(L=>L.setZoomMode),ie=Ee(L=>L.setManualZoomPercent),de=Ee(L=>L.elements),ee=Ee(L=>L.duration),Qe=p.useMemo(()=>{const L=de.length>0?Math.max(...de.map(le=>le.start+le.duration)):0;return Math.max(ee,L)},[ee,de]),Le=p.useMemo(()=>rf(U,Q),[U,Q]),Ce=p.useCallback(()=>{F(L=>!L)},[]),Xe=p.useCallback(()=>{B(!0),Mx()},[]),me=p.useCallback(L=>{Tx(L)&&(L.preventDefault(),Ce())},[Ce]);_t(()=>(window.addEventListener("keydown",me),()=>{window.removeEventListener("keydown",me)}));const Te=p.useCallback(L=>{const le=(L==null?void 0:L.contentWindow)??null;ce.current!==le&&(ce.current&&ce.current.removeEventListener("keydown",me),ce.current=le,le==null||le.addEventListener("keydown",me))},[me]);p.useEffect(()=>()=>{ce.current&&(ce.current.removeEventListener("keydown",me),ce.current=null)},[me]);const je=p.useCallback((L,le)=>{const E=ft.current;if(!E)return null;let q=L.compositionSrc;if(q&&m.size>0){const ae=m.get(L.id)||m.get(q.replace(/^compositions\//,"").replace(/\.html$/,""));ae&&(q=ae)}if(q)return v.jsx(gh,{previewUrl:`/api/projects/${E}/preview/comp/${q}`,label:L.id||L.tag,labelColor:le.label,accentColor:le.clip,selector:L.selector,seekTime:0,duration:L.duration});if(J&&L.duration>0)return v.jsx(gh,{previewUrl:J,label:L.id||L.tag,labelColor:le.label,accentColor:le.clip,selector:L.selector,seekTime:L.start,duration:L.duration});const ne=L.duration>0&&Qe>0&&L.duration<Qe*.92&&!/(backdrop|background|overlay|scrim|mask)/i.test(L.id);if(L.tag==="audio"){const ae=L.src?L.src.startsWith("http")?L.src:`/api/projects/${E}/preview/${L.src}`:"";return v.jsx(Z9,{audioUrl:ae,label:L.id||L.tag,labelColor:le.label})}if((L.tag==="video"||L.tag==="img")&&L.src){const ae=L.src.startsWith("http")?L.src:`/api/projects/${E}/preview/${L.src}`;return v.jsx(hv,{videoSrc:ae,label:L.id||L.tag,labelColor:le.label,duration:L.duration})}return ne?v.jsx(gh,{previewUrl:`/api/projects/${E}/preview`,label:L.id||L.tag,labelColor:le.label,accentColor:le.clip,selector:L.selector,seekTime:L.start,duration:L.duration}):null},[m,J,Qe]),ze=v.jsxs("div",{className:"border-b border-neutral-800/40 bg-neutral-950/96",children:[te&&de.length>0&&!re&&v.jsx("div",{className:"px-3 pt-3",children:v.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-xl border border-studio-accent/20 bg-studio-accent/[0.07] px-3 py-3",children:[v.jsxs("div",{className:"min-w-0",children:[v.jsx("div",{className:"text-[11px] font-semibold text-neutral-100",children:"Timeline editor"}),v.jsxs("p",{className:"mt-1 text-[11px] leading-5 text-neutral-300",children:["Drag clips to move timing, and drag clip edges to resize them when handles are available. Hide the panel anytime and bring it back with"," ",v.jsx("span",{className:"font-mono text-[10px] text-studio-accent",children:nf}),"."]})]}),v.jsx("button",{type:"button",onClick:Xe,className:"flex-shrink-0 rounded-md border border-neutral-700 px-2 py-1 text-[10px] font-medium text-neutral-300 transition-colors hover:border-neutral-500 hover:text-neutral-100",children:"Dismiss"})]})}),v.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[v.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.16em] text-neutral-500",children:"Timeline"}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("button",{type:"button",onClick:()=>z("fit"),className:`h-7 px-2.5 rounded-md border text-[11px] font-medium transition-colors ${U==="fit"?"border-studio-accent/30 bg-studio-accent/10 text-studio-accent":"border-neutral-800 text-neutral-400 hover:border-neutral-700 hover:text-neutral-200"}`,title:"Fit timeline to width",children:"Fit"}),v.jsx("button",{type:"button",onClick:()=>{z("manual"),ie(_m("out",U,Q))},className:"h-7 w-7 rounded-md border border-neutral-800 text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-200",title:"Zoom out",children:"-"}),v.jsx("div",{className:"min-w-[58px] text-center text-[10px] font-medium tabular-nums text-neutral-500",children:`${Le}%`}),v.jsx("button",{type:"button",onClick:()=>{z("manual"),ie(_m("in",U,Q))},className:"h-7 w-7 rounded-md border border-neutral-800 text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-200",title:"Zoom in",children:"+"})]})]})]}),[Ne,Je]=p.useState(null),[At,De]=p.useState(null),[Ct,En]=p.useState(!1),[tn,yt]=p.useState(0),jt=p.useRef(null),gn=p.useRef(null),ft=p.useRef(r),wt=p.useRef(null),Tt=p.useRef([]);_t(()=>{const L=()=>{jt.current&&clearTimeout(jt.current),jt.current=setTimeout(()=>yt(E=>E+1),400)},le=new EventSource("/api/events");return le.addEventListener("file-change",L),()=>le.close()}),ft.current=r,p.useEffect(()=>{if(!r)return;let L=!1;return fetch(`/api/projects/${r}`).then(le=>le.json()).then(le=>{!L&&le.files&&f(le.files)}).catch(()=>{}),()=>{L=!0}},[r]);const Vt=p.useCallback(L=>{const le=ft.current;if(le){if(C(E=>Math.max(E,Math.floor(window.innerWidth*.5))),sg(L)){l({path:L,content:null});return}fetch(`/api/projects/${le}/files/${encodeURIComponent(L)}`).then(E=>E.json()).then(E=>{E.content!=null&&l({path:L,content:E.content})}).catch(()=>{})}},[]),xt=p.useRef(i==null?void 0:i.path);xt.current=i==null?void 0:i.path;const Fn=p.useCallback(L=>{const le=ft.current;if(!le)return;const E=xt.current;E&&(gn.current&&clearTimeout(gn.current),gn.current=setTimeout(()=>{fetch(`/api/projects/${le}/files/${encodeURIComponent(E)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:L}).then(()=>{jt.current&&clearTimeout(jt.current),jt.current=setTimeout(()=>yt(q=>q+1),600)}).catch(()=>{})},600))},[]),yn=p.useCallback(async(L,le)=>{const E=ft.current;if(!E)throw new Error("No active project");const q=L.sourceFile||o||"index.html",ne=await fetch(`/api/projects/${E}/files/${encodeURIComponent(q)}`);if(!ne.ok)throw new Error(`Failed to read ${q}`);const Oe=(await ne.json()).content;if(typeof Oe!="string")throw new Error(`Missing file contents for ${q}`);const ge=L.domId?{id:L.domId,selector:L.selector,selectorIndex:L.selectorIndex}:L.selector?{selector:L.selector,selectorIndex:L.selectorIndex}:null;if(!ge)throw new Error(`Timeline element ${L.id} is missing a patchable target`);const tt=q,nt=de.map(it=>(it.key??it.id)===(L.key??L.id)?{...it,start:le.start,track:le.track}:it).filter(it=>(it.sourceFile||o||"index.html")===tt),Ye=Fx(nt.map(it=>it.track));let _e=Xs(Oe,ge,{type:"attribute",property:"start",value:Ga(le.start)});_e=Xs(_e,ge,{type:"attribute",property:"track-index",value:String(le.track)});for(const it of nt){const ot=it.domId?{id:it.domId,selector:it.selector,selectorIndex:it.selectorIndex}:it.selector?{selector:it.selector,selectorIndex:it.selectorIndex}:null;if(!ot)continue;const or=Ye.get(it.track);or!=null&&(_e=Xs(_e,ot,{type:"inline-style",property:"z-index",value:String(or)}))}if(_e===Oe)throw new Error(`Unable to patch timeline element ${L.id} in ${q}`);if(!(await fetch(`/api/projects/${E}/files/${encodeURIComponent(q)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:_e})).ok)throw new Error(`Failed to save ${q}`);xt.current===q&&l({path:q,content:_e}),yt(it=>it+1)},[o,de]),jn=p.useCallback(async(L,le)=>{const E=ft.current;if(!E)throw new Error("No active project");const q=L.sourceFile||o||"index.html",ne=await fetch(`/api/projects/${E}/files/${encodeURIComponent(q)}`);if(!ne.ok)throw new Error(`Failed to read ${q}`);const Oe=(await ne.json()).content;if(typeof Oe!="string")throw new Error(`Missing file contents for ${q}`);const ge=L.domId?{id:L.domId,selector:L.selector,selectorIndex:L.selectorIndex}:L.selector?{selector:L.selector,selectorIndex:L.selectorIndex}:null;if(!ge)throw new Error(`Timeline element ${L.id} is missing a patchable target`);const tt=L.playbackStartAttr==="playback-start"?"playback-start":"media-start",nt=dg(Oe,ge,"playback-start")??dg(Oe,ge,"media-start"),Ye=nt!=null?parseFloat(nt):void 0,_e=le.start-L.start,Bt=le.playbackStart==null&&_e!==0&&Number.isFinite(Ye)&&Ye!=null?Math.max(0,Ye+_e*Math.max(L.playbackRate??1,.1)):void 0,it=le.playbackStart??Bt;let ot=Oe;if(ot=Xs(ot,ge,{type:"attribute",property:"start",value:Ga(le.start)}),ot=Xs(ot,ge,{type:"attribute",property:"duration",value:Ga(le.duration)}),it!=null&&(ot=Xs(ot,ge,{type:"attribute",property:tt,value:Ga(it)})),ot===Oe)throw new Error(`Unable to patch timeline element ${L.id} in ${q}`);if(!(await fetch(`/api/projects/${E}/files/${encodeURIComponent(q)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:ot})).ok)throw new Error(`Failed to save ${q}`);xt.current===q&&l({path:q,content:ot}),yt(br=>br+1)},[o]),Rt=p.useCallback(async()=>{const L=ft.current;if(!L)return;const E=await(await fetch(`/api/projects/${L}`)).json();E.files&&f(E.files)},[]),zt=p.useCallback(async L=>{const le=ft.current;if(!le)return;let E="";L.endsWith(".html")&&(E=`<!DOCTYPE html>
85
- <html>
86
- <head>
87
- <meta charset="UTF-8">
88
- </head>
89
- <body>
90
-
91
- </body>
92
- </html>
93
- `);const q=await fetch(`/api/projects/${le}/files/${encodeURIComponent(L)}`,{method:"POST",headers:{"Content-Type":"text/plain"},body:E});if(q.ok)await Rt(),Vt(L);else{const ne=await q.json().catch(()=>({error:"unknown"}));console.error(`Create file failed: ${ne.error}`)}},[Rt,Vt]),Vn=p.useCallback(async L=>{const le=ft.current;if(!le)return;const E=await fetch(`/api/projects/${le}/files/${encodeURIComponent(L+"/.gitkeep")}`,{method:"POST",headers:{"Content-Type":"text/plain"},body:""});if(E.ok)await Rt();else{const q=await E.json().catch(()=>({error:"unknown"}));console.error(`Create folder failed: ${q.error}`)}},[Rt]),Sr=p.useCallback(async L=>{const le=ft.current;if(!le)return;const E=await fetch(`/api/projects/${le}/files/${encodeURIComponent(L)}`,{method:"DELETE"});if(E.ok)xt.current===L&&l(null),await Rt();else{const q=await E.json().catch(()=>({error:"unknown"}));console.error(`Delete failed: ${q.error}`)}},[Rt]),wr=p.useCallback(async(L,le)=>{const E=ft.current;if(!E)return;const q=await fetch(`/api/projects/${E}/files/${encodeURIComponent(L)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({newPath:le})});if(q.ok)xt.current===L&&Vt(le),await Rt(),yt(ne=>ne+1);else{const ne=await q.json().catch(()=>({error:"unknown"}));console.error(`Rename failed: ${ne.error}`)}},[Rt,Vt]),Wi=p.useCallback(async L=>{const le=ft.current;if(!le)return;const E=await fetch(`/api/projects/${le}/duplicate-file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:L})});if(E.ok){const q=await E.json();await Rt(),q.path&&Vt(q.path)}else{const q=await E.json().catch(()=>({error:"unknown"}));console.error(`Duplicate failed: ${q.error}`)}},[Rt,Vt]),ui=wr,Bn=p.useCallback(L=>{K(L),setTimeout(()=>K(null),4e3)},[]),hi=p.useCallback(async(L,le)=>{var ae;const E=ft.current;if(!E||L.length===0)return;const q=new FormData;for(const Oe of Array.from(L))q.append("file",Oe);const ne=le?`?dir=${encodeURIComponent(le)}`:"";try{const Oe=await fetch(`/api/projects/${E}/upload${ne}`,{method:"POST",body:q});if(Oe.ok){const ge=await Oe.json();(ae=ge.skipped)!=null&&ae.length&&Bn(`Skipped (too large): ${ge.skipped.join(", ")}`),await Rt(),yt(tt=>tt+1)}else Oe.status===413?Bn("Upload rejected: payload too large"):Bn(`Upload failed (${Oe.status})`)}catch{Bn("Upload failed: network error")}},[Rt,Bn]),kr=p.useCallback(async()=>{const L=ft.current;if(L){En(!0);try{const q=((await(await fetch(`/api/projects/${L}/lint`)).json()).findings??[]).map(ne=>({severity:ne.severity==="error"?"error":"warning",message:ne.message??"",file:ne.file,fixHint:ne.fixHint}));Je(q)}catch(le){const E=le instanceof Error?le.message:String(le);Je([{severity:"error",message:`Failed to run lint: ${E}`}])}finally{En(!1)}}},[]),Rn=p.useCallback((L,le)=>{le.preventDefault(),le.target.setPointerCapture(le.pointerId),H.current={side:L,startX:le.clientX,startW:L==="left"?$:_}},[$,_]),Hr=p.useCallback(L=>{const le=H.current;if(!le)return;const E=L.clientX-le.startX,q=Math.floor(window.innerWidth*.5),ne=Math.max(160,Math.min(le.side==="left"?q:600,le.startW+(le.side==="left"?E:-E)));le.side==="left"?C(ne):A(ne)},[]),Yr=p.useCallback(()=>{H.current=null},[]),xn=p.useMemo(()=>u.filter(L=>L==="index.html"||L.startsWith("compositions/")),[u]),hn=p.useMemo(()=>u.filter(L=>!L.endsWith(".html")&&!L.endsWith(".md")&&!L.endsWith(".json")),[u]);return t||!r?v.jsx("div",{className:"h-full w-full bg-neutral-950 flex items-center justify-center",children:v.jsx("div",{className:"w-4 h-4 rounded-full bg-studio-accent animate-pulse"})}):v.jsxs("div",{className:"flex flex-col h-full w-full bg-neutral-950 relative",onDragOver:L=>{L.dataTransfer.types.includes("Files")&&L.preventDefault()},onDragEnter:L=>{L.dataTransfer.types.includes("Files")&&(L.preventDefault(),he.current++,Y(!0))},onDragLeave:()=>{he.current--,he.current===0&&Y(!1)},onDrop:L=>{he.current=0,Y(!1),!L.defaultPrevented&&(L.preventDefault(),L.dataTransfer.files.length&&hi(L.dataTransfer.files))},children:[v.jsxs("div",{className:"flex items-center justify-between h-10 px-3 bg-neutral-900 border-b border-neutral-800 flex-shrink-0",children:[v.jsx("div",{className:"flex items-center gap-2",children:v.jsx("span",{className:"text-[11px] font-medium text-neutral-400",children:r})}),v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("button",{onClick:()=>Z(L=>!L),className:`h-7 w-7 flex items-center justify-center rounded-md border transition-colors ${T?"bg-transparent border-transparent text-neutral-500 hover:text-neutral-300 hover:bg-neutral-800":"text-studio-accent bg-studio-accent/10 border-studio-accent/30"}`,title:T?"Show sidebar":"Hide sidebar",children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),v.jsx("path",{d:"M9 3v18"})]})}),v.jsxs("button",{type:"button",onClick:Ce,className:`h-7 flex items-center gap-1.5 px-2.5 rounded-md text-[11px] font-medium border transition-colors ${te?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"text-neutral-300 border-neutral-700 hover:border-neutral-500 hover:bg-neutral-800"}`,title:Og(te),"aria-label":te?"Hide timeline editor":"Show timeline editor",children:[v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[v.jsx("rect",{x:"3",y:"13",width:"18",height:"8",rx:"1"}),v.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),v.jsx("line",{x1:"3",y1:"5",x2:"21",y2:"5"})]}),v.jsx("span",{children:"Timeline"})]}),v.jsxs("button",{onClick:()=>M(L=>!L),className:`h-7 flex items-center gap-1.5 px-2.5 rounded-md text-[11px] font-medium border transition-colors ${X?"text-neutral-500 hover:text-neutral-300 hover:bg-neutral-800 border-transparent":"text-studio-accent bg-studio-accent/10 border-studio-accent/30"}`,children:[v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16",fill:"currentColor",stroke:"none"})]}),"Renders",y.jobs.length>0?` (${y.jobs.length})`:""]})]})]}),v.jsxs("div",{className:"flex flex-1 min-h-0",children:[!T&&v.jsx(v9,{width:$,projectId:r,compositions:xn,assets:hn,activeComposition:(i==null?void 0:i.path)??null,onSelectComposition:L=>{c(L==="index.html"||L.startsWith("compositions/")?L:null),l({path:L,content:null}),fetch(`/api/projects/${r}/files/${L}`).then(le=>le.json()).then(le=>l({path:L,content:le.content})).catch(()=>{})},fileTree:u,editingFile:i,onSelectFile:Vt,onCreateFile:zt,onCreateFolder:Vn,onDeleteFile:Sr,onRenameFile:wr,onDuplicateFile:Wi,onMoveFile:ui,onImportFiles:hi,codeChildren:i?sg(i.path)?v.jsx(M9,{projectId:r??"",filePath:i.path}):v.jsx(o9,{content:i.content??"",filePath:i.path,onChange:Fn}):void 0,onLint:kr,linting:Ct}),!T&&v.jsx("div",{className:"group w-2 flex-shrink-0 cursor-col-resize flex items-center justify-center",style:{touchAction:"none"},onPointerDown:L=>Rn("left",L),onPointerMove:Hr,onPointerUp:Yr,children:v.jsx("div",{className:"h-[52px] w-px bg-white/12 transition-colors group-hover:bg-white/18 group-active:bg-white/24"})}),v.jsx("div",{className:"flex-1 relative min-w-0",children:v.jsx(A3,{projectId:r,refreshKey:tn,activeCompositionPath:o,timelineToolbar:ze,renderClipContent:je,onMoveElement:yn,onResizeElement:jn,onCompIdToSrcChange:O,onCompositionChange:L=>{c(L)},onIframeRef:L=>{if(wt.current=L,Te(L),Tt.current=[],De(null),!L)return;const le=()=>{try{const E=L.contentWindow;if(!E||E.__hfErrorCapture)return;E.__hfErrorCapture=!0;const q=E.console.error.bind(E.console);E.console.error=function(...ne){q(...ne);const ae=ne.map(Oe=>Oe instanceof Error?Oe.message:String(Oe)).join(" ");ae.includes("favicon")||(Tt.current=[...Tt.current,{severity:"error",message:ae}],De([...Tt.current]))},E.addEventListener("error",ne=>{const ae=ne.message||String(ne);Tt.current=[...Tt.current,{severity:"error",message:ae}],De([...Tt.current])})}catch{}};le(),L.addEventListener("load",()=>{Tt.current=[],De(null),le()})},previewOverlay:S?v.jsx(V9,{iframeRef:wt}):void 0,timelineFooter:S?v.jsxs("div",{className:"border-t border-neutral-800/30 flex-shrink-0",style:{height:60},children:[v.jsx("div",{className:"flex items-center gap-1.5 px-2 py-0.5",children:v.jsx("span",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider",children:"Captions"})}),v.jsx(D9,{pixelsPerSecond:100})]}):void 0,timelineVisible:te,onToggleTimeline:Ce})}),!X&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"group w-2 flex-shrink-0 cursor-col-resize flex items-center justify-center",style:{touchAction:"none"},onPointerDown:L=>Rn("right",L),onPointerMove:Hr,onPointerUp:Yr,children:v.jsx("div",{className:"h-[52px] w-px bg-white/12 transition-colors group-hover:bg-white/18 group-active:bg-white/24"})}),v.jsx("div",{className:"flex flex-col border-l border-neutral-800 bg-neutral-900 flex-shrink-0",style:{width:_},children:S?v.jsx(z9,{iframeRef:wt}):v.jsx($9,{jobs:y.jobs,projectId:r,onDelete:y.deleteRender,onClearCompleted:y.clearCompleted,onStartRender:(L,le)=>y.startRender(30,le,L),isRendering:y.isRendering})})]})]}),Ne!==null&&r&&v.jsx(ag,{findings:Ne,projectId:r,onClose:()=>Je(null)}),At!==null&&At.length>0&&r&&v.jsx(ag,{findings:At,projectId:r,onClose:()=>De(null)}),N&&v.jsx("div",{className:"absolute inset-0 z-[90] flex items-center justify-center bg-black/50 backdrop-blur-sm pointer-events-none",children:v.jsxs("div",{className:"flex flex-col items-center gap-3 px-8 py-6 rounded-xl border-2 border-dashed border-studio-accent/60 bg-studio-accent/[0.06]",children:[v.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-studio-accent",children:[v.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),v.jsx("polyline",{points:"7 10 12 15 17 10"}),v.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),v.jsx("span",{className:"text-sm font-medium text-studio-accent",children:"Drop files to import into project"})]})}),fe&&v.jsx("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 z-[91] px-4 py-2 rounded-lg bg-red-900/90 border border-red-700/50 text-sm text-red-200 shadow-lg animate-in fade-in slide-in-from-bottom-2",children:fe})]})}bx.createRoot(document.getElementById("root")).render(v.jsx(p.StrictMode,{children:v.jsx(nA,{})}));