@bkm016/basalt 0.0.0-stage → 0.1.1
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.
- package/README.md +275 -2
- package/chunk-09vr609h.js +2 -0
- package/chunk-0hbjv3y6.js +11 -0
- package/chunk-0qqb6v41.js +3753 -0
- package/chunk-0szjy61m.js +2 -0
- package/chunk-0yytz0r1.js +59 -0
- package/chunk-1aspj1hn.js +3 -0
- package/chunk-1b7gbe8g.js +10 -0
- package/chunk-1v7st27a.js +25 -0
- package/chunk-1yzt0qm0.js +2 -0
- package/chunk-2bb01ddq.js +16 -0
- package/chunk-2wkaw73s.js +9 -0
- package/chunk-2zqny2sy.js +2 -0
- package/chunk-32at88hc.js +3 -0
- package/chunk-3m7qwfm3.js +7 -0
- package/chunk-44ek81ad.js +3 -0
- package/chunk-45cz26ap.js +39 -0
- package/chunk-501zkf9b.js +3 -0
- package/chunk-58vz2qsq.js +2 -0
- package/chunk-6e49xsf5.js +3 -0
- package/chunk-6qertm2t.js +3 -0
- package/chunk-8dxzqwq3.js +2 -0
- package/chunk-9mmz6wt3.js +2 -0
- package/chunk-a3tqx584.js +10 -0
- package/chunk-a6r4z44b.js +2 -0
- package/chunk-a8nyk4k9.js +2 -0
- package/chunk-agntrqs9.js +2 -0
- package/chunk-bhqyxyap.js +3 -0
- package/chunk-bpw6q7g0.js +3 -0
- package/chunk-c25s4w6a.js +5 -0
- package/chunk-cv5wsd9m.js +8 -0
- package/chunk-d48bfd2e.js +3 -0
- package/chunk-dakrpbe6.js +3 -0
- package/chunk-dhm42y04.js +7 -0
- package/chunk-exnn1867.js +2 -0
- package/chunk-f7egr55n.js +31 -0
- package/chunk-g2t6t8fk.js +3 -0
- package/chunk-h6sw8fbt.js +5 -0
- package/chunk-hat3s3pr.js +3 -0
- package/chunk-hcn9cf6v.js +2 -0
- package/chunk-jhd54p1b.js +3 -0
- package/chunk-k7w7ac9q.js +18 -0
- package/chunk-kf8hq21a.js +25 -0
- package/chunk-kfq8wyd3.js +3 -0
- package/chunk-n6e43rvk.js +3 -0
- package/chunk-nt2gntad.js +2 -0
- package/chunk-pmc3y1z8.js +2 -0
- package/chunk-pvncysbb.js +3 -0
- package/chunk-q8zx3kt6.js +2 -0
- package/chunk-qczbfccb.js +12 -0
- package/chunk-qnr1f5pj.js +3 -0
- package/chunk-qx0m82rw.js +2 -0
- package/chunk-r9aatvwm.js +3 -0
- package/chunk-rm3kcxq9.js +20 -0
- package/chunk-rv06x0kn.js +7 -0
- package/chunk-ry0z4ev6.js +2 -0
- package/chunk-s37s3k24.js +12 -0
- package/chunk-sh74qzvt.js +5 -0
- package/chunk-szat3vp4.js +3 -0
- package/chunk-t057xfrt.js +5 -0
- package/chunk-tvm4zmgj.js +3 -0
- package/chunk-v9fea96h.js +3 -0
- package/chunk-vgvq3q12.js +3 -0
- package/chunk-vkkj4awb.js +2 -0
- package/chunk-vv7fp27r.js +3 -0
- package/chunk-wjd9fr23.js +2 -0
- package/chunk-wx7kdf0b.js +2 -0
- package/chunk-x3dnb9sz.js +3 -0
- package/chunk-xsbxykr4.js +2 -0
- package/chunk-xysny0ve.js +3 -0
- package/chunk-y69ewdn2.js +3 -0
- package/chunk-yskm0hsy.js +2 -0
- package/chunk-zef13k3h.js +471 -0
- package/cli.js +89 -0
- package/compiled.js +23 -0
- package/icon-dp9pmcvp.png +0 -0
- package/package.json +21 -4
- package/ui-test-worker.js +226 -0
- package/web/KaTeX_AMS-Regular-n7eqehx2.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Bold-20r3b6fv.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Regular-kkjm8f18.woff2 +0 -0
- package/web/KaTeX_Fraktur-Bold-pz5vg4t0.woff2 +0 -0
- package/web/KaTeX_Fraktur-Regular-a1e9wkwk.woff2 +0 -0
- package/web/KaTeX_Main-Bold-mcp098h8.woff2 +0 -0
- package/web/KaTeX_Main-BoldItalic-fy74z249.woff2 +0 -0
- package/web/KaTeX_Main-Italic-hw2gxy7f.woff2 +0 -0
- package/web/KaTeX_Main-Regular-xvp1b75c.woff2 +0 -0
- package/web/KaTeX_Math-BoldItalic-mf5nf33d.woff2 +0 -0
- package/web/KaTeX_Math-Italic-ap60jrna.woff2 +0 -0
- package/web/KaTeX_SansSerif-Bold-we3bymb6.woff2 +0 -0
- package/web/KaTeX_SansSerif-Italic-ent92bjx.woff2 +0 -0
- package/web/KaTeX_SansSerif-Regular-0573pbz9.woff2 +0 -0
- package/web/KaTeX_Script-Regular-z2rtj6vq.woff2 +0 -0
- package/web/KaTeX_Size1-Regular-dfr3w1hv.woff2 +0 -0
- package/web/KaTeX_Size2-Regular-kted78zb.woff2 +0 -0
- package/web/KaTeX_Size3-Regular-e6k1k5jk.woff2 +0 -0
- package/web/KaTeX_Size4-Regular-abedc1pd.woff2 +0 -0
- package/web/KaTeX_Typewriter-Regular-scw9zx1z.woff2 +0 -0
- package/web/apple-touch-icon-7dkm33qp.png +0 -0
- package/web/apple-touch-icon.png +0 -0
- package/web/chunk-05w4fyzc.js +1 -0
- package/web/chunk-0mrkjnte.js +1 -0
- package/web/chunk-0pbjgdgp.js +2 -0
- package/web/chunk-0s80zw00.js +1 -0
- package/web/chunk-0vt9fg48.js +2 -0
- package/web/chunk-20q90epj.js +2 -0
- package/web/chunk-22a4ety5.js +1 -0
- package/web/chunk-24mfx6w1.js +2 -0
- package/web/chunk-2j4m0bh1.js +2 -0
- package/web/chunk-2m12wyrb.js +16 -0
- package/web/chunk-2msj52w6.js +1 -0
- package/web/chunk-2ps6mepk.js +120 -0
- package/web/chunk-2pver6r4.js +1 -0
- package/web/chunk-2scce33n.js +1 -0
- package/web/chunk-37ajk6zg.js +2 -0
- package/web/chunk-3ee04tmm.js +200 -0
- package/web/chunk-3jhyzmnf.js +292 -0
- package/web/chunk-45fzdcgz.js +30 -0
- package/web/chunk-4gavbw65.js +1 -0
- package/web/chunk-4ks96e4r.js +1 -0
- package/web/chunk-4rm1vy7w.js +1 -0
- package/web/chunk-4v8en1yw.js +40 -0
- package/web/chunk-4wd9r73y.js +1 -0
- package/web/chunk-4wkm9fda.js +1 -0
- package/web/chunk-54thej0t.js +2 -0
- package/web/chunk-59kqahb3.js +1 -0
- package/web/chunk-5vw9rs4r.js +4 -0
- package/web/chunk-6beqrmtq.js +1 -0
- package/web/chunk-6m69hczt.js +2 -0
- package/web/chunk-70qwwwak.js +2 -0
- package/web/chunk-74j07k8k.js +2 -0
- package/web/chunk-8g239029.js +1 -0
- package/web/chunk-8p4tc9f4.js +70 -0
- package/web/chunk-90kp4pnz.js +2 -0
- package/web/chunk-9an7cjd9.js +291 -0
- package/web/chunk-9dxjafp2.js +78 -0
- package/web/chunk-9p12mgs6.js +2 -0
- package/web/chunk-9v1f6yc8.js +1 -0
- package/web/chunk-9yakxvjb.js +2 -0
- package/web/chunk-a1z5qx1r.js +36 -0
- package/web/chunk-a3verqw9.js +214 -0
- package/web/chunk-a5x2zveg.js +7 -0
- package/web/chunk-ad6x47yy.js +1 -0
- package/web/chunk-amzgyy1k.js +1 -0
- package/web/chunk-b1pe46zz.js +2 -0
- package/web/chunk-b4wbk7vc.js +217 -0
- package/web/chunk-bc78qf1m.js +7 -0
- package/web/chunk-bgnnrpna.js +89 -0
- package/web/chunk-bj90t5gh.js +99 -0
- package/web/chunk-bjkc94mv.js +1 -0
- package/web/chunk-ca682sm6.js +370 -0
- package/web/chunk-cff5hcm8.js +8 -0
- package/web/chunk-cg3jterp.js +2 -0
- package/web/chunk-d18r4m14.js +141 -0
- package/web/chunk-dmqtdeb4.js +1 -0
- package/web/chunk-dt462hk9.js +332 -0
- package/web/chunk-dy2gm1fs.js +1 -0
- package/web/chunk-dzwxgqgm.js +39 -0
- package/web/chunk-e32y85kx.js +1 -0
- package/web/chunk-e53wfgb8.js +1 -0
- package/web/chunk-e6jxqbv7.js +3 -0
- package/web/chunk-esp1mmgr.js +1 -0
- package/web/chunk-ew3cgdtd.js +1 -0
- package/web/chunk-f26smjjf.js +2 -0
- package/web/chunk-f91wzwtk.js +1 -0
- package/web/chunk-fk0dh93x.js +89 -0
- package/web/chunk-fm2ybfj5.js +98 -0
- package/web/chunk-fscafg24.js +34 -0
- package/web/chunk-fz06t6km.js +55 -0
- package/web/chunk-g1ev11wx.js +1 -0
- package/web/chunk-g4azyef7.js +106 -0
- package/web/chunk-gjq1pxw3.js +1 -0
- package/web/chunk-gqw3f02j.js +140 -0
- package/web/chunk-h5ejbf6e.js +1 -0
- package/web/chunk-hev4hq89.js +2 -0
- package/web/chunk-hfaffkrh.js +1 -0
- package/web/chunk-hp167dbv.js +1 -0
- package/web/chunk-j2vt8c8v.js +1 -0
- package/web/chunk-jjh5jvva.js +1 -0
- package/web/chunk-jrcyc9s9.js +38 -0
- package/web/chunk-jwzd9tzk.js +24 -0
- package/web/chunk-k5btcvbg.js +1 -0
- package/web/chunk-ka3q31t1.js +1 -0
- package/web/chunk-kdyjnwdx.js +2 -0
- package/web/chunk-kpvgecwy.js +1 -0
- package/web/chunk-kq40ss39.js +1 -0
- package/web/chunk-m2d1sp30.js +1 -0
- package/web/chunk-n1dmrz44.js +2 -0
- package/web/chunk-n90cqdvg.js +2 -0
- package/web/chunk-nj0cv1cq.js +257 -0
- package/web/chunk-nzey7cpv.js +1 -0
- package/web/chunk-p3b9crsa.js +2 -0
- package/web/chunk-pf2ab8p8.js +1 -0
- package/web/chunk-pxe3vna4.js +1 -0
- package/web/chunk-q0p5xqe1.js +84 -0
- package/web/chunk-q5ke7a33.js +24 -0
- package/web/chunk-q7dsnvpf.js +1 -0
- package/web/chunk-qd8bxxdj.js +1 -0
- package/web/chunk-qefasa1j.js +2 -0
- package/web/chunk-qh7265qw.js +4 -0
- package/web/chunk-qnaqf0cr.js +1 -0
- package/web/chunk-r1dnh0s8.js +1 -0
- package/web/chunk-r5eakmw6.js +1 -0
- package/web/chunk-rg426vkf.js +1 -0
- package/web/chunk-rpmpttbk.js +12 -0
- package/web/chunk-rtf2zzzv.js +1 -0
- package/web/chunk-ry9256r7.js +1 -0
- package/web/chunk-rykfak98.js +2 -0
- package/web/chunk-scpwc9ev.js +1 -0
- package/web/chunk-srrfphes.js +1 -0
- package/web/chunk-ss1bcb0n.js +2 -0
- package/web/chunk-ssy07dd2.js +1 -0
- package/web/chunk-t6agpn2z.js +1 -0
- package/web/chunk-taynqrgq.js +142 -0
- package/web/chunk-tgpbhzn9.js +1 -0
- package/web/chunk-tmvakq7n.js +19 -0
- package/web/chunk-tqmwd9qp.js +139 -0
- package/web/chunk-ts7zrf5b.js +2 -0
- package/web/chunk-ttg6tbwx.js +2 -0
- package/web/chunk-v28fx2nd.js +1 -0
- package/web/chunk-v5cnt7c8.js +1 -0
- package/web/chunk-vt40e1kp.js +1136 -0
- package/web/chunk-w53rba6g.js +1 -0
- package/web/chunk-w86n42dy.js +1 -0
- package/web/chunk-w880psmw.js +1 -0
- package/web/chunk-wptv8atc.js +2 -0
- package/web/chunk-wtawdeej.css +1 -0
- package/web/chunk-xbty0rv7.js +41 -0
- package/web/chunk-xet1jjy9.js +1 -0
- package/web/chunk-xjxv8dg8.js +169 -0
- package/web/chunk-xrxne80b.js +62 -0
- package/web/chunk-xzp7jf7e.js +2 -0
- package/web/chunk-y0m8hrwz.js +303 -0
- package/web/chunk-y49fhfda.js +7 -0
- package/web/chunk-yd46jhqv.js +1 -0
- package/web/chunk-ydtrc1ay.js +2 -0
- package/web/chunk-z09emmrb.js +1 -0
- package/web/chunk-z7dcbxws.js +1 -0
- package/web/chunk-zbj1trar.js +2 -0
- package/web/chunk-zde7mj43.js +1 -0
- package/web/icon-192.png +0 -0
- package/web/icon-512.png +0 -0
- package/web/icon-maskable-512.png +0 -0
- package/web/icon-yx2p2pye.svg +13 -0
- package/web/icon.svg +13 -0
- package/web/index.html +23 -0
- package/web/install.ps1 +91 -0
- package/web/install.sh +177 -0
- package/web/inter-latin-wght-normal-an0py913.woff2 +0 -0
- package/web/jetbrains-mono-latin-wght-normal-hj2e42wt.woff2 +0 -0
- package/web/manifest-txf6vfbq.webmanifest +35 -0
- package/web/manifest.webmanifest +35 -0
- package/web/source-serif-4-latin-wght-italic-ta5tqqvz.woff2 +0 -0
- package/web/source-serif-4-latin-wght-normal-1yyvbhsz.woff2 +0 -0
- package/web/sw.js +90 -0
- package/worker.js +2 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{e,r,s,R,Ct,ho,ht,Kt,Tt,Hn,Qt}from"./chunk-y0m8hrwz.js";import{be,Pe,Qe,Te,ct,jt,H,pe,at,qt,it,cr,ua,da,pa,yn,wt,ma,vn,Oe,bn,Ot,kt,xn,Vt,_n,fa,ha,ur,xe,ga,wn,Gt,kn,dr,pr,Wt,ya,mr,va,zr,ut,fr,ba,xa,_a,We,hr,gr,Cn,wa,yr,f,Je,dt,_e,Ht,Q}from"./chunk-kdyjnwdx.js";import{sa,la,G,$n,eo,ca,lr}from"./chunk-wptv8atc.js";import{At}from"./chunk-vt40e1kp.js";var wr={};At(wr,{default:()=>er});var uo=/\s/;function co(t){var n=t.length;while(n--&&uo.test(t.charAt(n)));return n}var te=co;var po=/^\s+/;function lo(t){return t?t.slice(0,te(t)+1).replace(po,""):t}var ne=lo;var oe=NaN,mo=/^[-+]0x[0-9a-f]+$/i,go=/^0b[01]+$/i,vo=/^0o[0-7]+$/i,bo=parseInt;function yo(t){if(typeof t=="number")return t;if(ct(t))return oe;if(pe(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=pe(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=ne(t);var o=go.test(t);return o||vo.test(t)?bo(t.slice(2),o?2:8):mo.test(t)?oe:+t}var ie=yo;var ae=1/0,wo=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;function _o(t){if(!t)return t===0?t:0;if(t=ie(t),t===ae||t===-ae){var n=t<0?-1:1;return n*wo}return t===t?t:0}var Y=_o;function Eo(t){var n=Y(t),o=n%1;return n===n?o?n-o:n:0}var fe=Eo;var se=Object.create,xo=function(){function t(){}return function(n){if(!pe(n))return{};if(se)return se(n);t.prototype=n;var o=new t;return t.prototype=void 0,o}}(),ue=xo;function Oo(t,n){var o=-1,i=t.length;n||(n=Array(i));while(++o<i)n[o]=t[o];return n}var vr=Oo;function Lo(t,n,o){if(n=="__proto__"&&cr)cr(t,n,{configurable:!0,enumerable:!0,value:o,writable:!0});else t[n]=o}var M=Lo;var Io=Object.prototype,No=Io.hasOwnProperty;function Po(t,n,o){var i=t[n];if(!(No.call(t,n)&&wt(i,o))||o===void 0&&!(n in t))M(t,n,o)}var j=Po;function ko(t,n,o,i){var a=!o;o||(o={});var u=-1,d=n.length;while(++u<d){var c=n[u],p=i?i(o[c],t[c],c,o,t):void 0;if(p===void 0)p=t[c];if(a)M(o,c,p);else j(o,c,p)}return o}var P=ko;function Ao(t,n,o){if(!pe(o))return!1;var i=typeof n;if(i=="number"?Oe(o)&&yn(n,o.length):i=="string"&&(n in o))return wt(o[n],t);return!1}var T=Ao;function Ro(t){return vn(function(n,o){var i=-1,a=o.length,u=a>1?o[a-1]:void 0,d=a>2?o[2]:void 0;if(u=t.length>3&&typeof u=="function"?(a--,u):void 0,d&&T(o[0],o[1],d))u=a<3?void 0:u,a=1;n=Object(n);while(++i<a){var c=o[i];if(c)t(n,c,i,u)}return n})}var de=Ro;function Mo(t){var n=[];if(t!=null)for(var o in Object(t))n.push(o);return n}var ce=Mo;var jo=Object.prototype,Bo=jo.hasOwnProperty;function Do(t){if(!pe(t))return ce(t);var n=bn(t),o=[];for(var i in t)if(!(i=="constructor"&&(n||!Bo.call(t,i))))o.push(i);return o}var le=Do;function Fo(t){return Oe(t)?fa(t,!0):le(t)}var L=Fo;function Go(t){var n=t==null?0:t.length;return n?pr(t,1):[]}var S=Go;function Xo(t){return ua(ma(t,void 0,S),t+"")}var me=Xo;var Uo=ha(Object.getPrototypeOf,Object),z=Uo;var Vo="[object Object]",Yo=Function.prototype,zo=Object.prototype,he=Yo.toString,Wo=zo.hasOwnProperty,qo=he.call(Object);function Ho(t){if(!Te(t)||Qe(t)!=Vo)return!1;var n=z(t);if(n===null)return!0;var o=Wo.call(n,"constructor")&&n.constructor;return typeof o=="function"&&o instanceof o&&he.call(o)==qo}var ge=Ho;var Ko="\\ud800-\\udfff",Jo="\\u0300-\\u036f",Zo="\\ufe20-\\ufe2f",$o="\\u20d0-\\u20ff",Qo=Jo+Zo+$o,ri="\\ufe0e\\ufe0f",ei="\\u200d",ti=RegExp("["+ei+Ko+Qo+ri+"]");function ni(t){return ti.test(t)}var ve=ni;function oi(t,n){return t&&P(n,xe(n),t)}var ye=oi;function ii(t,n){return t&&P(n,L(n),t)}var we=ii;var Se=typeof wr=="object"&&wr&&!wr.nodeType&&wr,Ee=Se&&typeof br=="object"&&br&&!br.nodeType&&br,ai=Ee&&Ee.exports===Se,Le=ai?be.Buffer:void 0,Ie=Le?Le.allocUnsafe:void 0;function fi(t,n){if(n)return t.slice();var o=t.length,i=Ie?Ie(o):new t.constructor(o);return t.copy(i),i}var er=fi;function si(t,n){return P(t,mr(t),n)}var Ne=si;var ui=Object.getOwnPropertySymbols,di=!ui?ya:function(t){var n=[];while(t)dr(n,mr(t)),t=z(t);return n},_r=di;function ci(t,n){return P(t,_r(t),n)}var ke=ci;function pi(t){return va(t,L,_r)}var Ce=pi;var li=Object.prototype,mi=li.hasOwnProperty;function hi(t){var n=t.length,o=new t.constructor(n);if(n&&typeof t[0]=="string"&&mi.call(t,"index"))o.index=t.index,o.input=t.input;return o}var Ae=hi;function gi(t){var n=new t.constructor(t.byteLength);return new fr(n).set(new fr(t)),n}var W=gi;function vi(t,n){var o=n?W(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}var Re=vi;var bi=/\w*$/;function yi(t){var n=new t.constructor(t.source,bi.exec(t));return n.lastIndex=t.lastIndex,n}var Me=yi;var je=Pe?Pe.prototype:void 0,Be=je?je.valueOf:void 0;function wi(t){return Be?Object(Be.call(t)):{}}var De=wi;function _i(t,n){var o=n?W(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var Er=_i;var Ei="[object Boolean]",xi="[object Date]",Oi="[object Map]",Li="[object Number]",Ii="[object RegExp]",Si="[object Set]",Ni="[object String]",Pi="[object Symbol]",ki="[object ArrayBuffer]",Ti="[object DataView]",Ci="[object Float32Array]",Ai="[object Float64Array]",Ri="[object Int8Array]",Mi="[object Int16Array]",ji="[object Int32Array]",Bi="[object Uint8Array]",Di="[object Uint8ClampedArray]",Fi="[object Uint16Array]",Gi="[object Uint32Array]";function Xi(t,n,o){var i=t.constructor;switch(n){case ki:return W(t);case Ei:case xi:return new i(+t);case Ti:return Re(t,o);case Ci:case Ai:case Ri:case Mi:case ji:case Bi:case Di:case Fi:case Gi:return Er(t,o);case Oi:return new i;case Li:case Ni:return new i(t);case Ii:return Me(t);case Si:return new i;case Pi:return De(t)}}var Fe=Xi;function Ui(t){return typeof t.constructor=="function"&&!bn(t)?ue(z(t)):{}}var xr=Ui;var Vi="[object Map]";function Yi(t){return Te(t)&&ut(t)==Vi}var Ge=Yi;var Xe=Vt&&Vt.isMap,zi=Xe?xn(Xe):Ge,Ue=zi;var Wi="[object Set]";function qi(t){return Te(t)&&ut(t)==Wi}var Ve=qi;var Ye=Vt&&Vt.isSet,Hi=Ye?xn(Ye):Ve,ze=Hi;var Zi=1,$i=2,ra=4,qe="[object Arguments]",ea="[object Array]",ta="[object Boolean]",na="[object Date]",oa="[object Error]",He="[object Function]",ia="[object GeneratorFunction]",aa="[object Map]",Ea="[object Number]",Ke="[object Object]",Oa="[object RegExp]",La="[object Set]",Ia="[object String]",Sa="[object Symbol]",Na="[object WeakMap]",Pa="[object ArrayBuffer]",ka="[object DataView]",Ta="[object Float32Array]",Ca="[object Float64Array]",Aa="[object Int8Array]",Ra="[object Int16Array]",Ma="[object Int32Array]",ja="[object Uint8Array]",Ba="[object Uint8ClampedArray]",Da="[object Uint16Array]",Fa="[object Uint32Array]",x={};x[qe]=x[ea]=x[Pa]=x[ka]=x[ta]=x[na]=x[Ta]=x[Ca]=x[Aa]=x[Ra]=x[Ma]=x[aa]=x[Ea]=x[Ke]=x[Oa]=x[La]=x[Ia]=x[Sa]=x[ja]=x[Ba]=x[Da]=x[Fa]=!0;x[oa]=x[He]=x[Na]=!1;function Or(t,n,o,i,a,u){var d,c=n&Zi,p=n&$i,l=n&ra;if(o)d=a?o(t,i,a,u):o(t);if(d!==void 0)return d;if(!pe(t))return t;var m=H(t);if(m){if(d=Ae(t),!c)return vr(t,d)}else{var h=ut(t),g=h==He||h==ia;if(kt(t))return er(t,c);if(h==Ke||h==qe||g&&!a){if(d=p||g?{}:xr(t),!c)return p?ke(t,we(d,t)):Ne(t,ye(d,t))}else{if(!x[h])return a?t:{};d=Fe(t,h,c)}}u||(u=new Wt);var b=u.get(t);if(b)return b;if(u.set(t,d),ze(t))t.forEach(function(v){d.add(Or(v,n,o,v,t,u))});else if(Ue(t))t.forEach(function(v,_){d.set(_,Or(v,n,o,_,t,u))});var w=l?p?Ce:zr:p?L:xe,y=m?void 0:w(t);return da(y||t,function(v,_){if(y)_=v,v=t[_];j(d,_,Or(v,n,o,_,t,u))}),d}var Ze=Or;var Ga=1,Xa=4;function Ua(t){return Ze(t,Ga|Xa)}var $e=Ua;var Va=function(){return be.Date.now()},Tr=Va;var rt=Object.prototype,Ya=rt.hasOwnProperty,za=vn(function(t,n){t=Object(t);var o=-1,i=n.length,a=i>2?n[2]:void 0;if(a&&T(n[0],n[1],a))i=1;while(++o<i){var u=n[o],d=L(u),c=-1,p=d.length;while(++c<p){var l=d[c],m=t[l];if(m===void 0||wt(m,rt[l])&&!Ya.call(t,l))t[l]=u[l]}}return t}),et=za;function Wa(t,n,o){if(o!==void 0&&!wt(t[n],o)||o===void 0&&!(n in t))M(t,n,o)}var tr=Wa;function qa(t,n){if(n==="constructor"&&typeof t[n]==="function")return;if(n=="__proto__")return;return t[n]}var nr=qa;function Ha(t){return P(t,L(t))}var tt=Ha;function Ka(t,n,o,i,a,u,d){var c=nr(t,o),p=nr(n,o),l=d.get(p);if(l){tr(t,o,l);return}var m=u?u(c,p,o+"",t,n,d):void 0,h=m===void 0;if(h){var g=H(p),b=!g&&kt(p),w=!g&&!b&&_n(p);if(m=p,g||b||w)if(H(c))m=c;else if(wa(c))m=vr(c);else if(b)h=!1,m=er(p,!0);else if(w)h=!1,m=Er(p,!0);else m=[];else if(ge(p)||Ot(p)){if(m=c,Ot(c))m=tt(c);else if(!pe(c)||qt(c))m=xr(p)}else h=!1}if(h)d.set(p,m),a(m,p,i,u,d),d.delete(p);tr(t,o,m)}var nt=Ka;function ot(t,n,o,i,a){if(t===n)return;hr(n,function(u,d){if(a||(a=new Wt),pe(u))nt(t,n,d,o,ot,i,a);else{var c=i?i(nr(t,d),u,d+"",t,n,a):void 0;if(c===void 0)c=u;tr(t,d,c)}},L)}var ft=ot;function Ja(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}var U=Ja;function Za(t){return function(n,o,i){var a=Object(n);if(!Oe(n)){var u=We(o,3);n=xe(n),o=function(c){return u(a[c],c,a)}}var d=t(n,o,i);return d>-1?a[u?n[d]:d]:void 0}}var st=Za;var $a=Math.max;function Qa(t,n,o){var i=t==null?0:t.length;if(!i)return-1;var a=o==null?0:fe(o);if(a<0)a=$a(i+a,0);return pa(t,We(n,3),a)}var pt=Qa;var rf=st(pt),or=rf;function ef(t,n){var o=-1,i=Oe(t)?Array(t.length):[];return Cn(t,function(a,u,d){i[++o]=n(a,u,d)}),i}var Lr=ef;function tf(t,n){var o=H(t)?jt:Lr;return o(t,We(n,3))}var E=tf;function nf(t,n){return t==null?t:hr(t,yr(n),L)}var lt=nf;function of(t,n){return t&&gr(t,yr(n))}var mt=of;function af(t,n){return t>n}var gt=af;var ff=Object.prototype,sf=ff.hasOwnProperty;function uf(t,n){return t!=null&&sf.call(t,n)}var vt=uf;function df(t,n){return t!=null&&ba(t,n,vt)}var Ir=df;var cf="[object String]";function pf(t){return typeof t=="string"||!H(t)&&Te(t)&&Qe(t)==cf}var bt=pf;function lf(t,n){return t<n}var Sr=lf;function mf(t,n){var o={};return n=We(n,3),gr(t,function(i,a,u){M(o,a,n(i,a,u))}),o}var q=mf;function hf(t,n,o){var i=-1,a=t.length;while(++i<a){var u=t[i],d=n(u);if(d!=null&&(c===void 0?d===d&&!ct(d):o(d,c)))var c=d,p=u}return p}var K=hf;function gf(t){return t&&t.length?K(t,at,gt):void 0}var I=gf;var vf=de(function(t,n,o){ft(t,n,o)}),ir=vf;function bf(t){return t&&t.length?K(t,at,Sr):void 0}var B=bf;function yf(t,n){return t&&t.length?K(t,We(n,2),Sr):void 0}var J=yf;function wf(t,n,o,i){if(!pe(t))return t;n=wn(n,t);var a=-1,u=n.length,d=u-1,c=t;while(c!=null&&++a<u){var p=Gt(n[a]),l=o;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(a!=d){var m=c[p];if(l=i?i(m,p,c):void 0,l===void 0)l=pe(m)?m:yn(n[a+1])?[]:{}}j(c,p,l),c=c[p]}return t}var yt=wf;function _f(t,n,o){var i=-1,a=n.length,u={};while(++i<a){var d=n[i],c=kn(t,d);if(o(c,d))yt(u,wn(d,t),c)}return u}var _t=_f;function Ef(t,n){var o=t.length;t.sort(n);while(o--)t[o]=t[o].value;return t}var Et=Ef;function xf(t,n){if(t!==n){var o=t!==void 0,i=t===null,a=t===t,u=ct(t),d=n!==void 0,c=n===null,p=n===n,l=ct(n);if(!c&&!l&&!u&&t>n||u&&d&&p&&!c&&!l||i&&d&&p||!o&&p||!a)return 1;if(!i&&!u&&!l&&t<n||l&&o&&a&&!i&&!u||c&&o&&a||!d&&a||!p)return-1}return 0}var xt=xf;function Of(t,n,o){var i=-1,a=t.criteria,u=n.criteria,d=a.length,c=o.length;while(++i<d){var p=xt(a[i],u[i]);if(p){if(i>=c)return p;var l=o[i];return p*(l=="desc"?-1:1)}}return t.index-n.index}var Lt=Of;function Lf(t,n,o){if(n.length)n=jt(n,function(u){if(H(u))return function(d){return kn(d,u.length===1?u[0]:u)};return u});else n=[at];var i=-1;n=jt(n,xn(We));var a=Lr(t,function(u,d,c){var p=jt(n,function(l){return l(u)});return{criteria:p,index:++i,value:u}});return Et(a,function(u,d){return Lt(u,d,o)})}var It=Lf;var If=_a("length"),St=If;var Pt="\\ud800-\\udfff",Sf="\\u0300-\\u036f",Nf="\\ufe20-\\ufe2f",Pf="\\u20d0-\\u20ff",kf=Sf+Nf+Pf,Tf="\\ufe0e\\ufe0f",Cf="["+Pt+"]",Cr="["+kf+"]",Ar="\\ud83c[\\udffb-\\udfff]",Af="(?:"+Cr+"|"+Ar+")",Rt="[^"+Pt+"]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Rf="\\u200d",Dt=Af+"?",Ft="["+Tf+"]?",Mf="(?:"+Rf+"(?:"+[Rt,Mt,Bt].join("|")+")"+Ft+Dt+")*",jf=Ft+Dt+Mf,Bf="(?:"+[Rt+Cr+"?",Cr,Mt,Bt,Cf].join("|")+")",Nt=RegExp(Ar+"(?="+Ar+")|"+Bf+jf,"g");function Df(t){var n=Nt.lastIndex=0;while(Nt.test(t))++n;return n}var Xt=Df;function Ff(t){return ve(t)?Xt(t):St(t)}var Ut=Ff;function Gf(t,n){return _t(t,n,function(o,i){return xa(t,i)})}var Yt=Gf;var Xf=me(function(t,n){return t==null?{}:Yt(t,n)}),Z=Xf;var{ceil:Uf,max:Vf}=Math;function Yf(t,n,o,i){var a=-1,u=Vf(Uf((n-t)/(o||1)),0),d=Array(u);while(u--)d[i?u:++a]=t,t+=o;return d}var zt=Yf;function zf(t){return function(n,o,i){if(i&&typeof i!="number"&&T(n,o,i))o=i=void 0;if(n=Y(n),o===void 0)o=n,n=0;else o=Y(o);return i=i===void 0?n<o?1:-1:Y(i),zt(n,o,i,t)}}var Jt=zf;var Wf=Jt(),N=Wf;var qf="[object Map]",Hf="[object Set]";function Kf(t){if(t==null)return 0;if(Oe(t))return bt(t)?Ut(t):t.length;var n=ut(t);if(n==qf||n==Hf)return t.size;return ur(t).length}var Zt=Kf;var Jf=vn(function(t,n){if(t==null)return[];var o=n.length;if(o>1&&T(t,n[0],n[1]))n=[];else if(o>2&&T(n[0],n[1],n[2]))n=[n[0]];return It(t,pr(n,1),[])}),C=Jf;var Zf=0;function $f(t){var n=++Zf;return ga(t)+n}var rr=$f;function Qf(t,n,o){var i=-1,a=t.length,u=n.length,d={};while(++i<a){var c=i<u?n[i]:void 0;o(d,t[i],c)}return d}var $t=Qf;function rs(t,n){return $t(t||[],n||[],j)}var Rr=rs;class Mr{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,n=t._prev;if(n!==t)return rn(n),n}enqueue(t){var n=this._sentinel;if(t._prev&&t._next)rn(t);t._next=n._next,n._next._prev=t,n._next=t,t._prev=n}toString(){var t=[],n=this._sentinel,o=n._prev;while(o!==n)t.push(JSON.stringify(o,es)),o=o._prev;return"["+t.join(", ")+"]"}}function rn(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function es(t,n){if(t!=="_next"&&t!=="_prev")return n}var ts=it(1);function en(t,n){if(t.nodeCount()<=1)return[];var o=os(t,n||ts),i=ns(o.graph,o.buckets,o.zeroIdx);return S(E(i,function(a){return t.outEdges(a.v,a.w)}))}function ns(t,n,o){var i=[],a=n[n.length-1],u=n[0],d;while(t.nodeCount()){while(d=u.dequeue())jr(t,n,o,d);while(d=a.dequeue())jr(t,n,o,d);if(t.nodeCount()){for(var c=n.length-2;c>0;--c)if(d=n[c].dequeue(),d){i=i.concat(jr(t,n,o,d,!0));break}}}return i}function jr(t,n,o,i,a){var u=a?[]:void 0;return f(t.inEdges(i.v),function(d){var c=t.edge(d),p=t.node(d.v);if(a)u.push({v:d.v,w:d.w});p.out-=c,Br(n,o,p)}),f(t.outEdges(i.v),function(d){var c=t.edge(d),p=d.w,l=t.node(p);l.in-=c,Br(n,o,l)}),t.removeNode(i.v),u}function os(t,n){var o=new Q,i=0,a=0;f(t.nodes(),function(c){o.setNode(c,{v:c,in:0,out:0})}),f(t.edges(),function(c){var p=o.edge(c.v,c.w)||0,l=n(c),m=p+l;o.setEdge(c.v,c.w,m),a=Math.max(a,o.node(c.v).out+=l),i=Math.max(i,o.node(c.w).in+=l)});var u=N(a+i+3).map(function(){return new Mr}),d=i+1;return f(o.nodes(),function(c){Br(u,d,o.node(c))}),{graph:o,buckets:u,zeroIdx:d}}function Br(t,n,o){if(!o.out)t[0].enqueue(o);else if(!o.in)t[t.length-1].enqueue(o);else t[o.out-o.in+n].enqueue(o)}function tn(t){var n=t.graph().acyclicer==="greedy"?en(t,o(t)):is(t);f(n,function(i){var a=t.edge(i);t.removeEdge(i),a.forwardName=i.name,a.reversed=!0,t.setEdge(i.w,i.v,a,rr("rev"))});function o(i){return function(a){return i.edge(a).weight}}}function is(t){var n=[],o={},i={};function a(u){if(Object.prototype.hasOwnProperty.call(i,u))return;i[u]=!0,o[u]=!0,f(t.outEdges(u),function(d){if(Object.prototype.hasOwnProperty.call(o,d.w))n.push(d);else a(d.w)}),delete o[u]}return f(t.nodes(),a),n}function nn(t){f(t.edges(),function(n){var o=t.edge(n);if(o.reversed){t.removeEdge(n);var i=o.forwardName;delete o.reversed,delete o.forwardName,t.setEdge(n.w,n.v,o,i)}})}function k(t,n,o,i){var a;do a=rr(i);while(t.hasNode(a));return o.dummy=n,t.setNode(a,o),a}function an(t){var n=new Q().setGraph(t.graph());return f(t.nodes(),function(o){n.setNode(o,t.node(o))}),f(t.edges(),function(o){var i=n.edge(o.v,o.w)||{weight:0,minlen:1},a=t.edge(o);n.setEdge(o.v,o.w,{weight:i.weight+a.weight,minlen:Math.max(i.minlen,a.minlen)})}),n}function Nr(t){var n=new Q({multigraph:t.isMultigraph()}).setGraph(t.graph());return f(t.nodes(),function(o){if(!t.children(o).length)n.setNode(o,t.node(o))}),f(t.edges(),function(o){n.setEdge(o,t.edge(o))}),n}function Dr(t,n){var{x:o,y:i}=t,a=n.x-o,u=n.y-i,d=t.width/2,c=t.height/2;if(!a&&!u)throw Error("Not possible to find intersection inside of the rectangle");var p,l;if(Math.abs(u)*d>Math.abs(a)*c){if(u<0)c=-c;p=c*a/u,l=c}else{if(a<0)d=-d;p=d,l=d*u/a}return{x:o+p,y:i+l}}function D(t){var n=E(N(Gr(t)+1),function(){return[]});return f(t.nodes(),function(o){var i=t.node(o),a=i.rank;if(!_e(a))n[a][i.order]=o}),n}function fn(t){var n=B(E(t.nodes(),function(o){return t.node(o).rank}));f(t.nodes(),function(o){var i=t.node(o);if(Ir(i,"rank"))i.rank-=n})}function sn(t){var n=B(E(t.nodes(),function(u){return t.node(u).rank})),o=[];f(t.nodes(),function(u){var d=t.node(u).rank-n;if(!o[d])o[d]=[];o[d].push(u)});var i=0,a=t.graph().nodeRankFactor;f(o,function(u,d){if(_e(u)&&d%a!==0)--i;else if(i)f(u,function(c){t.node(c).rank+=i})})}function Fr(t,n,o,i){var a={width:0,height:0};if(arguments.length>=4)a.rank=o,a.order=i;return k(t,"border",a,n)}function Gr(t){return I(E(t.nodes(),function(n){var o=t.node(n).rank;if(!_e(o))return o}))}function un(t,n){var o={lhs:[],rhs:[]};return f(t,function(i){if(n(i))o.lhs.push(i);else o.rhs.push(i)}),o}function dn(t,n){var o=Tr();try{return n()}finally{console.log(t+" time: "+(Tr()-o)+"ms")}}function cn(t,n){return n()}function ln(t){function n(o){var i=t.children(o),a=t.node(o);if(i.length)f(i,n);if(Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,d=a.maxRank+1;u<d;++u)pn(t,"borderLeft","_bl",o,a,u),pn(t,"borderRight","_br",o,a,u)}}f(t.children(),n)}function pn(t,n,o,i,a,u){var d={width:0,height:0,rank:u,borderType:n},c=a[n][u-1],p=k(t,"border",d,o);if(a[n][u]=p,t.setParent(p,i),c)t.setEdge(c,p,{weight:1})}function hn(t){var n=t.graph().rankdir.toLowerCase();if(n==="lr"||n==="rl")En(t)}function gn(t){var n=t.graph().rankdir.toLowerCase();if(n==="bt"||n==="rl")as(t);if(n==="lr"||n==="rl")fs(t),En(t)}function En(t){f(t.nodes(),function(n){mn(t.node(n))}),f(t.edges(),function(n){mn(t.edge(n))})}function mn(t){var n=t.width;t.width=t.height,t.height=n}function as(t){f(t.nodes(),function(n){Xr(t.node(n))}),f(t.edges(),function(n){var o=t.edge(n);if(f(o.points,Xr),Object.prototype.hasOwnProperty.call(o,"y"))Xr(o)})}function Xr(t){t.y=-t.y}function fs(t){f(t.nodes(),function(n){Ur(t.node(n))}),f(t.edges(),function(n){var o=t.edge(n);if(f(o.points,Ur),Object.prototype.hasOwnProperty.call(o,"x"))Ur(o)})}function Ur(t){var n=t.x;t.x=t.y,t.y=n}function On(t){t.graph().dummyChains=[],f(t.edges(),function(n){us(t,n)})}function us(t,n){var o=n.v,i=t.node(o).rank,a=n.w,u=t.node(a).rank,d=n.name,c=t.edge(n),p=c.labelRank;if(u===i+1)return;t.removeEdge(n);var l=void 0,m,h;for(h=0,++i;i<u;++h,++i){if(c.points=[],l={width:0,height:0,edgeLabel:c,edgeObj:n,rank:i},m=k(t,"edge",l,"_d"),i===p)l.width=c.width,l.height=c.height,l.dummy="edge-label",l.labelpos=c.labelpos;if(t.setEdge(o,m,{weight:c.weight},d),h===0)t.graph().dummyChains.push(m);o=m}t.setEdge(o,a,{weight:c.weight},d)}function Ln(t){f(t.graph().dummyChains,function(n){var o=t.node(n),i=o.edgeLabel,a;t.setEdge(o.edgeObj,i);while(o.dummy){if(a=t.successors(n)[0],t.removeNode(n),i.points.push({x:o.x,y:o.y}),o.dummy==="edge-label")i.x=o.x,i.y=o.y,i.width=o.width,i.height=o.height;n=a,o=t.node(n)}})}function ar(t){var n={};function o(i){var a=t.node(i);if(Object.prototype.hasOwnProperty.call(n,i))return a.rank;n[i]=!0;var u=B(E(t.outEdges(i),function(d){return o(d.w)-t.edge(d).minlen}));if(u===Number.POSITIVE_INFINITY||u===void 0||u===null)u=0;return a.rank=u}f(t.sources(),o)}function V(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}function Pr(t){var n=new Q({directed:!1}),o=t.nodes()[0],i=t.nodeCount();n.setNode(o,{});var a,u;while(ds(n,t)<i)a=cs(n,t),u=n.hasNode(a.v)?V(t,a):-V(t,a),ps(n,t,u);return n}function ds(t,n){function o(i){f(n.nodeEdges(i),function(a){var u=a.v,d=i===u?a.w:u;if(!t.hasNode(d)&&!V(n,a))t.setNode(d,{}),t.setEdge(i,d,{}),o(d)})}return f(t.nodes(),o),t.nodeCount()}function cs(t,n){return J(n.edges(),function(o){if(t.hasNode(o.v)!==t.hasNode(o.w))return V(n,o)})}function ps(t,n,o){f(t.nodes(),function(i){n.node(i).rank+=o})}var dh=it(1);var vh=it(1);Vr.CycleException=sr;function Vr(t){var n={},o={},i=[];function a(u){if(Object.prototype.hasOwnProperty.call(o,u))throw new sr;if(!Object.prototype.hasOwnProperty.call(n,u))o[u]=!0,n[u]=!0,f(t.predecessors(u),a),delete o[u],i.push(u)}if(f(t.sinks(),a),Zt(n)!==t.nodeCount())throw new sr;return i}function sr(){}sr.prototype=Error();function kr(t,n,o){if(!H(n))n=[n];var i=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],u={};return f(n,function(d){if(!t.hasNode(d))throw Error("Graph does not have node: "+d);Sn(t,d,o==="post",u,i,a)}),a}function Sn(t,n,o,i,a,u){if(!Object.prototype.hasOwnProperty.call(i,n)){if(i[n]=!0,!o)u.push(n);if(f(a(n),function(d){Sn(t,d,o,i,a,u)}),o)u.push(n)}}function Yr(t,n){return kr(t,n,"post")}function Wr(t,n){return kr(t,n,"pre")}X.initLowLimValues=Hr;X.initCutValues=qr;X.calcCutValue=Pn;X.leaveEdge=An;X.enterEdge=Rn;X.exchangeEdges=Mn;function X(t){t=an(t),ar(t);var n=Pr(t);Hr(n),qr(n,t);var o,i;while(o=An(n))i=Rn(n,t,o),Mn(n,t,o,i)}function qr(t,n){var o=Yr(t,t.nodes());o=o.slice(0,o.length-1),f(o,function(i){vs(t,n,i)})}function vs(t,n,o){var i=t.node(o),a=i.parent;t.edge(o,a).cutvalue=Pn(t,n,o)}function Pn(t,n,o){var i=t.node(o),a=i.parent,u=!0,d=n.edge(o,a),c=0;if(!d)u=!1,d=n.edge(a,o);return c=d.weight,f(n.nodeEdges(o),function(p){var l=p.v===o,m=l?p.w:p.v;if(m!==a){var h=l===u,g=n.edge(p).weight;if(c+=h?g:-g,ys(t,o,m)){var b=t.edge(o,m).cutvalue;c+=h?-b:b}}}),c}function Hr(t,n){if(arguments.length<2)n=t.nodes()[0];Tn(t,{},1,n)}function Tn(t,n,o,i,a){var u=o,d=t.node(i);if(n[i]=!0,f(t.neighbors(i),function(c){if(!Object.prototype.hasOwnProperty.call(n,c))o=Tn(t,n,o,c,i)}),d.low=u,d.lim=o++,a)d.parent=a;else delete d.parent;return o}function An(t){return or(t.edges(),function(n){return t.edge(n).cutvalue<0})}function Rn(t,n,o){var{v:i,w:a}=o;if(!n.hasEdge(i,a))i=o.w,a=o.v;var u=t.node(i),d=t.node(a),c=u,p=!1;if(u.lim>d.lim)c=d,p=!0;var l=Je(n.edges(),function(m){return p===Nn(t,t.node(m.v),c)&&p!==Nn(t,t.node(m.w),c)});return J(l,function(m){return V(n,m)})}function Mn(t,n,o,i){var{v:a,w:u}=o;t.removeEdge(a,u),t.setEdge(i.v,i.w,{}),Hr(t),qr(t,n),bs(t,n)}function bs(t,n){var o=or(t.nodes(),function(a){return!n.node(a).parent}),i=Wr(t,o);i=i.slice(1),f(i,function(a){var u=t.node(a).parent,d=n.edge(a,u),c=!1;if(!d)d=n.edge(u,a),c=!0;n.node(a).rank=n.node(u).rank+(c?d.minlen:-d.minlen)})}function ys(t,n,o){return t.hasEdge(n,o)}function Nn(t,n,o){return o.low<=n.lim&&n.lim<=o.lim}function Kr(t){switch(t.graph().ranker){case"network-simplex":jn(t);break;case"tight-tree":_s(t);break;case"longest-path":ws(t);break;default:jn(t)}}var ws=ar;function _s(t){ar(t),Pr(t)}function jn(t){X(t)}function Bn(t){var n=k(t,"root",{},"_root"),o=Es(t),i=I(dt(o))-1,a=2*i+1;t.graph().nestingRoot=n,f(t.edges(),function(d){t.edge(d).minlen*=a});var u=xs(t)+1;f(t.children(),function(d){Dn(t,n,a,u,i,o,d)}),t.graph().nodeRankFactor=a}function Dn(t,n,o,i,a,u,d){var c=t.children(d);if(!c.length){if(d!==n)t.setEdge(n,d,{weight:0,minlen:o});return}var p=Fr(t,"_bt"),l=Fr(t,"_bb"),m=t.node(d);if(t.setParent(p,d),m.borderTop=p,t.setParent(l,d),m.borderBottom=l,f(c,function(h){Dn(t,n,o,i,a,u,h);var g=t.node(h),b=g.borderTop?g.borderTop:h,w=g.borderBottom?g.borderBottom:h,y=g.borderTop?i:2*i,v=b!==w?1:a-u[d]+1;t.setEdge(p,b,{weight:y,minlen:v,nestingEdge:!0}),t.setEdge(w,l,{weight:y,minlen:v,nestingEdge:!0})}),!t.parent(d))t.setEdge(n,p,{weight:0,minlen:a+u[d]})}function Es(t){var n={};function o(i,a){var u=t.children(i);if(u&&u.length)f(u,function(d){o(d,a+1)});n[i]=a}return f(t.children(),function(i){o(i,1)}),n}function xs(t){return Ht(t.edges(),function(n,o){return n+t.edge(o).weight},0)}function Fn(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,f(t.edges(),function(o){var i=t.edge(o);if(i.nestingEdge)t.removeEdge(o)})}function Gn(t,n,o){var i={},a;f(o,function(u){var d=t.parent(u),c,p;while(d){if(c=t.parent(d),c)p=i[c],i[c]=d;else p=a,a=d;if(p&&p!==d){n.setEdge(p,d);return}d=c}})}function Xn(t,n,o){var i=Ls(t),a=new Q({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(u){return t.node(u)});return f(t.nodes(),function(u){var d=t.node(u),c=t.parent(u);if(d.rank===n||d.minRank<=n&&n<=d.maxRank){if(a.setNode(u),a.setParent(u,c||i),f(t[o](u),function(p){var l=p.v===u?p.w:p.v,m=a.edge(l,u),h=!_e(m)?m.weight:0;a.setEdge(l,u,{weight:t.edge(p).weight+h})}),Object.prototype.hasOwnProperty.call(d,"minRank"))a.setNode(u,{borderLeft:d.borderLeft[n],borderRight:d.borderRight[n]})}}),a}function Ls(t){var n;while(t.hasNode(n=rr("_root")));return n}function Un(t,n){var o=0;for(var i=1;i<n.length;++i)o+=Is(t,n[i-1],n[i]);return o}function Is(t,n,o){var i=Rr(o,E(o,function(l,m){return m})),a=S(E(n,function(l){return C(E(t.outEdges(l),function(m){return{pos:i[m.w],weight:t.edge(m).weight}}),"pos")})),u=1;while(u<o.length)u<<=1;var d=2*u-1;u-=1;var c=E(Array(d),function(){return 0}),p=0;return f(a.forEach(function(l){var m=l.pos+u;c[m]+=l.weight;var h=0;while(m>0){if(m%2)h+=c[m+1];m=m-1>>1,c[m]+=l.weight}p+=l.weight*h})),p}function Vn(t){var n={},o=Je(t.nodes(),function(c){return!t.children(c).length}),i=I(E(o,function(c){return t.node(c).rank})),a=E(N(i+1),function(){return[]});function u(c){if(Ir(n,c))return;n[c]=!0;var p=t.node(c);a[p.rank].push(c),f(t.successors(c),u)}var d=C(o,function(c){return t.node(c).rank});return f(d,u),a}function Yn(t,n){return E(n,function(o){var i=t.inEdges(o);if(!i.length)return{v:o};else{var a=Ht(i,function(u,d){var c=t.edge(d),p=t.node(d.v);return{sum:u.sum+c.weight*p.order,weight:u.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:a.sum/a.weight,weight:a.weight}}})}function zn(t,n){var o={};f(t,function(a,u){var d=o[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:u};if(!_e(a.barycenter))d.barycenter=a.barycenter,d.weight=a.weight}),f(n.edges(),function(a){var u=o[a.v],d=o[a.w];if(!_e(u)&&!_e(d))d.indegree++,u.out.push(o[a.w])});var i=Je(o,function(a){return!a.indegree});return Ss(i)}function Ss(t){var n=[];function o(u){return function(d){if(d.merged)return;if(_e(d.barycenter)||_e(u.barycenter)||d.barycenter>=u.barycenter)Ns(u,d)}}function i(u){return function(d){if(d.in.push(u),--d.indegree===0)t.push(d)}}while(t.length){var a=t.pop();n.push(a),f(a.in.reverse(),o(a)),f(a.out,i(a))}return E(Je(n,function(u){return!u.merged}),function(u){return Z(u,["vs","i","barycenter","weight"])})}function Ns(t,n){var o=0,i=0;if(t.weight)o+=t.barycenter*t.weight,i+=t.weight;if(n.weight)o+=n.barycenter*n.weight,i+=n.weight;t.vs=n.vs.concat(t.vs),t.barycenter=o/i,t.weight=i,t.i=Math.min(n.i,t.i),n.merged=!0}function qn(t,n){var o=un(t,function(m){return Object.prototype.hasOwnProperty.call(m,"barycenter")}),i=o.lhs,a=C(o.rhs,function(m){return-m.i}),u=[],d=0,c=0,p=0;i.sort(Ps(!!n)),p=Wn(u,a,p),f(i,function(m){p+=m.vs.length,u.push(m.vs),d+=m.barycenter*m.weight,c+=m.weight,p=Wn(u,a,p)});var l={vs:S(u)};if(c)l.barycenter=d/c,l.weight=c;return l}function Wn(t,n,o){var i;while(n.length&&(i=U(n)).i<=o)n.pop(),t.push(i.vs),o++;return o}function Ps(t){return function(n,o){if(n.barycenter<o.barycenter)return-1;else if(n.barycenter>o.barycenter)return 1;return!t?n.i-o.i:o.i-n.i}}function Jr(t,n,o,i){var a=t.children(n),u=t.node(n),d=u?u.borderLeft:void 0,c=u?u.borderRight:void 0,p={};if(d)a=Je(a,function(w){return w!==d&&w!==c});var l=Yn(t,a);f(l,function(w){if(t.children(w.v).length){var y=Jr(t,w.v,o,i);if(p[w.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter"))Ts(w,y)}});var m=zn(l,o);ks(m,p);var h=qn(m,i);if(d){if(h.vs=S([d,h.vs,c]),t.predecessors(d).length){var g=t.node(t.predecessors(d)[0]),b=t.node(t.predecessors(c)[0]);if(!Object.prototype.hasOwnProperty.call(h,"barycenter"))h.barycenter=0,h.weight=0;h.barycenter=(h.barycenter*h.weight+g.order+b.order)/(h.weight+2),h.weight+=2}}return h}function ks(t,n){f(t,function(o){o.vs=S(o.vs.map(function(i){if(n[i])return n[i].vs;return i}))})}function Ts(t,n){if(!_e(t.barycenter))t.barycenter=(t.barycenter*t.weight+n.barycenter*n.weight)/(t.weight+n.weight),t.weight+=n.weight;else t.barycenter=n.barycenter,t.weight=n.weight}function Zn(t){var n=Gr(t),o=Kn(t,N(1,n+1),"inEdges"),i=Kn(t,N(n-1,-1,-1),"outEdges"),a=Vn(t);Jn(t,a);var u=Number.POSITIVE_INFINITY,d;for(var c=0,p=0;p<4;++c,++p){Cs(c%2?o:i,c%4>=2),a=D(t);var l=Un(t,a);if(l<u)p=0,d=$e(a),u=l}Jn(t,d)}function Kn(t,n,o){return E(n,function(i){return Xn(t,i,o)})}function Cs(t,n){var o=new Q;f(t,function(i){var a=i.graph().root,u=Jr(i,a,o,n);f(u.vs,function(d,c){i.node(d).order=c}),Gn(i,o,u.vs)})}function Jn(t,n){f(n,function(o){f(o,function(i,a){t.node(i).order=a})})}function Qn(t){var n=Rs(t);f(t.graph().dummyChains,function(o){var i=t.node(o),a=i.edgeObj,u=As(t,n,a.v,a.w),{path:d,lca:c}=u,p=0,l=d[p],m=!0;while(o!==a.w){if(i=t.node(o),m){while((l=d[p])!==c&&t.node(l).maxRank<i.rank)p++;if(l===c)m=!1}if(!m){while(p<d.length-1&&t.node(l=d[p+1]).minRank<=i.rank)p++;l=d[p]}t.setParent(o,l),o=t.successors(o)[0]}})}function As(t,n,o,i){var a=[],u=[],d=Math.min(n[o].low,n[i].low),c=Math.max(n[o].lim,n[i].lim),p,l;p=o;do p=t.parent(p),a.push(p);while(p&&(n[p].low>d||c>n[p].lim));l=p,p=i;while((p=t.parent(p))!==l)u.push(p);return{path:a.concat(u.reverse()),lca:l}}function Rs(t){var n={},o=0;function i(a){var u=o;f(t.children(a),i),n[a]={low:u,lim:o++}}return f(t.children(),i),n}function Ms(t,n){var o={};function i(a,u){var d=0,c=0,p=a.length,l=U(u);return f(u,function(m,h){var g=Bs(t,m),b=g?t.node(g).order:p;if(g||m===l)f(u.slice(c,h+1),function(w){f(t.predecessors(w),function(y){var v=t.node(y),_=v.order;if((_<d||b<_)&&!(v.dummy&&t.node(w).dummy))ro(o,y,w)})}),c=h+1,d=b}),u}return Ht(n,i),o}function js(t,n){var o={};function i(u,d,c,p,l){var m;f(N(d,c),function(h){if(m=u[h],t.node(m).dummy)f(t.predecessors(m),function(g){var b=t.node(g);if(b.dummy&&(b.order<p||b.order>l))ro(o,g,m)})})}function a(u,d){var c=-1,p,l=0;return f(d,function(m,h){if(t.node(m).dummy==="border"){var g=t.predecessors(m);if(g.length)p=t.node(g[0]).order,i(d,l,h,c,p),l=h,c=p}i(d,l,d.length,p,u.length)}),d}return Ht(n,a),o}function Bs(t,n){if(t.node(n).dummy)return or(t.predecessors(n),function(o){return t.node(o).dummy})}function ro(t,n,o){if(n>o){var i=n;n=o,o=i}if(!Object.prototype.hasOwnProperty.call(t,n))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=t[n];Object.defineProperty(a,o,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Ds(t,n,o){if(n>o){var i=n;n=o,o=i}return!!t[n]&&Object.prototype.hasOwnProperty.call(t[n],o)}function Fs(t,n,o,i){var a={},u={},d={};return f(n,function(c){f(c,function(p,l){a[p]=p,u[p]=p,d[p]=l})}),f(n,function(c){var p=-1;f(c,function(l){var m=i(l);if(m.length){m=C(m,function(y){return d[y]});var h=(m.length-1)/2;for(var g=Math.floor(h),b=Math.ceil(h);g<=b;++g){var w=m[g];if(u[l]===l&&p<d[w]&&!Ds(o,l,w))u[w]=l,u[l]=a[l]=a[w],p=d[w]}}})}),{root:a,align:u}}function Gs(t,n,o,i,a){var u={},d=Xs(t,n,o,a),c=a?"borderLeft":"borderRight";function p(h,g){var b=d.nodes(),w=b.pop(),y={};while(w){if(y[w])h(w);else y[w]=!0,b.push(w),b=b.concat(g(w));w=b.pop()}}function l(h){u[h]=d.inEdges(h).reduce(function(g,b){return Math.max(g,u[b.v]+d.edge(b))},0)}function m(h){var g=d.outEdges(h).reduce(function(w,y){return Math.min(w,u[y.w]-d.edge(y))},Number.POSITIVE_INFINITY),b=t.node(h);if(g!==Number.POSITIVE_INFINITY&&b.borderType!==c)u[h]=Math.max(u[h],g)}return p(l,d.predecessors.bind(d)),p(m,d.successors.bind(d)),f(i,function(h){u[h]=u[o[h]]}),u}function Xs(t,n,o,i){var a=new Q,u=t.graph(),d=zs(u.nodesep,u.edgesep,i);return f(n,function(c){var p;f(c,function(l){var m=o[l];if(a.setNode(m),p){var h=o[p],g=a.edge(h,m);a.setEdge(h,m,Math.max(d(t,l,p),g||0))}p=l})}),a}function Us(t,n){return J(dt(n),function(o){var{NEGATIVE_INFINITY:i,POSITIVE_INFINITY:a}=Number;return lt(o,function(u,d){var c=Ws(t,d)/2;i=Math.max(u+c,i),a=Math.min(u-c,a)}),i-a})}function Vs(t,n){var o=dt(n),i=B(o),a=I(o);f(["u","d"],function(u){f(["l","r"],function(d){var c=u+d,p=t[c],l;if(p===n)return;var m=dt(p);if(l=d==="l"?i-B(m):a-I(m),l)t[c]=q(p,function(h){return h+l})})})}function Ys(t,n){return q(t.ul,function(o,i){if(n)return t[n.toLowerCase()][i];else{var a=C(E(t,i));return(a[1]+a[2])/2}})}function to(t){var n=D(t),o=ir(Ms(t,n),js(t,n)),i={},a;f(["u","d"],function(d){a=d==="u"?n:dt(n).reverse(),f(["l","r"],function(c){if(c==="r")a=E(a,function(h){return dt(h).reverse()});var p=(d==="u"?t.predecessors:t.successors).bind(t),l=Fs(t,a,o,p),m=Gs(t,a,l.root,l.align,c==="r");if(c==="r")m=q(m,function(h){return-h});i[d+c]=m})});var u=Us(t,i);return Vs(i,u),Ys(i,t.graph().align)}function zs(t,n,o){return function(i,a,u){var d=i.node(a),c=i.node(u),p=0,l;if(p+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":l=-d.width/2;break;case"r":l=d.width/2;break}if(l)p+=o?l:-l;if(l=0,p+=(d.dummy?n:t)/2,p+=(c.dummy?n:t)/2,p+=c.width/2,Object.prototype.hasOwnProperty.call(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":l=c.width/2;break;case"r":l=-c.width/2;break}if(l)p+=o?l:-l;return l=0,p}}function Ws(t,n){return t.node(n).width}function no(t){t=Nr(t),qs(t),mt(to(t),function(n,o){t.node(o).x=n})}function qs(t){var n=D(t),o=t.graph().ranksep,i=0;f(n,function(a){var u=I(E(a,function(d){return t.node(d).height}));f(a,function(d){t.node(d).y=i+u/2}),i+=u+o})}function Qr(t,n){var o=n&&n.debugTiming?dn:cn;o("layout",()=>{var i=o(" buildLayoutGraph",()=>ou(t));o(" runLayout",()=>Hs(i,o)),o(" updateInputGraph",()=>Ks(t,i))})}function Hs(t,n){n(" makeSpaceForEdgeLabels",()=>iu(t)),n(" removeSelfEdges",()=>mu(t)),n(" acyclic",()=>tn(t)),n(" nestingGraph.run",()=>Bn(t)),n(" rank",()=>Kr(Nr(t))),n(" injectEdgeLabelProxies",()=>au(t)),n(" removeEmptyRanks",()=>sn(t)),n(" nestingGraph.cleanup",()=>Fn(t)),n(" normalizeRanks",()=>fn(t)),n(" assignRankMinMax",()=>fu(t)),n(" removeEdgeLabelProxies",()=>su(t)),n(" normalize.run",()=>On(t)),n(" parentDummyChains",()=>Qn(t)),n(" addBorderSegments",()=>ln(t)),n(" order",()=>Zn(t)),n(" insertSelfEdges",()=>hu(t)),n(" adjustCoordinateSystem",()=>hn(t)),n(" position",()=>no(t)),n(" positionSelfEdges",()=>gu(t)),n(" removeBorderNodes",()=>lu(t)),n(" normalize.undo",()=>Ln(t)),n(" fixupEdgeLabelCoords",()=>cu(t)),n(" undoCoordinateSystem",()=>gn(t)),n(" translateGraph",()=>uu(t)),n(" assignNodeIntersects",()=>du(t)),n(" reversePoints",()=>pu(t)),n(" acyclic.undo",()=>nn(t))}function Ks(t,n){f(t.nodes(),function(o){var i=t.node(o),a=n.node(o);if(i){if(i.x=a.x,i.y=a.y,n.children(o).length)i.width=a.width,i.height=a.height}}),f(t.edges(),function(o){var i=t.edge(o),a=n.edge(o);if(i.points=a.points,Object.prototype.hasOwnProperty.call(a,"x"))i.x=a.x,i.y=a.y}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}var Js=["nodesep","edgesep","ranksep","marginx","marginy"],Zs={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},$s=["acyclicer","ranker","rankdir","align"],Qs=["width","height"],ru={width:0,height:0},eu=["minlen","weight","width","height","labeloffset"],tu={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},nu=["labelpos"];function ou(t){var n=new Q({multigraph:!0,compound:!0}),o=$r(t.graph());return n.setGraph(ir({},Zs,Zr(o,Js),Z(o,$s))),f(t.nodes(),function(i){var a=$r(t.node(i));n.setNode(i,et(Zr(a,Qs),ru)),n.setParent(i,t.parent(i))}),f(t.edges(),function(i){var a=$r(t.edge(i));n.setEdge(i,ir({},tu,Zr(a,eu),Z(a,nu)))}),n}function iu(t){var n=t.graph();n.ranksep/=2,f(t.edges(),function(o){var i=t.edge(o);if(i.minlen*=2,i.labelpos.toLowerCase()!=="c")if(n.rankdir==="TB"||n.rankdir==="BT")i.width+=i.labeloffset;else i.height+=i.labeloffset})}function au(t){f(t.edges(),function(n){var o=t.edge(n);if(o.width&&o.height){var i=t.node(n.v),a=t.node(n.w),u={rank:(a.rank-i.rank)/2+i.rank,e:n};k(t,"edge-proxy",u,"_ep")}})}function fu(t){var n=0;f(t.nodes(),function(o){var i=t.node(o);if(i.borderTop)i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,n=I(n,i.maxRank)}),t.graph().maxRank=n}function su(t){f(t.nodes(),function(n){var o=t.node(n);if(o.dummy==="edge-proxy")t.edge(o.e).labelRank=o.rank,t.removeNode(n)})}function uu(t){var n=Number.POSITIVE_INFINITY,o=0,i=Number.POSITIVE_INFINITY,a=0,u=t.graph(),d=u.marginx||0,c=u.marginy||0;function p(l){var{x:m,y:h,width:g,height:b}=l;n=Math.min(n,m-g/2),o=Math.max(o,m+g/2),i=Math.min(i,h-b/2),a=Math.max(a,h+b/2)}f(t.nodes(),function(l){p(t.node(l))}),f(t.edges(),function(l){var m=t.edge(l);if(Object.prototype.hasOwnProperty.call(m,"x"))p(m)}),n-=d,i-=c,f(t.nodes(),function(l){var m=t.node(l);m.x-=n,m.y-=i}),f(t.edges(),function(l){var m=t.edge(l);if(f(m.points,function(h){h.x-=n,h.y-=i}),Object.prototype.hasOwnProperty.call(m,"x"))m.x-=n;if(Object.prototype.hasOwnProperty.call(m,"y"))m.y-=i}),u.width=o-n+d,u.height=a-i+c}function du(t){f(t.edges(),function(n){var o=t.edge(n),i=t.node(n.v),a=t.node(n.w),u,d;if(!o.points)o.points=[],u=a,d=i;else u=o.points[0],d=o.points[o.points.length-1];o.points.unshift(Dr(i,u)),o.points.push(Dr(a,d))})}function cu(t){f(t.edges(),function(n){var o=t.edge(n);if(Object.prototype.hasOwnProperty.call(o,"x")){if(o.labelpos==="l"||o.labelpos==="r")o.width-=o.labeloffset;switch(o.labelpos){case"l":o.x-=o.width/2+o.labeloffset;break;case"r":o.x+=o.width/2+o.labeloffset;break}}})}function pu(t){f(t.edges(),function(n){var o=t.edge(n);if(o.reversed)o.points.reverse()})}function lu(t){f(t.nodes(),function(n){if(t.children(n).length){var o=t.node(n),i=t.node(o.borderTop),a=t.node(o.borderBottom),u=t.node(U(o.borderLeft)),d=t.node(U(o.borderRight));o.width=Math.abs(d.x-u.x),o.height=Math.abs(a.y-i.y),o.x=u.x+o.width/2,o.y=i.y+o.height/2}}),f(t.nodes(),function(n){if(t.node(n).dummy==="border")t.removeNode(n)})}function mu(t){f(t.edges(),function(n){if(n.v===n.w){var o=t.node(n.v);if(!o.selfEdges)o.selfEdges=[];o.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}})}function hu(t){var n=D(t);f(n,function(o){var i=0;f(o,function(a,u){var d=t.node(a);d.order=u+i,f(d.selfEdges,function(c){k(t,"selfedge",{width:c.label.width,height:c.label.height,rank:d.rank,order:u+ ++i,e:c.e,label:c.label},"_se")}),delete d.selfEdges})})}function gu(t){f(t.nodes(),function(n){var o=t.node(n);if(o.dummy==="selfedge"){var i=t.node(o.e.v),a=i.x+i.width/2,u=i.y,d=o.x-a,c=i.height/2;t.setEdge(o.e,o.label),t.removeNode(n),o.label.points=[{x:a+2*d/3,y:u-c},{x:a+5*d/6,y:u-c},{x:a+d,y:u},{x:a+5*d/6,y:u+c},{x:a+2*d/3,y:u+c}],o.label.x=o.x,o.label.y=o.y}})}function Zr(t,n){return q(Z(t,n),Number)}function $r(t){var n={};return f(t,function(o,i){n[i.toLowerCase()]=o}),n}var oo=e((t,n,o)=>Math.max(n,Math.min(o,t)),"clamp"),io=e((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),vu=e((t)=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),bu=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],yu=e((t,n,o,i,a)=>{let u=[],d=new Set;if(o.forEach(({start:m,end:h})=>{if(m!==i)d.add(m);if(h!==i)d.add(h)}),d.forEach((m)=>{let h=t.node(m);if(typeof h?.x==="number"&&typeof h?.y==="number")u.push(h)}),u.length===0)o.forEach(({edge:m})=>{(m.points??[]).forEach((h)=>{if(typeof h?.x==="number"&&typeof h?.y==="number")u.push(h)})});if(u.length===0)return io(a);let c=u.reduce((m,h)=>({x:m.x+h.x/u.length,y:m.y+h.y/u.length}),{x:0,y:0}),p=c.x-n.x,l=c.y-n.y;if(Math.abs(p)>Math.abs(l))return p>0?"right":"left";if(Math.abs(l)>0)return l>0?"bottom":"top";return io(a)},"getSelfLoopSide"),wu=e((t,n="top",o=0,i=0)=>{let a=t.x,u=t.y-o,d=t.width/2,c=t.height/2,p=Math.max(36,Math.min(100,t.width*0.8)),l=oo(Math.max(i,t.width*0.35),36,p),m=oo(Math.min(t.width,t.height)*0.45,24,48);switch(n){case"bottom":{let h=u+c;return[{x:a-l/2,y:h},{x:a-l/2,y:h+m},{x:a+l/2,y:h+m},{x:a+l/2,y:h}]}case"right":{let h=a+d;return[{x:h,y:u-l/2},{x:h+m,y:u-l/2},{x:h+m,y:u+l/2},{x:h,y:u+l/2}]}case"left":{let h=a-d;return[{x:h,y:u-l/2},{x:h-m,y:u-l/2},{x:h-m,y:u+l/2},{x:h,y:u+l/2}]}case"top":default:{let h=u-c;return[{x:a-l/2,y:h},{x:a-l/2,y:h-m},{x:a+l/2,y:h-m},{x:a+l/2,y:h}]}}},"getSelfLoopPoints"),_u=e((t,n,o="top",i=0,a={})=>{let d=t.x,c=t.y-i,p=a.width??0,l=a.height??0;switch(o){case"bottom":return{x:d,y:Math.max(...n.map((m)=>m.y))+l/2+4};case"right":return{x:Math.max(...n.map((m)=>m.x))+p/2+4,y:c};case"left":return{x:Math.min(...n.map((m)=>m.x))-p/2-4,y:c};case"top":default:return{x:d,y:Math.min(...n.map((m)=>m.y))-l/2-4}}},"getSelfLoopLabelPosition"),Ki=e((t,n=0,{mergeSelfLoops:o=!0}={})=>{let i=new Map,a=[],u=t.graph()?.rankdir;return t.edges().forEach((d)=>{let c=t.edge(d);if(o&&c.selfLoop){let p=c.selfLoop.id;if(!i.has(p))i.set(p,[]);i.get(p).push({edge:c,start:d.v,end:d.w})}else a.push({edge:c,start:d.v,end:d.w})}),i.forEach((d)=>{if(d.length!==3){d.forEach((_)=>a.push(_));return}d.sort((_,A)=>_.edge.selfLoop.order-A.edge.selfLoop.order);let[c,p,l]=d,m=c.edge.originalEdge??p.edge.originalEdge??l.edge.originalEdge??p.edge,h=t.node(m.start);if(!h){d.forEach((_)=>a.push(_));return}let g={width:p.edge.width,height:p.edge.height},b=yu(t,h,d,m.start,u),w=wu(h,b,n,g.width??0),y=_u(h,w,b,n,g),v={...p.edge,...m,id:m.id,points:w,start:m.start,end:m.end,x:y.x,y:y.y,width:g.width,height:g.height,labelStyle:p.edge.labelStyle,fromCluster:c.edge.fromCluster??p.edge.fromCluster??l.edge.fromCluster,toCluster:c.edge.toCluster??p.edge.toCluster??l.edge.toCluster};delete v.selfLoop,delete v.originalEdge,a.push({edge:v,start:v.start,end:v.end})}),a},"getEdgesToRender"),fo=e(async({element:t,graph:n,diagramType:o,id:i,parentCluster:a,siteConfig:u})=>{let d=n.graph().rankdir;r.trace("Dir in recursive render - dir:",d);let{clusters:c,edgePaths:p,edgeLabels:l,nodes:m,rootGroups:h}=sa(t,{edgePathsClass:"edgePaths"});if(!n.nodes())r.info("No nodes found for",n);else r.info("Recursive render XXX",n.nodes());if(n.edges().length>0)r.info("Recursive edges",n.edge(n.edges()[0]));let g=vu(o);await Promise.all(n.nodes().map(async function(y){let v=n.node(y);if(a!==void 0){let _=JSON.parse(JSON.stringify(a.clusterData));if(r.trace(`Setting data for parent cluster XXX
|
|
2
|
+
Node.id = `,y,`
|
|
3
|
+
data=`,_.height,`
|
|
4
|
+
Parent cluster`,a.height),n.setNode(a.id,_),!n.parent(y))r.trace("Setting parent",y,a.id),n.setParent(y,a.id,_)}if(r.info("(Insert) Node XXX"+y+": "+JSON.stringify(n.node(y))),v?.clusterNode){r.info("Cluster identified XBX",y,v.width,n.node(y));let{ranksep:_,nodesep:A}=n.graph();v.graph.setGraph({...v.graph.graph(),ranksep:_+25,nodesep:A});let re=await Lu({element:m,graph:v.graph,diagramType:o,id:i,parentCluster:n.node(y),siteConfig:u}),ee=re.elem;R(v,ee),v.diff=re.diff||0,r.info("New compound node after recursive render XAX",y,"width",v.width,"height",v.height),ho(ee,v)}else if(n.children(y).length>0)r.trace("Cluster - the non recursive path XBX",y,v.id,v,v.width,"Graph:",n),r.trace($n(v.id,n)),G.set(v.id,{id:$n(v.id,n),node:v});else r.trace("Node - the non recursive path XAX",y,m,n.node(y),d),await la(m,n.node(y),{config:u,dir:d})})),await e(async()=>{let y=n.edges().map(async function(v){let _=n.edge(v.v,v.w,v.name);if(r.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),r.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(n.edge(v))),r.info("Fix",G,"ids:",v.v,v.w,"Translating: ",G.get(v.v),G.get(v.w)),g&&_.selfLoop){if(_.selfLoop.order!==1)return;let A={..._.originalEdge,..._,id:_.selfLoop.id,startLabelLeft:_.originalEdge?.startLabelLeft??_.startLabelLeft,startLabelRight:_.originalEdge?.startLabelRight??_.startLabelRight,endLabelLeft:_.originalEdge?.endLabelLeft??_.endLabelLeft,endLabelRight:_.originalEdge?.endLabelRight??_.endLabelRight};await Tt(l,A),_.width=A.width,_.height=A.height,_.labelStyle=A.labelStyle;return}await Tt(l,_)});await Promise.all(y)},"processEdges")();let{subGraphTitleTotalMargin:w}=Ct(u);return{elem:h,graph:n,groups:{clusters:c,edgePaths:p,edgeLabels:l,nodes:m,rootGroups:h},diagramType:o,id:i,mergeSelfLoops:g,subGraphTitleTotalMargin:w}},"measureDagreGraph"),so=e((t)=>{r.info("############################################# XXX"),r.info("### Layout ### XXX"),r.info("############################################# XXX"),Qr(t)},"runDagreGraphLayout"),Eu=e((t,n,o)=>{let i=t.node(n);if(!i)return;let a={...i};if(i?.clusterNode)a.y=(i.y??0)+o;else if(t.children(n).length>0)a.height=(i.height??0)+o;else a.y=(i.y??0)+o/2;return a},"normalizeDagreNode"),ao=e((t,n)=>{bu.forEach((o)=>{if(n[o]!==void 0)t[o]=n[o]})},"applyDagreNodeLayout"),xu=e((t,n,o,i)=>({...t,start:t.start??n,end:t.end??o,points:(t.points??[]).map((a)=>({...a,y:typeof a.y==="number"?a.y+i:a.y}))}),"normalizeDagreEdge"),Co=e((t,n)=>{let{graph:o,mergeSelfLoops:i,subGraphTitleTotalMargin:a=0}=n,u=new Map(t.nodes.map((c)=>[c.id,c]));ca(o).forEach((c)=>{let p=Eu(o,c,a);if(!p)return;ao(o.node(c),p);let l=u.get(c);if(l)ao(l,p)});let d=a/2;return t.edges=Ki(o,d,{mergeSelfLoops:i}).map(({edge:c,start:p,end:l})=>xu(c,p,l,d)),t},"applyDagreLayoutResult"),Ou=e(async({elem:t,graph:n,groups:{clusters:o,edgePaths:i},diagramType:a,id:u,mergeSelfLoops:d,subGraphTitleTotalMargin:c})=>{let p=0;await Promise.all(ca(n).map(async function(h){let g=n.node(h);if(r.info("Position XBX => "+h+": ("+g.x,","+g.y,") width: ",g.width," height: ",g.height),g?.clusterNode)g.y+=c,r.info("A tainted cluster node XBX1",h,g.id,g.width,g.height,g.x,g.y,n.parent(h)),G.get(g.id).node=g,ht(g);else if(n.children(h).length>0){r.info("A pure cluster node XBX1",h,g.id,g.x,g.y,g.width,g.height,n.parent(h)),g.height+=c,n.node(g.parentId);let b=g?.padding/2||0,w=g?.labelBBox?.height||0,y=w-b||0;r.debug("OffsetY",y,"labelHeight",w,"halfPadding",b),await Kt(o,g),G.get(g.id).node=g}else{let b=n.node(g.parentId);g.y+=c/2,r.info("A regular node XBX1 - using the padding",g.id,"parent",g.parentId,g.width,g.height,g.x,g.y,"offsetY",g.offsetY,"parent",b,b?.offsetY,g),ht(g)}}));let l=c/2;return Ki(n,l,{mergeSelfLoops:d}).forEach(function({edge:h,start:g,end:b}){r.info("Edge "+g+" -> "+b+": "+JSON.stringify(h),h),h.points.forEach((_)=>_.y+=l);let w=n.node(g),y=n.node(b),v=Qt(i,h,G,a,w,y,u);Hn(h,v)}),n.nodes().forEach(function(h){let g=n.node(h);if(r.info(h,g.type,g.diff),g.isGroup)p=g.diff}),r.warn("Returning from recursive render XAX",t,p),{elem:t,diff:p}},"paintDagreLayoutCore"),Lu=e(async(t)=>{let n=await fo(t);return so(n.graph),await Ou(n)},"renderDagreSubgraph"),Qi=e((t)=>{let n=new Q({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach((o)=>{if(n.setNode(o.id,{...o}),o.parentId)n.setParent(o.id,o.parentId)}),r.debug("Edges:",t.edges),t.edges.forEach((o)=>{if(o.start===o.end){let i=o.start,a=i+"---"+i+"---1",u=i+"---"+i+"---2",d=n.node(i);n.setNode(a,{domId:a,id:a,parentId:d.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(a,d.parentId),n.setNode(u,{domId:u,id:u,parentId:d.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(u,d.parentId);let c=structuredClone(o),p=structuredClone(o),l=structuredClone(o),m=structuredClone(o);if(p.originalEdge=c,p.selfLoop={id:c.id,order:0},l.originalEdge=c,l.selfLoop={id:c.id,order:1},m.originalEdge=c,m.selfLoop={id:c.id,order:2},p.label="",p.arrowTypeEnd="none",p.endLabelLeft="",p.endLabelRight="",p.startLabelLeft="",p.id=i+"-cyclic-special-1",l.startLabelRight="",l.startLabelLeft="",l.endLabelLeft="",l.endLabelRight="",l.arrowTypeStart="none",l.arrowTypeEnd="none",l.id=i+"-cyclic-special-mid",m.label="",m.startLabelRight="",m.startLabelLeft="",m.arrowTypeStart="none",d.isGroup)p.fromCluster=i,m.toCluster=i;m.id=i+"-cyclic-special-2",m.arrowTypeStart="none",n.setEdge(i,a,p,i+"-cyclic-special-0"),n.setEdge(a,u,l,i+"-cyclic-special-1"),n.setEdge(u,i,m,i+"-cyclic-special-2")}else n.setEdge(o.start,o.end,{...o},o.id)}),eo(n),{graph:n}},"prepareLayoutForDagre"),So=e(async(t,{element:n,preparedLayout:o})=>{let i=o??Qi(t),a=s(),u=await fo({element:n,graph:i.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return i.measuredLayout=u,u},"measureDagreLayout"),To=e((t,n)=>{let o=n.preparedLayout?.measuredLayout;if(!o)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return so(o.graph),Co(t,o),o},"runDagreLayoutCore"),Iu=e((t,{measure:n})=>ca(n.graph).map((o)=>n.graph.node(o)).filter(Boolean),"getDagrePaintNodes"),Su=e((t,n,{measure:o})=>t?o.graph.node(t):void 0,"getDagreEdgeNode"),Ji=lr({prepareLayout:Qi,measureLayout:So,runLayoutCore:To,paintOptions:{clusterDb:G,getNodes:Iu,getEdgeNode:Su,skipNode:e((t,{measure:n})=>!n.graph.hasNode(t.id),"skipNode"),isCluster:e((t,{measure:n})=>n.graph.hasNode(t.id)&&(n.graph.children(t.id)??[]).length>0,"isCluster")}});export{Ki,Co,Qi,So,To,Ji};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h,o,a,t,n,_,Z,te,rt,vt}from"./chunk-vt40e1kp.js";import{gn}from"./chunk-f26smjjf.js";var I="/api/plugins/prompt-optimizer";function j({connection:u,onClose:x}){let{Button:g,ModelSelector:O,Select:D,SettingGroup:S,SettingRow:b,cn:C}=_(),[m,z]=a(null),[s,p]=a(null),[L,B]=a({models:[]}),[d,M]=a(!0),[N,R]=a(!1),[l,w]=a(!1),[f,r]=a(null),y=h(async(i=!1)=>{if(i)R(!0);else M(!0);r(null);try{let[e,c]=await Promise.all([u.request(`${I}/settings`),u.request("/api/models")]);z(e),p(e),B(c)}catch(e){r({type:"error",text:e instanceof Error?e.message:"读取优化插件设置失败"})}finally{M(!1),R(!1)}},[u]);o(()=>{y()},[y]);let P=s&&m?s.primaryModel?.providerID!==m.primaryModel?.providerID||s.primaryModel?.modelID!==m.primaryModel?.modelID||s.maxClarificationRounds!==m.maxClarificationRounds:!1,E=async(i)=>{if(i?.preventDefault(),!s||l||d)return;w(!0),r(null);try{let e=await u.request(`${I}/settings`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({schemaVersion:1,revision:s.revision,primaryModel:s.primaryModel,maxClarificationRounds:s.maxClarificationRounds})});z(e),p(e),r({type:"success",text:"设置已保存"})}catch(e){r({type:"error",text:e instanceof Error?e.message:"保存设置失败"})}finally{w(!1)}},T=()=>{p(m),r(null)},v=s?.primaryModel??null,q=v?`${v.providerID}/${v.modelID}`:"";return n("form",{onSubmit:E,className:"min-w-0 space-y-6",children:[t(S,{title:"模型策略",description:"提示词优化专用的改写模型配置",action:n(g,{type:"button",size:"sm",variant:"ghost",disabled:d||N||l,onClick:()=>void y(!0),className:"h-8 px-2.5 text-xs text-dim hover:text-ink",children:[t(te,{className:C("mr-1.5 size-3.5",N&&"animate-spin")}),"刷新模型"]}),children:t(b,{vertical:!0,title:"默认优化模型",description:"优化插件必须显式绑定模型才能发起改写;未选定模型时将拒绝调用,绝不隐式自动回退。",children:t("div",{className:"pt-1",children:t(O,{variant:"field",models:L,value:q,onChange:(i)=>{let e=i.indexOf("/"),c=e<0?"":i.slice(0,e),G=e<0?i:i.slice(e+1);p((k)=>k?{...k,primaryModel:{providerID:c,modelID:G}}:null),r(null)}})})})}),t(S,{title:"交互模式",description:"控制生成过程中的意图确认与澄清策略",children:t(b,{title:"澄清提问轮数",description:"当草稿存在关键歧义无法从上下文判定时,允许模型主动提问的最大轮数",children:t("div",{className:"w-48",children:t(D,{value:String(s?.maxClarificationRounds??1),disabled:d||l,onValueChange:(i)=>{let e=i==="2"?2:1;p((c)=>c?{...c,maxClarificationRounds:e}:null),r(null)},groups:[{options:[{value:"1",label:"单轮澄清(推荐)",description:"提问一次后直接输出改写结果"},{value:"2",label:"最多两轮澄清",description:"首轮澄清后可针对残留疑问追问一次"}]}]})})})}),n("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-3 px-0.5",children:[t("div",{className:"min-w-0 flex-1",children:f&&n("div",{className:C("flex items-center gap-2 text-xs",f.type==="success"?"text-success":"text-danger"),children:[f.type==="success"?t(gn,{className:"size-3.5 shrink-0"}):t(Z,{className:"size-3.5 shrink-0"}),t("span",{children:f.text})]})}),n("div",{className:"flex items-center gap-2",children:[P&&n(g,{type:"button",variant:"ghost",size:"sm",disabled:d||l,onClick:T,children:[t(rt,{className:"mr-1.5 size-3.5"}),"重置"]}),n(g,{type:"submit",variant:"primary",size:"sm",disabled:d||l||!P,children:[t(vt,{className:"mr-1.5 size-3.5"}),l?"保存中…":"保存"]}),x&&t(g,{type:"button",variant:"secondary",size:"sm",onClick:x,children:"关闭"})]})]})]})}export{j as PromptOptimizerSettingsSection};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=Object.freeze(JSON.parse('{"displayName":"Diff","name":"diff","patterns":[{"captures":{"1":{"name":"punctuation.definition.separator.diff"}},"match":"^((\\\\*{15})|(={67})|(-{3}))$\\\\n?","name":"meta.separator.diff"},{"match":"^\\\\d+(,\\\\d+)*([acd])\\\\d+(,\\\\d+)*$\\\\n?","name":"meta.diff.range.normal"},{"captures":{"1":{"name":"punctuation.definition.range.diff"},"2":{"name":"meta.toc-list.line-number.diff"},"3":{"name":"punctuation.definition.range.diff"}},"match":"^(@@)\\\\s*(.+?)\\\\s*(@@)($\\\\n?)?","name":"meta.diff.range.unified"},{"captures":{"3":{"name":"punctuation.definition.range.diff"},"4":{"name":"punctuation.definition.range.diff"},"6":{"name":"punctuation.definition.range.diff"},"7":{"name":"punctuation.definition.range.diff"}},"match":"^(((-{3}) .+ (-{4}))|((\\\\*{3}) .+ (\\\\*{4})))$\\\\n?","name":"meta.diff.range.context"},{"match":"^diff --git a/.*$\\\\n?","name":"meta.diff.header.git"},{"match":"^diff (-|\\\\S+\\\\s+\\\\S+).*$\\\\n?","name":"meta.diff.header.command"},{"captures":{"4":{"name":"punctuation.definition.from-file.diff"},"6":{"name":"punctuation.definition.from-file.diff"},"7":{"name":"punctuation.definition.from-file.diff"}},"match":"^((((-{3}) .+)|((\\\\*{3}) .+))$\\\\n?|(={4}) .+(?= - ))","name":"meta.diff.header.from-file"},{"captures":{"2":{"name":"punctuation.definition.to-file.diff"},"3":{"name":"punctuation.definition.to-file.diff"},"4":{"name":"punctuation.definition.to-file.diff"}},"match":"(^(\\\\+{3}) .+$\\\\n?| (-) .* (={4})$\\\\n?)","name":"meta.diff.header.to-file"},{"captures":{"3":{"name":"punctuation.definition.inserted.diff"},"6":{"name":"punctuation.definition.inserted.diff"}},"match":"^(((>)( .*)?)|((\\\\+).*))$\\\\n?","name":"markup.inserted.diff"},{"captures":{"1":{"name":"punctuation.definition.changed.diff"}},"match":"^(!).*$\\\\n?","name":"markup.changed.diff"},{"captures":{"3":{"name":"punctuation.definition.deleted.diff"},"6":{"name":"punctuation.definition.deleted.diff"}},"match":"^(((<)( .*)?)|((-).*))$\\\\n?","name":"markup.deleted.diff"},{"begin":"^(#)","captures":{"1":{"name":"punctuation.definition.comment.diff"}},"end":"\\\\n","name":"comment.line.number-sign.diff"},{"match":"^index [0-9a-f]{7,40}\\\\.\\\\.[0-9a-f]{7,40}.*$\\\\n?","name":"meta.diff.index.git"},{"captures":{"1":{"name":"punctuation.separator.key-value.diff"},"2":{"name":"meta.toc-list.file-name.diff"}},"match":"^Index(:) (.+)$\\\\n?","name":"meta.diff.index"},{"match":"^Only in .*: .*$\\\\n?","name":"meta.diff.only-in"}],"scopeName":"source.diff"}')),e=[n];export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.freeze(JSON.parse('{"displayName":"Python","name":"python","patterns":[{"include":"#statement"},{"include":"#expression"}],"repository":{"annotated-parameter":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.annotation.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"}]},"assignment-operator":{"match":"<<=|>>=|//=|\\\\*\\\\*=|\\\\+=|-=|/=|@=|\\\\*=|%=|~=|\\\\^=|&=|\\\\|=|=(?!=)","name":"keyword.operator.assignment.python"},"backticks":{"begin":"`","end":"`|(?<!\\\\\\\\)(\\\\n)","name":"invalid.deprecated.backtick.python","patterns":[{"include":"#expression"}]},"builtin-callables":{"patterns":[{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#builtin-exceptions"},{"include":"#builtin-functions"},{"include":"#builtin-types"}]},"builtin-exceptions":{"match":"(?<!\\\\.)\\\\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|Windows|ZeroDivision|ModuleNotFound)Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|KeyboardInterrupt|GeneratorExit|(Base)?Exception)\\\\b","name":"support.type.exception.python"},"builtin-functions":{"patterns":[{"match":"(?<!\\\\.)\\\\b(__import__|abs|aiter|all|any|anext|ascii|bin|breakpoint|callable|chr|compile|copyright|credits|delattr|dir|divmod|enumerate|eval|exec|exit|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|license|locals|map|max|memoryview|min|next|oct|open|ord|pow|print|quit|range|reload|repr|reversed|round|setattr|sorted|sum|vars|zip)\\\\b","name":"support.function.builtin.python"},{"match":"(?<!\\\\.)\\\\b(file|reduce|intern|raw_input|unicode|cmp|basestring|execfile|long|xrange)\\\\b","name":"variable.legacy.builtin.python"}]},"builtin-possible-callables":{"patterns":[{"include":"#builtin-callables"},{"include":"#magic-names"}]},"builtin-types":{"match":"(?<!\\\\.)\\\\b(bool|bytearray|bytes|classmethod|complex|dict|float|frozenset|int|list|object|property|set|slice|staticmethod|str|tuple|type|super)\\\\b","name":"support.type.python"},"call-wrapper-inheritance":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#inheritance-name"},{"include":"#function-arguments"}]},"class-declaration":{"patterns":[{"begin":"\\\\s*(class)\\\\s+(?=[_[:alpha:]]\\\\w*\\\\s*([(:]))","beginCaptures":{"1":{"name":"storage.type.class.python"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.section.class.begin.python"}},"name":"meta.class.python","patterns":[{"include":"#class-name"},{"include":"#class-inheritance"}]}]},"class-inheritance":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.inheritance.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.inheritance.end.python"}},"name":"meta.class.inheritance.python","patterns":[{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.arguments.python"},{"match":",","name":"punctuation.separator.inheritance.python"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"match":"\\\\bmetaclass\\\\b","name":"support.type.metaclass.python"},{"include":"#illegal-names"},{"include":"#class-kwarg"},{"include":"#call-wrapper-inheritance"},{"include":"#expression-base"},{"include":"#member-access-class"},{"include":"#inheritance-identifier"}]},"class-kwarg":{"captures":{"1":{"name":"entity.other.inherited-class.python variable.parameter.class.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},"class-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.type.class.python"}]},"codetags":{"captures":{"1":{"name":"keyword.codetag.notation.python"}},"match":"\\\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\\\b"},"comments":{"patterns":[{"begin":"#\\\\s*(type:)\\\\s*+(?!$|#)","beginCaptures":{"0":{"name":"meta.typehint.comment.python"},"1":{"name":"comment.typehint.directive.notation.python"}},"contentName":"meta.typehint.comment.python","end":"$|(?=#)","name":"comment.line.number-sign.python","patterns":[{"match":"\\\\Gignore(?=\\\\s*(?:$|#))","name":"comment.typehint.ignore.notation.python"},{"match":"(?<!\\\\.)\\\\b(bool|bytes|float|int|object|str|List|Dict|Iterable|Sequence|Set|FrozenSet|Callable|Union|Tuple|Any|None)\\\\b","name":"comment.typehint.type.notation.python"},{"match":"([]()*,.=\\\\[]|(->))","name":"comment.typehint.punctuation.notation.python"},{"match":"([_[:alpha:]]\\\\w*)","name":"comment.typehint.variable.notation.python"}]},{"include":"#comments-base"}]},"comments-base":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"$()","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-double-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?=\\"\\"\\"))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-single-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?=\'\'\'))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"curly-braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.python"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dict.end.python"}},"patterns":[{"match":":","name":"punctuation.separator.dict.python"},{"include":"#expression"}]},"decorator":{"begin":"^\\\\s*((@))\\\\s*(?=[_[:alpha:]]\\\\w*)","beginCaptures":{"1":{"name":"entity.name.function.decorator.python"},"2":{"name":"punctuation.definition.decorator.python"}},"end":"(\\\\))(.*?)(?=\\\\s*(?:#|$))|(?=[\\\\n#])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"invalid.illegal.decorator.python"}},"name":"meta.function.decorator.python","patterns":[{"include":"#decorator-name"},{"include":"#function-arguments"}]},"decorator-name":{"patterns":[{"include":"#builtin-callables"},{"include":"#illegal-object-name"},{"captures":{"2":{"name":"punctuation.separator.period.python"}},"match":"([_[:alpha:]]\\\\w*)|(\\\\.)","name":"entity.name.function.decorator.python"},{"include":"#line-continuation"},{"captures":{"1":{"name":"invalid.illegal.decorator.python"}},"match":"\\\\s*([^#(.\\\\\\\\_[:alpha:]\\\\s].*?)(?=#|$)","name":"invalid.illegal.decorator.python"}]},"docstring":{"patterns":[{"begin":"(\'\'\'|\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.multi.python","patterns":[{"include":"#docstring-prompt"},{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])(\'\'\'|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.raw.multi.python","patterns":[{"include":"#string-consume-escape"},{"include":"#docstring-prompt"},{"include":"#codetags"}]},{"begin":"([\\"\'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.single.python","patterns":[{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])([\\"\'])","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.raw.single.python","patterns":[{"include":"#string-consume-escape"},{"include":"#codetags"}]}]},"docstring-guts-unicode":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"docstring-prompt":{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"(?:^|\\\\G)\\\\s*((?:>>>|\\\\.\\\\.\\\\.)\\\\s)(?=\\\\s*\\\\S)"},"docstring-statement":{"begin":"^(?=\\\\s*[Rr]?(\'\'\'|\\"\\"\\"|[\\"\']))","end":"((?<=\\\\1)|^)(?!\\\\s*[Rr]?(\'\'\'|\\"\\"\\"|[\\"\']))","patterns":[{"include":"#docstring"}]},"double-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-one-regexp-character-set"},{"include":"#double-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-one-regexp-lookahead"},{"include":"#double-one-regexp-lookahead-negative"},{"include":"#double-one-regexp-lookbehind"},{"include":"#double-one-regexp-lookbehind-negative"},{"include":"#double-one-regexp-conditional"},{"include":"#double-one-regexp-parentheses-non-capturing"},{"include":"#double-one-regexp-parentheses"}]},"double-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-three-regexp-character-set"},{"include":"#double-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-three-regexp-lookahead"},{"include":"#double-three-regexp-lookahead-negative"},{"include":"#double-three-regexp-lookbehind"},{"include":"#double-three-regexp-lookbehind-negative"},{"include":"#double-three-regexp-conditional"},{"include":"#double-three-regexp-parentheses-non-capturing"},{"include":"#double-three-regexp-parentheses"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"ellipsis":{"match":"\\\\.\\\\.\\\\.","name":"constant.other.ellipsis.python"},"escape-sequence":{"match":"\\\\\\\\(x\\\\h{2}|[0-7]{1,3}|[\\"\'\\\\\\\\abfnrtv])","name":"constant.character.escape.python"},"escape-sequence-unicode":{"patterns":[{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8}|N\\\\{[\\\\w\\\\s]+?})","name":"constant.character.escape.python"}]},"expression":{"patterns":[{"include":"#expression-base"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"expression-bare":{"patterns":[{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#literal"},{"include":"#regexp"},{"include":"#string"},{"include":"#lambda"},{"include":"#generator"},{"include":"#illegal-operator"},{"include":"#operator"},{"include":"#curly-braces"},{"include":"#item-access"},{"include":"#list"},{"include":"#odd-function-call"},{"include":"#round-braces"},{"include":"#function-call"},{"include":"#builtin-functions"},{"include":"#builtin-types"},{"include":"#builtin-exceptions"},{"include":"#magic-names"},{"include":"#special-names"},{"include":"#illegal-names"},{"include":"#special-variables"},{"include":"#ellipsis"},{"include":"#punctuation"},{"include":"#line-continuation"}]},"expression-base":{"patterns":[{"include":"#comments"},{"include":"#expression-bare"},{"include":"#line-continuation"}]},"f-expression":{"patterns":[{"include":"#expression-bare"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"fregexp-base-expression":{"patterns":[{"include":"#fregexp-quantifier"},{"include":"#fstring-formatting-braces"},{"match":"\\\\{.*?}"},{"include":"#regexp-base-common"}]},"fregexp-quantifier":{"match":"\\\\{\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}}","name":"keyword.operator.quantifier.regexp"},"fstring-fnorm-quoted-multi-line":{"begin":"\\\\b([Ff])([BUbu])?(\'\'\'|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-fnorm-quoted-single-line":{"begin":"\\\\b([Ff])([BUbu])?(([\\"\']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-formatting":{"patterns":[{"include":"#fstring-formatting-braces"},{"include":"#fstring-formatting-singe-brace"}]},"fstring-formatting-braces":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"2":{"name":"invalid.illegal.brace.python"},"3":{"name":"constant.character.format.placeholder.other.python"}},"match":"(\\\\{)(\\\\s*?)(})"},{"match":"(\\\\{\\\\{|}})","name":"constant.character.escape.python"}]},"fstring-formatting-singe-brace":{"match":"(}(?!}))","name":"invalid.illegal.brace.python"},"fstring-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#fstring-formatting"}]},"fstring-illegal-multi-brace":{"patterns":[{"include":"#impossible"}]},"fstring-illegal-single-brace":{"begin":"(\\\\{)(?=[^\\\\n}]*$\\\\n?)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-multi-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-multi"},{"include":"#f-expression"}]},"fstring-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|\'\'\'|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.multi.python"},"fstring-normf-quoted-multi-line":{"begin":"\\\\b([BUbu])([Ff])(\'\'\'|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-normf-quoted-single-line":{"begin":"\\\\b([BUbu])([Ff])(([\\"\']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#fstring-formatting"}]},"fstring-raw-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|\'\'\'|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.raw.multi.python"},"fstring-raw-quoted-multi-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])(\'\'\'|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.multi.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.multi.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-raw-multi-core"}]},"fstring-raw-quoted-single-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])(([\\"\']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.single.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.single.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-raw-single-core"}]},"fstring-raw-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"\'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.raw.single.python"},"fstring-single-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"\'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.single.python"},"fstring-terminator-multi":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-multi-tail"}]},"fstring-terminator-multi-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})","patterns":[{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"fstring-terminator-single":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-single-tail"}]},"fstring-terminator-single-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})|(?=\\\\n)","patterns":[{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"function-arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.function-call.arguments.python","end":"(?=\\\\))(?!\\\\)\\\\s*\\\\()","patterns":[{"match":"(,)","name":"punctuation.separator.arguments.python"},{"captures":{"1":{"name":"keyword.operator.unpacking.arguments.python"}},"match":"(?:(?<=[(,])|^)\\\\s*(\\\\*{1,2})"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function-call.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"include":"#expression"},{"captures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"punctuation.definition.arguments.begin.python"}},"match":"\\\\s*(\\\\))\\\\s*(\\\\()"}]},"function-call":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#special-variables"},{"include":"#function-name"},{"include":"#function-arguments"}]},"function-declaration":{"begin":"\\\\s*(?:\\\\b(async)\\\\s+)?\\\\b(def)\\\\s+(?=[_[:alpha:]]\\\\p{word}*\\\\s*\\\\()","beginCaptures":{"1":{"name":"storage.type.function.async.python"},"2":{"name":"storage.type.function.python"}},"end":"(:|(?=[\\\\n\\"#\']))","endCaptures":{"1":{"name":"punctuation.section.function.begin.python"}},"name":"meta.function.python","patterns":[{"include":"#function-def-name"},{"include":"#parameters"},{"include":"#line-continuation"},{"include":"#return-annotation"}]},"function-def-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.function.python"}]},"function-name":{"patterns":[{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.function-call.generic.python"}]},"generator":{"begin":"\\\\bfor\\\\b","beginCaptures":{"0":{"name":"keyword.control.flow.python"}},"end":"\\\\bin\\\\b","endCaptures":{"0":{"name":"keyword.control.flow.python"}},"patterns":[{"include":"#expression"}]},"illegal-anno":{"match":"->","name":"invalid.illegal.annotation.python"},"illegal-names":{"captures":{"1":{"name":"keyword.control.flow.python"},"2":{"name":"keyword.control.import.python"}},"match":"\\\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\\\.)lambda|lambda(?=\\\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(as|import))\\\\b"},"illegal-object-name":{"match":"\\\\b(True|False|None)\\\\b","name":"keyword.illegal.name.python"},"illegal-operator":{"patterns":[{"match":"&&|\\\\|\\\\||--|\\\\+\\\\+","name":"invalid.illegal.operator.python"},{"match":"[$?]","name":"invalid.illegal.operator.python"},{"match":"!\\\\b","name":"invalid.illegal.operator.python"}]},"import":{"patterns":[{"begin":"\\\\b(?<!\\\\.)(from)\\\\b(?=.+import)","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$|(?=import)","patterns":[{"match":"\\\\.+","name":"punctuation.separator.period.python"},{"include":"#expression"}]},{"begin":"\\\\b(?<!\\\\.)(import)\\\\b","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$","patterns":[{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"include":"#expression"}]}]},"impossible":{"match":"$.^"},"inheritance-identifier":{"captures":{"1":{"name":"entity.other.inherited-class.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"},"inheritance-name":{"patterns":[{"include":"#lambda-incomplete"},{"include":"#builtin-possible-callables"},{"include":"#inheritance-identifier"}]},"item-access":{"patterns":[{"begin":"\\\\b(?=[_[:alpha:]]\\\\w*\\\\s*\\\\[)","end":"(])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.item-access.python","patterns":[{"include":"#item-name"},{"include":"#item-index"},{"include":"#expression"}]}]},"item-index":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.item-access.arguments.python","end":"(?=])","patterns":[{"match":":","name":"punctuation.separator.slice.python"},{"include":"#expression"}]},"item-name":{"patterns":[{"include":"#special-variables"},{"include":"#builtin-functions"},{"include":"#special-names"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.indexed-name.python"}]},"lambda":{"patterns":[{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"((?<=\\\\.)lambda|lambda(?=\\\\s*[.=]))"},{"captures":{"1":{"name":"storage.type.function.lambda.python"}},"match":"\\\\b(lambda)\\\\s*?(?=[\\\\n,]|$)"},{"begin":"\\\\b(lambda)\\\\b","beginCaptures":{"1":{"name":"storage.type.function.lambda.python"}},"contentName":"meta.function.lambda.parameters.python","end":"(:)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.section.function.lambda.begin.python"}},"name":"meta.lambda-function.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-nested-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=:|$))"},{"include":"#comments"},{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#lambda-parameter-with-default"},{"include":"#line-continuation"},{"include":"#illegal-operator"}]}]},"lambda-incomplete":{"match":"\\\\blambda(?=\\\\s*[),])","name":"storage.type.function.lambda.python"},"lambda-nested-incomplete":{"match":"\\\\blambda(?=\\\\s*[),:])","name":"storage.type.function.lambda.python"},"lambda-parameter-with-default":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"keyword.operator.python"}},"end":"(,)|(?=:|$)","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"line-continuation":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.continuation.line.python"},"2":{"name":"invalid.illegal.line.continuation.python"}},"match":"(\\\\\\\\)\\\\s*(\\\\S.*$\\\\n?)"},{"begin":"(\\\\\\\\)\\\\s*$\\\\n?","beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.python"}},"end":"(?=^\\\\s*$)|(?!(\\\\s*[Rr]?(\'\'\'|\\"\\"\\"|[\\"\']))|\\\\G()$)","patterns":[{"include":"#regexp"},{"include":"#string"}]}]},"list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.begin.python"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.end.python"}},"patterns":[{"include":"#expression"}]},"literal":{"patterns":[{"match":"\\\\b(True|False|None|NotImplemented|Ellipsis)\\\\b","name":"constant.language.python"},{"include":"#number"}]},"loose-default":{"begin":"(=)","beginCaptures":{"1":{"name":"keyword.operator.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"magic-function-names":{"captures":{"1":{"name":"support.function.magic.python"}},"match":"\\\\b(__(?:abs|add|aenter|aexit|aiter|and|anext|await|bool|call|ceil|class_getitem|cmp|coerce|complex|contains|copy|deepcopy|del|delattr|delete|delitem|delslice|dir|div|divmod|enter|eq|exit|float|floor|floordiv|format|get??|getattr|getattribute|getinitargs|getitem|getnewargs|getslice|getstate|gt|hash|hex|iadd|iand|idiv|ifloordiv||ilshift|imod|imul|index|init|instancecheck|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|len??|long|lshift|lt|missing|mod|mul|neg??|new|next|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|reduce|reduce_ex|repr|reversed|rfloordiv||rlshift|rmod|rmul|ror|round|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|set_name|setslice|setstate|sizeof|str|sub|subclasscheck|truediv|trunc|unicode|xor|matmul|rmatmul|imatmul|init_subclass|set_name|fspath|bytes|prepare|length_hint)__)\\\\b"},"magic-names":{"patterns":[{"include":"#magic-function-names"},{"include":"#magic-variable-names"}]},"magic-variable-names":{"captures":{"1":{"name":"support.variable.magic.python"}},"match":"\\\\b(__(?:all|annotations|bases|builtins|class|closure|code|debug|defaults|dict|doc|file|func|globals|kwdefaults|match_args|members|metaclass|methods|module|mro|mro_entries|name|qualname|post_init|self|signature|slots|subclasses|version|weakref|wrapped|classcell|spec|path|package|future|traceback)__)\\\\b"},"member-access":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|(^|(?<=\\\\s))(?=[^\\\\\\\\\\\\w\\\\s])|$","name":"meta.member.access.python","patterns":[{"include":"#function-call"},{"include":"#member-access-base"},{"include":"#member-access-attribute"}]},"member-access-attribute":{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.attribute.python"},"member-access-base":{"patterns":[{"include":"#magic-names"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#special-names"},{"include":"#line-continuation"},{"include":"#item-access"}]},"member-access-class":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|$","name":"meta.member.access.python","patterns":[{"include":"#call-wrapper-inheritance"},{"include":"#member-access-base"},{"include":"#inheritance-identifier"}]},"number":{"name":"constant.numeric.python","patterns":[{"include":"#number-float"},{"include":"#number-dec"},{"include":"#number-hex"},{"include":"#number-oct"},{"include":"#number-bin"},{"include":"#number-long"},{"match":"\\\\b[0-9]+\\\\w+","name":"invalid.illegal.name.python"}]},"number-bin":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Bb])(_?[01])+\\\\b","name":"constant.numeric.bin.python"},"number-dec":{"captures":{"1":{"name":"storage.type.imaginary.number.python"},"2":{"name":"invalid.illegal.dec.python"}},"match":"(?<![.\\\\w])(?:[1-9](?:_?[0-9])*|0+|[0-9](?:_?[0-9])*([Jj])|0([0-9]+)(?![.Ee]))\\\\b","name":"constant.numeric.dec.python"},"number-float":{"captures":{"1":{"name":"storage.type.imaginary.number.python"}},"match":"(?<!\\\\w)(?:(?:\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.)(?:[Ee][-+]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[Ee][-+]?[0-9](?:_?[0-9])*)([Jj])?\\\\b","name":"constant.numeric.float.python"},"number-hex":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Xx])(_?\\\\h)+\\\\b","name":"constant.numeric.hex.python"},"number-long":{"captures":{"2":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])([1-9][0-9]*|0)([Ll])\\\\b","name":"constant.numeric.bin.python"},"number-oct":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Oo])(_?[0-7])+\\\\b","name":"constant.numeric.oct.python"},"odd-function-call":{"begin":"(?<=[])])\\\\s*(?=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"patterns":[{"include":"#function-arguments"}]},"operator":{"captures":{"1":{"name":"keyword.operator.logical.python"},"2":{"name":"keyword.control.flow.python"},"3":{"name":"keyword.operator.bitwise.python"},"4":{"name":"keyword.operator.arithmetic.python"},"5":{"name":"keyword.operator.comparison.python"},"6":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b(?<!\\\\.)(?:(and|or|not|in|is)|(for|if|else|await|yield(?:\\\\s+from)?))(?!\\\\s*:)\\\\b|(<<|>>|[\\\\&^|~])|(\\\\*\\\\*|[-%*+]|//|[/@])|(!=|==|>=|<=|[<>])|(:=)"},"parameter-special":{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"variable.parameter.function.language.special.self.python"},"3":{"name":"variable.parameter.function.language.special.cls.python"},"4":{"name":"punctuation.separator.parameters.python"}},"match":"\\\\b((self)|(cls))\\\\b\\\\s*(?:(,)|(?=\\\\)))"},"parameters":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.python"}},"name":"meta.function.parameters.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#parameter-special"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=[\\\\n#)=]))"},{"include":"#comments"},{"include":"#loose-default"},{"include":"#annotated-parameter"}]},"punctuation":{"patterns":[{"match":":","name":"punctuation.separator.colon.python"},{"match":",","name":"punctuation.separator.element.python"}]},"regexp":{"patterns":[{"include":"#regexp-single-three-line"},{"include":"#regexp-double-three-line"},{"include":"#regexp-single-one-line"},{"include":"#regexp-double-one-line"}]},"regexp-backreference":{"captures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"},"2":{"name":"entity.name.tag.named.backreference.regexp"},"3":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"}},"match":"(\\\\()(\\\\?P=\\\\w+(?:\\\\s+\\\\p{alnum}+)?)(\\\\))","name":"meta.backreference.named.regexp"},"regexp-backreference-number":{"captures":{"1":{"name":"entity.name.tag.backreference.regexp"}},"match":"(\\\\\\\\[1-9]\\\\d?)","name":"meta.backreference.regexp"},"regexp-base-common":{"patterns":[{"match":"\\\\.","name":"support.other.match.any.regexp"},{"match":"\\\\^","name":"support.other.match.begin.regexp"},{"match":"\\\\$","name":"support.other.match.end.regexp"},{"match":"[*+?]\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.disjunction.regexp"},{"include":"#regexp-escape-sequence"}]},"regexp-base-expression":{"patterns":[{"include":"#regexp-quantifier"},{"include":"#regexp-base-common"}]},"regexp-charecter-set-escapes":{"patterns":[{"match":"\\\\\\\\[\\\\\\\\abfnrtv]","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-special"},{"match":"\\\\\\\\([0-7]{1,3})","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-escape-catchall"}]},"regexp-double-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\")|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#double-one-regexp-expression"}]},"regexp-double-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#double-three-regexp-expression"}]},"regexp-escape-catchall":{"match":"\\\\\\\\(.|\\\\n)","name":"constant.character.escape.regexp"},"regexp-escape-character":{"match":"\\\\\\\\(x\\\\h{2}|0[0-7]{1,2}|[0-7]{3})","name":"constant.character.escape.regexp"},"regexp-escape-sequence":{"patterns":[{"include":"#regexp-escape-special"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-backreference-number"},{"include":"#regexp-escape-catchall"}]},"regexp-escape-special":{"match":"\\\\\\\\([ABDSWZbdsw])","name":"support.other.escape.special.regexp"},"regexp-escape-unicode":{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8})","name":"constant.character.unicode.regexp"},"regexp-flags":{"match":"\\\\(\\\\?[Laimsux]+\\\\)","name":"storage.modifier.flag.regexp"},"regexp-quantifier":{"match":"\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}","name":"keyword.operator.quantifier.regexp"},"regexp-single-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\')|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#single-one-regexp-expression"}]},"regexp-single-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\'\'\')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\'\'\')","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#single-three-regexp-expression"}]},"return-annotation":{"begin":"(->)","beginCaptures":{"1":{"name":"punctuation.separator.annotation.result.python"}},"end":"(?=:)","patterns":[{"include":"#expression"}]},"round-braces":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.python"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.end.python"}},"patterns":[{"include":"#expression"}]},"semicolon":{"patterns":[{"match":";$","name":"invalid.deprecated.semicolon.python"}]},"single-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-one-regexp-character-set"},{"include":"#single-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-one-regexp-lookahead"},{"include":"#single-one-regexp-lookahead-negative"},{"include":"#single-one-regexp-lookbehind"},{"include":"#single-one-regexp-lookbehind-negative"},{"include":"#single-one-regexp-conditional"},{"include":"#single-one-regexp-parentheses-non-capturing"},{"include":"#single-one-regexp-parentheses"}]},"single-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\'))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\'\'\'))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-three-regexp-character-set"},{"include":"#single-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-three-regexp-lookahead"},{"include":"#single-three-regexp-lookahead-negative"},{"include":"#single-three-regexp-lookbehind"},{"include":"#single-three-regexp-lookbehind-negative"},{"include":"#single-three-regexp-conditional"},{"include":"#single-three-regexp-parentheses-non-capturing"},{"include":"#single-three-regexp-parentheses"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\'\'\'))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"special-names":{"match":"\\\\b(_*\\\\p{upper}[_\\\\d]*\\\\p{upper})[[:upper:]\\\\d]*(_\\\\w*)?\\\\b","name":"constant.other.caps.python"},"special-variables":{"captures":{"1":{"name":"variable.language.special.self.python"},"2":{"name":"variable.language.special.cls.python"}},"match":"\\\\b(?<!\\\\.)(?:(self)|(cls))\\\\b"},"statement":{"patterns":[{"include":"#import"},{"include":"#class-declaration"},{"include":"#function-declaration"},{"include":"#generator"},{"include":"#statement-keyword"},{"include":"#assignment-operator"},{"include":"#decorator"},{"include":"#docstring-statement"},{"include":"#semicolon"}]},"statement-keyword":{"patterns":[{"match":"\\\\b((async\\\\s+)?\\\\s*def)\\\\b","name":"storage.type.function.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b(?=.*[:\\\\\\\\])","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"match":"\\\\b(?<!\\\\.)(async|continue|del|assert|break|finally|for|from|elif|else|if|except|pass|raise|return|try|while|with)\\\\b","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)(global|nonlocal)\\\\b","name":"storage.modifier.declaration.python"},{"match":"\\\\b(?<!\\\\.)(class)\\\\b","name":"storage.type.class.python"},{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"^\\\\s*(case|match)(?=\\\\s*([-\\"#\'(+:\\\\[{\\\\w\\\\d]|$))\\\\b"}]},"string":{"patterns":[{"include":"#string-quoted-multi-line"},{"include":"#string-quoted-single-line"},{"include":"#string-bin-quoted-multi-line"},{"include":"#string-bin-quoted-single-line"},{"include":"#string-raw-quoted-multi-line"},{"include":"#string-raw-quoted-single-line"},{"include":"#string-raw-bin-quoted-multi-line"},{"include":"#string-raw-bin-quoted-single-line"},{"include":"#fstring-fnorm-quoted-multi-line"},{"include":"#fstring-fnorm-quoted-single-line"},{"include":"#fstring-normf-quoted-multi-line"},{"include":"#fstring-normf-quoted-single-line"},{"include":"#fstring-raw-quoted-multi-line"},{"include":"#fstring-raw-quoted-single-line"}]},"string-bin-quoted-multi-line":{"begin":"\\\\b([Bb])(\'\'\'|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.multi.python","patterns":[{"include":"#string-entity"}]},"string-bin-quoted-single-line":{"begin":"\\\\b([Bb])(([\\"\']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.single.python","patterns":[{"include":"#string-entity"}]},"string-brace-formatting":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\{|}}|\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"\']+])*(![ars])?(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)?})","name":"meta.format.brace.python"},{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"\']+])*(![ars])?(:)[^\\\\n\\"\'{}]*(?:\\\\{[^\\\\n\\"\'}]*?}[^\\\\n\\"\'{}]*)*})","name":"meta.format.brace.python"}]},"string-consume-escape":{"match":"\\\\\\\\[\\\\n\\"\'\\\\\\\\]"},"string-entity":{"patterns":[{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#string-formatting"}]},"string-formatting":{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"match":"(%(\\\\([\\\\w\\\\s]*\\\\))?[- #+0]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([Lhl])?[%EFGXa-giorsux])","name":"meta.format.percent.python"},"string-line-continuation":{"match":"\\\\\\\\$","name":"constant.language.python"},"string-multi-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!\'\'\'|\\"\\"\\"))%})","end":"(?=\'\'\'|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"}]},"string-multi-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!\'\'\'|\\"\\"\\"))%})","end":"(?=\'\'\'|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-multi-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!\'\'\'|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!\'\'\'|\\"\\"\\")})","end":"(?=\'\'\'|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-multi-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!\'\'\'|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!\'\'\'|\\"\\"\\")})","end":"(?=\'\'\'|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-quoted-multi-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?(\'\'\'|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-unicode"},{"include":"#string-multi-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-quoted-single-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?(([\\"\']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-unicode"},{"include":"#string-single-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-raw-bin-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-raw-bin-quoted-multi-line":{"begin":"\\\\b(R[Bb]|[Bb]R)(\'\'\'|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.multi.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-bin-quoted-single-line":{"begin":"\\\\b(R[Bb]|[Bb]R)(([\\"\']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.single.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"},{"include":"#string-brace-formatting"}]},"string-raw-quoted-multi-line":{"begin":"\\\\b(([Uu]R)|(R))(\'\'\'|\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-raw"},{"include":"#string-multi-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-raw-quoted-single-line":{"begin":"\\\\b(([Uu]R)|(R))(([\\"\']))","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-raw"},{"include":"#string-single-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-single-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!([\\"\'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"\'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"}]},"string-single-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!([\\"\'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"\'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-single-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"\'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"\'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"\'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-single-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"\'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"\'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"\'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-unicode-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"},{"include":"#string-brace-formatting"}]}},"scopeName":"source.python","aliases":["py"]}')),n=[e];export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{gi}from"./chunk-taynqrgq.js";export{gi as createTreemapServices};
|