Files
INTUIA/Programa final/_internal/jupyterlab/static/1208.4b9ab7b231d39ebdbc3f.js
T

1 line
27 KiB
JavaScript
Raw Normal View History

2026-03-15 13:27:50 +00:00
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1208],{91208:(e,t,r)=>{r.r(t);r.d(t,{DefaultBufferLength:()=>n,IterMode:()=>d,MountedTree:()=>o,NodeProp:()=>l,NodeSet:()=>u,NodeType:()=>h,NodeWeakMap:()=>E,Parser:()=>j,Tree:()=>c,TreeBuffer:()=>m,TreeCursor:()=>I,TreeFragment:()=>O,parseMixed:()=>D});const n=1024;let i=0;class s{constructor(e,t){this.from=e;this.to=t}}class l{constructor(e={}){this.id=i++;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");if(typeof e!="function")e=h.match(e);return t=>{let r=e(t);return r===undefined?null:[this,r]}}}l.closedBy=new l({deserialize:e=>e.split(" ")});l.openedBy=new l({deserialize:e=>e.split(" ")});l.group=new l({deserialize:e=>e.split(" ")});l.isolate=new l({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});l.contextHash=new l({perNode:true});l.lookAhead=new l({perNode:true});l.mounted=new l({perNode:true});class o{constructor(e,t,r){this.tree=e;this.overlay=t;this.parser=r}static get(e){return e&&e.props&&e.props[l.mounted.id]}}const f=Object.create(null);class h{constructor(e,t,r,n=0){this.name=e;this.props=t;this.id=r;this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):f;let r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0);let n=new h(e.name||"",t,e.id,r);if(e.props)for(let i of e.props){if(!Array.isArray(i))i=i(n);if(i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}}return n}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 true;let t=this.prop(l.group);return t?t.indexOf(e)>-1:false}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(l.group),n=-1;n<(r?r.length:0);n++){let i=t[n<0?e.name:r[n]];if(i)return i}}}}h.none=new h("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);if(e){if(!n)n=Object.assign({},r.props);n[e[0].id]=e[1]}}t.push(n?new h(r.name,n,r.id,r.flags):r)}return new u(t)}}const a=new WeakMap,p=new WeakMap;var d;(function(e){e[e["ExcludeBuffers"]=1]="ExcludeBuffers";e[e["IncludeAnonymous"]=2]="IncludeAnonymous";e[e["IgnoreMounts"]=4]="IgnoreMounts";e[e["IgnoreOverlays"]=8]="IgnoreOverlays"})(d||(d={}));class c{constructor(e,t,r,n,i){this.type=e;this.children=t;this.positions=r;this.length=n;this.props=null;if(i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props[typeof e=="number"?e:e.id]=t}}toString(){let e=o.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let r of this.children){let e=r.toString();if(e){if(t)t+=",";t+=e}}return!this.type.name?t:(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":"")}cursor(e=0){return new I(this.topNode,e)}cursorAt(e,t=0,r=0){let n=a.get(this)||this.topNode;let i=new I(n);i.moveTo(e,t);a.set(this,i._tree);return i}get topNode(){return new w(this,0,0,null)}resolve(e,t=0){let r=x(a.get(this)||this.topNode,e,t,false);a.set(this,r);return r}resolveInner(e,t=0){let r=x(p.get(this)||this.topNode,e,t,true);p.set(this,r);return r}resolveStack(e,t=0){return N(this,e,t)}iterate(e){let{enter:t,leave:r,from:n=0,to:i=this.length}=e;let s=e.mode||0,l=(s&d.IncludeAnonymous)>0;for(let o=this.cursor(s|d.IncludeAnonymous);;){let e=false;if(o.from<=i&&o.to>=n&&(!l&&o.type.isAnonymous||t(o)!==false)){if(o.firstChild())continue;e=true}