452 lines
342 KiB
JavaScript
452 lines
342 KiB
JavaScript
/*
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
|
if you want to view the source, please visit the github repository of this plugin
|
|
*/
|
|
|
|
var tb=Object.create;var Br=Object.defineProperty,rb=Object.defineProperties,nb=Object.getOwnPropertyDescriptor,ib=Object.getOwnPropertyDescriptors,ob=Object.getOwnPropertyNames,_c=Object.getOwnPropertySymbols,sb=Object.getPrototypeOf,Cc=Object.prototype.hasOwnProperty,ab=Object.prototype.propertyIsEnumerable;var rs=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t);var ns=(t,e,r)=>e in t?Br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$e=(t,e)=>{for(var r in e||(e={}))Cc.call(e,r)&&ns(t,r,e[r]);if(_c)for(var r of _c(e))ab.call(e,r)&&ns(t,r,e[r]);return t},Le=(t,e)=>rb(t,ib(e));var O=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),lb=(t,e)=>{for(var r in e)Br(t,r,{get:e[r],enumerable:!0})},Ac=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ob(e))!Cc.call(t,i)&&i!==r&&Br(t,i,{get:()=>e[i],enumerable:!(n=nb(e,i))||n.enumerable});return t};var Rc=(t,e,r)=>(r=t!=null?tb(sb(t)):{},Ac(e||!t||!t.__esModule?Br(r,"default",{value:t,enumerable:!0}):r,t)),cb=t=>Ac(Br({},"__esModule",{value:!0}),t);var Ic=(t,e,r)=>(ns(t,typeof e!="symbol"?e+"":e,r),r);var $=(t,e,r)=>new Promise((n,i)=>{var o=l=>{try{a(r.next(l))}catch(u){i(u)}},s=l=>{try{a(r.throw(l))}catch(u){i(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((r=r.apply(t,e)).next())}),ub=function(t,e){this[0]=t,this[1]=e};var jc=t=>{var e=t[rs("asyncIterator")],r=!1,n,i={};return e==null?(e=t[rs("iterator")](),n=o=>i[o]=s=>e[o](s)):(e=e.call(t),n=o=>i[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new ub(new Promise(a=>{var l=e[o](s);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),i[rs("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=o=>{throw o},"return"in e&&n("return"),i};var Kc=O((o_,Hc)=>{"use strict";var jb="Function.prototype.bind called on incompatible ",Zb=Object.prototype.toString,Mb=Math.max,Wb="[object Function]",Yc=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<r.length;o+=1)n[o+e.length]=r[o];return n},Xb=function(e,r){for(var n=[],i=r||0,o=0;i<e.length;i+=1,o+=1)n[o]=e[i];return n},Vb=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};Hc.exports=function(e){var r=this;if(typeof r!="function"||Zb.apply(r)!==Wb)throw new TypeError(jb+r);for(var n=Xb(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,Yc(n,arguments));return Object(c)===c?c:this}return r.apply(e,Yc(n,arguments))},s=Mb(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+Vb(a,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var ti=O((s_,Jc)=>{"use strict";var Gb=Kc();Jc.exports=Function.prototype.bind||Gb});var tu=O((a_,eu)=>{"use strict";eu.exports=Error});var nu=O((l_,ru)=>{"use strict";ru.exports=EvalError});var ri=O((c_,iu)=>{"use strict";iu.exports=RangeError});var su=O((u_,ou)=>{"use strict";ou.exports=ReferenceError});var st=O((p_,au)=>{"use strict";au.exports=SyntaxError});var _=O((f_,lu)=>{"use strict";lu.exports=TypeError});var uu=O((h_,cu)=>{"use strict";cu.exports=URIError});var ni=O((O_,pu)=>{"use strict";pu.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var at=O((d_,hu)=>{"use strict";var fu=typeof Symbol!="undefined"&&Symbol,Db=ni();hu.exports=function(){return typeof fu!="function"||typeof Symbol!="function"||typeof fu("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Db()}});var Lr=O((m_,Ou)=>{"use strict";var us={__proto__:null,foo:{}},Bb=Object;Ou.exports=function(){return{__proto__:us}.foo===us.foo&&!(us instanceof Bb)}});var lt=O((g_,du)=>{"use strict";var Nb=Function.prototype.call,zb=Object.prototype.hasOwnProperty,Fb=ti();du.exports=Fb.call(Nb,zb)});var M=O((y_,bu)=>{"use strict";var I,Lb=tu(),Ub=nu(),Yb=ri(),Hb=su(),lr=st(),ar=_(),Kb=uu(),vu=Function,ps=function(t){try{return vu('"use strict"; return ('+t+").constructor;")()}catch(e){}},Et=Object.getOwnPropertyDescriptor;if(Et)try{Et({},"")}catch(t){Et=null}var fs=function(){throw new ar},Jb=Et?function(){try{return arguments.callee,fs}catch(t){try{return Et(arguments,"callee").get}catch(e){return fs}}}():fs,or=at()(),eS=Lr()(),re=Object.getPrototypeOf||(eS?function(t){return t.__proto__}:null),sr={},tS=typeof Uint8Array=="undefined"||!re?I:re(Uint8Array),kt={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?I:ArrayBuffer,"%ArrayIteratorPrototype%":or&&re?re([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":sr,"%AsyncGenerator%":sr,"%AsyncGeneratorFunction%":sr,"%AsyncIteratorPrototype%":sr,"%Atomics%":typeof Atomics=="undefined"?I:Atomics,"%BigInt%":typeof BigInt=="undefined"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Lb,"%eval%":eval,"%EvalError%":Ub,"%Float32Array%":typeof Float32Array=="undefined"?I:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?I:FinalizationRegistry,"%Function%":vu,"%GeneratorFunction%":sr,"%Int8Array%":typeof Int8Array=="undefined"?I:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?I:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":or&&re?re(re([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map=="undefined"?I:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!or||!re?I:re(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?I:Promise,"%Proxy%":typeof Proxy=="undefined"?I:Proxy,"%RangeError%":Yb,"%ReferenceError%":Hb,"%Reflect%":typeof Reflect=="undefined"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?I:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!or||!re?I:re(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":or&&re?re(""[Symbol.iterator]()):I,"%Symbol%":or?Symbol:I,"%SyntaxError%":lr,"%ThrowTypeError%":Jb,"%TypedArray%":tS,"%TypeError%":ar,"%Uint8Array%":typeof Uint8Array=="undefined"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?I:Uint32Array,"%URIError%":Kb,"%WeakMap%":typeof WeakMap=="undefined"?I:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?I:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?I:WeakSet};if(re)try{null.error}catch(t){mu=re(re(t)),kt["%Error.prototype%"]=mu}var mu,rS=function t(e){var r;if(e==="%AsyncFunction%")r=ps("async function () {}");else if(e==="%GeneratorFunction%")r=ps("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ps("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&re&&(r=re(i.prototype))}return kt[e]=r,r},gu={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ur=ti(),ii=lt(),nS=Ur.call(Function.call,Array.prototype.concat),iS=Ur.call(Function.apply,Array.prototype.splice),yu=Ur.call(Function.call,String.prototype.replace),oi=Ur.call(Function.call,String.prototype.slice),oS=Ur.call(Function.call,RegExp.prototype.exec),sS=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,aS=/\\(\\)?/g,lS=function(e){var r=oi(e,0,1),n=oi(e,-1);if(r==="%"&&n!=="%")throw new lr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new lr("invalid intrinsic syntax, expected opening `%`");var i=[];return yu(e,sS,function(o,s,a,l){i[i.length]=a?yu(l,aS,"$1"):s||o}),i},cS=function(e,r){var n=e,i;if(ii(gu,n)&&(i=gu[n],n="%"+i[0]+"%"),ii(kt,n)){var o=kt[n];if(o===sr&&(o=rS(n)),typeof o=="undefined"&&!r)throw new ar("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new lr("intrinsic "+e+" does not exist!")};bu.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ar('"allowMissing" argument must be a boolean');if(oS(/^%?[^%]*%?$/,e)===null)throw new lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=lS(e),i=n.length>0?n[0]:"",o=cS("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],iS(n,nS([0,1],u)));for(var c=1,p=!0;c<n.length;c+=1){var h=n[c],f=oi(h,0,1),d=oi(h,-1);if((f==='"'||f==="'"||f==="`"||d==='"'||d==="'"||d==="`")&&f!==d)throw new lr("property names with quotes must have matching quotes");if((h==="constructor"||!p)&&(l=!0),i+="."+h,s="%"+i+"%",ii(kt,s))a=kt[s];else if(a!=null){if(!(h in a)){if(!r)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(Et&&c+1>=n.length){var m=Et(a,h);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[h]}else p=ii(a,h),a=a[h];p&&!l&&(kt[s]=a)}}return a}});var Yr=O((v_,Su)=>{"use strict";var uS=M(),si=uS("%Object.defineProperty%",!0)||!1;if(si)try{si({},"a",{value:1})}catch(t){si=!1}Su.exports=si});var li=O((b_,xu)=>{"use strict";var pS=M(),ai=pS("%Object.getOwnPropertyDescriptor%",!0);if(ai)try{ai([],"length")}catch(t){ai=null}xu.exports=ai});var hs=O((S_,wu)=>{"use strict";var Qu=Yr(),fS=st(),cr=_(),$u=li();wu.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new cr("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new cr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new cr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new cr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new cr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new cr("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!$u&&$u(e,r);if(Qu)Qu(e,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)e[r]=n;else throw new fS("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Hr=O((x_,Pu)=>{"use strict";var Os=Yr(),Tu=function(){return!!Os};Tu.hasArrayLengthDefineBug=function(){if(!Os)return null;try{return Os([],"length",{value:1}).length!==1}catch(e){return!0}};Pu.exports=Tu});var Cu=O((Q_,_u)=>{"use strict";var hS=M(),Eu=hs(),OS=Hr()(),ku=li(),qu=_(),dS=hS("%Math.floor%");_u.exports=function(e,r){if(typeof e!="function")throw new qu("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||dS(r)!==r)throw new qu("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&ku){var s=ku(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(OS?Eu(e,"length",r,!0,!0):Eu(e,"length",r)),e}});var xe=O(($_,ci)=>{"use strict";var ds=ti(),ui=M(),mS=Cu(),gS=_(),Iu=ui("%Function.prototype.apply%"),ju=ui("%Function.prototype.call%"),Zu=ui("%Reflect.apply%",!0)||ds.call(ju,Iu),Au=Yr(),yS=ui("%Math.max%");ci.exports=function(e){if(typeof e!="function")throw new gS("a function is required");var r=Zu(ds,ju,arguments);return mS(r,1+yS(0,e.length-(arguments.length-1)),!0)};var Ru=function(){return Zu(ds,Iu,arguments)};Au?Au(ci.exports,"apply",{value:Ru}):ci.exports.apply=Ru});var ms=O((w_,Wu)=>{"use strict";var Mu=Object.prototype.toString;Wu.exports=function(e){var r=Mu.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Mu.call(e.callee)==="[object Function]"),n}});var Lu=O((T_,Fu)=>{"use strict";var zu;Object.keys||(Kr=Object.prototype.hasOwnProperty,gs=Object.prototype.toString,Xu=ms(),ys=Object.prototype.propertyIsEnumerable,Vu=!ys.call({toString:null},"toString"),Gu=ys.call(function(){},"prototype"),Jr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],pi=function(t){var e=t.constructor;return e&&e.prototype===t},Du={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Bu=function(){if(typeof window=="undefined")return!1;for(var t in window)try{if(!Du["$"+t]&&Kr.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{pi(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),Nu=function(t){if(typeof window=="undefined"||!Bu)return pi(t);try{return pi(t)}catch(e){return!1}},zu=function(e){var r=e!==null&&typeof e=="object",n=gs.call(e)==="[object Function]",i=Xu(e),o=r&&gs.call(e)==="[object String]",s=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var a=Gu&&n;if(o&&e.length>0&&!Kr.call(e,0))for(var l=0;l<e.length;++l)s.push(String(l));if(i&&e.length>0)for(var u=0;u<e.length;++u)s.push(String(u));else for(var c in e)!(a&&c==="prototype")&&Kr.call(e,c)&&s.push(String(c));if(Vu)for(var p=Nu(e),h=0;h<Jr.length;++h)!(p&&Jr[h]==="constructor")&&Kr.call(e,Jr[h])&&s.push(Jr[h]);return s});var Kr,gs,Xu,ys,Vu,Gu,Jr,pi,Du,Bu,Nu;Fu.exports=zu});var Ku=O((P_,Hu)=>{"use strict";var vS=Array.prototype.slice,bS=ms(),Uu=Object.keys,fi=Uu?function(e){return Uu(e)}:Lu(),Yu=Object.keys;fi.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return bS(n)?Yu(vS.call(n)):Yu(n)})}else Object.keys=fi;return Object.keys||fi};Hu.exports=fi});var ue=O((E_,rp)=>{"use strict";var SS=Ku(),xS=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",QS=Object.prototype.toString,$S=Array.prototype.concat,Ju=hs(),wS=function(t){return typeof t=="function"&&QS.call(t)==="[object Function]"},ep=Hr()(),TS=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!wS(n)||!n())return}ep?Ju(t,e,r,!0):Ju(t,e,r)},tp=function(t,e){var r=arguments.length>2?arguments[2]:{},n=SS(e);xS&&(n=$S.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)TS(t,n[i],e[n[i]],r[n[i]])};tp.supportsDescriptors=!!ep;rp.exports=tp});var vs=O((k_,np)=>{"use strict";var PS=M(),ES=PS("%Object.setPrototypeOf%",!0),kS=Lr()();np.exports=ES||(kS?function(t,e){return t.__proto__=e,t}:null)});var op=O((q_,ip)=>{"use strict";var qS=M(),_S=qS("%Object.getPrototypeOf%",!0),CS=Lr()();ip.exports=_S||(CS?function(t){return t.__proto__}:null)});var bs=O((__,sp)=>{"use strict";sp.exports=function(e){if(e===null)return"Null";if(typeof e=="undefined")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var Y=O((C_,ap)=>{"use strict";var AS=bs();ap.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":AS(e)}});var pp=O((A_,up)=>{"use strict";var lp=_(),cp=op(),RS=Y();up.exports=function(e){if(RS(e)!=="Object")throw new lp("Assertion failed: O must be an Object");if(!cp)throw new lp("This environment does not support fetching prototypes.");return cp(e)}});var hp=O((R_,fp)=>{"use strict";var IS=_(),jS=vs(),ZS=pp();fp.exports=function(e,r){if(typeof r!="object")throw new IS("Assertion failed: V must be Object or Null");try{jS(e,r)}catch(n){return!1}return ZS(e)===r}});var N=O((I_,mp)=>{"use strict";var Op=M(),dp=xe(),MS=dp(Op("String.prototype.indexOf"));mp.exports=function(e,r){var n=Op(e,!!r);return typeof n=="function"&&MS(e,".prototype.")>-1?dp(n):n}});var gp=O(()=>{});var qt=O((M_,jp)=>{var qs=typeof Map=="function"&&Map.prototype,Ss=Object.getOwnPropertyDescriptor&&qs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Oi=qs&&Ss&&typeof Ss.get=="function"?Ss.get:null,yp=qs&&Map.prototype.forEach,_s=typeof Set=="function"&&Set.prototype,xs=Object.getOwnPropertyDescriptor&&_s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,di=_s&&xs&&typeof xs.get=="function"?xs.get:null,vp=_s&&Set.prototype.forEach,WS=typeof WeakMap=="function"&&WeakMap.prototype,tn=WS?WeakMap.prototype.has:null,XS=typeof WeakSet=="function"&&WeakSet.prototype,rn=XS?WeakSet.prototype.has:null,VS=typeof WeakRef=="function"&&WeakRef.prototype,bp=VS?WeakRef.prototype.deref:null,GS=Boolean.prototype.valueOf,DS=Object.prototype.toString,BS=Function.prototype.toString,NS=String.prototype.match,Cs=String.prototype.slice,ut=String.prototype.replace,zS=String.prototype.toUpperCase,Sp=String.prototype.toLowerCase,qp=RegExp.prototype.test,xp=Array.prototype.concat,Ve=Array.prototype.join,FS=Array.prototype.slice,Qp=Math.floor,ws=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Qs=Object.getOwnPropertySymbols,Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ur=typeof Symbol=="function"&&typeof Symbol.iterator=="object",pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ur||!0)?Symbol.toStringTag:null,_p=Object.prototype.propertyIsEnumerable,$p=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function wp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||qp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Qp(-t):Qp(t);if(n!==t){var i=String(n),o=Cs.call(e,i.length+1);return ut.call(i,r,"$&_")+"."+ut.call(ut.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ut.call(e,r,"$&_")}var Ps=gp(),Tp=Ps.custom,Pp=Ap(Tp)?Tp:null;jp.exports=function t(e,r,n,i){var o=r||{};if(ct(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ct(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ct(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ct(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ct(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ip(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?wp(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return a?wp(e,u):u}var c=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=c&&c>0&&typeof e=="object")return Es(e)?"[Array]":"[Object]";var p=px(o,n);if(typeof i=="undefined")i=[];else if(Rp(i,e)>=0)return"[Circular]";function h(Z,se,ce){if(se&&(i=FS.call(i),i.push(se)),ce){var W={depth:o.depth};return ct(o,"quoteStyle")&&(W.quoteStyle=o.quoteStyle),t(Z,W,n+1,i)}return t(Z,o,n+1,i)}if(typeof e=="function"&&!Ep(e)){var f=rx(e),d=hi(e,h);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(d.length>0?" { "+Ve.call(d,", ")+" }":"")}if(Ap(e)){var m=ur?ut.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ts.call(e);return typeof e=="object"&&!ur?en(m):m}if(lx(e)){for(var g="<"+Sp.call(String(e.nodeName)),y=e.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+Cp(LS(y[v].value),"double",o);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+Sp.call(String(e.nodeName))+">",g}if(Es(e)){if(e.length===0)return"[]";var T=hi(e,h);return p&&!ux(T)?"["+ks(T,p)+"]":"[ "+Ve.call(T,", ")+" ]"}if(YS(e)){var S=hi(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!_p.call(e,"cause")?"{ ["+String(e)+"] "+Ve.call(xp.call("[cause]: "+h(e.cause),S),", ")+" }":S.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Ve.call(S,", ")+" }"}if(typeof e=="object"&&s){if(Pp&&typeof e[Pp]=="function"&&Ps)return Ps(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(nx(e)){var x=[];return yp&&yp.call(e,function(Z,se){x.push(h(se,e,!0)+" => "+h(Z,e))}),kp("Map",Oi.call(e),x,p)}if(sx(e)){var b=[];return vp&&vp.call(e,function(Z){b.push(h(Z,e))}),kp("Set",di.call(e),b,p)}if(ix(e))return $s("WeakMap");if(ax(e))return $s("WeakSet");if(ox(e))return $s("WeakRef");if(KS(e))return en(h(Number(e)));if(ex(e))return en(h(ws.call(e)));if(JS(e))return en(GS.call(e));if(HS(e))return en(h(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!US(e)&&!Ep(e)){var w=hi(e,h),A=$p?$p(e)===Object.prototype:e instanceof Object||e.constructor===Object,k=e instanceof Object?"":"null prototype",P=!A&&pe&&Object(e)===e&&pe in e?Cs.call(pt(e),8,-1):k?"Object":"",q=A||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",j=q+(P||k?"["+Ve.call(xp.call([],P||[],k||[]),": ")+"] ":"");return w.length===0?j+"{}":p?j+"{"+ks(w,p)+"}":j+"{ "+Ve.call(w,", ")+" }"}return String(e)};function Cp(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function LS(t){return ut.call(String(t),/"/g,""")}function Es(t){return pt(t)==="[object Array]"&&(!pe||!(typeof t=="object"&&pe in t))}function US(t){return pt(t)==="[object Date]"&&(!pe||!(typeof t=="object"&&pe in t))}function Ep(t){return pt(t)==="[object RegExp]"&&(!pe||!(typeof t=="object"&&pe in t))}function YS(t){return pt(t)==="[object Error]"&&(!pe||!(typeof t=="object"&&pe in t))}function HS(t){return pt(t)==="[object String]"&&(!pe||!(typeof t=="object"&&pe in t))}function KS(t){return pt(t)==="[object Number]"&&(!pe||!(typeof t=="object"&&pe in t))}function JS(t){return pt(t)==="[object Boolean]"&&(!pe||!(typeof t=="object"&&pe in t))}function Ap(t){if(ur)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ts)return!1;try{return Ts.call(t),!0}catch(e){}return!1}function ex(t){if(!t||typeof t!="object"||!ws)return!1;try{return ws.call(t),!0}catch(e){}return!1}var tx=Object.prototype.hasOwnProperty||function(t){return t in this};function ct(t,e){return tx.call(t,e)}function pt(t){return DS.call(t)}function rx(t){if(t.name)return t.name;var e=NS.call(BS.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Rp(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function nx(t){if(!Oi||!t||typeof t!="object")return!1;try{Oi.call(t);try{di.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function ix(t){if(!tn||!t||typeof t!="object")return!1;try{tn.call(t,tn);try{rn.call(t,rn)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function ox(t){if(!bp||!t||typeof t!="object")return!1;try{return bp.call(t),!0}catch(e){}return!1}function sx(t){if(!di||!t||typeof t!="object")return!1;try{di.call(t);try{Oi.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function ax(t){if(!rn||!t||typeof t!="object")return!1;try{rn.call(t,rn);try{tn.call(t,tn)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function lx(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ip(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ip(Cs.call(t,0,e.maxStringLength),e)+n}var i=ut.call(ut.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,cx);return Cp(i,"single",e)}function cx(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+zS.call(e.toString(16))}function en(t){return"Object("+t+")"}function $s(t){return t+" { ? }"}function kp(t,e,r,n){var i=n?ks(r,n):Ve.call(r,", ");return t+" ("+e+") {"+i+"}"}function ux(t){for(var e=0;e<t.length;e++)if(Rp(t[e],`
|
|
`)>=0)return!1;return!0}function px(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Ve.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Ve.call(Array(e+1),r)}}function ks(t,e){if(t.length===0)return"";var r=`
|
|
`+e.prev+e.base;return r+Ve.call(t,","+r)+`
|
|
`+e.prev}function hi(t,e){var r=Es(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=ct(t,i)?e(t[i],t):""}var o=typeof Qs=="function"?Qs(t):[],s;if(ur){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in t)ct(t,l)&&(r&&String(Number(l))===l&&l<t.length||ur&&s["$"+l]instanceof Symbol||(qp.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Qs=="function")for(var u=0;u<o.length;u++)_p.call(t,o[u])&&n.push("["+e(o[u])+"]: "+e(t[o[u]],t));return n}});var Wp=O((W_,Mp)=>{"use strict";var Zp=M(),pr=N(),fx=qt(),hx=_(),mi=Zp("%WeakMap%",!0),gi=Zp("%Map%",!0),Ox=pr("WeakMap.prototype.get",!0),dx=pr("WeakMap.prototype.set",!0),mx=pr("WeakMap.prototype.has",!0),gx=pr("Map.prototype.get",!0),yx=pr("Map.prototype.set",!0),vx=pr("Map.prototype.has",!0),As=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},bx=function(t,e){var r=As(t,e);return r&&r.value},Sx=function(t,e,r){var n=As(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},xx=function(t,e){return!!As(t,e)};Mp.exports=function(){var e,r,n,i={assert:function(o){if(!i.has(o))throw new hx("Side channel does not contain "+fx(o))},get:function(o){if(mi&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ox(e,o)}else if(gi){if(r)return gx(r,o)}else if(n)return bx(n,o)},has:function(o){if(mi&&o&&(typeof o=="object"||typeof o=="function")){if(e)return mx(e,o)}else if(gi){if(r)return vx(r,o)}else if(n)return xx(n,o);return!1},set:function(o,s){mi&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new mi),dx(e,o,s)):gi?(r||(r=new gi),yx(r,o,s)):(n||(n={key:{},next:null}),Sx(n,o,s))}};return i}});var he=O((X_,Xp)=>{"use strict";var Qx=lt(),nn=Wp()(),Ue=_(),Rs={assert:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Ue("`O` is not an object");if(typeof e!="string")throw new Ue("`slot` must be a string");if(nn.assert(t),!Rs.has(t,e))throw new Ue("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Ue("`O` is not an object");if(typeof e!="string")throw new Ue("`slot` must be a string");var r=nn.get(t);return r&&r["$"+e]},has:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Ue("`O` is not an object");if(typeof e!="string")throw new Ue("`slot` must be a string");var r=nn.get(t);return!!r&&Qx(r,"$"+e)},set:function(t,e,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Ue("`O` is not an object");if(typeof e!="string")throw new Ue("`slot` must be a string");var n=nn.get(t);n||(n={},nn.set(t,n)),n["$"+e]=r}};Object.freeze&&Object.freeze(Rs);Xp.exports=Rs});var fr=O((V_,Vp)=>{"use strict";var $x=ni();Vp.exports=function(){return $x()&&!!Symbol.toStringTag}});var Is=O((G_,Dp)=>{"use strict";var wx=M(),Gp=wx("%Object.defineProperty%",!0),Tx=fr()(),Px=lt(),yi=Tx?Symbol.toStringTag:null;Dp.exports=function(e,r){var n=arguments.length>2&&arguments[2]&&arguments[2].force;yi&&(n||!Px(e,yi))&&(Gp?Gp(e,yi,{configurable:!0,enumerable:!1,value:r,writable:!1}):e[yi]=r)}});var vi=O((D_,Np)=>{"use strict";var Ex=M(),Bp=Ex("%Array%"),kx=!Bp.isArray&&N()("Object.prototype.toString");Np.exports=Bp.isArray||function(e){return kx(e)==="[object Array]"}});var hr=O((B_,zp)=>{"use strict";zp.exports=vi()});var bi=O((N_,Fp)=>{"use strict";Fp.exports=function(e,r){for(var n=0;n<e.length;n+=1)r(e[n],n,e)}});var Or=O((z_,Yp)=>{"use strict";var qx=M(),Lp=qx("%Object.create%",!0),Up=_(),_x=st(),Cx=hr(),Ax=Y(),Rx=bi(),Ix=he(),jx=Lr()();Yp.exports=function(e){if(e!==null&&Ax(e)!=="Object")throw new Up("Assertion failed: `proto` must be null or an object");var r=arguments.length<2?[]:arguments[1];if(!Cx(r))throw new Up("Assertion failed: `additionalInternalSlotsList` must be an Array");var n;if(Lp)n=Lp(e);else if(jx)n={__proto__:e};else{if(e===null)throw new _x("native Object.create support is required to create null objects");var i=function(){};i.prototype=e,n=new i}return r.length>0&&Rx(r,function(o){Ix.set(n,o,void 0)}),n}});var Si=O((F_,Hp)=>{"use strict";var Zx=_();Hp.exports=function(e){if(e==null)throw new Zx(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var js=O((L_,Jp)=>{"use strict";var Mx=Si(),Kp=N(),Wx=Kp("Object.prototype.propertyIsEnumerable"),Xx=Kp("Array.prototype.push");Jp.exports=function(e){var r=Mx(e),n=[];for(var i in r)Wx(r,i)&&Xx(n,[i,r[i]]);return n}});var Zs=O((U_,ef)=>{"use strict";var Vx=js();ef.exports=function(){return typeof Object.entries=="function"?Object.entries:Vx}});var rf=O((Y_,tf)=>{"use strict";var Gx=Zs(),Dx=ue();tf.exports=function(){var e=Gx();return Dx(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}});var Ms=O((H_,sf)=>{"use strict";var Bx=ue(),Nx=xe(),zx=js(),nf=Zs(),Fx=rf(),of=Nx(nf(),Object);Bx(of,{getPolyfill:nf,implementation:zx,shim:Fx});sf.exports=of});var on=O((K_,cf)=>{"use strict";var lf=Function.prototype.toString,dr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Xs,xi;if(typeof dr=="function"&&typeof Object.defineProperty=="function")try{Xs=Object.defineProperty({},"length",{get:function(){throw xi}}),xi={},dr(function(){throw 42},null,Xs)}catch(t){t!==xi&&(dr=null)}else dr=null;var Lx=/^\s*class\b/,Vs=function(e){try{var r=lf.call(e);return Lx.test(r)}catch(n){return!1}},Ws=function(e){try{return Vs(e)?!1:(lf.call(e),!0)}catch(r){return!1}},Qi=Object.prototype.toString,Ux="[object Object]",Yx="[object Function]",Hx="[object GeneratorFunction]",Kx="[object HTMLAllCollection]",Jx="[object HTML document.all class]",eQ="[object HTMLCollection]",tQ=typeof Symbol=="function"&&!!Symbol.toStringTag,rQ=!(0 in[,]),Gs=function(){return!1};typeof document=="object"&&(af=document.all,Qi.call(af)===Qi.call(document.all)&&(Gs=function(e){if((rQ||!e)&&(typeof e=="undefined"||typeof e=="object"))try{var r=Qi.call(e);return(r===Kx||r===Jx||r===eQ||r===Ux)&&e("")==null}catch(n){}return!1}));var af;cf.exports=dr?function(e){if(Gs(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{dr(e,null,Xs)}catch(r){if(r!==xi)return!1}return!Vs(e)&&Ws(e)}:function(e){if(Gs(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(tQ)return Ws(e);if(Vs(e))return!1;var r=Qi.call(e);return r!==Yx&&r!==Hx&&!/^\[object HTML/.test(r)?!1:Ws(e)}});var Ds=O((J_,pf)=>{"use strict";var nQ=on(),iQ=Object.prototype.toString,uf=Object.prototype.hasOwnProperty,oQ=function(e,r,n){for(var i=0,o=e.length;i<o;i++)uf.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},sQ=function(e,r,n){for(var i=0,o=e.length;i<o;i++)n==null?r(e.charAt(i),i,e):r.call(n,e.charAt(i),i,e)},aQ=function(e,r,n){for(var i in e)uf.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},lQ=function(e,r,n){if(!nQ(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),iQ.call(e)==="[object Array]"?oQ(e,r,i):typeof e=="string"?sQ(e,r,i):aQ(e,r,i)};pf.exports=lQ});var $i=O((eC,ff)=>{"use strict";var cQ=_(),sn=lt(),uQ={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};ff.exports=function(e){if(!e||typeof e!="object")return!1;for(var r in e)if(sn(e,r)&&!uQ[r])return!1;var n=sn(e,"[[Value]]")||sn(e,"[[Writable]]"),i=sn(e,"[[Get]]")||sn(e,"[[Set]]");if(n&&i)throw new cQ("Property Descriptors may not be both accessor and data descriptors");return!0}});var Bs=O((tC,df)=>{"use strict";var pQ=Hr(),hf=Yr(),Of=pQ.hasArrayLengthDefineBug(),fQ=Of&&vi(),hQ=N(),OQ=hQ("Object.prototype.propertyIsEnumerable");df.exports=function(e,r,n,i,o,s){if(!hf){if(!e(s)||!s["[[Configurable]]"]||!s["[[Writable]]"]||o in i&&OQ(i,o)!==!!s["[[Enumerable]]"])return!1;var a=s["[[Value]]"];return i[o]=a,r(i[o],a)}return Of&&o==="length"&&"[[Value]]"in s&&fQ(i)&&i.length!==s["[[Value]]"]?(i.length=s["[[Value]]"],i.length===s["[[Value]]"]):(hf(i,o,n(s)),!0)}});var gf=O((rC,mf)=>{"use strict";mf.exports=function(e){if(typeof e=="undefined")return e;var r={};return"[[Value]]"in e&&(r.value=e["[[Value]]"]),"[[Writable]]"in e&&(r.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(r.get=e["[[Get]]"]),"[[Set]]"in e&&(r.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(r.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(r.configurable=!!e["[[Configurable]]"]),r}});var Ns=O((nC,yf)=>{"use strict";var dQ=_(),mQ=$i(),gQ=gf();yf.exports=function(e){if(typeof e!="undefined"&&!mQ(e))throw new dQ("Assertion failed: `Desc` must be a Property Descriptor");return gQ(e)}});var zs=O((iC,bf)=>{"use strict";var yQ=_(),vf=lt(),vQ=$i();bf.exports=function(e){if(typeof e=="undefined")return!1;if(!vQ(e))throw new yQ("Assertion failed: `Desc` must be a Property Descriptor");return!(!vf(e,"[[Value]]")&&!vf(e,"[[Writable]]"))}});var mr=O((oC,Sf)=>{"use strict";Sf.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var Ye=O((sC,xf)=>{"use strict";xf.exports=Number.isNaN||function(e){return e!==e}});var wi=O((aC,$f)=>{"use strict";var Qf=Ye();$f.exports=function(e,r){return e===r?e===0?1/e===1/r:!0:Qf(e)&&Qf(r)}});var Fs=O((lC,wf)=>{"use strict";wf.exports=function(e){return!!e}});var _t=O((cC,Tf)=>{"use strict";Tf.exports=on()});var kf=O((uC,Ef)=>{"use strict";var Ge=lt(),Ti=_(),bQ=Y(),Ls=Fs(),Pf=_t();Ef.exports=function(e){if(bQ(e)!=="Object")throw new Ti("ToPropertyDescriptor requires an object");var r={};if(Ge(e,"enumerable")&&(r["[[Enumerable]]"]=Ls(e.enumerable)),Ge(e,"configurable")&&(r["[[Configurable]]"]=Ls(e.configurable)),Ge(e,"value")&&(r["[[Value]]"]=e.value),Ge(e,"writable")&&(r["[[Writable]]"]=Ls(e.writable)),Ge(e,"get")){var n=e.get;if(typeof n!="undefined"&&!Pf(n))throw new Ti("getter must be a function");r["[[Get]]"]=n}if(Ge(e,"set")){var i=e.set;if(typeof i!="undefined"&&!Pf(i))throw new Ti("setter must be a function");r["[[Set]]"]=i}if((Ge(r,"[[Get]]")||Ge(r,"[[Set]]"))&&(Ge(r,"[[Value]]")||Ge(r,"[[Writable]]")))throw new Ti("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return r}});var Ys=O((pC,_f)=>{"use strict";var Us=_(),qf=$i(),SQ=Bs(),xQ=Ns(),QQ=zs(),$Q=mr(),wQ=wi(),TQ=kf(),PQ=Y();_f.exports=function(e,r,n){if(PQ(e)!=="Object")throw new Us("Assertion failed: Type(O) is not Object");if(!$Q(r))throw new Us("Assertion failed: IsPropertyKey(P) is not true");var i=qf(n)?n:TQ(n);if(!qf(i))throw new Us("Assertion failed: Desc is not a valid Property Descriptor");return SQ(QQ,wQ,xQ,e,r,i)}});var ki=O(Ei=>{"use strict";var EQ=at()(),kQ=he(),qQ=Ms(),_Q=Ds(),CQ=M(),AQ=Ys(),RQ=Or(),Pi=Y(),Cf=CQ("%Object.create%",!0),IQ=!({__proto__:null}instanceof Object);Ei.emptyObject=function(){return Cf?Cf(null):IQ?{__proto__:null}:{}};Ei.emulateES6construct=function(t,e,r,n){if(Pi(t)!=="Object")throw new TypeError("Constructor requires `new`: "+e.name);var i=e.prototype;Pi(i)!=="Object"&&(i=r);var o=RQ(i);return _Q(qQ(n),function(s){var a=s[0],l=s[1];kQ.set(o,a,l)}),o};var an=EQ&&Pi(Symbol.iterator)==="Symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(an="@@iterator");Ei.addIterator=function(t,e){var r=e||function(){return this};AQ(t,an,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":r,"[[Writable]]":!0}),!t[an]&&Pi(an)==="Symbol"&&(t[an]=r)}});var If=O((hC,Rf)=>{"use strict";var jQ=ue(),ZQ=Is(),qi=he(),MQ=M(),WQ=Or(),XQ=ki().addIterator,ln=function(e){qi.set(this,"[[isSetIterator]]",!0),qi.set(this,"[[it]]",e)},Af=MQ("%IteratorPrototype%",!0);Af&&(ln.prototype=WQ(Af));XQ(ln.prototype);jQ(ln.prototype,{next:function(){if(!qi.has(this,"[[isSetIterator]]"))throw new TypeError("Not a SetIterator");return qi.get(this,"[[it]]").next()}});ZQ(ln.prototype,"Set Iterator");Rf.exports=ln});var ft=O((OC,jf)=>{"use strict";var VQ=M(),GQ=N(),DQ=_(),BQ=hr(),NQ=VQ("%Reflect.apply%",!0)||GQ("Function.prototype.apply");jf.exports=function(e,r){var n=arguments.length>2?arguments[2]:[];if(!BQ(n))throw new DQ("Assertion failed: optional `argumentsList`, if provided, must be a List");return NQ(e,r,n)}});var Hs=O((dC,Zf)=>{"use strict";Zf.exports=function(e){return typeof e=="number"&&e>=55296&&e<=56319}});var Ks=O((mC,Mf)=>{"use strict";Mf.exports=function(e){return typeof e=="number"&&e>=56320&&e<=57343}});var Vf=O((gC,Xf)=>{"use strict";var zQ=M(),FQ=_(),Wf=zQ("%String.fromCharCode%"),LQ=Hs(),UQ=Ks();Xf.exports=function(e,r){if(!LQ(e)||!UQ(r))throw new FQ("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return Wf(e)+Wf(r)}});var Ff=O((yC,zf)=>{"use strict";var Gf=_(),Nf=N(),YQ=Hs(),Df=Ks(),HQ=Vf(),KQ=Nf("String.prototype.charAt"),Bf=Nf("String.prototype.charCodeAt");zf.exports=function(e,r){if(typeof e!="string")throw new Gf("Assertion failed: `string` must be a String");var n=e.length;if(r<0||r>=n)throw new Gf("Assertion failed: `position` must be >= 0, and < the length of `string`");var i=Bf(e,r),o=KQ(e,r),s=YQ(i),a=Df(i);if(!s&&!a)return{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(a||r+1===n)return{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var l=Bf(e,r+1);return Df(l)?{"[[CodePoint]]":HQ(i,l),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}});var Js=O((vC,Lf)=>{"use strict";var JQ=Ye();Lf.exports=function(t){return(typeof t=="number"||typeof t=="bigint")&&!JQ(t)&&t!==1/0&&t!==-1/0}});var Hf=O((bC,Yf)=>{"use strict";var Uf=M(),e$=Uf("%Math.abs%"),t$=Uf("%Math.floor%"),r$=Ye(),n$=Js();Yf.exports=function(e){if(typeof e!="number"||r$(e)||!n$(e))return!1;var r=e$(e);return t$(r)===r}});var Jf=O((SC,Kf)=>{"use strict";Kf.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var th=O((xC,eh)=>{"use strict";var i$=Ff(),o$=Hf(),s$=Jf(),ea=_();eh.exports=function(e,r,n){if(typeof e!="string")throw new ea("Assertion failed: `S` must be a String");if(!o$(r)||r<0||r>s$)throw new ea("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(typeof n!="boolean")throw new ea("Assertion failed: `unicode` must be a Boolean");if(!n)return r+1;var i=e.length;if(r+1>=i)return r+1;var o=i$(e,r);return r+o["[[CodeUnitCount]]"]}});var _i=O((QC,rh)=>{"use strict";var a$=_();rh.exports=function(e,r){if(typeof r!="boolean")throw new a$("Assertion failed: Type(done) is not Boolean");return{value:e,done:r}}});var Ci=O(($C,ih)=>{"use strict";var nh=_(),l$=qt(),c$=mr(),u$=Y();ih.exports=function(e,r){if(u$(e)!=="Object")throw new nh("Assertion failed: Type(O) is not Object");if(!c$(r))throw new nh("Assertion failed: IsPropertyKey(P) is not true, got "+l$(r));return e[r]}});var ta=O((wC,oh)=>{"use strict";var p$=_(),f$=Ci(),h$=Fs(),O$=Y();oh.exports=function(e){if(O$(e)!=="Object")throw new p$("Assertion failed: Type(iterResult) is not Object");return h$(f$(e,"done"))}});var ah=O((TC,sh)=>{"use strict";var d$=_(),m$=Ci(),g$=Y();sh.exports=function(e){if(g$(e)!=="Object")throw new d$("Assertion failed: Type(iterResult) is not Object");return m$(e,"value")}});var ph=O((PC,uh)=>{"use strict";var y$=M(),v$=xe(),b$=st(),lh=y$("%Promise.resolve%",!0),ch=lh&&v$(lh);uh.exports=function(e,r){if(!ch)throw new b$("This environment does not support Promises.");return ch(e,r)}});var Oh=O((EC,hh)=>{"use strict";var S$=M(),fh=st(),x$=_(),ra=S$("%Promise%",!0),Q$=N(),$$=_i(),w$=ta(),T$=ah(),P$=ph(),E$=Y(),k$=Q$("Promise.prototype.then",!0);hh.exports=function(e){if(E$(e)!=="Object")throw new x$("Assertion failed: Type(O) is not Object");if(arguments.length>1)throw new fh("although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation");if(!ra)throw new fh("This environment does not support Promises.");return new ra(function(r){var n=w$(e),i=T$(e),o=P$(ra,i),s=function(a){return $$(a,n)};r(k$(o,s))})}});var na=O((kC,dh)=>{"use strict";var q$=_(),_$=qt(),C$=mr();dh.exports=function(e,r){if(!C$(r))throw new q$("Assertion failed: IsPropertyKey(P) is not true, got "+_$(r));return e[r]}});var Ai=O((qC,yh)=>{"use strict";var mh=_(),A$=na(),R$=_t(),I$=mr(),gh=qt();yh.exports=function(e,r){if(!I$(r))throw new mh("Assertion failed: IsPropertyKey(P) is not true");var n=A$(e,r);if(n!=null){if(!R$(n))throw new mh(gh(r)+" is not a function: "+gh(n));return n}}});var Ct=O((_C,vh)=>{"use strict";var ia=lt();vh.exports=function(e){return!!e&&typeof e=="object"&&ia(e,"[[Iterator]]")&&ia(e,"[[NextMethod]]")&&typeof e["[[NextMethod]]"]=="function"&&ia(e,"[[Done]]")&&typeof e["[[Done]]"]=="boolean"}});var oa=O((CC,xh)=>{"use strict";var bh=_(),Sh=ft(),j$=Y(),Z$=Ct();xh.exports=function(e){if(!Z$(e))throw new bh("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;if(arguments.length<2?r=Sh(e["[[NextMethod]]"],e["[[Iterator]]"]):r=Sh(e["[[NextMethod]]"],e["[[Iterator]]"],[arguments[1]]),j$(r)!=="Object")throw new bh("iterator next must return an object");return r}});var Eh=O((AC,Ph)=>{"use strict";var Th=M(),sa=st(),la=_(),gr=Th("%Promise%",!0),aa=Oh(),ht=ft(),M$=_i(),W$=Ci(),Qh=Ai(),$h=oa(),X$=Or(),wh=Y(),At=he(),V$=Ct(),G$=Th("%AsyncFromSyncIteratorPrototype%",!0)||{next:function(e){if(!gr)throw new sa("This environment does not support Promises.");var r=this;At.assert(r,"[[SyncIteratorRecord]]");var n=arguments.length;return new gr(function(i){var o=At.get(r,"[[SyncIteratorRecord]]"),s;n>0?s=$h(o,e):s=$h(o),i(aa(s))})},return:function(){if(!gr)throw new sa("This environment does not support Promises.");var t=this;At.assert(t,"[[SyncIteratorRecord]]");var e=arguments.length>0,r=e?arguments[0]:void 0;return new gr(function(n,i){var o=At.get(t,"[[SyncIteratorRecord]]")["[[Iterator]]"],s=Qh(o,"return");if(typeof s=="undefined"){var a=M$(r,!0);ht(n,void 0,[a]);return}var l;if(e?l=ht(s,o,[r]):l=ht(s,o),wh(l)!=="Object"){ht(i,void 0,[new la("Iterator `return` method returned a non-object value.")]);return}n(aa(l))})},throw:function(){if(!gr)throw new sa("This environment does not support Promises.");var t=this;At.assert(t,"[[SyncIteratorRecord]]");var e=arguments.length>0,r=e?arguments[0]:void 0;return new gr(function(n,i){var o=At.get(t,"[[SyncIteratorRecord]]")["[[Iterator]]"],s=Qh(o,"throw");if(typeof s=="undefined"){ht(i,void 0,[r]);return}var a;if(e?a=ht(s,o,[r]):a=ht(s,o),wh(a)!=="Object"){ht(i,void 0,[new la("Iterator `throw` method returned a non-object value.")]);return}n(aa(a))})}};Ph.exports=function(e){if(!V$(e))throw new la("Assertion failed: `syncIteratorRecord` must be an Iterator Record");var r=X$(G$);At.set(r,"[[SyncIteratorRecord]]",e);var n=W$(r,"next");return{"[[Iterator]]":r,"[[NextMethod]]":n,"[[Done]]":!1}}});var _h=O((RC,qh)=>{"use strict";var kh=_(),D$=ft(),B$=na(),N$=_t(),z$=Y();qh.exports=function(e,r){if(!N$(r))throw new kh("method must be a function");var n=D$(r,e);if(z$(n)!=="Object")throw new kh("iterator must return an object");var i=B$(n,"next");return{"[[Iterator]]":n,"[[NextMethod]]":i,"[[Done]]":!1}}});var ca=O((IC,Ch)=>{"use strict";var F$=String.prototype.valueOf,L$=function(e){try{return F$.call(e),!0}catch(r){return!1}},U$=Object.prototype.toString,Y$="[object String]",H$=fr()();Ch.exports=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:H$?L$(e):U$.call(e)===Y$}});var Ih=O((jC,Rh)=>{"use strict";var K$=at()(),Ah=M(),J$=N(),ew=ca(),tw=Ah("%Symbol.iterator%",!0),rw=J$("String.prototype.slice"),nw=Ah("%String%");Rh.exports=function(e,r){var n;return K$?n=e.GetMethod(r,tw):e.IsArray(r)?n=function(){var i=-1,o=this;return{next:function(){return i+=1,{done:i>=o.length,value:o[i]}}}}:ew(r)&&(n=function(){var i=0;return{next:function(){var o=e.AdvanceStringIndex(nw(r),i,!0),s=rw(r,i,o);return i=o,{done:o>r.length,value:s}}}}),n}});var Xh=O((ZC,Wh)=>{"use strict";var iw=M(),ua=_(),jh=iw("%Symbol.asyncIterator%",!0),ow=qt(),sw=at()(),aw=th(),lw=Eh(),Zh=_h(),Mh=Ai(),cw=hr(),uw=Ih();Wh.exports=function(e,r){if(r!=="sync"&&r!=="async")throw new ua("Assertion failed: `kind` must be one of 'sync' or 'async', got "+ow(r));var n;if(r==="async"&&sw&&jh&&(n=Mh(e,jh)),typeof n=="undefined"){var i=uw({AdvanceStringIndex:aw,GetMethod:Mh,IsArray:cw},e);if(r==="async"){if(typeof i=="undefined")throw new ua("iterator method is `undefined`");var o=Zh(e,i);return lw(o)}n=i}if(typeof n=="undefined")throw new ua("iterator method is `undefined`");return Zh(e,n)}});var Gh=O((MC,Vh)=>{"use strict";var pa=st(),Ot=he(),cn=function t(e,r){if(!(this instanceof t))return new t(e,r);if(e!=="normal"&&e!=="break"&&e!=="continue"&&e!=="return"&&e!=="throw")throw new pa('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');Ot.set(this,"[[Type]]",e),Ot.set(this,"[[Value]]",r)};cn.prototype.type=function(){return Ot.get(this,"[[Type]]")};cn.prototype.value=function(){return Ot.get(this,"[[Value]]")};cn.prototype["?"]=function(){var e=Ot.get(this,"[[Type]]"),r=Ot.get(this,"[[Value]]");if(e==="normal")return r;throw e==="throw"?r:new pa('Completion Record is not of type "normal" or "throw": other types not supported')};cn.prototype["!"]=function(){var e=Ot.get(this,"[[Type]]");if(e!=="normal")throw new pa('Assertion failed: Completion Record is not of type "normal"');return Ot.get(this,"[[Value]]")};Vh.exports=cn});var fa=O((WC,Nh)=>{"use strict";var Ri=_(),pw=ft(),Dh=Gh(),fw=Ai(),hw=_t(),Bh=Y(),Ow=Ct();Nh.exports=function(e,r){if(!Ow(e))throw new Ri("Assertion failed: `iteratorRecord` must be an Iterator Record");if(Bh(e["[[Iterator]]"])!=="Object")throw new Ri("Assertion failed: iteratorRecord.[[Iterator]] must be an Object");if(!hw(r)&&!(r instanceof Dh))throw new Ri("Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance");var n=r instanceof Dh?function(){return r["?"]()}:r,i=e["[[Iterator]]"],o;try{o=fw(i,"return")}catch(l){throw n(),n=null,l}if(typeof o=="undefined")return n();var s;try{s=pw(o,i,[])}catch(l){throw n(),n=null,l}var a=n();if(n=null,Bh(s)!=="Object")throw new Ri("iterator .return must return an object");return a}});var ha=O((XC,zh)=>{"use strict";var dw=_(),mw=ta(),gw=oa(),yw=Ct();zh.exports=function(e){if(!yw(e))throw new dw("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=gw(e),n=mw(r);return n===!0?!1:r}});var un=O((VC,Fh)=>{"use strict";var vw=M(),bw=vw("%String%"),Sw=_();Fh.exports=function(e){if(typeof e=="symbol")throw new Sw("Cannot convert a Symbol value to a string");return bw(e)}});var Yh=O((GC,Uh)=>{"use strict";var Lh=Ye();Uh.exports=function(e,r){return e===r||Lh(e)&&Lh(r)}});var Kh=O((DC,Hh)=>{"use strict";var Ii=function(e,r){this.key=e,this.value=r,this.next=null,this.prev=null};Ii.empty={};Ii.prototype.isRemoved=function(){return this.key===Ii.empty};Hh.exports=Ii});var Oa=O((BC,eO)=>{"use strict";var Jh=_(),xw=Bs(),Qw=Ns(),$w=zs(),ww=mr(),Tw=wi(),Pw=Y();eO.exports=function(e,r,n){if(Pw(e)!=="Object")throw new Jh("Assertion failed: Type(O) is not Object");if(!ww(r))throw new Jh("Assertion failed: IsPropertyKey(P) is not true");var i={"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":n,"[[Writable]]":!0};return xw($w,Tw,Qw,e,r,i)}});var ji=O(da=>{"use strict";var Ew=he(),kw=un(),qw=Y(),tO=function(e){return Ew.has(e,"[[es6map]]")};da.isMap=tO;da.requireMapSlot=function(e,r){if(qw(e)!=="Object"||!tO(e))throw new TypeError("Method Map.prototype."+r+" called on incompatible receiver "+kw(e))}});var ma=O(Mi=>{"use strict";var _w=at()(),Cw=M(),Aw=he(),Rw=Ms(),Iw=Ds(),jw=Oa(),Zw=Or(),Zi=Y(),rO=Cw("%Object.create%",!0),Mw=!({__proto__:null}instanceof Object);Mi.emptyObject=function(){return rO?rO(null):Mw?{__proto__:null}:{}};Mi.emulateES6construct=function(t,e,r,n){if(Zi(t)!=="Object")throw new TypeError("Constructor requires `new`: "+e.name);var i=e.prototype;Zi(i)!=="Object"&&(i=r);var o=Zw(i);return Iw(Rw(n),function(s){var a=s[0],l=s[1];Aw.set(o,a,l)}),o};var pn=_w&&Zi(Symbol.iterator)==="Symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(pn="@@iterator");Mi.addIterator=function(t,e){var r=e||function(){return this};jw(t,pn,r),!t[pn]&&Zi(pn)==="Symbol"&&(t[pn]=r)}});var ya=O((FC,iO)=>{"use strict";var Ae=he(),Ww=Is(),Xw=M(),ga=_i(),Vw=Oa(),Gw=Or(),Dw=ji().requireMapSlot,Bw=ma().addIterator,fn=function(e,r){Dw(e,"[[MapIterator]]"),Ae.set(this,"[[isMapIterator]]",!0);var n=Ae.get(e,"[[head]]");Ae.set(this,"[[i]]",n),Ae.set(this,"[[head]]",n),Ae.set(this,"[[kind]]",r)},nO=Xw("%IteratorPrototype%",!0);nO&&(fn.prototype=Gw(nO));Bw(fn.prototype);Vw(fn.prototype,"next",function(){if(!Ae.has(this,"[[isMapIterator]]"))throw new TypeError("Not a MapIterator");var e=Ae.get(this,"[[i]]"),r=Ae.get(this,"[[kind]]"),n=Ae.get(this,"[[head]]");if(typeof e=="undefined")return ga(void 0,!0);for(;e.isRemoved()&&e!==n;)e=e.prev;for(var i;e.next!==n;)if(e=e.next,!e.isRemoved())return r==="key"?i=e.key:r==="value"?i=e.value:i=[e.key,e.value],Ae.set(this,"[[i]]",e),ga(i,!1);return Ae.set(this,"[[i]]",void 0),ga(void 0,!0)});Ww(fn.prototype,"Map Iterator");iO.exports=fn});var aO=O((LC,sO)=>{"use strict";var Nw=fr()(),zw=N(),va=zw("Object.prototype.toString"),Wi=function(e){return Nw&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:va(e)==="[object Arguments]"},oO=function(e){return Wi(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&va(e)!=="[object Array]"&&va(e.callee)==="[object Function]"},Fw=function(){return Wi(arguments)}();Wi.isLegacyArguments=oO;sO.exports=Fw?Wi:oO});var On=O((UC,cO)=>{"use strict";var hn=he(),Lw=SyntaxError,lO=typeof StopIteration=="object"?StopIteration:null;cO.exports=function(e){if(!lO)throw new Lw("this environment lacks StopIteration");hn.set(e,"[[Done]]",!1);var r={next:function(){var i=hn.get(this,"[[Iterator]]"),o=hn.get(i,"[[Done]]");try{return{done:o,value:o?void 0:i.next()}}catch(s){if(hn.set(i,"[[Done]]",!0),s!==lO)throw s;return{done:!0,value:void 0}}}};return hn.set(r,"[[Iterator]]",e),r}});var pO=O((YC,uO)=>{var Uw={}.toString;uO.exports=Array.isArray||function(t){return Uw.call(t)=="[object Array]"}});var dO=O((HC,OO)=>{"use strict";var ba=typeof Map=="function"&&Map.prototype?Map:null,Yw=typeof Set=="function"&&Set.prototype?Set:null,Xi;ba||(Xi=function(e){return!1});var hO=ba?Map.prototype.has:null,fO=Yw?Set.prototype.has:null;!Xi&&!hO&&(Xi=function(e){return!1});OO.exports=Xi||function(e){if(!e||typeof e!="object")return!1;try{if(hO.call(e),fO)try{fO.call(e)}catch(r){return!0}return e instanceof ba}catch(r){}return!1}});var yr=O((KC,yO)=>{"use strict";var Hw=typeof Map=="function"&&Map.prototype?Map:null,Sa=typeof Set=="function"&&Set.prototype?Set:null,Vi;Sa||(Vi=function(e){return!1});var mO=Hw?Map.prototype.has:null,gO=Sa?Set.prototype.has:null;!Vi&&!gO&&(Vi=function(e){return!1});yO.exports=Vi||function(e){if(!e||typeof e!="object")return!1;try{if(gO.call(e),mO)try{mO.call(e)}catch(r){return!0}return e instanceof Sa}catch(r){}return!1}});var Ca=O((JC,Bi)=>{"use strict";var vO=aO(),bO=On();at()()||ni()()?(Gi=Symbol.iterator,Bi.exports=function(e){if(e!=null&&typeof e[Gi]!="undefined")return e[Gi]();if(vO(e))return Array.prototype[Gi].call(e)}):(SO=pO(),xO=ca(),xa=M(),QO=xa("%Map%",!0),$O=xa("%Set%",!0),we=N(),Qa=we("Array.prototype.push"),$a=we("String.prototype.charCodeAt"),wO=we("String.prototype.slice"),TO=function(e,r){var n=e.length;if(r+1>=n)return r+1;var i=$a(e,r);if(i<55296||i>56319)return r+1;var o=$a(e,r+1);return o<56320||o>57343?r+1:r+2},Di=function(e){var r=0;return{next:function(){var i=r>=e.length,o;return i||(o=e[r],r+=1),{done:i,value:o}}}},wa=function(e,r){if(SO(e)||vO(e))return Di(e);if(xO(e)){var n=0;return{next:function(){var o=TO(e,n),s=wO(e,n,o);return n=o,{done:o>e.length,value:s}}}}if(r&&typeof e["_es6-shim iterator_"]!="undefined")return e["_es6-shim iterator_"]()},!QO&&!$O?Bi.exports=function(e){if(e!=null)return wa(e,!0)}:(PO=dO(),EO=yr(),Ta=we("Map.prototype.forEach",!0),Pa=we("Set.prototype.forEach",!0),(typeof process=="undefined"||!process.versions||!process.versions.node)&&(Ea=we("Map.prototype.iterator",!0),ka=we("Set.prototype.iterator",!0)),qa=we("Map.prototype.@@iterator",!0)||we("Map.prototype._es6-shim iterator_",!0),_a=we("Set.prototype.@@iterator",!0)||we("Set.prototype._es6-shim iterator_",!0),kO=function(e){if(PO(e)){if(Ea)return bO(Ea(e));if(qa)return qa(e);if(Ta){var r=[];return Ta(e,function(i,o){Qa(r,[o,i])}),Di(r)}}if(EO(e)){if(ka)return bO(ka(e));if(_a)return _a(e);if(Pa){var n=[];return Pa(e,function(i){Qa(n,i)}),Di(n)}}},Bi.exports=function(e){return kO(e)||wa(e)}));var Gi,SO,xO,xa,QO,$O,we,Qa,$a,wO,TO,Di,wa,PO,EO,Ta,Pa,Ea,ka,qa,_a,kO});var CO=O(Ni=>{"use strict";var qO=ft(),Kw=hr(),Jw=_t(),eT=fa(),tT=ha(),rT=un(),Aa=Y(),nT=Ca(),iT=ya(),oT=ji().isMap;Ni.fastkey=function(e){switch(Aa(e)){case"String":return"$"+e;case"Null":case"Undefined":case"Boolean":case"Number":return rT(e);default:return null}};var _O=function(e,r,n){for(var i=new iT(e,"key+value"),o=i.next();!o.done;o=i.next())typeof n=="undefined"?r(o.value[1],o.value[0],e):qO(r,n,[o.value[1],o.value[0],e])};Ni.forEach=_O;Ni.addIterableToMap=function(e,r){if(Kw(r)||typeof r=="string")for(var n=0;n<r.length;n++){var i=r[n];if(Aa(i)!=="Object")throw new TypeError("Iterator value "+i+" is not an entry object");e.set(i[0],i[1])}else if(oT(r))_O(r,function(c,p){e.set(p,c)});else{var o,s;if(r!=null){if(o=e.set,!Jw(o))throw new TypeError("bad map");var a=nT(r);s={"[[Done]]":!1,"[[Iterator]]":a,"[[NextMethod]]":a.next}}if(typeof s=="undefined")throw new TypeError("Object is not iterable");for(var l;l=tT(s);){var u=l.value;try{if(Aa(u)!=="Object")throw new TypeError("Iterator value "+u+" is not an entry object");qO(o,e,[u[0],u[1]])}catch(c){throw eT(s,!0),c}}}}});var ZO=O((tA,jO)=>{"use strict";var AO=ue(),Ui=N(),sT=M(),V=he(),aT=wi(),zi=Yh(),dt=Kh(),Ra=ya(),Za=CO(),Ma=ma(),De=ji().requireMapSlot,Fi=Za.fastkey,lT=Za.forEach,cT=Za.addIterableToMap,RO=Ma.emptyObject,uT=Ma.emulateES6construct,pT=Ma.addIterator,Li=sT("%Map%",!0),fT=Ui("%Map.prototype.delete%",!0),Ia=Ui("%Map.prototype.get%",!0),ja=Ui("%Map.prototype.has%",!0),hT=Ui("%Map.prototype.set%",!0),vr,IO=function t(){if(!(this instanceof t))throw new TypeError('Constructor Map requires "new"');if(this&&V.has(this,"[[es6map]]"))throw new TypeError("Bad construction");var e=uT(this,t,vr,{"[[es6map]]":!0,"[[head]]":null,"[[map]]":Li?new Li:null,"[[size]]":0,"[[storage]]":RO()}),r=new dt(null,null);return r.next=r,r.prev=r,V.set(e,"[[head]]",r),arguments.length>0&&cT(e,arguments[0]),e};vr=IO.prototype;AO.supportsDescriptors&&Object.defineProperty(vr,"size",{configurable:!0,enumerable:!1,get:function(){return De(this,"size"),V.get(this,"[[size]]")}});AO(vr,{get:function(e){De(this,"get");var r,n=Fi(e,!0);if(n!==null)return r=V.get(this,"[[storage]]")[n],r?r.value:void 0;var i=V.get(this,"[[map]]");if(i)return r=Ia(i,e),r?r.value:void 0;for(var o=V.get(this,"[[head]]"),s=o;(s=s.next)!==o;)if(zi(s.key,e))return s.value},has:function(e){De(this,"has");var r=Fi(e,!0),n=V.get(this,"[[storage]]");if(r!==null)return typeof n[r]!="undefined";var i=V.get(this,"[[map]]");if(i)return ja(i,e);for(var o=V.get(this,"[[head]]"),s=o;(s=s.next)!==o;)if(zi(s.key,e))return!0;return!1},set:function(e,r){De(this,"set");var n=V.get(this,"[[head]]"),i=n,o,s=Fi(e,!0);if(s!==null){var a=V.get(this,"[[storage]]");if(typeof a[s]=="undefined")o=new dt(e,r),a[s]=o,i=n.prev;else return a[s].value=r,this}else{var l=V.get(this,"[[map]]");l&&(ja(l,e)?Ia(l,e).value=r:(o=new dt(e,r),hT(l,e,o),i=n.prev))}for(;(i=i.next)!==n;)if(zi(i.key,e))return i.value=r,this;return o=o||new dt(e,r),aT(-0,e)&&(o.key=0),o.next=n,o.prev=n.prev,o.prev.next=o,o.next.prev=o,V.set(this,"[[size]]",V.get(this,"[[size]]")+1),this},delete:function(t){De(this,"delete");var e=V.get(this,"[[head]]"),r=e,n=Fi(t,!0);if(n!==null){var i=V.get(this,"[[storage]]");if(typeof i[n]=="undefined")return!1;r=i[n].prev,delete i[n]}else{var o=V.get(this,"[[map]]");if(o){if(!ja(o,t))return!1;r=Ia(o,t).prev,fT(o,t)}}for(;(r=r.next)!==e;)if(zi(r.key,t))return r.key=dt.empty,r.value=dt.empty,r.prev.next=r.next,r.next.prev=r.prev,V.set(this,"[[size]]",V.get(this,"[[size]]")-1),!0;return!1},clear:function(){De(this,"clear"),V.set(this,"[[map]]",Li?new Li:null),V.set(this,"[[size]]",0),V.set(this,"[[storage]]",RO());for(var e=V.get(this,"[[head]]"),r=e,n=r.next;(r=n)!==e;)r.key=dt.empty,r.value=dt.empty,n=r.next,r.next=e,r.prev=e;e.next=e,e.prev=e},keys:function(){return De(this,"keys"),new Ra(this,"key")},values:function(){return De(this,"values"),new Ra(this,"value")},entries:function(){return De(this,"entries"),new Ra(this,"key+value")},forEach:function(e){De(this,"forEach"),lT(this,e,arguments.length>1?arguments[1]:void 0)}});pT(vr,vr.entries);jO.exports=IO});var Xa=O(Wa=>{"use strict";var OT=he(),dT=un(),mT=Y(),MO=function(e){return OT.has(e,"[[es6set]]")};Wa.isSet=MO;Wa.requireSetSlot=function(e,r){if(mT(e)!=="Object"||!MO(e))throw new TypeError("Method Set.prototype."+r+" called on incompatible receiver "+dT(e))}});var Va=O(Rt=>{"use strict";var gT=M(),yT=N(),vT=xe(),dn=he(),XO=ft(),bT=Xh(),ST=hr(),xT=_t(),QT=fa(),$T=ha(),wT=un(),Yi=Y(),VO=ZO(),TT=vT(VO.prototype.forEach),WO=yT("%String.prototype.slice%"),PT=gT("%Number%"),ET=Xa().isSet,GO={};Rt.SET_ITEM=GO;Rt.fastkey=function(e){switch(Yi(e)){case"String":return"$"+e;case"Null":case"Undefined":case"Boolean":return wT(e);case"Number":return"n"+e;default:return null}};var kT=function(e){return e==="null"?null:e==="undefined"?void 0:e==="true"?!0:e==="false"?!1:e[0]==="$"?WO(e,1):PT(WO(e,1))},DO=function(e,r){for(var n in e)e[n]===GO&&r(n)};Rt.iterateStorage=DO;var BO=function(e){if(!dn.get(e,"[[setData]]")){var r=new VO;DO(dn.get(e,"[[storage]]"),function(n){var i=kT(n);r.set(i,i)}),dn.set(e,"[[setData]]",r)}dn.set(e,"[[storage]]",null)};Rt.ensureSet=BO;var NO=function(e,r,n){BO(e),TT(dn.get(e,"[[setData]]"),function(i,o){typeof n=="undefined"?r(o,o,e):XO(r,n,[o,o,e])})};Rt.forEach=NO;Rt.addIterableToSet=function(e,r){if(ST(r)||Yi(r)==="String")for(var n=0;n<r.length;n++)e.add(r[n]);else if(ET(r))NO(r,function(a){e.add(a)});else{var i,o;if(Yi(r)!=="Null"&&Yi(r)!=="Undefined"){if(o=e.add,!xT(o))throw new TypeError("bad set");i=bT(r,"sync")}if(typeof i=="undefined")throw new TypeError("Object is not iterable");for(var s;s=$T(i);)try{XO(o,e,[s.value])}catch(a){throw QT(i,!0),a}}}});var KO=O((iA,HO)=>{"use strict";var Da=ue(),Oe=he(),zO=vs(),FO=If(),Sr=Va(),Ba=ki(),mt=Xa().requireSetSlot,Ga=Sr.fastkey,qT=Sr.forEach,_T=Sr.addIterableToSet,LO=Sr.SET_ITEM,br=Sr.ensureSet,CT=Sr.iterateStorage,UO=Ba.emptyObject,AT=Ba.emulateES6construct,RT=Ba.addIterator,He,YO=function t(){if(!(this instanceof t))throw new TypeError('Constructor Set requires "new"');if(this&&Oe.has(this,"[[es6set]]"))throw new TypeError("Bad construction");var e=AT(this,t,He,{"[[es6set]]":!0,"[[setData]]":null,"[[storage]]":UO()});if(!Oe.has(e,"[[es6set]]"))throw new TypeError("bad set");return arguments.length>0&&_T(e,arguments[0]),e};He=YO.prototype;Da.supportsDescriptors&&Object.defineProperty(He,"size",{configurable:!0,enumerable:!1,get:function(){mt(this,"size");var t=Oe.get(this,"[[storage]]");if(t){var e=0;return CT(t,function(){e+=1}),e}return br(this),Oe.get(this,"[[setData]]").size}});Da(He,{add:function(e){mt(this,"has");var r,n=Oe.get(this,"[[storage]]");return n&&(r=Ga(e))!==null?n[r]!==LO&&(n[r]=LO):(br(this),Oe.get(this,"[[setData]]").set(e,e)),this},has:function(e){mt(this,"has");var r,n=Oe.get(this,"[[storage]]");return n&&(r=Ga(e))!==null?!!n[r]:(br(this),Oe.get(this,"[[setData]]").has(e))},delete:function(t){mt(this,"delete");var e,r=Oe.get(this,"[[storage]]");if(r&&(e=Ga(t))!==null){var n=!!r[e];return n&&delete r[e],n}return br(this),Oe.get(this,"[[setData]]").delete(t)},clear:function(){mt(this,"clear");var e=Oe.get(this,"[[storage]]");e&&Oe.set(this,"[[storage]]",UO());var r=Oe.get(this,"[[setData]]");r&&r.clear()},values:function(){return mt(this,"values"),br(this),new FO(Oe.get(this,"[[setData]]").values())},entries:function(){return mt(this,"entries"),br(this),new FO(Oe.get(this,"[[setData]]").entries())},forEach:function(e){mt(this,"forEach"),qT(this,e,arguments.length>1?arguments[1]:void 0)}});Da(He,{keys:He.values});RT(He,He.values);typeof Set=="function"&&zO&&zO(He,Set.prototype);HO.exports=YO});var ed=O((oA,JO)=>{"use strict";var gn=function(){return typeof function(){}.name=="string"},mn=Object.getOwnPropertyDescriptor;if(mn)try{mn([],"length")}catch(t){mn=null}gn.functionsHaveConfigurableNames=function(){if(!gn()||!mn)return!1;var e=mn(function(){},"name");return!!e&&!!e.configurable};var IT=Function.prototype.bind;gn.boundFunctionsHaveNames=function(){return gn()&&typeof IT=="function"&&function(){}.bind().name!==""};JO.exports=gn});var Na=O(gt=>{"use strict";var jT=ed(),ZT=function(t){return function(){try{return t()}catch(e){return!1}}};gt.isGoogleTranslate=function(){return!!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys)};gt.setUsesSameValueZero=function(){if(!Set.prototype.delete||!Set.prototype.add||!Set.prototype.has)return!1;var t=new Set([1,2,3,4]);return t.delete(0),t.add(-0),t.has(0)?(t=new Set([1,2,3,4]),t.delete(-0),t.add(0),t.has(-0)):!1};gt.setSupportsChaining=function(){var t=new Set;return t.add(1)===t};var MT=ZT(function(){if(!Object.setPrototypeOf)return!0;var t=function r(n){var i=new Set(n);return Object.setPrototypeOf(i,r.prototype),i};Object.setPrototypeOf(t,Set),Object.setPrototypeOf(t.prototype,Set.prototype);var e=new t([]);return e.add(1,2),e instanceof t}),WT=function(){try{return!(Set()instanceof Set)}catch(t){return t instanceof TypeError}};gt.setCompliantConstructor=function(){return Set.length===0&&MT()&&WT()};gt.setKeysIsValues=function(){return Set.prototype.keys===Set.prototype.values};gt.setHasCorrectName=function(){return jT?Set.prototype.has.name==="has":!0};gt.setHasOldFirefoxInterface=function(){return new Set().size!==0||typeof Set.prototype.values!="function"||typeof Set.prototype.forEach!="function"}});var jt=O((aA,td)=>{"use strict";var XT=hp(),VT=ue(),Hi=he(),GT=KO(),DT=Va().addIterableToSet,It=Na(),Re;td.exports=function(){if(typeof Set=="function"&&!It.setCompliantConstructor()){var e=Set;if(!Re||!(e===Re||Hi.get(Re,"[[OrigSet]]")===e)){var r=e.prototype;Re=function(){if(!(this instanceof Re))throw new TypeError('Constructor Set requires "new"');if(this&&Hi.has(this,"[[SetCompliantConstructorShim]]"))throw new TypeError("Bad construction");var i=new e;return Hi.set(i,"[[SetCompliantConstructorShim]]",!0),arguments.length>0&&DT(i,arguments[0]),delete i.constructor,XT(i,Re.prototype),i},Hi.set(Re,"[[OrigSet]]",Set),Re.prototype=r,VT(Re.prototype,{constructor:Re},{constructor:function(){return!0}})}return Re}return typeof Set!="function"||It.isGoogleTranslate()||It.setHasOldFirefoxInterface()||!It.setHasCorrectName()||!It.setKeysIsValues()||!It.setSupportsChaining()||!It.setUsesSameValueZero()?GT:Set}});var za=O((lA,rd)=>{"use strict";rd.exports=vi()});var yn=O((cA,nd)=>{"use strict";var BT=M(),NT=N(),zT=_(),FT=za(),LT=BT("%Reflect.apply%",!0)||NT("Function.prototype.apply");nd.exports=function(e,r){var n=arguments.length>2?arguments[2]:[];if(!FT(n))throw new zT("Assertion failed: optional `argumentsList`, if provided, must be a List");return LT(e,r,n)}});var od=O((uA,id)=>{"use strict";id.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var Zt=O((pA,sd)=>{"use strict";var UT=bs();sd.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":UT(e)}});var xr=O((fA,ld)=>{"use strict";var ad=_(),YT=qt(),HT=od(),KT=Zt();ld.exports=function(e,r){if(KT(e)!=="Object")throw new ad("Assertion failed: Type(O) is not Object");if(!HT(r))throw new ad("Assertion failed: IsPropertyKey(P) is not true, got "+YT(r));return e[r]}});var Ki=O((hA,cd)=>{"use strict";cd.exports=on()});var Fa=O((OA,pd)=>{"use strict";var ud=_(),JT=yn(),e0=xr(),t0=Ki(),r0=Zt();pd.exports=function(e,r){if(!t0(r))throw new ud("method must be a function");var n=JT(r,e);if(r0(n)!=="Object")throw new ud("iterator must return an object");var i=e0(n,"next");return{"[[Iterator]]":n,"[[NextMethod]]":i,"[[Done]]":!1}}});var hd=O((dA,fd)=>{"use strict";fd.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var dd=O((mA,Od)=>{"use strict";Od.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var gd=O((gA,md)=>{"use strict";var n0=Date.prototype.getDay,i0=function(e){try{return n0.call(e),!0}catch(r){return!1}},o0=Object.prototype.toString,s0="[object Date]",a0=fr()();md.exports=function(e){return typeof e!="object"||e===null?!1:a0?i0(e):o0.call(e)===s0}});var Sd=O((yA,La)=>{"use strict";var l0=Object.prototype.toString,c0=at()();c0?(yd=Symbol.prototype.toString,vd=/^Symbol\(.*\)$/,bd=function(e){return typeof e.valueOf()!="symbol"?!1:vd.test(yd.call(e))},La.exports=function(e){if(typeof e=="symbol")return!0;if(l0.call(e)!=="[object Symbol]")return!1;try{return bd(e)}catch(r){return!1}}):La.exports=function(e){return!1};var yd,vd,bd});var wd=O((vA,$d)=>{"use strict";var u0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",Ua=dd(),Qd=on(),p0=gd(),xd=Sd(),f0=function(e,r){if(typeof e=="undefined"||e===null)throw new TypeError("Cannot call method on "+e);if(typeof r!="string"||r!=="number"&&r!=="string")throw new TypeError('hint must be "string" or "number"');var n=r==="string"?["toString","valueOf"]:["valueOf","toString"],i,o,s;for(s=0;s<n.length;++s)if(i=e[n[s]],Qd(i)&&(o=i.call(e),Ua(o)))return o;throw new TypeError("No default value")},h0=function(e,r){var n=e[r];if(n!==null&&typeof n!="undefined"){if(!Qd(n))throw new TypeError(n+" returned for property "+r+" of object "+e+" is not a function");return n}};$d.exports=function(e){if(Ua(e))return e;var r="default";arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number"));var n;if(u0&&(Symbol.toPrimitive?n=h0(e,Symbol.toPrimitive):xd(e)&&(n=Symbol.prototype.valueOf)),typeof n!="undefined"){var i=n.call(e,r);if(Ua(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return r==="default"&&(p0(e)||xd(e))&&(r="string"),f0(e,r==="default"?"number":r)}});var Ed=O((bA,Pd)=>{"use strict";var Td=wd();Pd.exports=function(e){return arguments.length>1?Td(e,arguments[1]):Td(e)}});var Ad=O((SA,Cd)=>{"use strict";var Ya=N(),kd=fr()(),qd,_d,Ha,Ka;kd&&(qd=Ya("Object.prototype.hasOwnProperty"),_d=Ya("RegExp.prototype.exec"),Ha={},Ji=function(){throw Ha},Ka={toString:Ji,valueOf:Ji},typeof Symbol.toPrimitive=="symbol"&&(Ka[Symbol.toPrimitive]=Ji));var Ji,O0=Ya("Object.prototype.toString"),d0=Object.getOwnPropertyDescriptor,m0="[object RegExp]";Cd.exports=kd?function(e){if(!e||typeof e!="object")return!1;var r=d0(e,"lastIndex"),n=r&&qd(r,"value");if(!n)return!1;try{_d(e,Ka)}catch(i){return i===Ha}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:O0(e)===m0}});var Id=O((xA,Rd)=>{"use strict";var g0=N(),y0=Ad(),v0=g0("RegExp.prototype.exec"),b0=_();Rd.exports=function(e){if(!y0(e))throw new b0("`regex` must be a RegExp");return function(n){return v0(e,n)!==null}}});var Zd=O((QA,jd)=>{"use strict";var S0=M(),x0=S0("%String%"),Q0=_();jd.exports=function(e){if(typeof e=="symbol")throw new Q0("Cannot convert a Symbol value to a string");return x0(e)}});var Ja=O(($A,Xd)=>{"use strict";var $0=Si(),w0=Zd(),T0=N(),Md=T0("String.prototype.replace"),Wd=/^\s$/.test("\u180E"),P0=Wd?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,E0=Wd?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;Xd.exports=function(){var e=w0($0(this));return Md(Md(e,P0,""),E0,"")}});var el=O((wA,Gd)=>{"use strict";var k0=Ja(),Vd="\u200B",Qr="\u180E";Gd.exports=function(){return String.prototype.trim&&Vd.trim()===Vd&&Qr.trim()===Qr&&("_"+Qr).trim()==="_"+Qr&&(Qr+"_").trim()===Qr+"_"?String.prototype.trim:k0}});var Bd=O((TA,Dd)=>{"use strict";var q0=ue(),_0=el();Dd.exports=function(){var e=_0();return q0(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var Ld=O((PA,Fd)=>{"use strict";var C0=xe(),A0=ue(),R0=Si(),I0=Ja(),Nd=el(),j0=Bd(),Z0=C0(Nd()),zd=function(e){return R0(e),Z0(e)};A0(zd,{getPolyfill:Nd,implementation:I0,shim:j0});Fd.exports=zd});var Kd=O((EA,Hd)=>{"use strict";var rl=M(),tl=rl("%Number%"),M0=rl("%RegExp%"),W0=_(),Ud=rl("%parseInt%"),X0=N(),eo=Id(),Yd=X0("String.prototype.slice"),V0=eo(/^0b[01]+$/i),G0=eo(/^0o[0-7]+$/i),D0=eo(/^[-+]0x[0-9a-f]+$/i),B0=["\x85","\u200B","\uFFFE"].join(""),N0=new M0("["+B0+"]","g"),z0=eo(N0),F0=Ld();Hd.exports=function t(e){if(typeof e!="string")throw new W0("Assertion failed: `argument` is not a String");if(V0(e))return tl(Ud(Yd(e,2),2));if(G0(e))return tl(Ud(Yd(e,2),8));if(z0(e)||D0(e))return NaN;var r=F0(e);return r!==e?t(r):tl(e)}});var to=O((kA,tm)=>{"use strict";var L0=M(),Jd=_(),em=L0("%Number%"),U0=hd(),Y0=Ed(),H0=Kd();tm.exports=function(e){var r=U0(e)?e:Y0(e,em);if(typeof r=="symbol")throw new Jd("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new Jd("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?H0(r):em(r)}});var nm=O((qA,rm)=>{"use strict";var K0=Math.floor;rm.exports=function(e){return typeof e=="bigint"?e:K0(e)}});var sm=O((_A,om)=>{"use strict";var im=nm(),J0=_();om.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new J0("argument must be a Number or a BigInt");var r=e<0?-im(-e):im(e);return r===0?0:r}});var nl=O((CA,am)=>{"use strict";var e1=to(),t1=sm(),r1=Ye(),n1=Js();am.exports=function(e){var r=e1(e);return r1(r)||r===0?0:n1(r)?t1(r):r}});var um=O((AA,cm)=>{"use strict";var i1=ri(),ro=_(),il=xr(),lm=Ki(),o1=nl(),s1=to(),a1=Zt(),l1=Ye(),c1=xe(),u1=yr(),p1=On();cm.exports=function(e){if(a1(e)!=="Object")throw new ro("obj is not an Object");var r=il(e,"size"),n=s1(r);if(l1(n))throw new ro("size is not a non-NaN Number");var i=o1(n);if(i<0)throw new i1("set size must be non-negative");var o=il(e,"has");if(!lm(o))throw new ro("has is not a function");var s=il(e,"keys");if(!lm(s))throw new ro("keys is not a function");if(u1(e)&&typeof StopIteration=="object"){var a=c1(s);s=function(){return p1(a(this))}}return{"[[Set]]":e,"[[Size]]":i,"[[Has]]":o,"[[Keys]]":s}}});var no=O((RA,pm)=>{"use strict";pm.exports=function(e){return!!e}});var hm=O((IA,fm)=>{"use strict";var f1=_(),h1=xr(),O1=no(),d1=Zt();fm.exports=function(e){if(d1(e)!=="Object")throw new f1("Assertion failed: Type(iterResult) is not Object");return O1(h1(e,"done"))}});var gm=O((jA,mm)=>{"use strict";var Om=_(),dm=yn(),m1=Zt(),g1=Ct();mm.exports=function(e){if(!g1(e))throw new Om("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;if(arguments.length<2?r=dm(e["[[NextMethod]]"],e["[[Iterator]]"]):r=dm(e["[[NextMethod]]"],e["[[Iterator]]"],[arguments[1]]),m1(r)!=="Object")throw new Om("iterator next must return an object");return r}});var ol=O((ZA,ym)=>{"use strict";var y1=_(),v1=xr(),b1=hm(),S1=gm(),x1=Ct();ym.exports=function(e){if(!x1(e))throw new y1("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;try{r=S1(e)}catch(o){throw e["[[Done]]"]=!0,o}var n;try{n=b1(r)}catch(o){throw e["[[Done]]"]=!0,o}if(n)return e["[[Done]]"]=!0,"DONE";var i;try{i=v1(r,"value")}catch(o){throw e["[[Done]]"]=!0,o}return i}});var sl=O((MA,bm)=>{"use strict";var vm=Ye();bm.exports=function(e,r){return e===r||vm(e)&&vm(r)}});var Qm=O((WA,xm)=>{"use strict";var Sm=TypeError;xm.exports=function(e){if(!e||typeof e.next!="function")throw new Sm("iterator must be an object with a `next` method");if(arguments.length>1){var r=arguments[1];if(typeof r!="function")throw new Sm("`callback`, if provided, must be a function")}for(var n=r||[],i;(i=e.next())&&!i.done;)r?r(i.value):n.push(i.value);if(!r)return n}});var Tm=O((XA,wm)=>{"use strict";var Q1=Ca(),$1=TypeError,$m=Qm();wm.exports=function(e){var r=Q1(e);if(!r)throw new $1("non-iterable value provided");return arguments.length>1?$m(r,arguments[1]):$m(r)}});var al=O((VA,Im)=>{"use strict";var $r=jt()(),vn=xe(),bn=N(),Pm=li(),w1=Tm(),Em=bn("Set.prototype.forEach",!0),T1=vn($r.prototype.forEach),Rm=function(t,e){if(Em)try{return Em(t,e)}catch(r){}try{return T1(t,e)}catch(r){}w1(t,e)},km=bn("Set.prototype.add",!0),P1=$r.prototype.add&&vn($r.prototype.add),E1=function(t,e){if(km)try{return km(t,e)}catch(r){}return P1(t,e)},qm=bn("Set.prototype.has",!0),k1=vn($r.prototype.has),q1=function(t,e){if(qm)try{return qm(t,e)}catch(r){}return k1(t,e)},_m=bn("Set.prototype.delete",!0),_1=vn($r.prototype.delete),C1=function(t,e){if(_m)try{return _m(t,e)}catch(r){}return _1(t,e)},Cm=bn("Set.prototype.size",!0),Am=Pm?vn(Pm($r.prototype,"size").get):null,A1=function(e){var r=0;return Rm(e,function(){r+=1}),r},R1=function(t){if(Cm)try{return Cm(t)}catch(e){}if(Am)try{return Am(t)}catch(e){}return A1(t)};Im.exports={add:E1,delete:C1,forEach:Rm,has:q1,size:R1}});var cl=O((GA,Xm)=>{"use strict";var I1=_(),jm=jt()(),j1=yn(),Z1=Fa(),M1=um(),W1=ol(),X1=sl(),V1=no(),G1=N(),D1=yr(),B1=bi(),ll=al(),Zm=ll.forEach,Mm=ll.add,N1=ll.size,z1=G1(".Array.prototype.push"),Wm={};Xm.exports=function(e){var r=this;if(!D1(r)&&!(r instanceof jm))throw new I1("Method Set.prototype.difference called on incompatible receiver "+r);var n=M1(e),i=N1(r),o=new jm;if(i<=n["[[Size]]"])Zm(r,function(c){var p=V1(j1(n["[[Has]]"],n["[[Set]]"],[c]));p||Mm(o,c)});else{var s=Z1(n["[[Set]]"],n["[[Keys]]"]),a=[];Zm(r,function(c){z1(a,c)});for(var l;!s["[[Done]]"];)if(l=W1(s),!s["[[Done]]"]){l===0&&(l=0);for(var u=0;u<a.length;u+=1)X1(a[u],l)&&(a[u]=Wm)}B1(a,function(c){c!==Wm&&Mm(o,c)})}return o}});var ul=O((DA,Gm)=>{"use strict";var Vm=jt()(),F1=cl();Gm.exports=function(){return typeof Vm.prototype.difference=="function"?Vm.prototype.difference:F1}});var pl=O((BA,io)=>{"use strict";typeof self!="undefined"?io.exports=self:typeof window!="undefined"?io.exports=window:io.exports=Function("return this")()});var fl=O((NA,Dm)=>{"use strict";var L1=pl();Dm.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?L1:global}});var Nm=O((zA,Bm)=>{"use strict";var U1=ue(),Y1=fl();Bm.exports=function(){var e=Y1();if(U1.supportsDescriptors){var r=Object.getOwnPropertyDescriptor(e,"globalThis");(!r||r.configurable&&(r.enumerable||!r.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e}});var Um=O((FA,Lm)=>{"use strict";var H1=ue(),K1=pl(),zm=fl(),J1=Nm(),eP=zm(),Fm=function(){return eP};H1(Fm,{getPolyfill:zm,implementation:K1,shim:J1});Lm.exports=Fm});var Ol=O((LA,Ym)=>{"use strict";var Sn=xe(),yt=ue(),xn=ft(),tP=Ys(),rP=Um()(),nP=Hr(),hl=On(),iP=jt(),Mt=Na(),oP=ki().addIterator,Ie=function(){return!0},sP=function(t){return yt(rP,{Set:t},{Set:Ie}),t};Ym.exports=function(){if(typeof Set=="function"&&(Mt.isGoogleTranslate()&&(delete Set.prototype.remove,delete Set.prototype.items,delete Set.prototype.map,yt(Set.prototype,{keys:Set.prototype.values},{keys:Ie})),Mt.setHasOldFirefoxInterface())){if(typeof new Set().size=="function"&&nP()){var e=Sn(Set.prototype.size);tP(Set.prototype,"size",{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Get]]":function(){return e(this)}})}var r=Sn(Set.prototype.entries),n=Sn(Set.prototype.values);if(yt(Set.prototype,{entries:function(){return hl(r(this))},values:function(){return hl(n(this))}},{entries:Ie,values:Ie}),typeof Set.prototype.forEach!="function"){var i=Sn(Set.prototype.iterator);yt(Set.prototype,{forEach:function(p){for(var h=hl(i(this)),f=arguments.length>1?arguments[1]:void 0,d=Sn(p,f),m=h.next();!m.done;)d(m.value,m.value,this),m=h.next()}},{forEach:Ie})}}var o=typeof Set=="function"?Set:null;(typeof Set!="function"||!Mt.setCompliantConstructor())&&(o=iP(),sP(o));var s=o.prototype,a=s.add,l=s.has,u=s.delete;return Mt.setUsesSameValueZero()?Mt.setSupportsChaining()||yt(o.prototype,{add:function(p){return xn(a,this,[p]),this}},{add:Ie}):yt(o.prototype,{add:function(p){return xn(a,this,[p===0?0:p]),this},delete:function(p){return xn(u,this,[p===0?0:p])},has:function(p){return xn(l,this,[p===0?0:p])}},{add:Ie,delete:Ie,has:Ie}),Mt.setKeysIsValues()||yt(o.prototype,{keys:o.prototype.values},{keys:Ie}),Mt.setHasCorrectName()||yt(o.prototype,{has:function(p){return xn(l,this,p)}},{has:Ie}),Object.getPrototypeOf&&oP(Object.getPrototypeOf(new o().values())),o}});var Km=O((UA,Hm)=>{"use strict";var aP=ul(),lP=ue(),cP=Ol();Hm.exports=function(){cP();var e=aP();return lP(Set.prototype,{difference:e},{difference:function(){return Set.prototype.difference!==e}}),e}});var rg=O((YA,tg)=>{"use strict";var uP=xe(),pP=ue(),fP=cl(),Jm=ul(),hP=Km(),eg=uP(Jm());pP(eg,{getPolyfill:Jm,implementation:fP,shim:hP});tg.exports=eg});var og=O((HA,ig)=>{"use strict";var OP=ri(),oo=_(),dl=xr(),ng=Ki(),dP=nl(),mP=to(),gP=Zt(),yP=Ye(),vP=xe(),bP=yr(),SP=On();ig.exports=function(e){if(gP(e)!=="Object")throw new oo("obj is not an Object");var r=dl(e,"size"),n=mP(r);if(yP(n))throw new oo("size is not a non-NaN Number");var i=dP(n);if(i<0)throw new OP("set size must be non-negative");var o=dl(e,"has");if(!ng(o))throw new oo("has is not a function");var s=dl(e,"keys");if(!ng(s))throw new oo("keys is not a function");if(bP(e)&&typeof StopIteration=="object"){var a=vP(s);s=function(){return SP(a(this))}}return{"[[Set]]":e,"[[Size]]":i,"[[Has]]":o,"[[Keys]]":s}}});var ag=O((KA,sg)=>{"use strict";sg.exports=function(e,r){for(var n=0;n<e.length;n+=1)if(r(e[n],n,e))return!0;return!1}});var cg=O((JA,lg)=>{"use strict";var xP=_(),QP=za(),$P=sl(),wP=ag();lg.exports=function(e,r){if(!QP(e))throw new xP("`setData` must be a List");return wP(e,function(n){return $P(n,r)})}});var yl=O((eR,fg)=>{"use strict";var TP=_(),ml=jt()(),PP=yn(),EP=Fa(),kP=og(),qP=ol(),ug=cg(),_P=no(),CP=bi(),AP=xe(),RP=N(),IP=yr(),gl=al(),jP=gl.forEach,ZP=gl.add,MP=gl.size,pg=RP("Array.prototype.push"),WP=AP(ml.prototype.has);fg.exports=function(e){var r=this;if(!IP(r)&&!(r instanceof ml))throw new TP("Method Set.prototype.intersection called on incompatible receiver "+r);var n=kP(e),i=[],o=MP(r);if(o<=n["[[Size]]"]){var s=0;jP(r,function(h){if(s<o){s+=1;var f=_P(PP(n["[[Has]]"],n["[[Set]]"],[h]));if(f){var d=ug(i,h);d||(pg(i,h),o+=1)}}})}else for(var a=EP(n["[[Set]]"],n["[[Keys]]"]),l;!a["[[Done]]"];)if(l=qP(a),!a["[[Done]]"]){l===0&&(l=0);var u=ug(i,l),c=WP(r,l);!u&&c&&pg(i,l)}var p=new ml;return CP(i,function(h){ZP(p,h)}),p}});var vl=O((tR,Og)=>{"use strict";var hg=jt()(),XP=yl();Og.exports=function(){return typeof hg.prototype.intersection=="function"?hg.prototype.intersection:XP}});var mg=O((rR,dg)=>{"use strict";var VP=vl(),GP=ue(),DP=Ol();dg.exports=function(){DP();var e=VP();return GP(Set.prototype,{intersection:e},{intersection:function(){return Set.prototype.intersection!==e}}),e}});var bg=O((nR,vg)=>{"use strict";var BP=xe(),NP=ue(),zP=yl(),gg=vl(),FP=mg(),yg=BP(gg());NP(yg,{getPolyfill:gg,implementation:zP,shim:FP});vg.exports=yg});var Rq={};lb(Rq,{default:()=>Ko});module.exports=cb(Rq);var Nn=require("@codemirror/state"),_e=require("obsidian");var de=require("obsidian");var pb=class extends Error{constructor(e){super(e[0].message);Ic(this,"issues");this.name="ValiError",this.issues=e}},jq=Symbol("brand");function fb(t){return typeof t=="function"?t():t}function er(t,e){return Array.isArray(t)?[void 0,t]:[t,e]}function Ln(t,e,r){return{typed:t,output:e,issues:r}}function hb(t,e,r){if(!t||typeof t=="object"&&!Array.isArray(t)){let[o,s]=er(e,r);return[t,o,s]}let[n,i]=er(t,e);return[void 0,n,i]}function Ob(t,e){return{reason:t==null?void 0:t.reason,validation:e.validation,origin:(t==null?void 0:t.origin)||"value",message:e.message,input:e.input,requirement:e==null?void 0:e.requirement,path:e.path,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}}function db(t,e){return{reason:e,origin:t==null?void 0:t.origin,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}}function Nr(t,e,r,n,i){let o,s=t;if(e!=null&&e.length&&!(r!=null&&r.skipPipe))for(let a of e){let l=a._parse(s);if(l.issues){o=o||db(r,n);for(let u of l.issues){let c=Ob(o,u);i?i.push(c):i=[c]}if(o.abortEarly||o.abortPipeEarly)break}else s=l.output}return Ln(!0,s,i)}function tr(t,e,r,n,i,o){return{typed:!1,output:i,issues:[{reason:e,validation:r,origin:(t==null?void 0:t.origin)||"value",message:fb(n),input:i,issues:o,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}]}}function mb(t){return typeof t.default=="function"?t.default():t.default}function Zc(t,e,r){let[n="Invalid type",i]=er(e,r);return{type:"instance",async:!1,class:t,message:n,pipe:i,_parse(o,s){return o instanceof this.class?Nr(o,this.pipe,s,"instance"):tr(s,"type","instance",this.message,o)}}}function Mc(t,e){let[r="Invalid type",n]=er(t,e);return{type:"number",async:!1,message:r,pipe:n,_parse(i,o){return typeof i!="number"||isNaN(i)?tr(o,"type","number",this.message,i):Nr(i,this.pipe,o,"number")}}}function Wc(t,e,r,n){let[i,o="Invalid type",s]=hb(e,r,n),a;return{type:"object",async:!1,entries:t,rest:i,message:o,pipe:s,_parse(l,u){if(!l||typeof l!="object")return tr(u,"type","object",this.message,l);a=a||Object.entries(this.entries);let c=!0,p,h={};for(let[f,d]of a){let m=l[f],g=d._parse(m,u);if(g.issues){let y={type:"object",input:l,key:f,value:m};for(let v of g.issues)v.path?v.path.unshift(y):v.path=[y],p==null||p.push(v);if(p||(p=g.issues),u!=null&&u.abortEarly){c=!1;break}}g.typed||(c=!1),(g.output!==void 0||f in l)&&(h[f]=g.output)}if(this.rest&&!(u!=null&&u.abortEarly&&p)){for(let f in l)if(!(f in this.entries)){let d=l[f],m=this.rest._parse(d,u);if(m.issues){let g={type:"object",input:l,key:f,value:d};for(let y of m.issues)y.path?y.path.unshift(g):y.path=[g],p==null||p.push(y);if(p||(p=m.issues),u!=null&&u.abortEarly){c=!1;break}}m.typed||(c=!1),h[f]=m.output}}return c?Nr(h,this.pipe,u,"object",p):Ln(!1,h,p)}}}function rr(t,e){return{type:"optional",async:!1,wrapped:t,default:e,_parse(r,n){if(r===void 0){let i=mb(this);if(i===void 0)return Ln(!0,r);r=i}return this.wrapped._parse(r,n)}}}function ot(t,e){let[r="Invalid type",n]=er(t,e);return{type:"string",async:!1,message:r,pipe:n,_parse(i,o){return typeof i!="string"?tr(o,"type","string",this.message,i):Nr(i,this.pipe,o,"string")}}}function Xc(t,e,r){let[n="Invalid type",i]=er(e,r);return{type:"special",async:!1,check:t,message:n,pipe:i,_parse(o,s){return this.check(o)?Nr(o,this.pipe,s,"special"):tr(s,"type","special",this.message,o)}}}function is(t,e="Invalid type"){return{type:"union",async:!1,options:t,message:e,_parse(r,n){let i,o;for(let s of this.options){let a=s._parse(r,n);if(a.issues)if(i)for(let l of a.issues)i.push(l);else i=a.issues;else{o=[a.output];break}}return o?Ln(!0,o[0]):tr(n,"type","union",this.message,r,i)}}}function Vc(t,e,r){let n=t._parse(e,r);if(n.issues)throw new pb(n.issues);return n.output}var gb=typeof btoa=="function",os=typeof Buffer=="function",Xq=typeof TextDecoder=="function"?new TextDecoder:void 0,Gc=typeof TextEncoder=="function"?new TextEncoder:void 0,yb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",zr=Array.prototype.slice.call(yb),Vq=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(zr);var Xe=String.fromCharCode.bind(String),Gq=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),vb=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_");var bb=t=>{let e,r,n,i,o="",s=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|i,o+=zr[e>>18&63]+zr[e>>12&63]+zr[e>>6&63]+zr[e&63]}return s?o.slice(0,s-3)+"===".substring(s):o},Bc=gb?t=>btoa(t):os?t=>Buffer.from(t,"binary").toString("base64"):bb,Sb=os?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,i=t.length;n<i;n+=4096)r.push(Xe.apply(null,t.subarray(n,n+4096)));return Bc(r.join(""))};var xb=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Xe(192|e>>>6)+Xe(128|e&63):Xe(224|e>>>12&15)+Xe(128|e>>>6&63)+Xe(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Xe(240|e>>>18&7)+Xe(128|e>>>12&63)+Xe(128|e>>>6&63)+Xe(128|e&63)}},Qb=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$b=t=>t.replace(Qb,xb),Dc=os?t=>Buffer.from(t,"utf8").toString("base64"):Gc?t=>Sb(Gc.encode(t)):t=>Bc($b(t)),ss=(t,e=!1)=>e?vb(Dc(t)):Dc(t);var as="${VISUAL}",Fr=class{constructor(e,r,n,i,o=0,s="no description provided",a=[],l=""){this.type=e,this.data={trigger:r,replacement:n},this.options=i,this.priority=o,this.description=s,this.excludedEnvironments=a,this.triggerKey=l}get trigger(){return this.data.trigger}get replacement(){return this.data.replacement}toString(){return Kn({type:this.type,trigger:this.trigger,replacement:this.replacement,options:this.options,priority:this.priority,description:this.description,excludedEnvironments:this.excludedEnvironments})}},Un=class extends Fr{constructor({trigger:e,replacement:r,options:n,priority:i,description:o,excludedEnvironments:s,triggerKey:a}){super("visual",e,r,n,i,o,s,a)}process(e,r,n){if(!!!n||!e.endsWith(this.trigger))return null;let o=r.from,s;if(typeof this.replacement=="string")s=this.replacement.replace(as,n);else if(s=this.replacement(n),typeof s!="string")return null;return{triggerPos:o,replacement:s}}},Yn=class extends Fr{constructor({trigger:e,replacement:r,options:n,priority:i,description:o,excludedEnvironments:s,triggerKey:a}){super("regex",e,r,n,i,o,s,a)}process(e,r,n){if(!!n)return null;let o=this.trigger.exec(e);if(o===null)return null;let s=o.index,a;if(typeof this.replacement=="string"){let l=o.length-1;a=Array.from({length:l}).map((u,c)=>c+1).reduce((u,c)=>u.replaceAll(`[[${c-1}]]`,o[c]),this.replacement)}else if(a=this.replacement(o),typeof a!="string")return null;return{triggerPos:s,replacement:a}}},Hn=class extends Fr{constructor({trigger:e,replacement:r,options:n,priority:i,description:o,excludedEnvironments:s,triggerKey:a}){super("string",e,r,n,i,o,s,a)}process(e,r,n){if(!!n||!e.endsWith(this.trigger))return null;let o=e.length-this.trigger.length,s=typeof this.replacement=="string"?this.replacement:this.replacement(this.trigger);return typeof s!="string"?null:{triggerPos:o,replacement:s}}};function wb(t,e){return typeof e=="function"?"[[Function]]":e instanceof RegExp?`[[RegExp]]: ${e.toString()}`:e}function Kn(t){return JSON.stringify(t,wb,2)}var Jn=class t{constructor(){this.mode=new nr,this.automatic=!1,this.regex=!1,this.onWordBoundary=!1,this.visual=!1}static fromSource(e,r){let n=new t;n.mode=nr.fromSource(e,r);for(let i of e)switch(i){case"A":n.automatic=!0;break;case"r":n.regex=!0;break;case"w":n.onWordBoundary=!0;break;case"v":n.visual=!0;break}return n}},nr=class t{inEquation(){return this.inlineMath||this.blockMath}inMath(){return this.inlineMath||this.blockMath||this.codeMath}strictlyInMath(){return this.inMath()&&!this.textEnv}constructor(){this.text=!1,this.blockMath=!1,this.inlineMath=!1,this.code=!1,this.textEnv=!1}invert(){this.text=!this.text,this.blockMath=!this.blockMath,this.inlineMath=!this.inlineMath,this.codeMath=!this.codeMath,this.code=this.code===!1,this.textEnv=!this.textEnv}static fromSource(e,r){let n=new t;for(let i of e)switch(i){case"m":n.blockMath=!0,n.inlineMath=!0;break;case"n":n.inlineMath=!0;break;case"M":n.blockMath=!0;break;case"t":n.text=!0;break;case"c":n.code=!0;break}return r!==void 0&&(n.code=r),n.text||n.inlineMath||n.blockMath||n.codeMath||n.code!==!1||n.textEnv||n.invert(),n}};function ei(t){return t.map((e,r)=>[kb(e),qb(e),r]).sort(Tb).map(([e,r,n])=>t[n])}function Tb(t,e){return Eb(t[0],e[0])||Pb(t[1],e[1])}function Pb(t,e){return t<e?1:t>e?-1:0}function Eb(t,e){return t<e?1:t>e?-1:0}function kb(t){return t.priority}function qb(t){return typeof t.trigger=="string"?t.trigger.length:t.trigger.source.length}var ls={"([A-Za-z])(\\d)":[{openSymbol:"\\pu{",closeSymbol:"}"},{openSymbol:"\\ce{",closeSymbol:"}"}],"->":[{openSymbol:"\\ce{",closeSymbol:"}"}]};var Lc=require("obsidian");function Uc(t){return $(this,null,function*(){let e;try{try{e=yield Nc(`data:text/javascript;base64,${ss(t)}`)}catch(r){e=yield Nc(`data:text/javascript;base64,${ss(`export default ${t}`)}`)}}catch(r){throw"Invalid format"}return e})}function Pt(t){return $(this,null,function*(){let e=yield Uc(t);if(Array.isArray(e))throw"Cannot parse an array as a variables object";let r={};for(let[n,i]of Object.entries(e))if(n.startsWith("${")){if(!n.endsWith("}"))throw`Invalid snippet variable name '${n}': Starts with '\${' but does not end with '}'. You need to have both or neither.`;r[n]=i}else{if(n.endsWith("}"))throw`Invalid snippet variable name '${n}': Ends with '}' but does not start with '\${'. You need to have both or neither.`;r["${"+n+"}"]=i}return r})}function ir(t,e){return $(this,null,function*(){let r=yield Uc(t),n;try{n=Cb(r).map(o=>{try{return Ab(o,e)}catch(s){throw`${s}
|
|
Erroring snippet:
|
|
${Kn(o)}`}})}catch(i){throw`Invalid snippet format: ${i}`}return n=ei(n),n})}function Nc(t){return $(this,null,function*(){let e;try{e=yield import(t)}catch(r){throw`failed to import module ${t}`}if(!("default"in e))throw`No default export provided for module ${t}`;return e.default})}var _b=Wc({trigger:is([ot(),Zc(RegExp)]),replacement:is([ot(),Xc(t=>typeof t=="function")]),options:ot(),flags:rr(ot(),""),priority:rr(Mc(),0),description:rr(ot(),"no description provided"),triggerKey:rr(ot(),""),language:rr(ot())});function Cb(t){if(!Array.isArray(t))throw"Expected snippets to be an array";return t.flat().map(e=>{try{return Vc(_b,e)}catch(r){throw`Value does not resemble snippet.
|
|
Erroring snippet:
|
|
${Kn(e)}`}})}function Ab(t,e){let{replacement:r,priority:n,description:i}=t,o=Jn.fromSource(t.options,t.language),s,a,l=cs(t.triggerKey);if(o.regex||t.trigger instanceof RegExp){let u,c=t.flags;t.trigger instanceof RegExp?(u=t.trigger.source,c=`${t.trigger.flags}${c}`):u=t.trigger,c=Rb(c),u=zc(u,e),a=Fc(u),u=`(?:${u})$`,s=new RegExp(u,c),o.regex=!0;let p={trigger:s,replacement:r,options:o,priority:n,description:i,excludedEnvironments:a,triggerKey:l};return new Yn(p)}else{let u=t.trigger;u=zc(u,e),a=Fc(u),typeof r=="string"&&r.includes(as)&&(o.visual=!0);let c={trigger:u,replacement:r,options:o,priority:n,description:i,excludedEnvironments:a,triggerKey:l};return o.visual?new Un(c):new Hn(c)}}function Rb(t){let e=["i","m","s","u","v"];return Array.from(new Set(t.split(""))).filter(r=>e.includes(r)).join("")}function zc(t,e){for(let[r,n]of Object.entries(e))t=t.replaceAll(r,n);return t}function Fc(t){let e=[];return ls.hasOwnProperty(t)&&e.push(...ls[t]),e}function cs(t){return t.split(/ (?!$)/).map(e=>Ib(e)).join(" ")}function Ib(t){let e=t.split(/-(?!$)/),r=e[e.length-1];r==="Space"&&(r=" ");let n,i,o,s;for(let a=0;a<e.length-1;++a){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))Lc.Platform.isMacOS?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return n&&(r="Alt-"+r),i&&(r="Ctrl-"+r),s&&(r="Meta-"+r),o&&(r="Shift-"+r),r}var Qg=Rc(rg()),$g=Rc(bg());var Sg=Qg.default,LP=$g.default;function UP(t,e){let r=t.parent,n=0;for(;r&&!r.isRoot()&&n<100;){if(r.path===e.path)return!0;r=r.parent,n++}return!1}function so(t,e,r){let n=t.app.vault.getAbstractFileByPath(e);return n instanceof de.TFolder&&UP(r,n)}var bl=(0,de.debounce)(t=>$(void 0,null,function*(){(t.settings.loadSnippetVariablesFromFile||t.settings.loadSnippetsFromFile)&&(yield t.processSettings(!1,!0))}),500,!0),wg=(t,e)=>$(void 0,null,function*(){e instanceof de.TFile&&(t.settings.loadSnippetVariablesFromFile&&e.path===t.settings.snippetVariablesFileLocation||t.settings.loadSnippetsFromFile&&e.path===t.settings.snippetsFileLocation||so(t,t.settings.snippetVariablesFileLocation,e)||so(t,t.settings.snippetsFileLocation,e))&&bl(t)}),Tg=(t,e)=>{e instanceof de.TFile&&(t.settings.loadSnippetVariablesFromFile&&so(t,t.settings.snippetVariablesFileLocation,e)||t.settings.loadSnippetsFromFile&&so(t,t.settings.snippetsFileLocation,e))&&bl(t)},Pg=(t,e)=>{if(!(e instanceof de.TFile))return;let r=t.app.vault.getAbstractFileByPath(t.settings.snippetVariablesFileLocation),n=t.app.vault.getAbstractFileByPath(t.settings.snippetsFileLocation);(t.settings.loadSnippetVariablesFromFile&&r instanceof de.TFolder&&e.path.contains(r.path)||t.settings.loadSnippetsFromFile&&n instanceof de.TFolder&&e.path.contains(n.path))&&bl(t)};function*Eg(t){if(t instanceof de.TFile)yield t;else if(t instanceof de.TFolder)for(let e of t.children)yield*jc(Eg(e))}function xg(t,e){let r=t.getAbstractFileByPath(e);if(!r)return console.warn(`Could not find file or folder at path ${e}`),new Set;let n=Eg(r);return new Set(n)}function kg(t){let e=t.settings.loadSnippetVariablesFromFile?xg(t.app.vault,t.settings.snippetVariablesFileLocation):new Set,r=t.settings.loadSnippetsFromFile?xg(t.app.vault,t.settings.snippetsFileLocation):new Set,n=Sg(e,r),i=Sg(r,e),o=LP(e,r);return{definitelyVariableFiles:n,definitelySnippetFiles:i,snippetOrVariableFiles:o}}function qg(t,e){return $(this,null,function*(){let r={};for(let n of e.definitelyVariableFiles){let i=yield t.app.vault.cachedRead(n);try{Object.assign(r,yield Pt(i))}catch(o){new de.Notice(`Failed to parse variable file ${n.name}: ${o}`),console.error(`Failed to parse variable file ${n.name}: ${o}`),e.definitelyVariableFiles.delete(n)}}return r})}function _g(t,e){return $(this,null,function*(){let r={};for(let n of e.snippetOrVariableFiles){let i=yield t.app.vault.cachedRead(n);try{Object.assign(r,yield Pt(i)),e.definitelyVariableFiles.add(n)}catch(o){e.definitelySnippetFiles.add(n)}e.snippetOrVariableFiles.delete(n)}return r})}function Cg(t,e,r){return $(this,null,function*(){let n=[];for(let i of e.definitelySnippetFiles){let o=yield t.app.vault.cachedRead(i);try{n.push(...yield ir(o,r))}catch(s){new de.Notice(`Failed to parse snippet file ${i.name}: ${s}`),console.error(`Failed to parse snippet file ${i.name}: ${s}`),e.definitelySnippetFiles.delete(i)}}return ei(n)})}var Ag=`[
|
|
// Math mode
|
|
{trigger: "mk", replacement: "$$0$", options: "tA"},
|
|
{trigger: "dm", replacement: "$$\\n$0\\n$$", options: "tAw"},
|
|
{trigger: "beg", replacement: "\\\\begin{$0}\\n$1\\n\\\\end{$0}", options: "mA"},
|
|
|
|
// Dashes
|
|
// {trigger: "--", replacement: "\u2013", options: "tA"},
|
|
// {trigger: "\u2013-", replacement: "\u2014", options: "tA"},
|
|
// {trigger: "\u2014-", replacement: "---", options: "tA"},
|
|
|
|
// Greek letters
|
|
{trigger: "@a", replacement: "\\\\alpha", options: "mA"},
|
|
{trigger: "@b", replacement: "\\\\beta", options: "mA"},
|
|
{trigger: "@g", replacement: "\\\\gamma", options: "mA"},
|
|
{trigger: "@G", replacement: "\\\\Gamma", options: "mA"},
|
|
{trigger: "@d", replacement: "\\\\delta", options: "mA"},
|
|
{trigger: "@D", replacement: "\\\\Delta", options: "mA"},
|
|
{trigger: "@e", replacement: "\\\\epsilon", options: "mA"},
|
|
{trigger: ":e", replacement: "\\\\varepsilon", options: "mA"},
|
|
{trigger: "@z", replacement: "\\\\zeta", options: "mA"},
|
|
{trigger: "@t", replacement: "\\\\theta", options: "mA"},
|
|
{trigger: "@T", replacement: "\\\\Theta", options: "mA"},
|
|
{trigger: ":t", replacement: "\\\\vartheta", options: "mA"},
|
|
{trigger: "@i", replacement: "\\\\iota", options: "mA"},
|
|
{trigger: "@k", replacement: "\\\\kappa", options: "mA"},
|
|
{trigger: "@l", replacement: "\\\\lambda", options: "mA"},
|
|
{trigger: "@L", replacement: "\\\\Lambda", options: "mA"},
|
|
{trigger: "@s", replacement: "\\\\sigma", options: "mA"},
|
|
{trigger: "@S", replacement: "\\\\Sigma", options: "mA"},
|
|
{trigger: "@u", replacement: "\\\\upsilon", options: "mA"},
|
|
{trigger: "@U", replacement: "\\\\Upsilon", options: "mA"},
|
|
{trigger: "@o", replacement: "\\\\omega", options: "mA"},
|
|
{trigger: "@O", replacement: "\\\\Omega", options: "mA"},
|
|
{trigger: "ome", replacement: "\\\\omega", options: "mA"},
|
|
{trigger: "Ome", replacement: "\\\\Omega", options: "mA"},
|
|
|
|
// Text environment
|
|
{trigger: "text", replacement: "\\\\text{$0}$1", options: "mA"},
|
|
{trigger: "\\"", replacement: "\\\\text{$0}$1", options: "mA"},
|
|
|
|
// Basic operations
|
|
{trigger: "sr", replacement: "^{2}", options: "mA"},
|
|
{trigger: "cb", replacement: "^{3}", options: "mA"},
|
|
{trigger: "rd", replacement: "^{$0}$1", options: "mA"},
|
|
{trigger: "_", replacement: "_{$0}$1", options: "mA"},
|
|
{trigger: "sts", replacement: "_\\\\text{$0}", options: "mA"},
|
|
{trigger: "sq", replacement: "\\\\sqrt{ $0 }$1", options: "mA"},
|
|
{trigger: "//", replacement: "\\\\frac{$0}{$1}$2", options: "mA"},
|
|
{trigger: "ee", replacement: "e^{ $0 }$1", options: "mA"},
|
|
{trigger: "invs", replacement: "^{-1}", options: "mA"},
|
|
{trigger: /([A-Za-z])(\\d)/, replacement: "[[0]]_{[[1]]}", options: "rmA", description: "Auto letter subscript", priority: -1},
|
|
|
|
{trigger: /([^\\\\])(exp|log|ln)/, replacement: "[[0]]\\\\[[1]]", options: "rmA"},
|
|
{trigger: "conj", replacement: "^{*}", options: "mA"},
|
|
{trigger: "Re", replacement: "\\\\mathrm{Re}", options: "mA"},
|
|
{trigger: "Im", replacement: "\\\\mathrm{Im}", options: "mA"},
|
|
{trigger: "bf", replacement: "\\\\mathbf{$0}", options: "mA"},
|
|
{trigger: "rm", replacement: "\\\\mathrm{$0}$1", options: "mA"},
|
|
|
|
// Linear algebra
|
|
{trigger: /([^\\\\])(det)/, replacement: "[[0]]\\\\[[1]]", options: "rmA"},
|
|
{trigger: "trace", replacement: "\\\\mathrm{Tr}", options: "mA"},
|
|
|
|
// More operations
|
|
{trigger: "([a-zA-Z])hat", replacement: "\\\\hat{[[0]]}", options: "rmA"},
|
|
{trigger: "([a-zA-Z])bar", replacement: "\\\\bar{[[0]]}", options: "rmA"},
|
|
{trigger: "([a-zA-Z])dot", replacement: "\\\\dot{[[0]]}", options: "rmA", priority: -1},
|
|
{trigger: "([a-zA-Z])ddot", replacement: "\\\\ddot{[[0]]}", options: "rmA", priority: 1},
|
|
{trigger: "([a-zA-Z])tilde", replacement: "\\\\tilde{[[0]]}", options: "rmA"},
|
|
{trigger: "([a-zA-Z])und", replacement: "\\\\underline{[[0]]}", options: "rmA"},
|
|
{trigger: "([a-zA-Z])vec", replacement: "\\\\vec{[[0]]}", options: "rmA"},
|
|
{trigger: "([a-zA-Z]),\\\\.", replacement: "\\\\mathbf{[[0]]}", options: "rmA"},
|
|
{trigger: "([a-zA-Z])\\\\.,", replacement: "\\\\mathbf{[[0]]}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}),\\\\.", replacement: "\\\\boldsymbol{\\\\[[0]]}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK})\\\\.,", replacement: "\\\\boldsymbol{\\\\[[0]]}", options: "rmA"},
|
|
|
|
{trigger: "hat", replacement: "\\\\hat{$0}$1", options: "mA"},
|
|
{trigger: "bar", replacement: "\\\\bar{$0}$1", options: "mA"},
|
|
{trigger: "dot", replacement: "\\\\dot{$0}$1", options: "mA", priority: -1},
|
|
{trigger: "ddot", replacement: "\\\\ddot{$0}$1", options: "mA"},
|
|
{trigger: "cdot", replacement: "\\\\cdot", options: "mA"},
|
|
{trigger: "tilde", replacement: "\\\\tilde{$0}$1", options: "mA"},
|
|
{trigger: "und", replacement: "\\\\underline{$0}$1", options: "mA"},
|
|
{trigger: "vec", replacement: "\\\\vec{$0}$1", options: "mA"},
|
|
{
|
|
trigger: "pmod",
|
|
replacement: "\\\\pmod{\${0:n}}$1",
|
|
options: "mA",
|
|
description: "Parenthesized modulo (\\\\pmod{n})",
|
|
},
|
|
|
|
// More auto letter subscript
|
|
{trigger: /([A-Za-z])_(\\d\\d)/, replacement: "[[0]]_{[[1]]}", options: "rmA"},
|
|
{trigger: /\\\\hat{([A-Za-z])}(\\d)/, replacement: "\\\\hat{[[0]]}_{[[1]]}", options: "rmA"},
|
|
{trigger: /\\\\vec{([A-Za-z])}(\\d)/, replacement: "\\\\vec{[[0]]}_{[[1]]}", options: "rmA"},
|
|
{trigger: /\\\\mathbf{([A-Za-z])}(\\d)/, replacement: "\\\\mathbf{[[0]]}_{[[1]]}", options: "rmA"},
|
|
|
|
{trigger: "xnn", replacement: "x_{n}", options: "mA"},
|
|
{trigger: "\\\\xii", replacement: "x_{i}", options: "mA", priority: 1},
|
|
{trigger: "xjj", replacement: "x_{j}", options: "mA"},
|
|
{trigger: "xp1", replacement: "x_{n+1}", options: "mA"},
|
|
{trigger: "ynn", replacement: "y_{n}", options: "mA"},
|
|
{trigger: "yii", replacement: "y_{i}", options: "mA"},
|
|
{trigger: "yjj", replacement: "y_{j}", options: "mA"},
|
|
|
|
// Symbols
|
|
{trigger: "ooo", replacement: "\\\\infty", options: "mA"},
|
|
{trigger: "sum", replacement: "\\\\sum", options: "mA"},
|
|
{trigger: "prod", replacement: "\\\\prod", options: "mA"},
|
|
{trigger: "\\\\sum", replacement: "\\\\sum_{\${0:i}=\${1:1}}^{\${2:N}} $3", options: "m"},
|
|
{trigger: "\\\\prod", replacement: "\\\\prod_{\${0:i}=\${1:1}}^{\${2:N}} $3", options: "m"},
|
|
{trigger: "lim", replacement: "\\\\lim_{ \${0:n} \\\\to \${1:\\\\infty} } $2", options: "mA"},
|
|
{trigger: "+-", replacement: "\\\\pm", options: "mA"},
|
|
{trigger: "-+", replacement: "\\\\mp", options: "mA"},
|
|
{trigger: "...", replacement: "\\\\dots", options: "mA"},
|
|
{trigger: "nabl", replacement: "\\\\nabla", options: "mA"},
|
|
// The operator nabla is also called del, but using "del" as a trigger conflicts with the greek letter delta.
|
|
// {trigger: "del", replacement: "\\\\nabla", options: "mA"},
|
|
{trigger: "xx", replacement: "\\\\times", options: "mA"},
|
|
{trigger: "**", replacement: "\\\\cdot", options: "mA"},
|
|
{trigger: "para", replacement: "\\\\parallel", options: "mA"},
|
|
|
|
{trigger: "===", replacement: "\\\\equiv", options: "mA"},
|
|
{trigger: "!=", replacement: "\\\\neq", options: "mA"},
|
|
{trigger: ">=", replacement: "\\\\geq", options: "mA"},
|
|
{trigger: "<=", replacement: "\\\\leq", options: "mA"},
|
|
{trigger: ">>", replacement: "\\\\gg", options: "mA"},
|
|
{trigger: "<<", replacement: "\\\\ll", options: "mA"},
|
|
{trigger: "simm", replacement: "\\\\sim", options: "mA"},
|
|
{trigger: "sim=", replacement: "\\\\simeq", options: "mA"},
|
|
{trigger: "prop", replacement: "\\\\propto", options: "mA"},
|
|
|
|
|
|
{trigger: "<->", replacement: "\\\\leftrightarrow ", options: "mA"},
|
|
{trigger: "->", replacement: "\\\\to", options: "mA"},
|
|
{trigger: "!>", replacement: "\\\\mapsto", options: "mA"},
|
|
{trigger: "=>", replacement: "\\\\implies", options: "mA"},
|
|
{trigger: "=<", replacement: "\\\\impliedby", options: "mA"},
|
|
|
|
{trigger: "and", replacement: "\\\\cap", options: "mA"},
|
|
{trigger: "orr", replacement: "\\\\cup", options: "mA"},
|
|
{trigger: "inn", replacement: "\\\\in", options: "mA"},
|
|
{trigger: "notin", replacement: "\\\\not\\\\in", options: "mA"},
|
|
{trigger: "\\\\\\\\\\\\", replacement: "\\\\setminus", options: "mA"},
|
|
{trigger: "sub=", replacement: "\\\\subseteq", options: "mA"},
|
|
{trigger: "sup=", replacement: "\\\\supseteq", options: "mA"},
|
|
{trigger: "eset", replacement: "\\\\emptyset", options: "mA"},
|
|
{trigger: "set", replacement: "\\\\{ $0 \\\\}$1", options: "mA"},
|
|
{trigger: "e\\\\xi sts", replacement: "\\\\exists", options: "mA", priority: 1},
|
|
|
|
{trigger: "LL", replacement: "\\\\mathcal{L}", options: "mA"},
|
|
{trigger: "HH", replacement: "\\\\mathcal{H}", options: "mA"},
|
|
{trigger: "CC", replacement: "\\\\mathbb{C}", options: "mA"},
|
|
{trigger: "RR", replacement: "\\\\mathbb{R}", options: "mA"},
|
|
{trigger: "ZZ", replacement: "\\\\mathbb{Z}", options: "mA"},
|
|
{trigger: "NN", replacement: "\\\\mathbb{N}", options: "mA"},
|
|
|
|
// Handle spaces and backslashes
|
|
|
|
// Snippet variables can be used as shortcuts when writing snippets.
|
|
// For example, \${GREEK} below is shorthand for "alpha|beta|gamma|Gamma|delta|..."
|
|
// You can edit snippet variables under the Advanced snippet settings section.
|
|
|
|
{trigger: "([^\\\\\\\\])(\${GREEK})", replacement: "[[0]]\\\\[[1]]", options: "rmA", description: "Add backslash before Greek letters"},
|
|
{trigger: "([^\\\\\\\\])(\${SYMBOL})", replacement: "[[0]]\\\\[[1]]", options: "rmA", description: "Add backslash before symbols"},
|
|
|
|
// Insert space after Greek letters and symbols
|
|
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}|\${MORE_SYMBOLS})([A-Za-z])", replacement: "\\\\[[0]] [[1]]", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) sr", replacement: "\\\\[[0]]^{2}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) cb", replacement: "\\\\[[0]]^{3}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) rd", replacement: "\\\\[[0]]^{$0}$1", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}) hat", replacement: "\\\\hat{\\\\[[0]]}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}) dot", replacement: "\\\\dot{\\\\[[0]]}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}) bar", replacement: "\\\\bar{\\\\[[0]]}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}) vec", replacement: "\\\\vec{\\\\[[0]]}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}) tilde", replacement: "\\\\tilde{\\\\[[0]]}", options: "rmA"},
|
|
{trigger: "\\\\\\\\(\${GREEK}) und", replacement: "\\\\underline{\\\\[[0]]}", options: "rmA"},
|
|
|
|
|
|
// Derivatives and integrals
|
|
{trigger: "par", replacement: "\\\\frac{ \\\\partial \${0:y} }{ \\\\partial \${1:x} } $2", options: "m"},
|
|
{trigger: /pa([A-Za-z])([A-Za-z])/, replacement: "\\\\frac{ \\\\partial [[0]] }{ \\\\partial [[1]] } ", options: "rm"},
|
|
{trigger: "ddt", replacement: "\\\\frac{d}{dt} ", options: "mA"},
|
|
|
|
{trigger: /([^\\\\])int/, replacement: "[[0]]\\\\int", options: "mA", priority: -1},
|
|
{trigger: "\\\\int", replacement: "\\\\int $0 \\\\, d\${1:x} $2", options: "m"},
|
|
{trigger: "dint", replacement: "\\\\int_{\${0:0}}^{\${1:1}} $2 \\\\, d\${3:x} $4", options: "mA"},
|
|
{trigger: "oint", replacement: "\\\\oint", options: "mA"},
|
|
{trigger: "iint", replacement: "\\\\iint", options: "mA"},
|
|
{trigger: "iiint", replacement: "\\\\iiint", options: "mA"},
|
|
{trigger: "oinf", replacement: "\\\\int_{0}^{\\\\infty} $0 \\\\, d\${1:x} $2", options: "mA"},
|
|
{trigger: "infi", replacement: "\\\\int_{-\\\\infty}^{\\\\infty} $0 \\\\, d\${1:x} $2", options: "mA"},
|
|
|
|
|
|
// Trigonometry
|
|
{trigger: /([^\\\\])(arcsin|sin|arccos|cos|arctan|tan|csc|sec|cot)/, replacement: "[[0]]\\\\[[1]]", options: "rmA", description: "Add backslash before trig funcs"},
|
|
|
|
{trigger: /\\\\(arcsin|sin|arccos|cos|arctan|tan|csc|sec|cot)([A-Za-gi-z])/,
|
|
replacement: "\\\\[[0]] [[1]]", options: "rmA",
|
|
description: "Add space after trig funcs. Skips letter h to allow sinh, cosh, etc."},
|
|
|
|
{trigger: /\\\\(sinh|cosh|tanh|coth)([A-Za-z])/,
|
|
replacement: "\\\\[[0]] [[1]]", options: "rmA",
|
|
description: "Add space after hyperbolic trig funcs"},
|
|
|
|
{
|
|
trigger: /(arccsc|arcsec|arccot)/,
|
|
replacement: "\\\\operatorname{[[0]]}$0",
|
|
options: "mA",
|
|
description: "Inverse trig functions, Are not built-in MathJax functions",
|
|
priority: 1,
|
|
},
|
|
|
|
// Visual operations
|
|
{trigger: "U", replacement: "\\\\underbrace{ \${VISUAL} }_{ $0 }", options: "mA"},
|
|
{trigger: "O", replacement: "\\\\overbrace{ \${VISUAL} }^{ $0 }", options: "mA"},
|
|
{trigger: "B", replacement: "\\\\underset{ $0 }{ \${VISUAL} }", options: "mA"},
|
|
{trigger: "C", replacement: "\\\\cancel{ \${VISUAL} }", options: "mA"},
|
|
{trigger: "K", replacement: "\\\\cancelto{ $0 }{ \${VISUAL} }", options: "mA"},
|
|
{trigger: "S", replacement: "\\\\sqrt{ \${VISUAL} }", options: "mA"},
|
|
|
|
|
|
// Physics
|
|
{trigger: "kbt", replacement: "k_{B}T", options: "mA"},
|
|
{trigger: "msun", replacement: "M_{\\\\odot}", options: "mA"},
|
|
|
|
// Quantum mechanics
|
|
{trigger: "dag", replacement: "^{\\\\dagger}", options: "mA"},
|
|
{trigger: "o+", replacement: "\\\\oplus ", options: "mA"},
|
|
{trigger: "ox", replacement: "\\\\otimes ", options: "mA"},
|
|
{trigger: "bra", replacement: "\\\\bra{$0} $1", options: "mA"},
|
|
{trigger: "ket", replacement: "\\\\ket{$0} $1", options: "mA"},
|
|
{trigger: "brk", replacement: "\\\\braket{ $0 | $1 } $2", options: "mA"},
|
|
{trigger: "outer", replacement: "\\\\ket{\${0:\\\\psi}} \\\\bra{\${0:\\\\psi}} $1", options: "mA"},
|
|
|
|
// Chemistry
|
|
{trigger: "pu", replacement: "\\\\pu{ $0 }", options: "mA"},
|
|
{trigger: "cee", replacement: "\\\\ce{ $0 }", options: "mA"},
|
|
{trigger: "he4", replacement: "{}^{4}_{2}He ", options: "mA"},
|
|
{trigger: "he3", replacement: "{}^{3}_{2}He ", options: "mA"},
|
|
{trigger: "iso", replacement: "{}^{\${0:4}}_{\${1:2}}\${2:He}", options: "mA"},
|
|
|
|
|
|
// Environments
|
|
// Here the regex syntax [pbBvV]mat is used to match pmat, bmat, Bmat, vmat, Vmat
|
|
{
|
|
trigger: /([pbBvV]mat)/,
|
|
replacement: "\\\\begin{[[0]]rix}\\n$0\\n\\\\end{[[0]]rix}",
|
|
options: "rMA",
|
|
description: "Matrix environments with new lines",
|
|
},
|
|
{
|
|
trigger: /(matrix|cases|align|array)/,
|
|
replacement: "\\\\begin{[[0]]}\\n$0\\n\\\\end{[[0]]}",
|
|
options: "rMA",
|
|
description: "Miscellaneous environments with new lines",
|
|
},
|
|
{
|
|
trigger: /([pbBvV]mat)/,
|
|
replacement: "\\\\begin{[[0]]rix}$0\\\\end{[[0]]rix}",
|
|
options: "rnA",
|
|
},
|
|
{
|
|
trigger: /(matrix|cases|align|array)/,
|
|
replacement: "\\\\begin{[[0]]}$0\\\\end{[[0]]}",
|
|
options: "rnA",
|
|
},
|
|
|
|
// Brackets
|
|
{trigger: "avg", replacement: "\\\\langle $0 \\\\rangle $1", options: "mA"},
|
|
{trigger: "norm", replacement: "\\\\lvert $0 \\\\rvert $1", options: "mA", priority: 1},
|
|
{trigger: "Norm", replacement: "\\\\lVert $0 \\\\rVert $1", options: "mA", priority: 1},
|
|
{trigger: "ceil", replacement: "\\\\lceil $0 \\\\rceil $1", options: "mA"},
|
|
{trigger: "floor", replacement: "\\\\lfloor $0 \\\\rfloor $1", options: "mA"},
|
|
// For the modulo operator, see the section "More operations" above
|
|
{trigger: "mod", replacement: "|$0|$1", options: "mA"},
|
|
{trigger: "(", replacement: "(\${VISUAL})", options: "mA"},
|
|
{trigger: "[", replacement: "[\${VISUAL}]", options: "mA"},
|
|
{trigger: "{", replacement: "{\${VISUAL}}", options: "mA"},
|
|
{trigger: "(", replacement: "($0)$1", options: "mA"},
|
|
{trigger: "{", replacement: "{$0}$1", options: "mA"},
|
|
{trigger: "[", replacement: "[$0]$1", options: "mA"},
|
|
{trigger: "lr(", replacement: "\\\\left( $0 \\\\right) $1", options: "mA"},
|
|
{trigger: "lr{", replacement: "\\\\left\\\\{ $0 \\\\right\\\\} $1", options: "mA"},
|
|
{trigger: "lr[", replacement: "\\\\left[ $0 \\\\right] $1", options: "mA"},
|
|
{trigger: "lr|", replacement: "\\\\left| $0 \\\\right| $1", options: "mA"},
|
|
{trigger: "lra", replacement: "\\\\left< $0 \\\\right> $1", options: "mA"},
|
|
|
|
|
|
// Misc
|
|
|
|
// Automatically convert standalone letters in text to math (except a, A, I).
|
|
// (Un-comment to enable)
|
|
// {trigger: /([^'])\\b([B-HJ-Zb-z])\\b([\\n\\s.,?!:'])/, replacement: "[[0]]$[[1]]$[[2]]", options: "tA"},
|
|
|
|
// Automatically convert Greek letters in text to math.
|
|
// {trigger: "(\${GREEK})([\\\\n\\\\s.,?!:'])", replacement: "$\\\\[[0]]$[[1]]", options: "rtAw"},
|
|
|
|
// Automatically convert text of the form "x=2" and "x=n+1" to math.
|
|
// {trigger: /([A-Za-z]=\\d+)([\\n\\s.,?!:'])/, replacement: "$[[0]]$[[1]]", options: "rtAw"},
|
|
// {trigger: /([A-Za-z]=[A-Za-z][+-]\\d+)([\\n\\s.,?!:'])/, replacement: "$[[0]]$[[1]]", options: "tAw"},
|
|
|
|
|
|
// Snippet replacements can have placeholders.
|
|
{trigger: "tayl", replacement: "\${0:f}(\${1:x} + \${2:h}) = \${0:f}(\${1:x}) + \${0:f}'(\${1:x})\${2:h} + \${0:f}''(\${1:x}) \\\\frac{\${2:h}^{2}}{2!} + \\\\dots$3", options: "mA", description: "Taylor expansion"},
|
|
|
|
// Snippet replacements can also be JavaScript functions.
|
|
// See the documentation for more information.
|
|
{trigger: /iden(\\d)/, replacement: (match) => {
|
|
const n = match[1];
|
|
|
|
let arr = [];
|
|
for (let j = 0; j < n; j++) {
|
|
arr[j] = [];
|
|
for (let i = 0; i < n; i++) {
|
|
arr[j][i] = (i === j) ? 1 : 0;
|
|
}
|
|
}
|
|
|
|
let output = arr.map(el => el.join(" & ")).join(" \\\\\\\\\\n");
|
|
output = \`\\\\begin{pmatrix}\\n\${output}\\n\\\\end{pmatrix}\`;
|
|
return output;
|
|
}, options: "mA", description: "N x N identity matrix"},
|
|
]
|
|
`;var Qn=Ag;var Rg=`{
|
|
"\${GREEK}": "(?:alpha|beta|gamma|Gamma|delta|Delta|epsilon|varepsilon|zeta|eta|theta|vartheta|Theta|iota|kappa|lambda|Lambda|mu|nu|xi|omicron|pi|rho|varrho|sigma|Sigma|tau|upsilon|Upsilon|phi|varphi|Phi|chi|psi|omega|Omega)",
|
|
"\${SYMBOL}": "(?:parallel|perp|partial|nabla|hbar|ell|infty|oplus|ominus|otimes|oslash|square|star|dagger|vee|wedge|subseteq|subset|supseteq|supset|emptyset|exists|nexists|forall|implies|impliedby|iff|setminus|neg|lor|land|bigcup|bigcap|cdot|times|simeq|approx)",
|
|
"\${MORE_SYMBOLS}": "(?:leq|geq|neq|gg|ll|equiv|sim|propto|rightarrow|leftarrow|Rightarrow|Leftarrow|leftrightarrow|to|mapsto|cap|cup|in|sum|prod|exp|ln|log|det|dots|vdots|ddots|pm|mp|int|iint|iiint|oint)"
|
|
}
|
|
`;var Ig=Rg;var G={snippets:Qn,snippetVariables:Ig,snippetsEnabled:!0,snippetsTrigger:"Tab",snippetNextTabstopTrigger:"Tab",snippetPreviousTabstopTrigger:"Shift-Tab",suppressSnippetTriggerOnIME:!0,suppressIMEWarning:!1,removeSnippetWhitespace:!0,autoDelete$:!0,loadSnippetsFromFile:!1,loadSnippetVariablesFromFile:!1,snippetsFileLocation:"",snippetVariablesFileLocation:"",concealEnabled:!1,concealRevealTimeout:0,colorPairedBracketsEnabled:!0,highlightCursorBracketsEnabled:!0,mathPreviewEnabled:!0,mathPreviewPositionIsAbove:!0,mathPreviewCursor:"\u25B6",mathPreviewBracketHighlighting:!1,autofractionEnabled:!0,autofractionSymbol:"\\frac",autofractionBreakingChars:"+-= ",matrixShortcutsEnabled:!0,taboutEnabled:!0,taboutTrigger:"Tab",autoEnlargeBrackets:!0,wordDelimiters:"., +-\\n :;!?\\/{}[]()=~$'\"|`<>*^%#@&",autofractionExcludedEnvs:`[
|
|
["^{", "}"],
|
|
["\\\\pu{", "}"]
|
|
]`,matrixShortcutsEnvNames:"pmatrix, cases, align, gather, bmatrix, Bmatrix, vmatrix, Vmatrix, array, matrix",taboutClosingSymbols:"), ], \\rbrack, \\}, \\rbrace, \\rangle, \\rvert, \\rVert, \\rfloor, \\rceil, \\urcorner, }",autoEnlargeBracketsTriggers:"sum, int, frac, prod, bigcup, bigcap",forceMathLanguages:"math",snippetDebug:"off",vimEnabled:!1,vimSelectMode:"<C-g>",vimVisualMode:"<C-g>",vimMatrixEnter:"o"};function $n(t,e){function r(i){return i.replace(/\s/g,"").split(",")}function n(i){let o=[];try{o=JSON.parse(i).map(function(a){return{openSymbol:a[0],closeSymbol:a[1]}})}catch(s){console.error(s)}return o}return Le($e({},e),{snippets:t,autofractionExcludedEnvs:n(e.autofractionExcludedEnvs),matrixShortcutsEnvNames:r(e.matrixShortcutsEnvNames),taboutClosingSymbols:new Set(r(e.taboutClosingSymbols)),autoEnlargeBracketsTriggers:r(e.autoEnlargeBracketsTriggers).map(i=>/[A-Za-z]+/.test(i)?`\\${i}`:i),forceMathLanguages:r(e.forceMathLanguages)})}var Xo=require("@codemirror/state"),Oc=require("@codemirror/view"),E=require("obsidian");var iy=require("obsidian");var D="top",ee="bottom",H="right",z="left",ao="auto",vt=[D,ee,H,z],Ke="start",Wt="end",jg="clippingParents",lo="viewport",wr="popper",Zg="reference",Sl=vt.reduce(function(t,e){return t.concat([e+"-"+Ke,e+"-"+Wt])},[]),co=[].concat(vt,[ao]).reduce(function(t,e){return t.concat([e,e+"-"+Ke,e+"-"+Wt])},[]),KP="beforeRead",JP="read",eE="afterRead",tE="beforeMain",rE="main",nE="afterMain",iE="beforeWrite",oE="write",sE="afterWrite",Mg=[KP,JP,eE,tE,rE,nE,iE,oE,sE];function ne(t){return t?(t.nodeName||"").toLowerCase():null}function F(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Be(t){var e=F(t).Element;return t instanceof e||t instanceof Element}function te(t){var e=F(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Tr(t){if(typeof ShadowRoot=="undefined")return!1;var e=F(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function aE(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},i=e.attributes[r]||{},o=e.elements[r];!te(o)||!ne(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function lE(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],o=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!te(i)||!ne(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var Wg={name:"applyStyles",enabled:!0,phase:"write",fn:aE,effect:lE,requires:["computeStyles"]};function ie(t){return t.split("-")[0]}var je=Math.max,Xt=Math.min,Je=Math.round;function Te(t,e){e===void 0&&(e=!1);var r=t.getBoundingClientRect(),n=1,i=1;if(te(t)&&e){var o=t.offsetHeight,s=t.offsetWidth;s>0&&(n=Je(r.width)/s||1),o>0&&(i=Je(r.height)/o||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function Vt(t){var e=Te(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function wn(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Tr(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function me(t){return F(t).getComputedStyle(t)}function xl(t){return["table","td","th"].indexOf(ne(t))>=0}function ae(t){return((Be(t)?t.ownerDocument:t.document)||window.document).documentElement}function et(t){return ne(t)==="html"?t:t.assignedSlot||t.parentNode||(Tr(t)?t.host:null)||ae(t)}function Xg(t){return!te(t)||me(t).position==="fixed"?null:t.offsetParent}function cE(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&te(t)){var n=me(t);if(n.position==="fixed")return null}var i=et(t);for(Tr(i)&&(i=i.host);te(i)&&["html","body"].indexOf(ne(i))<0;){var o=me(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Ze(t){for(var e=F(t),r=Xg(t);r&&xl(r)&&me(r).position==="static";)r=Xg(r);return r&&(ne(r)==="html"||ne(r)==="body"&&me(r).position==="static")?e:r||cE(t)||e}function Gt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Dt(t,e,r){return je(t,Xt(e,r))}function Vg(t,e,r){var n=Dt(t,e,r);return n>r?r:n}function Tn(){return{top:0,right:0,bottom:0,left:0}}function Pn(t){return Object.assign({},Tn(),t)}function En(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var uE=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Pn(typeof e!="number"?e:En(e,vt))};function pE(t){var e,r=t.state,n=t.name,i=t.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,a=ie(r.placement),l=Gt(a),u=[z,H].indexOf(a)>=0,c=u?"height":"width";if(!(!o||!s)){var p=uE(i.padding,r),h=Vt(o),f=l==="y"?D:z,d=l==="y"?ee:H,m=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],g=s[l]-r.rects.reference[l],y=Ze(o),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,T=m/2-g/2,S=p[f],x=v-h[c]-p[d],b=v/2-h[c]/2+T,w=Dt(S,b,x),A=l;r.modifiersData[n]=(e={},e[A]=w,e.centerOffset=w-b,e)}}function fE(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||wn(e.elements.popper,i)&&(e.elements.arrow=i))}var Gg={name:"arrow",enabled:!0,phase:"main",fn:pE,effect:fE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pe(t){return t.split("-")[1]}var hE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function OE(t){var e=t.x,r=t.y,n=window,i=n.devicePixelRatio||1;return{x:Je(e*i)/i||0,y:Je(r*i)/i||0}}function Dg(t){var e,r=t.popper,n=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,p=t.isFixed,h=s.x,f=h===void 0?0:h,d=s.y,m=d===void 0?0:d,g=typeof c=="function"?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),T=z,S=D,x=window;if(u){var b=Ze(r),w="clientHeight",A="clientWidth";if(b===F(r)&&(b=ae(r),me(b).position!=="static"&&a==="absolute"&&(w="scrollHeight",A="scrollWidth")),b=b,i===D||(i===z||i===H)&&o===Wt){S=ee;var k=p&&b===x&&x.visualViewport?x.visualViewport.height:b[w];m-=k-n.height,m*=l?1:-1}if(i===z||(i===D||i===ee)&&o===Wt){T=H;var P=p&&b===x&&x.visualViewport?x.visualViewport.width:b[A];f-=P-n.width,f*=l?1:-1}}var q=Object.assign({position:a},u&&hE),j=c===!0?OE({x:f,y:m}):{x:f,y:m};if(f=j.x,m=j.y,l){var Z;return Object.assign({},q,(Z={},Z[S]=v?"0":"",Z[T]=y?"0":"",Z.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",Z))}return Object.assign({},q,(e={},e[S]=v?m+"px":"",e[T]=y?f+"px":"",e.transform="",e))}function dE(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,a=r.roundOffsets,l=a===void 0?!0:a;if(0)var u;var c={placement:ie(e.placement),variation:Pe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Dg(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Dg(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Bg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dE,data:{}};var uo={passive:!0};function mE(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,a=s===void 0?!0:s,l=F(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",r.update,uo)}),a&&l.addEventListener("resize",r.update,uo),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",r.update,uo)}),a&&l.removeEventListener("resize",r.update,uo)}}var Ng={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mE,data:{}};var gE={left:"right",right:"left",bottom:"top",top:"bottom"};function Pr(t){return t.replace(/left|right|bottom|top/g,function(e){return gE[e]})}var yE={start:"end",end:"start"};function po(t){return t.replace(/start|end/g,function(e){return yE[e]})}function Bt(t){var e=F(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Nt(t){return Te(ae(t)).left+Bt(t).scrollLeft}function Ql(t){var e=F(t),r=ae(t),n=e.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,a=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,a=n.offsetTop)),{width:i,height:o,x:s+Nt(t),y:a}}function $l(t){var e,r=ae(t),n=Bt(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=je(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=je(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+Nt(t),l=-n.scrollTop;return me(i||r).direction==="rtl"&&(a+=je(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function zt(t){var e=me(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function fo(t){return["html","body","#document"].indexOf(ne(t))>=0?t.ownerDocument.body:te(t)&&zt(t)?t:fo(et(t))}function bt(t,e){var r;e===void 0&&(e=[]);var n=fo(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),o=F(n),s=i?[o].concat(o.visualViewport||[],zt(n)?n:[]):n,a=e.concat(s);return i?a:a.concat(bt(et(s)))}function Er(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vE(t){var e=Te(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function zg(t,e){return e===lo?Er(Ql(t)):Be(e)?vE(e):Er($l(ae(t)))}function bE(t){var e=bt(et(t)),r=["absolute","fixed"].indexOf(me(t).position)>=0,n=r&&te(t)?Ze(t):t;return Be(n)?e.filter(function(i){return Be(i)&&wn(i,n)&&ne(i)!=="body"}):[]}function wl(t,e,r){var n=e==="clippingParents"?bE(t):[].concat(e),i=[].concat(n,[r]),o=i[0],s=i.reduce(function(a,l){var u=zg(t,l);return a.top=je(u.top,a.top),a.right=Xt(u.right,a.right),a.bottom=Xt(u.bottom,a.bottom),a.left=je(u.left,a.left),a},zg(t,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function kn(t){var e=t.reference,r=t.element,n=t.placement,i=n?ie(n):null,o=n?Pe(n):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,l;switch(i){case D:l={x:s,y:e.y-r.height};break;case ee:l={x:s,y:e.y+e.height};break;case H:l={x:e.x+e.width,y:a};break;case z:l={x:e.x-r.width,y:a};break;default:l={x:e.x,y:e.y}}var u=i?Gt(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Ke:l[u]=l[u]-(e[c]/2-r[c]/2);break;case Wt:l[u]=l[u]+(e[c]/2-r[c]/2);break;default:}}return l}function Me(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,o=r.boundary,s=o===void 0?jg:o,a=r.rootBoundary,l=a===void 0?lo:a,u=r.elementContext,c=u===void 0?wr:u,p=r.altBoundary,h=p===void 0?!1:p,f=r.padding,d=f===void 0?0:f,m=Pn(typeof d!="number"?d:En(d,vt)),g=c===wr?Zg:wr,y=t.rects.popper,v=t.elements[h?g:c],T=wl(Be(v)?v:v.contextElement||ae(t.elements.popper),s,l),S=Te(t.elements.reference),x=kn({reference:S,element:y,strategy:"absolute",placement:i}),b=Er(Object.assign({},y,x)),w=c===wr?b:S,A={top:T.top-w.top+m.top,bottom:w.bottom-T.bottom+m.bottom,left:T.left-w.left+m.left,right:w.right-T.right+m.right},k=t.modifiersData.offset;if(c===wr&&k){var P=k[i];Object.keys(A).forEach(function(q){var j=[H,ee].indexOf(q)>=0?1:-1,Z=[D,ee].indexOf(q)>=0?"y":"x";A[q]+=P[Z]*j})}return A}function Tl(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?co:l,c=Pe(n),p=c?a?Sl:Sl.filter(function(d){return Pe(d)===c}):vt,h=p.filter(function(d){return u.indexOf(d)>=0});h.length===0&&(h=p);var f=h.reduce(function(d,m){return d[m]=Me(t,{placement:m,boundary:i,rootBoundary:o,padding:s})[ie(m)],d},{});return Object.keys(f).sort(function(d,m){return f[d]-f[m]})}function SE(t){if(ie(t)===ao)return[];var e=Pr(t);return[po(t),e,po(e)]}function xE(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,p=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,d=f===void 0?!0:f,m=r.allowedAutoPlacements,g=e.options.placement,y=ie(g),v=y===g,T=l||(v||!d?[Pr(g)]:SE(g)),S=[g].concat(T).reduce(function(Fe,it){return Fe.concat(ie(it)===ao?Tl(e,{placement:it,boundary:c,rootBoundary:p,padding:u,flipVariations:d,allowedAutoPlacements:m}):it)},[]),x=e.rects.reference,b=e.rects.popper,w=new Map,A=!0,k=S[0],P=0;P<S.length;P++){var q=S[P],j=ie(q),Z=Pe(q)===Ke,se=[D,ee].indexOf(j)>=0,ce=se?"width":"height",W=Me(e,{placement:q,boundary:c,rootBoundary:p,altBoundary:h,padding:u}),ge=se?Z?H:z:Z?ee:D;x[ce]>b[ce]&&(ge=Pr(ge));var Se=Pr(ge),J=[];if(o&&J.push(W[j]<=0),a&&J.push(W[ge]<=0,W[Se]<=0),J.every(function(Fe){return Fe})){k=q,A=!1;break}w.set(q,J)}if(A)for(var ye=d?3:1,Ce=function(it){var Dr=S.find(function(zn){var wt=w.get(zn);if(wt)return wt.slice(0,it).every(function(Jo){return Jo})});if(Dr)return k=Dr,"break"},Qe=ye;Qe>0;Qe--){var ze=Ce(Qe);if(ze==="break")break}e.placement!==k&&(e.modifiersData[n]._skip=!0,e.placement=k,e.reset=!0)}}var Fg={name:"flip",enabled:!0,phase:"main",fn:xE,requiresIfExists:["offset"],data:{_skip:!1}};function Lg(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Ug(t){return[D,H,ee,z].some(function(e){return t[e]>=0})}function QE(t){var e=t.state,r=t.name,n=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Me(e,{elementContext:"reference"}),a=Me(e,{altBoundary:!0}),l=Lg(s,n),u=Lg(a,i,o),c=Ug(l),p=Ug(u);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var Yg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QE};function $E(t,e,r){var n=ie(t),i=[z,D].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[z,H].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function wE(t){var e=t.state,r=t.options,n=t.name,i=r.offset,o=i===void 0?[0,0]:i,s=co.reduce(function(c,p){return c[p]=$E(p,e.rects,o),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}var Hg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wE};function TE(t){var e=t.state,r=t.name;e.modifiersData[r]=kn({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Kg={name:"popperOffsets",enabled:!0,phase:"read",fn:TE,data:{}};function Pl(t){return t==="x"?"y":"x"}function PE(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,p=r.padding,h=r.tether,f=h===void 0?!0:h,d=r.tetherOffset,m=d===void 0?0:d,g=Me(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:c}),y=ie(e.placement),v=Pe(e.placement),T=!v,S=Gt(y),x=Pl(S),b=e.modifiersData.popperOffsets,w=e.rects.reference,A=e.rects.popper,k=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,P=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(b){if(o){var Z,se=S==="y"?D:z,ce=S==="y"?ee:H,W=S==="y"?"height":"width",ge=b[S],Se=ge+g[se],J=ge-g[ce],ye=f?-A[W]/2:0,Ce=v===Ke?w[W]:A[W],Qe=v===Ke?-A[W]:-w[W],ze=e.elements.arrow,Fe=f&&ze?Vt(ze):{width:0,height:0},it=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Tn(),Dr=it[se],zn=it[ce],wt=Dt(0,w[W],Fe[W]),Jo=T?w[W]/2-ye-wt-Dr-P.mainAxis:Ce-wt-Dr-P.mainAxis,Uv=T?-w[W]/2+ye+wt+zn+P.mainAxis:Qe+wt+zn+P.mainAxis,es=e.elements.arrow&&Ze(e.elements.arrow),Yv=es?S==="y"?es.clientTop||0:es.clientLeft||0:0,xc=(Z=q==null?void 0:q[S])!=null?Z:0,Hv=ge+Jo-xc-Yv,Kv=ge+Uv-xc,Qc=Dt(f?Xt(Se,Hv):Se,ge,f?je(J,Kv):J);b[S]=Qc,j[S]=Qc-ge}if(a){var $c,Jv=S==="x"?D:z,eb=S==="x"?ee:H,Tt=b[x],Fn=x==="y"?"height":"width",wc=Tt+g[Jv],Tc=Tt-g[eb],ts=[D,z].indexOf(y)!==-1,Pc=($c=q==null?void 0:q[x])!=null?$c:0,Ec=ts?wc:Tt-w[Fn]-A[Fn]-Pc+P.altAxis,kc=ts?Tt+w[Fn]+A[Fn]-Pc-P.altAxis:Tc,qc=f&&ts?Vg(Ec,Tt,kc):Dt(f?Ec:wc,Tt,f?kc:Tc);b[x]=qc,j[x]=qc-Tt}e.modifiersData[n]=j}}var Jg={name:"preventOverflow",enabled:!0,phase:"main",fn:PE,requiresIfExists:["offset"]};function El(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function kl(t){return t===F(t)||!te(t)?Bt(t):El(t)}function EE(t){var e=t.getBoundingClientRect(),r=Je(e.width)/t.offsetWidth||1,n=Je(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ql(t,e,r){r===void 0&&(r=!1);var n=te(e),i=te(e)&&EE(e),o=ae(e),s=Te(t,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((ne(e)!=="body"||zt(o))&&(a=kl(e)),te(e)?(l=Te(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Nt(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function kE(t){var e=new Map,r=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=e.get(a);l&&i(l)}}),n.push(o)}return t.forEach(function(o){r.has(o.name)||i(o)}),n}function _l(t){var e=kE(t);return Mg.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function Cl(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Al(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var ey={placement:"bottom",modifiers:[],strategy:"absolute"};function ty(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ry(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,o=i===void 0?ey:i;return function(a,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ey,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],h=!1,f={state:c,setOptions:function(y){var v=typeof y=="function"?y(c.options):y;m(),c.options=Object.assign({},o,c.options,v),c.scrollParents={reference:Be(a)?bt(a):a.contextElement?bt(a.contextElement):[],popper:bt(l)};var T=_l(Al([].concat(n,c.options.modifiers)));if(c.orderedModifiers=T.filter(function(q){return q.enabled}),0){var S;if(getBasePlacement(c.options.placement)===auto)var x;var b,w,A,k,P}return d(),f.update()},forceUpdate:function(){if(!h){var y=c.elements,v=y.reference,T=y.popper;if(ty(v,T)){c.rects={reference:ql(v,Ze(T),c.options.strategy==="fixed"),popper:Vt(T)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(q){return c.modifiersData[q.name]=Object.assign({},q.data)});for(var S=0,x=0;x<c.orderedModifiers.length;x++){if(c.reset===!0){c.reset=!1,x=-1;continue}var b=c.orderedModifiers[x],w=b.fn,A=b.options,k=A===void 0?{}:A,P=b.name;typeof w=="function"&&(c=w({state:c,options:k,name:P,instance:f})||c)}}}},update:Cl(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){m(),h=!0}};if(!ty(a,l))return f;f.setOptions(u).then(function(g){!h&&u.onFirstUpdate&&u.onFirstUpdate(g)});function d(){c.orderedModifiers.forEach(function(g){var y=g.name,v=g.options,T=v===void 0?{}:v,S=g.effect;if(typeof S=="function"){var x=S({state:c,name:y,instance:f,options:T}),b=function(){};p.push(x||b)}})}function m(){p.forEach(function(g){return g()}),p=[]}return f}}var qE=[Ng,Kg,Bg,Wg,Hg,Fg,Jg,Gg,Yg],Rl=ry({defaultModifiers:qE});var ny=require("obsidian"),_E=(t,e)=>(t%e+e)%e,Il=class{constructor(e,r,n){this.owner=e,this.containerEl=r,r.on("click",".suggestion-item",this.onSuggestionClick.bind(this)),r.on("mousemove",".suggestion-item",this.onSuggestionMouseover.bind(this)),n.register([],"ArrowUp",i=>{if(!i.isComposing)return this.setSelectedItem(this.selectedItem-1,!0),!1}),n.register([],"ArrowDown",i=>{if(!i.isComposing)return this.setSelectedItem(this.selectedItem+1,!0),!1}),n.register([],"Enter",i=>{if(!i.isComposing)return this.useSelectedItem(i),!1})}onSuggestionClick(e,r){e.preventDefault();let n=this.suggestions.indexOf(r);this.setSelectedItem(n,!1),this.useSelectedItem(e)}onSuggestionMouseover(e,r){let n=this.suggestions.indexOf(r);this.setSelectedItem(n,!1)}setSuggestions(e){this.containerEl.empty();let r=[];e.forEach(n=>{let i=this.containerEl.createDiv("suggestion-item");this.owner.renderSuggestion(n,i),r.push(i)}),this.values=e,this.suggestions=r,this.setSelectedItem(0,!1)}useSelectedItem(e){let r=this.values[this.selectedItem];r&&this.owner.selectSuggestion(r,e)}setSelectedItem(e,r){let n=_E(e,this.suggestions.length),i=this.suggestions[this.selectedItem],o=this.suggestions[n];i==null||i.removeClass("is-selected"),o==null||o.addClass("is-selected"),this.selectedItem=n,r&&o.scrollIntoView(!1)}},ho=class{constructor(e,r){this.app=e,this.inputEl=r,this.scope=new ny.Scope,this.suggestEl=createDiv("suggestion-container");let n=this.suggestEl.createDiv("suggestion");this.suggest=new Il(this,n,this.scope),this.scope.register([],"Escape",this.close.bind(this)),this.inputEl.addEventListener("input",this.onInputChanged.bind(this)),this.inputEl.addEventListener("focus",this.onInputChanged.bind(this)),this.inputEl.addEventListener("blur",this.close.bind(this)),this.suggestEl.on("mousedown",".suggestion-container",i=>{i.preventDefault()})}onInputChanged(){let e=this.inputEl.value,r=this.getSuggestions(e);r.length>0&&(this.suggest.setSuggestions(r),this.open(this.app.dom.appContainerEl,this.inputEl))}open(e,r){this.app.keymap.pushScope(this.scope),e.appendChild(this.suggestEl),this.popper=Rl(r,this.suggestEl,{placement:"bottom-start",modifiers:[{name:"sameWidth",enabled:!0,fn:({state:n,instance:i})=>{let o=`${n.rects.reference.width}px`;n.styles.popper.width!==o&&(n.styles.popper.width=o,i.update())},phase:"beforeWrite",requires:["computeStyles"]}]})}close(){this.app.keymap.popScope(this.scope),this.suggest.setSuggestions([]),this.popper.destroy(),this.suggestEl.detach()}};var qn=class extends ho{getSuggestions(e){let r=[],n=e.toLowerCase();return iy.Vault.recurseChildren(this.app.vault.getRoot(),i=>{i.path.toLowerCase().contains(n)&&r.push(i)}),r}renderSuggestion(e,r){r.setText(e.path)}selectSuggestion(e){this.inputEl.value=e.path,this.inputEl.trigger("input"),this.close()}};var be=require("@codemirror/view"),Ry=require("@codemirror/state");var CE=0,_n=class{constructor(e,r){this.from=e,this.to=r}},X=class{constructor(e={}){this.id=CE++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ee.match(e)),r=>{let n=e(r);return n===void 0?null:[this,n]}}};X.closedBy=new X({deserialize:t=>t.split(" ")});X.openedBy=new X({deserialize:t=>t.split(" ")});X.group=new X({deserialize:t=>t.split(" ")});X.contextHash=new X({perNode:!0});X.lookAhead=new X({perNode:!0});X.mounted=new X({perNode:!0});var kr=class{constructor(e,r,n){this.tree=e,this.overlay=r,this.parser=n}static get(e){return e&&e.props&&e.props[X.mounted.id]}},AE=Object.create(null),Ee=class t{constructor(e,r,n,i=0){this.name=e,this.props=r,this.id=n,this.flags=i}static define(e){let r=e.props&&e.props.length?Object.create(null):AE,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new t(e.name||"",r,e.id,n);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");r[o[0].id]=o[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 r=this.prop(X.group);return r?r.indexOf(e)>-1:!1}return this.id==e}static match(e){let r=Object.create(null);for(let n in e)for(let i of n.split(" "))r[i]=e[n];return n=>{for(let i=n.prop(X.group),o=-1;o<(i?i.length:0);o++){let s=r[o<0?n.name:i[o]];if(s)return s}}}};Ee.none=new Ee("",Object.create(null),0,8);var go=class t{constructor(e){this.types=e;for(let r=0;r<e.length;r++)if(e[r].id!=r)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let r=[];for(let n of this.types){let i=null;for(let o of e){let s=o(n);s&&(i||(i=Object.assign({},n.props)),i[s[0].id]=s[1])}r.push(i?new Ee(n.name,i,n.id,n.flags):n)}return new t(r)}},Oo=new WeakMap,oy=new WeakMap,K;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(K||(K={}));var ve=class t{constructor(e,r,n,i,o){if(this.type=e,this.children=r,this.positions=n,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[s,a]of o)this.props[typeof s=="number"?s:s.id]=a}}toString(){let e=kr.get(this);if(e&&!e.overlay)return e.tree.toString();let r="";for(let n of this.children){let i=n.toString();i&&(r&&(r+=","),r+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(r.length?"("+r+")":""):r}cursor(e=0){return new An(this.topNode,e)}cursorAt(e,r=0,n=0){let i=Oo.get(this)||this.topNode,o=new An(i);return o.moveTo(e,r),Oo.set(this,o._tree),o}get topNode(){return new ke(this,0,0,null)}resolve(e,r=0){let n=Cn(Oo.get(this)||this.topNode,e,r,!1);return Oo.set(this,n),n}resolveInner(e,r=0){let n=Cn(oy.get(this)||this.topNode,e,r,!0);return oy.set(this,n),n}resolveStack(e,r=0){return RE(this,e,r)}iterate(e){let{enter:r,leave:n,from:i=0,to:o=this.length}=e,s=e.mode||0,a=(s&K.IncludeAnonymous)>0;for(let l=this.cursor(s|K.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!a&&l.type.isAnonymous||r(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;u=!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 r in this.props)e.push([+r,this.props[r]]);return e}balance(e={}){return this.children.length<=8?this:Gl(Ee.none,this.children,this.positions,0,this.children.length,0,this.length,(r,n,i)=>new t(this.type,r,n,i,this.propValues),e.makeTree||((r,n,i)=>new t(Ee.none,r,n,i)))}static build(e){return IE(e)}};ve.empty=new ve(Ee.none,[],[],0);var jl=class t{constructor(e,r){this.buffer=e,this.index=r}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 t(this.buffer,this.index)}},Ft=class t{constructor(e,r,n){this.buffer=e,this.length=r,this.set=n}get type(){return Ee.none}toString(){let e=[];for(let r=0;r<this.buffer.length;)e.push(this.childString(r)),r=this.buffer[r+3];return e.join(",")}childString(e){let r=this.buffer[e],n=this.buffer[e+3],i=this.set.types[r],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),e+=4,n==e)return o;let s=[];for(;e<n;)s.push(this.childString(e)),e=this.buffer[e+3];return o+"("+s.join(",")+")"}findChild(e,r,n,i,o){let{buffer:s}=this,a=-1;for(let l=e;l!=r&&!(ly(o,i,s[l+1],s[l+2])&&(a=l,n>0));l=s[l+3]);return a}slice(e,r,n){let i=this.buffer,o=new Uint16Array(r-e),s=0;for(let a=e,l=0;a<r;){o[l++]=i[a++],o[l++]=i[a++]-n;let u=o[l++]=i[a++]-n;o[l++]=i[a++]-e,s=Math.max(s,u)}return new t(o,s,this.set)}};function ly(t,e,r,n){switch(t){case-2:return r<e;case-1:return n>=e&&r<e;case 0:return r<e&&n>e;case 1:return r<=e&&n>e;case 2:return n>e;case 4:return!0}}function Cn(t,e,r,n){for(var i;t.from==t.to||(r<1?t.from>=e:t.from>e)||(r>-1?t.to<=e:t.to<e);){let s=!n&&t instanceof ke&&t.index<0?null:t.parent;if(!s)return t;t=s}let o=n?0:K.IgnoreOverlays;if(n)for(let s=t,a=s.parent;a;s=a,a=s.parent)s instanceof ke&&s.index<0&&((i=a.enter(e,r,o))===null||i===void 0?void 0:i.from)!=s.from&&(t=a);for(;;){let s=t.enter(e,r,o);if(!s)return t;t=s}}var yo=class{cursor(e=0){return new An(this,e)}getChild(e,r=null,n=null){let i=sy(this,e,r,n);return i.length?i[0]:null}getChildren(e,r=null,n=null){return sy(this,e,r,n)}resolve(e,r=0){return Cn(this,e,r,!1)}resolveInner(e,r=0){return Cn(this,e,r,!0)}matchContext(e){return Zl(this,e)}enterUnfinishedNodesBefore(e){let r=this.childBefore(e),n=this;for(;r;){let i=r.lastChild;if(!i||i.to!=r.to)break;i.type.isError&&i.from==i.to?(n=r,r=i.prevSibling):r=i}return n}get node(){return this}get next(){return this.parent}},ke=class t extends yo{constructor(e,r,n,i){super(),this._tree=e,this.from=r,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,r,n,i,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,u=r>0?a.length:-1;e!=u;e+=r){let c=a[e],p=l[e]+s.from;if(ly(i,n,p,p+c.length)){if(c instanceof Ft){if(o&K.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,r,n-p,i);if(h>-1)return new Lt(new Ml(s,c,e,p),null,h)}else if(o&K.IncludeAnonymous||!c.type.isAnonymous||Vl(c)){let h;if(!(o&K.IgnoreMounts)&&(h=kr.get(c))&&!h.overlay)return new t(h.tree,p,e,s);let f=new t(c,p,e,s);return o&K.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(r<0?c.children.length-1:0,r,n,i)}}}if(o&K.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+r:e=r<0?-1:s._parent._tree.children.length,s=s._parent,!s))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)}enter(e,r,n=0){let i;if(!(n&K.IgnoreOverlays)&&(i=kr.get(this._tree))&&i.overlay){let o=e-this.from;for(let{from:s,to:a}of i.overlay)if((r>0?s<=o:s<o)&&(r<0?a>=o:a>o))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,r,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 sy(t,e,r,n){let i=t.cursor(),o=[];if(!i.firstChild())return o;if(r!=null){for(;!i.type.is(r);)if(!i.nextSibling())return o}for(;;){if(n!=null&&i.type.is(n))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return n==null?o:[]}}function Zl(t,e,r=e.length-1){for(let n=t.parent;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[r]&&e[r]!=n.name)return!1;r--}}return!0}var Ml=class{constructor(e,r,n,i){this.parent=e,this.buffer=r,this.index=n,this.start=i}},Lt=class t extends yo{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,r,n){super(),this.context=e,this._parent=r,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,r,n){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e,r-this.context.start,n);return o<0?null:new t(this.context,this,o)}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)}enter(e,r,n=0){if(n&K.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],r>0?1:-1,e-this.context.start,r);return o<0?null:new t(this.context,this,o)}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,r=e.buffer[this.index+3];return r<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,r):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,r=this._parent?this._parent.index+4:0;return this.index==r?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(r,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],r=[],{buffer:n}=this.context,i=this.index+4,o=n.buffer[this.index+3];if(o>i){let s=n.buffer[this.index+1];e.push(n.slice(i,o,s)),r.push(0)}return new ve(this.type,e,r,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function cy(t){if(!t.length)return null;if(t.length==1)return t[0];let e=0,r=t[0];for(let o=1;o<t.length;o++){let s=t[o];(s.from>r.from||s.to<r.to)&&(r=s,e=o)}let n=r instanceof ke&&r.index<0?null:r.parent,i=t.slice();return n?i[e]=n:i.splice(e,1),new Wl(i,r)}var Wl=class{constructor(e,r){this.heads=e,this.node=r}get next(){return cy(this.heads)}};function RE(t,e,r){let n=t.resolveInner(e,r),i=null;for(let o=n instanceof ke?n:n.context.parent;o;o=o.parent)if(o.index<0){let s=o.parent;(i||(i=[n])).push(s.resolve(e,r)),o=s}else{let s=kr.get(o.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let a=new ke(s.tree,s.overlay[0].from+o.from,0,null);(i||(i=[n])).push(Cn(a,e,r,!1))}}return i?cy(i):n}var An=class{get name(){return this.type.name}constructor(e,r=0){if(this.mode=r,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ke)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,r){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=r||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 ke?(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,r,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,r,n,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,r-this.buffer.start,n);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}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,r,n=this.mode){return this.buffer?n&K.ExcludeBuffers?!1:this.enterChild(1,e,r):this.yield(this._tree.enter(e,r,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&K.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&K.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:r}=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(r.findChild(i,this.index,-1,0,4))}else{let i=r.buffer[this.index+3];if(i<(n<0?r.buffer.length:r.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 r,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:r,parent:n}=i)}else({index:r,_parent:n}=this._tree);for(;n;{index:r,_parent:n}=n)if(r>-1)for(let o=r+e,s=e<0?-1:n._tree.children.length;o!=s;o+=e){let a=n._tree.children[o];if(this.mode&K.IncludeAnonymous||a instanceof Ft||!a.type.isAnonymous||Vl(a))return!1}return!0}move(e,r){if(r&&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,r=0){for(;(this.from==this.to||(r<1?this.from>=e:this.from>e)||(r>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,r););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,r=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;r=s,n=o+1;break e}i=this.stack[--o]}for(let i=n;i<this.stack.length;i++)r=new Lt(this.buffer,r,this.stack[i]);return this.bufferNode=new Lt(this.buffer,r,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,r){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(;i&&r&&r(this),i=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return Zl(this.node,e);let{buffer:r}=this.buffer,{types:n}=r.set;for(let i=e.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return Zl(this.node,e,i);let s=n[r.buffer[this.stack[o]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}};function Vl(t){return t.children.some(e=>e instanceof Ft||!e.type.isAnonymous||Vl(e))}function IE(t){var e;let{buffer:r,nodeSet:n,maxBufferLength:i=1024,reused:o=[],minRepeatType:s=n.types.length}=t,a=Array.isArray(r)?new jl(r,r.length):r,l=n.types,u=0,c=0;function p(S,x,b,w,A){let{id:k,start:P,end:q,size:j}=a,Z=c;for(;j<0;)if(a.next(),j==-1){let Se=o[k];b.push(Se),w.push(P-S);return}else if(j==-3){u=k;return}else if(j==-4){c=k;return}else throw new RangeError(`Unrecognized record size: ${j}`);let se=l[k],ce,W,ge=P-S;if(q-P<=i&&(W=m(a.pos-x,A))){let Se=new Uint16Array(W.size-W.skip),J=a.pos-W.size,ye=Se.length;for(;a.pos>J;)ye=g(W.start,Se,ye);ce=new Ft(Se,q-W.start,n),ge=W.start-S}else{let Se=a.pos-j;a.next();let J=[],ye=[],Ce=k>=s?k:-1,Qe=0,ze=q;for(;a.pos>Se;)Ce>=0&&a.id==Ce&&a.size>=0?(a.end<=ze-i&&(f(J,ye,P,Qe,a.end,ze,Ce,Z),Qe=J.length,ze=a.end),a.next()):p(P,Se,J,ye,Ce);if(Ce>=0&&Qe>0&&Qe<J.length&&f(J,ye,P,Qe,P,ze,Ce,Z),J.reverse(),ye.reverse(),Ce>-1&&Qe>0){let Fe=h(se);ce=Gl(se,J,ye,0,J.length,0,q-P,Fe,Fe)}else ce=d(se,J,ye,q-P,Z-q)}b.push(ce),w.push(ge)}function h(S){return(x,b,w)=>{let A=0,k=x.length-1,P,q;if(k>=0&&(P=x[k])instanceof ve){if(!k&&P.type==S&&P.length==w)return P;(q=P.prop(X.lookAhead))&&(A=b[k]+P.length+q)}return d(S,x,b,w,A)}}function f(S,x,b,w,A,k,P,q){let j=[],Z=[];for(;S.length>w;)j.push(S.pop()),Z.push(x.pop()+b-A);S.push(d(n.types[P],j,Z,k-A,q-k)),x.push(A-b)}function d(S,x,b,w,A=0,k){if(u){let P=[X.contextHash,u];k=k?[P].concat(k):[P]}if(A>25){let P=[X.lookAhead,A];k=k?[P].concat(k):[P]}return new ve(S,x,b,w,k)}function m(S,x){let b=a.fork(),w=0,A=0,k=0,P=b.end-i,q={size:0,start:0,skip:0};e:for(let j=b.pos-S;b.pos>j;){let Z=b.size;if(b.id==x&&Z>=0){q.size=w,q.start=A,q.skip=k,k+=4,w+=4,b.next();continue}let se=b.pos-Z;if(Z<0||se<j||b.start<P)break;let ce=b.id>=s?4:0,W=b.start;for(b.next();b.pos>se;){if(b.size<0)if(b.size==-3)ce+=4;else break e;else b.id>=s&&(ce+=4);b.next()}A=W,w+=Z,k+=ce}return(x<0||w==S)&&(q.size=w,q.start=A,q.skip=k),q.size>4?q:void 0}function g(S,x,b){let{id:w,start:A,end:k,size:P}=a;if(a.next(),P>=0&&w<s){let q=b;if(P>4){let j=a.pos-(P-4);for(;a.pos>j;)b=g(S,x,b)}x[--b]=q,x[--b]=k-S,x[--b]=A-S,x[--b]=w}else P==-3?u=w:P==-4&&(c=w);return b}let y=[],v=[];for(;a.pos>0;)p(t.start||0,t.bufferStart||0,y,v,-1);let T=(e=t.length)!==null&&e!==void 0?e:y.length?v[0]+y[0].length:0;return new ve(l[t.topID],y.reverse(),v.reverse(),T)}var ay=new WeakMap;function mo(t,e){if(!t.isAnonymous||e instanceof Ft||e.type!=t)return 1;let r=ay.get(e);if(r==null){r=1;for(let n of e.children){if(n.type!=t||!(n instanceof ve)){r=1;break}r+=mo(t,n)}ay.set(e,r)}return r}function Gl(t,e,r,n,i,o,s,a,l){let u=0;for(let d=n;d<i;d++)u+=mo(t,e[d]);let c=Math.ceil(u*1.5/8),p=[],h=[];function f(d,m,g,y,v){for(let T=g;T<y;){let S=T,x=m[T],b=mo(t,d[T]);for(T++;T<y;T++){let w=mo(t,d[T]);if(b+w>=c)break;b+=w}if(T==S+1){if(b>c){let w=d[S];f(w.children,w.positions,0,w.children.length,m[S]+v);continue}p.push(d[S])}else{let w=m[T-1]+d[T-1].length-x;p.push(Gl(t,d,m,S,T,x,w,null,l))}h.push(x+v-o)}}return f(e,r,n,i,0),(a||l)(p,h,s)}var vo=class{constructor(){this.map=new WeakMap}setBuffer(e,r,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(r,n)}getBuffer(e,r){let n=this.map.get(e);return n&&n.get(r)}set(e,r){e instanceof Lt?this.setBuffer(e.context.buffer,e.index,r):e instanceof ke&&this.map.set(e.tree,r)}get(e){return e instanceof Lt?this.getBuffer(e.context.buffer,e.index):e instanceof ke?this.map.get(e.tree):void 0}cursorSet(e,r){e.buffer?this.setBuffer(e.buffer.buffer,e.index,r):this.map.set(e.tree,r)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}};var bo=class{startParse(e,r,n){return typeof e=="string"&&(e=new Xl(e)),n=n?n.length?n.map(i=>new _n(i.from,i.to)):[new _n(0,0)]:[new _n(0,e.length)],this.createParse(e,r||[],n)}parse(e,r,n){let i=this.startParse(e,r,n);for(;;){let o=i.advance();if(o)return o}}},Xl=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,r){return this.string.slice(e,r)}};var O5=new X({perNode:!0});var Nl=class t{constructor(e,r,n,i,o,s,a,l,u,c=0,p){this.p=e,this.stack=r,this.state=n,this.reducePos=i,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=p}toString(){return`[${this.stack.filter((e,r)=>r%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,r,n=0){let i=e.parser.context;return new t(e,[],r,n,n,0,[],0,i?new xo(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,r){this.stack.push(this.state,r,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let r=e>>19,n=e&65535,{parser:i}=this.p,o=i.dynamicPrecedence(n);if(o&&(this.score+=o),r==0){this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n<i.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,4,!0),this.reduceContext(n,this.reducePos);return}let s=this.stack.length-(r-1)*3-(e&262144?6:0),a=this.stack[s-2],l=this.stack[s-1],u=this.bufferBase+this.buffer.length-l;if(n<i.minRepeatTerm||e&131072){let c=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,a,c,u+4,!0)}if(e&262144)this.state=this.stack[s];else{let c=this.stack[s-3];this.state=i.getGoto(c,n,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(n,a)}storeNode(e,r,n,i=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,a=this.buffer.length;if(a==0&&s.parent&&(a=s.bufferBase-s.parent.bufferBase,s=s.parent),a>0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(r==n)return;if(s.buffer[a-2]>=r){s.buffer[a-2]=n;return}}}if(!o||this.pos==n)this.buffer.push(e,r,n,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=e,this.buffer[s+1]=r,this.buffer[s+2]=n,this.buffer[s+3]=i}}shift(e,r,n){let i=this.pos;if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(r,i),r<=this.p.parser.maxNode&&this.buffer.push(r,i,n,4);else{let o=e,{parser:s}=this.p;(n>this.pos||r<=s.maxNode)&&(this.pos=n,s.stateFlag(o,1)||(this.reducePos=n)),this.pushState(o,i),this.shiftContext(r,i),r<=s.maxNode&&this.buffer.push(r,i,n,4)}}apply(e,r,n){e&65536?this.reduce(e):this.shift(e,r,n)}useNode(e,r){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(r,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,r=e.buffer.length;for(;r>0&&e.buffer[r-2]>e.reducePos;)r-=4;let n=e.buffer.slice(r),i=e.bufferBase+r;for(;e&&i==e.bufferBase;)e=e.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,r){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,r,4),this.storeNode(0,this.pos,r,n?8:4),this.pos=this.reducePos=r,this.score-=190}canShift(e){for(let r=new zl(this);;){let n=this.p.parser.stateSlot(r.state,4)||this.p.parser.hasAction(r.state,e);if(!(n&65536))return!0;if(n==0)return!1;r.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let r=this.p.parser.nextStates(this.state);if(r.length>8||this.stack.length>=120){let i=[];for(let o=0,s;o<r.length;o+=2)(s=r[o+1])!=this.state&&this.p.parser.hasAction(s,e)&&i.push(r[o],s);if(this.stack.length<120)for(let o=0;i.length<8&&o<r.length;o+=2){let s=r[o+1];i.some((a,l)=>l&1&&a==s)||i.push(r[o],s)}r=i}let n=[];for(let i=0;i<r.length&&n.length<4;i+=2){let o=r[i+1];if(o==this.state)continue;let s=this.split();s.pushState(o,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(r[i],this.pos),s.score-=200,n.push(s)}return n}forceReduce(){let e=this.p.parser.stateSlot(this.state,5);if(!(e&65536))return!1;let{parser:r}=this.p;if(!r.validAction(this.state,e)){let n=e>>19,i=e&65535,o=this.stack.length-n*3;if(o<0||r.getGoto(this.stack[o],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!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.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 r=0;r<this.stack.length;r+=3)if(this.stack[r]!=e.stack[r])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,r){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(r)))}reduceContext(e,r){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(r)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.reducePos,this.reducePos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.reducePos,this.reducePos,-4)}updateContext(e){if(e!=this.curContext.context){let r=new xo(this.curContext.tracker,e);r.hash!=this.curContext.hash&&this.emitContext(),this.curContext=r}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},xo=class{constructor(e,r){this.tracker=e,this.context=r,this.hash=e.strict?e.hash(r):0}},uy;(function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"})(uy||(uy={}));var zl=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let r=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],r,!0);this.state=i}},Fl=class t{constructor(e,r,n){this.stack=e,this.pos=r,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,r=e.bufferBase+e.buffer.length){return new t(e,r,r-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 t(this.stack,this.pos,this.index)}},qr=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},py=new qr,Ll=class{constructor(e,r){this.input=e,this.ranges=r,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=py,this.rangeIndex=0,this.pos=this.chunkPos=r[0].from,this.range=r[0],this.end=r[r.length-1].to,this.readNext()}resolveOffset(e,r){let n=this.range,i=this.rangeIndex,o=this.pos+e;for(;o<n.from;){if(!i)return null;let s=this.ranges[--i];o-=n.from-s.to,n=s}for(;r<0?o>n.to:o>=n.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];o+=s.from-n.to,n=s}return o}peek(e){let r=this.chunkOff+e,n,i;if(r>=0&&r<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(r);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(n=o,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let s=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,r=0){let n=r?this.resolveOffset(r,-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}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:r}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=r,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),r=this.pos+e.length;this.chunk=r>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,r){if(r?(this.token=r,r.start=e,r.lookAhead=e+1,r.value=r.extended=-1):this.token=py,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,r){if(e>=this.chunkPos&&r<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,r-this.chunkPos);if(e>=this.chunk2Pos&&r<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,r-this.chunk2Pos);if(e>=this.range.from&&r<=this.range.to)return this.input.read(e,r);let n="";for(let i of this.ranges){if(i.from>=r)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,r)))}return n}},_r=class{constructor(e,r){this.data=e,this.id=r}token(e,r){ZE(this.data,e,r,this.id)}};_r.prototype.contextual=_r.prototype.fallback=_r.prototype.extend=!1;var St=class{constructor(e,r={}){this.token=e,this.contextual=!!r.contextual,this.fallback=!!r.fallback,this.extend=!!r.extend}};function ZE(t,e,r,n){let i=0,o=1<<n,{parser:s}=r.p,{dialect:a}=s;e:for(;o&t[i];){let l=t[i+1];for(let h=i+3;h<l;h+=2)if((t[h+1]&o)>0){let f=t[h];if(a.allows(f)&&(e.token.value==-1||e.token.value==f||s.overrides(f,e.token.value))){e.acceptToken(f);break}}let u=e.next,c=0,p=t[i+2];if(e.next<0&&p>c&&t[l+p*3-3]==65535){i=t[l+p*3-1];continue e}for(;c<p;){let h=c+p>>1,f=l+h+(h<<1),d=t[f],m=t[f+1];if(u<d)p=h;else if(u>=m)c=h+1;else{i=t[f+2],e.advance();continue e}}break}}function So(t,e=Uint16Array){if(typeof t!="string")return t;let r=null;for(let n=0,i=0;n<t.length;){let o=0;for(;;){let s=t.charCodeAt(n++),a=!1;if(s==126){o=65535;break}s>=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}r?r[i++]=o:r=new e(o)}return r}var We=typeof process!="undefined"&&process.env&&/\bparse\b/.test(process.env.LOG),Dl=null,fy;(function(t){t[t.Margin=25]="Margin"})(fy||(fy={}));function hy(t,e,r){let n=t.cursor(K.IncludeAnonymous);for(n.moveTo(e);;)if(!(r<0?n.childBefore(e):n.childAfter(e)))for(;;){if((r<0?n.to<e:n.from>e)&&!n.type.isError)return r<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(r<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return r<0?0:t.length}}var Ul=class{constructor(e,r){this.fragments=e,this.nodeSet=r,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?hy(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?hy(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 r=this.trees.length-1;if(r<0)return this.nextFragment(),null;let n=this.trees[r],i=this.index[r];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=n.children[i],s=this.start[r]+n.positions[i];if(s>e)return this.nextStart=s,null;if(o instanceof ve){if(s==e){if(s<this.safeFrom)return null;let a=s+o.length;if(a<=this.safeTo){let l=o.prop(X.lookAhead);if(!l||a+l<this.fragment.to)return o}}this.index[r]++,s+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[r]++,this.nextStart=s+o.length}}},Yl=class{constructor(e,r){this.stream=r,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new qr)}getActions(e){let r=0,n=null,{parser:i}=e.p,{tokenizers:o}=i,s=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let u=0;u<o.length;u++){if(!(1<<u&s))continue;let c=o[u],p=this.tokens[u];if(!(n&&!c.fallback)&&((c.contextual||p.start!=e.pos||p.mask!=s||p.context!=a)&&(this.updateCachedToken(p,c,e),p.mask=s,p.context=a),p.lookAhead>p.end+25&&(l=Math.max(p.lookAhead,l)),p.value!=0)){let h=r;if(p.extended>-1&&(r=this.addActions(e,p.extended,p.end,r)),r=this.addActions(e,p.value,p.end,r),!c.extend&&(n=p,r>h))break}}for(;this.actions.length>r;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new qr,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,r=this.addActions(e,n.value,n.end,r)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let r=new qr,{pos:n,p:i}=e;return r.start=n,r.end=Math.min(n+1,i.stream.end),r.value=n==i.stream.end?i.parser.eofTerm:0,r}updateCachedToken(e,r,n){if(r.token(this.stream.reset(n.pos,e),n),e.value>-1){let{parser:i}=n.p;for(let o=0;o<i.specialized.length;o++)if(i.specialized[o]==e.value){let s=i.specializers[o](this.stream.read(e.start,e.end),n);if(s>=0&&n.p.parser.dialect.allows(s>>1)){s&1?e.extended=s>>1:e.value=s>>1;break}}}else e.value=0,e.end=Math.min(n.p.stream.end,n.pos+1)}putAction(e,r,n,i){for(let o=0;o<i;o+=3)if(this.actions[o]==e)return i;return this.actions[i++]=e,this.actions[i++]=r,this.actions[i++]=n,i}addActions(e,r,n,i){let{state:o}=e,{parser:s}=e.p,{data:a}=s;for(let l=0;l<2;l++)for(let u=s.stateSlot(o,l?2:1);;u+=3){if(a[u]==65535)if(a[u+1]==1)u=tt(a,u+2);else{i==0&&a[u+1]==2&&(i=this.putAction(tt(a,u+2),r,n,i));break}a[u]==r&&(i=this.putAction(tt(a,u+1),r,n,i))}return i}},Oy;(function(t){t[t.Distance=5]="Distance",t[t.MaxRemainingPerStep=3]="MaxRemainingPerStep",t[t.MinBufferLengthPrune=500]="MinBufferLengthPrune",t[t.ForceReduceLimit=10]="ForceReduceLimit",t[t.CutDepth=15e3]="CutDepth",t[t.CutTo=9e3]="CutTo"})(Oy||(Oy={}));var Hl=class{constructor(e,r,n,i){this.parser=e,this.input=r,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.stream=new Ll(r,i),this.tokens=new Yl(e,this.stream),this.topTerm=e.top[1];let{from:o}=i[0];this.stacks=[Nl.start(this,e.top[0],o)],this.fragments=n.length&&this.stream.end-o>e.bufferLength*4?new Ul(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,r=this.minStackPos,n=this.stacks=[],i,o;for(let s=0;s<e.length;s++){let a=e[s];for(;;){if(this.tokens.mainToken=null,a.pos>r)n.push(a);else{if(this.advanceStack(a,n,e))continue;{i||(i=[],o=[]),i.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!n.length){let s=i&&ME(i);if(s)return this.stackToTree(s);if(this.parser.strict)throw We&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,n);if(s)return this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(n.length>s)for(n.sort((a,l)=>l.score-a.score);n.length>s;)n.pop();n.some(a=>a.reducePos>r)&&this.recovering--}else if(n.length>1)e:for(let s=0;s<n.length-1;s++){let a=n[s];for(let l=s+1;l<n.length;l++){let u=n[l];if(a.sameState(u)||a.buffer.length>500&&u.buffer.length>500)if((a.score-u.score||a.buffer.length-u.buffer.length)>0)n.splice(l--,1);else{n.splice(s--,1);continue e}}}this.minStackPos=n[0].pos;for(let s=1;s<n.length;s++)n[s].pos<this.minStackPos&&(this.minStackPos=n[s].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,r,n){let i=e.pos,{parser:o}=this,s=We?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let p=this.fragments.nodeAt(i);p;){let h=this.parser.nodeSet.types[p.type.id]==p.type?o.getGoto(e.state,p.type.id):-1;if(h>-1&&p.length&&(!u||(p.prop(X.contextHash)||0)==c))return e.useNode(p,h),We&&console.log(s+this.stackID(e)+` (via reuse of ${o.getName(p.type.id)})`),!0;if(!(p instanceof ve)||p.children.length==0||p.positions[0]>0)break;let f=p.children[0];if(f instanceof ve&&p.positions[0]==0)p=f;else break}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),We&&console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;u<l.length;){let c=l[u++],p=l[u++],h=l[u++],f=u==l.length||!n,d=f?e:e.split();if(d.apply(c,p,h),We&&console.log(s+this.stackID(d)+` (via ${c&65536?`reduce of ${o.getName(c&65535)}`:"shift"} for ${o.getName(p)} @ ${i}${d==e?"":", split"})`),f)return!0;d.pos>i?r.push(d):n.push(d)}return!1}advanceFully(e,r){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return dy(e,r),!0}}runRecovery(e,r,n){let i=null,o=!1;for(let s=0;s<e.length;s++){let a=e[s],l=r[s<<1],u=r[(s<<1)+1],c=We?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),We&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let p=a.split(),h=c;for(let f=0;p.forceReduce()&&f<10&&(We&&console.log(h+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,n));f++)We&&(h=this.stackID(p)+" -> ");for(let f of a.recoverByInsert(l))We&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,n);this.stream.end>a.pos?(u==a.pos&&(u++,l=0),a.recoverByDelete(l,u),We&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),dy(a,n)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(e){return e.close(),ve.build({buffer:Fl.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 r=(Dl||(Dl=new WeakMap)).get(e);return r||Dl.set(e,r=String.fromCodePoint(this.nextStackID++)),r+e}};function dy(t,e){for(let r=0;r<e.length;r++){let n=e[r];if(n.pos==t.pos&&n.sameState(t)){e[r].score<t.score&&(e[r]=t);return}}e.push(t)}var Kl=class{constructor(e,r,n){this.source=e,this.flags=r,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},Bl=t=>t,Qo=class{constructor(e){this.start=e.start,this.shift=e.shift||Bl,this.reduce=e.reduce||Bl,this.reuse=e.reuse||Bl,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},$o=class t extends bo{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let r=e.nodeNames.split(" ");this.minRepeatTerm=r.length;for(let a=0;a<e.repeatNodeCount;a++)r.push("");let n=Object.keys(e.topRules).map(a=>e.topRules[a][1]),i=[];for(let a=0;a<r.length;a++)i.push([]);function o(a,l,u){i[a].push([l,l.deserialize(String(u))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=X[l]);for(let u=1;u<a.length;){let c=a[u++];if(c>=0)o(c,l,a[u++]);else{let p=a[u+-c];for(let h=-c;h>0;h--)o(a[u++],l,p);u++}}}this.nodeSet=new go(r.map((a,l)=>Ee.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let s=So(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(gy),this.states=So(e.states,Uint32Array),this.data=So(e.stateData),this.goto=So(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new _r(s,a):a),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,r,n){let i=new Hl(this,e,r,n);for(let o of this.wrappers)i=o(i,e,r,n);return i}getGoto(e,r,n=!1){let i=this.goto;if(r>=i[0])return-1;for(let o=i[r+1];;){let s=i[o++],a=s&1,l=i[o++];if(a&&n)return l;for(let u=o+(s>>1);o<u;o++)if(i[o]==e)return l;if(a)return-1}}hasAction(e,r){let n=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(e,i?2:1),s;;o+=3){if((s=n[o])==65535)if(n[o+1]==1)s=n[o=tt(n,o+2)];else{if(n[o+1]==2)return tt(n,o+2);break}if(s==r||s==0)return tt(n,o+1)}return 0}stateSlot(e,r){return this.states[e*6+r]}stateFlag(e,r){return(this.stateSlot(e,0)&r)>0}validAction(e,r){if(r==this.stateSlot(e,4))return!0;for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=tt(this.data,n+2);else return!1;if(r==tt(this.data,n+1))return!0}}nextStates(e){let r=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=tt(this.data,n+2);else break;if(!(this.data[n+2]&1)){let i=this.data[n+1];r.some((o,s)=>s&1&&o==i)||r.push(this.data[n],i)}}return r}overrides(e,r){let n=my(this.data,this.tokenPrecTable,r);return n<0||my(this.data,this.tokenPrecTable,e)<n}configure(e){let r=Object.assign(Object.create(t.prototype),this);if(e.props&&(r.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}`);r.top=n}return e.tokenizers&&(r.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(o=>o.from==n);return i?i.to:n})),e.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((n,i)=>{let o=e.specializers.find(a=>a.from==n.external);if(!o)return n;let s=Object.assign(Object.assign({},n),{external:o.to});return r.specializers[i]=gy(s),s})),e.contextTracker&&(r.context=e.contextTracker),e.dialect&&(r.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(r.strict=e.strict),e.wrap&&(r.wrappers=r.wrappers.concat(e.wrap)),e.bufferLength!=null&&(r.bufferLength=e.bufferLength),r}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 r=this.dynamicPrecedences;return r==null?0:r[e]||0}parseDialect(e){let r=Object.keys(this.dialects),n=r.map(()=>!1);if(e)for(let o of e.split(" ")){let s=r.indexOf(o);s>=0&&(n[s]=!0)}let i=null;for(let o=0;o<r.length;o++)if(!n[o])for(let s=this.dialects[r[o]],a;(a=this.data[s++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new Kl(e,n,i)}static deserialize(e){return new t(e)}};function tt(t,e){return t[e]|t[e+1]<<16}function my(t,e,r){for(let n=e,i;(i=t[n])!=65535;n++)if(i==r)return n-e;return-1}function ME(t){let e=null;for(let r of t){let n=r.p.stoppedAt;(r.pos==r.p.stream.end||n!=null&&r.pos>n)&&r.p.parser.stateFlag(r.state,2)&&(!e||e.score<r.score)&&(e=r)}return e}function gy(t){if(t.external){let e=t.extend?1:0;return(r,n)=>t.external(r,n)<<1|e}return t.get}var Q=require("@lezer/highlight"),WE=1,yy=281,vy=2,XE=3,wo=282,VE=4,GE=283,by=284,DE=286,BE=287,NE=5,zE=6,FE=1,LE=[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],xy=125,UE=123,YE=59,Sy=47,HE=42,KE=43,JE=45,ek=36,tk=96,rk=92,nk=new Qo({start:!1,shift(t,e){return e==NE||e==zE||e==DE?t:e==BE},strict:!1}),ik=new St((t,e)=>{let{next:r}=t;(r==xy||r==-1||e.context)&&e.canShift(by)&&t.acceptToken(by)},{contextual:!0,fallback:!0}),ok=new St((t,e)=>{let{next:r}=t,n;LE.indexOf(r)>-1||r==Sy&&((n=t.peek(1))==Sy||n==HE)||r!=xy&&r!=YE&&r!=-1&&!e.context&&e.canShift(yy)&&t.acceptToken(yy)},{contextual:!0}),sk=new St((t,e)=>{let{next:r}=t;if((r==KE||r==JE)&&(t.advance(),r==t.next)){t.advance();let n=!e.context&&e.canShift(vy);t.acceptToken(n?vy:XE)}},{contextual:!0}),ak=new St(t=>{for(let e=!1,r=0;;r++){let{next:n}=t;if(n<0){r&&t.acceptToken(wo);break}else if(n==tk){r?t.acceptToken(wo):t.acceptToken(GE,1);break}else if(n==UE&&e){r==1?t.acceptToken(VE,1):t.acceptToken(wo,-1);break}else if(n==10&&r){t.advance(),t.acceptToken(wo);break}else n==rk&&t.advance();e=n==ek,t.advance()}}),lk=new St((t,e)=>{if(!(t.next!=101||!e.dialectEnabled(FE))){t.advance();for(let r=0;r<6;r++){if(t.next!="xtends".charCodeAt(r))return;t.advance()}t.next>=57&&t.next<=65||t.next>=48&&t.next<=90||t.next==95||t.next>=97&&t.next<=122||t.next>160||t.acceptToken(WE)}}),ck=(0,Q.styleTags)({"get set async static":Q.tags.modifier,"for while do if else switch try catch finally return throw break continue default case":Q.tags.controlKeyword,"in of await yield void typeof delete instanceof":Q.tags.operatorKeyword,"let var const function class extends":Q.tags.definitionKeyword,"import export from":Q.tags.moduleKeyword,"with debugger as new":Q.tags.keyword,TemplateString:Q.tags.special(Q.tags.string),super:Q.tags.atom,BooleanLiteral:Q.tags.bool,this:Q.tags.self,null:Q.tags.null,Star:Q.tags.modifier,VariableName:Q.tags.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Q.tags.function(Q.tags.variableName),VariableDefinition:Q.tags.definition(Q.tags.variableName),Label:Q.tags.labelName,PropertyName:Q.tags.propertyName,PrivatePropertyName:Q.tags.special(Q.tags.propertyName),"CallExpression/MemberExpression/PropertyName":Q.tags.function(Q.tags.propertyName),"FunctionDeclaration/VariableDefinition":Q.tags.function(Q.tags.definition(Q.tags.variableName)),"ClassDeclaration/VariableDefinition":Q.tags.definition(Q.tags.className),PropertyDefinition:Q.tags.definition(Q.tags.propertyName),PrivatePropertyDefinition:Q.tags.definition(Q.tags.special(Q.tags.propertyName)),UpdateOp:Q.tags.updateOperator,LineComment:Q.tags.lineComment,BlockComment:Q.tags.blockComment,Number:Q.tags.number,String:Q.tags.string,ArithOp:Q.tags.arithmeticOperator,LogicOp:Q.tags.logicOperator,BitOp:Q.tags.bitwiseOperator,CompareOp:Q.tags.compareOperator,RegExp:Q.tags.regexp,Equals:Q.tags.definitionOperator,Arrow:Q.tags.function(Q.tags.punctuation),": Spread":Q.tags.punctuation,"( )":Q.tags.paren,"[ ]":Q.tags.squareBracket,"{ }":Q.tags.brace,"InterpolationStart InterpolationEnd":Q.tags.special(Q.tags.brace),".":Q.tags.derefOperator,", ;":Q.tags.separator,TypeName:Q.tags.typeName,TypeDefinition:Q.tags.definition(Q.tags.typeName),"type enum interface implements namespace module declare":Q.tags.definitionKeyword,"abstract global Privacy readonly override":Q.tags.modifier,"is keyof unique infer":Q.tags.operatorKeyword,JSXAttributeValue:Q.tags.attributeValue,JSXText:Q.tags.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Q.tags.angleBracket,"JSXIdentifier JSXNameSpacedName":Q.tags.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Q.tags.attributeName}),uk={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:474,finally:478,return:482,throw:486,break:490,continue:494,debugger:498},pk={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},fk={__proto__:null,"<":129},Qy=$o.deserialize({version:14,states:"$8SO`QdOOO'QQ(C|O'#ChO'XOWO'#DVO)dQdO'#D]O)tQdO'#DhO){QdO'#DrO-xQdO'#DxOOQO'#E]'#E]O.]Q`O'#E[O.bQ`O'#E[OOQ(C['#Ef'#EfO0aQ(C|O'#ItO2wQ(C|O'#IuO3eQ`O'#EzO3jQ!bO'#FaOOQ(C['#FS'#FSO3rO#tO'#FSO4QQ&jO'#FhO5bQ`O'#FgOOQ(C['#Iu'#IuOOQ(CW'#It'#ItOOQS'#J^'#J^O5gQ`O'#HpO5lQ(ChO'#HqOOQS'#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T,hQ1W9sQ1]9pQ2O-zQ2[.]Q3s:QQ3v0TQ4W0jQ4[0tQ4]:RQ4b:TQ4c:_Q5`2qQ6S3qQ6V3xQ6b:`Q6f:gQ6g:hQ7g6WQ7z6{Q8Z7jQ8m8]Q8y8oQ9_!WR:|;aR!aRR&Y!bS&U!b+`S+]&V&^R0Q+fR'P!yR'S!zT!tU$ZS!sU$ZU$xrs*mS&s!r!uQ,T&tQ,W&wQ.l)zS0k,S,UR4X0l`!dR!]!`$u%x&`)x+hh!qUrs!r!u$Z&t&w)z,S,U0lQ/d*mQ/w+YQ3p/oT:s&W)yT!gR$uS!fR$uS%y!]&`S&O!`)xS+S%x+hT+_&W)yT&]!b$vQ#i^R'{#nT'q#i'rR1Z,lT(a#v(cR(i#yQ-})]Q2U.RQ2|.{Q4{2TQ5l3QQ6t4}Q7U5kQ7y6zQ8S7WR8i8TlhOSj}!n$]%c%f%g%i*o*t/g/jQ%]yR*d%YV$yrs*mR.u*TR*c%WQ$qpR)u$rR)k$lT%az%dT%bz%dT/i*t/j",nodeNames:"\u26A0 extends ArithOp ArithOp InterpolationStart LineComment BlockComment Script ExportDeclaration export Star as VariableName String from ; default FunctionDeclaration async function VariableDefinition TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation null super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression PrivatePropertyName BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration 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",maxTerm:332,context:nk,nodeProps:[["closedBy",4,"InterpolationEnd",40,"]",51,"}",66,")",132,"JSXSelfCloseEndTag JSXEndTag",146,"JSXEndTag"],["group",-26,8,15,17,58,184,188,191,192,194,197,200,211,213,219,221,223,225,228,234,240,242,244,246,248,250,251,"Statement",-30,12,13,24,27,28,41,43,44,45,47,52,60,68,74,75,91,92,101,103,119,122,124,125,126,127,129,130,148,149,151,"Expression",-22,23,25,29,32,34,152,154,156,157,159,160,161,163,164,165,167,168,169,178,180,182,183,"Type",-3,79,85,90,"ClassItem"],["openedBy",30,"InterpolationStart",46,"[",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Precedences:{149:1,176:1},specialized:[{term:289,get:t=>uk[t]||-1},{term:299,get:t=>pk[t]||-1},{term:63,get:t=>fk[t]||-1}],tokenPrec:12130});var L=require("@codemirror/language"),To=require("@codemirror/state"),Py=require("@codemirror/view"),fe=require("@codemirror/autocomplete");var hk=[(0,fe.snippetCompletion)("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,fe.snippetCompletion)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,fe.snippetCompletion)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,fe.snippetCompletion)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,fe.snippetCompletion)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,fe.snippetCompletion)(`try {
|
|
\${}
|
|
} catch (\${error}) {
|
|
\${}
|
|
}`,{label:"try",detail:"/ catch block",type:"keyword"}),(0,fe.snippetCompletion)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,fe.snippetCompletion)(`if (\${}) {
|
|
\${}
|
|
} else {
|
|
\${}
|
|
}`,{label:"if",detail:"/ else block",type:"keyword"}),(0,fe.snippetCompletion)(`class \${name} {
|
|
constructor(\${params}) {
|
|
\${}
|
|
}
|
|
}`,{label:"class",detail:"definition",type:"keyword"}),(0,fe.snippetCompletion)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,fe.snippetCompletion)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],$y=new vo,Ey=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Rn(t){return(e,r)=>{let n=e.node.getChild("VariableDefinition");return n&&r(n,t),!0}}var Ok=["FunctionDeclaration"],dk={FunctionDeclaration:Rn("function"),ClassDeclaration:Rn("class"),ClassExpression:()=>!0,EnumDeclaration:Rn("constant"),TypeAliasDeclaration:Rn("type"),NamespaceDeclaration:Rn("namespace"),VariableDefinition(t,e){t.matchContext(Ok)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function ky(t,e){let r=$y.get(e);if(r)return r;let n=[],i=!0;function o(s,a){let l=t.sliceString(s.from,s.to);n.push({label:l,type:a})}return e.cursor(K.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let a=dk[s.name];if(a&&a(s,o)||Ey.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of ky(t,s.node))n.push(a);return!1}}),$y.set(e,n),n}var wy=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,qy=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function mk(t){let e=(0,L.syntaxTree)(t.state).resolveInner(t.pos,-1);if(qy.indexOf(e.name)>-1)return null;let r=e.to-e.from<20&&wy.test(t.state.sliceDoc(e.from,e.to));if(!r&&!t.explicit)return null;let n=[];for(let i=e;i;i=i.parent)Ey.has(i.name)&&(n=n.concat(ky(t.state.doc,i)));return{options:n,from:r?e.from:t.pos,validFor:wy}}var Ut=L.LRLanguage.define({parser:Qy.configure({props:[L.indentNodeProp.add({IfStatement:(0,L.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,L.continuedIndent)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:L.flatIndent,SwitchBody:t=>{let e=t.textAfter,r=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(r?0:n?1:2)*t.unit},Block:(0,L.delimitedIndent)({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,L.continuedIndent)({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),L.foldNodeProp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":L.foldInside,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),gk=Ut.configure({dialect:"ts"}),yk=Ut.configure({dialect:"jsx"}),vk=Ut.configure({dialect:"jsx ts"}),bk="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(t=>({label:t,type:"keyword"}));function _y(t={}){let e=t.jsx?t.typescript?vk:yk:t.typescript?gk:Ut;return new L.LanguageSupport(e,[Ut.data.of({autocomplete:(0,fe.ifNotIn)(qy,(0,fe.completeFromList)(hk.concat(bk)))}),Ut.data.of({autocomplete:mk}),t.jsx?xk:[]])}function Ty(t,e,r=t.length){if(!e)return"";let n=e.getChild("JSXIdentifier");return n?t.sliceString(n.from,Math.min(n.to,r)):""}var Sk=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),xk=Py.EditorView.inputHandler.of((t,e,r,n)=>{if((Sk?t.composing:t.compositionStarted)||t.state.readOnly||e!=r||n!=">"&&n!="/"||!Ut.isActiveAt(t.state,e,-1))return!1;let{state:i}=t,o=i.changeByRange(s=>{var a,l,u;let{head:c}=s,p=(0,L.syntaxTree)(i).resolveInner(c,-1),h;if(p.name=="JSXStartTag"&&(p=p.parent),n==">"&&p.name=="JSXFragmentTag")return{range:To.EditorSelection.cursor(c+1),changes:{from:c,insert:"><>"}};if(n==">"&&p.name=="JSXIdentifier"){if(((l=(a=p.parent)===null||a===void 0?void 0:a.lastChild)===null||l===void 0?void 0:l.name)!="JSXEndTag"&&(h=Ty(i.doc,p.parent,c)))return{range:To.EditorSelection.cursor(c+1),changes:{from:c,insert:`></${h}>`}}}else if(n=="/"&&p.name=="JSXFragmentTag"){let f=p.parent,d=f==null?void 0:f.parent;if(f.from==c-1&&((u=d.lastChild)===null||u===void 0?void 0:u.name)!="JSXEndTag"&&(h=Ty(i.doc,d==null?void 0:d.firstChild,c))){let m=`/${h}>`;return{range:To.EditorSelection.cursor(c+m.length),changes:{from:c,insert:m}}}}return{range:s}});return o.changes.empty?!1:(t.dispatch(o,{userEvent:"input.type",scrollIntoView:!0}),!0)});var Ne=require("@codemirror/language"),xt=require("@codemirror/commands"),Eo=require("@codemirror/autocomplete"),ko=require("@codemirror/search"),Iy=require("@codemirror/lint");var Cy=require("@codemirror/view"),Po=require("@codemirror/language"),C=require("@lezer/highlight"),R={name:"obsidian",dark:!1,background:"var(--background-primary)",foreground:"var(--text-normal)",selection:"var(--text-selection)",cursor:"var(--text-normal)",dropdownBackground:"var(--background-primary)",dropdownBorder:"var(--background-modifier-border)",activeLine:"var(--background-primary)",matchingBracket:"var(--background-modifier-accent)",keyword:"#d73a49",storage:"#d73a49",variable:"var(--text-normal)",parameter:"var(--text-accent-hover)",function:"var(--text-accent-hover)",string:"var(--text-accent)",constant:"var(--text-accent-hover)",type:"var(--text-accent-hover)",class:"#6f42c1",number:"var(--text-accent-hover)",comment:"var(--text-faint)",heading:"var(--text-accent-hover)",invalid:"var(--text-error)",regexp:"var(--text-accent)"},Qk=Cy.EditorView.theme({"&":{color:R.foreground,backgroundColor:R.background},".cm-content":{caretColor:R.cursor},"&.cm-focused .cm-cursor":{borderLeftColor:R.cursor},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, & ::selection":{backgroundColor:R.selection},".cm-panels":{backgroundColor:R.dropdownBackground,color:R.foreground},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:R.dropdownBackground,outline:`1px solid ${R.dropdownBorder}`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:R.selection},".cm-activeLine":{backgroundColor:R.activeLine},".cm-activeLineGutter":{backgroundColor:R.background},".cm-selectionMatch":{backgroundColor:R.selection},".cm-matchingBracket, .cm-nonmatchingBracket":{backgroundColor:R.matchingBracket,outline:"none"},".cm-gutters":{backgroundColor:R.background,color:R.comment,borderRight:"1px solid var(--background-modifier-border)"},".cm-lineNumbers, .cm-gutterElement":{color:"inherit"},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:R.foreground},".cm-tooltip":{border:`1px solid ${R.dropdownBorder}`,backgroundColor:R.dropdownBackground,color:R.foreground},".cm-tooltip.cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{background:R.selection,color:R.foreground}}},{dark:R.dark}),$k=Po.HighlightStyle.define([{tag:C.tags.keyword,color:R.keyword},{tag:[C.tags.name,C.tags.deleted,C.tags.character,C.tags.macroName],color:R.variable},{tag:[C.tags.propertyName],color:R.function},{tag:[C.tags.processingInstruction,C.tags.string,C.tags.inserted,C.tags.special(C.tags.string)],color:R.string},{tag:[C.tags.function(C.tags.variableName),C.tags.labelName],color:R.function},{tag:[C.tags.color,C.tags.constant(C.tags.name),C.tags.standard(C.tags.name)],color:R.constant},{tag:[C.tags.definition(C.tags.name),C.tags.separator],color:R.variable},{tag:[C.tags.className],color:R.class},{tag:[C.tags.number,C.tags.changed,C.tags.annotation,C.tags.modifier,C.tags.self,C.tags.namespace],color:R.number},{tag:[C.tags.typeName],color:R.type,fontStyle:R.type},{tag:[C.tags.operator,C.tags.operatorKeyword],color:R.keyword},{tag:[C.tags.url,C.tags.escape,C.tags.regexp,C.tags.link],color:R.regexp},{tag:[C.tags.meta,C.tags.comment],color:R.comment},{tag:C.tags.strong,fontWeight:"bold"},{tag:C.tags.emphasis,fontStyle:"italic"},{tag:C.tags.link,textDecoration:"underline"},{tag:C.tags.heading,fontWeight:"bold",color:R.heading},{tag:[C.tags.atom,C.tags.bool,C.tags.special(C.tags.variableName)],color:R.variable},{tag:C.tags.invalid,color:R.invalid},{tag:C.tags.strikethrough,textDecoration:"line-through"}]),Ay=[Qk,(0,Po.syntaxHighlighting)($k)];var jy=[(0,be.lineNumbers)(),(0,be.highlightSpecialChars)(),(0,xt.history)(),_y(),(0,be.drawSelection)(),(0,be.dropCursor)(),Ry.EditorState.allowMultipleSelections.of(!0),(0,Ne.indentOnInput)(),Ne.indentUnit.of(" "),(0,Ne.syntaxHighlighting)(Ne.defaultHighlightStyle,{fallback:!0}),be.EditorView.lineWrapping,(0,Ne.bracketMatching)(),(0,Eo.closeBrackets)(),(0,be.rectangularSelection)(),(0,ko.highlightSelectionMatches)(),Ay,be.keymap.of([...Eo.closeBracketsKeymap,...xt.defaultKeymap,...ko.searchKeymap,...xt.historyKeymap,xt.indentWithTab,...Iy.lintKeymap])].filter(t=>t);var pv=require("@codemirror/view");var Zy=require("obsidian"),My=require("@codemirror/view");function qo(t,e,r,n){t.dispatch({changes:{from:e,to:r,insert:n}})}function In(t,e){return(t instanceof My.EditorView?t.state:t).doc.slice(e,e+1).toString()}function Qt(t,e){t.dispatch({selection:{anchor:e,head:e}}),Cr()}function Wy(t,e,r){t.dispatch({selection:{anchor:e,head:r}}),Cr()}function Cr(){if(Zy.Platform.isMobile)return;let t=document.getElementsByClassName("cm-cursorLayer")[0];if(t){let e=t.style.animationName;t.style.animationName=e==="cm-blink"?"cm-blink2":"cm-blink"}}function Jl(t){return t.split("").reverse().join("")}function le(t,e,r,n,i,o){if(i){let l=le(Jl(t),t.length-(e+n.length),Jl(n),Jl(r),!1);return l===-1?-1:t.length-(l+r.length)}let s=0,a=o||t.length;for(let l=e;l<a;l++)if(t.slice(l,l+r.length)===r)s++;else if(t.slice(l,l+n.length)===n&&(s--,s===0))return l;return-1}function jn(t){return{")":"(","]":"[","}":"{"}[t]}function Ar(t){return{"(":")","[":"]","{":"}"}[t]}function ec(t,e){return t.composing||e.keyCode===229}function Xy(t){let e=t.scrollDOM.parentElement;if(!e)return;let r=t.scrollDOM.nextSibling,n=window.getSelection(),i=n&&{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset};t.scrollDOM.remove(),e.insertBefore(t.scrollDOM,r);try{i&&n&&(n.setPosition(i.anchorNode,i.anchorOffset),i.focusNode&&n.extend(i.focusNode,i.focusOffset))}catch(o){console.error(o)}t.focus(),t.contentDOM.dispatchEvent(new CustomEvent("compositionend"))}var nc=require("@codemirror/view");var Vy=require("@codemirror/view"),Gy=require("@codemirror/state");var Dy=Gy.Facet.define({combine:t=>t.length>0?t[0]:$n([],G)});function B(t){return(t instanceof Vy.EditorView?t.state:t).facet(Dy)}function By(t){return Dy.of(t)}var Ao=require("@codemirror/language");var wk=["text","textrm","textup","textit","textbf","textsf","texttt","textnormal","clap","textllap","textrlap","textclap","hbox","mbox","fbox","framebox","begin","end","tag","colorbox","fcolorbox","unicode","mmlToken"],Ny=wk.map(t=>({openSymbol:`\\${t}{`,closeSymbol:"}"})),Tk=["label","ref","eqref","operatorname","operatorname*","DeclareMathOperator","DeclareMathOperator*","mathrm","mathup","mathnormal","mathbf","mathbfup","mathit","mathbfit","mathbb","Bbb","mathfrak","mathbffrak","mathscr","mathbfscr","mathsf","mathsfup","mathbfsf","mathbfsfup","mathsfit","mathbfsfit","mathtt","mathcal","mathbfcal","symrm","symup","symnormal","symbf","symbfup","symit","symbfit","symbb","symfrak","symbffrak","symscr","symbfscr","symsf","symsfup","symbfsf","symbfsfup","symsfit","symbfsfit","symtt","symcal","symbfcal","Bbb"],A5=`[${Tk.map(t=>`
|
|
["${t}", "}"]`)}
|
|
]`;var rc="formatting_formatting-math_formatting-math-begin_keyword_math",Pk="formatting_formatting-math_formatting-math-end_keyword_math_math-",Fy="formatting_formatting-math_formatting-math-begin_keyword_math_math-block",Ek="formatting_formatting-math_formatting-math-end_keyword_math_math-",_o=new Set([rc,Fy]),Co=new Set([Pk,Ek]),zy="HyperMD-codeblock_HyperMD-codeblock-begin_HyperMD-codeblock-begin-bg_HyperMD-codeblock-bg",tc="HyperMD-codeblock_HyperMD-codeblock-bg_HyperMD-codeblock-end_HyperMD-codeblock-end-bg",ic=nc.ViewPlugin.fromClass(class{constructor(e){this.codeblockLanguage=null;this.updateFromView(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged)&&this.updateFromView(e.view)}updateFromView(e){var p;let r=e.state,n=r.selection;this.view=e,this.state=r,this.pos=n.main.to,this.ranges=Array.from(n.ranges).reverse(),this.mode=new nr,this.boundsCache=new Map,this.innerBoundsCache=new Map,this.codeblockLanguage=null;let i=_k(r),o=(p=i==null?void 0:i.codeblockLanguage)!=null?p:null,s=o!==null,a=B(r),l=s&&a.forceMathLanguages.contains(o);this.mode.codeMath=l,this.mode.code=s&&!l?o:!1,s&&this.mode.code!==!1&&(this.codeblockLanguage=o,this.boundsCache.set(this.pos,i));let u=Yt(e),c=l||u.inMathBound(r,this.pos);if(c!==!0&&c!==null){let h=c.mode===0;this.mode.blockMath=!h,this.mode.inlineMath=h,this.boundsCache.set(this.pos,c)}c&&(this.mode.textEnv=this.inTextEnvironment()),this.mode.text=!s&&!c}isWithinEnvironment(e,r){if(!this.mode.inMath())return!1;let n=this.getInnerBounds();if(!n)return!1;let{inner_start:i,inner_end:o}=n,s=this.state.sliceDoc(i,o);Array.isArray(r)||(r=[r]);e:for(let a of r){e-=i;let l=a.openSymbol.slice(-1),u=Ar(l),c,p;["{","[","("].contains(l)&&a.closeSymbol===u?(c=a.openSymbol.length-1,p=l):(c=0,p=a.openSymbol);let h=s.lastIndexOf(a.openSymbol,e-1);for(;h!=-1;){let f=le(s,h+c,p,a.closeSymbol,!1);if(f===-1)continue e;if(f>=e&&e>=h+a.openSymbol.length)return!0;if(h<=0)continue e;h=s.lastIndexOf(a.openSymbol,h-1)}}return!1}inTextEnvironment(){return this.isWithinEnvironment(this.pos,Ny)}getBounds(e=this.pos){let r=this.boundsCache.get(e);if(r!==void 0)return r;let n;return this.mode.codeMath?n=qk(this.state,e):n=Yt(this.view).inMathBound(this.state,e),this.boundsCache.set(e,n),n}getInnerBounds(e=this.pos){let r,n=this.innerBoundsCache.get(e);return n!==void 0?n:(this.mode.codeMath?r=this.getBounds(e):r=kk(this.view),this.innerBoundsCache.set(e,r),r)}}),U=t=>{let e=t.plugin(ic);if(!e)throw new Error("Context plugin not found, something went wrong with the plugin initialization");return e};var kk=(t,e)=>{e||(e=t.state.selection.main.to);let r=Yt(t).inMathBound(t.state,e);if(!r)return null;let n=t.state.sliceDoc(r.inner_start,r.inner_end);n=n.replaceAll("\\$","\\R");let i=n.lastIndexOf("$",e-1),o=n.indexOf("$",e);return i===-1||o===-1?r:{inner_start:i+1,inner_end:o,outer_start:i,outer_end:o+1}},qk=(t,e=t.selection.main.from)=>{let r=Ly(t,e);if(!r)return null;let{begin:n,end:i}=r;return{inner_start:n.to,inner_end:i.from,outer_start:n.from,outer_end:i.to}},Ly=(t,e=t.selection.main.from)=>{let n=(0,Ao.syntaxTree)(t).cursor();if(n.childBefore(e),!n.name.contains("codeblock")||n.name===zy&&e<=n.to||n.name===tc)return null;do if(n.name===zy)break;while(n.prev());let i=n.node;if(!i)return null;n.childAfter(e);do if(n.name===tc)break;while(n.next());let o=n.node;return!o||o.name!==tc?null:{begin:i,end:o}},_k=t=>{let e=t.selection.ranges[0].from,r=Ly(t,e);if(!r)return null;let{begin:n,end:i}=r,o=t.sliceDoc(n.from,n.to).replace(/`+|~+/g,"");return{inner_start:n.to,inner_end:i.from,outer_start:n.from,outer_end:i.to,codeblockLanguage:o}},oc=nc.ViewPlugin.fromClass(class{constructor(t){this.mathBounds=[];this.equations=null;this.inMathBound=(t,e)=>{var o,s;let r=this.mathBounds;if(e<=((o=r[0])==null?void 0:o.outer_start)||e>=((s=r[r.length-1])==null?void 0:s.outer_end))return this.getEquationBounds(t,e);let n=0,i=r.length-1;for(;n<=i;){let a=n+i>>1,l=r[a];if(e<l.outer_start)i=a-1;else if(e>=l.outer_end)n=a+1;else{if(e<=l.inner_start||e>=l.inner_end)break;return l}}return this.getEquationBounds(t,e)};this.computeEquationBounds=(t,e)=>{e===void 0&&(e=t.selection.main.to);let n=(0,Ao.syntaxTree)(t).cursor();if(n.childBefore(e),n.node.firstChild&&n.name!=="Document"){let a=e;for(;t.sliceDoc(a,a+1)===`
|
|
`&&a>0;)a-=1;n.moveTo(a,-1)}if(!(n.name.contains("math")&&!n.name.startsWith("hashtag_hashtag-end_meta_tag"))||Co.has(n.name)&&e>=n.to)return null;do if(_o.has(n.name))break;while(n.prev());let i=n.node;if(!i)return null;n.childAfter(e);do if(Co.has(n.name))break;while(n.next());let o=n.node;return o?i.to>e&&i.from<e&&i.name===Fy?{inner_start:e,inner_end:e,outer_start:i.from,outer_end:i.to,mode:0}:o.from<e||i.to>e?null:{inner_start:i.to,inner_end:o.from,outer_start:i.from,outer_end:o.to,mode:i.name===rc?0:1}:null};this.addMathBound=t=>{if(this.mathBounds.length===0)this.mathBounds.push(t);else if(t.outer_end<=this.mathBounds[0].outer_start)this.mathBounds.unshift(t);else if(t.outer_start>=this.mathBounds[this.mathBounds.length-1].outer_end)this.mathBounds.push(t);else{let e=0,r=this.mathBounds.length-1;for(;e<=r;){let n=e+r>>1;t.outer_start<this.mathBounds[n].outer_start?r=n-1:e=n+1}this.mathBounds.splice(e,0,t)}return t};this.updateMathBounds(t)}update(t){(t.docChanged||t.viewportChanged)&&(this.equations=null,this.updateMathBounds(t.view))}updateMathBounds(t){var i,o,s;let e=(0,Ao.syntaxTree)(t.state),r=[];t.visibleRanges.forEach(({from:a,to:l},u)=>{r.push([]),e.iterate({from:a,to:l,enter:c=>{(_o.has(c.name)&&c.to<l||Co.has(c.name)&&c.from>a)&&r[u].push(c.node)}})});let n=[];for(let a of r){if(Co.has((i=a[0])==null?void 0:i.name)){let u=this.computeEquationBounds(t.state,a[0].from);u&&n.push(u)}let l=_o.has((o=a[0])==null?void 0:o.name)?0:1;for(let u=l;u<a.length-1;u+=2){let c=a[u],p=a[u+1];n.push({inner_start:c.to,inner_end:p.from,outer_start:c.from,outer_end:p.to,mode:c.name===rc?0:1})}if(_o.has((s=a[a.length-1])==null?void 0:s.name)){let u=a[a.length-1],c=this.computeEquationBounds(t.state,u.to);c&&n.push(c)}}this.mathBounds=n.filter((a,l)=>{if(l===0)return!0;let u=n[l-1];return!(u.outer_start===a.outer_start&&u.outer_end===a.outer_end)})}getEquationBounds(t,e){e||(e=t.selection.main.to);let r=this.computeEquationBounds(t,e);return r?(this.addMathBound(r),r):null}getEquations(t){return this.equations?this.equations:(this.equations=new Map(this.mathBounds.map(e=>[e.inner_start,t.sliceDoc(e.inner_start,e.inner_end)])),this.equations)}}),Yt=t=>{let e=t.plugin(oc);if(!e)throw new Error("MathBoundsPlugin not found, something went wrong with the plugin initialization");return e};var Uy=t=>{let e=[],r=0;for(;r<t.length;){let n=t[r];if(/\s/.test(n)){r++;continue}let{token:i,nextIndex:o}=Ck(t,r);e.push(i),r=o}return e},Ck=(t,e)=>{switch(t[e]){case"%":return Ak(t,e);case"\\":return Rk(t,e);default:return Ik(t,e)}},Ak=(t,e)=>{let r=t.length,n=e+1;for(;n<r&&t[n]!==`
|
|
`;)n++;return{token:{start:e,end:n,text:t.slice(e,n)},nextIndex:n}},Rk=(t,e)=>{let r=t.length,n=e+1,i=t[n];if(/[A-Za-z]/.test(i))do n++;while(n<r&&/[A-Za-z]/.test(t[n]));else n++;return{token:{start:e,end:n,text:t.slice(e,n)},nextIndex:n}},Ik=(t,e)=>{let r=e+1;return{token:{start:e,end:r,text:t.slice(e,r)},nextIndex:r}};var jk=new Set(["\\left","\\bigl","\\Bigl","\\biggl","\\Biggl"]),Zk=new Set(["\\right","\\bigr","\\Bigr","\\biggr","\\Biggr"]),Mk=new Set(["(",")","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","<",">","\\langle","\\rangle","\\lt","\\gt","|","\\vert","\\lvert","\\rvert","\\|","\\Vert","\\lVert","\\rVert","\\lfloor","\\rfloor","\\lceil","\\rceil","\\ulcorner","\\urcorner","/","\\\\","\\backslash","\\uparrow","\\downarrow","\\Uparrow","\\Downarrow","."]),Wk=t=>jk.has(t.text),Yy=t=>Zk.has(t.text),sc=t=>Mk.has(t.text),Xk=(t,e)=>e.has(t.text),Vk=(t,e,r)=>{let n=t[e];if(e>0){let i=t[e-1];if(Yy(i)&&sc(n))return!0;if(Wk(i)&&sc(n))return!1}return Xk(n,r)},Gk=(t,e)=>{let r=t[e];if(!Yy(r))return!1;if(e+1>=t.length)return!0;let n=t[e+1];return!sc(n)},Zn=(t,e)=>{if(!e.mode.inMath())return!1;let r=e.getBounds();if(!r)return!1;let{inner_start:n,inner_end:i,outer_end:o}=r;if(o<=e.pos)return!1;let s=t.state.doc,a=t.state.selection.main.to,l=a-n,u=s.sliceString(n,i),c=Uy(u),p=B(t).taboutClosingSymbols,h=c.findIndex(g=>g.end>l),f=h===-1?c.length:h;for(let g=f;g<c.length;g++){if(Vk(c,g,p))return Qt(t,n+c[g].end),!0;if(Gk(c,g))return console.warn("[tabout] Found right command without following delimiter:",c[g].text,"at index",n+c[g].start),Qt(t,n+c[g].end),!0}if(!(s.sliceString(a,i).trim().length===0))return!1;if(e.mode.inlineMath||e.mode.codeMath)Qt(t,o);else{let g=s.lineAt(o),y=[];g.number===s.lines?y.push({changes:{from:g.to,to:g.to,insert:`
|
|
`},selection:{anchor:g.to+1}}):y.push({}),y[0].selection={anchor:g.to+1};let v=s.lineAt(a);v.text.trim()!==v.text&&y.push({changes:{from:v.from,to:v.to,insert:v.text.trim()}}),t.dispatch(...y)}return!0},Hy=(t,e)=>{let r=t.state.selection.main;if(!r.empty)return!1;let n=r.from,i=In(t,n);return i===e&&[")","]","}"].includes(i)};var Ky=require("@codemirror/view");var Mn=class{constructor(e,r,n,i){this.from=e,this.to=r,this.insert=n,this.keyPressed=i}getTabstops(e,r){let n=[];for(let i=r;i<r+this.insert.length;i++){if(e.charAt(i)!=="$")continue;let o=parseInt(e.charAt(i+1)),s=i,a=s+2,l="";if(isNaN(o)){if(e.charAt(i+1)!=="{")continue;let c=le(e,i+1,"{","}",!1,r+this.insert.length),p=e.slice(i,c+1);if(!p.includes(":"))continue;let h=p.indexOf(":");if(o=parseInt(p.slice(2,h)),isNaN(o)||c===-1)continue;l=e.slice(i+h+1,c),a=c+1,i=c}let u={number:o,from:s,to:a,replacement:l};n.push(u)}return n}toChangeSpec(){return this}};var Ro=require("@codemirror/language"),Jy=require("@codemirror/state"),ac=Ky.ViewPlugin.fromClass(class{constructor(){this.snippetQueue=[]}clearSnippetQueue(){this.snippetQueue=[]}QueueSnippets(t){this.snippetQueue=this.snippetQueue.concat(t)}get snippetQueueValue(){return this.snippetQueue.map(t=>new Mn(t.from,t.to,t.insert,t.keyPressed))}});function Io(t){let e=t.plugin(ac);if(!e)throw new Error("SnippetQueue plugin not found, something went wrong with the plugin initialization");return e}function rt(t,e,r,n,i){let o=new Mn(e,r,Dk(t.state,e,r,n),i);Io(t).QueueSnippets([o])}var Dk=(t,e,r,n)=>{let s=t.doc.lineAt(r).text.match(/^(>*)(\s*)/);if(!s)return n;let a=s[1],l=s[2],u=(0,Jy.countColumn)(l,t.tabSize),c=(0,Ro.getIndentUnit)(t),p=u%c;return n=n.replace(/\n(\t*)/g,(h,f)=>{let d=f.length*c+u-(f.length&&p),m=(0,Ro.indentString)(t,d);return`
|
|
`+a+m}),n};function Rr(t){Io(t).clearSnippetQueue()}var Dn=require("@codemirror/state");var Vn=require("@codemirror/state"),ov=require("@codemirror/commands");var jo=require("@codemirror/view"),Wn=require("@codemirror/state"),ev=Wn.StateEffect.define(),tv=Wn.StateEffect.define(),Ir=Wn.StateField.define({create(){return{index:0,tabstopGroups:[],color:0}},update(t,e){let r=t.tabstopGroups,n=t.color;r.forEach(o=>o.map(e.changes));for(let o of e.effects)o.is(ev)?r.splice(t.index,1,...o.value):o.is(tv)&&(r=[],n=0);let i=t.index;return e.selection&&(i=Bk(r,e.selection),r.length<=1||i>=r.length-1?(r=[],i=0,n=0):r[0].hideFromEditor()),{index:i,tabstopGroups:r,color:n}},provide:t=>jo.EditorView.decorations.of(e=>{let r=e.state.field(t).tabstopGroups,n=[];for(let i of r)i.hidden||n.push(...i.getRanges());return jo.Decoration.set(n,!0)})});function Bk(t,e){for(let r=0;r<t.length;r++)if(t[r].containsSelection(e))return r;return t.length}function Zo(t){return{effects:[ev.of(t)]}}function Mo(t){t.dispatch({effects:[tv.of(null)]})}var Nk=3;function rv(t){return t.state.field(Ir).color++%Nk}var Xn=Vn.StateEffect.define(),jr=Vn.StateEffect.define(),nv=Vn.StateEffect.define(),iv=Vn.StateEffect.define(),sv=ov.invertedEffects.of(t=>{let e=[];for(let r of t.effects)r.is(Xn)?e.push(nv.of(r.value)):r.is(nv)?e.push(Xn.of(r.value)):r.is(jr)?e.push(iv.of(null)):r.is(iv)&&e.push(jr.of(null));return e}),av=t=>{let e=t.transactions.find(n=>n.isUserEvent("undo")),r=t.transactions.find(n=>n.isUserEvent("redo"));for(let n of t.transactions)for(let i of n.effects)i.is(Xn)&&r&&t.view.dispatch({effects:Zo(i.value).effects});e&&Mo(t.view)};var uv=require("@codemirror/commands");var Gn=require("@codemirror/state"),Zr=require("@codemirror/view");var lv="latex-suite-snippet-placeholder";function zk(t,e,r){let n=`${lv} ${lv}-${r}`;return Zr.Decoration.mark({inclusive:!0,color:r,class:n}).range(t,e)}var lc=class{constructor(e,r){let n=e.map(i=>zk(i.from,i.to,r));this.decos=Zr.Decoration.set(n,!0),this.color=r,this.hidden=!1}select(e,r,n){let i=this.toEditorSelection(),o=r?cv(i):i;e.dispatch({selection:o,effects:n?jr.of(null):void 0}),Cr(),this.hideFromEditor()}toSelectionRanges(){let e=[],r=this.decos.iter();for(;r.value!=null;)e.push(Gn.EditorSelection.range(r.from,r.to)),r.next();return e}toEditorSelection(e=!1){let r=Gn.EditorSelection.create(this.toSelectionRanges());return e&&(r=cv(r)),r}containsSelection(e){function r(o,s){for(let a of s)if(a.from<=o.from&&a.to>=o.to)return!0;return!1}let n=this.toSelectionRanges(),i=!0;for(let o of e.ranges)if(!r(o,n)){i=!1;break}return i}hideFromEditor(){this.hidden=!0}map(e){this.decos=this.decos.map(e)}getRanges(){let e=[],r=this.decos.iter();for(;r.value!=null;)r.from!=r.to?e.push(r.value.range(r.from,r.to)):e.push(Lk(r.from,r.to)),r.next();return e}};function cc(t,e){let r={};for(let o of t){let s=String(o.number);r[s]?r[s].push(o):r[s]=[o]}let n=[],i=Object.keys(r);i.sort((o,s)=>parseInt(o)-parseInt(s));for(let o of i){let s=new lc(r[o],e);n.push(s)}return n}function cv(t){let e=t.ranges.map(r=>Gn.EditorSelection.range(r.to,r.to));return Gn.EditorSelection.create(e)}var Fk=Zr.Decoration.widget({widget:new class extends Zr.WidgetType{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}});function Lk(t,e){return Fk.range(t,e)}function $t(t){let e=Io(t).snippetQueueValue;if(e.length===0)return!1;let r=t.state.doc.length,n=Uk(t,e),i=t.state.selection.map(n,1),o=n.apply(t.state.doc).toString(),s=Yk(o,e,r),a={changes:n,selection:i};return s.length===0?(t.dispatch(a),Rr(t),!0):(Hk(t,s,a,o.length),Rr(t),!0)}function Uk(t,e){let r=t.state.doc,n=r.length,i=[];for(let l of e)if(l.keyPressed&&l.keyPressed.length===1){let u=t.state.doc.sliceString(l.to-1,l.to),c=l.to===0?0:l.to-1;i.push({from:c,to:l.to,insert:u+l.keyPressed})}i.length>0&&t.dispatch({changes:i,annotations:uv.isolateHistory.of("full")});let o=Dn.ChangeSet.of(i,n).invert(r),s=Dn.ChangeSet.of(e,n);return o.compose(s)}function Yk(t,e,r){let n=Dn.ChangeSet.of(e,r),o=e.map(a=>a.from).map(a=>n.mapPos(a)),s=[];for(let a=0;a<e.length;a++)s.push(...e[a].getTabstops(t,o[a]));return s}function Hk(t,e,r,n){let i=Dn.ChangeSet.of(e.map(h=>({from:h.from,to:h.to,insert:h.replacement})),n),o=rv(t),s=cc(e,o);s.forEach(h=>h.map(i));let a=cc(e,o);a.forEach(h=>h.map(i));let l=Zo(s).effects,p={selection:s[0].toEditorSelection(),effects:jr.of(null),sequential:!0};t.dispatch({effects:[...l,Xn.of(a)],changes:r.changes.compose(i),selection:r.selection},p)}function uc(t,e){let r=t.state.field(Ir).tabstopGroups,n=t.state.field(Ir).index;function i(s,a){let l=r[s];if(!l)return!1;let u=t.state.selection,c=l.toEditorSelection();return l.containsSelection(u)&&(c=l.toEditorSelection(!0)),u.eq(c)?i(s+a,a):(t.dispatch({selection:c}),Cr(),!0)}let o=e?-1:1;return i(n+o,o)}var Mr=(t,e,r,n)=>{let i=B(t),o=!1;for(let s of i.matrixShortcutsEnvNames){let a={openSymbol:"\\begin{"+s+"}",closeSymbol:"\\end{"+s+"}"};if(o=e.isWithinEnvironment(e.pos,a),o)break}if(!o)return!1;if(r==="Tab"&&t.state.selection.main.empty)return t.dispatch(t.state.replaceSelection(" & ")),!0;if(r==="Enter"){if(n&&e.mode.blockMath){let s=t.state.doc,a=s.lineAt(e.pos).number+1,l=s.line(a);Qt(t,l.to)}else n&&e.mode.inlineMath?Zn(t,e):e.mode.blockMath?(rt(t,e.pos,e.pos,` \\\\
|
|
$0`),$t(t)):t.dispatch(t.state.replaceSelection(" \\\\ "));return!0}else return!1};var fv=require("@codemirror/commands");function Kk(t){let r=U(t).getBounds();if(!r)return!1;let{inner_start:n,inner_end:i}=r,o="\\boxed{"+t.state.sliceDoc(n,i)+"}",s=t.state.sliceDoc(n-2,n)==="$$"&&t.state.sliceDoc(i,i+2)==="$$";s&&(o=`
|
|
`+o+`
|
|
`);let a=t.state.selection.main.to;qo(t,n,i,o),Qt(t,a+7+(s?1:0))}function Jk(){return{id:"latex-suite-box-equation",name:"Box current equation",editorCheckCallback:(t,e)=>{let r=e.cm,i=U(r).mode.inMath();if(t)return i;i&&Kk(r)}}}function eq(){return{id:"latex-suite-select-equation",name:"Select current equation",editorCheckCallback:(t,e)=>{let r=e.cm,n=U(r),i=n.mode.inMath();if(t)return i;if(!i)return;let o=n.getBounds();if(!o)return!1;let{inner_start:s,inner_end:a}=o,l=r.state.doc.toString();l.charAt(s)===`
|
|
`&&s++,l.charAt(a-1)===`
|
|
`&&a--,Wy(r,s,a)}}}function tq(t){return{id:"latex-suite-enable-all-features",name:"Enable all features",callback:()=>$(this,null,function*(){t.settings.snippetsEnabled=!0,t.settings.autofractionEnabled=!0,t.settings.matrixShortcutsEnabled=!0,t.settings.taboutEnabled=!0,t.settings.autoEnlargeBrackets=!0,yield t.saveSettings()})}}function rq(t){return{id:"latex-suite-disable-all-features",name:"Disable all features",callback:()=>$(this,null,function*(){t.settings.snippetsEnabled=!1,t.settings.autofractionEnabled=!1,t.settings.matrixShortcutsEnabled=!1,t.settings.taboutEnabled=!1,t.settings.autoEnlargeBrackets=!1,yield t.saveSettings()})}}function nq(t){return{id:"latex-suite-toggle-all-features",name:"Toggle all features",callback:()=>$(this,null,function*(){let e=t.settings.snippetsEnabled||t.settings.autofractionEnabled||t.settings.matrixShortcutsEnabled||t.settings.taboutEnabled||t.settings.autoEnlargeBrackets;t.settings.snippetsEnabled=!e,t.settings.autofractionEnabled=!e,t.settings.matrixShortcutsEnabled=!e,t.settings.taboutEnabled=!e,t.settings.autoEnlargeBrackets=!e,yield t.saveSettings()})}}function iq(t){return{id:"latex-suite-toggle-conceal",name:"Toggle conceal",callback:()=>$(this,null,function*(){t.settings.concealEnabled=!t.settings.concealEnabled,yield t.saveSettings()})}}var hv=t=>[Jk(),eq(),tq(t),rq(t),iq(t),nq(t)];function pc(t){return{id:"latex-suite-vim-select-mode",defineType:"defineAction",type:"action",action:e=>{var i;let r=(i=window==null?void 0:window.CodeMirrorAdapter)==null?void 0:i.Vim;if(!r)return;let n=e.listSelections();r.enterInsertMode(e),e.setSelections(n)},key:t.vimSelectMode,context:"visual"}}function fc(t){return{id:"latex-suite-vim-visual-mode",defineType:"defineAction",type:"action",action:e=>{var i;if(!e.somethingSelected())return;let r=e.listSelections(),n=(i=window==null?void 0:window.CodeMirrorAdapter)==null?void 0:i.Vim;n&&(n.exitInsertMode(e),e.setSelections(r))},key:t.vimVisualMode,context:"insert"}}function hc(t){return{id:"latex-suite-vim-special-enter",defineType:"defineAction",type:"action",action:e=>{var l;let r=(l=window==null?void 0:window.CodeMirrorAdapter)==null?void 0:l.Vim;if(!r)return;let n=e.getCursor().line,i=e.getLine(n);e.setCursor({line:n,ch:i.length+1});let o=pv.EditorView.findFromDOM(e.getWrapperElement());if(!o)return;let s=U(o);if(Mr(o,s,"Enter",!1)){r.enterInsertMode(e);return}(0,fv.insertNewlineAndIndent)({state:e.cm6.state,dispatch:u=>{let c=e.cm6;if(c.state.readOnly)return;let p="input.type.compose";if(e.curOp&&!e.curOp.lastChange&&(p="input.type.compose.start"),Array.isArray(u.annotations))try{u.annotations.forEach(h=>{h.value==="input"&&(h.value=p)})}catch(h){console.error(h)}else u.userEvent=p;c.dispatch(u)}})||console.error("Failed to insert newline and indent latex-suite-insert-newline-and-indent"),r.enterInsertMode(e)},key:t.vimMatrixEnter,context:"normal"}}function Wo(t){return[pc(t),fc(t),hc(t)]}var Vo=class extends E.PluginSettingTab{constructor(e,r){super(e,r),this.plugin=r}hide(){var e;(e=this.snippetsEditor)==null||e.destroy()}addHeading(e,r,n="math"){let o=new E.Setting(e).setName(r).setHeading().settingEl,s=o.createDiv();(0,E.setIcon)(s,n),s.addClass("latex-suite-settings-icon"),o.prepend(s)}display(){let{containerEl:e}=this;e.empty(),this.displaySnippetSettings(),this.displayConcealSettings(),this.displayColorHighlightBracketsSettings(),this.displayPopupPreviewSettings(),this.displayAutofractionSettings(),this.displayMatrixShortcutsSettings(),this.displayTaboutSettings(),this.displayAutoEnlargeBracketsSettings(),this.displayAdvancedSnippetSettings()}displaySnippetSettings(){let e=this.containerEl;this.addHeading(e,"Snippets","ballpen"),new E.Setting(e).setName("Enabled").setDesc("Whether snippets are enabled.").addToggle(a=>a.setValue(this.plugin.settings.snippetsEnabled).onChange(l=>$(this,null,function*(){this.plugin.settings.snippetsEnabled=l,yield this.plugin.saveSettings()})));let r=new E.Setting(e).setName("Snippets").setDesc('Enter snippets here. Remember to add a comma after each snippet, and escape all backslashes with an extra \\. Lines starting with "//" will be treated as comments and ignored.').setClass("snippets-text-area");this.createSnippetsEditor(r),new E.Setting(e).setName("Load snippets from file or folder").setDesc("Whether to load snippets from a specified file, or from all files within a folder (instead of from the plugin settings).").addToggle(a=>a.setValue(this.plugin.settings.loadSnippetsFromFile).onChange(l=>$(this,null,function*(){this.plugin.settings.loadSnippetsFromFile=l,r.settingEl.toggleClass("hidden",l),this.snippetsFileLocEl!=null&&this.snippetsFileLocEl.toggleClass("hidden",!l),yield this.plugin.saveSettings()})));let n=new DocumentFragment;n.createDiv({},a=>{a.innerHTML=`
|
|
The file or folder to load snippets from. The file or folder must be within your vault, and not within a hidden folder (such as <code>.obsidian/</code>).`});let i=new E.Setting(e).setName("Snippets file or folder location").setDesc(n),o;i.addSearch(a=>{a.setPlaceholder(G.snippetsFileLocation).setValue(this.plugin.settings.snippetsFileLocation).onChange((0,E.debounce)(l=>$(this,null,function*(){this.plugin.settings.snippetsFileLocation=l,yield this.plugin.saveSettings(!0)}),500,!0)),o=a.inputEl,o.addClass("latex-suite-location-input-el"),new qn(this.app,o)}),this.snippetsFileLocEl=i.settingEl;let s=this.plugin.settings.loadSnippetsFromFile;r.settingEl.toggleClass("hidden",s),this.snippetsFileLocEl.toggleClass("hidden",!s),this.createTriggerSetting(e,"non-auto snippets","snippetsTrigger"),this.createTriggerSetting(e,"next tabstop","snippetNextTabstopTrigger"),this.createTriggerSetting(e,"previous tabstop","snippetPreviousTabstopTrigger")}displayConcealSettings(){let e=this.containerEl;this.addHeading(e,"Conceal","math-integral-x");let r=new DocumentFragment;r.createDiv({},i=>i.setText("Make equations more readable by hiding LaTeX syntax and instead displaying it in a pretty format.")),r.createDiv({},i=>i.innerHTML=`
|
|
e.g. <code>\\dot{x}^{2} + \\dot{y}^{2}</code> will display as \u1E8B\xB2 + \u1E8F\xB2, and <code>\\sqrt{ 1-\\beta^{2} }</code> will display as \u221A{ 1-\u03B2\xB2 }.
|
|
`),r.createDiv({},i=>i.setText("LaTeX beneath the cursor will be revealed.")),r.createEl("br"),r.createDiv({},i=>i.setText("Disabled by default to not confuse new users. However, I recommend turning this on once you are comfortable with the plugin!")),new E.Setting(e).setName("Enabled").setDesc(r).addToggle(i=>i.setValue(this.plugin.settings.concealEnabled).onChange(o=>$(this,null,function*(){this.plugin.settings.concealEnabled=o,yield this.plugin.saveSettings()})));let n=new DocumentFragment;n.createDiv({},i=>i.setText("How long to delay the reveal of LaTeX for, in milliseconds, when the cursor moves over LaTeX. Defaults to 0 (LaTeX under the cursor is revealed immediately).")),n.createEl("br"),n.createDiv({},i=>i.setText("Can be set to a positive number, e.g. 300, to delay the reveal of LaTeX, making it much easier to navigate equations using arrow keys.")),n.createEl("br"),n.createDiv({},i=>i.setText("Must be an integer \u2265 0.")),new E.Setting(e).setName("Reveal delay (ms)").setDesc(n).addText(i=>i.setPlaceholder(String(G.concealRevealTimeout)).setValue(String(this.plugin.settings.concealRevealTimeout)).onChange(o=>{/^\d+$/.test(o)&&(this.plugin.settings.concealRevealTimeout=Number(o),this.plugin.saveSettings())}))}displayColorHighlightBracketsSettings(){let e=this.containerEl;this.addHeading(e,"Highlight and color brackets","parentheses"),new E.Setting(e).setName("Color paired brackets").setDesc("Whether to colorize matching brackets.").addToggle(r=>r.setValue(this.plugin.settings.colorPairedBracketsEnabled).onChange(n=>$(this,null,function*(){this.plugin.settings.colorPairedBracketsEnabled=n,yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Highlight matching bracket beneath cursor").setDesc("When the cursor is adjacent to a bracket, highlight the matching bracket.").addToggle(r=>r.setValue(this.plugin.settings.highlightCursorBracketsEnabled).onChange(n=>$(this,null,function*(){this.plugin.settings.highlightCursorBracketsEnabled=n,yield this.plugin.saveSettings()})))}displayPopupPreviewSettings(){let e=this.containerEl;this.addHeading(e,"Math popup preview","superscript");let r=document.createDocumentFragment(),n=document.createElement("div");n.setText("When inside an equation, show a popup preview window of the rendered math.");let i=document.createElement("br"),o=document.createElement("div");o.setText("The popup preview will be shown for all inline math equations, as well as for block math equations in Source mode."),r.append(n,i,o);let s=new E.Setting(e).setName("Enabled").setDesc(r),a=new E.Setting(e).setName("Position").setDesc("Where to display the popup preview relative to the equation source.").addDropdown(p=>p.addOption("Above","Above").addOption("Below","Below").setValue(this.plugin.settings.mathPreviewPositionIsAbove?"Above":"Below").onChange(h=>$(this,null,function*(){this.plugin.settings.mathPreviewPositionIsAbove=h==="Above",yield this.plugin.saveSettings()}))),l=new E.Setting(e).setName("Cursor symbol").setDesc(`The symbol to use as the cursor in the popup preview such as ${G.mathPreviewCursor}. Leave it blank to turn it off.`).addText(p=>{p.setPlaceholder(G.mathPreviewCursor).setValue(this.plugin.settings.mathPreviewCursor).onChange(f=>$(this,null,function*(){this.plugin.settings.mathPreviewCursor=f,yield this.plugin.saveSettings()}));let h=e.createEl("datalist",{attr:{id:"math-preview-cursor-list"}});return["\u25B6","\u2503","|","\\_","{\\mid}","{\\triangle}"].forEach(f=>h.createEl("option",{value:f})),p.inputEl.setAttribute("list","math-preview-cursor-list"),p}),u=new E.Setting(e).setName("Highlight brackets in preview").setDesc("Whether to highlight the area within the nearest pair of brackets around the cursor in the popup preview.").addToggle(p=>p.setValue(this.plugin.settings.mathPreviewBracketHighlighting).onChange(h=>$(this,null,function*(){this.plugin.settings.mathPreviewBracketHighlighting=h,yield this.plugin.saveSettings()}))),c=[a,l,u];c.forEach(p=>p.settingEl.toggleClass("hidden",!this.plugin.settings.mathPreviewEnabled)),s.addToggle(p=>p.setValue(this.plugin.settings.mathPreviewEnabled).onChange(h=>$(this,null,function*(){this.plugin.settings.mathPreviewEnabled=h,c.forEach(f=>f.settingEl.toggleClass("hidden",!h)),yield this.plugin.saveSettings()})))}displayAutofractionSettings(){let e=this.containerEl;this.addHeading(e,"Auto-fraction","math-x-divide-y-2"),new E.Setting(e).setName("Enabled").setDesc("Whether auto-fraction is enabled.").addToggle(r=>r.setValue(this.plugin.settings.autofractionEnabled).onChange(n=>$(this,null,function*(){this.plugin.settings.autofractionEnabled=n,yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Fraction symbol").setDesc("The fraction symbol to use in the replacement. e.g. \\frac, \\dfrac, \\tfrac").addText(r=>{r.setPlaceholder(G.autofractionSymbol).setValue(this.plugin.settings.autofractionSymbol).onChange(i=>$(this,null,function*(){this.plugin.settings.autofractionSymbol=i,yield this.plugin.saveSettings()}));let n=e.createEl("datalist",{attr:{id:"autofraction-symbol-list"}});["\\frac","\\dfrac","\\tfrac"].forEach(i=>n.createEl("option",{value:i})),r.inputEl.setAttribute("list","autofraction-symbol-list")}),new E.Setting(e).setName("Excluded environments").setDesc('A list of environments to exclude auto-fraction from running in. For example, to exclude auto-fraction from running while inside an exponent, such as e^{...}, use ["^{", "}"]').addTextArea(r=>r.setPlaceholder('[ ["^{", "}] ]').setValue(this.plugin.settings.autofractionExcludedEnvs).onChange(n=>$(this,null,function*(){this.plugin.settings.autofractionExcludedEnvs=n,yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Breaking characters").setDesc('A list of characters that denote the start/end of a fraction. e.g. if + is included in the list, "a+b/c" will expand to "a+\\frac{b}{c}". If + is not in the list, it will expand to "\\frac{a+b}{c}".').addText(r=>r.setPlaceholder(G.autofractionBreakingChars).setValue(this.plugin.settings.autofractionBreakingChars).onChange(n=>$(this,null,function*(){this.plugin.settings.autofractionBreakingChars=n,yield this.plugin.saveSettings()})))}displayMatrixShortcutsSettings(){let e=this.containerEl;this.addHeading(e,"Matrix shortcuts","brackets-contain"),new E.Setting(e).setName("Enabled").setDesc("Whether matrix shortcuts are enabled.").addToggle(r=>r.setValue(this.plugin.settings.matrixShortcutsEnabled).onChange(n=>$(this,null,function*(){this.plugin.settings.matrixShortcutsEnabled=n,yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Environments").setDesc("A list of environment names to run the matrix shortcuts in, separated by commas.").addText(r=>r.setPlaceholder(G.matrixShortcutsEnvNames).setValue(this.plugin.settings.matrixShortcutsEnvNames).onChange(n=>$(this,null,function*(){this.plugin.settings.matrixShortcutsEnvNames=n,yield this.plugin.saveSettings()})))}displayTaboutSettings(){let e=this.containerEl;this.addHeading(e,"Tabout","tabout"),new E.Setting(e).setName("Enabled").setDesc("Whether tabout is enabled.").addToggle(n=>n.setValue(this.plugin.settings.taboutEnabled).onChange(i=>$(this,null,function*(){this.plugin.settings.taboutEnabled=i,r.settingEl.toggleClass("hidden",!i),yield this.plugin.saveSettings()}))),this.createTriggerSetting(e,"tabout","taboutTrigger");let r=new E.Setting(e).setName("Closing brackets").setDesc("A list of closing brackets for tabout, separated by commas.").addText(n=>n.setPlaceholder(G.taboutClosingSymbols).setValue(this.plugin.settings.taboutClosingSymbols).onChange(i=>$(this,null,function*(){this.plugin.settings.taboutClosingSymbols=i,yield this.plugin.saveSettings()})));r.settingEl.toggleClass("hidden",!this.plugin.settings.taboutEnabled)}displayAutoEnlargeBracketsSettings(){let e=this.containerEl;this.addHeading(e,"Auto-enlarge brackets","parentheses"),new E.Setting(e).setName("Enabled").setDesc("Whether to automatically enlarge brackets containing e.g. sum, int, frac.").addToggle(r=>r.setValue(this.plugin.settings.autoEnlargeBrackets).onChange(n=>$(this,null,function*(){this.plugin.settings.autoEnlargeBrackets=n,yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Triggers").setDesc("A list of symbols that should trigger auto-enlarge brackets, separated by commas.").addText(r=>r.setPlaceholder(G.autoEnlargeBracketsTriggers).setValue(this.plugin.settings.autoEnlargeBracketsTriggers).onChange(n=>$(this,null,function*(){this.plugin.settings.autoEnlargeBracketsTriggers=n,yield this.plugin.saveSettings()})))}displayAdvancedSnippetSettings(){let e=this.containerEl;this.addHeading(e,"Advanced snippet settings");let r=new E.Setting(e).setName("Snippet variables").setDesc("Assign snippet variables that can be used as shortcuts when writing snippets.").addTextArea(f=>f.setValue(this.plugin.settings.snippetVariables).onChange(d=>$(this,null,function*(){this.plugin.settings.snippetVariables=d,yield this.plugin.saveSettings()})).setPlaceholder(G.snippetVariables)).setClass("latex-suite-snippet-variables-setting");new E.Setting(e).setName("Load snippet variables from file or folder").setDesc("Whether to load snippet variables from a specified file, or from all files within a folder (instead of from the plugin settings).").addToggle(f=>f.setValue(this.plugin.settings.loadSnippetVariablesFromFile).onChange(d=>$(this,null,function*(){this.plugin.settings.loadSnippetVariablesFromFile=d,r.settingEl.toggleClass("hidden",d),this.snippetVariablesFileLocEl!=null&&this.snippetVariablesFileLocEl.toggleClass("hidden",!d),yield this.plugin.saveSettings()})));let n=new DocumentFragment;n.createDiv({},f=>{f.innerHTML=`
|
|
The file or folder to load snippet variables from. The file or folder must be within your vault, and not within a hidden folder (such as <code>.obsidian/</code>).`});let i=new E.Setting(e).setName("Snippet variables file or folder location").setDesc(n);i.addSearch(f=>{f.setPlaceholder(G.snippetVariablesFileLocation).setValue(this.plugin.settings.snippetVariablesFileLocation).onChange((0,E.debounce)(m=>$(this,null,function*(){this.plugin.settings.snippetVariablesFileLocation=m,yield this.plugin.saveSettings(!0)}),500,!0));let d=f.inputEl;d.addClass("latex-suite-location-input-el"),new qn(this.app,d)}),this.snippetVariablesFileLocEl=i.settingEl;let o=this.plugin.settings.loadSnippetVariablesFromFile;r.settingEl.toggleClass("hidden",o),this.snippetVariablesFileLocEl.toggleClass("hidden",!o),new E.Setting(e).setName("Word delimiters").setDesc('Symbols that will be treated as word delimiters, for use with the "w" snippet option.').addText(f=>f.setPlaceholder(G.wordDelimiters).setValue(this.plugin.settings.wordDelimiters).onChange(d=>$(this,null,function*(){this.plugin.settings.wordDelimiters=d,yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Remove trailing whitespaces in snippets in inline math").setDesc("Whether to remove trailing whitespaces when expanding snippets at the end of inline math blocks.").addToggle(f=>f.setValue(this.plugin.settings.removeSnippetWhitespace).onChange(d=>$(this,null,function*(){this.plugin.settings.removeSnippetWhitespace=d,yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Remove closing $ when backspacing inside blank inline math").setDesc("Whether to also remove the closing $ when you delete the opening $ symbol inside blank inline math.").addToggle(f=>f.setValue(this.plugin.settings.autoDelete$).onChange(d=>$(this,null,function*(){this.plugin.settings.autoDelete$=d,yield this.plugin.saveSettings()})));let s=new E.Setting(e).setName("Don't trigger snippets when IME is active").setDesc("Whether to suppress snippets triggering when an IME is active."),a=new E.Setting(e).setName("Suppress IME warning").setDesc("Whether a warning is shown on startup if `Don't trigger snippets when IME is active` is enabled. Disable that setting if you are aware of the IME limitations. Currently only ios and android touch/swipe keyboards like gboard have support for IME. See https://github.com/artisticat1/obsidian-latex-suite/blob/main/DOCS.md#IME-keyboards for more info.").addToggle(f=>f.setValue(this.plugin.settings.suppressIMEWarning).onChange(d=>$(this,null,function*(){this.plugin.settings.suppressIMEWarning=d,yield this.plugin.saveSettings()})));a.settingEl.toggleClass("hidden",!(this.plugin.settings.suppressSnippetTriggerOnIME&&Do())),s.addToggle(f=>f.setValue(this.plugin.settings.suppressSnippetTriggerOnIME).onChange(d=>$(this,null,function*(){this.plugin.settings.suppressSnippetTriggerOnIME=d,a.settingEl.toggleClass("hidden",!(d&&Do())),yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Code languages to interpret as math mode").setDesc("Codeblock languages where the whole code block should be treated like a math block, separated by commas.").addText(f=>f.setPlaceholder(G.forceMathLanguages).setValue(this.plugin.settings.forceMathLanguages).onChange(d=>$(this,null,function*(){this.plugin.settings.forceMathLanguages=d,yield this.plugin.saveSettings()}))),new E.Setting(e).setName("Snippet debug mode").setDesc('Set the level of debug information to log about snippet expansion. Set to "info" or "verbose" to help identify issues with snippet syntax or why a snippet is not expanding. Verbose mode will log most information to the developer console on debug level.').addDropdown(f=>f.addOption("off","Off").addOption("info","Info").addOption("verbose","Verbose").setValue(this.plugin.settings.snippetDebug).onChange(d=>$(this,null,function*(){this.plugin.settings.snippetDebug=d,yield this.plugin.saveSettings()})));let l=new E.Setting(e).setName("Vim key bindings").setDesc("turn on/off vim keybindings. Note vim needs to be enabled in obsidian itself."),u=[],c=new E.Setting(e).setName("Vim: Switch from visual mode to select mode").setDesc(`maps the key to switch from visual mode to select mode.
|
|
Keymap must be a vim keymap and can't contain any spaces. Use empty string to disable this feature.
|
|
(select mode=insert keybindings)`).addText(f=>f.setPlaceholder(G.vimSelectMode).setValue(this.plugin.settings.vimSelectMode).onChange(d=>$(this,null,function*(){var v;let m=this.plugin.settings.vimSelectMode;this.plugin.settings.vimSelectMode=d,yield this.plugin.saveSettings();let g=(v=window==null?void 0:window.CodeMirrorAdapter)==null?void 0:v.Vim;if(!g)return;let y=pc(this.plugin.settings);g[y.defineType](y.id,y.action),g.mapCommand(y.key,y.type,y.id,{},{context:y.context}),g.unmap(m,y.context)})));u.push(c);let p=new E.Setting(e).setName("Vim: Switch from select mode to visual mode").setDesc(`maps the key to switch from select mode to visual mode.
|
|
must be a vim keymap and can't contain any spaces. Example <C-g><C-A-i> = Ctrl-g + Ctrl-Alt-i.
|
|
Please check the vim keybinding first on another command like w before reporting it. Some keybindings like shift don't work due to the original vim plugin. Use empty string to disable this feature.
|
|
(select mode=insert keybindings)`).addText(f=>{f.setPlaceholder(G.vimVisualMode).setValue(this.plugin.settings.vimVisualMode).onChange(d=>$(this,null,function*(){var v;let m=this.plugin.settings.vimVisualMode;this.plugin.settings.vimVisualMode=d,yield this.plugin.saveSettings();let g=fc(this.plugin.settings),y=(v=window==null?void 0:window.CodeMirrorAdapter)==null?void 0:v.Vim;y&&(y[g.defineType](g.id,g.action),y.mapCommand(g.key,g.type,g.id,{},{context:g.context}),y.unmap(m,g.context))}))});u.push(p);let h=new E.Setting(e).setName("Vim: run matrix enter").setDesc(`maps the key to the action of inserting a new line below while appending \\\\ to the current line in a matrix environment.
|
|
Use empty string to disable this feature.`).addText(f=>{f.setPlaceholder(G.vimMatrixEnter).setValue(this.plugin.settings.vimMatrixEnter).onChange(d=>$(this,null,function*(){var v;let m=this.plugin.settings.vimMatrixEnter;this.plugin.settings.vimMatrixEnter=d,yield this.plugin.saveSettings();let g=(v=window==null?void 0:window.CodeMirrorAdapter)==null?void 0:v.Vim;if(!g)return;g.unmap(m,"normal");let y=hc(this.plugin.settings);g[y.defineType](y.id,y.action),g.mapCommand(y.key,y.type,y.id,{},{context:y.context}),g.unmap(m,y.context)}))});u.push(h),l.addToggle(f=>{let d=this.plugin.settings.vimEnabled&&(app==null?void 0:app.isVimEnabled());u.forEach(m=>m.settingEl.toggleClass("hidden",!d)),f.setValue(this.plugin.settings.vimEnabled&&(app==null?void 0:app.isVimEnabled())).onChange(m=>$(this,null,function*(){var y;this.plugin.settings.vimEnabled=m,yield this.plugin.saveSettings(),u.forEach(v=>v.settingEl.toggleClass("hidden",!m));let g=(y=window==null?void 0:window.CodeMirrorAdapter)==null?void 0:y.Vim;if(g)for(let v of Wo(this.plugin.settings))g.unmap(v.key,v.context)}))})}createSnippetsEditor(e){let r=e.controlEl.createDiv("snippets-editor-wrapper"),n=e.controlEl.createDiv("snippets-footer"),i=n.createDiv("snippets-editor-validity"),o=new E.ExtraButtonComponent(i);o.setIcon("checkmark").extraSettingsEl.addClass("snippets-editor-validity-indicator");let s=i.createDiv("snippets-editor-validity-text");s.addClass("setting-item-description"),s.style.padding="0";function a(f){o.setIcon(f?"checkmark":"cross"),o.extraSettingsEl.removeClass(f?"invalid":"valid"),o.extraSettingsEl.addClass(f?"valid":"invalid"),s.setText(f?"Saved":"Invalid syntax. Changes not saved")}let l=jy,u=Oc.EditorView.updateListener.of(f=>$(this,null,function*(){if(f.docChanged){let d=f.state.doc.toString(),m=!0,g;try{g=yield Pt(this.plugin.settings.snippetVariables),yield ir(d,g)}catch(y){m=!1}if(a(m),!m)return;this.plugin.settings.snippets=d,yield this.plugin.saveSettings()}}));l.push(u),this.snippetsEditor=oq(this.plugin.settings.snippets,l),r.appendChild(this.snippetsEditor.dom);let c=n.createDiv("snippets-editor-buttons");new E.ButtonComponent(c).setIcon("switch").setTooltip("Reset to default snippets").onClick(()=>$(this,null,function*(){new Go(this.plugin.app,"Are you sure? This will delete any custom snippets you have written.",f=>f.setButtonText("Reset to default snippets").setWarning(),()=>$(this,null,function*(){this.snippetsEditor.setState(Xo.EditorState.create({doc:Qn,extensions:l})),a(!0),this.plugin.settings.snippets=Qn,yield this.plugin.saveSettings()})).open()})),new E.ButtonComponent(c).setIcon("trash").setTooltip("Remove all snippets").onClick(()=>$(this,null,function*(){new Go(this.plugin.app,"Are you sure? This will delete any custom snippets you have written.",f=>f.setButtonText("Remove all snippets").setWarning(),()=>$(this,null,function*(){let f=`[
|
|
|
|
]`;this.snippetsEditor.setState(Xo.EditorState.create({doc:f,extensions:l})),a(!0),this.plugin.settings.snippets=f,yield this.plugin.saveSettings()})).open()}))}createTriggerSetting(e,r,n){return new E.Setting(e).setName(`Key trigger for ${r}`).setDesc(sq(r)).addText(i=>i.setValue(this.plugin.settings[n]).setPlaceholder(G[n]).onChange(o=>$(this,null,function*(){cs(o),this.plugin.settings[n]=o,yield this.plugin.saveSettings()})))}},Go=class extends E.Modal{constructor(e,r,n,i){super(e),this.contentEl.addClass("latex-suite-confirmation-modal"),this.contentEl.createEl("p",{text:r}),new E.Setting(this.contentEl).addButton(o=>{n(o),o.onClick(()=>$(this,null,function*(){yield i(),this.close()}))}).addButton(o=>o.setButtonText("Cancel").onClick(()=>this.close()))}};function oq(t,e){return new Oc.EditorView({state:Xo.EditorState.create({doc:t,extensions:e})})}function Do(){return E.Platform.isMobileApp}function sq(t){let e=new DocumentFragment,r=e.createDiv();return r.innerHTML=`What key to press to trigger ${t}. Should follow codemirror keymap syntax such as "Ctrl-k Ctrl-a". For more info see <a href="https://codemirror.net/docs/ref/#view.KeyBinding">codemirror keymap documentation</a>.`,e}var Ov={math:`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-math" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M19 5h-7l-4 14l-3 -6h-2"></path>
|
|
<path d="M14 13l6 6"></path>
|
|
<path d="M14 19l6 -6"></path>
|
|
</svg>`,"math-x-divide-y-2":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-math-x-divide-y-2" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M3 21l18 -18"></path>
|
|
<path d="M15 14l3 4.5"></path>
|
|
<path d="M21 14l-4.5 7"></path>
|
|
<path d="M3 4l6 6"></path>
|
|
<path d="M3 10l6 -6"></path>
|
|
</svg>`,parentheses:`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-parentheses" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M7 4a12.25 12.25 0 0 0 0 16"></path>
|
|
<path d="M17 4a12.25 12.25 0 0 1 0 16"></path>
|
|
</svg>`,"math-function":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-math-function" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2"></path>
|
|
<path d="M5 12h6"></path>
|
|
<path d="M15 12l6 6"></path>
|
|
<path d="M15 18l6 -6"></path>
|
|
</svg>`,"math-integral-x":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-math-integral-x" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2"></path>
|
|
<path d="M14 12l6 6"></path>
|
|
<path d="M14 18l6 -6"></path>
|
|
</svg>`,"brackets-contain":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brackets-contain" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M7 4h-4v16h4"></path>
|
|
<path d="M17 4h4v16h-4"></path>
|
|
<path d="M8 16h.01"></path>
|
|
<path d="M12 16h.01"></path>
|
|
<path d="M16 16h.01"></path>
|
|
</svg>`,"code-dots":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-code-dots" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M15 12h.01"></path>
|
|
<path d="M12 12h.01"></path>
|
|
<path d="M9 12h.01"></path>
|
|
<path d="M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"></path>
|
|
<path d="M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"></path>
|
|
</svg>`,ballpen:`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-ballpen" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M14 6l7 7l-4 4"></path>
|
|
<path d="M5.828 18.172a2.828 2.828 0 0 0 4 0l10.586 -10.586a2 2 0 0 0 0 -2.829l-1.171 -1.171a2 2 0 0 0 -2.829 0l-10.586 10.586a2.828 2.828 0 0 0 0 4z"></path>
|
|
<path d="M4 20l1.768 -1.768"></path>
|
|
</svg>`,superscript:`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-superscript" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M5 7l8 10m-8 0l8 -10"></path>
|
|
<path d="M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2"></path>
|
|
</svg>`,tabout:`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 10.583 10.583">
|
|
<g style="fill:none;stroke:currentColor;stroke-width:3.22892904;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none">
|
|
<path d="M14.818 22.164h-.688c-1.52 0-3.983-1.82-3.983-4.066V-.612c0-2.245 2.462-4.065 3.983-4.065h.688" style="stroke-width:3.22892904;stroke-miterlimit:4;stroke-dasharray:none" transform="translate(6.566 2.931) scale(.24373)"/>
|
|
<path d="M5.605 22.16h.662c1.462 0 3.88-1.906 3.88-4.258v-1.065M5.605-4.674h.662c1.462 0 3.88 1.907 3.88 4.259V.65" style="stroke-width:3.22892904;stroke-miterlimit:4;stroke-dasharray:none" transform="translate(6.566 2.931) scale(.24373)"/>
|
|
</g>
|
|
<g style="fill:none;stroke:currentColor;stroke-width:3.22892904;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none">
|
|
<path d="M0 0h24v24H0Z" style="fill:none;stroke:none;stroke-width:3.22892904;stroke-miterlimit:4;stroke-dasharray:none" transform="translate(2.662 4.719) scale(.24373)" stroke="none"/>
|
|
<path d="M-9.136 8.694v5.17a1 1 0 0 0 1 1h23.658a1 1 0 0 0 1-1v-5.17" style="stroke-width:3.22892904;stroke-miterlimit:4;stroke-dasharray:none" transform="translate(2.662 4.719) scale(.24373)"/>
|
|
</g>
|
|
</svg>
|
|
`};var Yo=require("@codemirror/view");var qe=require("@codemirror/view"),Ht=require("@codemirror/state");var Bo=require("obsidian");function oe(...t){return t}var dc=class extends qe.WidgetType{constructor(r,n,i){super();this.symbol=r;this.className=n||"",this.elementType=i||"span"}eq(r){return r.symbol==this.symbol&&r.className===this.className&&r.elementType===this.elementType}toDOM(){let r=document.createElement(this.elementType);return r.className="cm-math "+this.className,r.textContent=this.symbol,r}ignoreEvent(){return!1}},mc=class extends qe.WidgetType{constructor(r){super();this.symbol=r}eq(r){return r.symbol==this.symbol}toDOM(){let r=document.createElement("span");return r.className="cm-math",r.textContent=this.symbol,r}ignoreEvent(){return!1}};function aq(t,e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;++n){let i=t.changes.mapPos(e[n].start,1),o=t.changes.mapPos(e[n].end,-1);if(!(i==r[n].start&&o==r[n].end))return!1}return!0}function lq(t,e){let r="apart";for(let n of t.ranges)for(let i of e){let o=Math.max(n.from,i.start),s=Math.min(n.to,i.end);if(o===s&&(o===i.start||o===i.end)){r="edge";continue}if(o<=s)return"within"}return r}function cq(t,e,r,n){return r||e==="apart"?"conceal":e==="within"||!n||!t||t==="within"?"reveal":"delay"}function dv(t){let e=[];for(let r of t)if(r.enable)for(let n of r.spec)if(n.start===n.end)e.push(qe.Decoration.widget({widget:new mc(n.text),block:!1}).range(n.start,n.end));else{let i=n.text==="";e.push(qe.Decoration.replace({widget:new dc(n.text,n.class,n.elementType),inclusiveStart:i,inclusiveEnd:!1,block:!1}).range(n.start,n.end))}return qe.Decoration.set(e,!0)}function mv(t){let e=t.filter(i=>i.enable).flatMap(i=>i.spec).sort((i,o)=>i.start-o.start),r=new class extends Ht.RangeValue{},n=new Ht.RangeSetBuilder;for(let i=0;i<e.length;i++)e[i].text===""?i+1!=e.length&&e[i].end==e[i+1].start?(n.add(e[i].start,e[i+1].end,r),i++):n.add(e[i].start,e[i].end+1,r):n.add(e[i].start,e[i].end,r);return n.finish()}var gv=qe.ViewPlugin.fromClass(class{constructor(t){this.delayedRevealCallback=(t,e)=>{var r;for(let n of t)n.enable=!1;this.decorations=dv(this.concealments),this.atomicRanges=mv(this.concealments),e.dispatch(),(r=e==null?void 0:e.cm)==null||r.signal("vim-command-done")};this.concealments=[],this.decorations=qe.Decoration.none,this.atomicRanges=Ht.RangeSet.empty;let e=B(t).concealRevealTimeout;this.delayEnabled=e>0,this.cached_equations={},this.concealSpecs=[],this.delayedReveal=(0,Bo.debounce)(this.delayedRevealCallback,e,!0),this.update({view:t,state:t.state,docChanged:!0})}update(t){if(t.docChanged||t.viewportChanged||t.selectionSet)if(this.delayedReveal.cancel(),!t.docChanged&&!t.viewportChanged)this.updateFromConcealSpecs(this.concealSpecs,t);else{let{specs:e,cached_equations:r}=yv(t.view,this.cached_equations);this.cached_equations=r,this.concealSpecs=e,this.updateFromConcealSpecs(e,t)}}updateFromConcealSpecs(t,e){var s,a;let r=e.state.selection,n=(a=(s=e.view.plugin(Bo.livePreviewState))==null?void 0:s.mousedown)!=null?a:!1,i=[],o=[];for(let l of t){let u=lq(r,l),c=this.concealments.find(f=>aq(e,f.spec,l)),p=cq(c==null?void 0:c.cursorPosType,u,n,this.delayEnabled),h={spec:l,cursorPosType:u,enable:p!=="reveal"};p==="delay"&&o.push(h),i.push(h)}o.length>0&&this.delayedReveal(o,e.view),this.concealments=i,this.decorations=dv(this.concealments),this.atomicRanges=mv(this.concealments)}},{decorations:t=>t.decorations,provide:t=>qe.EditorView.atomicRanges.of(e=>{var r,n;return(n=(r=e.plugin(t))==null?void 0:r.atomicRanges)!=null?n:Ht.RangeSet.empty})});var vv={aleph:"\u2135",amalg:"\u2A3F",And:"&",angle:"\u2220",approx:"\u2248",approxeq:"\u224A",ast:"\u2217",asymp:"\u224D",backepsilon:"\u220D",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",backslash:"\u2216",barwedge:"\u22BC",Bbbk:"k",because:"\u2235",beth:"\u2136",between:"\u226C",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",blacklozenge:"\u29EB",blacksquare:"\u25FC",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",bot:"\u22A5",bowtie:"\u22C8",Box:"\u25FB",boxdot:"\u22A1",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",bullet:"\u2219",bumpeq:"\u224F",Bumpeq:"\u224E",Cap:"\u22D2",cap:"\u2229",cdot:"\u22C5",cdotp:"\u22C5",cdots:"\u22EF",celsius:"\u2103",centerdot:"\u22C5",checkmark:"\u2713",circ:"\u2218",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",circledR:"\xAE",circledS:"\u24C8",clubsuit:"\u2663",complement:"\u2201",cong:"\u2245",coprod:"\u2210",copyright:"\xA9",cp:"\xD7",cross:"\xD7",crossproduct:"\xD7",Cup:"\u22D3",cup:"\u222A",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",dagger:"\u2020",daleth:"\u2138",dashleftarrow:"\u21E0",dashrightarrow:"\u21E2",dashv:"\u22A3",ddagger:"\u2021",ddots:"\u22F1",degree:"\xB0",diagdown:"\u2572",diagup:"\u2571",Diamond:"\u25CA",diamond:"\u22C4",diamondsuit:"\u2662",digamma:"\u03DD",div:"\xF7",divideontimes:"\u22C7",divsymbol:"\xF7",Doteq:"\u2251",doteq:"\u2250",doteqdot:"\u2251",dotplus:"\u2214",dotproduct:"\u22C5",dots:"\u2026",dotsb:"\u22EF",dotsc:"\u2026",dotsi:"\u22EF",dotsm:"\u22EF",dotso:"\u2026",doublebarwedge:"\u2A5E",doublecap:"\u22D2",doublecup:"\u22D3",downarrow:"\u2193",Downarrow:"\u21D3",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",ell:"\u2113",emptyset:"\u2205",eqcirc:"\u2256",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equiv:"\u2261",eth:"\xF0",exists:"\u2203",fallingdotseq:"\u2252",Finv:"\u2132",flat:"\u266D",forall:"\u2200",frown:"\u2322",Game:"\u2141",ge:"\u2265",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gets:"\u2190",gg:"\u226B",ggg:"\u22D9",gggtr:"\u22D9",gimel:"\u2137",gnapprox:"\u2A8A",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gradientnabla:"\u2207",gt:">",gtrapprox:"\u2A86",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269",hbar:"\u210F",heartsuit:"\u2661",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hslash:"\u210F",iff:"\u21D4",iiiint:"\u2A0C",iiint:"\u222D",iint:"\u222C",Im:"\u2111",imaginary:"\u2111",imath:"\u0131",in:"\u2208",infty:"\u221E",injlim:"inj lim",int:"\u222B",intercal:"\u22BA",intop:"\u222B",jmath:"\u0237",Join:"\u22C8",land:"\u2227",lceil:"\u2308",ldotp:".",ldots:"\u2026",le:"\u2264",leadsto:"\u21DD",left:"",Leftarrow:"\u21D0",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lhd:"\u22B2",ll:"\u226A",Lleftarrow:"\u21DA",lll:"\u22D8",llless:"\u22D8",lnapprox:"\u2A89",lneq:"\u2A87",lneqq:"\u2268",lnot:"\xAC",lnsim:"\u22E6",longleftarrow:"\u27F5",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lor:"\u2228",lozenge:"\u25CA",Lsh:"\u21B0",lt:"<",ltimes:"\u22C9",lvertneqq:"\u2268",maltese:"\u2720",mapsto:"\u21A6",measuredangle:"\u2221",mho:"\u2127",micro:"\xB5",mid:"\u2223",middle:"",models:"\u22A8",mp:"\u2213",multimap:"\u22B8",nabla:"\u2207",natural:"\u266E",ncong:"\u2247",ne:"\u2260",nearrow:"\u2197",neg:"\xAC",neq:"\u2260",neqslant:"\u2260",nexists:"\u2204",ngeq:"\u2271",ngeqq:"\u2271",ngeqslant:"\u2A88",ngtr:"\u226F",ni:"\u220B",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2270",nleqslant:"\u2A87",nless:"\u226E",nmid:"\u2224",notChar:"\u29F8",notin:"\u2209",nparallel:"\u2226",nprec:"\u2280",npreceq:"\u22E0",nrightarrow:"\u219B",nRightarrow:"\u21CF",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsubseteq:"\u2288",nsubseteqq:"\u2288",nsucc:"\u2281",nsucceq:"\u22E1",nsupseteq:"\u2289",nsupseteqq:"\u2289",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nwarrow:"\u2196",odot:"\u2299",ohm:"\u2126",oint:"\u222E",ominus:"\u2296",oplus:"\u2295",oslash:"\u2298",otimes:"\u2297",owns:"\u220B",P:"\xB6",parallel:"\u2225",partial:"\u2202",perp:"\u22A5",perthousand:"\u2030",pitchfork:"\u22D4",pm:"\xB1",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",prod:"\u220F",projlim:"proj lim",propto:"\u221D",qquad:"\u2001",quad:"\u2000",rceil:"\u2309",Re:"\u211C",real:"\u211C",restriction:"\u21BE",rhd:"\u22B3",right:"",Rightarrow:"\u21D2",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u21DD",rightthreetimes:"\u22CC",risingdotseq:"\u2253",Rrightarrow:"\u21DB",Rsh:"\u21B1",rtimes:"\u22CA",S:"\xA7",searrow:"\u2198",setminus:"\u2216",sharp:"\u266F",shortmid:"\u2223",shortparallel:"\u2225",sim:"\u223C",simeq:"\u2243",smallfrown:"\u2322",smallint:"\u222B",smallsetminus:"\u2216",smallsmile:"\u2323",smile:"\u2323",spadesuit:"\u2660",sphericalangle:"\u2222",sqcap:"\u2293",sqcup:"\u2294",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25FB",star:"\u22C6",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",surd:"\u221A",swarrow:"\u2199",therefore:"\u2234",thickapprox:"\u2248",thicksim:"\u223C",times:"\xD7",to:"\u2192",top:"\u22A4",triangle:"\u25B3",triangledown:"\u25BD",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",unlhd:"\u22B4",unrhd:"\u22B5",uparrow:"\u2191",Uparrow:"\u21D1",updownarrow:"\u2195",Updownarrow:"\u21D5",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upuparrows:"\u21C8",varpropto:"\u221D",varsubsetneq:"\u228A",varsubsetneqq:"\u2ACB",varsupsetneq:"\u228B",varsupsetneqq:"\u2ACC",vartriangle:"\u25B3",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vDash:"\u22A8",Vdash:"\u22A9",vdash:"\u22A2",vdot:"\u22C5",vdots:"\u22EE",vee:"\u2228",veebar:"\u22BB",Vvdash:"\u22AA",wedge:"\u2227",wp:"\u2118",wr:"\u2240",yen:"\xA5",implies:"\u21D2",impliedby:"\u21D0",choose:"C",sqrt:"\u221A",coloneqq:"\u2254",colon:":",Colonapprox:"::\u2248",Coloneq:"::-",Coloneqq:"\u2A74",Colonsim:"::\u223C",Eqcolon:"-::",Eqqcolon:"=::",colonapprox:":\u2248",coloneq:":-",colonsim:":\u223C",dblcolon:"\u2237",eqcolon:"\u2239",eqqcolon:"\u2255",displaystyle:" ",",":" ",":":" ",";":" ",">":" ",enspace:" ",thinspace:" ",negthinspace:"","!":"",textacutedbl:"\u02DD",textasciiacute:"\xB4",textasciibreve:"\u02D8",textasciicaron:"\u02C7",textasciicircum:"^",textasciidieresis:"\xA8",textasciimacron:"\xAF",textasciitilde:"~",textasteriskcentered:"*",textbackslash:"\\",textbaht:"\u0E3F",textbar:"|",textbardbl:"\u2016",textbigcircle:"\u25EF",textblank:"\u2422",textborn:"*",textbraceleft:"{",textbraceright:"}",textbrokenbar:"\xA6",textbullet:"\u2022",textcelsius:"\u2103",textcent:"\xA2",textcentoldstyle:"\xA2",textcircledP:"\u2117",textcolonmonetary:"\u20A1",textcompwordmark:"\u200C",textcopyleft:"\u{1F12F}",textcopyright:"\xA9",textcurrency:"\xA4",textdagger:"\u2020",textdaggerdbl:"\u2021",textdegree:"\xB0",textdied:"\u2020",textdiscount:"\u2052",textdiv:"\xF7",textdivorced:"\u26AE",textdollar:"$",textdollaroldstyle:"$",textdong:"\u20AB",textdownarrow:"\u2193",texteightoldstyle:"8",textellipsis:"\u2026",textemdash:"\u2014",textendash:"\u2013",textestimated:"\u212E",texteuro:"\u20AC",textexclamdown:"\xA1",textfiveoldstyle:"5",textflorin:"\u0192",textfouroldstyle:"4",textfractionsolidus:"\u2044",textgravedbl:"\u02F5",textgreater:">",textguarani:"\u20B2",textinterrobang:"\u203D",textinterrobangdown:"\u2E18",textlangle:"\u2329",textlbrackdbl:"\u27E6",textleftarrow:"\u2190",textless:"<",textlira:"\u20A4",textlnot:"\xAC",textlquill:"\u2045",textmarried:"\u26AD",textmho:"\u2127",textminus:"\u2212",textmu:"\xB5",textmusicalnote:"\u266A",textnaira:"\u20A6",textnineoldstyle:"9",textnumero:"\u2116",textohm:"\u2126",textonehalf:"\xBD",textoneoldstyle:"1",textonequarter:"\xBC",textonesuperior:"\xB9",textopenbullet:"\u25E6",textordfeminine:"\xAA",textordmasculine:"\xBA",textparagraph:"\xB6",textperiodcentered:"\xB7",textpertenthousand:"\u2031",textperthousand:"\u2030",textpeso:"\u20B1",textpm:"\xB1",textquestiondown:"\xBF",textquotedblleft:"\u201C",textquotedblright:"\u201D",textquoteleft:"\u2018",textquoteright:"\u2019",textrangle:"\u232A",textrbrackdbl:"\u27E7",textrecipe:"\u211E",textreferencemark:"\u203B",textregistered:"\xAE",textrightarrow:"\u2192",textrquill:"\u2046",textsection:"\xA7",textservicemark:"\u2120",textsevenoldstyle:"7",textsixoldstyle:"6",textsterling:"\xA3",textsurd:"\u221A",textthreeoldstyle:"3",textthreequarters:"\xBE",textthreesuperior:"\xB3",texttildelow:"\u02F7",texttimes:"\xD7",texttrademark:"\u2122",texttwooldstyle:"2",texttwosuperior:"\xB2",textunderscore:"_",textuparrow:"\u2191",textvisiblespace:"\u2423",textwon:"\u20A9",textyen:"\xA5",textzerooldstyle:"0"},bv={leftarrow:"\u219A",to:"\u219B",leftrightarrow:"\u21AE",Leftarrow:"\u21CD",Rightarrow:"\u21CF",Leftrightarrow:"\u21CE",in:"\u2209",owns:"\u220C",shortmid:"\u2224",shortparallel:"\u2226",thicksim:"\u2241",simeq:"\u2244",cong:"\u2247",thickapprox:"\u2249",asymp:"\u226D",equiv:"\u2262",lt:"\u226E",gt:"\u226F",leq:"\u2270",geq:"\u2271",lesssim:"\u2274",gtrsim:"\u2275",lessgtr:"\u2278",gtrless:"\u2279",prec:"\u2280",succ:"\u2281",subset:"\u2284",supset:"\u2285",subseteq:"\u2288",supseteq:"\u2289",vdash:"\u22AC",vDash:"\u22AD",Vdash:"\u22AE",preccurlyeq:"\u22E0",succcurlyeq:"\u22E1",sqsubseteq:"\u22E2",sqsupseteq:"\u22E3",vartriangleleft:"\u22EA",vartriangleright:"\u22EB",unlhd:"\u22EC",unrhd:"\u22ED",exists:"\u2204"},Sv=["arcsin","arccos","arctan","sinh","cosh","tanh","coth","sin","cos","tan","sec","csc","cot","exp","ker","limsup","lim","sup","deg","gcd","log","lg","ln","Pr","det","hom","arg","dim","liminf","min","max","inf","mod"],xv={"{1}{2}":"\xBD","{1}{3}":"\u2153","{2}{3}":"\u2154","{1}{4}":"\xBC","{1}{5}":"\u2155","{2}{5}":"\u2156","{3}{5}":"\u2157","{4}{5}":"\u2158","{1}{6}":"\u2159","{5}{6}":"\u215A","{1}{8}":"\u215B","{3}{8}":"\u215C","{5}{8}":"\u215D","{7}{8}":"\u215E"},gc={alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",varGamma:"\u0393",delta:"\u03B4",varDelta:"\u0394",epsilon:"\u03F5",varepsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",vartheta:"\u03D1",iota:"\u03B9",kappa:"\u03BA",varkappa:"\u03F0",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",varpi:"\u03D6",varPi:"\u03A0",rho:"\u03C1",varrho:"\u03F1",sigma:"\u03C3",varsigma:"\u03C2",varSigma:"\u03A3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03D5",varphi:"\u03C6",varPhi:"\u03A6",chi:"\u03C7",psi:"\u03C8",varPsi:"\u03A8",omega:"\u03C9",Gamma:"\u0393",Delta:"\u0394",Theta:"\u0398",varTheta:"\u0398",Lambda:"\u039B",varLambda:"\u039B",Xi:"\u039E",varXi:"\u039E",Pi:"\u03A0",Sigma:"\u03A3",Upsilon:"\u03A5",varUpsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",varOmega:"\u03A9",varnothing:"\u2205",upalpha:"\u03B1",upbeta:"\u03B2",upgamma:"\u03B3",updelta:"\u03B4",upepsilon:"\u03F5",upzeta:"\u03B6",upeta:"\u03B7",uptheta:"\u03B8",upiota:"\u03B9",upkappa:"\u03BA",uplambda:"\u03BB",upmu:"\u03BC",upnu:"\u03BD",upxi:"\u03BE",upomicron:"\u03BF",uppi:"\u03C0",uprho:"\u03C1",upsigma:"\u03C3",uptau:"\u03C4",upupsilon:"\u03C5",upphi:"\u03D5",upchi:"\u03C7",uppsi:"\u03C8",upomega:"\u03C9",upvarepsilon:"\u03B5",upvartheta:"\u03D1",upvarpi:"\u03D6",upvarrho:"\u03F1",upvarsigma:"\u03C2",upvarphi:"\u03C6",Upgamma:"\u0393",Updelta:"\u0394",Uptheta:"\u0398",Uplambda:"\u039B",Upxi:"\u039E",Uppi:"\u03A0",Upsigma:"\u03A3",Upupsilon:"\u03A5",Upphi:"\u03A6",Uppsi:"\u03A8",Upomega:"\u03A9"},Qv={"(":"\u207D",")":"\u207E","+":"\u207A","-":"\u207B","=":"\u207C",":":"\uFE13",";":"\uFE14","<":"\u02C2",">":"\u02C3",0:"\u2070",1:"\xB9",2:"\xB2",3:"\xB3",4:"\u2074",5:"\u2075",6:"\u2076",7:"\u2077",8:"\u2078",9:"\u2079",a:"\u1D43",b:"\u1D47",c:"\u1D9C",d:"\u1D48",e:"\u1D49",f:"\u1DA0",g:"\u1D4D",h:"\u02B0",i:"\u2071",j:"\u02B2",k:"\u1D4F",l:"\u02E1",m:"\u1D50",n:"\u207F",o:"\u1D52",p:"\u1D56",r:"\u02B3",s:"\u02E2",t:"\u1D57",u:"\u1D58",v:"\u1D5B",w:"\u02B7",x:"\u02E3",y:"\u02B8",z:"\u1DBB",A:"\u1D2C",B:"\u1D2E",D:"\u1D30",E:"\u1D31",G:"\u1D33",H:"\u1D34",I:"\u1D35",J:"\u1D36",K:"\u1D37",L:"\u1D38",M:"\u1D39",N:"\u1D3A",O:"\u1D3C",P:"\u1D3E",R:"\u1D3F",T:"\u1D40",U:"\u1D41",V:"\u2C7D",W:"\u1D42"},$v={"(":"\u208D",")":"\u208E","+":"\u208A","-":"\u208B","=":"\u208C",0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089",a:"\u2090",e:"\u2091",h:"\u2095",i:"\u1D62",j:"\u2C7C",k:"\u2096",l:"\u2097",m:"\u2098",n:"\u2099",o:"\u2092",p:"\u209A",r:"\u1D63",s:"\u209B",t:"\u209C",u:"\u1D64",v:"\u1D65",x:"\u2093"};var wv={"left<":"\u3008","right>":"\u3009",langle:"\u3008",rangle:"\u3009",lvert:"|",rvert:"|",lVert:"\u2016",rVert:"\u2016",vert:"|",".":"","/":"/",Arrowvert:"\u2016",Vert:"\u2016",arrowvert:"\u23D0",bracevert:"\u23AA","left\\gt":"\u27E9","right\\gt":"\u27E9",lbrace:"{",lbrack:"[",lfloor:"\u230A",lgroup:"\u27EE",llcorner:"\u231E",lmoustache:"\u23B0",lparen:"(",lrcorner:"\u231F","left\\lt":"\u27E8","right\\lt":"\u27E8",rbrace:"}",rbrack:"]",rfloor:"\u230B",rgroup:"\u27EF",rmoustache:"\u23B1",rparen:")",ulcorner:"\u231C",urcorner:"\u231D"},Tv={" ":" ",0:"\u{1D7D8}",1:"\u{1D7D9}",2:"\u{1D7DA}",3:"\u{1D7DB}",4:"\u{1D7DC}",5:"\u{1D7DD}",6:"\u{1D7DE}",7:"\u{1D7DF}",8:"\u{1D7E0}",9:"\u{1D7E1}",A:"\u{1D538}",B:"\u{1D539}",C:"\u2102",D:"\u{1D53B}",E:"\u{1D53C}",F:"\u{1D53D}",G:"\u{1D53E}",H:"\u210D",I:"\u{1D540}",J:"\u{1D541}",K:"\u{1D542}",L:"\u{1D543}",M:"\u{1D544}",N:"\u2115",O:"\u{1D546}",P:"\u2119",Q:"\u211A",R:"\u211D",S:"\u{1D54A}",T:"\u{1D54B}",U:"\u{1D54C}",V:"\u{1D54D}",W:"\u{1D54E}",X:"\u{1D54F}",Y:"\u{1D550}",Z:"\u2124",a:"\u{1D552}",b:"\u{1D553}",c:"\u{1D554}",d:"\u{1D555}",e:"\u{1D556}",f:"\u{1D557}",g:"\u{1D558}",h:"\u{1D559}",i:"\u{1D55A}",j:"\u{1D55B}",k:"\u{1D55C}",l:"\u{1D55D}",m:"\u{1D55E}",n:"\u{1D55F}",o:"\u{1D560}",p:"\u{1D561}",q:"\u{1D562}",r:"\u{1D563}",s:"\u{1D564}",t:"\u{1D565}",u:"\u{1D566}",v:"\u{1D567}",w:"\u{1D568}",x:"\u{1D569}",y:"\u{1D56A}",z:"\u{1D56B}"},Pv={A:"\u{1D4D0}",B:"\u{1D4D1}",C:"\u{1D4D2}",D:"\u{1D4D3}",E:"\u{1D4D4}",F:"\u{1D4D5}",G:"\u{1D4D6}",H:"\u{1D4D7}",I:"\u{1D4D8}",J:"\u{1D4D9}",K:"\u{1D4DA}",L:"\u{1D4DB}",M:"\u{1D4DC}",N:"\u{1D4DD}",O:"\u{1D4DE}",P:"\u{1D4DF}",Q:"\u{1D4E0}",R:"\u{1D4E1}",S:"\u{1D4E2}",T:"\u{1D4E3}",U:"\u{1D4E4}",V:"\u{1D4E5}",W:"\u{1D4E6}",X:"\u{1D4E7}",Y:"\u{1D4E8}",Z:"\u{1D4E9}"};var yc=Object.fromEntries(Object.entries($e($e({},gc),vv)).sort((t,e)=>e[0].length-t[0].length)),uq=Object.fromEntries([...Object.entries(bv).sort((t,e)=>e[0].length-t[0].length)]);function Xr(t){let e=["\\","(",")","+","-","[","]","{","}","."];for(let r of e)t=t.replaceAll(r,"\\"+r);return t}function kv(t,e){let r="\\limits";return t.substring(e,e+r.length)===r?e+r.length:e}function pq(t,e,r){let n=Wr(t,"\\\\","",e,void 0,!1),i=Wr(t,"\\\\not[ ]*\\\\","",r,void 0,!1),o=[],s=[];for(let a=0;a<i.length;a++)o.push(i[a]),s.push(n[a][0].end);for(let a=0;a<n.length;a++)s.includes(n[a][0].end)||o.push(n[a]);return o}function Wr(t,e,r,n,i,o=!0){let s=Object.keys(n),a=e+"("+Xr(s.join("|"))+")"+r,l=new RegExp(a,"g"),u=[...t.matchAll(l)],c=[];for(let p of u){let h=p[1];if(!o){let d=p.index+p[0].length;if(t.charAt(d).match(/[a-zA-Z]/))continue}let f=kv(t,p.index+p[0].length);c.push(oe({start:p.index,end:f,text:n[h],class:i}))}return c}function Kt(t,e,r){let n="\\\\"+e+"{([A-Za-z])}",i=new RegExp(n,"g"),o=[...t.matchAll(i)],s=[];for(let a of o){let l=a[1];s.push(oe({start:a.index,end:a.index+a[0].length,text:l+r,class:"latex-suite-unicode"}))}return s}function Ev(t,e,r){let i=(e?"\\^":"_")+"{([A-Za-z0-9\\()\\[\\]/+-=<>':;\\\\ *]+)}",o=new RegExp(i,"g"),s=[...t.matchAll(o)],a=[];for(let l of s){let u=l[1],c=e?"sup":"sub",p=Object.keys(r),h="\\\\("+Xr(p.join("|"))+")",f=new RegExp(h,"g"),d=u.replace(f,(m,g)=>r[g]);a.push(oe({start:l.index,end:l.index+l[0].length,text:d,class:"cm-number",elementType:c}))}return a}function fq(t,e){let r="\\\\(mathbf|boldsymbol|underline|mathrm|text|mathbb){([A-Za-z0-9 ]+)}",n=new RegExp(r,"g"),i=[...t.matchAll(n)],o=[];for(let s of i){let a=s[1],l=s[2],u=s.index,c=u+s[0].length;if(a==="mathbf"||a==="boldsymbol")o.push(oe({start:u,end:c,text:l,class:"cm-concealed-bold"}));else if(a==="underline")o.push(oe({start:u,end:c,text:l,class:"cm-concealed-underline"}));else if(a==="mathrm")o.push(oe({start:u,end:c,text:l,class:"cm-concealed-mathrm"}));else if(a==="text")u>0&&t.charAt(u-1)==="_"&&o.push(oe({start:u-1,end:c,text:l,class:"cm-concealed-mathrm",elementType:"sub"}));else if(a==="mathbb"){let h=Array.from(l).map(f=>e[f]).join("");o.push(oe({start:u,end:c,text:h}))}}return o}function hq(t,e){let r=Object.keys(e),n="\\\\(underline|boldsymbol){\\\\("+Xr(r.join("|"))+")}",i=new RegExp(n,"g"),o=[...t.matchAll(i)],s=[];for(let a of o){let l=a[1],u=a[2],c=a.index,p=c+a[0].length;l==="underline"?s.push(oe({start:c,end:p,text:e[u],class:"cm-concealed-underline"})):l==="boldsymbol"&&s.push(oe({start:c,end:p,text:e[u],class:"cm-concealed-bold"}))}return s}function Oq(t){let e="\\\\text{([A-Za-z0-9-.!?() ]+)}",r=new RegExp(e,"g"),n=[...t.matchAll(r)],i=[];for(let o of n){let s=o[1],a=o.index,l=a+o[0].length;i.push(oe({start:a,end:l,text:s,class:"cm-concealed-mathrm cm-variable-2"}))}return i}function dq(t,e){let r="(\\\\("+e.join("|")+"))([^a-zA-Z]|$)",n=new RegExp(r,"g"),i=[...t.matchAll(n)],o=[];for(let s of i){let a=s[2],l=s.index,u=kv(t,l+s[1].length);o.push(oe({start:l,end:u,text:a,class:"cm-concealed-mathrm cm-variable-2"}))}return o}function mq(t,e,r,n,i){let o=e+"([A-Z]+)"+r,s=new RegExp(o,"g"),a=[...t.matchAll(s)],l=[];for(let u of a){let c=u[1],h=Array.from(c).map(f=>n[f]).join("");l.push(oe({start:u.index,end:u.index+u[0].length,text:h,class:i}))}return l}function gq(t){let e="\u3008",r="\u3009",n="|",i=[];for(let o of t.matchAll(/\\(braket|bra|ket){/g)){let s=le(t,o.index,"{","}",!1);if(s===-1)continue;let a=o.index,l=a+o[0].length-1,u=o[1],c=u==="ket"?n:e,p=u==="bra"?n:r;i.push(oe({start:a,end:l,text:""},{start:l,end:l+1,text:c,class:"cm-bracket"},{start:s,end:s+1,text:p,class:"cm-bracket"}))}return i}function yq(t){let e=[];for(let r of t.matchAll(/\\set\{/g)){let n=r.index,i=n+r[0].length-1,o=le(t,n,"{","}",!1);o!==-1&&e.push(oe({start:n,end:i,text:""},{start:i,end:i+1,text:"{",class:"cm-bracket"},{start:o,end:o+1,text:"}",class:"cm-bracket"}))}return e}function vq(t){let e=[];for(let r of t.matchAll(/\n?\\(frac|dfrac|tfrac|gfrac){/g)){let n=le(t,r.index,"{","}",!1);if(n===-1||t.charAt(n+1)!=="{")continue;let i=le(t,n+1,"{","}",!1);if(i===-1)continue;let o=r.index+ +(r[0][0]===`
|
|
`),s=r[0][0]===`
|
|
`?" ":"",a=r.index+r[0].length-1,l=n+1;e.push(oe({start:o,end:a,text:s},{start:a,end:a+1,text:"(",class:"cm-bracket"},{start:n,end:n+1,text:")",class:"cm-bracket"},{start:n+1,end:n+1,text:"/",class:"cm-bracket"},{start:l,end:l+1,text:"(",class:"cm-bracket"},{start:i,end:i+1,text:")",class:"cm-bracket"}))}return e}function bq(t){let e="\\\\operatorname{([A-Za-z]+)}",r=new RegExp(e,"g"),n=[...t.matchAll(r)],i=[];for(let o of n){let s=o[1],a=o.index,l=a+o[0].length;i.push(oe({start:a,end:l,text:s,class:"cm-concealed-mathrm cm-variable-2"}))}return i}function yv(t,e){let r=Yt(t).getEquations(t.state),n={};for(let o of r.values()){if(o in e){n[o]=e[o];continue}let s=[...Wr(o,"\\^","",Qv),...Wr(o,"_","",$v),...Wr(o,"\\\\frac","",xv),...pq(o,yc,uq),...Ev(o,!0,yc),...Ev(o,!1,yc),...Kt(o,"hat","\u0302"),...Kt(o,"dot","\u0307"),...Kt(o,"ddot","\u0308"),...Kt(o,"overline","\u0304"),...Kt(o,"bar","\u0304"),...Kt(o,"tilde","\u0303"),...Kt(o,"vec","\u20D7"),...Wr(o,"\\\\","",wv,"cm-bracket"),...mq(o,"\\\\mathcal{","}",Pv),...hq(o,gc),...fq(o,Tv),...Oq(o),...gq(o),...yq(o),...vq(o),...dq(o,Sv),...bq(o)];n[o]=s}e=n;let i=[];for(let[o,s]of r.entries())for(let a of n[s])i.push(a.map(l=>Le($e({},l),{start:l.start+o,end:l.end+o})));return{specs:i,cached_equations:e}}function vc(t,e){return t.includes(e)}function qv(t,e){return e in t}var Cv=["\\big","\\Big","\\bigg","\\Bigg","\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\left","\\right"],Av=["{","}"],No={"(":")","[":"]","\\{":"\\}","\\langle":"\\rangle","\\lvert":"\\rvert","\\lVert":"\\rVert","\\lceil":"\\rceil","\\lfloor":"\\rfloor"},Sq=[...Cv,...Object.keys(No),...Object.values(No)],xq=[...Sq.map(Xr).sort((t,e)=>t.length-e.length),...Av.map(Xr)].join("|"),_v=new RegExp(xq,"g"),Qq=Object.fromEntries(Object.entries(No).map(([t,e])=>[e,t])),zo=t=>{let e=B(t);if(!e.autoEnlargeBrackets)return;let n=U(t).getBounds();if(!n)return!1;let{inner_start:i,inner_end:o}=n,s=t.state.sliceDoc(i,o),a="\\left",l="\\right",u=[],c,p=null;_v.lastIndex=0;let h=0,f=[h];for(;(c=_v.exec(s))!==null;){let d=c[0],m=c.index;if(vc(Cv,d)){p=m+d.length;continue}else if(vc(Av,d)){d==="{"?f.push(++h):f.length>1&&f.pop();continue}else if(qv(No,d)){p===null||/\S/.test(s.slice(p,m))?u.push({index:m,match:d,level:f[f.length-1]}):p!==null&&u.push({match:d,ignore:!0,level:f[f.length-1]}),p=null;continue}let g=p!==null&&!/\S/.test(s.slice(p,m));p=null;let y=Qq[d];for(let v=u.length-1;v>=0;v--){let T=u[v];if(T.match===y&&("ignore"in T||g)){u.splice(v,1);break}if("ignore"in T||T.level!==f[f.length-1]||T.match!==y)continue;let S=T.index,x=T.match,b=S+x.length,w=c.index,A=s.slice(b,w);if(!e.autoEnlargeBracketsTriggers.some(P=>A.contains(P)))break;rt(t,i+S,i+b,a+x+" "),rt(t,i+w,i+w+d.length," "+l+d),u.splice(v,1);break}}$t(t)};var Rv=require("obsidian"),Fo=null,bc=(t,e,r,n)=>{let i=!1;for(let s of e.ranges)$q(t,e,r,s,n).shouldAutoEnlargeBrackets&&(i=!0);let o=$t(t);return i&&zo(t),o},$q=(t,e,r,n,i)=>{var h;let o=B(t),{from:s,to:a}=n,l=t.state.sliceDoc(s,a),u=t.state.sliceDoc(0,a),c=(h=r.key)!=null?h:"";if(r.key&&r.key.length!==1)return{success:!1,shouldAutoEnlargeBrackets:!1};let p=u+c;for(let f=0;f<r.snippets.length;f++){let d=r.snippets[f];if(!wq(d.options,e.mode))continue;let m=d.process(p,n,l);if(m===null)continue;let g=!1;for(let b of d.excludedEnvironments)e.isWithinEnvironment(a,b)&&(g=!0);if(g)continue;let y=m.triggerPos;if(d.options.onWordBoundary&&!Tq(t.state,y,a,o.wordDelimiters))continue;let v=m.replacement;e.mode.inlineMath&&o.removeSnippetWhitespace&&(v=Pq(v,e));let T=y,S=d.options.automatic&&d.type!=="visual"?c:void 0;rt(t,T,a,v,S);let x=o.autoEnlargeBracketsTriggers.some(b=>v.contains(b));if(i==="info"||i==="verbose"){let b=d.trigger.toString(),w=d.triggerKey?`<li>Trigger key: ${new Option(d.triggerKey).innerHTML}
|
|
</li>`:"",A=d.description,k=`Obsidian Latex Suite: <br><ul><li>Description: ${new Option(A).innerHTML}
|
|
</li><li>Parsed trigger: <code>${new Option(b).innerHTML}</code>
|
|
</li>`+w+`<li>Replacement: <code>${new Option(v).innerHTML}</code>
|
|
</li><li>Auto-enlarge brackets: ${x}
|
|
</li></ul>`,P=new DocumentFragment,q=P.createDiv();q.innerHTML=k,Fo==null||Fo.hide(),Fo=new Rv.Notice(P,5e3),console.info(q.textContent)}return i==="verbose"&&console.debug({snippets_unexpanded:r.snippets.slice(0,f).map(b=>({description:b.description,trigger:b.trigger,options:b.options,replacement:b.replacement})),current_mode:e.mode,updatedLine:p}),{success:!0,shouldAutoEnlargeBrackets:x}}return{success:!1,shouldAutoEnlargeBrackets:!1}},wq=(t,e)=>{if((t.mode.inlineMath&&e.inlineMath||t.mode.blockMath&&e.blockMath||(t.mode.inlineMath||t.mode.blockMath)&&e.codeMath)&&!e.textEnv||e.inMath()&&e.textEnv&&t.mode.text||t.mode.text&&e.text||t.mode.code===e.code&&e.code!==!1||t.mode.code===!0&&e.code!==!1)return!0},Tq=(t,e,r,n)=>{let i=t.sliceDoc(e-1,e),o=t.sliceDoc(r,r+1);return n=n.replace("\\n",`
|
|
`),n.contains(i)&&n.contains(o)},Pq=(t,e)=>{let r=0;if(t.endsWith(" "))r=-1;else{let n=t.slice(-3),i=n.slice(-1);n.slice(0,2)===" $"&&!isNaN(parseInt(i))&&(r=-3)}return r!=0&&(r===-1?t=t.trimEnd():r===-3&&(t=t.slice(0,-3)+t.slice(-2))),t};var Iv=(t,e)=>{for(let n of e.ranges)Eq(t,e,n);let r=$t(t);return r&&zo(t),r},Eq=(t,e,r)=>{let n=B(t),{from:i,to:o}=r;for(let f of n.autofractionExcludedEnvs)if(e.isWithinEnvironment(o,f))return!1;let s=e.getBounds();if(!s)return!1;let a=s.inner_start,l=t.state.sliceDoc(0,o),u=a;if(i!=o)u=i;else{let f="alpha|beta|gamma|Gamma|delta|Delta|epsilon|varepsilon|zeta|eta|theta|Theta|iota|kappa|lambda|Lambda|mu|nu|omicron|xi|Xi|pi|Pi|rho|sigma|Sigma|tau|upsilon|Upsilon|varphi|phi|Phi|chi|psi|Psi|omega|Omega",d=new RegExp("("+f+") ([^ ])","g");l=l.replace(d,"$1#$2");for(let m=l.length-1;m>=a;m--){let g=l.charAt(m);if([")","]","}"].contains(g)){let y=g,v=jn(y),T=le(l,m,v,y,!0);if(T===-1)return!1;if(m=T,m<a){u=a;break}}if(` $([{
|
|
`.concat(n.autofractionBreakingChars).contains(g)){u=m+1;break}}}if(u===o)return!1;let c=t.state.sliceDoc(u,o);c.at(0)==="("&&c.at(-1)===")"&&le(c,0,"(",")",!1)===c.length-1&&(c=c.slice(1,-1));let p=c===""?`${n.autofractionSymbol}{$0}{$1}$2`:`${n.autofractionSymbol}{${c}}{$0}$1`,h=i!=o?void 0:"/";return rt(t,u,o,p,h),!0};var Uo=require("@codemirror/view"),Vr=require("@codemirror/state"),Gr=require("obsidian");var jv=require("@codemirror/language"),Sc=Vr.StateEffect.define(),Lo=Vr.StateField.define({create:()=>[],update(t,e){for(let r of e.effects)if(r.is(Sc))return r.value;return t},provide:t=>Uo.showTooltip.computeN([t],e=>e.field(t).map(r=>r.tooltip))}),kq=(t,e,r,n)=>{let i=(l,u,c,p,h)=>{let f=0;for(let d=u;d>=0&&d<l.length;d+=h)if(l[d]===c&&f++,l[d]===p){if(f===0)return d;f--}return-1},o=t[e]===n?e-1:e,s=i(t,o,n,r,-1),a=i(t,e,r,n,1);return{left:s,right:a}};function Zv(t){if(!(t.docChanged||t.selectionSet))return;let r=B(t.state),n=U(t.view),i=qq(t.state,n);if(!i){t.state.field(Lo).length>0&&t.view.dispatch({effects:[Sc.of([])]});return}let o=t.state.sliceDoc(i.inner_start,i.inner_end),s=n.pos,l=(0,jv.syntaxTree)(t.state).cursor();l.moveTo(s,-1);let u;l.name==="math_tag"&&l.from<s&&l.to>=s?u=l.from:u=s;let c=u-i.inner_start,p,{left:h,right:f}=r.mathPreviewBracketHighlighting?kq(o,c,"{","}"):{left:-1,right:-1};if(f!==-1&&h!==-1){let v=Math.max(h+1,c);p=o.slice(0,h+1)+"\\style{background-color: var(--latex-suite-math-preview-highlight);}{"+o.slice(h+1,v)+r.mathPreviewCursor+o.slice(v,f)+"}"+o.slice(f)}else p=o.slice(0,c)+r.mathPreviewCursor+o.slice(c);let d=t.state.field(Lo);if(d.length===1&&d[0].equation===p&&d[0].bounds.inner_start===i.inner_start&&d[0].bounds.inner_end===i.inner_end)return;let m=r.mathPreviewPositionIsAbove,g=()=>{var T;let v=document.createElement("div");if(v.addClass("cm-tooltip-cursor"),v.addClass(m?"cm-tooltip-above":"cm-tooltip-below"),n.mode.blockMath){let S=(T=t.state.doc.lineAt(i.inner_start).text.match(/^ {0,3}(>+)/))==null?void 0:T[1].length;if(S){let x=new RegExp(`^ {0,3}>{${S}}`,"gm");x.test(o)&&(p=p.replaceAll(x,""))}}try{let S=(0,Gr.renderMath)(p,n.mode.blockMath||n.mode.codeMath),x=S.querySelector('[style*="background-color: var(--latex-suite-math-preview-highlight)"]');x==null||x.addClass("latex-suite-math-preview-highlight"),x==null||x.style.removeProperty("background-color"),v.appendChild(S),(0,Gr.finishRenderMath)()}catch(S){console.error("Error rendering math in tooltip:",S),v.textContent=o}return{dom:v}},y=[];if(n.mode.blockMath||n.mode.codeMath)y=[{pos:m?i.inner_start:i.inner_end,above:m,strictSide:!0,arrow:!0,create:g}];else if(n.mode.inlineMath&&m)y=[{pos:i.inner_start,above:!0,strictSide:!0,arrow:!0,create:g}];else if(n.mode.inlineMath&&!m){let v=Vr.EditorSelection.range(i.inner_end,i.inner_end);y=[{pos:Math.max(i.inner_start,t.view.moveToLineBoundary(v,!1).anchor),above:!1,strictSide:!0,arrow:!0,create:g}]}t.view.dispatch({effects:[Sc.of(y.map(v=>({equation:p,bounds:i,pos:v.pos,tooltip:v})))]})}function qq(t,e){if(!e.mode.inMath())return null;let r=t.field(Gr.editorLivePreviewField);if(e.mode.blockMath&&r)return null;let n=e.getBounds();return!n||t.sliceDoc(n.inner_start,n.inner_end).trim()===""?null:n}var Mv=Uo.EditorView.baseTheme({".cm-tooltip.cm-tooltip-cursor":{backgroundColor:"var(--background-secondary)",color:"var(--text-normal)",border:"1px solid var(--background-modifier-border-hover)",padding:"4px 6px",borderRadius:"6px","& .cm-tooltip-arrow:before":{borderTopColor:"var(--background-modifier-border-hover)",borderBottomColor:"var(--background-modifier-border-hover)"},"& .cm-tooltip-arrow:after":{borderTopColor:"var(--background-secondary)",borderBottomColor:"var(--background-secondary)"},"& p":{margin:"0px"},"& mjx-container":{padding:"2px !important"}}});var Wv=t=>{B(t.state).mathPreviewEnabled&&Zv(t),av(t)},Ho=Yo.ViewPlugin.fromClass(class{constructor(){this.lastKeyboardEvent=null}onKeydown(t,e){if(t.key=="Unidentified"||t.key=="Process"||t.key=="Dead"){this.lastKeyboardEvent=t;return}else this.lastKeyboardEvent=null;(Vv(t.key,t.ctrlKey||t.metaKey,ec(e,t),e)||(0,Yo.runScopeHandlers)(e,t,"latex-suite"))&&t.preventDefault()}},{eventHandlers:{keydown(t,e){e.plugin(Ho).onKeydown(t,e)}}}),Xv=(t,e,r,n)=>{var o;let i=(o=t.plugin(Ho))==null?void 0:o.lastKeyboardEvent;return n==="\0\0"?!0:n.length==1&&i&&(n===" "&&(n="Tab"),Vv(n,i.ctrlKey||i.metaKey,ec(t,i),t))?(Xy(t),!0):!1},Vv=(t,e,r,n)=>{if(t.length>1)return!1;let i=B(n),o=U(n);if(!i.snippetsEnabled||i.suppressSnippetTriggerOnIME&&r||e)return!1;let s=i.snippets.filter(a=>a.options.automatic);try{if(bc(n,o,{snippets:s,key:t},i.snippetDebug))return!0}catch(a){Rr(n),console.error(a)}return!1};function Gv(t){let e=[];t.autoDelete$&&e.push({key:"Backspace",run:function(a){if(!B(a).autoDelete$)return!1;let l=U(a);if(!l.mode.strictlyInMath())return!1;let u=In(a,l.pos),c=In(a,l.pos-1);return u==="$"&&c==="$"?(qo(a,l.pos-1,l.pos+1,""),Mo(a),!0):!1}});let r=new Set(t.snippets.map(s=>s.triggerKey).filter(s=>s!==null));r.add(t.snippetsTrigger);let n=s=>{let a=t.snippets.filter(l=>l.triggerKey===s||!l.triggerKey&&!l.options.automatic&&s===t.snippetsTrigger);return l=>{let u=B(l);if(u.suppressSnippetTriggerOnIME&&l.composing)return!1;try{let c=U(l);return bc(l,c,{snippets:a},u.snippetDebug)}catch(c){return Rr(l),console.error(c),!1}}};t.snippetsEnabled&&e.push(...Array.from(r,s=>({key:s,run:n(s)}))),e.push({key:t.snippetNextTabstopTrigger,run:function(a){return uc(a,!1)}}),e.push({key:t.snippetPreviousTabstopTrigger,run:function(a){return uc(a,!0)}}),t.autofractionEnabled&&e.push({key:"/",run:function(a){if(!B(a).autofractionEnabled)return!1;let l=U(a);return l.mode.strictlyInMath()?Iv(a,l):!1}});let i=[{key:"Enter",run:function(a){let l=U(a);return l.mode.strictlyInMath()?Mr(a,l,"Enter",!1):!1}},{key:"Tab",run:function(a){let l=U(a);return l.mode.strictlyInMath()?Mr(a,l,"Tab",!1):!1}},{key:"Shift-Enter",run:function(a){let l=U(a);return l.mode.strictlyInMath()?Mr(a,l,"Enter",!0):!1}}];t.matrixShortcutsEnabled&&e.push(...i);let o=[{key:t.taboutTrigger,run:function(a){if(!a.state.selection.main.empty)return!1;let l=U(a);return Zn(a,l)}},...[")","}","]"].map(s=>({key:s,run:function(l){if(!Hy(l,s))return!1;let u=U(l);return Zn(l,u)}}))];return t.taboutEnabled&&e.push(...o),e.map(s=>Le($e({},s),{scope:"latex-suite"}))}var Jt=require("@codemirror/view");var Dv=[Ir.extension,ac.extension,sv];var nt=require("@codemirror/view"),zv=require("@codemirror/state");var _q=3;function Bn(t,e){return nt.Decoration.mark({inclusive:!0,attributes:{},class:e}).range(t,t+1)}function Bv(t,e){let r=Yt(t).getEquations(t.state),n={};for(let s of r.values()){if(s in e){n[s]=e[s];continue}let a=["{","[","("],l=["}","]",")"],u=[],c=[];for(let p=0;p<s.length;p++){let h=s.charAt(p);if(a.contains(h))u.push({char:h,pos:p});else if(l.contains(h)){let f=u.at(-1);if(f&&Ar(f.char)===h){u.pop();let d=f.pos,g="latex-suite-color-bracket-"+u.length%_q;c.push({pos:d,className:g}),c.push({pos:p,className:g})}}}n[s]=c}e=n;let i=[];for(let[s,a]of r.entries()){let l=n[a];if(l)for(let u of l)i.push(Bn(s+u.pos,u.className))}return{decorations:nt.Decoration.set(i,!0),cached_equations:e}}function Cq(t,e,r){let n=r.getBounds(e);if(!n)return-1;let{inner_start:i,inner_end:o}=n,s=t.state.doc.sliceString(i,o);for(let a=e-i;a>0;a--){let l=s.charAt(a);if([")","]","}"].contains(l)){let u=l,c=jn(u),p=le(s,a,c,u,!0);if(p===-1)return-1;a=p,l=s.charAt(a)}else{if(!["{","(","["].contains(l))continue;let u=le(s,a,l,Ar(l),!1);if(u===-1)continue;return{left:a+i,right:u+i}}}return-1}function Nv(t){let e=[],r=t.state.selection,n=r.ranges,i=t.state.doc.toString(),o=U(t);if(!o.mode.inMath())return nt.Decoration.none;let s=o.getBounds(r.main.to);if(!s)return nt.Decoration.none;let a=t.state.doc.sliceString(s.inner_start,s.inner_end),l=["{","[","("],u=["{","[","(","}","]",")"],c=!1;for(let p of n){for(let h=p.to;h>p.from-2;h--){let f=i.charAt(h);if(!u.contains(f))continue;let d,m,g=!1;l.contains(f)?(d=f,m=Ar(d)):(m=f,d=jn(f),g=!0);let y=le(a,h-s.inner_start,d,m,g);if(y!==-1){y=y+s.inner_start,e.push(Bn(h,"latex-suite-highlighted-bracket")),e.push(Bn(y,"latex-suite-highlighted-bracket")),c=!0;break}}if(c)break;if(p.empty){let h=p.from-1,f=Cq(t,h,o);if(f===-1)continue;e.push(Bn(f.left,"latex-suite-highlighted-bracket")),e.push(Bn(f.right,"latex-suite-highlighted-bracket")),c=!0;break}if(c)break}return nt.Decoration.set(e,!0)}var Aq=nt.ViewPlugin.fromClass(class{constructor(t){this.cached_equations={};({decorations:this.decorations,cached_equations:this.cached_equations}=Bv(t,this.cached_equations))}update(t){(t.docChanged||t.viewportChanged)&&({decorations:this.decorations,cached_equations:this.cached_equations}=Bv(t.view,this.cached_equations))}},{decorations:t=>t.decorations}),Fv=zv.Prec.lowest(Aq.extension),Lv=nt.ViewPlugin.fromClass(class{constructor(t){this.decorations=Nv(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=Nv(t.view))}},{decorations:t=>t.decorations});var Ko=class extends _e.Plugin{constructor(){super(...arguments);this.editorExtensions=[]}onload(){return $(this,null,function*(){yield this.loadSettings(),this.loadIcons(),this.addSettingTab(new Vo(this.app,this)),(0,_e.loadMathJax)(),this.legacyEditorWarning(),this.IMEEditorWarning(),this.registerEditorExtension(this.editorExtensions),this.watchFiles(),this.addEditorCommands()})}onunload(){}legacyEditorWarning(){var r;if((r=this.app.vault.config)!=null&&r.legacyEditor){let n="Obsidian Latex Suite: This plugin does not support the legacy editor. Switch to Live Preview mode to use this plugin.";new _e.Notice(n,1e5),console.error(n);return}}IMEEditorWarning(){if(Do()&&!this.settings.suppressIMEWarning&&this.settings.suppressSnippetTriggerOnIME){let r=createFragment();r.appendText("Obsidian Latex Suite: this plugin supports your IME keyboard, but "),r.createEl("code",{text:"Advanced settings > Don't trigger snippets when IME is active"}),r.appendText(" is currently enabled. You may want to disable it in the plugin settings to fully enable automatic snippets. Be aware that this may cause unexpected snippet triggers while using your IME. To turn this warning off, enable "),r.createEl("code",{text:"Advanced settings > Suppress IME warning"}),r.appendText("."),new _e.Notice(r,1e4),console.info(r)}}loadSettings(){return $(this,null,function*(){let r=yield this.loadData(),n=r?"basicSettings"in r:!1;function i(o){return Le($e($e({},o.basicSettings),o.rawSettings),{snippets:o.snippets})}if(n&&(r=i(r)),this.settings=Object.assign({},G,r),n&&this.saveSettings(),this.settings.loadSnippetsFromFile||this.settings.loadSnippetVariablesFromFile){let o=yield this.getSettingsSnippetVariables(),s=yield this.getSettingsSnippets(o);this.CMSettings=$n(s,this.settings),this.app.workspace.onLayoutReady(()=>{this.processSettings()})}else yield this.processSettings()})}saveSettings(r=!1){return $(this,null,function*(){yield this.saveData(this.settings),this.processSettings(r)})}getSettingsSnippetVariables(){return $(this,null,function*(){try{return yield Pt(this.settings.snippetVariables)}catch(r){return new _e.Notice(`Failed to load snippet variables from settings: ${r}`),console.error(`Failed to load snippet variables from settings: ${r}`),{}}})}getSettingsSnippets(r){return $(this,null,function*(){try{return yield ir(this.settings.snippets,r)}catch(n){return new _e.Notice(`Failed to load snippets from settings: ${n}`),console.error(`Failed to load snippets from settings: ${n}`),[]}})}getSnippets(r,n){return $(this,null,function*(){let i=kg(this),o=this.settings.loadSnippetVariablesFromFile?yield qg(this,i):yield this.getSettingsSnippetVariables(),s=yield _g(this,i);this.settings.loadSnippetVariablesFromFile&&Object.assign(o,s);let a=this.settings.loadSnippetsFromFile?yield Cg(this,i,o):yield this.getSettingsSnippets(o);return this.showSnippetsLoadedNotice(a.length,Object.keys(o).length,r,n),a})}processSettings(r=!1,n=!1){return $(this,null,function*(){this.CMSettings=$n(yield this.getSnippets(r,n),this.settings),this.setEditorExtensions(),this.app.workspace.updateOptions()})}setEditorExtensions(){for(;this.editorExtensions.length;)this.editorExtensions.pop();this.editorExtensions.push([Nn.Prec.highest(oc.extension),Nn.Prec.highest(ic.extension),By(this.CMSettings),Nn.Prec.highest(Ho.extension),Nn.Prec.highest(Jt.EditorView.inputHandler.of(Xv)),Jt.EditorView.updateListener.of(Wv),Dv]);let r=Gv(this.CMSettings);this.editorExtensions.push(Jt.keymap.of(r)),this.CMSettings.concealEnabled&&this.editorExtensions.push(gv),this.CMSettings.colorPairedBracketsEnabled&&this.editorExtensions.push(Fv),this.CMSettings.highlightCursorBracketsEnabled&&this.editorExtensions.push(Lv.extension),this.CMSettings.mathPreviewEnabled&&this.editorExtensions.push([Lo.extension,Mv,(0,Jt.tooltips)({position:"absolute"})])}showSnippetsLoadedNotice(r,n,i,o){if(!(i||o))return;let s=i?"Loaded ":"Successfully reloaded ",a=[];this.settings.loadSnippetsFromFile&&a.push(`${r} snippets`),this.settings.loadSnippetVariablesFromFile&&a.push(`${n} snippet variables`);let l=" from files.";new _e.Notice(s+a.join(" and ")+l,5e3)}addEditorCommands(){var r;for(let n of hv(this))this.addCommand(n);e:{if(!(app!=null&&app.isVimEnabled())||!this.settings.vimEnabled)break e;let n=(r=window==null?void 0:window.CodeMirrorAdapter)==null?void 0:r.Vim;if(!n)break e;for(let i of Wo(this.settings))n[i.defineType](i.id,i.action),n.mapCommand(i.key,i.type,i.id,{},{context:i.context})}}watchFiles(){this.app.workspace.onLayoutReady(()=>{let r={modify:wg,delete:Pg,create:Tg};for(let[n,i]of Object.entries(r))this.registerEvent(this.app.vault.on(n,o=>i(this,o)))})}loadIcons(){for(let[r,n]of Object.entries(Ov))(0,_e.addIcon)(r,n)}};
|
|
|
|
/* nosourcemap */ |