tide-commander 1.13.0 → 1.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{a as Ce,j as et}from"./main-BQYA220B.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./vendor-react-uS-d4TUT.js";import"./vendor-three-DJ4p3FLF.js";let xs=[],Lc=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<O.length;e++)(e%2?Lc:xs).push(t=t+O[e])})();function fp(O){if(O<768)return!1;for(let e=0,t=xs.length;;){let i=e+t>>1;if(O<xs[i])t=i;else if(O>=Lc[i])e=i+1;else return!0;if(e==t)return!1}}function Eo(O){return O>=127462&&O<=127487}const Mo=8205;function dp(O,e,t=!0,i=!0){return(t?Dc:up)(O,e,i)}function Dc(O,e,t){if(e==O.length)return e;e&&Ic(O.charCodeAt(e))&&Bc(O.charCodeAt(e-1))&&e--;let i=wn(O,e);for(e+=Lo(i);e<O.length;){let r=wn(O,e);if(i==Mo||r==Mo||t&&fp(r))e+=Lo(r),i=r;else if(Eo(r)){let n=0,s=e-2;for(;s>=0&&Eo(wn(O,s));)n++,s-=2;if(n%2==0)break;e+=2}else break}return e}function up(O,e,t){for(;e>0;){let i=Dc(O,e-2,t);if(i<e)return i;e--}return 0}function wn(O,e){let t=O.charCodeAt(e);if(!Bc(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return Ic(i)?(t-55296<<10)+(i-56320)+65536:t}function Ic(O){return O>=56320&&O<57344}function Bc(O){return O>=55296&&O<56320}function Lo(O){return O<65536?1:2}class j{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=YO(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),st.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=YO(this,e,t);let i=[];return this.decompose(e,t,i,0),st.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new Oi(this),n=new Oi(e);for(let s=t,a=t;;){if(r.next(s),n.next(s),s=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new Oi(this,e)}iterRange(e,t=this.length){return new Nc(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Fc(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?j.empty:e.length<=32?new ie(e):st.from(ie.split(e,[]))}}class ie extends j{constructor(e,t=Qp(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.text[n],a=r+s.length;if((t?i:a)>=e)return new pp(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let n=e<=0&&t>=this.length?this:new ie(Do(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=Qr(n.text,s.text.slice(),0,n.length);if(a.length<=32)i.push(new ie(a,s.length+n.length));else{let o=a.length>>1;i.push(new ie(a.slice(0,o)),new ie(a.slice(o)))}}else i.push(n)}replace(e,t,i){if(!(i instanceof ie))return super.replace(e,t,i);[e,t]=YO(this,e,t);let r=Qr(this.text,Qr(i.text,Do(this.text,0,e)),t),n=this.length+i.length-(t-e);return r.length<=32?new ie(r,n):st.from(ie.split(r,[]),n)}sliceString(e,t=this.length,i=`
1
+ import{a as Ce,j as et}from"./main-PqPxxRql.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./vendor-react-uS-d4TUT.js";import"./vendor-three-DJ4p3FLF.js";let xs=[],Lc=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<O.length;e++)(e%2?Lc:xs).push(t=t+O[e])})();function fp(O){if(O<768)return!1;for(let e=0,t=xs.length;;){let i=e+t>>1;if(O<xs[i])t=i;else if(O>=Lc[i])e=i+1;else return!0;if(e==t)return!1}}function Eo(O){return O>=127462&&O<=127487}const Mo=8205;function dp(O,e,t=!0,i=!0){return(t?Dc:up)(O,e,i)}function Dc(O,e,t){if(e==O.length)return e;e&&Ic(O.charCodeAt(e))&&Bc(O.charCodeAt(e-1))&&e--;let i=wn(O,e);for(e+=Lo(i);e<O.length;){let r=wn(O,e);if(i==Mo||r==Mo||t&&fp(r))e+=Lo(r),i=r;else if(Eo(r)){let n=0,s=e-2;for(;s>=0&&Eo(wn(O,s));)n++,s-=2;if(n%2==0)break;e+=2}else break}return e}function up(O,e,t){for(;e>0;){let i=Dc(O,e-2,t);if(i<e)return i;e--}return 0}function wn(O,e){let t=O.charCodeAt(e);if(!Bc(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return Ic(i)?(t-55296<<10)+(i-56320)+65536:t}function Ic(O){return O>=56320&&O<57344}function Bc(O){return O>=55296&&O<56320}function Lo(O){return O<65536?1:2}class j{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=YO(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),st.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=YO(this,e,t);let i=[];return this.decompose(e,t,i,0),st.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new Oi(this),n=new Oi(e);for(let s=t,a=t;;){if(r.next(s),n.next(s),s=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new Oi(this,e)}iterRange(e,t=this.length){return new Nc(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Fc(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?j.empty:e.length<=32?new ie(e):st.from(ie.split(e,[]))}}class ie extends j{constructor(e,t=Qp(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.text[n],a=r+s.length;if((t?i:a)>=e)return new pp(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let n=e<=0&&t>=this.length?this:new ie(Do(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=Qr(n.text,s.text.slice(),0,n.length);if(a.length<=32)i.push(new ie(a,s.length+n.length));else{let o=a.length>>1;i.push(new ie(a.slice(0,o)),new ie(a.slice(o)))}}else i.push(n)}replace(e,t,i){if(!(i instanceof ie))return super.replace(e,t,i);[e,t]=YO(this,e,t);let r=Qr(this.text,Qr(i.text,Do(this.text,0,e)),t),n=this.length+i.length-(t-e);return r.length<=32?new ie(r,n):st.from(ie.split(r,[]),n)}sliceString(e,t=this.length,i=`
2
2
  `){[e,t]=YO(this,e,t);let r="";for(let n=0,s=0;n<=t&&s<this.text.length;s++){let a=this.text[s],o=n+a.length;n>e&&s&&(r+=i),e<o&&t>n&&(r+=a.slice(Math.max(0,e-n),t-n)),n=o+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let n of e)i.push(n),r+=n.length+1,i.length==32&&(t.push(new ie(i,r)),i=[],r=-1);return r>-1&&t.push(new ie(i,r)),t}}class st extends j{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.children[n],a=r+s.length,o=i+s.lines-1;if((t?o:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=o+1}}decompose(e,t,i,r){for(let n=0,s=0;s<=t&&n<this.children.length;n++){let a=this.children[n],o=s+a.length;if(e<=o&&t>=s){let l=r&((s<=e?1:0)|(o>=t?2:0));s>=e&&o<=t&&!l?i.push(a):a.decompose(e-s,t-s,i,l)}s=o+1}}replace(e,t,i){if([e,t]=YO(this,e,t),i.lines<this.lines)for(let r=0,n=0;r<this.children.length;r++){let s=this.children[r],a=n+s.length;if(e>=n&&t<=a){let o=s.replace(e-n,t-n,i),l=this.lines-s.lines+o.lines;if(o.lines<l>>4&&o.lines>l>>6){let h=this.children.slice();return h[r]=o,new st(h,this.length-(t-e)+i.length)}return super.replace(n,a,o)}n=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
3
3
  `){[e,t]=YO(this,e,t);let r="";for(let n=0,s=0;n<this.children.length&&s<=t;n++){let a=this.children[n],o=s+a.length;s>e&&n&&(r+=i),e<o&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=o+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof st))return 0;let i=0,[r,n,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,n+=t){if(r==s||n==a)return i;let o=this.children[r],l=e.children[n];if(o!=l)return i+o.scanIdentical(l,t);i+=o.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let u of e)i+=u.lines;if(i<32){let u=[];for(let Q of e)Q.flatten(u);return new ie(u,t)}let r=Math.max(32,i>>5),n=r<<1,s=r>>1,a=[],o=0,l=-1,h=[];function c(u){let Q;if(u.lines>n&&u instanceof st)for(let p of u.children)c(p);else u.lines>s&&(o>s||!o)?(f(),a.push(u)):u instanceof ie&&o&&(Q=h[h.length-1])instanceof ie&&u.lines+Q.lines<=32?(o+=u.lines,l+=u.length+1,h[h.length-1]=new ie(Q.text.concat(u.text),Q.length+1+u.length)):(o+u.lines>r&&f(),o+=u.lines,l+=u.length+1,h.push(u))}function f(){o!=0&&(a.push(h.length==1?h[0]:st.from(h,l)),l=-1,o=h.length=0)}for(let u of e)c(u);return f(),a.length==1?a[0]:new st(a,t)}}j.empty=new ie([""],0);function Qp(O){let e=-1;for(let t of O)e+=t.length+1;return e}function Qr(O,e,t=0,i=1e9){for(let r=0,n=0,s=!0;n<O.length&&r<=i;n++){let a=O[n],o=r+a.length;o>=t&&(o>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=o+1}return e}function Do(O,e,t){return Qr(O,[""],e,t)}class Oi{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ie?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],n=this.offsets[i],s=n>>1,a=r instanceof ie?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((n&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(r instanceof ie){let o=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,o.length>Math.max(0,e))return this.value=e==0?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=r.children[s+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof ie?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Nc{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Oi(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Fc{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(j.prototype[Symbol.iterator]=function(){return this.iter()},Oi.prototype[Symbol.iterator]=Nc.prototype[Symbol.iterator]=Fc.prototype[Symbol.iterator]=function(){return this});let pp=class{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}};function YO(O,e,t){return e=Math.max(0,Math.min(O.length,e)),[e,Math.max(e,Math.min(O.length,t))]}function oe(O,e,t=!0,i=!0){return dp(O,e,t,i)}function mp(O){return O>=56320&&O<57344}function gp(O){return O>=55296&&O<56320}function cO(O,e){let t=O.charCodeAt(e);if(!gp(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return mp(i)?(t-55296<<10)+(i-56320)+65536:t}function Hc(O){return O<=65535?String.fromCharCode(O):(O-=65536,String.fromCharCode((O>>10)+55296,(O&1023)+56320))}function Ri(O){return O<65536?1:2}const bs=/\r\n?|\n/;var ue=(function(O){return O[O.Simple=0]="Simple",O[O.TrackDel=1]="TrackDel",O[O.TrackBefore=2]="TrackBefore",O[O.TrackAfter=3]="TrackAfter",O})(ue||(ue={}));class dt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,n),r+=n):r+=s,i+=n}}iterChangedRanges(e,t=!1){ys(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new dt(e)}composeDesc(e){return this.empty?e:e.empty?this:Kc(this,e)}mapDesc(e,t=!1){return e.empty?this:ws(this,e,t)}mapPos(e,t=-1,i=ue.Simple){let r=0,n=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],o=this.sections[s++],l=r+a;if(o<0){if(l>e)return n+(e-r);n+=a}else{if(i!=ue.Simple&&l>=e&&(i==ue.TrackDel&&r<e&&l>e||i==ue.TrackBefore&&r<e||i==ue.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?n:n+o;n+=o}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return n}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let n=this.sections[i++],s=this.sections[i++],a=r+n;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new dt(e)}static create(e){return new dt(e)}}class ne extends dt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return ys(this,(t,i,r,n,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return ws(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,n=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let o=r>>1;for(;i.length<o;)i.push(j.empty);i.push(s?e.slice(n,n+s):j.empty)}n+=s}return new ne(t,i)}compose(e){return this.empty?e:e.empty?this:Kc(this,e,!0)}map(e,t=!1){return e.empty?this:ws(this,e,t,!0)}iterChanges(e,t=!1){ys(this,e,t)}get desc(){return dt.create(this.sections)}filter(e){let t=[],i=[],r=[],n=new ci(this);e:for(let s=0,a=0;;){let o=s==e.length?1e9:e[s++];for(;a<o||a==o&&n.len==0;){if(n.done)break e;let h=Math.min(n.len,o-a);de(r,h,-1);let c=n.ins==-1?-1:n.off==0?n.ins:0;de(t,h,c),c>0&&qt(i,t,n.text),n.forward(h),a+=h}let l=e[s++];for(;a<l;){if(n.done)break e;let h=Math.min(n.len,l-a);de(t,h,-1),de(r,h,n.ins==-1?-1:n.off==0?n.ins:0),n.forward(h),a+=h}}return{changes:new ne(t,i),filtered:dt.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],r=this.sections[t+1];r<0?e.push(i):r==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let r=[],n=[],s=0,a=null;function o(h=!1){if(!h&&!r.length)return;s<t&&de(r,t-s,-1);let c=new ne(r,n);a=a?a.compose(c.map(a)):c,r=[],n=[],s=0}function l(h){if(Array.isArray(h))for(let c of h)l(c);else if(h instanceof ne){if(h.length!=t)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);o(),a=a?a.compose(h.map(a)):h}else{let{from:c,to:f=c,insert:u}=h;if(c>f||c<0||f>t)throw new RangeError(`Invalid change range ${c} to ${f} (in doc of length ${t})`);let Q=u?typeof u=="string"?j.of(u.split(i||bs)):u:j.empty,p=Q.length;if(c==f&&p==0)return;c<s&&o(),c>s&&de(r,c-s,-1),de(r,f-c,p),qt(n,r,Q),s=f}}return l(e),o(!a),a}static empty(e){return new ne(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let r=0;r<e.length;r++){let n=e[r];if(typeof n=="number")t.push(n,-1);else{if(!Array.isArray(n)||typeof n[0]!="number"||n.some((s,a)=>a&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(n.length==1)t.push(n[0],0);else{for(;i.length<r;)i.push(j.empty);i[r]=j.of(n.slice(1)),t.push(n[0],i[r].length)}}}return new ne(t,i)}static createSet(e,t){return new ne(e,t)}}function de(O,e,t,i=!1){if(e==0&&t<=0)return;let r=O.length-2;r>=0&&t<=0&&t==O[r+1]?O[r]+=e:r>=0&&e==0&&O[r]==0?O[r+1]+=t:i?(O[r]+=e,O[r+1]+=t):O.push(e,t)}function qt(O,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<O.length)O[O.length-1]=O[O.length-1].append(t);else{for(;O.length<i;)O.push(j.empty);O.push(t)}}function ys(O,e,t){let i=O.inserted;for(let r=0,n=0,s=0;s<O.sections.length;){let a=O.sections[s++],o=O.sections[s++];if(o<0)r+=a,n+=a;else{let l=r,h=n,c=j.empty;for(;l+=a,h+=o,o&&i&&(c=c.append(i[s-2>>1])),!(t||s==O.sections.length||O.sections[s+1]<0);)a=O.sections[s++],o=O.sections[s++];e(r,l,n,h,c),r=l,n=h}}}function ws(O,e,t,i=!1){let r=[],n=i?[]:null,s=new ci(O),a=new ci(e);for(let o=-1;;){if(s.done&&a.len||a.done&&s.len)throw new Error("Mismatched change set lengths");if(s.ins==-1&&a.ins==-1){let l=Math.min(s.len,a.len);de(r,l,-1),s.forward(l),a.forward(l)}else if(a.ins>=0&&(s.ins<0||o==s.i||s.off==0&&(a.len<s.len||a.len==s.len&&!t))){let l=a.len;for(de(r,a.ins,-1);l;){let h=Math.min(s.len,l);s.ins>=0&&o<s.i&&s.len<=h&&(de(r,0,s.ins),n&&qt(n,r,s.text),o=s.i),s.forward(h),l-=h}a.next()}else if(s.ins>=0){let l=0,h=s.len;for(;h;)if(a.ins==-1){let c=Math.min(h,a.len);l+=c,h-=c,a.forward(c)}else if(a.ins==0&&a.len<h)h-=a.len,a.next();else break;de(r,l,o<s.i?s.ins:0),n&&o<s.i&&qt(n,r,s.text),o=s.i,s.forward(s.len-h)}else{if(s.done&&a.done)return n?ne.createSet(r,n):dt.create(r);throw new Error("Mismatched change set lengths")}}}function Kc(O,e,t=!1){let i=[],r=t?[]:null,n=new ci(O),s=new ci(e);for(let a=!1;;){if(n.done&&s.done)return r?ne.createSet(i,r):dt.create(i);if(n.ins==0)de(i,n.len,0,a),n.next();else if(s.len==0&&!s.done)de(i,0,s.ins,a),r&&qt(r,i,s.text),s.next();else{if(n.done||s.done)throw new Error("Mismatched change set lengths");{let o=Math.min(n.len2,s.len),l=i.length;if(n.ins==-1){let h=s.ins==-1?-1:s.off?0:s.ins;de(i,o,h,a),r&&h&&qt(r,i,s.text)}else s.ins==-1?(de(i,n.off?0:n.len,o,a),r&&qt(r,i,n.textBit(o))):(de(i,n.off?0:n.len,s.off?0:s.ins,a),r&&!s.off&&qt(r,i,s.text));a=(n.ins>o||s.ins>=0&&s.len>o)&&(a||i.length>l),n.forward2(o),s.forward(o)}}}}class ci{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?j.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?j.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Jt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new Jt(i,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return $.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return $.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return $.range(e.anchor,e.head)}static create(e,t,i){return new Jt(e,t,i)}}class ${constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:$.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new $([this.main],0)}addRange(e,t=!0){return $.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,$.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new $(e.ranges.map(t=>Jt.fromJSON(t)),e.main)}static single(e,t=e){return new $([$.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;r<e.length;r++){let n=e[r];if(n.empty?n.from<=i:n.from<i)return $.normalized(e.slice(),t);i=n.to}return new $(e,t)}static cursor(e,t=0,i,r){return Jt.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(r??16777215)<<6)}static range(e,t,i,r){let n=(i??16777215)<<6|(r==null?7:Math.min(6,r));return t<e?Jt.create(t,e,48|n):Jt.create(e,t,(t>e?8:0)|n)}static normalized(e,t=0){let i=e[t];e.sort((r,n)=>r.from-n.from),t=e.indexOf(i);for(let r=1;r<e.length;r++){let n=e[r],s=e[r-1];if(n.empty?n.from<=s.to:n.from<s.to){let a=s.from,o=Math.max(n.to,s.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?$.range(o,a):$.range(a,o))}}return new $(e,t)}}function Jc(O,e){for(let t of O.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let ja=0;class v{constructor(e,t,i,r,n){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=r,this.id=ja++,this.default=e([]),this.extensions=typeof n=="function"?n(this):n}get reader(){return this}static define(e={}){return new v(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Ca),!!e.static,e.enables)}of(e){return new pr([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new pr(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new pr(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Ca(O,e){return O==e||O.length==e.length&&O.every((t,i)=>t===e[i])}class pr{constructor(e,t,i,r){this.dependencies=e,this.facet=t,this.type=i,this.value=r,this.id=ja++}dynamicSlot(e){var t;let i=this.value,r=this.facet.compareInput,n=this.id,s=e[n]>>1,a=this.type==2,o=!1,l=!1,h=[];for(let c of this.dependencies)c=="doc"?o=!0:c=="selection"?l=!0:(((t=e[c.id])!==null&&t!==void 0?t:1)&1)==0&&h.push(e[c.id]);return{create(c){return c.values[s]=i(c),1},update(c,f){if(o&&f.docChanged||l&&(f.docChanged||f.selection)||ks(c,h)){let u=i(c);if(a?!Io(u,c.values[s],r):!r(u,c.values[s]))return c.values[s]=u,1}return 0},reconfigure:(c,f)=>{let u,Q=f.config.address[n];if(Q!=null){let p=Yr(f,Q);if(this.dependencies.every(m=>m instanceof v?f.facet(m)===c.facet(m):m instanceof Ue?f.field(m,!1)==c.field(m,!1):!0)||(a?Io(u=i(c),p,r):r(u=i(c),p)))return c.values[s]=p,0}else u=i(c);return c.values[s]=u,1}}}}function Io(O,e,t){if(O.length!=e.length)return!1;for(let i=0;i<O.length;i++)if(!t(O[i],e[i]))return!1;return!0}function ks(O,e){let t=!1;for(let i of e)ii(O,i)&1&&(t=!0);return t}function $p(O,e,t){let i=t.map(o=>O[o.id]),r=t.map(o=>o.type),n=i.filter(o=>!(o&1)),s=O[e.id]>>1;function a(o){let l=[];for(let h=0;h<i.length;h++){let c=Yr(o,i[h]);if(r[h]==2)for(let f of c)l.push(f);else l.push(c)}return e.combine(l)}return{create(o){for(let l of i)ii(o,l);return o.values[s]=a(o),1},update(o,l){if(!ks(o,n))return 0;let h=a(o);return e.compare(h,o.values[s])?0:(o.values[s]=h,1)},reconfigure(o,l){let h=ks(o,i),c=l.config.facets[e.id],f=l.facet(e);if(c&&!h&&Ca(t,c))return o.values[s]=f,0;let u=a(o);return e.compare(u,f)?(o.values[s]=f,0):(o.values[s]=u,1)}}}const Li=v.define({static:!0});class Ue{constructor(e,t,i,r,n){this.id=e,this.createF=t,this.updateF=i,this.compareF=r,this.spec=n,this.provides=void 0}static define(e){let t=new Ue(ja++,e.create,e.update,e.compare||((i,r)=>i===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Li).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,r)=>{let n=i.values[t],s=this.updateF(n,r);return this.compareF(n,s)?0:(i.values[t]=s,1)},reconfigure:(i,r)=>{let n=i.facet(Li),s=r.facet(Li),a;return(a=n.find(o=>o.field==this))&&a!=s.find(o=>o.field==this)?(i.values[t]=a.create(i),1):r.config.address[this.id]!=null?(i.values[t]=r.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,Li.of({field:this,create:e})]}get extension(){return this}}const Ft={lowest:4,low:3,default:2,high:1,highest:0};function MO(O){return e=>new ef(e,O)}const fO={highest:MO(Ft.highest),high:MO(Ft.high),default:MO(Ft.default),low:MO(Ft.low),lowest:MO(Ft.lowest)};class ef{constructor(e,t){this.inner=e,this.prec=t}}class hn{of(e){return new Ts(this,e)}reconfigure(e){return hn.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Ts{constructor(e,t){this.compartment=e,this.inner=t}}class vr{constructor(e,t,i,r,n,s){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=r,this.staticValues=n,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let r=[],n=Object.create(null),s=new Map;for(let f of Pp(e,t,s))f instanceof Ue?r.push(f):(n[f.facet.id]||(n[f.facet.id]=[])).push(f);let a=Object.create(null),o=[],l=[];for(let f of r)a[f.id]=l.length<<1,l.push(u=>f.slot(u));let h=i==null?void 0:i.config.facets;for(let f in n){let u=n[f],Q=u[0].facet,p=h&&h[f]||[];if(u.every(m=>m.type==0))if(a[Q.id]=o.length<<1|1,Ca(p,u))o.push(i.facet(Q));else{let m=Q.combine(u.map(g=>g.value));o.push(i&&Q.compare(m,i.facet(Q))?i.facet(Q):m)}else{for(let m of u)m.type==0?(a[m.id]=o.length<<1|1,o.push(m.value)):(a[m.id]=l.length<<1,l.push(g=>m.dynamicSlot(g)));a[Q.id]=l.length<<1,l.push(m=>$p(m,Q,u))}}let c=l.map(f=>f(a));return new vr(e,s,c,a,o,n)}}function Pp(O,e,t){let i=[[],[],[],[],[]],r=new Map;function n(s,a){let o=r.get(s);if(o!=null){if(o<=a)return;let l=i[o].indexOf(s);l>-1&&i[o].splice(l,1),s instanceof Ts&&t.delete(s.compartment)}if(r.set(s,a),Array.isArray(s))for(let l of s)n(l,a);else if(s instanceof Ts){if(t.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let l=e.get(s.compartment)||s.inner;t.set(s.compartment,l),n(l,a)}else if(s instanceof ef)n(s.inner,s.prec);else if(s instanceof Ue)i[a].push(s),s.provides&&n(s.provides,a);else if(s instanceof pr)i[a].push(s),s.facet.extensions&&n(s.facet.extensions,Ft.default);else{let l=s.extension;if(!l)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);n(l,a)}}return n(O,Ft.default),i.reduce((s,a)=>s.concat(a))}function ii(O,e){if(e&1)return 2;let t=e>>1,i=O.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;O.status[t]=4;let r=O.computeSlot(O,O.config.dynamicSlots[t]);return O.status[t]=2|r}function Yr(O,e){return e&1?O.config.staticValues[e>>1]:O.values[e>>1]}const tf=v.define(),vs=v.define({combine:O=>O.some(e=>e),static:!0}),Of=v.define({combine:O=>O.length?O[0]:void 0,static:!0}),rf=v.define(),nf=v.define(),sf=v.define(),af=v.define({combine:O=>O.length?O[0]:!1});class vt{constructor(e,t){this.type=e,this.value=t}static define(){return new Sp}}class Sp{of(e){return new vt(this,e)}}class Xp{constructor(e){this.map=e}of(e){return new C(this,e)}}class C{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new C(this.type,t)}is(e){return this.type==e}static define(e={}){return new Xp(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let r of e){let n=r.map(t);n&&i.push(n)}return i}}C.reconfigure=C.define();C.appendConfig=C.define();class re{constructor(e,t,i,r,n,s){this.startState=e,this.changes=t,this.selection=i,this.effects=r,this.annotations=n,this.scrollIntoView=s,this._doc=null,this._state=null,i&&Jc(i,t.newLength),n.some(a=>a.type==re.time)||(this.annotations=n.concat(re.time.of(Date.now())))}static create(e,t,i,r,n,s){return new re(e,t,i,r,n,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(re.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}re.time=vt.define();re.userEvent=vt.define();re.addToHistory=vt.define();re.remote=vt.define();function xp(O,e){let t=[];for(let i=0,r=0;;){let n,s;if(i<O.length&&(r==e.length||e[r]>=O[i]))n=O[i++],s=O[i++];else if(r<e.length)n=e[r++],s=e[r++];else return t;!t.length||t[t.length-1]<n?t.push(n,s):t[t.length-1]<s&&(t[t.length-1]=s)}}function of(O,e,t){var i;let r,n,s;return t?(r=e.changes,n=ne.empty(e.changes.length),s=O.changes.compose(e.changes)):(r=e.changes.map(O.changes),n=O.changes.mapDesc(e.changes,!0),s=O.changes.compose(r)),{changes:s,selection:e.selection?e.selection.map(n):(i=O.selection)===null||i===void 0?void 0:i.map(r),effects:C.mapEffects(O.effects,r).concat(C.mapEffects(e.effects,n)),annotations:O.annotations.length?O.annotations.concat(e.annotations):e.annotations,scrollIntoView:O.scrollIntoView||e.scrollIntoView}}function Ys(O,e,t){let i=e.selection,r=xO(e.annotations);return e.userEvent&&(r=r.concat(re.userEvent.of(e.userEvent))),{changes:e.changes instanceof ne?e.changes:ne.of(e.changes||[],t,O.facet(Of)),selection:i&&(i instanceof $?i:$.single(i.anchor,i.head)),effects:xO(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function lf(O,e,t){let i=Ys(O,e.length?e[0]:{},O.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let n=1;n<e.length;n++){e[n].filter===!1&&(t=!1);let s=!!e[n].sequential;i=of(i,Ys(O,e[n],s?i.changes.newLength:O.doc.length),s)}let r=re.create(O,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return yp(t?bp(r):r)}function bp(O){let e=O.startState,t=!0;for(let r of e.facet(rf)){let n=r(O);if(n===!1){t=!1;break}Array.isArray(n)&&(t=t===!0?n:xp(t,n))}if(t!==!0){let r,n;if(t===!1)n=O.changes.invertedDesc,r=ne.empty(e.doc.length);else{let s=O.changes.filter(t);r=s.changes,n=s.filtered.mapDesc(s.changes).invertedDesc}O=re.create(e,r,O.selection&&O.selection.map(n),C.mapEffects(O.effects,n),O.annotations,O.scrollIntoView)}let i=e.facet(nf);for(let r=i.length-1;r>=0;r--){let n=i[r](O);n instanceof re?O=n:Array.isArray(n)&&n.length==1&&n[0]instanceof re?O=n[0]:O=lf(e,xO(n),!1)}return O}function yp(O){let e=O.startState,t=e.facet(sf),i=O;for(let r=t.length-1;r>=0;r--){let n=t[r](O);n&&Object.keys(n).length&&(i=of(i,Ys(e,n,O.changes.newLength),!0))}return i==O?O:re.create(e,O.changes,O.selection,i.effects,i.annotations,i.scrollIntoView)}const wp=[];function xO(O){return O==null?wp:Array.isArray(O)?O:[O]}var J=(function(O){return O[O.Word=0]="Word",O[O.Space=1]="Space",O[O.Other=2]="Other",O})(J||(J={}));const kp=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Zs;try{Zs=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Tp(O){if(Zs)return Zs.test(O);for(let e=0;e<O.length;e++){let t=O[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||kp.test(t)))return!0}return!1}function vp(O){return e=>{if(!/\S/.test(e))return J.Space;if(Tp(e))return J.Word;for(let t=0;t<O.length;t++)if(e.indexOf(O[t])>-1)return J.Word;return J.Other}}class A{constructor(e,t,i,r,n,s){this.config=e,this.doc=t,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=n,s&&(s._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)ii(this,a<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return ii(this,i),Yr(this,i)}update(...e){return lf(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:r}=t;for(let a of e.effects)a.is(hn.reconfigure)?(t&&(r=new Map,t.compartments.forEach((o,l)=>r.set(l,o)),t=null),r.set(a.value.compartment,a.value.extension)):a.is(C.reconfigure)?(t=null,i=a.value):a.is(C.appendConfig)&&(t=null,i=xO(i).concat(a.value));let n;t?n=e.startState.values.slice():(t=vr.resolve(i,r,this),n=new A(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(o,l)=>l.reconfigure(o,this),null).values);let s=e.startState.facet(vs)?e.newSelection:e.newSelection.asSingle();new A(t,e.newDoc,s,n,(a,o)=>o.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:$.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),r=this.changes(i.changes),n=[i.range],s=xO(i.effects);for(let a=1;a<t.ranges.length;a++){let o=e(t.ranges[a]),l=this.changes(o.changes),h=l.map(r);for(let f=0;f<a;f++)n[f]=n[f].map(h);let c=r.mapDesc(l,!0);n.push(o.range.map(c)),r=r.compose(h),s=C.mapEffects(s,h).concat(C.mapEffects(xO(o.effects),c))}return{changes:r,selection:$.create(n,t.mainIndex),effects:s}}changes(e=[]){return e instanceof ne?e:ne.of(e,this.doc.length,this.facet(A.lineSeparator))}toText(e){return j.of(e.split(this.facet(A.lineSeparator)||bs))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(ii(this,t),Yr(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let r=e[i];r instanceof Ue&&this.config.address[r.id]!=null&&(t[i]=r.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(i){for(let n in i)if(Object.prototype.hasOwnProperty.call(e,n)){let s=i[n],a=e[n];r.push(s.init(o=>s.spec.fromJSON(a,o)))}}return A.create({doc:e.doc,selection:$.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=vr.resolve(e.extensions||[],new Map),i=e.doc instanceof j?e.doc:j.of((e.doc||"").split(t.staticFacet(A.lineSeparator)||bs)),r=e.selection?e.selection instanceof $?e.selection:$.single(e.selection.anchor,e.selection.head):$.single(0);return Jc(r,i.length),t.staticFacet(vs)||(r=r.asSingle()),new A(t,i,r,t.dynamicSlots.map(()=>null),(n,s)=>s.create(n),null)}get tabSize(){return this.facet(A.tabSize)}get lineBreak(){return this.facet(A.lineSeparator)||`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-nxz_bnWs.js","assets/main-BQYA220B.js","assets/modulepreload-polyfill-B5Qt9EMX.js","assets/vendor-react-uS-d4TUT.js","assets/vendor-three-DJ4p3FLF.js","assets/main-BkqALYk6.css"])))=>i.map(i=>d[i]);
2
- import{r as e,_ as o}from"./main-BQYA220B.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./vendor-react-uS-d4TUT.js";import"./vendor-three-DJ4p3FLF.js";var i;(function(r){r.Heavy="HEAVY",r.Medium="MEDIUM",r.Light="LIGHT"})(i||(i={}));var t;(function(r){r.Success="SUCCESS",r.Warning="WARNING",r.Error="ERROR"})(t||(t={}));const p=e("Haptics",{web:()=>o(()=>import("./web-nxz_bnWs.js"),__vite__mapDeps([0,1,2,3,4,5])).then(r=>new r.HapticsWeb)});export{p as Haptics,i as ImpactStyle,t as NotificationType};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-DPYNXSyi.js","assets/main-PqPxxRql.js","assets/modulepreload-polyfill-B5Qt9EMX.js","assets/vendor-react-uS-d4TUT.js","assets/vendor-three-DJ4p3FLF.js","assets/main-BkqALYk6.css"])))=>i.map(i=>d[i]);
2
+ import{r as e,_ as o}from"./main-PqPxxRql.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./vendor-react-uS-d4TUT.js";import"./vendor-three-DJ4p3FLF.js";var i;(function(r){r.Heavy="HEAVY",r.Medium="MEDIUM",r.Light="LIGHT"})(i||(i={}));var t;(function(r){r.Success="SUCCESS",r.Warning="WARNING",r.Error="ERROR"})(t||(t={}));const p=e("Haptics",{web:()=>o(()=>import("./web-DPYNXSyi.js"),__vite__mapDeps([0,1,2,3,4,5])).then(r=>new r.HapticsWeb)});export{p as Haptics,i as ImpactStyle,t as NotificationType};